]> jfr.im git - solanum.git/blame - configure
buildsystem: more LTDLINCL fixes
[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
eec2776c 199test \$(( 1 + 1 )) = 2 || exit 1
c52df125
AC
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
eec2776c 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
7083c021
AC
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
f0718c93 566lt_ltdl_dir='libltdl'
c52df125
AC
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 598
212380e3
AC
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
631ef239 602#ifdef HAVE_SYS_TYPES_H
212380e3
AC
603# include <sys/types.h>
604#endif
631ef239 605#ifdef HAVE_SYS_STAT_H
212380e3
AC
606# include <sys/stat.h>
607#endif
631ef239 608#ifdef STDC_HEADERS
212380e3
AC
609# include <stdlib.h>
610# include <stddef.h>
611#else
631ef239 612# ifdef HAVE_STDLIB_H
212380e3
AC
613# include <stdlib.h>
614# endif
615#endif
631ef239
AC
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
631ef239 622#ifdef HAVE_STRINGS_H
212380e3
AC
623# include <strings.h>
624#endif
631ef239 625#ifdef HAVE_INTTYPES_H
212380e3 626# include <inttypes.h>
212380e3 627#endif
631ef239
AC
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
212380e3
AC
632# include <unistd.h>
633#endif"
634
eec2776c 635ac_default_prefix=$HOME/ircd
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
9f9b7042
NPB
651PROGRAM_PREFIX
652PKGRUNDIR
7083c021
AC
653moduledir
654MODULE_DIR
655helpdir
656HELP_DIR
657logdir
658LOG_DIR
7083c021 659ETC_DIR
c52df125 660SQLITE_OBJ
a5471f24 661SQLITE_INCLUDES
497e30a0 662SQLITE_LD
a5471f24
LS
663SQLITE_LIBS
664SQLITE_CFLAGS
665PKG_CONFIG_LIBDIR
666PKG_CONFIG_PATH
667PKG_CONFIG
7083c021
AC
668ZLIB_LD
669ENCSPEED
670ALLOCA
671VICONF
672CRYPT_LIB
9f9b7042
NPB
673PKGLIBEXECDIR
674pkglibexecdir
675PKGLOCALSTATEDIR
676pkglocalstatedir
677pkgrundir
678rundir
679pkglibdir
7083c021
AC
680LEXLIB
681LEX_OUTPUT_ROOT
682LEX
683YFLAGS
684YACC
685TOUCH
7083c021
AC
686LN
687MV
688CP
689RM
c52df125
AC
690BUILD_LTDL_FALSE
691BUILD_LTDL_TRUE
692LTDLOPEN
693LT_CONFIG_H
c52df125
AC
694CONVENIENCE_LTDL_FALSE
695CONVENIENCE_LTDL_TRUE
696INSTALL_LTDL_FALSE
697INSTALL_LTDL_TRUE
698ARGZ_H
699sys_symbol_underscore
700LIBADD_DL
701LT_DLPREOPEN
702LIBADD_DLD_LINK
703LIBADD_SHL_LOAD
704LIBADD_DLOPEN
705LT_DLLOADERS
706INCLTDL
707LTDLINCL
708LTDLDEPS
709LIBLTDL
c52df125
AC
710OTOOL64
711OTOOL
712LIPO
713NMEDIT
714DSYMUTIL
715MANIFEST_TOOL
716RANLIB
717DLLTOOL
718OBJDUMP
719LN_S
720NM
721ac_ct_DUMPBIN
722DUMPBIN
723LD
724FGREP
c52df125
AC
725SED
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734LIBTOOL
eec2776c
AJ
735ac_ct_AR
736AR
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
c52df125
AC
741am__fastdepCC_FALSE
742am__fastdepCC_TRUE
743CCDEPMODE
744am__nodep
745AMDEPBACKSLASH
746AMDEP_FALSE
747AMDEP_TRUE
748am__quote
749am__include
750DEPDIR
c52df125
AC
751am__untar
752am__tar
753AMTAR
754am__leading_dot
755SET_MAKE
756AWK
757mkdir_p
758MKDIR_P
759INSTALL_STRIP_PROGRAM
760STRIP
761install_sh
762MAKEINFO
763AUTOHEADER
764AUTOMAKE
765AUTOCONF
766ACLOCAL
767VERSION
768PACKAGE
769CYGPATH_W
770am__isrc
771INSTALL_DATA
772INSTALL_SCRIPT
773INSTALL_PROGRAM
eec2776c
AJ
774subdirs
775EGREP
776GREP
777CPP
778OBJEXT
779EXEEXT
780ac_ct_CC
781CPPFLAGS
782LDFLAGS
783CFLAGS
784CC
7083c021
AC
785target_alias
786host_alias
787build_alias
788LIBS
789ECHO_T
790ECHO_N
791ECHO_C
792DEFS
793mandir
794localedir
795libdir
796psdir
797pdfdir
798dvidir
799htmldir
800infodir
801docdir
802oldincludedir
803includedir
804localstatedir
805sharedstatedir
806sysconfdir
807datadir
808datarootdir
809libexecdir
810sbindir
811bindir
812program_transform_name
813prefix
814exec_prefix
815PACKAGE_URL
816PACKAGE_BUGREPORT
817PACKAGE_STRING
818PACKAGE_VERSION
819PACKAGE_TARNAME
820PACKAGE_NAME
821PATH_SEPARATOR
822SHELL'
212380e3 823ac_subst_files=''
7083c021
AC
824ac_user_opts='
825enable_option_checking
c52df125 826enable_dependency_tracking
eec2776c 827enable_silent_rules
c52df125
AC
828enable_static
829enable_shared
830with_pic
831enable_fast_install
832with_gnu_ld
833with_sysroot
834enable_libtool_lock
835with_included_ltdl
836with_ltdl_include
837with_ltdl_lib
838enable_ltdl_install
9f9b7042 839enable_fhs_paths
7083c021
AC
840enable_ipv6
841enable_openssl
842with_zlib_path
843enable_zlib
a6ef3156 844with_shared_sqlite
7083c021
AC
845with_confdir
846with_logdir
847with_helpdir
848with_moduledir
9f9b7042
NPB
849with_rundir
850with_program_prefix
b6d0720c
AC
851with_custom_branding
852with_custom_version
7083c021
AC
853enable_assert
854enable_iodebug
855enable_profile
856enable_balloc
857enable_small_net
858with_nicklen
859with_topiclen
860enable_warnings
861'
631ef239
AC
862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
868LIBS
869CPPFLAGS
870CPP
871YACC
a5471f24
LS
872YFLAGS
873PKG_CONFIG
874PKG_CONFIG_PATH
875PKG_CONFIG_LIBDIR
876SQLITE_CFLAGS
877SQLITE_LIBS'
eec2776c 878ac_subdirs_all='libratbox
eec2776c 879libltdl'
212380e3
AC
880
881# Initialize some variables set by options.
882ac_init_help=
883ac_init_version=false
7083c021
AC
884ac_unrecognized_opts=
885ac_unrecognized_sep=
212380e3
AC
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 908# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
631ef239
AC
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
212380e3
AC
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
212380e3
AC
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
631ef239
AC
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
212380e3
AC
928
929ac_prev=
631ef239 930ac_dashdash=
212380e3
AC
931for ac_option
932do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
631ef239 935 eval $ac_prev=\$ac_option
212380e3
AC
936 ac_prev=
937 continue
938 fi
939
631ef239 940 case $ac_option in
b6d0720c
AC
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
631ef239 944 esac
212380e3
AC
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
631ef239
AC
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
212380e3
AC
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
631ef239 972 -datadir | --datadir | --datadi | --datad)
212380e3 973 ac_prev=datadir ;;
631ef239 974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
975 datadir=$ac_optarg ;;
976
631ef239
AC
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
212380e3 984 -disable-* | --disable-*)
7083c021 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 986 # Reject names that are not valid shell variable names.
7083c021 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 988 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
631ef239
AC
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
212380e3
AC
1009
1010 -enable-* | --enable-*)
7083c021 1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 1012 # Reject names that are not valid shell variable names.
7083c021 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1014 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
631ef239
AC
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
212380e3
AC
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
631ef239
AC
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
212380e3 1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 1087 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
631ef239
AC
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
212380e3
AC
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
7083c021 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1216 # Reject names that are not valid shell variable names.
7083c021 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1218 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1229
1230 -without-* | --without-*)
7083c021 1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1232 # Reject names that are not valid shell variable names.
7083c021 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1234 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
212380e3
AC
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
b6d0720c
AC
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
212380e3
AC
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
7083c021
AC
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1274 esac
631ef239 1275 eval $ac_envvar=\$ac_optarg
212380e3
AC
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
7083c021 1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1291 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1292fi
1293
7083c021
AC
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
b6d0720c 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300fi
1301
1302# Check all directory arguments for consistency.
631ef239
AC
1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
212380e3 1307do
631ef239 1308 eval ac_val=\$$ac_var
7083c021
AC
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
212380e3 1316 case $ac_val in
631ef239
AC
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1319 esac
b6d0720c 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
212380e3
AC
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
631ef239
AC
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1348 as_fn_error $? "working directory cannot be determined"
631ef239 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1350 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
212380e3 1355 ac_srcdir_defaulted=yes
631ef239 1356 # Try the directory containing this script, then the parent directory.
7083c021
AC
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
631ef239
AC
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
212380e3 1380 srcdir=$ac_confdir
631ef239 1381 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
631ef239
AC
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1390fi
631ef239
AC
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
b6d0720c 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
212380e3
AC
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
c52df125 1419\`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems.
212380e3
AC
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
b6d0720c 1433 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
212380e3
AC
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1441 [$ac_default_prefix]
212380e3 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1443 [PREFIX]
212380e3
AC
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
7083c021
AC
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1472_ACEOF
1473
1474 cat <<\_ACEOF
c52df125
AC
1475
1476Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
212380e3
AC
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488 case $ac_init_help in
c52df125 1489 short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";;
212380e3
AC
1490 esac
1491 cat <<\_ACEOF
1492
1493Optional Features:
7083c021 1494 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c52df125
AC
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
eec2776c
AJ
1501 --enable-silent-rules less verbose build output (undo: "make V=1")
1502 --disable-silent-rules verbose build output (undo: "make V=0")
c52df125
AC
1503 --enable-static[=PKGS] build static libraries [default=no]
1504 --enable-shared[=PKGS] build shared libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --enable-ltdl-install install libltdl
6929cd01 1509 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1510 --enable-ipv6 Enable IPv6 support
631ef239 1511 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1512 --disable-openssl Disable OpenSSL support.
1513 --disable-zlib Disable ziplinks support
212380e3
AC
1514 --enable-assert Enable assert(). Choose between soft(warnings) and
1515 hard(aborts the daemon)
1516 --enable-iodebug Enable IO Debugging hooks
1517 --enable-profile Enable profiling
1518 --disable-balloc Disable the block allocator.
212380e3 1519 --enable-small-net Enable small network support.
212380e3
AC
1520 --enable-warnings Enable all sorts of warnings for debugging.
1521
1522Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
c52df125
AC
1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-sysroot=DIR Search for dependent libraries within DIR
1529 (or the compiler's sysroot if not specified).
1530 --with-included-ltdl use the GNU ltdl sources included here
1531 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1532 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
212380e3 1533 --with-zlib-path=DIR Path to libz.so for ziplinks support.
a6ef3156 1534 --with-shared-sqlite Use shared sqlite
634d4aad
NPB
1535 --with-confdir=DIR Directory to install config files [deprecated, use
1536 --sysconfdir instead].
212380e3
AC
1537 --with-logdir=DIR Directory where to write logfiles.
1538 --with-helpdir=DIR Directory to install help files.
1539 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1540 --with-rundir=DIR Directory in which to store pidfile.
1541 --with-program-prefix= If set, programs installed into PATH will be
1542 installed with names prefixed by this prefix.
b6d0720c
AC
1543 --with-custom-branding=NAME
1544 Custom branding name.
1545 --with-custom-version=NAME
1546 Custom version branding.
b583faf9 1547 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1548 31, max 50)
212380e3
AC
1549 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1550 390)
212380e3
AC
1551
1552Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
631ef239 1557 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1559 you have headers in a nonstandard directory <include dir>
212380e3 1560 CPP C preprocessor
b6d0720c
AC
1561 YACC The `Yet Another Compiler Compiler' implementation to use.
1562 Defaults to the first program found out of: `bison -y', `byacc',
1563 `yacc'.
631ef239
AC
1564 YFLAGS The list of arguments that will be passed by default to $YACC.
1565 This script will default YFLAGS to the empty string to avoid a
1566 default value of `-d' given by some make applications.
a5471f24
LS
1567 PKG_CONFIG path to pkg-config utility
1568 PKG_CONFIG_PATH
1569 directories to add to pkg-config's search path
1570 PKG_CONFIG_LIBDIR
1571 path overriding pkg-config's built-in search path
1572 SQLITE_CFLAGS
1573 C compiler flags for SQLITE, overriding pkg-config
1574 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
212380e3
AC
1575
1576Use these variables to override the choices made by `configure' or to help
1577it to find libraries and programs with nonstandard names/locations.
1578
7083c021 1579Report bugs to the package provider.
212380e3 1580_ACEOF
631ef239 1581ac_status=$?
212380e3
AC
1582fi
1583
1584if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
212380e3 1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
212380e3
AC
1590 ac_builddir=.
1591
631ef239
AC
1592case "$ac_dir" in
1593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594*)
7083c021 1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1596 # A ".." for each directory in $ac_dir_suffix.
7083c021 1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602esac
1603ac_abs_top_builddir=$ac_pwd
1604ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605# for backward compatibility:
1606ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1607
1608case $srcdir in
631ef239 1609 .) # We are building in place.
212380e3 1610 ac_srcdir=.
631ef239
AC
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1614 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1621esac
631ef239
AC
1622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1632 else
7083c021 1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1636 done
1637fi
1638
631ef239 1639test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1640if $ac_init_version; then
1641 cat <<\_ACEOF
c52df125 1642charybdis configure 3.6.0-dev
2eff3833 1643generated by GNU Autoconf 2.69
212380e3 1644
2eff3833 1645Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1646This configure script is free software; the Free Software Foundation
1647gives unlimited permission to copy, distribute and modify it.
212380e3 1648_ACEOF
631ef239 1649 exit
212380e3 1650fi
212380e3 1651
7083c021
AC
1652## ------------------------ ##
1653## Autoconf initialization. ##
1654## ------------------------ ##
212380e3 1655
7083c021
AC
1656# ac_fn_c_try_compile LINENO
1657# --------------------------
1658# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_compile ()
1660{
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1686
7083c021
AC
1687 ac_retval=1
1688fi
b6d0720c 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1690 as_fn_set_status $ac_retval
7083c021
AC
1691
1692} # ac_fn_c_try_compile
1693
eec2776c
AJ
1694# ac_fn_c_try_cpp LINENO
1695# ----------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_cpp ()
212380e3 1698{
7083c021 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
eec2776c 1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
7083c021
AC
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
eec2776c 1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7083c021
AC
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
eec2776c
AJ
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7083c021
AC
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1723
eec2776c 1724 ac_retval=1
7083c021 1725fi
b6d0720c 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1727 as_fn_set_status $ac_retval
212380e3 1728
eec2776c 1729} # ac_fn_c_try_cpp
212380e3 1730
eec2776c 1731# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
7083c021 1732# -------------------------------------------------------
eec2776c
AJ
1733# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734# the include files in INCLUDES and setting the cache variable VAR
1735# accordingly.
1736ac_fn_c_check_header_mongrel ()
7083c021
AC
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
eec2776c 1739 if eval \${$3+:} false; then :
7083c021
AC
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
b6d0720c 1742if eval \${$3+:} false; then :
7083c021 1743 $as_echo_n "(cached) " >&6
eec2776c
AJ
1744fi
1745eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747$as_echo "$ac_res" >&6; }
7083c021 1748else
eec2776c
AJ
1749 # Is the header compilable?
1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751$as_echo_n "checking $2 usability... " >&6; }
1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021
AC
1753/* end confdefs.h. */
1754$4
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
eec2776c 1758 ac_header_compiler=yes
7083c021 1759else
eec2776c 1760 ac_header_compiler=no
7083c021
AC
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eec2776c
AJ
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764$as_echo "$ac_header_compiler" >&6; }
c52df125 1765
eec2776c
AJ
1766# Is the header present?
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768$as_echo_n "checking $2 presence... " >&6; }
1769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_cpp "$LINENO"; then :
1774 ac_header_preproc=yes
1775else
1776 ac_header_preproc=no
1777fi
1778rm -f conftest.err conftest.i conftest.$ac_ext
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780$as_echo "$ac_header_preproc" >&6; }
c52df125 1781
eec2776c
AJ
1782# So? What about this header?
1783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784 yes:no: )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 ;;
1790 no:yes:* )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ;;
c52df125 1802esac
eec2776c
AJ
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
c52df125 1807else
eec2776c
AJ
1808 eval "$3=\$ac_header_compiler"
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
7083c021 1813fi
b6d0720c 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1815
eec2776c 1816} # ac_fn_c_check_header_mongrel
212380e3 1817
7083c021
AC
1818# ac_fn_c_try_run LINENO
1819# ----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821# that executables *can* be run.
1822ac_fn_c_try_run ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836 { { case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_try") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; }; }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: program exited with status $ac_status" >&5
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1851
7083c021
AC
1852 ac_retval=$ac_status
1853fi
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1856 as_fn_set_status $ac_retval
212380e3 1857
7083c021 1858} # ac_fn_c_try_run
212380e3 1859
eec2776c
AJ
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
1890
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921else
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926fi
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_link
1936
c52df125
AC
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
7083c021
AC
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
b6d0720c 1945if eval \${$3+:} false; then :
7083c021
AC
1946 $as_echo_n "(cached) " >&6
1947else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
c52df125
AC
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991else
1992 eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2005# ---------------------------------------------
2006# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2007# accordingly.
2008ac_fn_c_check_decl ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 as_decl_name=`echo $2|sed 's/ *(.*//'`
2012 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2014$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2015if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
7083c021 2020$4
c52df125
AC
2021int
2022main ()
2023{
2024#ifndef $as_decl_name
2025#ifdef __cplusplus
2026 (void) $as_decl_use;
2027#else
2028 (void) $as_decl_name;
2029#endif
2030#endif
2031
2032 ;
2033 return 0;
2034}
212380e3 2035_ACEOF
7083c021
AC
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$3=yes"
2038else
2039 eval "$3=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
b6d0720c 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 2047
c52df125 2048} # ac_fn_c_check_decl
212380e3 2049
c52df125
AC
2050# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051# -------------------------------------------
2052# Tests whether TYPE exists after having included INCLUDES, setting cache
2053# variable VAR accordingly.
2054ac_fn_c_check_type ()
7083c021
AC
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
b6d0720c 2059if eval \${$3+:} false; then :
7083c021 2060 $as_echo_n "(cached) " >&6
212380e3 2061else
7083c021
AC
2062 eval "$3=no"
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
2066int
2067main ()
2068{
2069if (sizeof ($2))
2070 return 0;
2071 ;
2072 return 0;
2073}
212380e3 2074_ACEOF
7083c021
AC
2075if ac_fn_c_try_compile "$LINENO"; then :
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2077/* end confdefs.h. */
7083c021 2078$4
212380e3
AC
2079int
2080main ()
2081{
7083c021
AC
2082if (sizeof (($2)))
2083 return 0;
212380e3
AC
2084 ;
2085 return 0;
2086}
2087_ACEOF
7083c021 2088if ac_fn_c_try_compile "$LINENO"; then :
212380e3 2089
631ef239 2090else
7083c021 2091 eval "$3=yes"
212380e3 2092fi
7083c021 2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2094fi
7083c021 2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2096fi
7083c021
AC
2097eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099$as_echo "$ac_res" >&6; }
b6d0720c 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 2101
7083c021
AC
2102} # ac_fn_c_check_type
2103
2104# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2105# --------------------------------------------
2106# Tries to find the compile-time value of EXPR in a program that includes
2107# INCLUDES, setting VAR accordingly. Returns whether the value could be
2108# computed
2109ac_fn_c_compute_int ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 if test "$cross_compiling" = yes; then
2113 # Depending upon the size, compute the lo and hi bounds.
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
2121test_array [0] = 0;
2122return test_array [0];
7083c021
AC
2123
2124 ;
2125 return 0;
2126}
212380e3 2127_ACEOF
7083c021
AC
2128if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=0 ac_mid=0
2130 while :; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2132/* end confdefs.h. */
7083c021
AC
2133$4
2134int
2135main ()
2136{
2137static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2138test_array [0] = 0;
2139return test_array [0];
212380e3 2140
7083c021
AC
2141 ;
2142 return 0;
2143}
212380e3 2144_ACEOF
7083c021
AC
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=$ac_mid; break
212380e3 2147else
7083c021
AC
2148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149 if test $ac_lo -le $ac_mid; then
2150 ac_lo= ac_hi=
2151 break
2152 fi
2153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 2154fi
631ef239 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
2156 done
2157else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h. */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
2165test_array [0] = 0;
2166return test_array [0];
212380e3 2167
7083c021
AC
2168 ;
2169 return 0;
2170}
212380e3 2171_ACEOF
7083c021
AC
2172if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_hi=-1 ac_mid=-1
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178int
2179main ()
2180{
2181static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
2182test_array [0] = 0;
2183return test_array [0];
212380e3 2184
7083c021
AC
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_lo=$ac_mid; break
2191else
2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193 if test $ac_mid -le $ac_hi; then
2194 ac_lo= ac_hi=
2195 break
2196 fi
2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 2198fi
7083c021
AC
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
212380e3 2201else
7083c021
AC
2202 ac_lo= ac_hi=
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207# Binary search between lo and hi bounds.
2208while test "x$ac_lo" != "x$ac_hi"; do
2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2211/* end confdefs.h. */
7083c021
AC
2212$4
2213int
2214main ()
2215{
2216static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
2217test_array [0] = 0;
2218return test_array [0];
7083c021
AC
2219
2220 ;
2221 return 0;
2222}
212380e3 2223_ACEOF
7083c021
AC
2224if ac_fn_c_try_compile "$LINENO"; then :
2225 ac_hi=$ac_mid
212380e3 2226else
7083c021 2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 2228fi
7083c021
AC
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230done
2231case $ac_lo in #((
2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2233'') ac_retval=1 ;;
2234esac
2235 else
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238$4
2239static long int longval () { return $2; }
2240static unsigned long int ulongval () { return $2; }
2241#include <stdio.h>
2242#include <stdlib.h>
2243int
2244main ()
2245{
631ef239 2246
7083c021
AC
2247 FILE *f = fopen ("conftest.val", "w");
2248 if (! f)
2249 return 1;
2250 if (($2) < 0)
2251 {
2252 long int i = longval ();
2253 if (i != ($2))
2254 return 1;
2255 fprintf (f, "%ld", i);
2256 }
2257 else
2258 {
2259 unsigned long int i = ulongval ();
2260 if (i != ($2))
2261 return 1;
2262 fprintf (f, "%lu", i);
2263 }
2264 /* Do not output a trailing newline, as this causes \r\n confusion
2265 on some platforms. */
2266 return ferror (f) || fclose (f) != 0;
212380e3 2267
7083c021
AC
2268 ;
2269 return 0;
2270}
212380e3 2271_ACEOF
7083c021
AC
2272if ac_fn_c_try_run "$LINENO"; then :
2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2274else
7083c021 2275 ac_retval=1
212380e3 2276fi
7083c021
AC
2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278 conftest.$ac_objext conftest.beam conftest.$ac_ext
2279rm -f conftest.val
631ef239 2280
7083c021 2281 fi
b6d0720c 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2283 as_fn_set_status $ac_retval
212380e3 2284
7083c021 2285} # ac_fn_c_compute_int
7083c021
AC
2286cat >config.log <<_ACEOF
2287This file contains any messages produced by compilers while
2288running configure, to aid debugging if configure makes a mistake.
212380e3 2289
c52df125 2290It was created by charybdis $as_me 3.6.0-dev, which was
2eff3833 2291generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2292
7083c021 2293 $ $0 $@
212380e3 2294
7083c021
AC
2295_ACEOF
2296exec 5>>config.log
2297{
2298cat <<_ASUNAME
2299## --------- ##
2300## Platform. ##
2301## --------- ##
2302
2303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2304uname -m = `(uname -m) 2>/dev/null || echo unknown`
2305uname -r = `(uname -r) 2>/dev/null || echo unknown`
2306uname -s = `(uname -s) 2>/dev/null || echo unknown`
2307uname -v = `(uname -v) 2>/dev/null || echo unknown`
2308
2309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2310/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2311
2312/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2313/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2315/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2316/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2317/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2318/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2319
2320_ASUNAME
212380e3 2321
631ef239 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2323for as_dir in $PATH
631ef239
AC
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
7083c021 2327 $as_echo "PATH: $as_dir"
631ef239 2328 done
631ef239
AC
2329IFS=$as_save_IFS
2330
7083c021 2331} >&5
631ef239 2332
7083c021 2333cat >&5 <<_ACEOF
631ef239 2334
631ef239 2335
7083c021
AC
2336## ----------- ##
2337## Core tests. ##
2338## ----------- ##
631ef239 2339
7083c021 2340_ACEOF
631ef239
AC
2341
2342
7083c021
AC
2343# Keep a trace of the command line.
2344# Strip out --no-create and --no-recursion so they do not pile up.
2345# Strip out --silent because we don't want to record it for future runs.
2346# Also quote any args containing shell meta-characters.
2347# Make two passes to allow for proper duplicate-argument suppression.
2348ac_configure_args=
2349ac_configure_args0=
2350ac_configure_args1=
2351ac_must_keep_next=false
2352for ac_pass in 1 2
631ef239 2353do
7083c021 2354 for ac_arg
631ef239 2355 do
7083c021
AC
2356 case $ac_arg in
2357 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2359 | -silent | --silent | --silen | --sile | --sil)
2360 continue ;;
2361 *\'*)
2362 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 esac
2364 case $ac_pass in
2365 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2366 2)
2367 as_fn_append ac_configure_args1 " '$ac_arg'"
2368 if test $ac_must_keep_next = true; then
2369 ac_must_keep_next=false # Got value, back to normal.
2370 else
2371 case $ac_arg in
2372 *=* | --config-cache | -C | -disable-* | --disable-* \
2373 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2374 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2375 | -with-* | --with-* | -without-* | --without-* | --x)
2376 case "$ac_configure_args0 " in
2377 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2378 esac
2379 ;;
2380 -* ) ac_must_keep_next=true ;;
2381 esac
2382 fi
2383 as_fn_append ac_configure_args " '$ac_arg'"
2384 ;;
2385 esac
631ef239
AC
2386 done
2387done
7083c021
AC
2388{ ac_configure_args0=; unset ac_configure_args0;}
2389{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2390
7083c021
AC
2391# When interrupted or exit'd, cleanup temporary files, and complete
2392# config.log. We remove comments because anyway the quotes in there
2393# would cause problems or look ugly.
2394# WARNING: Use '\'' to represent an apostrophe within the trap.
2395# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2396trap 'exit_status=$?
2397 # Save into config.log some information that might help in debugging.
2398 {
2399 echo
631ef239 2400
b6d0720c 2401 $as_echo "## ---------------- ##
7083c021 2402## Cache variables. ##
b6d0720c 2403## ---------------- ##"
7083c021
AC
2404 echo
2405 # The following way of writing the cache mishandles newlines in values,
2406(
2407 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in #(
2410 *${as_nl}*)
2411 case $ac_var in #(
2412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2413$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414 esac
2415 case $ac_var in #(
2416 _ | IFS | as_nl) ;; #(
2417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2418 *) { eval $ac_var=; unset $ac_var;} ;;
2419 esac ;;
2420 esac
2421 done
2422 (set) 2>&1 |
2423 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2424 *${as_nl}ac_space=\ *)
2425 sed -n \
2426 "s/'\''/'\''\\\\'\'''\''/g;
2427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428 ;; #(
2429 *)
2430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2431 ;;
2432 esac |
2433 sort
2434)
2435 echo
631ef239 2436
b6d0720c 2437 $as_echo "## ----------------- ##
7083c021 2438## Output variables. ##
b6d0720c 2439## ----------------- ##"
7083c021
AC
2440 echo
2441 for ac_var in $ac_subst_vars
2442 do
2443 eval ac_val=\$$ac_var
2444 case $ac_val in
2445 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2446 esac
2447 $as_echo "$ac_var='\''$ac_val'\''"
2448 done | sort
2449 echo
631ef239 2450
7083c021 2451 if test -n "$ac_subst_files"; then
b6d0720c 2452 $as_echo "## ------------------- ##
7083c021 2453## File substitutions. ##
b6d0720c 2454## ------------------- ##"
7083c021
AC
2455 echo
2456 for ac_var in $ac_subst_files
2457 do
2458 eval ac_val=\$$ac_var
2459 case $ac_val in
2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 esac
2462 $as_echo "$ac_var='\''$ac_val'\''"
2463 done | sort
2464 echo
2465 fi
631ef239 2466
7083c021 2467 if test -s confdefs.h; then
b6d0720c 2468 $as_echo "## ----------- ##
7083c021 2469## confdefs.h. ##
b6d0720c 2470## ----------- ##"
7083c021
AC
2471 echo
2472 cat confdefs.h
2473 echo
2474 fi
2475 test "$ac_signal" != 0 &&
2476 $as_echo "$as_me: caught signal $ac_signal"
2477 $as_echo "$as_me: exit $exit_status"
2478 } >&5
2479 rm -f core *.core core.conftest.* &&
2480 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2481 exit $exit_status
2482' 0
2483for ac_signal in 1 2 13 15; do
2484 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2485done
2486ac_signal=0
631ef239 2487
7083c021
AC
2488# confdefs.h avoids OS command line length limits that DEFS can exceed.
2489rm -f -r conftest* confdefs.h
631ef239 2490
7083c021 2491$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2492
7083c021 2493# Predefined preprocessor variables.
212380e3 2494
7083c021
AC
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2497_ACEOF
212380e3 2498
7083c021
AC
2499cat >>confdefs.h <<_ACEOF
2500#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2501_ACEOF
212380e3 2502
7083c021
AC
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2505_ACEOF
212380e3 2506
7083c021
AC
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_STRING "$PACKAGE_STRING"
2509_ACEOF
212380e3 2510
7083c021
AC
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2513_ACEOF
212380e3 2514
7083c021
AC
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_URL "$PACKAGE_URL"
2517_ACEOF
212380e3 2518
631ef239 2519
7083c021
AC
2520# Let the site file select an alternate cache file if it wants to.
2521# Prefer an explicitly selected file to automatically selected ones.
2522ac_site_file1=NONE
2523ac_site_file2=NONE
2524if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2525 # We do not want a PATH search for config.site.
2526 case $CONFIG_SITE in #((
2527 -*) ac_site_file1=./$CONFIG_SITE;;
2528 */*) ac_site_file1=$CONFIG_SITE;;
2529 *) ac_site_file1=./$CONFIG_SITE;;
2530 esac
7083c021
AC
2531elif test "x$prefix" != xNONE; then
2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
212380e3 2534else
7083c021
AC
2535 ac_site_file1=$ac_default_prefix/share/config.site
2536 ac_site_file2=$ac_default_prefix/etc/config.site
2537fi
2538for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2539do
7083c021 2540 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2541 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2545 . "$ac_site_file" \
2546 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548as_fn_error $? "failed to load site script $ac_site_file
2549See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2550 fi
2551done
212380e3 2552
7083c021 2553if test -r "$cache_file"; then
6fb6bd15
AC
2554 # Some versions of bash will fail to source /dev/null (special files
2555 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2556 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2558$as_echo "$as_me: loading cache $cache_file" >&6;}
2559 case $cache_file in
2560 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2561 *) . "./$cache_file";;
2562 esac
2563 fi
212380e3 2564else
7083c021
AC
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2566$as_echo "$as_me: creating cache $cache_file" >&6;}
2567 >$cache_file
212380e3
AC
2568fi
2569
7083c021
AC
2570# Check that the precious variables saved in the cache have kept the same
2571# value.
2572ac_cache_corrupted=false
2573for ac_var in $ac_precious_vars; do
2574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2575 eval ac_new_set=\$ac_env_${ac_var}_set
2576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2577 eval ac_new_val=\$ac_env_${ac_var}_value
2578 case $ac_old_set,$ac_new_set in
2579 set,)
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2581$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,set)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2585$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,);;
2588 *)
2589 if test "x$ac_old_val" != "x$ac_new_val"; then
2590 # differences in whitespace do not lead to failure.
2591 ac_old_val_w=`echo x $ac_old_val`
2592 ac_new_val_w=`echo x $ac_new_val`
2593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2595$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596 ac_cache_corrupted=:
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2599$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2600 eval $ac_var=\$ac_old_val
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2603$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2605$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2606 fi;;
2607 esac
2608 # Pass precious variables to config.status.
2609 if test "$ac_new_set" = set; then
2610 case $ac_new_val in
2611 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2612 *) ac_arg=$ac_var=$ac_new_val ;;
2613 esac
2614 case " $ac_configure_args " in
2615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2617 esac
212380e3
AC
2618 fi
2619done
7083c021
AC
2620if $ac_cache_corrupted; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2624$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2625 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2626fi
7083c021
AC
2627## -------------------- ##
2628## Main body of script. ##
2629## -------------------- ##
212380e3 2630
7083c021
AC
2631ac_ext=c
2632ac_cpp='$CPP $CPPFLAGS'
2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2636
212380e3 2637
212380e3 2638
eec2776c
AJ
2639ac_ext=c
2640ac_cpp='$CPP $CPPFLAGS'
2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2644
c52df125 2645ac_aux_dir=
eec2776c 2646for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
c52df125
AC
2647 if test -f "$ac_dir/install-sh"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2650 break
2651 elif test -f "$ac_dir/install.sh"; then
2652 ac_aux_dir=$ac_dir
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2654 break
2655 elif test -f "$ac_dir/shtool"; then
2656 ac_aux_dir=$ac_dir
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2658 break
212380e3
AC
2659 fi
2660done
c52df125 2661if test -z "$ac_aux_dir"; then
eec2776c 2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
212380e3
AC
2663fi
2664
c52df125
AC
2665# These three variables are undocumented and unsupported,
2666# and are intended to be withdrawn in a future Autoconf release.
2667# They can cause serious problems if a builder's source tree is in a directory
2668# whose full name contains unusual characters.
2669ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
631ef239 2672
c52df125 2673
eec2776c
AJ
2674# Expand $ac_aux_dir to an absolute path.
2675am_aux_dir=`cd "$ac_aux_dir" && pwd`
c52df125 2676
eec2776c
AJ
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2684set dummy ${ac_tool_prefix}gcc; ac_word=$2
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686$as_echo_n "checking for $ac_word... " >&6; }
2687if ${ac_cv_prog_CC+:} false; then :
7083c021 2688 $as_echo_n "(cached) " >&6
212380e3 2689else
eec2776c
AJ
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2692else
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2694for as_dir in $PATH
2695do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
eec2776c
AJ
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704done
7083c021 2705 done
631ef239 2706IFS=$as_save_IFS
212380e3 2707
212380e3 2708fi
7083c021 2709fi
eec2776c
AJ
2710CC=$ac_cv_prog_CC
2711if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713$as_echo "$CC" >&6; }
2714else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716$as_echo "no" >&6; }
2717fi
212380e3 2718
c52df125 2719
eec2776c
AJ
2720fi
2721if test -z "$ac_cv_prog_CC"; then
2722 ac_ct_CC=$CC
2723 # Extract the first word of "gcc", so it can be a program name with args.
2724set dummy gcc; ac_word=$2
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726$as_echo_n "checking for $ac_word... " >&6; }
2727if ${ac_cv_prog_ac_ct_CC+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729else
2730 if test -n "$ac_ct_CC"; then
2731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732else
2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734for as_dir in $PATH
2735do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_ac_ct_CC="gcc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744done
2745 done
2746IFS=$as_save_IFS
c52df125 2747
eec2776c
AJ
2748fi
2749fi
2750ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751if test -n "$ac_ct_CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753$as_echo "$ac_ct_CC" >&6; }
2754else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756$as_echo "no" >&6; }
2757fi
c52df125 2758
eec2776c
AJ
2759 if test "x$ac_ct_CC" = x; then
2760 CC=""
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763yes:)
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766ac_tool_warned=yes ;;
c52df125 2767esac
eec2776c
AJ
2768 CC=$ac_ct_CC
2769 fi
c52df125 2770else
eec2776c 2771 CC="$ac_cv_prog_CC"
c52df125
AC
2772fi
2773
eec2776c
AJ
2774if test -z "$CC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}cc; ac_word=$2
7083c021
AC
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 2780if ${ac_cv_prog_CC+:} false; then :
7083c021 2781 $as_echo_n "(cached) " >&6
212380e3 2782else
eec2776c
AJ
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
7083c021
AC
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
7083c021 2791 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 2793 ac_cv_prog_CC="${ac_tool_prefix}cc"
7083c021 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2795 break 2
2796 fi
2797done
7083c021 2798 done
631ef239 2799IFS=$as_save_IFS
7083c021 2800
212380e3 2801fi
7083c021 2802fi
eec2776c
AJ
2803CC=$ac_cv_prog_CC
2804if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806$as_echo "$CC" >&6; }
212380e3 2807else
7083c021
AC
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
212380e3
AC
2810fi
2811
631ef239 2812
eec2776c 2813 fi
7083c021 2814fi
eec2776c
AJ
2815if test -z "$CC"; then
2816 # Extract the first word of "cc", so it can be a program name with args.
2817set dummy cc; ac_word=$2
7083c021
AC
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 2820if ${ac_cv_prog_CC+:} false; then :
7083c021 2821 $as_echo_n "(cached) " >&6
212380e3 2822else
eec2776c
AJ
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
7083c021 2825else
eec2776c 2826 ac_prog_rejected=no
7083c021 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
7083c021 2832 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c
AJ
2834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2836 continue
2837 fi
2838 ac_cv_prog_CC="cc"
7083c021 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2840 break 2
2841 fi
2842done
7083c021 2843 done
631ef239 2844IFS=$as_save_IFS
212380e3 2845
eec2776c
AJ
2846if test $ac_prog_rejected = yes; then
2847 # We found a bogon in the path, so make sure we never use it.
2848 set dummy $ac_cv_prog_CC
2849 shift
2850 if test $# != 0; then
2851 # We chose a different compiler from the bogus one.
2852 # However, it has the same basename, so the bogon will be chosen
2853 # first if we set CC to just the basename; use the full file name.
2854 shift
2855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2856 fi
212380e3 2857fi
7083c021 2858fi
eec2776c
AJ
2859fi
2860CC=$ac_cv_prog_CC
2861if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863$as_echo "$CC" >&6; }
212380e3 2864else
7083c021
AC
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866$as_echo "no" >&6; }
212380e3
AC
2867fi
2868
631ef239 2869
212380e3 2870fi
eec2776c
AJ
2871if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in cl.exe
2874 do
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7083c021
AC
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 2879if ${ac_cv_prog_CC+:} false; then :
7083c021 2880 $as_echo_n "(cached) " >&6
212380e3 2881else
eec2776c
AJ
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
7083c021 2890 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 2892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7083c021 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2894 break 2
2895 fi
2896done
7083c021 2897 done
631ef239 2898IFS=$as_save_IFS
212380e3
AC
2899
2900fi
2901fi
eec2776c
AJ
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905$as_echo "$CC" >&6; }
212380e3 2906else
7083c021
AC
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908$as_echo "no" >&6; }
212380e3
AC
2909fi
2910
631ef239 2911
eec2776c
AJ
2912 test -n "$CC" && break
2913 done
2914fi
2915if test -z "$CC"; then
2916 ac_ct_CC=$CC
2917 for ac_prog in cl.exe
2918do
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920set dummy $ac_prog; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if ${ac_cv_prog_ac_ct_CC+:} false; then :
c52df125
AC
2924 $as_echo_n "(cached) " >&6
2925else
eec2776c
AJ
2926 if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_ac_ct_CC="$ac_prog"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940done
2941 done
2942IFS=$as_save_IFS
2943
c52df125 2944fi
eec2776c
AJ
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949$as_echo "$ac_ct_CC" >&6; }
c52df125
AC
2950else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
c52df125
AC
2953fi
2954
c52df125 2955
eec2776c
AJ
2956 test -n "$ac_ct_CC" && break
2957done
c52df125 2958
eec2776c
AJ
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
c52df125 2967esac
eec2776c 2968 CC=$ac_ct_CC
c52df125
AC
2969 fi
2970fi
2971
c52df125
AC
2972fi
2973
2974
eec2776c
AJ
2975test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977as_fn_error $? "no acceptable C compiler found in \$PATH
2978See \`config.log' for more details" "$LINENO" 5; }
c52df125 2979
eec2776c
AJ
2980# Provide some information about the compiler.
2981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2982set X $ac_compile
2983ac_compiler=$2
2984for ac_option in --version -v -V -qversion; do
2985 { { ac_try="$ac_compiler $ac_option >&5"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993 ac_status=$?
2994 if test -s conftest.err; then
2995 sed '10a\
2996... rest of stderr output deleted ...
2997 10q' conftest.err >conftest.er1
2998 cat conftest.er1 >&5
2999 fi
3000 rm -f conftest.er1 conftest.err
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }
3003done
c52df125 3004
eec2776c
AJ
3005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006/* end confdefs.h. */
c52df125 3007
eec2776c
AJ
3008int
3009main ()
3010{
c52df125 3011
eec2776c
AJ
3012 ;
3013 return 0;
3014}
c52df125 3015_ACEOF
eec2776c
AJ
3016ac_clean_files_save=$ac_clean_files
3017ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3018# Try to create an executable without -o first, disregard a.out.
3019# It will help us diagnose broken compilers, and finding out an intuition
3020# of exeext.
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3022$as_echo_n "checking whether the C compiler works... " >&6; }
3023ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
c52df125 3024
eec2776c
AJ
3025# The possible output files:
3026ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
c52df125 3027
eec2776c
AJ
3028ac_rmfiles=
3029for ac_file in $ac_files
3030do
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3033 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3034 esac
3035done
3036rm -f $ac_rmfiles
c52df125 3037
eec2776c
AJ
3038if { { ac_try="$ac_link_default"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link_default") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; then :
3049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051# in a Makefile. We should not override ac_cv_exeext if it was cached,
3052# so that the user can short-circuit this test for compilers unknown to
3053# Autoconf.
3054for ac_file in $ac_files ''
3055do
3056 test -f "$ac_file" || continue
3057 case $ac_file in
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3059 ;;
3060 [ab].out )
3061 # We found the default executable, but exeext='' is most
3062 # certainly right.
3063 break;;
3064 *.* )
3065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066 then :; else
3067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 fi
3069 # We set ac_cv_exeext here because the later test for it is not
3070 # safe: cross compilers may not add the suffix if given an `-o'
3071 # argument, so we may need to know it at that point already.
3072 # Even if this section looks crufty: it has the advantage of
3073 # actually working.
3074 break;;
3075 * )
3076 break;;
3077 esac
3078done
3079test "$ac_cv_exeext" = no && ac_cv_exeext=
c52df125 3080
eec2776c
AJ
3081else
3082 ac_file=''
3083fi
3084if test -z "$ac_file"; then :
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087$as_echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
c52df125 3089
eec2776c
AJ
3090{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error 77 "C compiler cannot create executables
3093See \`config.log' for more details" "$LINENO" 5; }
3094else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096$as_echo "yes" >&6; }
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3099$as_echo_n "checking for C compiler default output file name... " >&6; }
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101$as_echo "$ac_file" >&6; }
3102ac_exeext=$ac_cv_exeext
c52df125 3103
eec2776c
AJ
3104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105ac_clean_files=$ac_clean_files_save
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3107$as_echo_n "checking for suffix of executables... " >&6; }
3108if { { ac_try="$ac_link"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3121# work properly (i.e., refer to `conftest.exe'), while it won't with
3122# `rm'.
3123for ac_file in conftest.exe conftest conftest.*; do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128 break;;
3129 * ) break;;
3130 esac
3131done
3132else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3136See \`config.log' for more details" "$LINENO" 5; }
3137fi
3138rm -f conftest conftest$ac_cv_exeext
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3140$as_echo "$ac_cv_exeext" >&6; }
c52df125 3141
eec2776c
AJ
3142rm -f conftest.$ac_ext
3143EXEEXT=$ac_cv_exeext
3144ac_exeext=$EXEEXT
3145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h. */
3147#include <stdio.h>
3148int
3149main ()
3150{
3151FILE *f = fopen ("conftest.out", "w");
3152 return ferror (f) || fclose (f) != 0;
c52df125 3153
eec2776c
AJ
3154 ;
3155 return 0;
3156}
3157_ACEOF
3158ac_clean_files="$ac_clean_files conftest.out"
3159# Check that the compiler produces executables we can run. If not, either
3160# the compiler is broken, or we cross compile.
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3162$as_echo_n "checking whether we are cross compiling... " >&6; }
3163if test "$cross_compiling" != yes; then
3164 { { ac_try="$ac_link"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3175 if { ac_try='./conftest$ac_cv_exeext'
3176 { { case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; }; then
3186 cross_compiling=no
c52df125 3187 else
eec2776c
AJ
3188 if test "$cross_compiling" = maybe; then
3189 cross_compiling=yes
3190 else
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193as_fn_error $? "cannot run C compiled programs.
3194If you meant to cross compile, use \`--host'.
3195See \`config.log' for more details" "$LINENO" 5; }
3196 fi
c52df125
AC
3197 fi
3198fi
eec2776c
AJ
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
c52df125 3201
eec2776c
AJ
3202rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3203ac_clean_files=$ac_clean_files_save
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3205$as_echo_n "checking for suffix of object files... " >&6; }
3206if ${ac_cv_objext+:} false; then :
c52df125
AC
3207 $as_echo_n "(cached) " >&6
3208else
eec2776c
AJ
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220rm -f conftest.o conftest.obj
3221if { { ac_try="$ac_compile"
3222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compile") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
3232 for ac_file in conftest.o conftest.obj conftest.*; do
3233 test -f "$ac_file" || continue;
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3237 break;;
3238 esac
3239done
c52df125 3240else
eec2776c
AJ
3241 $as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error $? "cannot compute suffix of object files: cannot compile
3247See \`config.log' for more details" "$LINENO" 5; }
c52df125 3248fi
eec2776c 3249rm -f conftest.$ac_cv_objext conftest.$ac_ext
c52df125 3250fi
eec2776c
AJ
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3252$as_echo "$ac_cv_objext" >&6; }
3253OBJEXT=$ac_cv_objext
3254ac_objext=$OBJEXT
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3256$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3257if ${ac_cv_c_compiler_gnu+:} false; then :
3258 $as_echo_n "(cached) " >&6
c52df125 3259else
eec2776c
AJ
3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261/* end confdefs.h. */
c52df125 3262
eec2776c
AJ
3263int
3264main ()
3265{
3266#ifndef __GNUC__
3267 choke me
3268#endif
c52df125 3269
eec2776c
AJ
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_compiler_gnu=yes
3276else
3277 ac_compiler_gnu=no
c52df125 3278fi
eec2776c
AJ
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
c52df125 3281
c52df125 3282fi
eec2776c
AJ
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286 GCC=yes
c52df125 3287else
eec2776c 3288 GCC=
c52df125 3289fi
eec2776c
AJ
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3293$as_echo_n "checking whether $CC accepts -g... " >&6; }
3294if ${ac_cv_prog_cc_g+:} false; then :
c52df125
AC
3295 $as_echo_n "(cached) " >&6
3296else
eec2776c
AJ
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h. */
c52df125 3303
eec2776c
AJ
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_cv_prog_cc_g=yes
c52df125 3314else
eec2776c
AJ
3315 CFLAGS=""
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h. */
c52df125 3318
eec2776c
AJ
3319int
3320main ()
3321{
3322
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
c52df125 3328
c52df125 3329else
eec2776c
AJ
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331 CFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h. */
3334
3335int
3336main ()
3337{
c52df125 3338
eec2776c
AJ
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_g=yes
c52df125 3345fi
eec2776c 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c52df125 3347fi
eec2776c 3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c52df125 3349fi
eec2776c
AJ
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3354$as_echo "$ac_cv_prog_cc_g" >&6; }
3355if test "$ac_test_CFLAGS" = set; then
3356 CFLAGS=$ac_save_CFLAGS
3357elif test $ac_cv_prog_cc_g = yes; then
3358 if test "$GCC" = yes; then
3359 CFLAGS="-g -O2"
7083c021 3360 else
eec2776c 3361 CFLAGS="-g"
7083c021 3362 fi
c52df125 3363else
eec2776c
AJ
3364 if test "$GCC" = yes; then
3365 CFLAGS="-O2"
3366 else
3367 CFLAGS=
c52df125 3368 fi
c52df125 3369fi
eec2776c
AJ
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3371$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3372if ${ac_cv_prog_cc_c89+:} false; then :
3373 $as_echo_n "(cached) " >&6
c52df125 3374else
eec2776c
AJ
3375 ac_cv_prog_cc_c89=no
3376ac_save_CC=$CC
3377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379#include <stdarg.h>
3380#include <stdio.h>
3381struct stat;
3382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383struct buf { int x; };
3384FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385static char *e (p, i)
3386 char **p;
3387 int i;
3388{
3389 return p[i];
3390}
3391static char *f (char * (*g) (char **, int), char **p, ...)
3392{
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3399}
3400
3401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408int osf4_cc_array ['\x00' == 0 ? 1 : -1];
c52df125 3409
eec2776c
AJ
3410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3412#define FOO(x) 'x'
3413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
c52df125 3414
eec2776c
AJ
3415int test (int i, double x);
3416struct s1 {int (*f) (int a);};
3417struct s2 {int (*f) (double a);};
3418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419int argc;
3420char **argv;
3421int
3422main ()
3423{
3424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 ;
3426 return 0;
3427}
3428_ACEOF
3429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c52df125 3431do
eec2776c
AJ
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3435fi
3436rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
c52df125 3438done
eec2776c
AJ
3439rm -f conftest.$ac_ext
3440CC=$ac_save_CC
c52df125 3441
c52df125 3442fi
eec2776c
AJ
3443# AC_CACHE_VAL
3444case "x$ac_cv_prog_cc_c89" in
3445 x)
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447$as_echo "none needed" >&6; } ;;
3448 xno)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450$as_echo "unsupported" >&6; } ;;
3451 *)
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3455esac
3456if test "x$ac_cv_prog_cc_c89" != xno; then :
3457
c52df125
AC
3458fi
3459
eec2776c
AJ
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 3465
eec2776c
AJ
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3472$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3473if ${am_cv_prog_cc_c_o+:} false; then :
c52df125
AC
3474 $as_echo_n "(cached) " >&6
3475else
eec2776c
AJ
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
c52df125 3478
eec2776c
AJ
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487 # Make sure it works both with $CC and with simple cc.
3488 # Following AC_PROG_CC_C_O, we do the test twice because some
3489 # compilers refuse to overwrite an existing .o file with -o,
3490 # though they will create one.
3491 am_cv_prog_cc_c_o=yes
3492 for am_i in 1 2; do
3493 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3494 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } \
3498 && test -f conftest2.$ac_objext; then
3499 : OK
3500 else
3501 am_cv_prog_cc_c_o=no
3502 break
3503 fi
3504 done
3505 rm -f core conftest*
3506 unset am_i
c52df125 3507fi
eec2776c
AJ
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3509$as_echo "$am_cv_prog_cc_c_o" >&6; }
3510if test "$am_cv_prog_cc_c_o" != yes; then
3511 # Losing compiler, so override with the script.
3512 # FIXME: It is wrong to rewrite CC.
3513 # But if we don't then we get into trouble of one sort or another.
3514 # A longer-term fix would be to have automake use am__CC in this case,
3515 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3516 CC="$am_aux_dir/compile $CC"
c52df125 3517fi
eec2776c
AJ
3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
3523
3524
eec2776c
AJ
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3526$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3527if ${ac_cv_prog_cc_c99+:} false; then :
c52df125
AC
3528 $as_echo_n "(cached) " >&6
3529else
eec2776c
AJ
3530 ac_cv_prog_cc_c99=no
3531ac_save_CC=$CC
3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h. */
3534#include <stdarg.h>
3535#include <stdbool.h>
3536#include <stdlib.h>
3537#include <wchar.h>
3538#include <stdio.h>
c52df125 3539
eec2776c
AJ
3540// Check varargs macros. These examples are taken from C99 6.10.3.5.
3541#define debug(...) fprintf (stderr, __VA_ARGS__)
3542#define showlist(...) puts (#__VA_ARGS__)
3543#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3544static void
3545test_varargs_macros (void)
3546{
3547 int x = 1234;
3548 int y = 5678;
3549 debug ("Flag");
3550 debug ("X = %d\n", x);
3551 showlist (The first, second, and third items.);
3552 report (x>y, "x is %d but y is %d", x, y);
3553}
c52df125 3554
eec2776c
AJ
3555// Check long long types.
3556#define BIG64 18446744073709551615ull
3557#define BIG32 4294967295ul
3558#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3559#if !BIG_OK
3560 your preprocessor is broken;
3561#endif
3562#if BIG_OK
3563#else
3564 your preprocessor is broken;
3565#endif
3566static long long int bignum = -9223372036854775807LL;
3567static unsigned long long int ubignum = BIG64;
c52df125 3568
eec2776c
AJ
3569struct incomplete_array
3570{
3571 int datasize;
3572 double data[];
3573};
c52df125 3574
eec2776c
AJ
3575struct named_init {
3576 int number;
3577 const wchar_t *name;
3578 double average;
3579};
c52df125 3580
eec2776c 3581typedef const char *ccp;
c52df125 3582
eec2776c
AJ
3583static inline int
3584test_restrict (ccp restrict text)
3585{
3586 // See if C++-style comments work.
3587 // Iterate through items via the restricted pointer.
3588 // Also check for declarations in for loops.
3589 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3590 continue;
3591 return 0;
3592}
c52df125 3593
eec2776c
AJ
3594// Check varargs and va_copy.
3595static void
3596test_varargs (const char *format, ...)
3597{
3598 va_list args;
3599 va_start (args, format);
3600 va_list args_copy;
3601 va_copy (args_copy, args);
c52df125 3602
eec2776c
AJ
3603 const char *str;
3604 int number;
3605 float fnumber;
3606
3607 while (*format)
3608 {
3609 switch (*format++)
3610 {
3611 case 's': // string
3612 str = va_arg (args_copy, const char *);
3613 break;
3614 case 'd': // int
3615 number = va_arg (args_copy, int);
3616 break;
3617 case 'f': // float
3618 fnumber = va_arg (args_copy, double);
3619 break;
3620 default:
3621 break;
3622 }
3623 }
3624 va_end (args_copy);
3625 va_end (args);
3626}
c52df125
AC
3627
3628int
3629main ()
3630{
3631
eec2776c
AJ
3632 // Check bool.
3633 _Bool success = false;
3634
3635 // Check restrict.
3636 if (test_restrict ("String literal") == 0)
3637 success = true;
3638 char *restrict newvar = "Another string";
3639
3640 // Check varargs.
3641 test_varargs ("s, d' f .", "string", 65, 34.234);
3642 test_varargs_macros ();
3643
3644 // Check flexible array members.
3645 struct incomplete_array *ia =
3646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3647 ia->datasize = 10;
3648 for (int i = 0; i < ia->datasize; ++i)
3649 ia->data[i] = i * 1.234;
3650
3651 // Check named initializers.
3652 struct named_init ni = {
3653 .number = 34,
3654 .name = L"Test wide string",
3655 .average = 543.34343,
3656 };
3657
3658 ni.number = 58;
3659
3660 int dynamic_array[ni.number];
3661 dynamic_array[ni.number - 1] = 543;
3662
3663 // work around unused variable warnings
3664 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3665 || dynamic_array[ni.number - 1] != 543);
3666
c52df125
AC
3667 ;
3668 return 0;
3669}
3670_ACEOF
eec2776c 3671for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
c52df125 3672do
eec2776c
AJ
3673 CC="$ac_save_CC $ac_arg"
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_c99=$ac_arg
3676fi
3677rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c99" != "xno" && break
c52df125 3679done
eec2776c
AJ
3680rm -f conftest.$ac_ext
3681CC=$ac_save_CC
c52df125 3682
c52df125 3683fi
eec2776c
AJ
3684# AC_CACHE_VAL
3685case "x$ac_cv_prog_cc_c99" in
3686 x)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688$as_echo "none needed" >&6; } ;;
3689 xno)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691$as_echo "unsupported" >&6; } ;;
3692 *)
3693 CC="$CC $ac_cv_prog_cc_c99"
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3695$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
c52df125 3696esac
eec2776c
AJ
3697if test "x$ac_cv_prog_cc_c99" != xno; then :
3698
c52df125 3699fi
c52df125 3700
c52df125 3701
c52df125 3702
eec2776c
AJ
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3709$as_echo_n "checking how to run the C preprocessor... " >&6; }
3710# On Suns, sometimes $CPP names a directory.
3711if test -n "$CPP" && test -d "$CPP"; then
3712 CPP=
3713fi
3714if test -z "$CPP"; then
3715 if ${ac_cv_prog_CPP+:} false; then :
c52df125
AC
3716 $as_echo_n "(cached) " >&6
3717else
eec2776c
AJ
3718 # Double quotes because CPP needs to be expanded
3719 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3720 do
3721 ac_preproc_ok=false
3722for ac_c_preproc_warn_flag in '' yes
3723do
3724 # Use a header file that comes with gcc, so configuring glibc
3725 # with a fresh cross-compiler works.
3726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727 # <limits.h> exists even on freestanding compilers.
3728 # On the NeXT, cc -E runs the code through the compiler's parser,
3729 # not just through cpp. "Syntax error" is here to catch this case.
c52df125
AC
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h. */
eec2776c
AJ
3732#ifdef __STDC__
3733# include <limits.h>
3734#else
3735# include <assert.h>
3736#endif
3737 Syntax error
c52df125 3738_ACEOF
eec2776c 3739if ac_fn_c_try_cpp "$LINENO"; then :
c52df125 3740
c52df125 3741else
eec2776c
AJ
3742 # Broken: fails on valid input.
3743continue
3744fi
3745rm -f conftest.err conftest.i conftest.$ac_ext
3746
3747 # OK, works on sane cases. Now check whether nonexistent headers
3748 # can be detected and how.
c52df125
AC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
eec2776c 3751#include <ac_nonexistent.h>
c52df125 3752_ACEOF
eec2776c
AJ
3753if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: success on invalid input.
3755continue
c52df125 3756else
eec2776c
AJ
3757 # Passes both tests.
3758ac_preproc_ok=:
3759break
c52df125 3760fi
eec2776c 3761rm -f conftest.err conftest.i conftest.$ac_ext
c52df125 3762
eec2776c
AJ
3763done
3764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765rm -f conftest.i conftest.err conftest.$ac_ext
3766if $ac_preproc_ok; then :
3767 break
c52df125 3768fi
eec2776c
AJ
3769
3770 done
3771 ac_cv_prog_CPP=$CPP
3772
c52df125 3773fi
eec2776c 3774 CPP=$ac_cv_prog_CPP
c52df125 3775else
eec2776c
AJ
3776 ac_cv_prog_CPP=$CPP
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3779$as_echo "$CPP" >&6; }
3780ac_preproc_ok=false
3781for ac_c_preproc_warn_flag in '' yes
3782do
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c52df125 3790/* end confdefs.h. */
eec2776c
AJ
3791#ifdef __STDC__
3792# include <limits.h>
3793#else
3794# include <assert.h>
3795#endif
3796 Syntax error
3797_ACEOF
3798if ac_fn_c_try_cpp "$LINENO"; then :
c52df125 3799
eec2776c
AJ
3800else
3801 # Broken: fails on valid input.
3802continue
3803fi
3804rm -f conftest.err conftest.i conftest.$ac_ext
c52df125 3805
eec2776c
AJ
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h. */
3810#include <ac_nonexistent.h>
c52df125 3811_ACEOF
eec2776c
AJ
3812if ac_fn_c_try_cpp "$LINENO"; then :
3813 # Broken: success on invalid input.
3814continue
c52df125 3815else
eec2776c
AJ
3816 # Passes both tests.
3817ac_preproc_ok=:
3818break
3819fi
3820rm -f conftest.err conftest.i conftest.$ac_ext
c52df125 3821
eec2776c
AJ
3822done
3823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824rm -f conftest.i conftest.err conftest.$ac_ext
3825if $ac_preproc_ok; then :
3826
3827else
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3831See \`config.log' for more details" "$LINENO" 5; }
3832fi
3833
3834ac_ext=c
3835ac_cpp='$CPP $CPPFLAGS'
3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 3839
c52df125 3840
eec2776c
AJ
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3842$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3843if ${ac_cv_path_GREP+:} false; then :
3844 $as_echo_n "(cached) " >&6
c52df125 3845else
eec2776c
AJ
3846 if test -z "$GREP"; then
3847 ac_path_GREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in grep ggrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3857 as_fn_executable_p "$ac_path_GREP" || continue
3858# Check for GNU ac_path_GREP and select it if it is found.
3859 # Check for GNU $ac_path_GREP
3860case `"$ac_path_GREP" --version 2>&1` in
3861*GNU*)
3862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3863*)
3864 ac_count=0
3865 $as_echo_n 0123456789 >"conftest.in"
3866 while :
3867 do
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'GREP' >> "conftest.nl"
3872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_GREP="$ac_path_GREP"
3878 ac_path_GREP_max=$ac_count
3879 fi
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3882 done
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884esac
3885
3886 $ac_path_GREP_found && break 3
3887 done
3888 done
3889 done
3890IFS=$as_save_IFS
3891 if test -z "$ac_cv_path_GREP"; then
3892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3893 fi
3894else
3895 ac_cv_path_GREP=$GREP
3896fi
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3900$as_echo "$ac_cv_path_GREP" >&6; }
3901 GREP="$ac_cv_path_GREP"
3902
3903
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3905$as_echo_n "checking for egrep... " >&6; }
3906if ${ac_cv_path_EGREP+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908else
3909 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3910 then ac_cv_path_EGREP="$GREP -E"
3911 else
3912 if test -z "$EGREP"; then
3913 ac_path_EGREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in egrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3923 as_fn_executable_p "$ac_path_EGREP" || continue
3924# Check for GNU ac_path_EGREP and select it if it is found.
3925 # Check for GNU $ac_path_EGREP
3926case `"$ac_path_EGREP" --version 2>&1` in
3927*GNU*)
3928 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3929*)
3930 ac_count=0
3931 $as_echo_n 0123456789 >"conftest.in"
3932 while :
3933 do
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 $as_echo 'EGREP' >> "conftest.nl"
3938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 as_fn_arith $ac_count + 1 && ac_count=$as_val
3941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_EGREP="$ac_path_EGREP"
3944 ac_path_EGREP_max=$ac_count
3945 fi
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952 $ac_path_EGREP_found && break 3
3953 done
3954 done
3955 done
3956IFS=$as_save_IFS
3957 if test -z "$ac_cv_path_EGREP"; then
3958 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3959 fi
3960else
3961 ac_cv_path_EGREP=$EGREP
3962fi
3963
3964 fi
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3967$as_echo "$ac_cv_path_EGREP" >&6; }
3968 EGREP="$ac_cv_path_EGREP"
3969
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3972$as_echo_n "checking for ANSI C header files... " >&6; }
3973if ${ac_cv_header_stdc+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c52df125 3977/* end confdefs.h. */
eec2776c
AJ
3978#include <stdlib.h>
3979#include <stdarg.h>
3980#include <string.h>
3981#include <float.h>
c52df125
AC
3982
3983int
3984main ()
3985{
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
eec2776c
AJ
3992 ac_cv_header_stdc=yes
3993else
3994 ac_cv_header_stdc=no
c52df125
AC
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eec2776c
AJ
3997
3998if test $ac_cv_header_stdc = yes; then
3999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h. */
4002#include <string.h>
4003
4004_ACEOF
4005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 $EGREP "memchr" >/dev/null 2>&1; then :
4007
4008else
4009 ac_cv_header_stdc=no
c52df125 4010fi
eec2776c
AJ
4011rm -f conftest*
4012
c52df125 4013fi
eec2776c
AJ
4014
4015if test $ac_cv_header_stdc = yes; then
4016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c52df125 4018/* end confdefs.h. */
eec2776c 4019#include <stdlib.h>
c52df125 4020
eec2776c
AJ
4021_ACEOF
4022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "free" >/dev/null 2>&1; then :
c52df125 4024
eec2776c
AJ
4025else
4026 ac_cv_header_stdc=no
4027fi
4028rm -f conftest*
c52df125 4029
eec2776c
AJ
4030fi
4031
4032if test $ac_cv_header_stdc = yes; then
4033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4034 if test "$cross_compiling" = yes; then :
4035 :
4036else
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h. */
4039#include <ctype.h>
4040#include <stdlib.h>
4041#if ((' ' & 0x0FF) == 0x020)
4042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044#else
4045# define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
4051
4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
c52df125
AC
4053int
4054main ()
4055{
eec2776c
AJ
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 return 2;
c52df125
AC
4061 return 0;
4062}
4063_ACEOF
eec2776c
AJ
4064if ac_fn_c_try_run "$LINENO"; then :
4065
4066else
4067 ac_cv_header_stdc=no
4068fi
4069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070 conftest.$ac_objext conftest.beam conftest.$ac_ext
c52df125 4071fi
c52df125
AC
4072
4073fi
eec2776c
AJ
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4076$as_echo "$ac_cv_header_stdc" >&6; }
4077if test $ac_cv_header_stdc = yes; then
4078
4079$as_echo "#define STDC_HEADERS 1" >>confdefs.h
c52df125
AC
4080
4081fi
4082
eec2776c
AJ
4083# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4085 inttypes.h stdint.h unistd.h
4086do :
4087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4088ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4089"
4090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4091 cat >>confdefs.h <<_ACEOF
4092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4093_ACEOF
c52df125 4094
eec2776c
AJ
4095fi
4096
4097done
4098
4099
4100
4101 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4102if test "x$ac_cv_header_minix_config_h" = xyes; then :
4103 MINIX=yes
4104else
4105 MINIX=
4106fi
4107
4108
4109 if test "$MINIX" = yes; then
4110
4111$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4112
4113
4114$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4115
4116
4117$as_echo "#define _MINIX 1" >>confdefs.h
4118
4119 fi
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4123$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4124if ${ac_cv_safe_to_define___extensions__+:} false; then :
c52df125
AC
4125 $as_echo_n "(cached) " >&6
4126else
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h. */
4129
eec2776c
AJ
4130# define __EXTENSIONS__ 1
4131 $ac_includes_default
c52df125
AC
4132int
4133main ()
4134{
4135
4136 ;
4137 return 0;
4138}
4139_ACEOF
eec2776c
AJ
4140if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_safe_to_define___extensions__=yes
4142else
4143 ac_cv_safe_to_define___extensions__=no
c52df125 4144fi
eec2776c 4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c52df125 4146fi
eec2776c
AJ
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4148$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4149 test $ac_cv_safe_to_define___extensions__ = yes &&
4150 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
c52df125 4151
eec2776c 4152 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
c52df125 4153
eec2776c 4154 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
c52df125 4155
eec2776c 4156 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
c52df125 4157
eec2776c 4158 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
c52df125 4159
c52df125 4160
c52df125 4161
c52df125 4162
c52df125 4163
c52df125 4164
eec2776c 4165ac_config_headers="$ac_config_headers include/setup.h"
c52df125
AC
4166
4167
eec2776c
AJ
4168
4169subdirs="$subdirs libratbox"
4170
4171ac_aux_dir=
4172for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
4173 if test -f "$ac_dir/install-sh"; then
4174 ac_aux_dir=$ac_dir
4175 ac_install_sh="$ac_aux_dir/install-sh -c"
4176 break
4177 elif test -f "$ac_dir/install.sh"; then
4178 ac_aux_dir=$ac_dir
4179 ac_install_sh="$ac_aux_dir/install.sh -c"
4180 break
4181 elif test -f "$ac_dir/shtool"; then
4182 ac_aux_dir=$ac_dir
4183 ac_install_sh="$ac_aux_dir/shtool install -c"
4184 break
c52df125
AC
4185 fi
4186done
eec2776c
AJ
4187if test -z "$ac_aux_dir"; then
4188 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
c52df125
AC
4189fi
4190
eec2776c
AJ
4191# These three variables are undocumented and unsupported,
4192# and are intended to be withdrawn in a future Autoconf release.
4193# They can cause serious problems if a builder's source tree is in a directory
4194# whose full name contains unusual characters.
4195ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4196ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4197ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4198
c52df125 4199
eec2776c
AJ
4200
4201
4202am__api_version='1.15'
4203
4204# Find a good install program. We prefer a C program (faster),
4205# so one script is as good as another. But avoid the broken or
4206# incompatible versions:
4207# SysV /etc/install, /usr/sbin/install
4208# SunOS /usr/etc/install
4209# IRIX /sbin/install
4210# AIX /bin/install
4211# AmigaOS /C/install, which installs bootblocks on floppy discs
4212# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4213# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4214# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4215# OS/2's system install, which has a completely different semantic
4216# ./install, which can be erroneously created by make from ./install.sh.
4217# Reject install programs that cannot install multiple files.
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4219$as_echo_n "checking for a BSD-compatible install... " >&6; }
4220if test -z "$INSTALL"; then
4221if ${ac_cv_path_install+:} false; then :
c52df125
AC
4222 $as_echo_n "(cached) " >&6
4223else
eec2776c 4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c52df125
AC
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
eec2776c
AJ
4229 # Account for people who put trailing slashes in PATH elements.
4230case $as_dir/ in #((
4231 ./ | .// | /[cC]/* | \
4232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4233 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4234 /usr/ucb/* ) ;;
4235 *)
4236 # OSF1 and SCO ODT 3.0 have their own names for install.
4237 # Don't use installbsd from OSF since it installs stuff as root
4238 # by default.
4239 for ac_prog in ginstall scoinst install; do
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4242 if test $ac_prog = install &&
4243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4244 # AIX install. It has an incompatible calling convention.
4245 :
4246 elif test $ac_prog = install &&
4247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4248 # program-specific install script used by HP pwplus--don't use.
4249 :
4250 else
4251 rm -rf conftest.one conftest.two conftest.dir
4252 echo one > conftest.one
4253 echo two > conftest.two
4254 mkdir conftest.dir
4255 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4256 test -s conftest.one && test -s conftest.two &&
4257 test -s conftest.dir/conftest.one &&
4258 test -s conftest.dir/conftest.two
4259 then
4260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4261 break 3
4262 fi
4263 fi
4264 fi
4265 done
4266 done
4267 ;;
4268esac
4269
c52df125
AC
4270 done
4271IFS=$as_save_IFS
4272
eec2776c
AJ
4273rm -rf conftest.one conftest.two conftest.dir
4274
c52df125 4275fi
eec2776c
AJ
4276 if test "${ac_cv_path_install+set}" = set; then
4277 INSTALL=$ac_cv_path_install
4278 else
4279 # As a last resort, use the slow shell script. Don't cache a
4280 # value for INSTALL within a source directory, because that will
4281 # break other packages using the cache if that directory is
4282 # removed, or if the value is a relative name.
4283 INSTALL=$ac_install_sh
4284 fi
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4287$as_echo "$INSTALL" >&6; }
4288
4289# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4290# It thinks the first close brace ends the variable substitution.
4291test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4292
4293test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4294
4295test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4298$as_echo_n "checking whether build environment is sane... " >&6; }
4299# Reject unsafe characters in $srcdir or the absolute working directory
4300# name. Accept space and tab only in the latter.
4301am_lf='
4302'
4303case `pwd` in
4304 *[\\\"\#\$\&\'\`$am_lf]*)
4305 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4306esac
4307case $srcdir in
4308 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4309 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4310esac
4311
4312# Do 'set' in a subshell so we don't clobber the current shell's
4313# arguments. Must try -L first in case configure is actually a
4314# symlink; some systems play weird games with the mod time of symlinks
4315# (eg FreeBSD returns the mod time of the symlink's containing
4316# directory).
4317if (
4318 am_has_slept=no
4319 for am_try in 1 2; do
4320 echo "timestamp, slept: $am_has_slept" > conftest.file
4321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4322 if test "$*" = "X"; then
4323 # -L didn't work.
4324 set X `ls -t "$srcdir/configure" conftest.file`
4325 fi
4326 if test "$*" != "X $srcdir/configure conftest.file" \
4327 && test "$*" != "X conftest.file $srcdir/configure"; then
4328
4329 # If neither matched, then we have a broken ls. This can happen
4330 # if, for instance, CONFIG_SHELL is bash and it inherits a
4331 # broken ls alias from the environment. This has actually
4332 # happened. Such a system could not be considered "sane".
4333 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4334 alias in your environment" "$LINENO" 5
4335 fi
4336 if test "$2" = conftest.file || test $am_try -eq 2; then
4337 break
4338 fi
4339 # Just in case.
4340 sleep 1
4341 am_has_slept=yes
4342 done
4343 test "$2" = conftest.file
4344 )
4345then
4346 # Ok.
4347 :
4348else
4349 as_fn_error $? "newly created file is older than distributed files!
4350Check your system clock" "$LINENO" 5
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353$as_echo "yes" >&6; }
4354# If we didn't sleep, we still need to ensure time stamps of config.status and
4355# generated files are strictly newer.
4356am_sleep_pid=
4357if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4358 ( sleep 1 ) &
4359 am_sleep_pid=$!
4360fi
4361
4362rm -f conftest.file
4363
4364test "$program_prefix" != NONE &&
4365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4366# Use a double $ so make ignores it.
4367test "$program_suffix" != NONE &&
4368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4369# Double any \ or $.
4370# By default was `s,x,x', remove it if useless.
4371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4373
4374if test x"${MISSING+set}" != xset; then
4375 case $am_aux_dir in
4376 *\ * | *\ *)
4377 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4378 *)
4379 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4380 esac
4381fi
4382# Use eval to expand $SHELL
4383if eval "$MISSING --is-lightweight"; then
4384 am_missing_run="$MISSING "
4385else
4386 am_missing_run=
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4388$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4389fi
4390
4391if test x"${install_sh+set}" != xset; then
4392 case $am_aux_dir in
4393 *\ * | *\ *)
4394 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4395 *)
4396 install_sh="\${SHELL} $am_aux_dir/install-sh"
4397 esac
4398fi
4399
4400# Installed binaries are usually stripped using 'strip' when the user
4401# run "make install-strip". However 'strip' might not be the right
4402# tool to use in cross-compilation environments, therefore Automake
4403# will honor the 'STRIP' environment variable to overrule this program.
4404if test "$cross_compiling" != no; then
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4407set dummy ${ac_tool_prefix}strip; ac_word=$2
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409$as_echo_n "checking for $ac_word... " >&6; }
4410if ${ac_cv_prog_STRIP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412else
4413 if test -n "$STRIP"; then
4414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4426 fi
4427done
4428 done
4429IFS=$as_save_IFS
4430
4431fi
4432fi
4433STRIP=$ac_cv_prog_STRIP
4434if test -n "$STRIP"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4436$as_echo "$STRIP" >&6; }
c52df125
AC
4437else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439$as_echo "no" >&6; }
4440fi
4441
4442
eec2776c
AJ
4443fi
4444if test -z "$ac_cv_prog_STRIP"; then
4445 ac_ct_STRIP=$STRIP
4446 # Extract the first word of "strip", so it can be a program name with args.
4447set dummy strip; ac_word=$2
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449$as_echo_n "checking for $ac_word... " >&6; }
4450if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452else
4453 if test -n "$ac_ct_STRIP"; then
4454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_STRIP="strip"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
c52df125 4467done
eec2776c
AJ
4468 done
4469IFS=$as_save_IFS
c52df125 4470
eec2776c
AJ
4471fi
4472fi
4473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4474if test -n "$ac_ct_STRIP"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4476$as_echo "$ac_ct_STRIP" >&6; }
4477else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479$as_echo "no" >&6; }
4480fi
4481
4482 if test "x$ac_ct_STRIP" = x; then
4483 STRIP=":"
c52df125
AC
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486yes:)
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489ac_tool_warned=yes ;;
4490esac
eec2776c 4491 STRIP=$ac_ct_STRIP
c52df125 4492 fi
eec2776c
AJ
4493else
4494 STRIP="$ac_cv_prog_STRIP"
c52df125
AC
4495fi
4496
eec2776c
AJ
4497fi
4498INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
c52df125 4499
eec2776c
AJ
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4501$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4502if test -z "$MKDIR_P"; then
4503 if ${ac_cv_path_mkdir+:} false; then :
c52df125
AC
4504 $as_echo_n "(cached) " >&6
4505else
eec2776c
AJ
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in mkdir gmkdir; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4514 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4515 'mkdir (GNU coreutils) '* | \
4516 'mkdir (coreutils) '* | \
4517 'mkdir (fileutils) '4.1*)
4518 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4519 break 3;;
4520 esac
4521 done
4522 done
4523 done
4524IFS=$as_save_IFS
c52df125 4525
eec2776c 4526fi
c52df125 4527
eec2776c
AJ
4528 test -d ./--version && rmdir ./--version
4529 if test "${ac_cv_path_mkdir+set}" = set; then
4530 MKDIR_P="$ac_cv_path_mkdir -p"
4531 else
4532 # As a last resort, use the slow shell script. Don't cache a
4533 # value for MKDIR_P within a source directory, because that will
4534 # break other packages using the cache if that directory is
4535 # removed, or if the value is a relative name.
4536 MKDIR_P="$ac_install_sh -d"
4537 fi
c52df125 4538fi
eec2776c
AJ
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4540$as_echo "$MKDIR_P" >&6; }
4541
4542for ac_prog in gawk mawk nawk awk
4543do
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545set dummy $ac_prog; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_AWK+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$AWK"; then
4552 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_AWK="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
c52df125
AC
4568
4569fi
eec2776c
AJ
4570fi
4571AWK=$ac_cv_prog_AWK
4572if test -n "$AWK"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4574$as_echo "$AWK" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
c52df125 4579
c52df125 4580
eec2776c
AJ
4581 test -n "$AWK" && break
4582done
c52df125 4583
eec2776c
AJ
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4585$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4586set x ${MAKE-make}
4587ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4588if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590else
4591 cat >conftest.make <<\_ACEOF
4592SHELL = /bin/sh
4593all:
4594 @echo '@@@%%%=$(MAKE)=@@@%%%'
4595_ACEOF
4596# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4597case `${MAKE-make} -f conftest.make 2>/dev/null` in
4598 *@@@%%%=?*=@@@%%%*)
4599 eval ac_cv_prog_make_${ac_make}_set=yes;;
4600 *)
4601 eval ac_cv_prog_make_${ac_make}_set=no;;
c52df125 4602esac
eec2776c
AJ
4603rm -f conftest.make
4604fi
4605if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607$as_echo "yes" >&6; }
4608 SET_MAKE=
4609else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612 SET_MAKE="MAKE=${MAKE-make}"
4613fi
c52df125 4614
eec2776c
AJ
4615rm -rf .tst 2>/dev/null
4616mkdir .tst 2>/dev/null
4617if test -d .tst; then
4618 am__leading_dot=.
4619else
4620 am__leading_dot=_
4621fi
4622rmdir .tst 2>/dev/null
c52df125 4623
eec2776c 4624DEPDIR="${am__leading_dot}deps"
c52df125 4625
eec2776c 4626ac_config_commands="$ac_config_commands depfiles"
c52df125
AC
4627
4628
eec2776c
AJ
4629am_make=${MAKE-make}
4630cat > confinc << 'END'
4631am__doit:
4632 @echo this is the am__doit target
4633.PHONY: am__doit
4634END
4635# If we don't find an include directive, just comment out the code.
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4637$as_echo_n "checking for style of include used by $am_make... " >&6; }
4638am__include="#"
4639am__quote=
4640_am_result=none
4641# First try GNU make style include.
4642echo "include confinc" > confmf
4643# Ignore all kinds of additional output from 'make'.
4644case `$am_make -s -f confmf 2> /dev/null` in #(
4645*the\ am__doit\ target*)
4646 am__include=include
4647 am__quote=
4648 _am_result=GNU
4649 ;;
4650esac
4651# Now try BSD make style include.
4652if test "$am__include" = "#"; then
4653 echo '.include "confinc"' > confmf
4654 case `$am_make -s -f confmf 2> /dev/null` in #(
4655 *the\ am__doit\ target*)
4656 am__include=.include
4657 am__quote="\""
4658 _am_result=BSD
4659 ;;
4660 esac
4661fi
c52df125
AC
4662
4663
eec2776c
AJ
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4665$as_echo "$_am_result" >&6; }
4666rm -f confinc confmf
c52df125 4667
eec2776c
AJ
4668# Check whether --enable-dependency-tracking was given.
4669if test "${enable_dependency_tracking+set}" = set; then :
4670 enableval=$enable_dependency_tracking;
4671fi
c52df125 4672
eec2776c
AJ
4673if test "x$enable_dependency_tracking" != xno; then
4674 am_depcomp="$ac_aux_dir/depcomp"
4675 AMDEPBACKSLASH='\'
4676 am__nodep='_no'
4677fi
4678 if test "x$enable_dependency_tracking" != xno; then
4679 AMDEP_TRUE=
4680 AMDEP_FALSE='#'
4681else
4682 AMDEP_TRUE='#'
4683 AMDEP_FALSE=
4684fi
c52df125
AC
4685
4686
eec2776c
AJ
4687# Check whether --enable-silent-rules was given.
4688if test "${enable_silent_rules+set}" = set; then :
4689 enableval=$enable_silent_rules;
4690fi
c52df125 4691
eec2776c
AJ
4692case $enable_silent_rules in # (((
4693 yes) AM_DEFAULT_VERBOSITY=0;;
4694 no) AM_DEFAULT_VERBOSITY=1;;
4695 *) AM_DEFAULT_VERBOSITY=1;;
4696esac
4697am_make=${MAKE-make}
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4699$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4700if ${am_cv_make_support_nested_variables+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702else
4703 if $as_echo 'TRUE=$(BAR$(V))
4704BAR0=false
4705BAR1=true
4706V=1
4707am__doit:
4708 @$(TRUE)
4709.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4710 am_cv_make_support_nested_variables=yes
4711else
4712 am_cv_make_support_nested_variables=no
4713fi
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4716$as_echo "$am_cv_make_support_nested_variables" >&6; }
4717if test $am_cv_make_support_nested_variables = yes; then
4718 AM_V='$(V)'
4719 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4720else
4721 AM_V=$AM_DEFAULT_VERBOSITY
4722 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4723fi
4724AM_BACKSLASH='\'
c52df125 4725
eec2776c
AJ
4726if test "`cd $srcdir && pwd`" != "`pwd`"; then
4727 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4728 # is not polluted with repeated "-I."
4729 am__isrc=' -I$(srcdir)'
4730 # test to see if srcdir already configured
4731 if test -f $srcdir/config.status; then
4732 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4733 fi
4734fi
c52df125 4735
eec2776c
AJ
4736# test whether we have cygpath
4737if test -z "$CYGPATH_W"; then
4738 if (cygpath --version) >/dev/null 2>/dev/null; then
4739 CYGPATH_W='cygpath -w'
4740 else
4741 CYGPATH_W=echo
4742 fi
4743fi
c52df125
AC
4744
4745
eec2776c
AJ
4746# Define the identity of the package.
4747 PACKAGE='charybdis'
4748 VERSION='3.6.0-dev'
c52df125 4749
c52df125 4750
eec2776c
AJ
4751cat >>confdefs.h <<_ACEOF
4752#define PACKAGE "$PACKAGE"
4753_ACEOF
c52df125 4754
c52df125 4755
eec2776c
AJ
4756cat >>confdefs.h <<_ACEOF
4757#define VERSION "$VERSION"
4758_ACEOF
c52df125 4759
eec2776c 4760# Some tools Automake needs.
c52df125 4761
eec2776c 4762ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
c52df125 4763
c52df125 4764
eec2776c 4765AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
c52df125 4766
c52df125 4767
eec2776c 4768AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
c52df125 4769
c52df125 4770
eec2776c 4771AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
c52df125
AC
4772
4773
eec2776c 4774MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
c52df125 4775
eec2776c
AJ
4776# For better backward compatibility. To be removed once Automake 1.9.x
4777# dies out for good. For more background, see:
4778# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4779# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4780mkdir_p='$(MKDIR_P)'
c52df125 4781
eec2776c
AJ
4782# We need awk for the "check" target (and possibly the TAP driver). The
4783# system "awk" is bad on some platforms.
4784# Always define AMTAR for backward compatibility. Yes, it's still used
4785# in the wild :-( We should find a proper way to deprecate it ...
4786AMTAR='$${TAR-tar}'
c52df125
AC
4787
4788
eec2776c
AJ
4789# We'll loop over all known methods to create a tar archive until one works.
4790_am_tools='gnutar pax cpio none'
c52df125 4791
eec2776c 4792am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
c52df125
AC
4793
4794
4795
4796
4797
eec2776c 4798depcc="$CC" am_compiler_list=
c52df125 4799
eec2776c
AJ
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4801$as_echo_n "checking dependency style of $depcc... " >&6; }
4802if ${am_cv_CC_dependencies_compiler_type+:} false; then :
c52df125
AC
4803 $as_echo_n "(cached) " >&6
4804else
eec2776c
AJ
4805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4806 # We make a subdir and do the tests there. Otherwise we can end up
4807 # making bogus files that we don't know about and never remove. For
4808 # instance it was reported that on HP-UX the gcc test will end up
4809 # making a dummy file named 'D' -- because '-MD' means "put the output
4810 # in D".
4811 rm -rf conftest.dir
4812 mkdir conftest.dir
4813 # Copy depcomp to subdir because otherwise we won't find it if we're
4814 # using a relative directory.
4815 cp "$am_depcomp" conftest.dir
4816 cd conftest.dir
4817 # We will build objects and dependencies in a subdirectory because
4818 # it helps to detect inapplicable dependency modes. For instance
4819 # both Tru64's cc and ICC support -MD to output dependencies as a
4820 # side effect of compilation, but ICC will put the dependencies in
4821 # the current directory while Tru64 will put them in the object
4822 # directory.
4823 mkdir sub
c52df125 4824
eec2776c
AJ
4825 am_cv_CC_dependencies_compiler_type=none
4826 if test "$am_compiler_list" = ""; then
4827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
c52df125 4828 fi
eec2776c
AJ
4829 am__universal=false
4830 case " $depcc " in #(
4831 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4832 esac
c52df125 4833
eec2776c
AJ
4834 for depmode in $am_compiler_list; do
4835 # Setup a source with many dependencies, because some compilers
4836 # like to wrap large dependency lists on column 80 (with \), and
4837 # we should not choose a depcomp mode which is confused by this.
4838 #
4839 # We need to recreate these files for each test, as the compiler may
4840 # overwrite some of them when testing with obscure command lines.
4841 # This happens at least with the AIX C compiler.
4842 : > sub/conftest.c
4843 for i in 1 2 3 4 5 6; do
4844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4845 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4846 # Solaris 10 /bin/sh.
4847 echo '/* dummy */' > sub/conftst$i.h
4848 done
4849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
c52df125 4850
eec2776c
AJ
4851 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4852 # mode. It turns out that the SunPro C++ compiler does not properly
4853 # handle '-M -o', and we need to detect this. Also, some Intel
4854 # versions had trouble with output in subdirs.
4855 am__obj=sub/conftest.${OBJEXT-o}
4856 am__minus_obj="-o $am__obj"
4857 case $depmode in
4858 gcc)
4859 # This depmode causes a compiler race in universal mode.
4860 test "$am__universal" = false || continue
4861 ;;
4862 nosideeffect)
4863 # After this tag, mechanisms are not by side-effect, so they'll
4864 # only be used when explicitly requested.
4865 if test "x$enable_dependency_tracking" = xyes; then
4866 continue
4867 else
4868 break
4869 fi
4870 ;;
4871 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4872 # This compiler won't grok '-c -o', but also, the minuso test has
4873 # not run yet. These depmodes are late enough in the game, and
4874 # so weak that their functioning should not be impacted.
4875 am__obj=conftest.${OBJEXT-o}
4876 am__minus_obj=
4877 ;;
4878 none) break ;;
4879 esac
4880 if depmode=$depmode \
4881 source=sub/conftest.c object=$am__obj \
4882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4883 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4884 >/dev/null 2>conftest.err &&
4885 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889 # icc doesn't choke on unknown options, it will just issue warnings
4890 # or remarks (even with -Werror). So we grep stderr for any message
4891 # that says an option was ignored or not supported.
4892 # When given -MP, icc 7.0 and 7.1 complain thusly:
4893 # icc: Command line warning: ignoring option '-M'; no argument required
4894 # The diagnosis changed in icc 8.0:
4895 # icc: Command line remark: option '-MP' not supported
4896 if (grep 'ignoring option' conftest.err ||
4897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4898 am_cv_CC_dependencies_compiler_type=$depmode
4899 break
4900 fi
c52df125 4901 fi
c52df125 4902 done
c52df125 4903
eec2776c
AJ
4904 cd ..
4905 rm -rf conftest.dir
c52df125 4906else
eec2776c 4907 am_cv_CC_dependencies_compiler_type=none
c52df125
AC
4908fi
4909
4910fi
eec2776c
AJ
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4912$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4913CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
c52df125 4914
eec2776c
AJ
4915 if
4916 test "x$enable_dependency_tracking" != xno \
4917 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4918 am__fastdepCC_TRUE=
4919 am__fastdepCC_FALSE='#'
c52df125 4920else
eec2776c
AJ
4921 am__fastdepCC_TRUE='#'
4922 am__fastdepCC_FALSE=
4923fi
c52df125 4924
eec2776c
AJ
4925
4926
4927# POSIX will say in a future version that running "rm -f" with no argument
4928# is OK; and we want to be able to make that assumption in our Makefile
4929# recipes. So use an aggressive probe to check that the usage we want is
4930# actually supported "in the wild" to an acceptable degree.
4931# See automake bug#10828.
4932# To make any issue more visible, cause the running configure to be aborted
4933# by default if the 'rm' program in use doesn't match our expectations; the
4934# user can still override this though.
4935if rm -f && rm -fr && rm -rf; then : OK; else
4936 cat >&2 <<'END'
4937Oops!
4938
4939Your 'rm' program seems unable to run without file operands specified
4940on the command line, even when the '-f' option is present. This is contrary
4941to the behaviour of most rm programs out there, and not conforming with
4942the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4943
4944Please tell bug-automake@gnu.org about your system, including the value
4945of your $PATH and any error possibly output before this message. This
4946can help us improve future automake versions.
4947
4948END
4949 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4950 echo 'Configuration will proceed anyway, since you have set the' >&2
4951 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4952 echo >&2
4953 else
4954 cat >&2 <<'END'
4955Aborting the configuration process, to ensure you take notice of the issue.
4956
4957You can download and install GNU coreutils to get an 'rm' implementation
4958that behaves properly: <http://www.gnu.org/software/coreutils/>.
4959
4960If you want to complete the configuration process using your problematic
4961'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4962to "yes", and re-run configure.
4963
4964END
4965 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
c52df125 4966 fi
c52df125
AC
4967fi
4968
eec2776c
AJ
4969# Check whether --enable-silent-rules was given.
4970if test "${enable_silent_rules+set}" = set; then :
4971 enableval=$enable_silent_rules;
c52df125 4972fi
c52df125 4973
eec2776c
AJ
4974case $enable_silent_rules in # (((
4975 yes) AM_DEFAULT_VERBOSITY=0;;
4976 no) AM_DEFAULT_VERBOSITY=1;;
4977 *) AM_DEFAULT_VERBOSITY=0;;
4978esac
4979am_make=${MAKE-make}
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4981$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4982if ${am_cv_make_support_nested_variables+:} false; then :
c52df125
AC
4983 $as_echo_n "(cached) " >&6
4984else
eec2776c
AJ
4985 if $as_echo 'TRUE=$(BAR$(V))
4986BAR0=false
4987BAR1=true
4988V=1
4989am__doit:
4990 @$(TRUE)
4991.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4992 am_cv_make_support_nested_variables=yes
c52df125 4993else
eec2776c 4994 am_cv_make_support_nested_variables=no
c52df125 4995fi
c52df125 4996fi
eec2776c
AJ
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4998$as_echo "$am_cv_make_support_nested_variables" >&6; }
4999if test $am_cv_make_support_nested_variables = yes; then
5000 AM_V='$(V)'
5001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
c52df125 5002else
eec2776c
AJ
5003 AM_V=$AM_DEFAULT_VERBOSITY
5004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
c52df125 5005fi
eec2776c 5006AM_BACKSLASH='\'
c52df125 5007
eec2776c
AJ
5008if test -n "$ac_tool_prefix"; then
5009 for ac_prog in ar lib "link -lib"
c52df125
AC
5010 do
5011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 5015if ${ac_cv_prog_AR+:} false; then :
c52df125
AC
5016 $as_echo_n "(cached) " >&6
5017else
eec2776c
AJ
5018 if test -n "$AR"; then
5019 ac_cv_prog_AR="$AR" # Let the user override the test.
c52df125
AC
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 5028 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
c52df125
AC
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032done
5033 done
5034IFS=$as_save_IFS
5035
5036fi
5037fi
eec2776c
AJ
5038AR=$ac_cv_prog_AR
5039if test -n "$AR"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5041$as_echo "$AR" >&6; }
c52df125
AC
5042else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
5045fi
5046
5047
eec2776c 5048 test -n "$AR" && break
c52df125
AC
5049 done
5050fi
eec2776c
AJ
5051if test -z "$AR"; then
5052 ac_ct_AR=$AR
5053 for ac_prog in ar lib "link -lib"
c52df125
AC
5054do
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056set dummy $ac_prog; ac_word=$2
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 5059if ${ac_cv_prog_ac_ct_AR+:} false; then :
c52df125
AC
5060 $as_echo_n "(cached) " >&6
5061else
eec2776c
AJ
5062 if test -n "$ac_ct_AR"; then
5063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
c52df125
AC
5064else
5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 5072 ac_cv_prog_ac_ct_AR="$ac_prog"
c52df125
AC
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076done
5077 done
5078IFS=$as_save_IFS
5079
5080fi
5081fi
eec2776c
AJ
5082ac_ct_AR=$ac_cv_prog_ac_ct_AR
5083if test -n "$ac_ct_AR"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5085$as_echo "$ac_ct_AR" >&6; }
c52df125
AC
5086else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
5089fi
5090
5091
eec2776c 5092 test -n "$ac_ct_AR" && break
c52df125
AC
5093done
5094
eec2776c
AJ
5095 if test "x$ac_ct_AR" = x; then
5096 AR="false"
c52df125
AC
5097 else
5098 case $cross_compiling:$ac_tool_warned in
5099yes:)
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102ac_tool_warned=yes ;;
5103esac
eec2776c 5104 AR=$ac_ct_AR
c52df125
AC
5105 fi
5106fi
5107
eec2776c
AJ
5108: ${AR=ar}
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5111$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5112if ${am_cv_ar_interface+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121 am_cv_ar_interface=ar
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h. */
5124int some_variable = 0;
5125_ACEOF
5126if ac_fn_c_try_compile "$LINENO"; then :
5127 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5129 (eval $am_ar_try) 2>&5
5130 ac_status=$?
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }
5133 if test "$ac_status" -eq 0; then
5134 am_cv_ar_interface=ar
5135 else
5136 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5138 (eval $am_ar_try) 2>&5
5139 ac_status=$?
5140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5141 test $ac_status = 0; }
5142 if test "$ac_status" -eq 0; then
5143 am_cv_ar_interface=lib
5144 else
5145 am_cv_ar_interface=unknown
5146 fi
5147 fi
5148 rm -f conftest.lib libconftest.a
c52df125 5149
c52df125 5150fi
eec2776c
AJ
5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_ext=c
5153ac_cpp='$CPP $CPPFLAGS'
5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 5157
eec2776c
AJ
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5160$as_echo "$am_cv_ar_interface" >&6; }
c52df125 5161
eec2776c
AJ
5162case $am_cv_ar_interface in
5163ar)
5164 ;;
5165lib)
5166 # Microsoft lib, so override with the ar-lib wrapper script.
5167 # FIXME: It is wrong to rewrite AR.
5168 # But if we don't then we get into trouble of one sort or another.
5169 # A longer-term fix would be to have automake use am__AR in this case,
5170 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5171 # similar.
5172 AR="$am_aux_dir/ar-lib $AR"
5173 ;;
5174unknown)
5175 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5176 ;;
5177esac
c52df125
AC
5178
5179
eec2776c
AJ
5180case `pwd` in
5181 *\ * | *\ *)
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5183$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5184esac
c52df125
AC
5185
5186
c52df125 5187
eec2776c
AJ
5188macro_version='2.4.2'
5189macro_revision='1.3337'
c52df125 5190
c52df125 5191
c52df125 5192
c52df125 5193
c52df125 5194
c52df125 5195
c52df125 5196
c52df125 5197
c52df125 5198
c52df125
AC
5199
5200
5201
5202
eec2776c 5203ltmain="$ac_aux_dir/ltmain.sh"
c52df125 5204
eec2776c
AJ
5205# Make sure we can run config.sub.
5206$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5207 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
c52df125 5208
eec2776c
AJ
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5210$as_echo_n "checking build system type... " >&6; }
5211if ${ac_cv_build+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 ac_build_alias=$build_alias
5215test "x$ac_build_alias" = x &&
5216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5217test "x$ac_build_alias" = x &&
5218 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5219ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5220 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
c52df125 5221
eec2776c
AJ
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5224$as_echo "$ac_cv_build" >&6; }
5225case $ac_cv_build in
5226*-*-*) ;;
5227*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5228esac
5229build=$ac_cv_build
5230ac_save_IFS=$IFS; IFS='-'
5231set x $ac_cv_build
5232shift
5233build_cpu=$1
5234build_vendor=$2
5235shift; shift
5236# Remember, the first character of IFS is used to create $*,
5237# except with old shells:
5238build_os=$*
5239IFS=$ac_save_IFS
5240case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
c52df125
AC
5241
5242
eec2776c
AJ
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5244$as_echo_n "checking host system type... " >&6; }
5245if ${ac_cv_host+:} false; then :
5246 $as_echo_n "(cached) " >&6
c52df125 5247else
eec2776c
AJ
5248 if test "x$host_alias" = x; then
5249 ac_cv_host=$ac_cv_build
5250else
5251 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5252 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
c52df125
AC
5253fi
5254
eec2776c
AJ
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5257$as_echo "$ac_cv_host" >&6; }
5258case $ac_cv_host in
5259*-*-*) ;;
5260*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
c52df125 5261esac
eec2776c
AJ
5262host=$ac_cv_host
5263ac_save_IFS=$IFS; IFS='-'
5264set x $ac_cv_host
5265shift
5266host_cpu=$1
5267host_vendor=$2
5268shift; shift
5269# Remember, the first character of IFS is used to create $*,
5270# except with old shells:
5271host_os=$*
5272IFS=$ac_save_IFS
5273case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c52df125
AC
5274
5275
eec2776c
AJ
5276# Backslashify metacharacters that are still active within
5277# double-quoted strings.
5278sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
c52df125 5279
eec2776c
AJ
5280# Same as above, but do not quote variable references.
5281double_quote_subst='s/\(["`\\]\)/\\\1/g'
c52df125 5282
eec2776c
AJ
5283# Sed substitution to delay expansion of an escaped shell variable in a
5284# double_quote_subst'ed string.
5285delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
c52df125 5286
eec2776c
AJ
5287# Sed substitution to delay expansion of an escaped single quote.
5288delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
c52df125 5289
eec2776c
AJ
5290# Sed substitution to avoid accidental globbing in evaled expressions
5291no_glob_subst='s/\*/\\\*/g'
c52df125 5292
eec2776c
AJ
5293ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5294ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5295ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
c52df125 5296
eec2776c
AJ
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5298$as_echo_n "checking how to print strings... " >&6; }
5299# Test print first, because it will be a builtin if present.
5300if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5301 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5302 ECHO='print -r --'
5303elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5304 ECHO='printf %s\n'
c52df125 5305else
eec2776c
AJ
5306 # Use this function as a fallback that always works.
5307 func_fallback_echo ()
5308 {
5309 eval 'cat <<_LTECHO_EOF
5310$1
5311_LTECHO_EOF'
5312 }
5313 ECHO='func_fallback_echo'
5314fi
5315
5316# func_echo_all arg...
5317# Invoke $ECHO with all args, space-separated.
5318func_echo_all ()
5319{
5320 $ECHO ""
5321}
5322
5323case "$ECHO" in
5324 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5325$as_echo "printf" >&6; } ;;
5326 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5327$as_echo "print -r" >&6; } ;;
5328 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5329$as_echo "cat" >&6; } ;;
c52df125
AC
5330esac
5331
c52df125 5332
c52df125
AC
5333
5334
5335
5336
5337
c52df125 5338
c52df125 5339
c52df125
AC
5340
5341
5342
5343
5344
eec2776c
AJ
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5346$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5347if ${ac_cv_path_SED+:} false; then :
c52df125
AC
5348 $as_echo_n "(cached) " >&6
5349else
eec2776c
AJ
5350 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5351 for ac_i in 1 2 3 4 5 6 7; do
5352 ac_script="$ac_script$as_nl$ac_script"
5353 done
5354 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5355 { ac_script=; unset ac_script;}
5356 if test -z "$SED"; then
5357 ac_path_SED_found=false
5358 # Loop through the user's path and test for each of PROGNAME-LIST
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_prog in sed gsed; do
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5367 as_fn_executable_p "$ac_path_SED" || continue
5368# Check for GNU ac_path_SED and select it if it is found.
5369 # Check for GNU $ac_path_SED
5370case `"$ac_path_SED" --version 2>&1` in
5371*GNU*)
5372 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5373*)
5374 ac_count=0
5375 $as_echo_n 0123456789 >"conftest.in"
5376 while :
5377 do
5378 cat "conftest.in" "conftest.in" >"conftest.tmp"
5379 mv "conftest.tmp" "conftest.in"
5380 cp "conftest.in" "conftest.nl"
5381 $as_echo '' >> "conftest.nl"
5382 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5384 as_fn_arith $ac_count + 1 && ac_count=$as_val
5385 if test $ac_count -gt ${ac_path_SED_max-0}; then
5386 # Best one so far, save it but keep looking for a better one
5387 ac_cv_path_SED="$ac_path_SED"
5388 ac_path_SED_max=$ac_count
c52df125 5389 fi
eec2776c
AJ
5390 # 10*(2^10) chars as input seems more than enough
5391 test $ac_count -gt 10 && break
5392 done
5393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
c52df125
AC
5394esac
5395
eec2776c
AJ
5396 $ac_path_SED_found && break 3
5397 done
5398 done
5399 done
5400IFS=$as_save_IFS
5401 if test -z "$ac_cv_path_SED"; then
5402 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5403 fi
5404else
5405 ac_cv_path_SED=$SED
5406fi
5407
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5410$as_echo "$ac_cv_path_SED" >&6; }
5411 SED="$ac_cv_path_SED"
5412 rm -f conftest.sed
5413
5414test -z "$SED" && SED=sed
5415Xsed="$SED -e 1s/^X//"
c52df125
AC
5416
5417
5418
5419
5420
5421
5422
5423
c52df125 5424
c52df125
AC
5425
5426
eec2776c
AJ
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5428$as_echo_n "checking for fgrep... " >&6; }
5429if ${ac_cv_path_FGREP+:} false; then :
c52df125
AC
5430 $as_echo_n "(cached) " >&6
5431else
eec2776c
AJ
5432 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5433 then ac_cv_path_FGREP="$GREP -F"
5434 else
5435 if test -z "$FGREP"; then
5436 ac_path_FGREP_found=false
5437 # Loop through the user's path and test for each of PROGNAME-LIST
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
c52df125
AC
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
eec2776c 5443 for ac_prog in fgrep; do
c52df125 5444 for ac_exec_ext in '' $ac_executable_extensions; do
eec2776c
AJ
5445 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5446 as_fn_executable_p "$ac_path_FGREP" || continue
5447# Check for GNU ac_path_FGREP and select it if it is found.
5448 # Check for GNU $ac_path_FGREP
5449case `"$ac_path_FGREP" --version 2>&1` in
5450*GNU*)
5451 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5452*)
5453 ac_count=0
5454 $as_echo_n 0123456789 >"conftest.in"
5455 while :
5456 do
5457 cat "conftest.in" "conftest.in" >"conftest.tmp"
5458 mv "conftest.tmp" "conftest.in"
5459 cp "conftest.in" "conftest.nl"
5460 $as_echo 'FGREP' >> "conftest.nl"
5461 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5463 as_fn_arith $ac_count + 1 && ac_count=$as_val
5464 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5465 # Best one so far, save it but keep looking for a better one
5466 ac_cv_path_FGREP="$ac_path_FGREP"
5467 ac_path_FGREP_max=$ac_count
5468 fi
5469 # 10*(2^10) chars as input seems more than enough
5470 test $ac_count -gt 10 && break
c52df125 5471 done
eec2776c
AJ
5472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5473esac
c52df125 5474
eec2776c
AJ
5475 $ac_path_FGREP_found && break 3
5476 done
5477 done
5478 done
5479IFS=$as_save_IFS
5480 if test -z "$ac_cv_path_FGREP"; then
5481 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5482 fi
c52df125 5483else
eec2776c 5484 ac_cv_path_FGREP=$FGREP
c52df125
AC
5485fi
5486
eec2776c 5487 fi
c52df125 5488fi
eec2776c
AJ
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5490$as_echo "$ac_cv_path_FGREP" >&6; }
5491 FGREP="$ac_cv_path_FGREP"
c52df125 5492
c52df125 5493
eec2776c 5494test -z "$GREP" && GREP=grep
c52df125
AC
5495
5496
5497
5498
5499
5500
5501
5502
c52df125 5503
c52df125 5504
c52df125 5505
c52df125 5506
c52df125 5507
c52df125 5508
c52df125 5509
c52df125 5510
c52df125 5511
c52df125 5512
c52df125 5513
eec2776c
AJ
5514# Check whether --with-gnu-ld was given.
5515if test "${with_gnu_ld+set}" = set; then :
5516 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5517else
5518 with_gnu_ld=no
5519fi
c52df125 5520
eec2776c
AJ
5521ac_prog=ld
5522if test "$GCC" = yes; then
5523 # Check if gcc -print-prog-name=ld gives a path.
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5525$as_echo_n "checking for ld used by $CC... " >&6; }
5526 case $host in
5527 *-*-mingw*)
5528 # gcc leaves a trailing carriage return which upsets mingw
5529 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5530 *)
5531 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
c52df125 5532 esac
eec2776c
AJ
5533 case $ac_prog in
5534 # Accept absolute paths.
5535 [\\/]* | ?:[\\/]*)
5536 re_direlt='/[^/][^/]*/\.\./'
5537 # Canonicalize the pathname of ld
5538 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5539 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5540 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5541 done
5542 test -z "$LD" && LD="$ac_prog"
5543 ;;
5544 "")
5545 # If it fails, then pretend we aren't using GCC.
5546 ac_prog=ld
c52df125 5547 ;;
eec2776c
AJ
5548 *)
5549 # If it is relative, then search for the first ld in PATH.
5550 with_gnu_ld=unknown
c52df125
AC
5551 ;;
5552 esac
eec2776c
AJ
5553elif test "$with_gnu_ld" = yes; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5555$as_echo_n "checking for GNU ld... " >&6; }
5556else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5558$as_echo_n "checking for non-GNU ld... " >&6; }
c52df125 5559fi
eec2776c
AJ
5560if ${lt_cv_path_LD+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562else
5563 if test -z "$LD"; then
5564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5565 for ac_dir in $PATH; do
5566 IFS="$lt_save_ifs"
5567 test -z "$ac_dir" && ac_dir=.
5568 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5569 lt_cv_path_LD="$ac_dir/$ac_prog"
5570 # Check to see if the program is GNU ld. I'd rather use --version,
5571 # but apparently some variants of GNU ld only accept -v.
5572 # Break only if it was the GNU/non-GNU ld that we prefer.
5573 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5574 *GNU* | *'with BFD'*)
5575 test "$with_gnu_ld" != no && break
5576 ;;
5577 *)
5578 test "$with_gnu_ld" != yes && break
5579 ;;
5580 esac
c52df125 5581 fi
eec2776c
AJ
5582 done
5583 IFS="$lt_save_ifs"
5584else
5585 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5586fi
c52df125
AC
5587fi
5588
eec2776c
AJ
5589LD="$lt_cv_path_LD"
5590if test -n "$LD"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5592$as_echo "$LD" >&6; }
5593else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595$as_echo "no" >&6; }
5596fi
5597test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5599$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5600if ${lt_cv_prog_gnu_ld+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602else
5603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5604case `$LD -v 2>&1 </dev/null` in
5605*GNU* | *'with BFD'*)
5606 lt_cv_prog_gnu_ld=yes
5607 ;;
5608*)
5609 lt_cv_prog_gnu_ld=no
5610 ;;
5611esac
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5614$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5615with_gnu_ld=$lt_cv_prog_gnu_ld
c52df125
AC
5616
5617
5618
5619
5620
5621
5622
5623
5624
eec2776c
AJ
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5626$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5627if ${lt_cv_path_NM+:} false; then :
c52df125
AC
5628 $as_echo_n "(cached) " >&6
5629else
eec2776c
AJ
5630 if test -n "$NM"; then
5631 # Let the user override the test.
5632 lt_cv_path_NM="$NM"
c52df125 5633else
eec2776c
AJ
5634 lt_nm_to_check="${ac_tool_prefix}nm"
5635 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5636 lt_nm_to_check="$lt_nm_to_check nm"
c52df125 5637 fi
eec2776c
AJ
5638 for lt_tmp_nm in $lt_nm_to_check; do
5639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5640 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5641 IFS="$lt_save_ifs"
5642 test -z "$ac_dir" && ac_dir=.
5643 tmp_nm="$ac_dir/$lt_tmp_nm"
5644 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5645 # Check to see if the nm accepts a BSD-compat flag.
5646 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5647 # nm: unknown option "B" ignored
5648 # Tru64's nm complains that /dev/null is an invalid object file
5649 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5650 */dev/null* | *'Invalid file or object type'*)
5651 lt_cv_path_NM="$tmp_nm -B"
5652 break
5653 ;;
5654 *)
5655 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5656 */dev/null*)
5657 lt_cv_path_NM="$tmp_nm -p"
5658 break
5659 ;;
5660 *)
5661 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5662 continue # so that we can try to find one that supports BSD flags
5663 ;;
5664 esac
5665 ;;
5666 esac
5667 fi
5668 done
5669 IFS="$lt_save_ifs"
c52df125 5670 done
eec2776c 5671 : ${lt_cv_path_NM=no}
c52df125
AC
5672fi
5673fi
eec2776c
AJ
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5675$as_echo "$lt_cv_path_NM" >&6; }
5676if test "$lt_cv_path_NM" != "no"; then
5677 NM="$lt_cv_path_NM"
c52df125 5678else
eec2776c
AJ
5679 # Didn't find any BSD compatible name lister, look for dumpbin.
5680 if test -n "$DUMPBIN"; then :
5681 # Let the user override the test.
c52df125 5682 else
eec2776c
AJ
5683 if test -n "$ac_tool_prefix"; then
5684 for ac_prog in dumpbin "link -dump"
c52df125
AC
5685 do
5686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 5690if ${ac_cv_prog_DUMPBIN+:} false; then :
c52df125
AC
5691 $as_echo_n "(cached) " >&6
5692else
eec2776c
AJ
5693 if test -n "$DUMPBIN"; then
5694 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
c52df125
AC
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 5703 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
c52df125
AC
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
eec2776c
AJ
5713DUMPBIN=$ac_cv_prog_DUMPBIN
5714if test -n "$DUMPBIN"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5716$as_echo "$DUMPBIN" >&6; }
c52df125
AC
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
eec2776c 5723 test -n "$DUMPBIN" && break
c52df125
AC
5724 done
5725fi
eec2776c
AJ
5726if test -z "$DUMPBIN"; then
5727 ac_ct_DUMPBIN=$DUMPBIN
5728 for ac_prog in dumpbin "link -dump"
c52df125
AC
5729do
5730 # Extract the first word of "$ac_prog", so it can be a program name with args.
5731set dummy $ac_prog; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 5734if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
c52df125
AC
5735 $as_echo_n "(cached) " >&6
5736else
eec2776c
AJ
5737 if test -n "$ac_ct_DUMPBIN"; then
5738 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
c52df125
AC
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 5747 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
c52df125
AC
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752 done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
eec2776c
AJ
5757ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5758if test -n "$ac_ct_DUMPBIN"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5760$as_echo "$ac_ct_DUMPBIN" >&6; }
c52df125
AC
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
eec2776c 5767 test -n "$ac_ct_DUMPBIN" && break
c52df125
AC
5768done
5769
eec2776c
AJ
5770 if test "x$ac_ct_DUMPBIN" = x; then
5771 DUMPBIN=":"
c52df125
AC
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774yes:)
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777ac_tool_warned=yes ;;
5778esac
eec2776c 5779 DUMPBIN=$ac_ct_DUMPBIN
c52df125
AC
5780 fi
5781fi
5782
eec2776c
AJ
5783 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5784 *COFF*)
5785 DUMPBIN="$DUMPBIN -symbols"
5786 ;;
5787 *)
5788 DUMPBIN=:
5789 ;;
5790 esac
5791 fi
c52df125 5792
eec2776c
AJ
5793 if test "$DUMPBIN" != ":"; then
5794 NM="$DUMPBIN"
5795 fi
5796fi
5797test -z "$NM" && NM=nm
c52df125
AC
5798
5799
5800
5801
5802
5803
eec2776c
AJ
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5805$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5806if ${lt_cv_nm_interface+:} false; then :
c52df125
AC
5807 $as_echo_n "(cached) " >&6
5808else
eec2776c
AJ
5809 lt_cv_nm_interface="BSD nm"
5810 echo "int some_variable = 0;" > conftest.$ac_ext
5811 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5812 (eval "$ac_compile" 2>conftest.err)
5813 cat conftest.err >&5
5814 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5815 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5816 cat conftest.err >&5
5817 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5818 cat conftest.out >&5
5819 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5820 lt_cv_nm_interface="MS dumpbin"
5821 fi
5822 rm -f conftest*
c52df125 5823fi
eec2776c
AJ
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5825$as_echo "$lt_cv_nm_interface" >&6; }
c52df125 5826
eec2776c
AJ
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5828$as_echo_n "checking whether ln -s works... " >&6; }
5829LN_S=$as_ln_s
5830if test "$LN_S" = "ln -s"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832$as_echo "yes" >&6; }
5833else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5835$as_echo "no, using $LN_S" >&6; }
c52df125 5836fi
c52df125 5837
eec2776c
AJ
5838# find the maximum length of command line arguments
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5840$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5841if ${lt_cv_sys_max_cmd_len+:} false; then :
5842 $as_echo_n "(cached) " >&6
c52df125 5843else
eec2776c
AJ
5844 i=0
5845 teststring="ABCD"
c52df125 5846
eec2776c
AJ
5847 case $build_os in
5848 msdosdjgpp*)
5849 # On DJGPP, this test can blow up pretty badly due to problems in libc
5850 # (any single argument exceeding 2000 bytes causes a buffer overrun
5851 # during glob expansion). Even if it were fixed, the result of this
5852 # check would be larger than it should be.
5853 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5854 ;;
c52df125 5855
eec2776c
AJ
5856 gnu*)
5857 # Under GNU Hurd, this test is not required because there is
5858 # no limit to the length of command line arguments.
5859 # Libtool will interpret -1 as no limit whatsoever
5860 lt_cv_sys_max_cmd_len=-1;
5861 ;;
c52df125 5862
eec2776c
AJ
5863 cygwin* | mingw* | cegcc*)
5864 # On Win9x/ME, this test blows up -- it succeeds, but takes
5865 # about 5 minutes as the teststring grows exponentially.
5866 # Worse, since 9x/ME are not pre-emptively multitasking,
5867 # you end up with a "frozen" computer, even though with patience
5868 # the test eventually succeeds (with a max line length of 256k).
5869 # Instead, let's just punt: use the minimum linelength reported by
5870 # all of the supported platforms: 8192 (on NT/2K/XP).
5871 lt_cv_sys_max_cmd_len=8192;
5872 ;;
c52df125 5873
eec2776c
AJ
5874 mint*)
5875 # On MiNT this can take a long time and run out of memory.
5876 lt_cv_sys_max_cmd_len=8192;
5877 ;;
c52df125 5878
eec2776c
AJ
5879 amigaos*)
5880 # On AmigaOS with pdksh, this test takes hours, literally.
5881 # So we just punt and use a minimum line length of 8192.
5882 lt_cv_sys_max_cmd_len=8192;
5883 ;;
c52df125 5884
eec2776c
AJ
5885 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5886 # This has been around since 386BSD, at least. Likely further.
5887 if test -x /sbin/sysctl; then
5888 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5889 elif test -x /usr/sbin/sysctl; then
5890 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5891 else
5892 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5893 fi
5894 # And add a safety zone
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5897 ;;
c52df125 5898
eec2776c
AJ
5899 interix*)
5900 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5901 lt_cv_sys_max_cmd_len=196608
5902 ;;
c52df125 5903
eec2776c
AJ
5904 os2*)
5905 # The test takes a long time on OS/2.
5906 lt_cv_sys_max_cmd_len=8192
5907 ;;
c52df125 5908
eec2776c
AJ
5909 osf*)
5910 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5911 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5912 # nice to cause kernel panics so lets avoid the loop below.
5913 # First set a reasonable default.
5914 lt_cv_sys_max_cmd_len=16384
5915 #
5916 if test -x /sbin/sysconfig; then
5917 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5918 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5919 esac
5920 fi
5921 ;;
5922 sco3.2v5*)
5923 lt_cv_sys_max_cmd_len=102400
5924 ;;
5925 sysv5* | sco5v6* | sysv4.2uw2*)
5926 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5927 if test -n "$kargmax"; then
5928 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5929 else
5930 lt_cv_sys_max_cmd_len=32768
5931 fi
5932 ;;
5933 *)
5934 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5935 if test -n "$lt_cv_sys_max_cmd_len" && \
5936 test undefined != "$lt_cv_sys_max_cmd_len"; then
5937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5939 else
5940 # Make teststring a little bigger before we do anything with it.
5941 # a 1K string should be a reasonable start.
5942 for i in 1 2 3 4 5 6 7 8 ; do
5943 teststring=$teststring$teststring
5944 done
5945 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5946 # If test is not a shell built-in, we'll probably end up computing a
5947 # maximum length that is only half of the actual maximum length, but
5948 # we can't tell.
5949 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5950 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5951 test $i != 17 # 1/2 MB should be enough
5952 do
5953 i=`expr $i + 1`
5954 teststring=$teststring$teststring
5955 done
5956 # Only check the string length outside the loop.
5957 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5958 teststring=
5959 # Add a significant safety factor because C++ compilers can tack on
5960 # massive amounts of additional arguments before passing them to the
5961 # linker. It appears as though 1/2 is a usable value.
5962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5963 fi
5964 ;;
5965 esac
c52df125
AC
5966
5967fi
c52df125 5968
eec2776c
AJ
5969if test -n $lt_cv_sys_max_cmd_len ; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5971$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
c52df125 5972else
eec2776c
AJ
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5974$as_echo "none" >&6; }
c52df125 5975fi
eec2776c 5976max_cmd_len=$lt_cv_sys_max_cmd_len
c52df125 5977
eec2776c
AJ
5978
5979
5980
5981
5982
5983: ${CP="cp -f"}
5984: ${MV="mv -f"}
5985: ${RM="rm -f"}
5986
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5988$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5989# Try some XSI features
5990xsi_shell=no
5991( _lt_dummy="a/b/c"
5992 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5993 = c,a/b,b/c, \
5994 && eval 'test $(( 1 + 1 )) -eq 2 \
5995 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5996 && xsi_shell=yes
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5998$as_echo "$xsi_shell" >&6; }
5999
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6002$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6003lt_shell_append=no
6004( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6005 >/dev/null 2>&1 \
6006 && lt_shell_append=yes
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6008$as_echo "$lt_shell_append" >&6; }
6009
6010
6011if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6012 lt_unset=unset
6013else
6014 lt_unset=false
6015fi
6016
6017
6018
6019
6020
6021# test EBCDIC or ASCII
6022case `echo X|tr X '\101'` in
6023 A) # ASCII based system
6024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6025 lt_SP2NL='tr \040 \012'
6026 lt_NL2SP='tr \015\012 \040\040'
6027 ;;
6028 *) # EBCDIC based system
6029 lt_SP2NL='tr \100 \n'
6030 lt_NL2SP='tr \r\n \100\100'
6031 ;;
c52df125 6032esac
eec2776c
AJ
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6043$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6044if ${lt_cv_to_host_file_cmd+:} false; then :
6045 $as_echo_n "(cached) " >&6
c52df125 6046else
eec2776c
AJ
6047 case $host in
6048 *-*-mingw* )
6049 case $build in
6050 *-*-mingw* ) # actually msys
6051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6052 ;;
6053 *-*-cygwin* )
6054 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6055 ;;
6056 * ) # otherwise, assume *nix
6057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6058 ;;
6059 esac
6060 ;;
6061 *-*-cygwin* )
6062 case $build in
6063 *-*-mingw* ) # actually msys
6064 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6065 ;;
6066 *-*-cygwin* )
6067 lt_cv_to_host_file_cmd=func_convert_file_noop
6068 ;;
6069 * ) # otherwise, assume *nix
6070 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6071 ;;
6072 esac
6073 ;;
6074 * ) # unhandled hosts (and "normal" native builds)
6075 lt_cv_to_host_file_cmd=func_convert_file_noop
6076 ;;
6077esac
6078
c52df125
AC
6079fi
6080
eec2776c
AJ
6081to_host_file_cmd=$lt_cv_to_host_file_cmd
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6083$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6084
6085
6086
6087
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6090$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6091if ${lt_cv_to_tool_file_cmd+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093else
6094 #assume ordinary cross tools, or native build.
6095lt_cv_to_tool_file_cmd=func_convert_file_noop
6096case $host in
6097 *-*-mingw* )
6098 case $build in
6099 *-*-mingw* ) # actually msys
6100 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6101 ;;
6102 esac
6103 ;;
6104esac
6105
6106fi
6107
6108to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6110$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6111
6112
6113
6114
6115
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6117$as_echo_n "checking for $LD option to reload object files... " >&6; }
6118if ${lt_cv_ld_reload_flag+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120else
6121 lt_cv_ld_reload_flag='-r'
6122fi
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6124$as_echo "$lt_cv_ld_reload_flag" >&6; }
6125reload_flag=$lt_cv_ld_reload_flag
6126case $reload_flag in
6127"" | " "*) ;;
6128*) reload_flag=" $reload_flag" ;;
6129esac
6130reload_cmds='$LD$reload_flag -o $output$reload_objs'
6131case $host_os in
6132 cygwin* | mingw* | pw32* | cegcc*)
6133 if test "$GCC" != yes; then
6134 reload_cmds=false
6135 fi
6136 ;;
6137 darwin*)
6138 if test "$GCC" = yes; then
6139 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6140 else
6141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 fi
6143 ;;
6144esac
6145
6146
6147
c52df125
AC
6148
6149
6150
6151
6152
6153
6154if test -n "$ac_tool_prefix"; then
eec2776c
AJ
6155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}objdump; ac_word=$2
c52df125
AC
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6159if ${ac_cv_prog_OBJDUMP+:} false; then :
c52df125
AC
6160 $as_echo_n "(cached) " >&6
6161else
eec2776c
AJ
6162 if test -n "$OBJDUMP"; then
6163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
c52df125
AC
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
c52df125
AC
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
eec2776c
AJ
6182OBJDUMP=$ac_cv_prog_OBJDUMP
6183if test -n "$OBJDUMP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6185$as_echo "$OBJDUMP" >&6; }
c52df125
AC
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192fi
eec2776c
AJ
6193if test -z "$ac_cv_prog_OBJDUMP"; then
6194 ac_ct_OBJDUMP=$OBJDUMP
6195 # Extract the first word of "objdump", so it can be a program name with args.
6196set dummy objdump; ac_word=$2
c52df125
AC
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6199if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
c52df125
AC
6200 $as_echo_n "(cached) " >&6
6201else
eec2776c
AJ
6202 if test -n "$ac_ct_OBJDUMP"; then
6203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
c52df125
AC
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6212 ac_cv_prog_ac_ct_OBJDUMP="objdump"
c52df125
AC
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217 done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
eec2776c
AJ
6222ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6223if test -n "$ac_ct_OBJDUMP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6225$as_echo "$ac_ct_OBJDUMP" >&6; }
c52df125
AC
6226else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
eec2776c
AJ
6231 if test "x$ac_ct_OBJDUMP" = x; then
6232 OBJDUMP="false"
c52df125
AC
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235yes:)
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238ac_tool_warned=yes ;;
6239esac
eec2776c 6240 OBJDUMP=$ac_ct_OBJDUMP
c52df125
AC
6241 fi
6242else
eec2776c 6243 OBJDUMP="$ac_cv_prog_OBJDUMP"
c52df125
AC
6244fi
6245
eec2776c 6246test -z "$OBJDUMP" && OBJDUMP=objdump
c52df125
AC
6247
6248
c52df125 6249
c52df125 6250
c52df125
AC
6251
6252
6253
6254
6255
eec2776c
AJ
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6257$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6258if ${lt_cv_deplibs_check_method+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260else
6261 lt_cv_file_magic_cmd='$MAGIC_CMD'
6262lt_cv_file_magic_test_file=
6263lt_cv_deplibs_check_method='unknown'
6264# Need to set the preceding variable on all platforms that support
6265# interlibrary dependencies.
6266# 'none' -- dependencies not supported.
6267# `unknown' -- same as none, but documents that we really don't know.
6268# 'pass_all' -- all dependencies passed with no checks.
6269# 'test_compile' -- check by making test program.
6270# 'file_magic [[regex]]' -- check by looking for files in library path
6271# which responds to the $file_magic_cmd with a given extended regex.
6272# If you have `file' or equivalent on your system and you're not sure
6273# whether `pass_all' will *always* work, you probably want this one.
c52df125 6274
eec2776c
AJ
6275case $host_os in
6276aix[4-9]*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
c52df125 6279
eec2776c
AJ
6280beos*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
c52df125 6283
eec2776c
AJ
6284bsdi[45]*)
6285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6286 lt_cv_file_magic_cmd='/usr/bin/file -L'
6287 lt_cv_file_magic_test_file=/shlib/libc.so
6288 ;;
c52df125 6289
eec2776c
AJ
6290cygwin*)
6291 # func_win32_libid is a shell function defined in ltmain.sh
6292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293 lt_cv_file_magic_cmd='func_win32_libid'
6294 ;;
c52df125 6295
eec2776c
AJ
6296mingw* | pw32*)
6297 # Base MSYS/MinGW do not provide the 'file' command needed by
6298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6299 # unless we find 'file', for example because we are cross-compiling.
6300 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6301 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6303 lt_cv_file_magic_cmd='func_win32_libid'
6304 else
6305 # Keep this pattern in sync with the one in func_win32_libid.
6306 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6307 lt_cv_file_magic_cmd='$OBJDUMP -f'
6308 fi
6309 ;;
c52df125 6310
eec2776c
AJ
6311cegcc*)
6312 # use the weaker test based on 'objdump'. See mingw*.
6313 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6314 lt_cv_file_magic_cmd='$OBJDUMP -f'
6315 ;;
c52df125 6316
eec2776c
AJ
6317darwin* | rhapsody*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
c52df125 6320
eec2776c
AJ
6321freebsd* | dragonfly*)
6322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6323 case $host_cpu in
6324 i*86 )
6325 # Not sure whether the presence of OpenBSD here was a mistake.
6326 # Let's accept both of them until this is cleared up.
6327 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6328 lt_cv_file_magic_cmd=/usr/bin/file
6329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6330 ;;
6331 esac
6332 else
6333 lt_cv_deplibs_check_method=pass_all
6334 fi
6335 ;;
c52df125 6336
eec2776c
AJ
6337haiku*)
6338 lt_cv_deplibs_check_method=pass_all
6339 ;;
c52df125 6340
eec2776c
AJ
6341hpux10.20* | hpux11*)
6342 lt_cv_file_magic_cmd=/usr/bin/file
6343 case $host_cpu in
6344 ia64*)
6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6347 ;;
6348 hppa*64*)
6349 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]'
6350 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6351 ;;
6352 *)
6353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6354 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6355 ;;
6356 esac
6357 ;;
c52df125 6358
eec2776c
AJ
6359interix[3-9]*)
6360 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6362 ;;
c52df125 6363
eec2776c
AJ
6364irix5* | irix6* | nonstopux*)
6365 case $LD in
6366 *-32|*"-32 ") libmagic=32-bit;;
6367 *-n32|*"-n32 ") libmagic=N32;;
6368 *-64|*"-64 ") libmagic=64-bit;;
6369 *) libmagic=never-match;;
6370 esac
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
c52df125 6373
eec2776c
AJ
6374# This must be glibc/ELF.
6375linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
c52df125 6378
eec2776c
AJ
6379netbsd* | netbsdelf*-gnu)
6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6382 else
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6384 fi
6385 ;;
c52df125 6386
eec2776c
AJ
6387newos6*)
6388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6391 ;;
c52df125 6392
eec2776c
AJ
6393*nto* | *qnx*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
c52df125 6396
eec2776c
AJ
6397openbsd*)
6398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6400 else
6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6402 fi
6403 ;;
c52df125 6404
eec2776c
AJ
6405osf3* | osf4* | osf5*)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
c52df125 6408
eec2776c
AJ
6409rdos*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
c52df125 6412
eec2776c
AJ
6413solaris*)
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
c52df125 6416
eec2776c
AJ
6417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
c52df125 6420
eec2776c
AJ
6421sysv4 | sysv4.3*)
6422 case $host_vendor in
6423 motorola)
6424 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]'
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6426 ;;
6427 ncr)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430 sequent)
6431 lt_cv_file_magic_cmd='/bin/file'
6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6433 ;;
6434 sni)
6435 lt_cv_file_magic_cmd='/bin/file'
6436 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6437 lt_cv_file_magic_test_file=/lib/libc.so
6438 ;;
6439 siemens)
6440 lt_cv_deplibs_check_method=pass_all
6441 ;;
6442 pc)
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
6445 esac
6446 ;;
c52df125 6447
eec2776c
AJ
6448tpf*)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451esac
c52df125 6452
eec2776c
AJ
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6455$as_echo "$lt_cv_deplibs_check_method" >&6; }
c52df125 6456
eec2776c
AJ
6457file_magic_glob=
6458want_nocaseglob=no
6459if test "$build" = "$host"; then
6460 case $host_os in
6461 mingw* | pw32*)
6462 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6463 want_nocaseglob=yes
6464 else
6465 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6466 fi
6467 ;;
6468 esac
6469fi
c52df125 6470
eec2776c
AJ
6471file_magic_cmd=$lt_cv_file_magic_cmd
6472deplibs_check_method=$lt_cv_deplibs_check_method
6473test -z "$deplibs_check_method" && deplibs_check_method=unknown
c52df125
AC
6474
6475
6476
6477
6478
6479
6480
6481
c52df125 6482
c52df125 6483
c52df125
AC
6484
6485
c52df125 6486
c52df125 6487
c52df125 6488
c52df125 6489
c52df125 6490
c52df125 6491
c52df125 6492
c52df125 6493
c52df125 6494
c52df125 6495
eec2776c
AJ
6496if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6498set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
6501if ${ac_cv_prog_DLLTOOL+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503else
6504 if test -n "$DLLTOOL"; then
6505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
c52df125 6517 fi
eec2776c
AJ
6518done
6519 done
6520IFS=$as_save_IFS
c52df125 6521
eec2776c
AJ
6522fi
6523fi
6524DLLTOOL=$ac_cv_prog_DLLTOOL
6525if test -n "$DLLTOOL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6527$as_echo "$DLLTOOL" >&6; }
6528else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
c52df125 6532
c52df125 6533
eec2776c
AJ
6534fi
6535if test -z "$ac_cv_prog_DLLTOOL"; then
6536 ac_ct_DLLTOOL=$DLLTOOL
6537 # Extract the first word of "dlltool", so it can be a program name with args.
6538set dummy dlltool; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543else
6544 if test -n "$ac_ct_DLLTOOL"; then
6545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
c52df125
AC
6557 fi
6558done
eec2776c
AJ
6559 done
6560IFS=$as_save_IFS
c52df125
AC
6561
6562fi
c52df125 6563fi
eec2776c
AJ
6564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6565if test -n "$ac_ct_DLLTOOL"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6567$as_echo "$ac_ct_DLLTOOL" >&6; }
c52df125 6568else
eec2776c
AJ
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
c52df125
AC
6571fi
6572
eec2776c
AJ
6573 if test "x$ac_ct_DLLTOOL" = x; then
6574 DLLTOOL="false"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582 DLLTOOL=$ac_ct_DLLTOOL
6583 fi
6584else
6585 DLLTOOL="$ac_cv_prog_DLLTOOL"
c52df125
AC
6586fi
6587
eec2776c 6588test -z "$DLLTOOL" && DLLTOOL=dlltool
c52df125
AC
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
eec2776c
AJ
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6600$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603else
6604 lt_cv_sharedlib_from_linklib_cmd='unknown'
c52df125 6605
eec2776c
AJ
6606case $host_os in
6607cygwin* | mingw* | pw32* | cegcc*)
6608 # two different shell functions defined in ltmain.sh
6609 # decide which to use based on capabilities of $DLLTOOL
6610 case `$DLLTOOL --help 2>&1` in
6611 *--identify-strict*)
6612 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6613 ;;
6614 *)
6615 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6616 ;;
6617 esac
6618 ;;
6619*)
6620 # fallback: assume linklib IS sharedlib
6621 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6622 ;;
6623esac
c52df125 6624
eec2776c
AJ
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
c52df125
AC
6630
6631
6632
6633
6634
6635
6636
eec2776c
AJ
6637if test -n "$ac_tool_prefix"; then
6638 for ac_prog in ar
6639 do
6640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if ${ac_cv_prog_AR+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646else
6647 if test -n "$AR"; then
6648 ac_cv_prog_AR="$AR" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
c52df125 6664
eec2776c
AJ
6665fi
6666fi
6667AR=$ac_cv_prog_AR
6668if test -n "$AR"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6670$as_echo "$AR" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
c52df125
AC
6675
6676
eec2776c
AJ
6677 test -n "$AR" && break
6678 done
6679fi
6680if test -z "$AR"; then
6681 ac_ct_AR=$AR
6682 for ac_prog in ar
6683do
6684 # Extract the first word of "$ac_prog", so it can be a program name with args.
6685set dummy $ac_prog; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if ${ac_cv_prog_ac_ct_AR+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690else
6691 if test -n "$ac_ct_AR"; then
6692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_ac_ct_AR="$ac_prog"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706 done
6707IFS=$as_save_IFS
c52df125 6708
eec2776c
AJ
6709fi
6710fi
6711ac_ct_AR=$ac_cv_prog_ac_ct_AR
6712if test -n "$ac_ct_AR"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6714$as_echo "$ac_ct_AR" >&6; }
c52df125 6715else
eec2776c
AJ
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
c52df125
AC
6718fi
6719
6720
eec2776c
AJ
6721 test -n "$ac_ct_AR" && break
6722done
6723
6724 if test "x$ac_ct_AR" = x; then
6725 AR="false"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728yes:)
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731ac_tool_warned=yes ;;
c52df125 6732esac
eec2776c
AJ
6733 AR=$ac_ct_AR
6734 fi
6735fi
c52df125 6736
eec2776c
AJ
6737: ${AR=ar}
6738: ${AR_FLAGS=cru}
c52df125
AC
6739
6740
6741
6742
6743
c52df125 6744
c52df125 6745
eec2776c
AJ
6746
6747
6748
6749
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6751$as_echo_n "checking for archiver @FILE support... " >&6; }
6752if ${lt_cv_ar_at_file+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754else
6755 lt_cv_ar_at_file=no
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h. */
6758
6759int
6760main ()
6761{
6762
6763 ;
6764 return 0;
6765}
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768 echo conftest.$ac_objext > conftest.lst
6769 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6771 (eval $lt_ar_try) 2>&5
c52df125
AC
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
eec2776c
AJ
6774 test $ac_status = 0; }
6775 if test "$ac_status" -eq 0; then
6776 # Ensure the archiver fails upon bogus file names.
6777 rm -f conftest.$ac_objext libconftest.a
6778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6779 (eval $lt_ar_try) 2>&5
c52df125
AC
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
eec2776c
AJ
6782 test $ac_status = 0; }
6783 if test "$ac_status" -ne 0; then
6784 lt_cv_ar_at_file=@
6785 fi
6786 fi
6787 rm -f conftest.* libconftest.a
c52df125 6788
eec2776c
AJ
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c52df125 6791
eec2776c
AJ
6792fi
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6794$as_echo "$lt_cv_ar_at_file" >&6; }
6795
6796if test "x$lt_cv_ar_at_file" = xno; then
6797 archiver_list_spec=
c52df125 6798else
eec2776c
AJ
6799 archiver_list_spec=$lt_cv_ar_at_file
6800fi
6801
c52df125 6802
c52df125 6803
c52df125 6804
c52df125 6805
c52df125 6806
c52df125
AC
6807
6808if test -n "$ac_tool_prefix"; then
eec2776c
AJ
6809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}strip; ac_word=$2
c52df125
AC
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6813if ${ac_cv_prog_STRIP+:} false; then :
c52df125
AC
6814 $as_echo_n "(cached) " >&6
6815else
eec2776c
AJ
6816 if test -n "$STRIP"; then
6817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
c52df125
AC
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
c52df125
AC
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831 done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
eec2776c
AJ
6836STRIP=$ac_cv_prog_STRIP
6837if test -n "$STRIP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6839$as_echo "$STRIP" >&6; }
c52df125
AC
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
eec2776c
AJ
6847if test -z "$ac_cv_prog_STRIP"; then
6848 ac_ct_STRIP=$STRIP
6849 # Extract the first word of "strip", so it can be a program name with args.
6850set dummy strip; ac_word=$2
c52df125
AC
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6853if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
c52df125
AC
6854 $as_echo_n "(cached) " >&6
6855else
eec2776c
AJ
6856 if test -n "$ac_ct_STRIP"; then
6857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
c52df125
AC
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6866 ac_cv_prog_ac_ct_STRIP="strip"
c52df125
AC
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
eec2776c
AJ
6876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6877if test -n "$ac_ct_STRIP"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6879$as_echo "$ac_ct_STRIP" >&6; }
c52df125
AC
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
eec2776c
AJ
6885 if test "x$ac_ct_STRIP" = x; then
6886 STRIP=":"
c52df125
AC
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
eec2776c 6894 STRIP=$ac_ct_STRIP
c52df125
AC
6895 fi
6896else
eec2776c 6897 STRIP="$ac_cv_prog_STRIP"
c52df125
AC
6898fi
6899
eec2776c 6900test -z "$STRIP" && STRIP=:
c52df125
AC
6901
6902
6903
6904
6905
6906
eec2776c
AJ
6907if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
c52df125
AC
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6912if ${ac_cv_prog_RANLIB+:} false; then :
c52df125
AC
6913 $as_echo_n "(cached) " >&6
6914else
eec2776c
AJ
6915 if test -n "$RANLIB"; then
6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c52df125
AC
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
c52df125
AC
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930 done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
eec2776c
AJ
6935RANLIB=$ac_cv_prog_RANLIB
6936if test -n "$RANLIB"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6938$as_echo "$RANLIB" >&6; }
c52df125
AC
6939else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
eec2776c
AJ
6946if test -z "$ac_cv_prog_RANLIB"; then
6947 ac_ct_RANLIB=$RANLIB
6948 # Extract the first word of "ranlib", so it can be a program name with args.
6949set dummy ranlib; ac_word=$2
c52df125
AC
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
eec2776c 6952if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
c52df125
AC
6953 $as_echo_n "(cached) " >&6
6954else
eec2776c
AJ
6955 if test -n "$ac_ct_RANLIB"; then
6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
c52df125
AC
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eec2776c 6965 ac_cv_prog_ac_ct_RANLIB="ranlib"
c52df125
AC
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970 done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
eec2776c
AJ
6975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976if test -n "$ac_ct_RANLIB"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6978$as_echo "$ac_ct_RANLIB" >&6; }
6979else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
c52df125
AC
6981$as_echo "no" >&6; }
6982fi
6983
eec2776c
AJ
6984 if test "x$ac_ct_RANLIB" = x; then
6985 RANLIB=":"
c52df125
AC
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
eec2776c 6993 RANLIB=$ac_ct_RANLIB
c52df125
AC
6994 fi
6995else
eec2776c 6996 RANLIB="$ac_cv_prog_RANLIB"
c52df125
AC
6997fi
6998
eec2776c 6999test -z "$RANLIB" && RANLIB=:
c52df125 7000
c52df125
AC
7001
7002
c52df125 7003
eec2776c
AJ
7004
7005
7006# Determine commands to create old-style static archives.
7007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7008old_postinstall_cmds='chmod 644 $oldlib'
7009old_postuninstall_cmds=
7010
7011if test -n "$RANLIB"; then
7012 case $host_os in
7013 openbsd*)
7014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7015 ;;
7016 *)
7017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7018 ;;
7019 esac
7020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
c52df125
AC
7021fi
7022
eec2776c
AJ
7023case $host_os in
7024 darwin*)
7025 lock_old_archive_extraction=yes ;;
7026 *)
7027 lock_old_archive_extraction=no ;;
c52df125 7028esac
c52df125 7029
c52df125 7030
c52df125
AC
7031
7032
c52df125 7033
c52df125 7034
c52df125 7035
c52df125 7036
c52df125
AC
7037
7038
c52df125 7039
c52df125 7040
c52df125
AC
7041
7042
c52df125 7043
c52df125 7044
c52df125
AC
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
eec2776c
AJ
7068# If no C compiler was specified, use CC.
7069LTCC=${LTCC-"$CC"}
c52df125 7070
eec2776c
AJ
7071# If no C compiler flags were specified, use CFLAGS.
7072LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
c52df125 7073
eec2776c
AJ
7074# Allow CC to be a program name with arguments.
7075compiler=$CC
c52df125
AC
7076
7077
eec2776c
AJ
7078# Check for command to grab the raw symbol name followed by C symbol from nm.
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7081if ${lt_cv_sys_global_symbol_pipe+:} false; then :
c52df125
AC
7082 $as_echo_n "(cached) " >&6
7083else
c52df125 7084
eec2776c
AJ
7085# These are sane defaults that work on at least a few old systems.
7086# [They come from Ultrix. What could be older than Ultrix?!! ;)]
c52df125 7087
eec2776c
AJ
7088# Character class describing NM global symbol codes.
7089symcode='[BCDEGRST]'
c52df125 7090
eec2776c
AJ
7091# Regexp to match symbols that can be accessed directly from C.
7092sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
c52df125 7093
eec2776c
AJ
7094# Define system-specific variables.
7095case $host_os in
7096aix*)
7097 symcode='[BCDT]'
7098 ;;
7099cygwin* | mingw* | pw32* | cegcc*)
7100 symcode='[ABCDGISTW]'
7101 ;;
7102hpux*)
7103 if test "$host_cpu" = ia64; then
7104 symcode='[ABCDEGRST]'
7105 fi
7106 ;;
7107irix* | nonstopux*)
7108 symcode='[BCDEGRST]'
7109 ;;
7110osf*)
7111 symcode='[BCDEGQRST]'
7112 ;;
7113solaris*)
7114 symcode='[BDRT]'
7115 ;;
7116sco3.2v5*)
7117 symcode='[DT]'
7118 ;;
7119sysv4.2uw2*)
7120 symcode='[DT]'
7121 ;;
7122sysv5* | sco5v6* | unixware* | OpenUNIX*)
7123 symcode='[ABDT]'
7124 ;;
7125sysv4)
7126 symcode='[DFNSTU]'
7127 ;;
7128esac
c52df125 7129
eec2776c
AJ
7130# If we're using GNU nm, then use its standard symbol codes.
7131case `$NM -V 2>&1` in
7132*GNU* | *'with BFD'*)
7133 symcode='[ABCDGIRSTW]' ;;
7134esac
c52df125 7135
eec2776c
AJ
7136# Transform an extracted symbol line into a proper C declaration.
7137# Some systems (esp. on ia64) link data and code symbols differently,
7138# so use this general approach.
7139lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
c52df125 7140
eec2776c
AJ
7141# Transform an extracted symbol line into symbol name and symbol address
7142lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7143lt_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'"
c52df125 7144
eec2776c
AJ
7145# Handle CRLF in mingw tool chain
7146opt_cr=
7147case $build_os in
7148mingw*)
7149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7150 ;;
7151esac
c52df125 7152
eec2776c
AJ
7153# Try without a prefix underscore, then with it.
7154for ac_symprfx in "" "_"; do
c52df125 7155
eec2776c
AJ
7156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7157 symxfrm="\\1 $ac_symprfx\\2 \\2"
c52df125 7158
eec2776c
AJ
7159 # Write the raw and C identifiers.
7160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7161 # Fake it for dumpbin and say T for any non-static function
7162 # and D for any global variable.
7163 # Also find C++ and __fastcall symbols from MSVC++,
7164 # which start with @ or ?.
7165 lt_cv_sys_global_symbol_pipe="$AWK '"\
7166" {last_section=section; section=\$ 3};"\
7167" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7168" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7169" \$ 0!~/External *\|/{next};"\
7170" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7171" {if(hide[section]) next};"\
7172" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7173" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7174" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7175" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7176" ' prfx=^$ac_symprfx"
7177 else
7178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7179 fi
7180 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
c52df125 7181
eec2776c
AJ
7182 # Check to see that the pipe works correctly.
7183 pipe_works=no
7184
7185 rm -f conftest*
7186 cat > conftest.$ac_ext <<_LT_EOF
7187#ifdef __cplusplus
7188extern "C" {
c52df125 7189#endif
eec2776c
AJ
7190char nm_test_var;
7191void nm_test_func(void);
7192void nm_test_func(void){}
7193#ifdef __cplusplus
7194}
7195#endif
7196int main(){nm_test_var='a';nm_test_func();return(0);}
7197_LT_EOF
c52df125 7198
eec2776c
AJ
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 # Now try to grab the symbols.
7205 nlist=conftest.nm
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7207 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } && test -s "$nlist"; then
7211 # Try sorting and uniquifying the output.
7212 if sort "$nlist" | uniq > "$nlist"T; then
7213 mv -f "$nlist"T "$nlist"
7214 else
7215 rm -f "$nlist"T
7216 fi
c52df125 7217
eec2776c
AJ
7218 # Make sure that we snagged all the symbols we need.
7219 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7220 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7221 cat <<_LT_EOF > conftest.$ac_ext
7222/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7223#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7224/* DATA imports from DLLs on WIN32 con't be const, because runtime
7225 relocations are performed -- see ld's documentation on pseudo-relocs. */
7226# define LT_DLSYM_CONST
7227#elif defined(__osf__)
7228/* This system does not cope well with relocations in const data. */
7229# define LT_DLSYM_CONST
7230#else
7231# define LT_DLSYM_CONST const
7232#endif
c52df125 7233
eec2776c
AJ
7234#ifdef __cplusplus
7235extern "C" {
7236#endif
c52df125 7237
eec2776c
AJ
7238_LT_EOF
7239 # Now generate the symbol file.
7240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
c52df125 7241
eec2776c 7242 cat <<_LT_EOF >> conftest.$ac_ext
c52df125 7243
eec2776c
AJ
7244/* The mapping between symbol names and symbols. */
7245LT_DLSYM_CONST struct {
7246 const char *name;
7247 void *address;
7248}
7249lt__PROGRAM__LTX_preloaded_symbols[] =
c52df125 7250{
eec2776c
AJ
7251 { "@PROGRAM@", (void *) 0 },
7252_LT_EOF
7253 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7254 cat <<\_LT_EOF >> conftest.$ac_ext
7255 {0, (void *) 0}
7256};
c52df125 7257
eec2776c
AJ
7258/* This works around a problem in FreeBSD linker */
7259#ifdef FREEBSD_WORKAROUND
7260static const void *lt_preloaded_setup() {
7261 return lt__PROGRAM__LTX_preloaded_symbols;
c52df125 7262}
eec2776c 7263#endif
c52df125 7264
eec2776c
AJ
7265#ifdef __cplusplus
7266}
7267#endif
7268_LT_EOF
7269 # Now try linking the two files.
7270 mv conftest.$ac_objext conftstm.$ac_objext
7271 lt_globsym_save_LIBS=$LIBS
7272 lt_globsym_save_CFLAGS=$CFLAGS
7273 LIBS="conftstm.$ac_objext"
7274 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7276 (eval $ac_link) 2>&5
7277 ac_status=$?
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7280 pipe_works=yes
7281 fi
7282 LIBS=$lt_globsym_save_LIBS
7283 CFLAGS=$lt_globsym_save_CFLAGS
7284 else
7285 echo "cannot find nm_test_func in $nlist" >&5
7286 fi
7287 else
7288 echo "cannot find nm_test_var in $nlist" >&5
7289 fi
7290 else
7291 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7292 fi
7293 else
7294 echo "$progname: failed program was:" >&5
7295 cat conftest.$ac_ext >&5
7296 fi
7297 rm -rf conftest* conftst*
c52df125 7298
eec2776c
AJ
7299 # Do not use the global_symbol_pipe unless it works.
7300 if test "$pipe_works" = yes; then
7301 break
7302 else
7303 lt_cv_sys_global_symbol_pipe=
7304 fi
7305done
c52df125 7306
c52df125 7307fi
c52df125 7308
eec2776c
AJ
7309if test -z "$lt_cv_sys_global_symbol_pipe"; then
7310 lt_cv_sys_global_symbol_to_cdecl=
c52df125 7311fi
eec2776c
AJ
7312if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7314$as_echo "failed" >&6; }
c52df125 7315else
eec2776c
AJ
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7317$as_echo "ok" >&6; }
c52df125 7318fi
c52df125 7319
eec2776c
AJ
7320# Response file support.
7321if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7322 nm_file_list_spec='@'
7323elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7324 nm_file_list_spec='@'
c52df125
AC
7325fi
7326
c52df125 7327
c52df125 7328
c52df125 7329
c52df125 7330
c52df125 7331
c52df125 7332
c52df125 7333
c52df125 7334
c52df125
AC
7335
7336
c52df125 7337
c52df125 7338
c52df125
AC
7339
7340
7341
7342
7343
c52df125
AC
7344
7345
7346
7347
7348
7349
7350
7351
7352
eec2776c
AJ
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7354$as_echo_n "checking for sysroot... " >&6; }
c52df125 7355
eec2776c
AJ
7356# Check whether --with-sysroot was given.
7357if test "${with_sysroot+set}" = set; then :
7358 withval=$with_sysroot;
7359else
7360 with_sysroot=no
7361fi
c52df125
AC
7362
7363
eec2776c
AJ
7364lt_sysroot=
7365case ${with_sysroot} in #(
7366 yes)
7367 if test "$GCC" = yes; then
7368 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7369 fi
7370 ;; #(
7371 /*)
7372 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7373 ;; #(
7374 no|'')
7375 ;; #(
7376 *)
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7378$as_echo "${with_sysroot}" >&6; }
7379 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7380 ;;
7381esac
c52df125 7382
eec2776c
AJ
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7384$as_echo "${lt_sysroot:-no}" >&6; }
c52df125
AC
7385
7386
7387
7388
7389
eec2776c
AJ
7390# Check whether --enable-libtool-lock was given.
7391if test "${enable_libtool_lock+set}" = set; then :
7392 enableval=$enable_libtool_lock;
c52df125
AC
7393fi
7394
eec2776c 7395test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
c52df125 7396
eec2776c
AJ
7397# Some flags need to be propagated to the compiler or linker for good
7398# libtool support.
7399case $host in
7400ia64-*-hpux*)
7401 # Find out which ABI we are using.
7402 echo 'int i;' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7405 ac_status=$?
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 case `/usr/bin/file conftest.$ac_objext` in
7409 *ELF-32*)
7410 HPUX_IA64_MODE="32"
7411 ;;
7412 *ELF-64*)
7413 HPUX_IA64_MODE="64"
7414 ;;
7415 esac
7416 fi
7417 rm -rf conftest*
7418 ;;
7419*-*-irix6*)
7420 # Find out which ABI we are using.
7421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7423 (eval $ac_compile) 2>&5
7424 ac_status=$?
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; then
7427 if test "$lt_cv_prog_gnu_ld" = yes; then
7428 case `/usr/bin/file conftest.$ac_objext` in
7429 *32-bit*)
7430 LD="${LD-ld} -melf32bsmip"
7431 ;;
7432 *N32*)
7433 LD="${LD-ld} -melf32bmipn32"
7434 ;;
7435 *64-bit*)
7436 LD="${LD-ld} -melf64bmip"
7437 ;;
7438 esac
7439 else
7440 case `/usr/bin/file conftest.$ac_objext` in
7441 *32-bit*)
7442 LD="${LD-ld} -32"
7443 ;;
7444 *N32*)
7445 LD="${LD-ld} -n32"
7446 ;;
7447 *64-bit*)
7448 LD="${LD-ld} -64"
7449 ;;
7450 esac
7451 fi
7452 fi
7453 rm -rf conftest*
7454 ;;
c52df125 7455
eec2776c
AJ
7456x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7457s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7458 # Find out which ABI we are using.
7459 echo 'int i;' > conftest.$ac_ext
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7462 ac_status=$?
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 case `/usr/bin/file conftest.o` in
7466 *32-bit*)
7467 case $host in
7468 x86_64-*kfreebsd*-gnu)
7469 LD="${LD-ld} -m elf_i386_fbsd"
7470 ;;
7471 x86_64-*linux*)
7472 case `/usr/bin/file conftest.o` in
7473 *x86-64*)
7474 LD="${LD-ld} -m elf32_x86_64"
7475 ;;
7476 *)
7477 LD="${LD-ld} -m elf_i386"
7478 ;;
7479 esac
7480 ;;
7481 powerpc64le-*)
7482 LD="${LD-ld} -m elf32lppclinux"
7483 ;;
7484 powerpc64-*)
7485 LD="${LD-ld} -m elf32ppclinux"
7486 ;;
7487 s390x-*linux*)
7488 LD="${LD-ld} -m elf_s390"
7489 ;;
7490 sparc64-*linux*)
7491 LD="${LD-ld} -m elf32_sparc"
7492 ;;
7493 esac
7494 ;;
7495 *64-bit*)
7496 case $host in
7497 x86_64-*kfreebsd*-gnu)
7498 LD="${LD-ld} -m elf_x86_64_fbsd"
7499 ;;
7500 x86_64-*linux*)
7501 LD="${LD-ld} -m elf_x86_64"
7502 ;;
7503 powerpcle-*)
7504 LD="${LD-ld} -m elf64lppc"
7505 ;;
7506 powerpc-*)
7507 LD="${LD-ld} -m elf64ppc"
7508 ;;
7509 s390*-*linux*|s390*-*tpf*)
7510 LD="${LD-ld} -m elf64_s390"
7511 ;;
7512 sparc*-*linux*)
7513 LD="${LD-ld} -m elf64_sparc"
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 fi
7519 rm -rf conftest*
7520 ;;
c52df125 7521
eec2776c
AJ
7522*-*-sco3.2v5*)
7523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7524 SAVE_CFLAGS="$CFLAGS"
7525 CFLAGS="$CFLAGS -belf"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7527$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7528if ${lt_cv_cc_needs_belf+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530else
7531 ac_ext=c
7532ac_cpp='$CPP $CPPFLAGS'
7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 7536
eec2776c
AJ
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h. */
c52df125 7539
eec2776c
AJ
7540int
7541main ()
7542{
c52df125 7543
eec2776c
AJ
7544 ;
7545 return 0;
7546}
7547_ACEOF
7548if ac_fn_c_try_link "$LINENO"; then :
7549 lt_cv_cc_needs_belf=yes
c52df125 7550else
eec2776c 7551 lt_cv_cc_needs_belf=no
c52df125 7552fi
eec2776c
AJ
7553rm -f core conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
7555 ac_ext=c
7556ac_cpp='$CPP $CPPFLAGS'
7557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 7560
eec2776c
AJ
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7563$as_echo "$lt_cv_cc_needs_belf" >&6; }
7564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7566 CFLAGS="$SAVE_CFLAGS"
7567 fi
7568 ;;
7569*-*solaris*)
7570 # Find out which ABI we are using.
7571 echo 'int i;' > conftest.$ac_ext
7572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7573 (eval $ac_compile) 2>&5
7574 ac_status=$?
7575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576 test $ac_status = 0; }; then
7577 case `/usr/bin/file conftest.o` in
7578 *64-bit*)
7579 case $lt_cv_prog_gnu_ld in
7580 yes*)
7581 case $host in
7582 i?86-*-solaris*)
7583 LD="${LD-ld} -m elf_x86_64"
7584 ;;
7585 sparc*-*-solaris*)
7586 LD="${LD-ld} -m elf64_sparc"
7587 ;;
7588 esac
7589 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7590 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7591 LD="${LD-ld}_sol2"
7592 fi
7593 ;;
7594 *)
7595 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7596 LD="${LD-ld} -64"
7597 fi
7598 ;;
7599 esac
7600 ;;
7601 esac
7602 fi
7603 rm -rf conftest*
7604 ;;
7605esac
c52df125 7606
eec2776c 7607need_locks="$enable_libtool_lock"
c52df125 7608
eec2776c
AJ
7609if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7611set dummy ${ac_tool_prefix}mt; ac_word=$2
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613$as_echo_n "checking for $ac_word... " >&6; }
7614if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616else
7617 if test -n "$MANIFEST_TOOL"; then
7618 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632 done
7633IFS=$as_save_IFS
c52df125 7634
eec2776c
AJ
7635fi
7636fi
7637MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7638if test -n "$MANIFEST_TOOL"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7640$as_echo "$MANIFEST_TOOL" >&6; }
7641else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643$as_echo "no" >&6; }
7644fi
c52df125
AC
7645
7646
eec2776c
AJ
7647fi
7648if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7649 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7650 # Extract the first word of "mt", so it can be a program name with args.
7651set dummy mt; ac_word=$2
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653$as_echo_n "checking for $ac_word... " >&6; }
7654if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656else
7657 if test -n "$ac_ct_MANIFEST_TOOL"; then
7658 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671done
7672 done
7673IFS=$as_save_IFS
c52df125 7674
eec2776c
AJ
7675fi
7676fi
7677ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7678if test -n "$ac_ct_MANIFEST_TOOL"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7680$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7681else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684fi
c52df125 7685
eec2776c
AJ
7686 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7687 MANIFEST_TOOL=":"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690yes:)
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693ac_tool_warned=yes ;;
7694esac
7695 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7696 fi
7697else
7698 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7699fi
c52df125 7700
eec2776c
AJ
7701test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7703$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7704if ${lt_cv_path_mainfest_tool+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706else
7707 lt_cv_path_mainfest_tool=no
7708 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7709 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7710 cat conftest.err >&5
7711 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7712 lt_cv_path_mainfest_tool=yes
7713 fi
7714 rm -f conftest*
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7717$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7718if test "x$lt_cv_path_mainfest_tool" != xyes; then
7719 MANIFEST_TOOL=:
7720fi
c52df125
AC
7721
7722
7723
7724
7725
7726
eec2776c
AJ
7727 case $host_os in
7728 rhapsody* | darwin*)
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7731set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if ${ac_cv_prog_DSYMUTIL+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736else
7737 if test -n "$DSYMUTIL"; then
7738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751done
7752 done
7753IFS=$as_save_IFS
c52df125 7754
eec2776c
AJ
7755fi
7756fi
7757DSYMUTIL=$ac_cv_prog_DSYMUTIL
7758if test -n "$DSYMUTIL"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7760$as_echo "$DSYMUTIL" >&6; }
7761else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
c52df125
AC
7765
7766
c52df125 7767fi
eec2776c
AJ
7768if test -z "$ac_cv_prog_DSYMUTIL"; then
7769 ac_ct_DSYMUTIL=$DSYMUTIL
7770 # Extract the first word of "dsymutil", so it can be a program name with args.
7771set dummy dsymutil; ac_word=$2
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
7774if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
c52df125
AC
7775 $as_echo_n "(cached) " >&6
7776else
eec2776c
AJ
7777 if test -n "$ac_ct_DSYMUTIL"; then
7778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
c52df125 7779else
eec2776c
AJ
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792 done
7793IFS=$as_save_IFS
7794
c52df125 7795fi
c52df125 7796fi
eec2776c
AJ
7797ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7798if test -n "$ac_ct_DSYMUTIL"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7800$as_echo "$ac_ct_DSYMUTIL" >&6; }
7801else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
7804fi
c52df125 7805
eec2776c
AJ
7806 if test "x$ac_ct_DSYMUTIL" = x; then
7807 DSYMUTIL=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
c52df125 7814esac
eec2776c
AJ
7815 DSYMUTIL=$ac_ct_DSYMUTIL
7816 fi
7817else
7818 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7819fi
c52df125 7820
eec2776c
AJ
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7823set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
7826if ${ac_cv_prog_NMEDIT+:} false; then :
c52df125
AC
7827 $as_echo_n "(cached) " >&6
7828else
eec2776c
AJ
7829 if test -n "$NMEDIT"; then
7830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
c52df125 7844 done
eec2776c 7845IFS=$as_save_IFS
c52df125 7846
eec2776c
AJ
7847fi
7848fi
7849NMEDIT=$ac_cv_prog_NMEDIT
7850if test -n "$NMEDIT"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7852$as_echo "$NMEDIT" >&6; }
c52df125
AC
7853else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858
eec2776c
AJ
7859fi
7860if test -z "$ac_cv_prog_NMEDIT"; then
7861 ac_ct_NMEDIT=$NMEDIT
7862 # Extract the first word of "nmedit", so it can be a program name with args.
7863set dummy nmedit; ac_word=$2
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
c52df125
AC
7867 $as_echo_n "(cached) " >&6
7868else
eec2776c
AJ
7869 if test -n "$ac_ct_NMEDIT"; then
7870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883done
c52df125 7884 done
eec2776c 7885IFS=$as_save_IFS
c52df125 7886
eec2776c
AJ
7887fi
7888fi
7889ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7890if test -n "$ac_ct_NMEDIT"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7892$as_echo "$ac_ct_NMEDIT" >&6; }
c52df125
AC
7893else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
eec2776c
AJ
7898 if test "x$ac_ct_NMEDIT" = x; then
7899 NMEDIT=":"
c52df125 7900 else
eec2776c
AJ
7901 case $cross_compiling:$ac_tool_warned in
7902yes:)
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905ac_tool_warned=yes ;;
7906esac
7907 NMEDIT=$ac_ct_NMEDIT
c52df125 7908 fi
eec2776c
AJ
7909else
7910 NMEDIT="$ac_cv_prog_NMEDIT"
c52df125
AC
7911fi
7912
eec2776c
AJ
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7915set dummy ${ac_tool_prefix}lipo; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if ${ac_cv_prog_LIPO+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920else
7921 if test -n "$LIPO"; then
7922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936 done
7937IFS=$as_save_IFS
c52df125 7938
eec2776c
AJ
7939fi
7940fi
7941LIPO=$ac_cv_prog_LIPO
7942if test -n "$LIPO"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7944$as_echo "$LIPO" >&6; }
7945else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
7948fi
c52df125 7949
c52df125 7950
eec2776c
AJ
7951fi
7952if test -z "$ac_cv_prog_LIPO"; then
7953 ac_ct_LIPO=$LIPO
7954 # Extract the first word of "lipo", so it can be a program name with args.
7955set dummy lipo; ac_word=$2
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957$as_echo_n "checking for $ac_word... " >&6; }
7958if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
c52df125
AC
7959 $as_echo_n "(cached) " >&6
7960else
eec2776c
AJ
7961 if test -n "$ac_ct_LIPO"; then
7962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7971 ac_cv_prog_ac_ct_LIPO="lipo"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975done
7976 done
7977IFS=$as_save_IFS
c52df125
AC
7978
7979fi
eec2776c
AJ
7980fi
7981ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7982if test -n "$ac_ct_LIPO"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7984$as_echo "$ac_ct_LIPO" >&6; }
c52df125 7985else
eec2776c
AJ
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
c52df125
AC
7988fi
7989
eec2776c
AJ
7990 if test "x$ac_ct_LIPO" = x; then
7991 LIPO=":"
7992 else
7993 case $cross_compiling:$ac_tool_warned in
7994yes:)
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997ac_tool_warned=yes ;;
7998esac
7999 LIPO=$ac_ct_LIPO
8000 fi
8001else
8002 LIPO="$ac_cv_prog_LIPO"
c52df125
AC
8003fi
8004
eec2776c
AJ
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8007set dummy ${ac_tool_prefix}otool; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
8010if ${ac_cv_prog_OTOOL+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012else
8013 if test -n "$OTOOL"; then
8014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028 done
8029IFS=$as_save_IFS
c52df125 8030
eec2776c
AJ
8031fi
8032fi
8033OTOOL=$ac_cv_prog_OTOOL
8034if test -n "$OTOOL"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8036$as_echo "$OTOOL" >&6; }
8037else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
c52df125
AC
8041
8042
eec2776c
AJ
8043fi
8044if test -z "$ac_cv_prog_OTOOL"; then
8045 ac_ct_OTOOL=$OTOOL
8046 # Extract the first word of "otool", so it can be a program name with args.
8047set dummy otool; ac_word=$2
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052else
8053 if test -n "$ac_ct_OTOOL"; then
8054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_ac_ct_OTOOL="otool"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067done
8068 done
8069IFS=$as_save_IFS
c52df125 8070
eec2776c
AJ
8071fi
8072fi
8073ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8074if test -n "$ac_ct_OTOOL"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8076$as_echo "$ac_ct_OTOOL" >&6; }
8077else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080fi
c52df125 8081
eec2776c
AJ
8082 if test "x$ac_ct_OTOOL" = x; then
8083 OTOOL=":"
8084 else
8085 case $cross_compiling:$ac_tool_warned in
8086yes:)
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089ac_tool_warned=yes ;;
8090esac
8091 OTOOL=$ac_ct_OTOOL
8092 fi
8093else
8094 OTOOL="$ac_cv_prog_OTOOL"
8095fi
c52df125 8096
eec2776c
AJ
8097 if test -n "$ac_tool_prefix"; then
8098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8099set dummy ${ac_tool_prefix}otool64; ac_word=$2
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101$as_echo_n "checking for $ac_word... " >&6; }
8102if ${ac_cv_prog_OTOOL64+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104else
8105 if test -n "$OTOOL64"; then
8106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119done
8120 done
8121IFS=$as_save_IFS
c52df125 8122
eec2776c
AJ
8123fi
8124fi
8125OTOOL64=$ac_cv_prog_OTOOL64
8126if test -n "$OTOOL64"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8128$as_echo "$OTOOL64" >&6; }
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132fi
c52df125 8133
c52df125 8134
eec2776c
AJ
8135fi
8136if test -z "$ac_cv_prog_OTOOL64"; then
8137 ac_ct_OTOOL64=$OTOOL64
8138 # Extract the first word of "otool64", so it can be a program name with args.
8139set dummy otool64; ac_word=$2
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141$as_echo_n "checking for $ac_word... " >&6; }
8142if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144else
8145 if test -n "$ac_ct_OTOOL64"; then
8146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8147else
8148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_ac_ct_OTOOL64="otool64"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159done
8160 done
8161IFS=$as_save_IFS
c52df125 8162
eec2776c
AJ
8163fi
8164fi
8165ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8166if test -n "$ac_ct_OTOOL64"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8168$as_echo "$ac_ct_OTOOL64" >&6; }
8169else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171$as_echo "no" >&6; }
8172fi
c52df125 8173
eec2776c
AJ
8174 if test "x$ac_ct_OTOOL64" = x; then
8175 OTOOL64=":"
8176 else
8177 case $cross_compiling:$ac_tool_warned in
8178yes:)
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181ac_tool_warned=yes ;;
8182esac
8183 OTOOL64=$ac_ct_OTOOL64
8184 fi
8185else
8186 OTOOL64="$ac_cv_prog_OTOOL64"
8187fi
c52df125 8188
c52df125 8189
c52df125 8190
c52df125 8191
c52df125 8192
c52df125 8193
c52df125 8194
c52df125 8195
c52df125 8196
c52df125 8197
c52df125 8198
c52df125 8199
c52df125 8200
c52df125 8201
c52df125 8202
c52df125 8203
c52df125 8204
c52df125 8205
c52df125 8206
c52df125 8207
c52df125 8208
c52df125 8209
c52df125 8210
c52df125 8211
c52df125 8212
c52df125 8213
c52df125 8214
eec2776c
AJ
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8216$as_echo_n "checking for -single_module linker flag... " >&6; }
8217if ${lt_cv_apple_cc_single_mod+:} false; then :
c52df125
AC
8218 $as_echo_n "(cached) " >&6
8219else
eec2776c
AJ
8220 lt_cv_apple_cc_single_mod=no
8221 if test -z "${LT_MULTI_MODULE}"; then
8222 # By default we will add the -single_module flag. You can override
8223 # by either setting the environment variable LT_MULTI_MODULE
8224 # non-empty at configure time, or by adding -multi_module to the
8225 # link flags.
8226 rm -rf libconftest.dylib*
8227 echo "int foo(void){return 1;}" > conftest.c
8228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8229-dynamiclib -Wl,-single_module conftest.c" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8232 _lt_result=$?
8233 # If there is a non-empty error log, and "single_module"
8234 # appears in it, assume the flag caused a linker warning
8235 if test -s conftest.err && $GREP single_module conftest.err; then
8236 cat conftest.err >&5
8237 # Otherwise, if the output was created with a 0 exit code from
8238 # the compiler, it worked.
8239 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8240 lt_cv_apple_cc_single_mod=yes
8241 else
8242 cat conftest.err >&5
8243 fi
8244 rm -rf libconftest.dylib*
8245 rm -f conftest.*
8246 fi
c52df125 8247fi
eec2776c
AJ
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8249$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
c52df125 8250
eec2776c
AJ
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8252$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8253if ${lt_cv_ld_exported_symbols_list+:} false; then :
c52df125
AC
8254 $as_echo_n "(cached) " >&6
8255else
eec2776c
AJ
8256 lt_cv_ld_exported_symbols_list=no
8257 save_LDFLAGS=$LDFLAGS
8258 echo "_main" > conftest.sym
8259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261/* end confdefs.h. */
c52df125 8262
eec2776c
AJ
8263int
8264main ()
8265{
c52df125 8266
eec2776c
AJ
8267 ;
8268 return 0;
8269}
8270_ACEOF
8271if ac_fn_c_try_link "$LINENO"; then :
8272 lt_cv_ld_exported_symbols_list=yes
c52df125 8273else
eec2776c 8274 lt_cv_ld_exported_symbols_list=no
c52df125 8275fi
eec2776c
AJ
8276rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 LDFLAGS="$save_LDFLAGS"
c52df125
AC
8279
8280fi
eec2776c
AJ
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8282$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
c52df125 8283
eec2776c
AJ
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8285$as_echo_n "checking for -force_load linker flag... " >&6; }
8286if ${lt_cv_ld_force_load+:} false; then :
c52df125
AC
8287 $as_echo_n "(cached) " >&6
8288else
eec2776c
AJ
8289 lt_cv_ld_force_load=no
8290 cat > conftest.c << _LT_EOF
8291int forced_loaded() { return 2;}
8292_LT_EOF
8293 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8294 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8295 echo "$AR cru libconftest.a conftest.o" >&5
8296 $AR cru libconftest.a conftest.o 2>&5
8297 echo "$RANLIB libconftest.a" >&5
8298 $RANLIB libconftest.a 2>&5
8299 cat > conftest.c << _LT_EOF
8300int main() { return 0;}
8301_LT_EOF
8302 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8303 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8304 _lt_result=$?
8305 if test -s conftest.err && $GREP force_load conftest.err; then
8306 cat conftest.err >&5
8307 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8308 lt_cv_ld_force_load=yes
8309 else
8310 cat conftest.err >&5
8311 fi
8312 rm -f conftest.err libconftest.a conftest conftest.c
8313 rm -rf conftest.dSYM
c52df125
AC
8314
8315fi
eec2776c
AJ
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8317$as_echo "$lt_cv_ld_force_load" >&6; }
8318 case $host_os in
8319 rhapsody* | darwin1.[012])
8320 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8321 darwin1.*)
8322 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8323 darwin*) # darwin 5.x on
8324 # if running on 10.5 or later, the deployment target defaults
8325 # to the OS version, if on x86, and 10.4, the deployment
8326 # target defaults to 10.4. Don't you love it?
8327 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8328 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8329 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8330 10.[012]*)
8331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8332 10.*)
8333 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8334 esac
8335 ;;
8336 esac
8337 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8338 _lt_dar_single_mod='$single_module'
8339 fi
8340 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8341 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8342 else
8343 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8344 fi
8345 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8346 _lt_dsymutil='~$DSYMUTIL $lib || :'
8347 else
8348 _lt_dsymutil=
8349 fi
8350 ;;
8351 esac
c52df125 8352
eec2776c
AJ
8353for ac_header in dlfcn.h
8354do :
8355 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8356"
8357if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8358 cat >>confdefs.h <<_ACEOF
8359#define HAVE_DLFCN_H 1
8360_ACEOF
c52df125 8361
eec2776c 8362fi
c52df125 8363
eec2776c 8364done
c52df125
AC
8365
8366
8367
8368
8369
eec2776c
AJ
8370# Set options
8371enable_dlopen=yes
8372# Check whether --enable-static was given.
8373if test "${enable_static+set}" = set; then :
8374 enableval=$enable_static; p=${PACKAGE-default}
8375 case $enableval in
8376 yes) enable_static=yes ;;
8377 no) enable_static=no ;;
8378 *)
8379 enable_static=no
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382 for pkg in $enableval; do
8383 IFS="$lt_save_ifs"
8384 if test "X$pkg" = "X$p"; then
8385 enable_static=yes
8386 fi
8387 done
8388 IFS="$lt_save_ifs"
8389 ;;
8390 esac
c52df125 8391else
eec2776c 8392 enable_static=no
c52df125 8393fi
c52df125
AC
8394
8395
8396
8397
8398
8399
c52df125 8400
c52df125 8401
c52df125
AC
8402
8403
8404
eec2776c 8405 enable_win32_dll=no
c52df125 8406
eec2776c
AJ
8407
8408 # Check whether --enable-shared was given.
8409if test "${enable_shared+set}" = set; then :
8410 enableval=$enable_shared; p=${PACKAGE-default}
8411 case $enableval in
8412 yes) enable_shared=yes ;;
8413 no) enable_shared=no ;;
8414 *)
8415 enable_shared=no
8416 # Look at the argument we got. We use all the common list separators.
8417 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8418 for pkg in $enableval; do
8419 IFS="$lt_save_ifs"
8420 if test "X$pkg" = "X$p"; then
8421 enable_shared=yes
8422 fi
8423 done
8424 IFS="$lt_save_ifs"
8425 ;;
8426 esac
c52df125 8427else
eec2776c 8428 enable_shared=yes
c52df125
AC
8429fi
8430
8431
8432
8433
8434
8435
c52df125 8436
c52df125 8437
c52df125 8438
c52df125 8439
eec2776c
AJ
8440
8441# Check whether --with-pic was given.
8442if test "${with_pic+set}" = set; then :
8443 withval=$with_pic; lt_p=${PACKAGE-default}
8444 case $withval in
8445 yes|no) pic_mode=$withval ;;
8446 *)
8447 pic_mode=default
8448 # Look at the argument we got. We use all the common list separators.
8449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8450 for lt_pkg in $withval; do
8451 IFS="$lt_save_ifs"
8452 if test "X$lt_pkg" = "X$lt_p"; then
8453 pic_mode=yes
8454 fi
8455 done
8456 IFS="$lt_save_ifs"
8457 ;;
c52df125 8458 esac
eec2776c
AJ
8459else
8460 pic_mode=default
8461fi
c52df125 8462
c52df125 8463
eec2776c 8464test -z "$pic_mode" && pic_mode=default
c52df125 8465
c52df125 8466
c52df125 8467
c52df125 8468
c52df125 8469
c52df125 8470
c52df125 8471
eec2776c
AJ
8472 # Check whether --enable-fast-install was given.
8473if test "${enable_fast_install+set}" = set; then :
8474 enableval=$enable_fast_install; p=${PACKAGE-default}
8475 case $enableval in
8476 yes) enable_fast_install=yes ;;
8477 no) enable_fast_install=no ;;
8478 *)
8479 enable_fast_install=no
8480 # Look at the argument we got. We use all the common list separators.
8481 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8482 for pkg in $enableval; do
8483 IFS="$lt_save_ifs"
8484 if test "X$pkg" = "X$p"; then
8485 enable_fast_install=yes
8486 fi
8487 done
8488 IFS="$lt_save_ifs"
c52df125 8489 ;;
eec2776c
AJ
8490 esac
8491else
8492 enable_fast_install=yes
8493fi
c52df125 8494
c52df125 8495
c52df125 8496
c52df125 8497
c52df125 8498
c52df125 8499
c52df125 8500
c52df125 8501
c52df125 8502
c52df125 8503
c52df125 8504
eec2776c
AJ
8505# This can be used to rebuild libtool when needed
8506LIBTOOL_DEPS="$ltmain"
c52df125 8507
eec2776c
AJ
8508# Always use our own libtool.
8509LIBTOOL='$(SHELL) $(top_builddir)/libtool'
c52df125 8510
c52df125 8511
c52df125 8512
c52df125 8513
c52df125 8514
c52df125 8515
c52df125 8516
c52df125 8517
c52df125 8518
c52df125 8519
c52df125 8520
c52df125 8521
c52df125 8522
c52df125 8523
c52df125 8524
c52df125 8525
c52df125 8526
c52df125 8527
c52df125 8528
c52df125 8529
c52df125 8530
c52df125 8531
c52df125 8532
c52df125 8533
c52df125 8534
c52df125 8535
c52df125
AC
8536
8537
c52df125 8538
c52df125 8539
eec2776c 8540test -z "$LN_S" && LN_S="ln -s"
c52df125 8541
c52df125 8542
c52df125 8543
c52df125 8544
c52df125 8545
c52df125 8546
c52df125 8547
c52df125 8548
c52df125 8549
c52df125 8550
c52df125 8551
c52df125 8552
c52df125 8553
c52df125 8554
eec2776c
AJ
8555if test -n "${ZSH_VERSION+set}" ; then
8556 setopt NO_GLOB_SUBST
8557fi
c52df125 8558
eec2776c
AJ
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8560$as_echo_n "checking for objdir... " >&6; }
8561if ${lt_cv_objdir+:} false; then :
c52df125
AC
8562 $as_echo_n "(cached) " >&6
8563else
eec2776c
AJ
8564 rm -f .libs 2>/dev/null
8565mkdir .libs 2>/dev/null
8566if test -d .libs; then
8567 lt_cv_objdir=.libs
c52df125 8568else
eec2776c
AJ
8569 # MS-DOS does not allow filenames that begin with a dot.
8570 lt_cv_objdir=_libs
c52df125 8571fi
eec2776c 8572rmdir .libs 2>/dev/null
c52df125 8573fi
eec2776c
AJ
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8575$as_echo "$lt_cv_objdir" >&6; }
8576objdir=$lt_cv_objdir
c52df125 8577
c52df125 8578
c52df125 8579
c52df125 8580
c52df125 8581
eec2776c
AJ
8582cat >>confdefs.h <<_ACEOF
8583#define LT_OBJDIR "$lt_cv_objdir/"
8584_ACEOF
c52df125 8585
c52df125 8586
c52df125 8587
c52df125 8588
eec2776c
AJ
8589case $host_os in
8590aix3*)
8591 # AIX sometimes has problems with the GCC collect2 program. For some
8592 # reason, if we set the COLLECT_NAMES environment variable, the problems
8593 # vanish in a puff of smoke.
8594 if test "X${COLLECT_NAMES+set}" != Xset; then
8595 COLLECT_NAMES=
8596 export COLLECT_NAMES
8597 fi
8598 ;;
8599esac
c52df125 8600
eec2776c
AJ
8601# Global variables:
8602ofile=libtool
8603can_build_shared=yes
c52df125 8604
eec2776c
AJ
8605# All known linkers require a `.a' archive for static linking (except MSVC,
8606# which needs '.lib').
8607libext=a
c52df125 8608
eec2776c 8609with_gnu_ld="$lt_cv_prog_gnu_ld"
c52df125 8610
eec2776c
AJ
8611old_CC="$CC"
8612old_CFLAGS="$CFLAGS"
c52df125 8613
eec2776c
AJ
8614# Set sane defaults for various variables
8615test -z "$CC" && CC=cc
8616test -z "$LTCC" && LTCC=$CC
8617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8618test -z "$LD" && LD=ld
8619test -z "$ac_objext" && ac_objext=o
c52df125 8620
eec2776c
AJ
8621for cc_temp in $compiler""; do
8622 case $cc_temp in
8623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8625 \-*) ;;
8626 *) break;;
8627 esac
8628done
8629cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
c52df125 8630
c52df125 8631
eec2776c
AJ
8632# Only perform the check for file, if the check method requires it
8633test -z "$MAGIC_CMD" && MAGIC_CMD=file
8634case $deplibs_check_method in
8635file_magic*)
8636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8638$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8639if ${lt_cv_path_MAGIC_CMD+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641else
8642 case $MAGIC_CMD in
8643[\\/*] | ?:[\\/]*)
8644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 ;;
8646*)
8647 lt_save_MAGIC_CMD="$MAGIC_CMD"
8648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8650 for ac_dir in $ac_dummy; do
8651 IFS="$lt_save_ifs"
8652 test -z "$ac_dir" && ac_dir=.
8653 if test -f $ac_dir/${ac_tool_prefix}file; then
8654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8655 if test -n "$file_magic_test_file"; then
8656 case $deplibs_check_method in
8657 "file_magic "*)
8658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8661 $EGREP "$file_magic_regex" > /dev/null; then
8662 :
8663 else
8664 cat <<_LT_EOF 1>&2
c52df125 8665
eec2776c
AJ
8666*** Warning: the command libtool uses to detect shared libraries,
8667*** $file_magic_cmd, produces output that libtool cannot recognize.
8668*** The result is that libtool may fail to recognize shared libraries
8669*** as such. This will affect the creation of libtool libraries that
8670*** depend on shared libraries, but programs linked with such libtool
8671*** libraries will work regardless of this problem. Nevertheless, you
8672*** may want to report the problem to your system manager and/or to
8673*** bug-libtool@gnu.org
c52df125 8674
eec2776c
AJ
8675_LT_EOF
8676 fi ;;
8677 esac
8678 fi
8679 break
c52df125 8680 fi
eec2776c
AJ
8681 done
8682 IFS="$lt_save_ifs"
8683 MAGIC_CMD="$lt_save_MAGIC_CMD"
8684 ;;
8685esac
8686fi
c52df125 8687
eec2776c
AJ
8688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8689if test -n "$MAGIC_CMD"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8691$as_echo "$MAGIC_CMD" >&6; }
8692else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694$as_echo "no" >&6; }
8695fi
c52df125
AC
8696
8697
8698
8699
8700
eec2776c
AJ
8701if test -z "$lt_cv_path_MAGIC_CMD"; then
8702 if test -n "$ac_tool_prefix"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8704$as_echo_n "checking for file... " >&6; }
8705if ${lt_cv_path_MAGIC_CMD+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707else
8708 case $MAGIC_CMD in
8709[\\/*] | ?:[\\/]*)
8710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8711 ;;
8712*)
8713 lt_save_MAGIC_CMD="$MAGIC_CMD"
8714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8716 for ac_dir in $ac_dummy; do
8717 IFS="$lt_save_ifs"
8718 test -z "$ac_dir" && ac_dir=.
8719 if test -f $ac_dir/file; then
8720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8721 if test -n "$file_magic_test_file"; then
8722 case $deplibs_check_method in
8723 "file_magic "*)
8724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8727 $EGREP "$file_magic_regex" > /dev/null; then
8728 :
8729 else
8730 cat <<_LT_EOF 1>&2
c52df125 8731
eec2776c
AJ
8732*** Warning: the command libtool uses to detect shared libraries,
8733*** $file_magic_cmd, produces output that libtool cannot recognize.
8734*** The result is that libtool may fail to recognize shared libraries
8735*** as such. This will affect the creation of libtool libraries that
8736*** depend on shared libraries, but programs linked with such libtool
8737*** libraries will work regardless of this problem. Nevertheless, you
8738*** may want to report the problem to your system manager and/or to
8739*** bug-libtool@gnu.org
c52df125 8740
eec2776c
AJ
8741_LT_EOF
8742 fi ;;
8743 esac
8744 fi
8745 break
8746 fi
8747 done
8748 IFS="$lt_save_ifs"
8749 MAGIC_CMD="$lt_save_MAGIC_CMD"
8750 ;;
8751esac
8752fi
c52df125 8753
eec2776c
AJ
8754MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8755if test -n "$MAGIC_CMD"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8757$as_echo "$MAGIC_CMD" >&6; }
8758else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760$as_echo "no" >&6; }
8761fi
c52df125
AC
8762
8763
eec2776c
AJ
8764 else
8765 MAGIC_CMD=:
8766 fi
8767fi
c52df125 8768
c52df125
AC
8769 fi
8770 ;;
8771esac
8772
eec2776c 8773# Use C for the default configuration in the libtool script
c52df125 8774
eec2776c
AJ
8775lt_save_CC="$CC"
8776ac_ext=c
8777ac_cpp='$CPP $CPPFLAGS'
8778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8780ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
8781
8782
eec2776c
AJ
8783# Source file extension for C test sources.
8784ac_ext=c
c52df125 8785
eec2776c
AJ
8786# Object file extension for compiled C test sources.
8787objext=o
8788objext=$objext
c52df125 8789
eec2776c
AJ
8790# Code to be used in simple compile tests
8791lt_simple_compile_test_code="int some_variable = 0;"
c52df125 8792
eec2776c
AJ
8793# Code to be used in simple link tests
8794lt_simple_link_test_code='int main(){return(0);}'
c52df125
AC
8795
8796
8797
8798
8799
8800
8801
eec2776c
AJ
8802# If no C compiler was specified, use CC.
8803LTCC=${LTCC-"$CC"}
c52df125 8804
eec2776c
AJ
8805# If no C compiler flags were specified, use CFLAGS.
8806LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
c52df125 8807
eec2776c
AJ
8808# Allow CC to be a program name with arguments.
8809compiler=$CC
c52df125 8810
eec2776c
AJ
8811# Save the default compiler, since it gets overwritten when the other
8812# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8813compiler_DEFAULT=$CC
c52df125 8814
eec2776c
AJ
8815# save warnings/boilerplate of simple test code
8816ac_outfile=conftest.$ac_objext
8817echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8818eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8819_lt_compiler_boilerplate=`cat conftest.err`
8820$RM conftest*
c52df125 8821
eec2776c
AJ
8822ac_outfile=conftest.$ac_objext
8823echo "$lt_simple_link_test_code" >conftest.$ac_ext
8824eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8825_lt_linker_boilerplate=`cat conftest.err`
8826$RM -r conftest*
c52df125
AC
8827
8828
eec2776c
AJ
8829## CAVEAT EMPTOR:
8830## There is no encapsulation within the following macros, do not change
8831## the running order or otherwise move them around unless you know exactly
8832## what you are doing...
8833if test -n "$compiler"; then
c52df125 8834
eec2776c 8835lt_prog_compiler_no_builtin_flag=
c52df125 8836
eec2776c
AJ
8837if test "$GCC" = yes; then
8838 case $cc_basename in
8839 nvcc*)
8840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8841 *)
8842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8843 esac
c52df125 8844
eec2776c
AJ
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8846$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8847if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849else
8850 lt_cv_prog_compiler_rtti_exceptions=no
8851 ac_outfile=conftest.$ac_objext
8852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8853 lt_compiler_flag="-fno-rtti -fno-exceptions"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 # The option is referenced via a variable to avoid confusing sed.
8859 lt_compile=`echo "$ac_compile" | $SED \
8860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862 -e 's:$: $lt_compiler_flag:'`
8863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864 (eval "$lt_compile" 2>conftest.err)
8865 ac_status=$?
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 if (exit $ac_status) && test -s "$ac_outfile"; then
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings other than the usual output.
8871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_rtti_exceptions=yes
8875 fi
8876 fi
8877 $RM conftest*
c52df125 8878
eec2776c
AJ
8879fi
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8881$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
c52df125 8882
eec2776c
AJ
8883if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8884 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8885else
8886 :
8887fi
c52df125 8888
eec2776c 8889fi
c52df125
AC
8890
8891
8892
8893
8894
8895
eec2776c
AJ
8896 lt_prog_compiler_wl=
8897lt_prog_compiler_pic=
8898lt_prog_compiler_static=
c52df125
AC
8899
8900
eec2776c
AJ
8901 if test "$GCC" = yes; then
8902 lt_prog_compiler_wl='-Wl,'
8903 lt_prog_compiler_static='-static'
c52df125 8904
eec2776c
AJ
8905 case $host_os in
8906 aix*)
8907 # All AIX code is PIC.
8908 if test "$host_cpu" = ia64; then
8909 # AIX 5 now supports IA64 processor
8910 lt_prog_compiler_static='-Bstatic'
8911 fi
8912 ;;
c52df125 8913
eec2776c
AJ
8914 amigaos*)
8915 case $host_cpu in
8916 powerpc)
8917 # see comment about AmigaOS4 .so support
8918 lt_prog_compiler_pic='-fPIC'
8919 ;;
8920 m68k)
8921 # FIXME: we need at least 68020 code to build shared libraries, but
8922 # adding the `-m68020' flag to GCC prevents building anything better,
8923 # like `-m68040'.
8924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8925 ;;
8926 esac
8927 ;;
c52df125 8928
eec2776c
AJ
8929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8930 # PIC is the default for these OSes.
8931 ;;
c52df125 8932
eec2776c
AJ
8933 mingw* | cygwin* | pw32* | os2* | cegcc*)
8934 # This hack is so that the source file can tell whether it is being
8935 # built for inclusion in a dll (and should export symbols for example).
8936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8937 # (--disable-auto-import) libraries
8938 lt_prog_compiler_pic='-DDLL_EXPORT'
8939 ;;
c52df125 8940
eec2776c
AJ
8941 darwin* | rhapsody*)
8942 # PIC is the default on this platform
8943 # Common symbols not allowed in MH_DYLIB files
8944 lt_prog_compiler_pic='-fno-common'
8945 ;;
c52df125 8946
eec2776c
AJ
8947 haiku*)
8948 # PIC is the default for Haiku.
8949 # The "-static" flag exists, but is broken.
8950 lt_prog_compiler_static=
8951 ;;
c52df125 8952
eec2776c
AJ
8953 hpux*)
8954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8956 # sets the default TLS model and affects inlining.
8957 case $host_cpu in
8958 hppa*64*)
8959 # +Z the default
8960 ;;
8961 *)
8962 lt_prog_compiler_pic='-fPIC'
8963 ;;
8964 esac
8965 ;;
c52df125 8966
eec2776c
AJ
8967 interix[3-9]*)
8968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8969 # Instead, we relocate shared libraries at runtime.
8970 ;;
c52df125 8971
eec2776c
AJ
8972 msdosdjgpp*)
8973 # Just because we use GCC doesn't mean we suddenly get shared libraries
8974 # on systems that don't support them.
8975 lt_prog_compiler_can_build_shared=no
8976 enable_shared=no
8977 ;;
c52df125 8978
eec2776c
AJ
8979 *nto* | *qnx*)
8980 # QNX uses GNU C++, but need to define -shared option too, otherwise
8981 # it will coredump.
8982 lt_prog_compiler_pic='-fPIC -shared'
8983 ;;
c52df125 8984
eec2776c
AJ
8985 sysv4*MP*)
8986 if test -d /usr/nec; then
8987 lt_prog_compiler_pic=-Kconform_pic
8988 fi
8989 ;;
c52df125 8990
eec2776c
AJ
8991 *)
8992 lt_prog_compiler_pic='-fPIC'
8993 ;;
8994 esac
c52df125 8995
eec2776c
AJ
8996 case $cc_basename in
8997 nvcc*) # Cuda Compiler Driver 2.2
8998 lt_prog_compiler_wl='-Xlinker '
8999 if test -n "$lt_prog_compiler_pic"; then
9000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9001 fi
9002 ;;
9003 esac
9004 else
9005 # PORTME Check for flag to pass linker flags through the system compiler.
9006 case $host_os in
9007 aix*)
9008 lt_prog_compiler_wl='-Wl,'
9009 if test "$host_cpu" = ia64; then
9010 # AIX 5 now supports IA64 processor
9011 lt_prog_compiler_static='-Bstatic'
9012 else
9013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9014 fi
9015 ;;
c52df125 9016
eec2776c
AJ
9017 mingw* | cygwin* | pw32* | os2* | cegcc*)
9018 # This hack is so that the source file can tell whether it is being
9019 # built for inclusion in a dll (and should export symbols for example).
9020 lt_prog_compiler_pic='-DDLL_EXPORT'
9021 ;;
c52df125 9022
eec2776c
AJ
9023 hpux9* | hpux10* | hpux11*)
9024 lt_prog_compiler_wl='-Wl,'
9025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9026 # not for PA HP-UX.
9027 case $host_cpu in
9028 hppa*64*|ia64*)
9029 # +Z the default
9030 ;;
9031 *)
9032 lt_prog_compiler_pic='+Z'
9033 ;;
9034 esac
9035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9036 lt_prog_compiler_static='${wl}-a ${wl}archive'
9037 ;;
c52df125 9038
eec2776c
AJ
9039 irix5* | irix6* | nonstopux*)
9040 lt_prog_compiler_wl='-Wl,'
9041 # PIC (with -KPIC) is the default.
9042 lt_prog_compiler_static='-non_shared'
9043 ;;
c52df125 9044
eec2776c
AJ
9045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9046 case $cc_basename in
9047 # old Intel for x86_64 which still supported -KPIC.
9048 ecc*)
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-static'
9052 ;;
9053 # icc used to be incompatible with GCC.
9054 # ICC 10 doesn't accept -KPIC any more.
9055 icc* | ifort*)
9056 lt_prog_compiler_wl='-Wl,'
9057 lt_prog_compiler_pic='-fPIC'
9058 lt_prog_compiler_static='-static'
9059 ;;
9060 # Lahey Fortran 8.1.
9061 lf95*)
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='--shared'
9064 lt_prog_compiler_static='--static'
9065 ;;
9066 nagfor*)
9067 # NAG Fortran compiler
9068 lt_prog_compiler_wl='-Wl,-Wl,,'
9069 lt_prog_compiler_pic='-PIC'
9070 lt_prog_compiler_static='-Bstatic'
9071 ;;
9072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9073 # Portland Group compilers (*not* the Pentium gcc compiler,
9074 # which looks to be a dead project)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-fpic'
9077 lt_prog_compiler_static='-Bstatic'
9078 ;;
9079 ccc*)
9080 lt_prog_compiler_wl='-Wl,'
9081 # All Alpha code is PIC.
9082 lt_prog_compiler_static='-non_shared'
9083 ;;
9084 xl* | bgxl* | bgf* | mpixl*)
9085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9086 lt_prog_compiler_wl='-Wl,'
9087 lt_prog_compiler_pic='-qpic'
9088 lt_prog_compiler_static='-qstaticlink'
9089 ;;
9090 *)
9091 case `$CC -V 2>&1 | sed 5q` in
9092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9094 lt_prog_compiler_pic='-KPIC'
9095 lt_prog_compiler_static='-Bstatic'
9096 lt_prog_compiler_wl=''
9097 ;;
9098 *Sun\ F* | *Sun*Fortran*)
9099 lt_prog_compiler_pic='-KPIC'
9100 lt_prog_compiler_static='-Bstatic'
9101 lt_prog_compiler_wl='-Qoption ld '
9102 ;;
9103 *Sun\ C*)
9104 # Sun C 5.9
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9107 lt_prog_compiler_wl='-Wl,'
9108 ;;
9109 *Intel*\ [CF]*Compiler*)
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_pic='-fPIC'
9112 lt_prog_compiler_static='-static'
9113 ;;
9114 *Portland\ Group*)
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='-fpic'
9117 lt_prog_compiler_static='-Bstatic'
9118 ;;
9119 esac
9120 ;;
9121 esac
9122 ;;
c52df125 9123
eec2776c
AJ
9124 newsos6)
9125 lt_prog_compiler_pic='-KPIC'
9126 lt_prog_compiler_static='-Bstatic'
9127 ;;
c52df125 9128
eec2776c
AJ
9129 *nto* | *qnx*)
9130 # QNX uses GNU C++, but need to define -shared option too, otherwise
9131 # it will coredump.
9132 lt_prog_compiler_pic='-fPIC -shared'
9133 ;;
c52df125 9134
eec2776c
AJ
9135 osf3* | osf4* | osf5*)
9136 lt_prog_compiler_wl='-Wl,'
9137 # All OSF/1 code is PIC.
9138 lt_prog_compiler_static='-non_shared'
9139 ;;
c52df125 9140
eec2776c
AJ
9141 rdos*)
9142 lt_prog_compiler_static='-non_shared'
9143 ;;
c52df125 9144
eec2776c
AJ
9145 solaris*)
9146 lt_prog_compiler_pic='-KPIC'
9147 lt_prog_compiler_static='-Bstatic'
9148 case $cc_basename in
9149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9150 lt_prog_compiler_wl='-Qoption ld ';;
9151 *)
9152 lt_prog_compiler_wl='-Wl,';;
9153 esac
9154 ;;
c52df125 9155
eec2776c
AJ
9156 sunos4*)
9157 lt_prog_compiler_wl='-Qoption ld '
9158 lt_prog_compiler_pic='-PIC'
9159 lt_prog_compiler_static='-Bstatic'
9160 ;;
c52df125 9161
eec2776c
AJ
9162 sysv4 | sysv4.2uw2* | sysv4.3*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-KPIC'
9165 lt_prog_compiler_static='-Bstatic'
9166 ;;
c52df125 9167
eec2776c
AJ
9168 sysv4*MP*)
9169 if test -d /usr/nec ;then
9170 lt_prog_compiler_pic='-Kconform_pic'
9171 lt_prog_compiler_static='-Bstatic'
9172 fi
9173 ;;
c52df125 9174
eec2776c
AJ
9175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9176 lt_prog_compiler_wl='-Wl,'
9177 lt_prog_compiler_pic='-KPIC'
9178 lt_prog_compiler_static='-Bstatic'
9179 ;;
c52df125 9180
eec2776c
AJ
9181 unicos*)
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_can_build_shared=no
9184 ;;
c52df125 9185
eec2776c
AJ
9186 uts4*)
9187 lt_prog_compiler_pic='-pic'
9188 lt_prog_compiler_static='-Bstatic'
9189 ;;
c52df125 9190
eec2776c
AJ
9191 *)
9192 lt_prog_compiler_can_build_shared=no
9193 ;;
9194 esac
9195 fi
c52df125 9196
eec2776c
AJ
9197case $host_os in
9198 # For platforms which do not support PIC, -DPIC is meaningless:
9199 *djgpp*)
9200 lt_prog_compiler_pic=
9201 ;;
9202 *)
9203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9204 ;;
9205esac
c52df125 9206
eec2776c
AJ
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9208$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9209if ${lt_cv_prog_compiler_pic+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211else
9212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9215$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9216lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
c52df125 9217
eec2776c
AJ
9218#
9219# Check to make sure the PIC flag actually works.
9220#
9221if test -n "$lt_prog_compiler_pic"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9224if ${lt_cv_prog_compiler_pic_works+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226else
9227 lt_cv_prog_compiler_pic_works=no
9228 ac_outfile=conftest.$ac_objext
9229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9231 # Insert the option either (1) after the last *FLAGS variable, or
9232 # (2) before a word containing "conftest.", or (3) at the end.
9233 # Note that $ac_compile itself does not contain backslashes and begins
9234 # with a dollar sign (not a hyphen), so the echo should work correctly.
9235 # The option is referenced via a variable to avoid confusing sed.
9236 lt_compile=`echo "$ac_compile" | $SED \
9237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239 -e 's:$: $lt_compiler_flag:'`
9240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9241 (eval "$lt_compile" 2>conftest.err)
9242 ac_status=$?
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 if (exit $ac_status) && test -s "$ac_outfile"; then
9246 # The compiler can only warn and ignore the option if not recognized
9247 # So say no if there are warnings other than the usual output.
9248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9251 lt_cv_prog_compiler_pic_works=yes
9252 fi
9253 fi
9254 $RM conftest*
c52df125 9255
eec2776c
AJ
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
c52df125 9259
eec2776c
AJ
9260if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9261 case $lt_prog_compiler_pic in
9262 "" | " "*) ;;
9263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9264 esac
9265else
9266 lt_prog_compiler_pic=
9267 lt_prog_compiler_can_build_shared=no
9268fi
c52df125 9269
eec2776c 9270fi
c52df125
AC
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
eec2776c
AJ
9282#
9283# Check to make sure the static flag actually works.
9284#
9285wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9287$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9288if ${lt_cv_prog_compiler_static_works+:} false; then :
9289 $as_echo_n "(cached) " >&6
9290else
9291 lt_cv_prog_compiler_static_works=no
9292 save_LDFLAGS="$LDFLAGS"
9293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9296 # The linker can only warn and ignore the option if not recognized
9297 # So say no if there are warnings
9298 if test -s conftest.err; then
9299 # Append any errors to the config.log.
9300 cat conftest.err 1>&5
9301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9303 if diff conftest.exp conftest.er2 >/dev/null; then
9304 lt_cv_prog_compiler_static_works=yes
9305 fi
9306 else
9307 lt_cv_prog_compiler_static_works=yes
9308 fi
9309 fi
9310 $RM -r conftest*
9311 LDFLAGS="$save_LDFLAGS"
c52df125 9312
eec2776c
AJ
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9315$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
c52df125 9316
eec2776c
AJ
9317if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9318 :
9319else
9320 lt_prog_compiler_static=
9321fi
c52df125
AC
9322
9323
9324
9325
9326
9327
9328
eec2776c
AJ
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9331if ${lt_cv_prog_compiler_c_o+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333else
9334 lt_cv_prog_compiler_c_o=no
9335 $RM -r conftest 2>/dev/null
9336 mkdir conftest
9337 cd conftest
9338 mkdir out
9339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
c52df125 9340
eec2776c
AJ
9341 lt_compiler_flag="-o out/conftest2.$ac_objext"
9342 # Insert the option either (1) after the last *FLAGS variable, or
9343 # (2) before a word containing "conftest.", or (3) at the end.
9344 # Note that $ac_compile itself does not contain backslashes and begins
9345 # with a dollar sign (not a hyphen), so the echo should work correctly.
9346 lt_compile=`echo "$ac_compile" | $SED \
9347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9349 -e 's:$: $lt_compiler_flag:'`
9350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9351 (eval "$lt_compile" 2>out/conftest.err)
9352 ac_status=$?
9353 cat out/conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9356 then
9357 # The compiler can only warn and ignore the option if not recognized
9358 # So say no if there are warnings
9359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9362 lt_cv_prog_compiler_c_o=yes
9363 fi
9364 fi
9365 chmod u+w . 2>&5
9366 $RM conftest*
9367 # SGI C++ compiler will create directory out/ii_files/ for
9368 # template instantiation
9369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9370 $RM out/* && rmdir out
9371 cd ..
9372 $RM -r conftest
9373 $RM conftest*
c52df125 9374
eec2776c
AJ
9375fi
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
c52df125
AC
9378
9379
9380
9381
9382
9383
eec2776c
AJ
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9385$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9386if ${lt_cv_prog_compiler_c_o+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388else
9389 lt_cv_prog_compiler_c_o=no
9390 $RM -r conftest 2>/dev/null
9391 mkdir conftest
9392 cd conftest
9393 mkdir out
9394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
c52df125 9395
eec2776c
AJ
9396 lt_compiler_flag="-o out/conftest2.$ac_objext"
9397 # Insert the option either (1) after the last *FLAGS variable, or
9398 # (2) before a word containing "conftest.", or (3) at the end.
9399 # Note that $ac_compile itself does not contain backslashes and begins
9400 # with a dollar sign (not a hyphen), so the echo should work correctly.
9401 lt_compile=`echo "$ac_compile" | $SED \
9402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404 -e 's:$: $lt_compiler_flag:'`
9405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9406 (eval "$lt_compile" 2>out/conftest.err)
9407 ac_status=$?
9408 cat out/conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9411 then
9412 # The compiler can only warn and ignore the option if not recognized
9413 # So say no if there are warnings
9414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9417 lt_cv_prog_compiler_c_o=yes
9418 fi
9419 fi
9420 chmod u+w . 2>&5
9421 $RM conftest*
9422 # SGI C++ compiler will create directory out/ii_files/ for
9423 # template instantiation
9424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9425 $RM out/* && rmdir out
9426 cd ..
9427 $RM -r conftest
9428 $RM conftest*
c52df125 9429
eec2776c
AJ
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9432$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
c52df125
AC
9433
9434
9435
9436
eec2776c
AJ
9437hard_links="nottested"
9438if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9439 # do not overwrite the value of need_locks provided by the user
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9441$as_echo_n "checking if we can lock with hard links... " >&6; }
9442 hard_links=yes
9443 $RM conftest*
9444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9445 touch conftest.a
9446 ln conftest.a conftest.b 2>&5 || hard_links=no
9447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9449$as_echo "$hard_links" >&6; }
9450 if test "$hard_links" = no; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9452$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9453 need_locks=warn
9454 fi
9455else
9456 need_locks=no
9457fi
c52df125
AC
9458
9459
9460
9461
9462
9463
eec2776c
AJ
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
c52df125 9466
eec2776c
AJ
9467 runpath_var=
9468 allow_undefined_flag=
9469 always_export_symbols=no
9470 archive_cmds=
9471 archive_expsym_cmds=
9472 compiler_needs_object=no
9473 enable_shared_with_static_runtimes=no
9474 export_dynamic_flag_spec=
9475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9476 hardcode_automatic=no
9477 hardcode_direct=no
9478 hardcode_direct_absolute=no
9479 hardcode_libdir_flag_spec=
9480 hardcode_libdir_separator=
9481 hardcode_minus_L=no
9482 hardcode_shlibpath_var=unsupported
9483 inherit_rpath=no
9484 link_all_deplibs=unknown
9485 module_cmds=
9486 module_expsym_cmds=
9487 old_archive_from_new_cmds=
9488 old_archive_from_expsyms_cmds=
9489 thread_safe_flag_spec=
9490 whole_archive_flag_spec=
9491 # include_expsyms should be a list of space-separated symbols to be *always*
9492 # included in the symbol list
9493 include_expsyms=
9494 # exclude_expsyms can be an extended regexp of symbols to exclude
9495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9497 # as well as any symbol that contains `d'.
9498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9500 # platforms (ab)use it in PIC code, but their linkers get confused if
9501 # the symbol is explicitly referenced. Since portable code cannot
9502 # rely on this symbol name, it's probably fine to never include it in
9503 # preloaded symbol tables.
9504 # Exclude shared library initialization/finalization symbols.
9505 extract_expsyms_cmds=
c52df125 9506
c52df125 9507 case $host_os in
eec2776c
AJ
9508 cygwin* | mingw* | pw32* | cegcc*)
9509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9510 # When not using gcc, we currently assume that we are using
9511 # Microsoft Visual C++.
9512 if test "$GCC" != yes; then
9513 with_gnu_ld=no
9514 fi
c52df125 9515 ;;
eec2776c
AJ
9516 interix*)
9517 # we just hope/assume this is gcc and not c89 (= MSVC++)
9518 with_gnu_ld=yes
9519 ;;
9520 openbsd*)
9521 with_gnu_ld=no
9522 ;;
9523 linux* | k*bsd*-gnu | gnu*)
9524 link_all_deplibs=no
c52df125
AC
9525 ;;
9526 esac
c52df125 9527
eec2776c 9528 ld_shlibs=yes
c52df125 9529
eec2776c
AJ
9530 # On some targets, GNU ld is compatible enough with the native linker
9531 # that we're better off using the native interface for both.
9532 lt_use_gnu_ld_interface=no
9533 if test "$with_gnu_ld" = yes; then
c52df125 9534 case $host_os in
eec2776c
AJ
9535 aix*)
9536 # The AIX port of GNU ld has always aspired to compatibility
9537 # with the native linker. However, as the warning in the GNU ld
9538 # block says, versions before 2.19.5* couldn't really create working
9539 # shared libraries, regardless of the interface used.
9540 case `$LD -v 2>&1` in
9541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9543 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9544 *)
9545 lt_use_gnu_ld_interface=yes
9546 ;;
9547 esac
9548 ;;
9549 *)
9550 lt_use_gnu_ld_interface=yes
9551 ;;
c52df125 9552 esac
c52df125 9553 fi
c52df125 9554
eec2776c
AJ
9555 if test "$lt_use_gnu_ld_interface" = yes; then
9556 # If archive_cmds runs LD, not CC, wlarc should be empty
9557 wlarc='${wl}'
c52df125 9558
eec2776c
AJ
9559 # Set some defaults for GNU ld with shared library support. These
9560 # are reset later if shared libraries are not supported. Putting them
9561 # here allows them to be overridden if necessary.
9562 runpath_var=LD_RUN_PATH
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 export_dynamic_flag_spec='${wl}--export-dynamic'
9565 # ancient GNU ld didn't support --whole-archive et. al.
9566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9567 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9568 else
9569 whole_archive_flag_spec=
9570 fi
9571 supports_anon_versioning=no
9572 case `$LD -v 2>&1` in
9573 *GNU\ gold*) supports_anon_versioning=yes ;;
9574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9577 *\ 2.11.*) ;; # other 2.11 versions
9578 *) supports_anon_versioning=yes ;;
9579 esac
c52df125 9580
eec2776c
AJ
9581 # See if GNU ld supports shared libraries.
9582 case $host_os in
9583 aix[3-9]*)
9584 # On AIX/PPC, the GNU linker is very broken
9585 if test "$host_cpu" != ia64; then
9586 ld_shlibs=no
9587 cat <<_LT_EOF 1>&2
c52df125 9588
eec2776c
AJ
9589*** Warning: the GNU linker, at least up to release 2.19, is reported
9590*** to be unable to reliably create shared libraries on AIX.
9591*** Therefore, libtool is disabling shared libraries support. If you
9592*** really care for shared libraries, you may want to install binutils
9593*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9594*** You will then need to restart the configuration process.
c52df125 9595
eec2776c
AJ
9596_LT_EOF
9597 fi
9598 ;;
c52df125 9599
eec2776c
AJ
9600 amigaos*)
9601 case $host_cpu in
9602 powerpc)
9603 # see comment about AmigaOS4 .so support
9604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9605 archive_expsym_cmds=''
9606 ;;
9607 m68k)
9608 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)'
9609 hardcode_libdir_flag_spec='-L$libdir'
9610 hardcode_minus_L=yes
9611 ;;
9612 esac
9613 ;;
c52df125 9614
eec2776c
AJ
9615 beos*)
9616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9617 allow_undefined_flag=unsupported
9618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9619 # support --undefined. This deserves some investigation. FIXME
9620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621 else
9622 ld_shlibs=no
9623 fi
c52df125 9624 ;;
eec2776c
AJ
9625
9626 cygwin* | mingw* | pw32* | cegcc*)
9627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9628 # as there is no search path for DLLs.
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 export_dynamic_flag_spec='${wl}--export-all-symbols'
9631 allow_undefined_flag=unsupported
9632 always_export_symbols=no
9633 enable_shared_with_static_runtimes=yes
9634 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'
9635 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9636
9637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9639 # If the export-symbols file already is a .def file (1st line
9640 # is EXPORTS), use it as is; otherwise, prepend...
9641 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9642 cp $export_symbols $output_objdir/$soname.def;
9643 else
9644 echo EXPORTS > $output_objdir/$soname.def;
9645 cat $export_symbols >> $output_objdir/$soname.def;
9646 fi~
9647 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9648 else
9649 ld_shlibs=no
9650 fi
c52df125 9651 ;;
c52df125 9652
eec2776c
AJ
9653 haiku*)
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 link_all_deplibs=yes
9656 ;;
c52df125 9657
eec2776c
AJ
9658 interix[3-9]*)
9659 hardcode_direct=no
9660 hardcode_shlibpath_var=no
9661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9662 export_dynamic_flag_spec='${wl}-E'
9663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9664 # Instead, shared libraries are loaded at an image base (0x10000000 by
9665 # default) and relocated if they conflict, which is a slow very memory
9666 # consuming and fragmenting process. To avoid this, we pick a random,
9667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9670 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'
c52df125 9671 ;;
eec2776c
AJ
9672
9673 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9674 tmp_diet=no
9675 if test "$host_os" = linux-dietlibc; then
9676 case $cc_basename in
9677 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9678 esac
9679 fi
9680 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9681 && test "$tmp_diet" = no
9682 then
9683 tmp_addflag=' $pic_flag'
9684 tmp_sharedflag='-shared'
9685 case $cc_basename,$host_cpu in
9686 pgcc*) # Portland Group C compiler
9687 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'
9688 tmp_addflag=' $pic_flag'
9689 ;;
9690 pgf77* | pgf90* | pgf95* | pgfortran*)
9691 # Portland Group f77 and f90 compilers
9692 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'
9693 tmp_addflag=' $pic_flag -Mnomain' ;;
9694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9695 tmp_addflag=' -i_dynamic' ;;
9696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9697 tmp_addflag=' -i_dynamic -nofor_main' ;;
9698 ifc* | ifort*) # Intel Fortran compiler
9699 tmp_addflag=' -nofor_main' ;;
9700 lf95*) # Lahey Fortran 8.1
9701 whole_archive_flag_spec=
9702 tmp_sharedflag='--shared' ;;
9703 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9704 tmp_sharedflag='-qmkshrobj'
9705 tmp_addflag= ;;
9706 nvcc*) # Cuda Compiler Driver 2.2
9707 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'
9708 compiler_needs_object=yes
9709 ;;
9710 esac
9711 case `$CC -V 2>&1 | sed 5q` in
9712 *Sun\ C*) # Sun C 5.9
9713 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'
9714 compiler_needs_object=yes
9715 tmp_sharedflag='-G' ;;
9716 *Sun\ F*) # Sun Fortran 8.3
9717 tmp_sharedflag='-G' ;;
9718 esac
9719 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720
9721 if test "x$supports_anon_versioning" = xyes; then
9722 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9724 echo "local: *; };" >> $output_objdir/$libname.ver~
9725 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9726 fi
9727
9728 case $cc_basename in
9729 xlf* | bgf* | bgxlf* | mpixlf*)
9730 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9731 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9733 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9734 if test "x$supports_anon_versioning" = xyes; then
9735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9737 echo "local: *; };" >> $output_objdir/$libname.ver~
9738 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9739 fi
9740 ;;
9741 esac
9742 else
9743 ld_shlibs=no
9744 fi
c52df125 9745 ;;
eec2776c
AJ
9746
9747 netbsd* | netbsdelf*-gnu)
9748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9750 wlarc=
c52df125 9751 else
eec2776c
AJ
9752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
c52df125 9754 fi
c52df125 9755 ;;
c52df125 9756
eec2776c
AJ
9757 solaris*)
9758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9759 ld_shlibs=no
9760 cat <<_LT_EOF 1>&2
c52df125 9761
eec2776c
AJ
9762*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9763*** create shared libraries on Solaris systems. Therefore, libtool
9764*** is disabling shared libraries support. We urge you to upgrade GNU
9765*** binutils to release 2.9.1 or newer. Another option is to modify
9766*** your PATH or compiler configuration so that the native linker is
9767*** used, and then restart.
c52df125 9768
eec2776c
AJ
9769_LT_EOF
9770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9773 else
9774 ld_shlibs=no
9775 fi
9776 ;;
c52df125 9777
eec2776c
AJ
9778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9779 case `$LD -v 2>&1` in
9780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9781 ld_shlibs=no
9782 cat <<_LT_EOF 1>&2
c52df125 9783
eec2776c
AJ
9784*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9785*** reliably create shared libraries on SCO systems. Therefore, libtool
9786*** is disabling shared libraries support. We urge you to upgrade GNU
9787*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9788*** your PATH or compiler configuration so that the native linker is
9789*** used, and then restart.
c52df125 9790
eec2776c
AJ
9791_LT_EOF
9792 ;;
9793 *)
9794 # For security reasons, it is highly recommended that you always
9795 # use absolute paths for naming shared libraries, and exclude the
9796 # DT_RUNPATH tag from executables and libraries. But doing so
9797 # requires that you compile everything twice, which is a pain.
9798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806 esac
c52df125 9807 ;;
eec2776c
AJ
9808
9809 sunos4*)
9810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9811 wlarc=
9812 hardcode_direct=yes
9813 hardcode_shlibpath_var=no
c52df125 9814 ;;
c52df125 9815
eec2776c
AJ
9816 *)
9817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9818 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9820 else
9821 ld_shlibs=no
9822 fi
9823 ;;
9824 esac
c52df125 9825
eec2776c
AJ
9826 if test "$ld_shlibs" = no; then
9827 runpath_var=
9828 hardcode_libdir_flag_spec=
9829 export_dynamic_flag_spec=
9830 whole_archive_flag_spec=
c52df125 9831 fi
eec2776c
AJ
9832 else
9833 # PORTME fill in a description of your system's linker (not GNU ld)
9834 case $host_os in
9835 aix3*)
9836 allow_undefined_flag=unsupported
9837 always_export_symbols=yes
9838 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'
9839 # Note: this linker hardcodes the directories in LIBPATH if there
9840 # are no directories specified by -L.
9841 hardcode_minus_L=yes
9842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9843 # Neither direct hardcoding nor static linking is supported with a
9844 # broken collect2.
9845 hardcode_direct=unsupported
9846 fi
9847 ;;
c52df125 9848
eec2776c
AJ
9849 aix[4-9]*)
9850 if test "$host_cpu" = ia64; then
9851 # On IA64, the linker does run time linking by default, so we don't
9852 # have to do anything special.
9853 aix_use_runtimelinking=no
9854 exp_sym_flag='-Bexport'
9855 no_entry_flag=""
9856 else
9857 # If we're using GNU nm, then we don't want the "-C" option.
9858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9859 # Also, AIX nm treats weak defined symbols like other global
9860 # defined symbols, whereas GNU nm marks them as "W".
9861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9862 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'
c52df125 9863 else
eec2776c
AJ
9864 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'
9865 fi
9866 aix_use_runtimelinking=no
c52df125 9867
eec2776c
AJ
9868 # Test if we are trying to use run time linking or normal
9869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9870 # need to do runtime linking.
9871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9872 for ld_flag in $LDFLAGS; do
9873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9874 aix_use_runtimelinking=yes
9875 break
9876 fi
9877 done
9878 ;;
9879 esac
c52df125 9880
eec2776c
AJ
9881 exp_sym_flag='-bexport'
9882 no_entry_flag='-bnoentry'
9883 fi
c52df125 9884
eec2776c
AJ
9885 # When large executables or shared objects are built, AIX ld can
9886 # have problems creating the table of contents. If linking a library
9887 # or program results in "error TOC overflow" add -mminimal-toc to
9888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
c52df125 9890
eec2776c
AJ
9891 archive_cmds=''
9892 hardcode_direct=yes
9893 hardcode_direct_absolute=yes
9894 hardcode_libdir_separator=':'
9895 link_all_deplibs=yes
9896 file_list_spec='${wl}-f,'
c52df125 9897
eec2776c
AJ
9898 if test "$GCC" = yes; then
9899 case $host_os in aix4.[012]|aix4.[012].*)
9900 # We only want to do this on AIX 4.2 and lower, the check
9901 # below for broken collect2 doesn't work under 4.3+
9902 collect2name=`${CC} -print-prog-name=collect2`
9903 if test -f "$collect2name" &&
9904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9905 then
9906 # We have reworked collect2
9907 :
9908 else
9909 # We have old collect2
9910 hardcode_direct=unsupported
9911 # It fails to find uninstalled libraries when the uninstalled
9912 # path is not listed in the libpath. Setting hardcode_minus_L
9913 # to unsupported forces relinking
9914 hardcode_minus_L=yes
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_libdir_separator=
9917 fi
9918 ;;
9919 esac
9920 shared_flag='-shared'
9921 if test "$aix_use_runtimelinking" = yes; then
9922 shared_flag="$shared_flag "'${wl}-G'
9923 fi
9924 link_all_deplibs=no
9925 else
9926 # not using gcc
9927 if test "$host_cpu" = ia64; then
9928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9929 # chokes on -Wl,-G. The following line is correct:
9930 shared_flag='-G'
9931 else
9932 if test "$aix_use_runtimelinking" = yes; then
9933 shared_flag='${wl}-G'
9934 else
9935 shared_flag='${wl}-bM:SRE'
9936 fi
9937 fi
9938 fi
9939
9940 export_dynamic_flag_spec='${wl}-bexpall'
9941 # It seems that -bexpall does not export symbols beginning with
9942 # underscore (_), so it is better to generate a list of symbols to export.
9943 always_export_symbols=yes
9944 if test "$aix_use_runtimelinking" = yes; then
9945 # Warning - without using the other runtime loading flags (-brtl),
9946 # -berok will link without error, but may produce a broken library.
9947 allow_undefined_flag='-berok'
9948 # Determine the default libpath from the value encoded in an
9949 # empty executable.
9950 if test "${lt_cv_aix_libpath+set}" = set; then
9951 aix_libpath=$lt_cv_aix_libpath
9952else
9953 if ${lt_cv_aix_libpath_+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955else
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h. */
9958
9959int
9960main ()
9961{
9962
9963 ;
9964 return 0;
9965}
9966_ACEOF
c52df125 9967if ac_fn_c_try_link "$LINENO"; then :
eec2776c
AJ
9968
9969 lt_aix_libpath_sed='
9970 /Import File Strings/,/^$/ {
9971 /^0/ {
9972 s/^0 *\([^ ]*\) *$/\1/
9973 p
9974 }
9975 }'
9976 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9977 # Check for a 64-bit object if we didn't find anything.
9978 if test -z "$lt_cv_aix_libpath_"; then
9979 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9980 fi
c52df125
AC
9981fi
9982rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
eec2776c
AJ
9984 if test -z "$lt_cv_aix_libpath_"; then
9985 lt_cv_aix_libpath_="/usr/lib:/lib"
9986 fi
c52df125
AC
9987
9988fi
9989
eec2776c
AJ
9990 aix_libpath=$lt_cv_aix_libpath_
9991fi
c52df125 9992
eec2776c
AJ
9993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9994 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"
9995 else
9996 if test "$host_cpu" = ia64; then
9997 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9998 allow_undefined_flag="-z nodefs"
9999 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"
10000 else
10001 # Determine the default libpath from the value encoded in an
10002 # empty executable.
10003 if test "${lt_cv_aix_libpath+set}" = set; then
10004 aix_libpath=$lt_cv_aix_libpath
10005else
10006 if ${lt_cv_aix_libpath_+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008else
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h. */
c52df125 10011
eec2776c
AJ
10012int
10013main ()
10014{
c52df125 10015
eec2776c
AJ
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020if ac_fn_c_try_link "$LINENO"; then :
c52df125 10021
eec2776c
AJ
10022 lt_aix_libpath_sed='
10023 /Import File Strings/,/^$/ {
10024 /^0/ {
10025 s/^0 *\([^ ]*\) *$/\1/
10026 p
10027 }
10028 }'
10029 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10030 # Check for a 64-bit object if we didn't find anything.
10031 if test -z "$lt_cv_aix_libpath_"; then
10032 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
c52df125 10033 fi
eec2776c
AJ
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 if test -z "$lt_cv_aix_libpath_"; then
10038 lt_cv_aix_libpath_="/usr/lib:/lib"
c52df125 10039 fi
c52df125 10040
eec2776c 10041fi
c52df125 10042
eec2776c
AJ
10043 aix_libpath=$lt_cv_aix_libpath_
10044fi
c52df125 10045
eec2776c
AJ
10046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10047 # Warning - without using the other run time loading flags,
10048 # -berok will link without error, but may produce a broken library.
10049 no_undefined_flag=' ${wl}-bernotok'
10050 allow_undefined_flag=' ${wl}-berok'
10051 if test "$with_gnu_ld" = yes; then
10052 # We only use this code for GNU lds that support --whole-archive.
10053 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10054 else
10055 # Exported symbols can be pulled into shared objects from archives
10056 whole_archive_flag_spec='$convenience'
10057 fi
10058 archive_cmds_need_lc=yes
10059 # This is similar to how AIX traditionally builds its shared libraries.
10060 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'
10061 fi
10062 fi
c52df125 10063 ;;
eec2776c
AJ
10064
10065 amigaos*)
10066 case $host_cpu in
10067 powerpc)
10068 # see comment about AmigaOS4 .so support
10069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070 archive_expsym_cmds=''
10071 ;;
10072 m68k)
10073 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)'
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_minus_L=yes
10076 ;;
10077 esac
c52df125 10078 ;;
c52df125 10079
eec2776c
AJ
10080 bsdi[45]*)
10081 export_dynamic_flag_spec=-rdynamic
10082 ;;
c52df125 10083
eec2776c
AJ
10084 cygwin* | mingw* | pw32* | cegcc*)
10085 # When not using gcc, we currently assume that we are using
10086 # Microsoft Visual C++.
10087 # hardcode_libdir_flag_spec is actually meaningless, as there is
10088 # no search path for DLLs.
10089 case $cc_basename in
10090 cl*)
10091 # Native MSVC
10092 hardcode_libdir_flag_spec=' '
10093 allow_undefined_flag=unsupported
10094 always_export_symbols=yes
10095 file_list_spec='@'
10096 # Tell ltmain to make .lib files, not .a files.
10097 libext=lib
10098 # Tell ltmain to make .dll files, not .so files.
10099 shrext_cmds=".dll"
10100 # FIXME: Setting linknames here is a bad hack.
10101 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10102 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10103 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10104 else
10105 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10106 fi~
10107 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10108 linknames='
10109 # The linker will not automatically build a static lib if we build a DLL.
10110 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10111 enable_shared_with_static_runtimes=yes
10112 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10114 # Don't use ranlib
10115 old_postinstall_cmds='chmod 644 $oldlib'
10116 postlink_cmds='lt_outputfile="@OUTPUT@"~
10117 lt_tool_outputfile="@TOOL_OUTPUT@"~
10118 case $lt_outputfile in
10119 *.exe|*.EXE) ;;
10120 *)
10121 lt_outputfile="$lt_outputfile.exe"
10122 lt_tool_outputfile="$lt_tool_outputfile.exe"
10123 ;;
10124 esac~
10125 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10126 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10127 $RM "$lt_outputfile.manifest";
10128 fi'
c52df125 10129 ;;
eec2776c
AJ
10130 *)
10131 # Assume MSVC wrapper
10132 hardcode_libdir_flag_spec=' '
10133 allow_undefined_flag=unsupported
10134 # Tell ltmain to make .lib files, not .a files.
10135 libext=lib
10136 # Tell ltmain to make .dll files, not .so files.
10137 shrext_cmds=".dll"
10138 # FIXME: Setting linknames here is a bad hack.
10139 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10140 # The linker will automatically build a .lib file if we build a DLL.
10141 old_archive_from_new_cmds='true'
10142 # FIXME: Should let the user specify the lib program.
10143 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10144 enable_shared_with_static_runtimes=yes
10145 ;;
10146 esac
10147 ;;
c52df125 10148
eec2776c 10149 darwin* | rhapsody*)
c52df125
AC
10150
10151
eec2776c
AJ
10152 archive_cmds_need_lc=no
10153 hardcode_direct=no
10154 hardcode_automatic=yes
10155 hardcode_shlibpath_var=unsupported
10156 if test "$lt_cv_ld_force_load" = "yes"; then
10157 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\"`'
c52df125 10158
eec2776c
AJ
10159 else
10160 whole_archive_flag_spec=''
10161 fi
10162 link_all_deplibs=yes
10163 allow_undefined_flag="$_lt_dar_allow_undefined"
10164 case $cc_basename in
10165 ifort*) _lt_dar_can_shared=yes ;;
10166 *) _lt_dar_can_shared=$GCC ;;
10167 esac
10168 if test "$_lt_dar_can_shared" = "yes"; then
10169 output_verbose_link_cmd=func_echo_all
10170 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10171 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10172 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}"
10173 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}"
c52df125 10174
eec2776c
AJ
10175 else
10176 ld_shlibs=no
10177 fi
c52df125 10178
eec2776c 10179 ;;
c52df125 10180
eec2776c
AJ
10181 dgux*)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_shlibpath_var=no
10185 ;;
c52df125 10186
eec2776c
AJ
10187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10188 # support. Future versions do this automatically, but an explicit c++rt0.o
10189 # does not break anything, and helps significantly (at the cost of a little
10190 # extra space).
10191 freebsd2.2*)
10192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10193 hardcode_libdir_flag_spec='-R$libdir'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
c52df125 10197
eec2776c
AJ
10198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10199 freebsd2.*)
10200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes
10202 hardcode_minus_L=yes
10203 hardcode_shlibpath_var=no
10204 ;;
c52df125 10205
eec2776c
AJ
10206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10207 freebsd* | dragonfly*)
10208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 ;;
c52df125 10213
eec2776c
AJ
10214 hpux9*)
10215 if test "$GCC" = yes; then
10216 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'
10217 else
10218 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'
10219 fi
10220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10221 hardcode_libdir_separator=:
10222 hardcode_direct=yes
c52df125 10223
eec2776c
AJ
10224 # hardcode_minus_L: Not really in the search PATH,
10225 # but as the default location of the library.
10226 hardcode_minus_L=yes
10227 export_dynamic_flag_spec='${wl}-E'
10228 ;;
c52df125 10229
eec2776c
AJ
10230 hpux10*)
10231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10232 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10233 else
10234 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10235 fi
10236 if test "$with_gnu_ld" = no; then
10237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10238 hardcode_libdir_separator=:
10239 hardcode_direct=yes
10240 hardcode_direct_absolute=yes
10241 export_dynamic_flag_spec='${wl}-E'
10242 # hardcode_minus_L: Not really in the search PATH,
10243 # but as the default location of the library.
10244 hardcode_minus_L=yes
10245 fi
10246 ;;
c52df125 10247
eec2776c
AJ
10248 hpux11*)
10249 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10250 case $host_cpu in
10251 hppa*64*)
10252 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 ;;
10254 ia64*)
10255 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10256 ;;
10257 *)
10258 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10259 ;;
10260 esac
10261 else
10262 case $host_cpu in
10263 hppa*64*)
10264 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 ;;
10266 ia64*)
10267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10268 ;;
10269 *)
c52df125 10270
eec2776c
AJ
10271 # Older versions of the 11.00 compiler do not understand -b yet
10272 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10274$as_echo_n "checking if $CC understands -b... " >&6; }
10275if ${lt_cv_prog_compiler__b+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 lt_cv_prog_compiler__b=no
10279 save_LDFLAGS="$LDFLAGS"
10280 LDFLAGS="$LDFLAGS -b"
10281 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10282 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10283 # The linker can only warn and ignore the option if not recognized
10284 # So say no if there are warnings
10285 if test -s conftest.err; then
10286 # Append any errors to the config.log.
10287 cat conftest.err 1>&5
10288 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10290 if diff conftest.exp conftest.er2 >/dev/null; then
10291 lt_cv_prog_compiler__b=yes
10292 fi
10293 else
10294 lt_cv_prog_compiler__b=yes
10295 fi
10296 fi
10297 $RM -r conftest*
10298 LDFLAGS="$save_LDFLAGS"
c52df125 10299
eec2776c
AJ
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10302$as_echo "$lt_cv_prog_compiler__b" >&6; }
c52df125 10303
eec2776c
AJ
10304if test x"$lt_cv_prog_compiler__b" = xyes; then
10305 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10306else
10307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10308fi
c52df125 10309
eec2776c
AJ
10310 ;;
10311 esac
10312 fi
10313 if test "$with_gnu_ld" = no; then
10314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10315 hardcode_libdir_separator=:
c52df125 10316
eec2776c
AJ
10317 case $host_cpu in
10318 hppa*64*|ia64*)
10319 hardcode_direct=no
10320 hardcode_shlibpath_var=no
10321 ;;
10322 *)
10323 hardcode_direct=yes
10324 hardcode_direct_absolute=yes
10325 export_dynamic_flag_spec='${wl}-E'
c52df125 10326
eec2776c
AJ
10327 # hardcode_minus_L: Not really in the search PATH,
10328 # but as the default location of the library.
10329 hardcode_minus_L=yes
10330 ;;
10331 esac
10332 fi
10333 ;;
c52df125 10334
eec2776c
AJ
10335 irix5* | irix6* | nonstopux*)
10336 if test "$GCC" = yes; then
10337 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'
10338 # Try to use the -exported_symbol ld option, if it does not
10339 # work, assume that -exports_file does not work either and
10340 # implicitly export all symbols.
10341 # This should be the same for all languages, so no per-tag cache variable.
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10343$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10344if ${lt_cv_irix_exported_symbol+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346else
10347 save_LDFLAGS="$LDFLAGS"
10348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350/* end confdefs.h. */
10351int foo (void) { return 0; }
10352_ACEOF
10353if ac_fn_c_try_link "$LINENO"; then :
10354 lt_cv_irix_exported_symbol=yes
10355else
10356 lt_cv_irix_exported_symbol=no
10357fi
10358rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LDFLAGS="$save_LDFLAGS"
10361fi
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10363$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10364 if test "$lt_cv_irix_exported_symbol" = yes; then
10365 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'
10366 fi
10367 else
10368 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'
10369 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'
10370 fi
10371 archive_cmds_need_lc='no'
10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373 hardcode_libdir_separator=:
10374 inherit_rpath=yes
10375 link_all_deplibs=yes
10376 ;;
c52df125 10377
eec2776c
AJ
10378 netbsd* | netbsdelf*-gnu)
10379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10381 else
10382 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10383 fi
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10387 ;;
c52df125 10388
eec2776c
AJ
10389 newsos6)
10390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_direct=yes
10392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10393 hardcode_libdir_separator=:
10394 hardcode_shlibpath_var=no
10395 ;;
c52df125 10396
eec2776c
AJ
10397 *nto* | *qnx*)
10398 ;;
c52df125 10399
eec2776c
AJ
10400 openbsd*)
10401 if test -f /usr/libexec/ld.so; then
10402 hardcode_direct=yes
10403 hardcode_shlibpath_var=no
10404 hardcode_direct_absolute=yes
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409 export_dynamic_flag_spec='${wl}-E'
10410 else
10411 case $host_os in
10412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-R$libdir'
10415 ;;
10416 *)
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10419 ;;
10420 esac
10421 fi
10422 else
10423 ld_shlibs=no
10424 fi
10425 ;;
c52df125 10426
eec2776c
AJ
10427 os2*)
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_minus_L=yes
10430 allow_undefined_flag=unsupported
10431 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'
10432 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10433 ;;
c52df125 10434
eec2776c
AJ
10435 osf3*)
10436 if test "$GCC" = yes; then
10437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10438 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'
10439 else
10440 allow_undefined_flag=' -expect_unresolved \*'
10441 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'
10442 fi
10443 archive_cmds_need_lc='no'
10444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10445 hardcode_libdir_separator=:
10446 ;;
c52df125 10447
eec2776c
AJ
10448 osf4* | osf5*) # as osf3* with the addition of -msym flag
10449 if test "$GCC" = yes; then
10450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10451 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'
10452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10453 else
10454 allow_undefined_flag=' -expect_unresolved \*'
10455 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'
10456 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~
10457 $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'
c52df125 10458
eec2776c
AJ
10459 # Both c and cxx compiler support -rpath directly
10460 hardcode_libdir_flag_spec='-rpath $libdir'
10461 fi
10462 archive_cmds_need_lc='no'
10463 hardcode_libdir_separator=:
10464 ;;
c52df125 10465
eec2776c
AJ
10466 solaris*)
10467 no_undefined_flag=' -z defs'
10468 if test "$GCC" = yes; then
10469 wlarc='${wl}'
10470 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10472 $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'
10473 else
10474 case `$CC -V 2>&1` in
10475 *"Compilers 5.0"*)
10476 wlarc=''
10477 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10480 ;;
10481 *)
10482 wlarc='${wl}'
10483 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10485 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10486 ;;
10487 esac
10488 fi
10489 hardcode_libdir_flag_spec='-R$libdir'
10490 hardcode_shlibpath_var=no
10491 case $host_os in
10492 solaris2.[0-5] | solaris2.[0-5].*) ;;
10493 *)
10494 # The compiler driver will combine and reorder linker options,
10495 # but understands `-z linker_flag'. GCC discards it without `$wl',
10496 # but is careful enough not to reorder.
10497 # Supported since Solaris 2.6 (maybe 2.5.1?)
10498 if test "$GCC" = yes; then
10499 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10500 else
10501 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10502 fi
10503 ;;
10504 esac
10505 link_all_deplibs=yes
10506 ;;
c52df125 10507
eec2776c
AJ
10508 sunos4*)
10509 if test "x$host_vendor" = xsequent; then
10510 # Use $CC to link under sequent, because it throws in some extra .o
10511 # files that make .init and .fini sections work.
10512 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513 else
10514 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10515 fi
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_direct=yes
10518 hardcode_minus_L=yes
10519 hardcode_shlibpath_var=no
10520 ;;
c52df125 10521
eec2776c
AJ
10522 sysv4)
10523 case $host_vendor in
10524 sni)
10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526 hardcode_direct=yes # is this really true???
10527 ;;
10528 siemens)
10529 ## LD is ld it makes a PLAMLIB
10530 ## CC just makes a GrossModule.
10531 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10532 reload_cmds='$CC -r -o $output$reload_objs'
10533 hardcode_direct=no
10534 ;;
10535 motorola)
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10538 ;;
10539 esac
10540 runpath_var='LD_RUN_PATH'
10541 hardcode_shlibpath_var=no
10542 ;;
c52df125 10543
eec2776c
AJ
10544 sysv4.3*)
10545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_shlibpath_var=no
10547 export_dynamic_flag_spec='-Bexport'
10548 ;;
c52df125 10549
eec2776c
AJ
10550 sysv4*MP*)
10551 if test -d /usr/nec; then
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_shlibpath_var=no
10554 runpath_var=LD_RUN_PATH
10555 hardcode_runpath_var=yes
10556 ld_shlibs=yes
10557 fi
10558 ;;
c52df125 10559
eec2776c
AJ
10560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10561 no_undefined_flag='${wl}-z,text'
10562 archive_cmds_need_lc=no
10563 hardcode_shlibpath_var=no
10564 runpath_var='LD_RUN_PATH'
c52df125 10565
eec2776c
AJ
10566 if test "$GCC" = yes; then
10567 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 else
10570 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10571 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 fi
10573 ;;
c52df125 10574
eec2776c
AJ
10575 sysv5* | sco3.2v5* | sco5v6*)
10576 # Note: We can NOT use -z defs as we might desire, because we do not
10577 # link with -lc, and that would cause any symbols used from libc to
10578 # always be unresolved, which means just about no library would
10579 # ever link correctly. If we're not using GNU ld we use -z text
10580 # though, which does catch some bad symbols but isn't as heavy-handed
10581 # as -z defs.
10582 no_undefined_flag='${wl}-z,text'
10583 allow_undefined_flag='${wl}-z,nodefs'
10584 archive_cmds_need_lc=no
10585 hardcode_shlibpath_var=no
10586 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10587 hardcode_libdir_separator=':'
10588 link_all_deplibs=yes
10589 export_dynamic_flag_spec='${wl}-Bexport'
10590 runpath_var='LD_RUN_PATH'
c52df125 10591
eec2776c
AJ
10592 if test "$GCC" = yes; then
10593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 else
10596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10598 fi
10599 ;;
c52df125 10600
eec2776c
AJ
10601 uts4*)
10602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603 hardcode_libdir_flag_spec='-L$libdir'
10604 hardcode_shlibpath_var=no
10605 ;;
c52df125 10606
eec2776c
AJ
10607 *)
10608 ld_shlibs=no
10609 ;;
10610 esac
c52df125 10611
eec2776c
AJ
10612 if test x$host_vendor = xsni; then
10613 case $host in
10614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10615 export_dynamic_flag_spec='${wl}-Blargedynsym'
10616 ;;
10617 esac
10618 fi
10619 fi
c52df125 10620
eec2776c
AJ
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10622$as_echo "$ld_shlibs" >&6; }
10623test "$ld_shlibs" = no && can_build_shared=no
c52df125 10624
eec2776c 10625with_gnu_ld=$with_gnu_ld
c52df125
AC
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
eec2776c
AJ
10641#
10642# Do we need to explicitly link libc?
10643#
10644case "x$archive_cmds_need_lc" in
10645x|xyes)
10646 # Assume -lc should be added
10647 archive_cmds_need_lc=yes
c52df125 10648
eec2776c
AJ
10649 if test "$enable_shared" = yes && test "$GCC" = yes; then
10650 case $archive_cmds in
10651 *'~'*)
10652 # FIXME: we may have to deal with multi-command sequences.
10653 ;;
10654 '$CC '*)
10655 # Test whether the compiler implicitly links with -lc since on some
10656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10657 # to ld, don't add -lc before -lgcc.
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10659$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10660if ${lt_cv_archive_cmds_need_lc+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662else
10663 $RM conftest*
10664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
c52df125 10665
eec2776c
AJ
10666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10667 (eval $ac_compile) 2>&5
10668 ac_status=$?
10669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10670 test $ac_status = 0; } 2>conftest.err; then
10671 soname=conftest
10672 lib=conftest
10673 libobjs=conftest.$ac_objext
10674 deplibs=
10675 wl=$lt_prog_compiler_wl
10676 pic_flag=$lt_prog_compiler_pic
10677 compiler_flags=-v
10678 linker_flags=-v
10679 verstring=
10680 output_objdir=.
10681 libname=conftest
10682 lt_save_allow_undefined_flag=$allow_undefined_flag
10683 allow_undefined_flag=
10684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10686 ac_status=$?
10687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688 test $ac_status = 0; }
10689 then
10690 lt_cv_archive_cmds_need_lc=no
10691 else
10692 lt_cv_archive_cmds_need_lc=yes
10693 fi
10694 allow_undefined_flag=$lt_save_allow_undefined_flag
10695 else
10696 cat conftest.err 1>&5
10697 fi
10698 $RM conftest*
c52df125 10699
eec2776c
AJ
10700fi
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10702$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10703 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10704 ;;
10705 esac
10706 fi
10707 ;;
10708esac
c52df125
AC
10709
10710
10711
10712
10713
10714
10715
10716
c52df125 10717
c52df125 10718
c52df125
AC
10719
10720
10721
10722
10723
10724
c52df125 10725
c52df125 10726
c52df125 10727
c52df125 10728
c52df125 10729
c52df125 10730
c52df125 10731
c52df125 10732
c52df125 10733
c52df125 10734
c52df125 10735
c52df125 10736
eec2776c
AJ
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10862$as_echo_n "checking dynamic linker characteristics... " >&6; }
10863
10864if test "$GCC" = yes; then
10865 case $host_os in
10866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10867 *) lt_awk_arg="/^libraries:/" ;;
10868 esac
10869 case $host_os in
10870 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10871 *) lt_sed_strip_eq="s,=/,/,g" ;;
10872 esac
10873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10874 case $lt_search_path_spec in
10875 *\;*)
10876 # if the path contains ";" then we assume it to be the separator
10877 # otherwise default to the standard path separator (i.e. ":") - it is
10878 # assumed that no part of a normal pathname contains ";" but that should
10879 # okay in the real world where ";" in dirpaths is itself problematic.
10880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10881 ;;
10882 *)
10883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10884 ;;
10885 esac
10886 # Ok, now we have the path, separated by spaces, we can step through it
10887 # and add multilib dir if necessary.
10888 lt_tmp_lt_search_path_spec=
10889 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10890 for lt_sys_path in $lt_search_path_spec; do
10891 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10893 else
10894 test -d "$lt_sys_path" && \
10895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10896 fi
10897 done
10898 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10899BEGIN {RS=" "; FS="/|\n";} {
10900 lt_foo="";
10901 lt_count=0;
10902 for (lt_i = NF; lt_i > 0; lt_i--) {
10903 if ($lt_i != "" && $lt_i != ".") {
10904 if ($lt_i == "..") {
10905 lt_count++;
10906 } else {
10907 if (lt_count == 0) {
10908 lt_foo="/" $lt_i lt_foo;
10909 } else {
10910 lt_count--;
10911 }
10912 }
10913 }
10914 }
10915 if (lt_foo != "") { lt_freq[lt_foo]++; }
10916 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10917}'`
10918 # AWK program above erroneously prepends '/' to C:/dos/paths
10919 # for these hosts.
10920 case $host_os in
10921 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10922 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10923 esac
10924 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10925else
10926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10927fi
10928library_names_spec=
10929libname_spec='lib$name'
10930soname_spec=
10931shrext_cmds=".so"
10932postinstall_cmds=
10933postuninstall_cmds=
10934finish_cmds=
10935finish_eval=
10936shlibpath_var=
10937shlibpath_overrides_runpath=unknown
10938version_type=none
10939dynamic_linker="$host_os ld.so"
10940sys_lib_dlsearch_path_spec="/lib /usr/lib"
10941need_lib_prefix=unknown
10942hardcode_into_libs=no
10943
10944# when you set need_version to no, make sure it does not cause -set_version
10945# flags to be left without arguments
10946need_version=unknown
10947
10948case $host_os in
10949aix3*)
10950 version_type=linux # correct to gnu/linux during the next big refactor
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10952 shlibpath_var=LIBPATH
10953
10954 # AIX 3 has no versioning support, so we append a major version to the name.
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 ;;
10957
10958aix[4-9]*)
10959 version_type=linux # correct to gnu/linux during the next big refactor
10960 need_lib_prefix=no
10961 need_version=no
10962 hardcode_into_libs=yes
10963 if test "$host_cpu" = ia64; then
10964 # AIX 5 supports IA64
10965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 else
10968 # With GCC up to 2.95.x, collect2 would create an import file
10969 # for dependence libraries. The import file would start with
10970 # the line `#! .'. This would cause the generated library to
10971 # depend on `.', always an invalid library. This was fixed in
10972 # development snapshots of GCC prior to 3.0.
10973 case $host_os in
10974 aix4 | aix4.[01] | aix4.[01].*)
10975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10976 echo ' yes '
10977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10978 :
10979 else
10980 can_build_shared=no
10981 fi
10982 ;;
10983 esac
10984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10985 # soname into executable. Probably we can add versioning support to
10986 # collect2, so additional links can be useful in future.
10987 if test "$aix_use_runtimelinking" = yes; then
10988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10989 # instead of lib<name>.a to let people know that these are not
10990 # typical AIX shared libraries.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 else
10993 # We preserve .a as extension for shared libraries through AIX4.2
10994 # and later when we are not doing run time linking.
10995 library_names_spec='${libname}${release}.a $libname.a'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 fi
10998 shlibpath_var=LIBPATH
10999 fi
11000 ;;
11001
11002amigaos*)
11003 case $host_cpu in
11004 powerpc)
11005 # Since July 2007 AmigaOS4 officially supports .so libraries.
11006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 ;;
11009 m68k)
11010 library_names_spec='$libname.ixlibrary $libname.a'
11011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11012 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'
11013 ;;
11014 esac
11015 ;;
11016
11017beos*)
11018 library_names_spec='${libname}${shared_ext}'
11019 dynamic_linker="$host_os ld.so"
11020 shlibpath_var=LIBRARY_PATH
11021 ;;
11022
11023bsdi[45]*)
11024 version_type=linux # correct to gnu/linux during the next big refactor
11025 need_version=no
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11032 # the default ld.so.conf also contains /usr/contrib/lib and
11033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11034 # libtool to hard-code these into programs
11035 ;;
11036
11037cygwin* | mingw* | pw32* | cegcc*)
11038 version_type=windows
11039 shrext_cmds=".dll"
11040 need_version=no
11041 need_lib_prefix=no
11042
11043 case $GCC,$cc_basename in
11044 yes,*)
11045 # gcc
11046 library_names_spec='$libname.dll.a'
11047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11048 postinstall_cmds='base_file=`basename \${file}`~
11049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11050 dldir=$destdir/`dirname \$dlpath`~
11051 test -d \$dldir || mkdir -p \$dldir~
11052 $install_prog $dir/$dlname \$dldir/$dlname~
11053 chmod a+x \$dldir/$dlname~
11054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11056 fi'
11057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11058 dlpath=$dir/\$dldll~
11059 $RM \$dlpath'
11060 shlibpath_overrides_runpath=yes
11061
11062 case $host_os in
11063 cygwin*)
11064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11066
11067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11068 ;;
11069 mingw* | cegcc*)
11070 # MinGW DLLs use traditional 'lib' prefix
11071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11072 ;;
11073 pw32*)
11074 # pw32 DLLs use 'pw' prefix rather than 'lib'
11075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11076 ;;
11077 esac
11078 dynamic_linker='Win32 ld.exe'
11079 ;;
11080
11081 *,cl*)
11082 # Native MSVC
11083 libname_spec='$name'
11084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11085 library_names_spec='${libname}.dll.lib'
11086
11087 case $build_os in
11088 mingw*)
11089 sys_lib_search_path_spec=
11090 lt_save_ifs=$IFS
11091 IFS=';'
11092 for lt_path in $LIB
11093 do
11094 IFS=$lt_save_ifs
11095 # Let DOS variable expansion print the short 8.3 style file name.
11096 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11097 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11098 done
11099 IFS=$lt_save_ifs
11100 # Convert to MSYS style.
11101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11102 ;;
11103 cygwin*)
11104 # Convert to unix form, then to dos form, then back to unix form
11105 # but this time dos style (no spaces!) so that the unix form looks
11106 # like /cygdrive/c/PROGRA~1:/cygdr...
11107 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11108 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11109 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11110 ;;
11111 *)
11112 sys_lib_search_path_spec="$LIB"
11113 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11114 # It is most probably a Windows format PATH.
11115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11116 else
11117 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11118 fi
11119 # FIXME: find the short name or the path components, as spaces are
11120 # common. (e.g. "Program Files" -> "PROGRA~1")
11121 ;;
11122 esac
11123
11124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11125 postinstall_cmds='base_file=`basename \${file}`~
11126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11127 dldir=$destdir/`dirname \$dlpath`~
11128 test -d \$dldir || mkdir -p \$dldir~
11129 $install_prog $dir/$dlname \$dldir/$dlname'
11130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11131 dlpath=$dir/\$dldll~
11132 $RM \$dlpath'
11133 shlibpath_overrides_runpath=yes
11134 dynamic_linker='Win32 link.exe'
11135 ;;
11136
11137 *)
11138 # Assume MSVC wrapper
11139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11140 dynamic_linker='Win32 ld.exe'
11141 ;;
11142 esac
11143 # FIXME: first we should search . and the directory the executable is in
11144 shlibpath_var=PATH
11145 ;;
11146
11147darwin* | rhapsody*)
11148 dynamic_linker="$host_os dyld"
11149 version_type=darwin
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11153 soname_spec='${libname}${release}${major}$shared_ext'
11154 shlibpath_overrides_runpath=yes
11155 shlibpath_var=DYLD_LIBRARY_PATH
11156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11157
11158 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11160 ;;
11161
11162dgux*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 ;;
11170
11171freebsd* | dragonfly*)
11172 # DragonFly does not have aout. When/if they implement a new
11173 # versioning mechanism, adjust this.
11174 if test -x /usr/bin/objformat; then
11175 objformat=`/usr/bin/objformat`
11176 else
11177 case $host_os in
11178 freebsd[23].*) objformat=aout ;;
11179 *) objformat=elf ;;
11180 esac
11181 fi
11182 version_type=freebsd-$objformat
11183 case $version_type in
11184 freebsd-elf*)
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11186 need_version=no
11187 need_lib_prefix=no
11188 ;;
11189 freebsd-*)
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11191 need_version=yes
11192 ;;
11193 esac
11194 shlibpath_var=LD_LIBRARY_PATH
11195 case $host_os in
11196 freebsd2.*)
11197 shlibpath_overrides_runpath=yes
11198 ;;
11199 freebsd3.[01]* | freebsdelf3.[01]*)
11200 shlibpath_overrides_runpath=yes
11201 hardcode_into_libs=yes
11202 ;;
11203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208 *) # from 4.6 on, and DragonFly
11209 shlibpath_overrides_runpath=yes
11210 hardcode_into_libs=yes
11211 ;;
11212 esac
11213 ;;
11214
11215haiku*)
11216 version_type=linux # correct to gnu/linux during the next big refactor
11217 need_lib_prefix=no
11218 need_version=no
11219 dynamic_linker="$host_os runtime_loader"
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LIBRARY_PATH
11223 shlibpath_overrides_runpath=yes
11224 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11225 hardcode_into_libs=yes
11226 ;;
11227
11228hpux9* | hpux10* | hpux11*)
11229 # Give a soname corresponding to the major version so that dld.sl refuses to
11230 # link against other versions.
11231 version_type=sunos
11232 need_lib_prefix=no
11233 need_version=no
11234 case $host_cpu in
11235 ia64*)
11236 shrext_cmds='.so'
11237 hardcode_into_libs=yes
11238 dynamic_linker="$host_os dld.so"
11239 shlibpath_var=LD_LIBRARY_PATH
11240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 if test "X$HPUX_IA64_MODE" = X32; then
11244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245 else
11246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247 fi
11248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11249 ;;
11250 hppa*64*)
11251 shrext_cmds='.sl'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.sl"
11254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11260 ;;
11261 *)
11262 shrext_cmds='.sl'
11263 dynamic_linker="$host_os dld.sl"
11264 shlibpath_var=SHLIB_PATH
11265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 ;;
11269 esac
11270 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11271 postinstall_cmds='chmod 555 $lib'
11272 # or fails outright, so override atomically:
11273 install_override_mode=555
11274 ;;
11275
11276interix[3-9]*)
11277 version_type=linux # correct to gnu/linux during the next big refactor
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 shlibpath_overrides_runpath=no
11285 hardcode_into_libs=yes
11286 ;;
11287
11288irix5* | irix6* | nonstopux*)
11289 case $host_os in
11290 nonstopux*) version_type=nonstopux ;;
11291 *)
11292 if test "$lt_cv_prog_gnu_ld" = yes; then
11293 version_type=linux # correct to gnu/linux during the next big refactor
11294 else
11295 version_type=irix
11296 fi ;;
11297 esac
11298 need_lib_prefix=no
11299 need_version=no
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11302 case $host_os in
11303 irix5* | nonstopux*)
11304 libsuff= shlibsuff=
11305 ;;
11306 *)
11307 case $LD in # libtool.m4 will add one of these switches to LD
11308 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11309 libsuff= shlibsuff= libmagic=32-bit;;
11310 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11311 libsuff=32 shlibsuff=N32 libmagic=N32;;
11312 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11313 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11314 *) libsuff= shlibsuff= libmagic=never-match;;
11315 esac
11316 ;;
11317 esac
11318 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11319 shlibpath_overrides_runpath=no
11320 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11321 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11322 hardcode_into_libs=yes
11323 ;;
11324
11325# No shared lib support for Linux oldld, aout, or coff.
11326linux*oldld* | linux*aout* | linux*coff*)
11327 dynamic_linker=no
11328 ;;
11329
11330# This must be glibc/ELF.
11331linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11332 version_type=linux # correct to gnu/linux during the next big refactor
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=no
11340
11341 # Some binutils ld are patched to set DT_RUNPATH
11342 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
c52df125
AC
11343 $as_echo_n "(cached) " >&6
11344else
eec2776c
AJ
11345 lt_cv_shlibpath_overrides_runpath=no
11346 save_LDFLAGS=$LDFLAGS
11347 save_libdir=$libdir
11348 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11349 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c52df125
AC
11351/* end confdefs.h. */
11352
c52df125
AC
11353int
11354main ()
11355{
eec2776c 11356
c52df125
AC
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
eec2776c
AJ
11362 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11363 lt_cv_shlibpath_overrides_runpath=yes
11364fi
c52df125
AC
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
eec2776c
AJ
11368 LDFLAGS=$save_LDFLAGS
11369 libdir=$save_libdir
c52df125
AC
11370
11371fi
11372
eec2776c 11373 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
c52df125 11374
eec2776c
AJ
11375 # This implies no fast_install, which is unacceptable.
11376 # Some rework will be needed to allow for fast_install
11377 # before this can be enabled.
11378 hardcode_into_libs=yes
c52df125 11379
eec2776c
AJ
11380 # Append ld.so.conf contents to the search path
11381 if test -f /etc/ld.so.conf; then
11382 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' ' '`
11383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11384 fi
c52df125 11385
eec2776c
AJ
11386 # We used to test for /lib/ld.so.1 and disable shared libraries on
11387 # powerpc, because MkLinux only supported shared libraries with the
11388 # GNU dynamic linker. Since this was broken with cross compilers,
11389 # most powerpc-linux boxes support dynamic linking these days and
11390 # people can always --disable-shared, the test was removed, and we
11391 # assume the GNU/Linux dynamic linker is in use.
11392 dynamic_linker='GNU/Linux ld.so'
11393 ;;
c52df125 11394
eec2776c
AJ
11395netbsdelf*-gnu)
11396 version_type=linux
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11404 dynamic_linker='NetBSD ld.elf_so'
11405 ;;
c52df125 11406
eec2776c
AJ
11407netbsd*)
11408 version_type=sunos
11409 need_lib_prefix=no
11410 need_version=no
11411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11414 dynamic_linker='NetBSD (a.out) ld.so'
11415 else
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11418 dynamic_linker='NetBSD ld.elf_so'
11419 fi
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11422 hardcode_into_libs=yes
11423 ;;
c52df125 11424
eec2776c
AJ
11425newsos6)
11426 version_type=linux # correct to gnu/linux during the next big refactor
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=yes
11430 ;;
c52df125 11431
eec2776c
AJ
11432*nto* | *qnx*)
11433 version_type=qnx
11434 need_lib_prefix=no
11435 need_version=no
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=no
11440 hardcode_into_libs=yes
11441 dynamic_linker='ldqnx.so'
11442 ;;
c52df125 11443
eec2776c
AJ
11444openbsd*)
11445 version_type=sunos
11446 sys_lib_dlsearch_path_spec="/usr/lib"
11447 need_lib_prefix=no
11448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11449 case $host_os in
11450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11451 *) need_version=no ;;
c52df125 11452 esac
eec2776c
AJ
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11457 case $host_os in
11458 openbsd2.[89] | openbsd2.[89].*)
11459 shlibpath_overrides_runpath=no
11460 ;;
11461 *)
11462 shlibpath_overrides_runpath=yes
11463 ;;
11464 esac
c52df125 11465 else
eec2776c 11466 shlibpath_overrides_runpath=yes
c52df125 11467 fi
eec2776c 11468 ;;
c52df125 11469
eec2776c
AJ
11470os2*)
11471 libname_spec='$name'
11472 shrext_cmds=".dll"
11473 need_lib_prefix=no
11474 library_names_spec='$libname${shared_ext} $libname.a'
11475 dynamic_linker='OS/2 ld.exe'
11476 shlibpath_var=LIBPATH
11477 ;;
c52df125 11478
eec2776c
AJ
11479osf3* | osf4* | osf5*)
11480 version_type=osf
11481 need_lib_prefix=no
11482 need_version=no
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11488 ;;
c52df125 11489
eec2776c
AJ
11490rdos*)
11491 dynamic_linker=no
11492 ;;
c52df125 11493
eec2776c
AJ
11494solaris*)
11495 version_type=linux # correct to gnu/linux during the next big refactor
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 # ldd complains unless libraries are executable
11504 postinstall_cmds='chmod +x $lib'
11505 ;;
c52df125 11506
eec2776c
AJ
11507sunos4*)
11508 version_type=sunos
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11513 if test "$with_gnu_ld" = yes; then
11514 need_lib_prefix=no
11515 fi
11516 need_version=yes
11517 ;;
c52df125 11518
eec2776c
AJ
11519sysv4 | sysv4.3*)
11520 version_type=linux # correct to gnu/linux during the next big refactor
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 case $host_vendor in
11525 sni)
11526 shlibpath_overrides_runpath=no
11527 need_lib_prefix=no
11528 runpath_var=LD_RUN_PATH
11529 ;;
11530 siemens)
11531 need_lib_prefix=no
11532 ;;
11533 motorola)
11534 need_lib_prefix=no
11535 need_version=no
11536 shlibpath_overrides_runpath=no
11537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11538 ;;
11539 esac
11540 ;;
c52df125 11541
eec2776c
AJ
11542sysv4*MP*)
11543 if test -d /usr/nec ;then
11544 version_type=linux # correct to gnu/linux during the next big refactor
11545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11546 soname_spec='$libname${shared_ext}.$major'
11547 shlibpath_var=LD_LIBRARY_PATH
11548 fi
11549 ;;
c52df125 11550
eec2776c
AJ
11551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11552 version_type=freebsd-elf
11553 need_lib_prefix=no
11554 need_version=no
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=yes
11559 hardcode_into_libs=yes
11560 if test "$with_gnu_ld" = yes; then
11561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
c52df125 11562 else
eec2776c
AJ
11563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11564 case $host_os in
11565 sco3.2v5*)
11566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11567 ;;
c52df125 11568 esac
c52df125 11569 fi
eec2776c
AJ
11570 sys_lib_dlsearch_path_spec='/usr/lib'
11571 ;;
c52df125 11572
eec2776c
AJ
11573tpf*)
11574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 need_lib_prefix=no
11577 need_version=no
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=no
11581 hardcode_into_libs=yes
11582 ;;
c52df125 11583
eec2776c
AJ
11584uts4*)
11585 version_type=linux # correct to gnu/linux during the next big refactor
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 ;;
c52df125 11590
eec2776c
AJ
11591*)
11592 dynamic_linker=no
11593 ;;
11594esac
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11596$as_echo "$dynamic_linker" >&6; }
11597test "$dynamic_linker" = no && can_build_shared=no
c52df125 11598
eec2776c
AJ
11599variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11600if test "$GCC" = yes; then
11601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11602fi
c52df125 11603
eec2776c
AJ
11604if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11606fi
11607if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11609fi
c52df125 11610
c52df125 11611
c52df125 11612
c52df125 11613
c52df125 11614
c52df125 11615
c52df125
AC
11616
11617
c52df125 11618
c52df125 11619
c52df125 11620
c52df125
AC
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
c52df125
AC
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
c52df125 11650
c52df125 11651
c52df125 11652
c52df125 11653
c52df125
AC
11654
11655
11656
11657
c52df125 11658
c52df125
AC
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
c52df125
AC
11674
11675
11676
11677
c52df125
AC
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
c52df125 11688
c52df125 11689
c52df125 11690
c52df125 11691
c52df125 11692
c52df125 11693
c52df125 11694
c52df125 11695
c52df125 11696
c52df125 11697
eec2776c
AJ
11698
11699
11700
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11703$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11704hardcode_action=
11705if test -n "$hardcode_libdir_flag_spec" ||
11706 test -n "$runpath_var" ||
11707 test "X$hardcode_automatic" = "Xyes" ; then
11708
11709 # We can hardcode non-existent directories.
11710 if test "$hardcode_direct" != no &&
11711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11712 # have to relink, otherwise we might link with an installed library
11713 # when we should be linking with a yet-to-be-installed one
11714 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11715 test "$hardcode_minus_L" != no; then
11716 # Linking always hardcodes the temporary library directory.
11717 hardcode_action=relink
11718 else
11719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11720 hardcode_action=immediate
11721 fi
c52df125 11722else
eec2776c
AJ
11723 # We cannot hardcode anything, or else we can only hardcode existing
11724 # directories.
11725 hardcode_action=unsupported
c52df125 11726fi
eec2776c
AJ
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11728$as_echo "$hardcode_action" >&6; }
c52df125 11729
eec2776c
AJ
11730if test "$hardcode_action" = relink ||
11731 test "$inherit_rpath" = yes; then
11732 # Fast installation is not supported
11733 enable_fast_install=no
11734elif test "$shlibpath_overrides_runpath" = yes ||
11735 test "$enable_shared" = no; then
11736 # Fast installation is not necessary
11737 enable_fast_install=needless
c52df125
AC
11738fi
11739
11740
c52df125
AC
11741
11742
c52df125
AC
11743
11744
eec2776c
AJ
11745 if test "x$enable_dlopen" != xyes; then
11746 enable_dlopen=unknown
11747 enable_dlopen_self=unknown
11748 enable_dlopen_self_static=unknown
11749else
11750 lt_cv_dlopen=no
11751 lt_cv_dlopen_libs=
11752
11753 case $host_os in
11754 beos*)
11755 lt_cv_dlopen="load_add_on"
11756 lt_cv_dlopen_libs=
11757 lt_cv_dlopen_self=yes
11758 ;;
11759
11760 mingw* | pw32* | cegcc*)
11761 lt_cv_dlopen="LoadLibrary"
11762 lt_cv_dlopen_libs=
11763 ;;
11764
11765 cygwin*)
11766 lt_cv_dlopen="dlopen"
11767 lt_cv_dlopen_libs=
11768 ;;
11769
11770 darwin*)
11771 # if libdl is installed we need to link against it
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11773$as_echo_n "checking for dlopen in -ldl... " >&6; }
11774if ${ac_cv_lib_dl_dlopen+:} false; then :
c52df125
AC
11775 $as_echo_n "(cached) " >&6
11776else
eec2776c
AJ
11777 ac_check_lib_save_LIBS=$LIBS
11778LIBS="-ldl $LIBS"
c52df125
AC
11779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780/* end confdefs.h. */
11781
11782/* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11785#ifdef __cplusplus
11786extern "C"
11787#endif
11788char dlopen ();
11789int
11790main ()
11791{
11792return dlopen ();
11793 ;
11794 return 0;
11795}
11796_ACEOF
eec2776c
AJ
11797if ac_fn_c_try_link "$LINENO"; then :
11798 ac_cv_lib_dl_dlopen=yes
11799else
11800 ac_cv_lib_dl_dlopen=no
c52df125
AC
11801fi
11802rm -f core conftest.err conftest.$ac_objext \
eec2776c
AJ
11803 conftest$ac_exeext conftest.$ac_ext
11804LIBS=$ac_check_lib_save_LIBS
c52df125 11805fi
eec2776c
AJ
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11807$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11808if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c52df125 11810else
eec2776c
AJ
11811
11812 lt_cv_dlopen="dyld"
11813 lt_cv_dlopen_libs=
11814 lt_cv_dlopen_self=yes
11815
c52df125 11816fi
c52df125 11817
eec2776c 11818 ;;
c52df125 11819
eec2776c
AJ
11820 *)
11821 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11822if test "x$ac_cv_func_shl_load" = xyes; then :
11823 lt_cv_dlopen="shl_load"
c52df125 11824else
eec2776c
AJ
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11826$as_echo_n "checking for shl_load in -ldld... " >&6; }
11827if ${ac_cv_lib_dld_shl_load+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829else
11830 ac_check_lib_save_LIBS=$LIBS
11831LIBS="-ldld $LIBS"
11832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c52df125 11833/* end confdefs.h. */
c52df125 11834
eec2776c
AJ
11835/* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11838#ifdef __cplusplus
11839extern "C"
11840#endif
11841char shl_load ();
c52df125
AC
11842int
11843main ()
11844{
eec2776c 11845return shl_load ();
c52df125
AC
11846 ;
11847 return 0;
eec2776c
AJ
11848}
11849_ACEOF
11850if ac_fn_c_try_link "$LINENO"; then :
11851 ac_cv_lib_dld_shl_load=yes
c52df125 11852else
eec2776c
AJ
11853 ac_cv_lib_dld_shl_load=no
11854fi
11855rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857LIBS=$ac_check_lib_save_LIBS
11858fi
11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11860$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11861if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11863else
11864 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11865if test "x$ac_cv_func_dlopen" = xyes; then :
11866 lt_cv_dlopen="dlopen"
11867else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11869$as_echo_n "checking for dlopen in -ldl... " >&6; }
11870if ${ac_cv_lib_dl_dlopen+:} false; then :
c52df125
AC
11871 $as_echo_n "(cached) " >&6
11872else
11873 ac_check_lib_save_LIBS=$LIBS
eec2776c 11874LIBS="-ldl $LIBS"
c52df125
AC
11875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877
11878/* Override any GCC internal prototype to avoid an error.
11879 Use char because int might match the return type of a GCC
11880 builtin and then its argument prototype would still apply. */
11881#ifdef __cplusplus
11882extern "C"
11883#endif
11884char dlopen ();
11885int
11886main ()
11887{
11888return dlopen ();
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893if ac_fn_c_try_link "$LINENO"; then :
eec2776c 11894 ac_cv_lib_dl_dlopen=yes
c52df125 11895else
eec2776c 11896 ac_cv_lib_dl_dlopen=no
7083c021 11897fi
c52df125
AC
11898rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900LIBS=$ac_check_lib_save_LIBS
11901fi
eec2776c
AJ
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11903$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11904if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c52df125 11906else
eec2776c
AJ
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11908$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11909if ${ac_cv_lib_svld_dlopen+:} false; then :
c52df125
AC
11910 $as_echo_n "(cached) " >&6
11911else
11912 ac_check_lib_save_LIBS=$LIBS
eec2776c 11913LIBS="-lsvld $LIBS"
7083c021
AC
11914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
6fb6bd15 11916
c52df125
AC
11917/* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
eec2776c 11923char dlopen ();
212380e3 11924int
7083c021 11925main ()
212380e3 11926{
eec2776c 11927return dlopen ();
7083c021
AC
11928 ;
11929 return 0;
212380e3
AC
11930}
11931_ACEOF
c52df125 11932if ac_fn_c_try_link "$LINENO"; then :
eec2776c 11933 ac_cv_lib_svld_dlopen=yes
c52df125 11934else
eec2776c 11935 ac_cv_lib_svld_dlopen=no
c52df125
AC
11936fi
11937rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939LIBS=$ac_check_lib_save_LIBS
11940fi
eec2776c
AJ
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11942$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11943if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6fb6bd15 11945else
eec2776c 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
c52df125
AC
11947$as_echo_n "checking for dld_link in -ldld... " >&6; }
11948if ${ac_cv_lib_dld_dld_link+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950else
11951 ac_check_lib_save_LIBS=$LIBS
11952LIBS="-ldld $LIBS"
6fb6bd15
AC
11953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954/* end confdefs.h. */
c52df125
AC
11955
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char dld_link ();
6fb6bd15
AC
11963int
11964main ()
11965{
c52df125 11966return dld_link ();
6fb6bd15
AC
11967 ;
11968 return 0;
11969}
11970_ACEOF
c52df125
AC
11971if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_dld_dld_link=yes
11973else
11974 ac_cv_lib_dld_dld_link=no
11975fi
11976rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978LIBS=$ac_check_lib_save_LIBS
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11981$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11982if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
eec2776c
AJ
11983 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11984fi
c52df125 11985
c52df125 11986
c52df125
AC
11987fi
11988
11989
eec2776c 11990fi
c52df125
AC
11991
11992
eec2776c 11993fi
c52df125 11994
c52df125
AC
11995
11996fi
11997
11998
eec2776c
AJ
11999fi
12000
12001 ;;
12002 esac
c52df125 12003
eec2776c
AJ
12004 if test "x$lt_cv_dlopen" != xno; then
12005 enable_dlopen=yes
12006 else
12007 enable_dlopen=no
12008 fi
c52df125 12009
eec2776c
AJ
12010 case $lt_cv_dlopen in
12011 dlopen)
12012 save_CPPFLAGS="$CPPFLAGS"
12013 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12014
12015 save_LDFLAGS="$LDFLAGS"
12016 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12017
12018 save_LIBS="$LIBS"
12019 LIBS="$lt_cv_dlopen_libs $LIBS"
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12022$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12023if ${lt_cv_dlopen_self+:} false; then :
12024 $as_echo_n "(cached) " >&6
12025else
12026 if test "$cross_compiling" = yes; then :
12027 lt_cv_dlopen_self=cross
12028else
12029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12030 lt_status=$lt_dlunknown
12031 cat > conftest.$ac_ext <<_LT_EOF
12032#line $LINENO "configure"
12033#include "confdefs.h"
12034
12035#if HAVE_DLFCN_H
12036#include <dlfcn.h>
12037#endif
12038
12039#include <stdio.h>
12040
12041#ifdef RTLD_GLOBAL
12042# define LT_DLGLOBAL RTLD_GLOBAL
12043#else
12044# ifdef DL_GLOBAL
12045# define LT_DLGLOBAL DL_GLOBAL
12046# else
12047# define LT_DLGLOBAL 0
12048# endif
12049#endif
12050
12051/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12052 find out it does not work in some platform. */
12053#ifndef LT_DLLAZY_OR_NOW
12054# ifdef RTLD_LAZY
12055# define LT_DLLAZY_OR_NOW RTLD_LAZY
12056# else
12057# ifdef DL_LAZY
12058# define LT_DLLAZY_OR_NOW DL_LAZY
12059# else
12060# ifdef RTLD_NOW
12061# define LT_DLLAZY_OR_NOW RTLD_NOW
12062# else
12063# ifdef DL_NOW
12064# define LT_DLLAZY_OR_NOW DL_NOW
12065# else
12066# define LT_DLLAZY_OR_NOW 0
12067# endif
12068# endif
12069# endif
12070# endif
12071#endif
12072
12073/* When -fvisbility=hidden is used, assume the code has been annotated
12074 correspondingly for the symbols needed. */
12075#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12076int fnord () __attribute__((visibility("default")));
12077#endif
12078
12079int fnord () { return 42; }
12080int main ()
12081{
12082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12083 int status = $lt_dlunknown;
c52df125 12084
eec2776c
AJ
12085 if (self)
12086 {
12087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12088 else
12089 {
12090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12091 else puts (dlerror ());
12092 }
12093 /* dlclose (self); */
12094 }
12095 else
12096 puts (dlerror ());
c52df125 12097
eec2776c
AJ
12098 return status;
12099}
c52df125 12100_LT_EOF
eec2776c
AJ
12101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12102 (eval $ac_link) 2>&5
6fb6bd15
AC
12103 ac_status=$?
12104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
eec2776c
AJ
12105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12106 (./conftest; exit; ) >&5 2>/dev/null
12107 lt_status=$?
12108 case x$lt_status in
12109 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12110 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12111 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12112 esac
12113 else :
12114 # compilation failed
12115 lt_cv_dlopen_self=no
6fb6bd15
AC
12116 fi
12117fi
eec2776c 12118rm -fr conftest*
6fb6bd15 12119
c52df125 12120
eec2776c
AJ
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12123$as_echo "$lt_cv_dlopen_self" >&6; }
12124
12125 if test "x$lt_cv_dlopen_self" = xyes; then
12126 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12128$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12129if ${lt_cv_dlopen_self_static+:} false; then :
7083c021
AC
12130 $as_echo_n "(cached) " >&6
12131else
eec2776c
AJ
12132 if test "$cross_compiling" = yes; then :
12133 lt_cv_dlopen_self_static=cross
c52df125
AC
12134else
12135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136 lt_status=$lt_dlunknown
12137 cat > conftest.$ac_ext <<_LT_EOF
12138#line $LINENO "configure"
12139#include "confdefs.h"
212380e3 12140
c52df125
AC
12141#if HAVE_DLFCN_H
12142#include <dlfcn.h>
12143#endif
12144
12145#include <stdio.h>
12146
12147#ifdef RTLD_GLOBAL
12148# define LT_DLGLOBAL RTLD_GLOBAL
12149#else
12150# ifdef DL_GLOBAL
12151# define LT_DLGLOBAL DL_GLOBAL
12152# else
12153# define LT_DLGLOBAL 0
12154# endif
12155#endif
12156
12157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158 find out it does not work in some platform. */
12159#ifndef LT_DLLAZY_OR_NOW
12160# ifdef RTLD_LAZY
12161# define LT_DLLAZY_OR_NOW RTLD_LAZY
12162# else
12163# ifdef DL_LAZY
12164# define LT_DLLAZY_OR_NOW DL_LAZY
12165# else
12166# ifdef RTLD_NOW
12167# define LT_DLLAZY_OR_NOW RTLD_NOW
12168# else
12169# ifdef DL_NOW
12170# define LT_DLLAZY_OR_NOW DL_NOW
12171# else
12172# define LT_DLLAZY_OR_NOW 0
12173# endif
12174# endif
12175# endif
12176# endif
12177#endif
12178
12179/* When -fvisbility=hidden is used, assume the code has been annotated
12180 correspondingly for the symbols needed. */
12181#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12182int fnord () __attribute__((visibility("default")));
12183#endif
12184
12185int fnord () { return 42; }
12186int main ()
7083c021 12187{
c52df125
AC
12188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12189 int status = $lt_dlunknown;
7083c021 12190
c52df125
AC
12191 if (self)
12192 {
12193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12194 else
12195 {
12196 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12197 else puts (dlerror ());
12198 }
12199 /* dlclose (self); */
12200 }
12201 else
12202 puts (dlerror ());
12203
12204 return status;
7083c021 12205}
c52df125
AC
12206_LT_EOF
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12208 (eval $ac_link) 2>&5
212380e3 12209 ac_status=$?
7083c021 12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c52df125
AC
12211 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12212 (./conftest; exit; ) >&5 2>/dev/null
12213 lt_status=$?
12214 case x$lt_status in
eec2776c
AJ
12215 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12216 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12217 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
c52df125
AC
12218 esac
12219 else :
12220 # compilation failed
eec2776c 12221 lt_cv_dlopen_self_static=no
c52df125 12222 fi
7083c021 12223fi
c52df125
AC
12224rm -fr conftest*
12225
c52df125 12226
212380e3 12227fi
eec2776c
AJ
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12229$as_echo "$lt_cv_dlopen_self_static" >&6; }
12230 fi
c52df125 12231
eec2776c
AJ
12232 CPPFLAGS="$save_CPPFLAGS"
12233 LDFLAGS="$save_LDFLAGS"
12234 LIBS="$save_LIBS"
12235 ;;
12236 esac
c52df125 12237
eec2776c
AJ
12238 case $lt_cv_dlopen_self in
12239 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12240 *) enable_dlopen_self=unknown ;;
12241 esac
c52df125 12242
eec2776c
AJ
12243 case $lt_cv_dlopen_self_static in
12244 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12245 *) enable_dlopen_self_static=unknown ;;
12246 esac
c52df125
AC
12247fi
12248
eec2776c
AJ
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265striplib=
12266old_striplib=
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12268$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12269if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12270 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12271 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273$as_echo "yes" >&6; }
7083c021 12274else
eec2776c 12275# FIXME - insert some real tests, host_os isn't really good enough
c52df125 12276 case $host_os in
c52df125 12277 darwin*)
eec2776c
AJ
12278 if test -n "$STRIP" ; then
12279 striplib="$STRIP -x"
12280 old_striplib="$STRIP -S"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12282$as_echo "yes" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
12286 fi
c52df125 12287 ;;
eec2776c
AJ
12288 *)
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
c52df125 12291 ;;
eec2776c
AJ
12292 esac
12293fi
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306 # Report which library types will actually be built
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12308$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12310$as_echo "$can_build_shared" >&6; }
12311
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12313$as_echo_n "checking whether to build shared libraries... " >&6; }
12314 test "$can_build_shared" = "no" && enable_shared=no
12315
12316 # On AIX, shared libraries and static libraries use the same namespace, and
12317 # are all built from PIC.
12318 case $host_os in
12319 aix3*)
12320 test "$enable_shared" = yes && enable_static=no
12321 if test -n "$RANLIB"; then
12322 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12323 postinstall_cmds='$RANLIB $lib'
12324 fi
c52df125 12325 ;;
eec2776c
AJ
12326
12327 aix[4-9]*)
12328 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12329 test "$enable_shared" = yes && enable_static=no
12330 fi
c52df125
AC
12331 ;;
12332 esac
eec2776c
AJ
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12334$as_echo "$enable_shared" >&6; }
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12337$as_echo_n "checking whether to build static libraries... " >&6; }
12338 # Make sure either enable_shared or enable_static is yes.
12339 test "$enable_shared" = yes || enable_static=yes
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12341$as_echo "$enable_static" >&6; }
12342
212380e3 12343
c52df125 12344
c52df125
AC
12345
12346fi
eec2776c
AJ
12347ac_ext=c
12348ac_cpp='$CPP $CPPFLAGS'
12349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125 12352
eec2776c 12353CC="$lt_save_CC"
c52df125 12354
c52df125 12355
c52df125 12356
c52df125
AC
12357
12358
212380e3 12359
c52df125
AC
12360
12361
c52df125 12362
c52df125
AC
12363
12364
7083c021 12365
c52df125
AC
12366
12367
c52df125 12368
eec2776c 12369 ac_config_commands="$ac_config_commands libtool"
c52df125 12370
c52df125 12371
c52df125
AC
12372
12373
eec2776c 12374# Only expand once:
212380e3 12375
631ef239 12376
c52df125
AC
12377
12378
c52df125 12379
c52df125
AC
12380
12381
12382
eec2776c
AJ
12383
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12385$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12386if ${libltdl_cv_shlibext+:} false; then :
c52df125
AC
12387 $as_echo_n "(cached) " >&6
12388else
eec2776c
AJ
12389
12390module=yes
12391eval libltdl_cv_shlibext=$shrext_cmds
12392module=no
12393eval libltdl_cv_shrext=$shrext_cmds
c52df125
AC
12394
12395fi
eec2776c
AJ
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12397$as_echo "$libltdl_cv_shlibext" >&6; }
12398if test -n "$libltdl_cv_shlibext"; then
c52df125 12399
eec2776c
AJ
12400cat >>confdefs.h <<_ACEOF
12401#define LT_MODULE_EXT "$libltdl_cv_shlibext"
12402_ACEOF
c52df125
AC
12403
12404fi
eec2776c 12405if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
c52df125 12406
eec2776c
AJ
12407cat >>confdefs.h <<_ACEOF
12408#define LT_SHARED_EXT "$libltdl_cv_shrext"
12409_ACEOF
c52df125 12410
eec2776c 12411fi
c52df125 12412
eec2776c
AJ
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12414$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12415if ${lt_cv_module_path_var+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417else
12418 lt_cv_module_path_var="$shlibpath_var"
12419fi
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12421$as_echo "$lt_cv_module_path_var" >&6; }
12422if test -n "$lt_cv_module_path_var"; then
12423
12424cat >>confdefs.h <<_ACEOF
12425#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12426_ACEOF
c52df125 12427
eec2776c 12428fi
c52df125 12429
eec2776c
AJ
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12431$as_echo_n "checking for the default library search path... " >&6; }
12432if ${lt_cv_sys_dlsearch_path+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434else
12435 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12436fi
12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12438$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12439if test -n "$lt_cv_sys_dlsearch_path"; then
12440 sys_dlsearch_path=
12441 for dir in $lt_cv_sys_dlsearch_path; do
12442 if test -z "$sys_dlsearch_path"; then
12443 sys_dlsearch_path="$dir"
12444 else
12445 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12446 fi
12447 done
c52df125 12448
eec2776c
AJ
12449cat >>confdefs.h <<_ACEOF
12450#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12451_ACEOF
c52df125 12452
eec2776c 12453fi
c52df125
AC
12454
12455
eec2776c 12456LT_DLLOADERS=
c52df125
AC
12457
12458
eec2776c
AJ
12459ac_ext=c
12460ac_cpp='$CPP $CPPFLAGS'
12461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
12464
12465
eec2776c
AJ
12466LIBADD_DLOPEN=
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12468$as_echo_n "checking for library containing dlopen... " >&6; }
12469if ${ac_cv_search_dlopen+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471else
12472 ac_func_search_save_LIBS=$LIBS
12473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474/* end confdefs.h. */
c52df125 12475
eec2776c
AJ
12476/* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479#ifdef __cplusplus
12480extern "C"
12481#endif
12482char dlopen ();
12483int
12484main ()
12485{
12486return dlopen ();
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491for ac_lib in '' dl; do
12492 if test -z "$ac_lib"; then
12493 ac_res="none required"
12494 else
12495 ac_res=-l$ac_lib
12496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12497 fi
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_search_dlopen=$ac_res
12500fi
12501rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext
12503 if ${ac_cv_search_dlopen+:} false; then :
12504 break
12505fi
12506done
12507if ${ac_cv_search_dlopen+:} false; then :
c52df125 12508
eec2776c
AJ
12509else
12510 ac_cv_search_dlopen=no
12511fi
12512rm conftest.$ac_ext
12513LIBS=$ac_func_search_save_LIBS
c52df125 12514fi
eec2776c
AJ
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12516$as_echo "$ac_cv_search_dlopen" >&6; }
12517ac_res=$ac_cv_search_dlopen
12518if test "$ac_res" != no; then :
12519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12520
12521$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12522
12523 if test "$ac_cv_search_dlopen" != "none required" ; then
12524 LIBADD_DLOPEN="-ldl"
12525 fi
12526 libltdl_cv_lib_dl_dlopen="yes"
12527 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12528else
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530/* end confdefs.h. */
12531#if HAVE_DLFCN_H
12532# include <dlfcn.h>
12533#endif
212380e3 12534
eec2776c
AJ
12535int
12536main ()
12537{
12538dlopen(0, 0);
12539 ;
12540 return 0;
12541}
12542_ACEOF
12543if ac_fn_c_try_link "$LINENO"; then :
631ef239 12544
eec2776c 12545$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
631ef239 12546
eec2776c
AJ
12547 libltdl_cv_func_dlopen="yes"
12548 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12549else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12551$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12552if ${ac_cv_lib_svld_dlopen+:} false; then :
c52df125 12553 $as_echo_n "(cached) " >&6
7083c021 12554else
c52df125 12555 ac_check_lib_save_LIBS=$LIBS
eec2776c 12556LIBS="-lsvld $LIBS"
c52df125 12557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083c021 12558/* end confdefs.h. */
212380e3 12559
c52df125
AC
12560/* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563#ifdef __cplusplus
12564extern "C"
12565#endif
eec2776c 12566char dlopen ();
7083c021
AC
12567int
12568main ()
12569{
eec2776c 12570return dlopen ();
7083c021
AC
12571 ;
12572 return 0;
12573}
212380e3 12574_ACEOF
c52df125 12575if ac_fn_c_try_link "$LINENO"; then :
eec2776c 12576 ac_cv_lib_svld_dlopen=yes
c52df125 12577else
eec2776c 12578 ac_cv_lib_svld_dlopen=no
212380e3 12579fi
c52df125
AC
12580rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582LIBS=$ac_check_lib_save_LIBS
212380e3 12583fi
eec2776c
AJ
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12585$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12586if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
c52df125 12587
eec2776c 12588$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
c52df125 12589
eec2776c
AJ
12590 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12591 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
c52df125
AC
12592fi
12593
c52df125 12594fi
eec2776c
AJ
12595rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
c52df125
AC
12597fi
12598
eec2776c
AJ
12599if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12600then
12601 lt_save_LIBS="$LIBS"
12602 LIBS="$LIBS $LIBADD_DLOPEN"
12603 for ac_func in dlerror
12604do :
12605 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12606if test "x$ac_cv_func_dlerror" = xyes; then :
12607 cat >>confdefs.h <<_ACEOF
12608#define HAVE_DLERROR 1
12609_ACEOF
c52df125 12610
c52df125 12611fi
eec2776c 12612done
c52df125 12613
eec2776c 12614 LIBS="$lt_save_LIBS"
c52df125 12615fi
7083c021 12616
631ef239 12617
eec2776c
AJ
12618LIBADD_SHL_LOAD=
12619ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12620if test "x$ac_cv_func_shl_load" = xyes; then :
212380e3 12621
eec2776c 12622$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3 12623
eec2776c 12624 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
c52df125 12625else
eec2776c
AJ
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12627$as_echo_n "checking for shl_load in -ldld... " >&6; }
12628if ${ac_cv_lib_dld_shl_load+:} false; then :
12629 $as_echo_n "(cached) " >&6
7083c021 12630else
eec2776c
AJ
12631 ac_check_lib_save_LIBS=$LIBS
12632LIBS="-ldld $LIBS"
12633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634/* end confdefs.h. */
c52df125 12635
eec2776c
AJ
12636/* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char shl_load ();
12643int
12644main ()
12645{
12646return shl_load ();
12647 ;
12648 return 0;
12649}
212380e3 12650_ACEOF
eec2776c
AJ
12651if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_lib_dld_shl_load=yes
7083c021 12653else
eec2776c
AJ
12654 ac_cv_lib_dld_shl_load=no
12655fi
12656rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658LIBS=$ac_check_lib_save_LIBS
12659fi
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12661$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12662if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
c52df125 12663
eec2776c 12664$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
c52df125 12665
eec2776c
AJ
12666 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12667 LIBADD_SHL_LOAD="-ldld"
12668fi
c52df125 12669
212380e3
AC
12670fi
12671
c52df125 12672
212380e3 12673
eec2776c
AJ
12674case $host_os in
12675darwin[1567].*)
12676# We only want this for pre-Mac OS X 10.4.
12677 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12678if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
212380e3 12679
eec2776c 12680$as_echo "#define HAVE_DYLD 1" >>confdefs.h
7083c021 12681
eec2776c 12682 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
7083c021 12683fi
c52df125 12684
eec2776c
AJ
12685 ;;
12686beos*)
12687 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12688 ;;
12689cygwin* | mingw* | os2* | pw32*)
12690 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12691"
12692if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12693 ac_have_decl=1
12694else
12695 ac_have_decl=0
12696fi
c52df125
AC
12697
12698cat >>confdefs.h <<_ACEOF
eec2776c 12699#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
212380e3
AC
12700_ACEOF
12701
eec2776c
AJ
12702 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12703 ;;
12704esac
212380e3 12705
eec2776c
AJ
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12707$as_echo_n "checking for dld_link in -ldld... " >&6; }
12708if ${ac_cv_lib_dld_dld_link+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710else
12711 ac_check_lib_save_LIBS=$LIBS
12712LIBS="-ldld $LIBS"
12713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h. */
c52df125 12715
eec2776c
AJ
12716/* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12719#ifdef __cplusplus
12720extern "C"
12721#endif
12722char dld_link ();
12723int
12724main ()
12725{
12726return dld_link ();
12727 ;
12728 return 0;
12729}
212380e3 12730_ACEOF
eec2776c
AJ
12731if ac_fn_c_try_link "$LINENO"; then :
12732 ac_cv_lib_dld_dld_link=yes
12733else
12734 ac_cv_lib_dld_dld_link=no
12735fi
12736rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738LIBS=$ac_check_lib_save_LIBS
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12741$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12742if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
212380e3 12743
eec2776c
AJ
12744$as_echo "#define HAVE_DLD 1" >>confdefs.h
12745
12746 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12747fi
212380e3
AC
12748
12749
12750
12751
eec2776c
AJ
12752LT_DLPREOPEN=
12753if test -n "$LT_DLLOADERS"
12754then
12755 for lt_loader in $LT_DLLOADERS; do
12756 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12757 done
7083c021 12758
eec2776c 12759$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
212380e3 12760
eec2776c 12761fi
631ef239 12762
212380e3 12763
eec2776c 12764LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
212380e3 12765
212380e3 12766
eec2776c
AJ
12767ac_ext=c
12768ac_cpp='$CPP $CPPFLAGS'
12769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12771ac_compiler_gnu=$ac_cv_c_compiler_gnu
c52df125
AC
12772
12773
eec2776c
AJ
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12775$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12776if ${lt_cv_sys_symbol_underscore+:} false; then :
12777 $as_echo_n "(cached) " >&6
c52df125 12778else
eec2776c
AJ
12779 lt_cv_sys_symbol_underscore=no
12780 cat > conftest.$ac_ext <<_LT_EOF
12781void nm_test_func(){}
12782int main(){nm_test_func;return 0;}
12783_LT_EOF
12784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12785 (eval $ac_compile) 2>&5
12786 ac_status=$?
12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; }; then
12789 # Now try to grab the symbols.
12790 ac_nlist=conftest.nm
12791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12792 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12793 ac_status=$?
12794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795 test $ac_status = 0; } && test -s "$ac_nlist"; then
12796 # See whether the symbols have a leading underscore.
12797 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12798 lt_cv_sys_symbol_underscore=yes
12799 else
12800 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12801 :
12802 else
12803 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12804 fi
12805 fi
12806 else
12807 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12808 fi
12809 else
12810 echo "configure: failed program was:" >&5
12811 cat conftest.c >&5
12812 fi
12813 rm -rf conftest*
12814
212380e3 12815fi
eec2776c
AJ
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12817$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12818 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
212380e3
AC
12819
12820
eec2776c
AJ
12821if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12822 if test x"$libltdl_cv_func_dlopen" = xyes ||
12823 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12825$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12826if ${libltdl_cv_need_uscore+:} false; then :
7083c021 12827 $as_echo_n "(cached) " >&6
212380e3 12828else
eec2776c
AJ
12829 libltdl_cv_need_uscore=unknown
12830 save_LIBS="$LIBS"
12831 LIBS="$LIBS $LIBADD_DLOPEN"
12832 if test "$cross_compiling" = yes; then :
12833 libltdl_cv_need_uscore=cross
12834else
12835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12836 lt_status=$lt_dlunknown
12837 cat > conftest.$ac_ext <<_LT_EOF
12838#line $LINENO "configure"
12839#include "confdefs.h"
212380e3 12840
eec2776c
AJ
12841#if HAVE_DLFCN_H
12842#include <dlfcn.h>
c52df125 12843#endif
c52df125 12844
eec2776c 12845#include <stdio.h>
c52df125 12846
eec2776c
AJ
12847#ifdef RTLD_GLOBAL
12848# define LT_DLGLOBAL RTLD_GLOBAL
12849#else
12850# ifdef DL_GLOBAL
12851# define LT_DLGLOBAL DL_GLOBAL
12852# else
12853# define LT_DLGLOBAL 0
12854# endif
12855#endif
c52df125 12856
eec2776c
AJ
12857/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12858 find out it does not work in some platform. */
12859#ifndef LT_DLLAZY_OR_NOW
12860# ifdef RTLD_LAZY
12861# define LT_DLLAZY_OR_NOW RTLD_LAZY
12862# else
12863# ifdef DL_LAZY
12864# define LT_DLLAZY_OR_NOW DL_LAZY
12865# else
12866# ifdef RTLD_NOW
12867# define LT_DLLAZY_OR_NOW RTLD_NOW
12868# else
12869# ifdef DL_NOW
12870# define LT_DLLAZY_OR_NOW DL_NOW
12871# else
12872# define LT_DLLAZY_OR_NOW 0
12873# endif
12874# endif
12875# endif
12876# endif
12877#endif
212380e3 12878
eec2776c
AJ
12879/* When -fvisbility=hidden is used, assume the code has been annotated
12880 correspondingly for the symbols needed. */
12881#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12882int fnord () __attribute__((visibility("default")));
12883#endif
212380e3 12884
eec2776c
AJ
12885int fnord () { return 42; }
12886int main ()
12887{
12888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12889 int status = $lt_dlunknown;
c52df125 12890
eec2776c 12891 if (self)
c52df125 12892 {
eec2776c
AJ
12893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12894 else
12895 {
12896 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12897 else puts (dlerror ());
c52df125 12898 }
eec2776c 12899 /* dlclose (self); */
c52df125 12900 }
eec2776c
AJ
12901 else
12902 puts (dlerror ());
12903
12904 return status;
c52df125 12905}
eec2776c
AJ
12906_LT_EOF
12907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12908 (eval $ac_link) 2>&5
12909 ac_status=$?
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12912 (./conftest; exit; ) >&5 2>/dev/null
12913 lt_status=$?
12914 case x$lt_status in
12915 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12916 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12917 x$lt_dlunknown|x*) ;;
12918 esac
12919 else :
12920 # compilation failed
c52df125 12921
eec2776c
AJ
12922 fi
12923fi
12924rm -fr conftest*
c52df125 12925
eec2776c 12926 LIBS="$save_LIBS"
212380e3 12927
eec2776c
AJ
12928fi
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12930$as_echo "$libltdl_cv_need_uscore" >&6; }
12931 fi
12932fi
212380e3 12933
eec2776c 12934if test x"$libltdl_cv_need_uscore" = xyes; then
212380e3 12935
eec2776c 12936$as_echo "#define NEED_USCORE 1" >>confdefs.h
212380e3 12937
eec2776c 12938fi
7083c021 12939
eec2776c
AJ
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12941$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12942if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12943 $as_echo_n "(cached) " >&6
12944else
12945 # PORTME does your system automatically load deplibs for dlopen?
12946 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12947 # For now, we just catch OSes we know something about -- in the
12948 # future, we'll try test this programmatically.
12949 lt_cv_sys_dlopen_deplibs=unknown
12950 case $host_os in
12951 aix3*|aix4.1.*|aix4.2.*)
12952 # Unknown whether this is true for these versions of AIX, but
12953 # we want this `case' here to explicitly catch those versions.
12954 lt_cv_sys_dlopen_deplibs=unknown
12955 ;;
12956 aix[4-9]*)
12957 lt_cv_sys_dlopen_deplibs=yes
12958 ;;
12959 amigaos*)
12960 case $host_cpu in
12961 powerpc)
12962 lt_cv_sys_dlopen_deplibs=no
12963 ;;
12964 esac
12965 ;;
12966 darwin*)
12967 # Assuming the user has installed a libdl from somewhere, this is true
12968 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12969 lt_cv_sys_dlopen_deplibs=yes
12970 ;;
12971 freebsd* | dragonfly*)
12972 lt_cv_sys_dlopen_deplibs=yes
12973 ;;
12974 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12975 # GNU and its variants, using gnu ld.so (Glibc)
12976 lt_cv_sys_dlopen_deplibs=yes
12977 ;;
12978 hpux10*|hpux11*)
12979 lt_cv_sys_dlopen_deplibs=yes
12980 ;;
12981 interix*)
12982 lt_cv_sys_dlopen_deplibs=yes
12983 ;;
12984 irix[12345]*|irix6.[01]*)
12985 # Catch all versions of IRIX before 6.2, and indicate that we don't
12986 # know how it worked for any of those versions.
12987 lt_cv_sys_dlopen_deplibs=unknown
12988 ;;
12989 irix*)
12990 # The case above catches anything before 6.2, and it's known that
12991 # at 6.2 and later dlopen does load deplibs.
12992 lt_cv_sys_dlopen_deplibs=yes
12993 ;;
12994 netbsd* | netbsdelf*-gnu)
12995 lt_cv_sys_dlopen_deplibs=yes
12996 ;;
12997 openbsd*)
12998 lt_cv_sys_dlopen_deplibs=yes
12999 ;;
13000 osf[1234]*)
13001 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13002 # it did *not* use an RPATH in a shared library to find objects the
13003 # library depends on, so we explicitly say `no'.
13004 lt_cv_sys_dlopen_deplibs=no
13005 ;;
13006 osf5.0|osf5.0a|osf5.1)
13007 # dlopen *does* load deplibs and with the right loader patch applied
13008 # it even uses RPATH in a shared library to search for shared objects
13009 # that the library depends on, but there's no easy way to know if that
13010 # patch is installed. Since this is the case, all we can really
13011 # say is unknown -- it depends on the patch being installed. If
13012 # it is, this changes to `yes'. Without it, it would be `no'.
13013 lt_cv_sys_dlopen_deplibs=unknown
13014 ;;
13015 osf*)
13016 # the two cases above should catch all versions of osf <= 5.1. Read
13017 # the comments above for what we know about them.
13018 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13019 # is used to find them so we can finally say `yes'.
13020 lt_cv_sys_dlopen_deplibs=yes
13021 ;;
13022 qnx*)
13023 lt_cv_sys_dlopen_deplibs=yes
13024 ;;
13025 solaris*)
13026 lt_cv_sys_dlopen_deplibs=yes
13027 ;;
13028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13029 libltdl_cv_sys_dlopen_deplibs=yes
13030 ;;
13031 esac
212380e3 13032
eec2776c
AJ
13033fi
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13035$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13036if test "$lt_cv_sys_dlopen_deplibs" != yes; then
631ef239 13037
eec2776c 13038$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
7083c021 13039
eec2776c
AJ
13040fi
13041
13042:
13043
13044for ac_header in argz.h
13045do :
13046 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
13047"
13048if test "x$ac_cv_header_argz_h" = xyes; then :
13049 cat >>confdefs.h <<_ACEOF
13050#define HAVE_ARGZ_H 1
212380e3 13051_ACEOF
eec2776c 13052
7083c021 13053fi
eec2776c 13054
c52df125 13055done
631ef239 13056
631ef239 13057
eec2776c
AJ
13058ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
13059# include <argz.h>
13060#endif
13061"
13062if test "x$ac_cv_type_error_t" = xyes; then :
13063
13064cat >>confdefs.h <<_ACEOF
13065#define HAVE_ERROR_T 1
13066_ACEOF
13067
631ef239 13068
eec2776c 13069else
7083c021 13070
eec2776c 13071$as_echo "#define error_t int" >>confdefs.h
7083c021
AC
13072
13073
eec2776c
AJ
13074$as_echo "#define __error_t_defined 1" >>confdefs.h
13075
13076fi
13077
13078
13079ARGZ_H=
13080for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13081 argz_next argz_stringify
13082do :
13083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13085if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13086 cat >>confdefs.h <<_ACEOF
13087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13088_ACEOF
13089
212380e3 13090else
eec2776c
AJ
13091 ARGZ_H=argz.h;
13092
13093 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13094
7083c021 13095fi
eec2776c 13096done
7083c021
AC
13097
13098
eec2776c
AJ
13099if test -z "$ARGZ_H"; then :
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13101$as_echo_n "checking if argz actually works... " >&6; }
13102if ${lt_cv_sys_argz_works+:} false; then :
13103 $as_echo_n "(cached) " >&6
13104else
13105 case $host_os in #(
13106 *cygwin*)
13107 lt_cv_sys_argz_works=no
13108 if test "$cross_compiling" != no; then
13109 lt_cv_sys_argz_works="guessing no"
13110 else
13111 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13112 save_IFS=$IFS
13113 IFS=-.
13114 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13115 IFS=$save_IFS
13116 lt_os_major=${2-0}
13117 lt_os_minor=${3-0}
13118 lt_os_micro=${4-0}
13119 if test "$lt_os_major" -gt 1 \
13120 || { test "$lt_os_major" -eq 1 \
13121 && { test "$lt_os_minor" -gt 5 \
13122 || { test "$lt_os_minor" -eq 5 \
13123 && test "$lt_os_micro" -gt 24; }; }; }; then
13124 lt_cv_sys_argz_works=yes
13125 fi
13126 fi
13127 ;; #(
13128 *) lt_cv_sys_argz_works=yes ;;
13129 esac
13130fi
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13132$as_echo "$lt_cv_sys_argz_works" >&6; }
13133 if test "$lt_cv_sys_argz_works" = yes; then :
7083c021 13134
eec2776c 13135$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
7083c021 13136
eec2776c
AJ
13137else
13138 ARGZ_H=argz.h
212380e3 13139
631ef239 13140
eec2776c 13141 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
631ef239 13142
eec2776c
AJ
13143fi
13144fi
631ef239 13145
212380e3 13146
212380e3 13147
eec2776c
AJ
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13149$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13150if ${libltdl_cv_preloaded_symbols+:} false; then :
7083c021 13151 $as_echo_n "(cached) " >&6
212380e3 13152else
eec2776c
AJ
13153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13154 libltdl_cv_preloaded_symbols=yes
13155 else
13156 libltdl_cv_preloaded_symbols=no
13157 fi
7083c021 13158
212380e3 13159fi
eec2776c
AJ
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13161$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13162if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13163
13164$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13165
212380e3 13166fi
212380e3 13167
eec2776c 13168# Set options
212380e3 13169
7083c021 13170
7083c021 13171
212380e3 13172
7083c021
AC
13173
13174
13175
212380e3 13176
212380e3 13177
212380e3 13178
212380e3 13179
212380e3 13180
eec2776c
AJ
13181# Check whether --with-included_ltdl was given.
13182if test "${with_included_ltdl+set}" = set; then :
13183 withval=$with_included_ltdl;
212380e3 13184fi
631ef239 13185
eec2776c
AJ
13186
13187if test "x$with_included_ltdl" != xyes; then
13188 # We are not being forced to use the included libltdl sources, so
13189 # decide whether there is a useful installed version we can use.
13190 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13191
13192"
13193if test "x$ac_cv_header_ltdl_h" = xyes; then :
13194 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13195 #include <ltdl.h>
13196"
13197if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13199$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13200if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
7083c021 13201 $as_echo_n "(cached) " >&6
212380e3 13202else
eec2776c
AJ
13203 ac_check_lib_save_LIBS=$LIBS
13204LIBS="-lltdl $LIBS"
13205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h. */
13207
13208/* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211#ifdef __cplusplus
13212extern "C"
13213#endif
13214char lt_dladvise_preload ();
13215int
13216main ()
13217{
13218return lt_dladvise_preload ();
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_ltdl_lt_dladvise_preload=yes
212380e3 13225else
eec2776c 13226 ac_cv_lib_ltdl_lt_dladvise_preload=no
212380e3 13227fi
eec2776c
AJ
13228rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230LIBS=$ac_check_lib_save_LIBS
7083c021 13231fi
eec2776c
AJ
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13233$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13234if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13235 with_included_ltdl=no
212380e3 13236else
eec2776c 13237 with_included_ltdl=yes
7083c021
AC
13238fi
13239
7083c021 13240else
eec2776c 13241 with_included_ltdl=yes
7083c021 13242fi
eec2776c 13243
7083c021 13244else
eec2776c 13245 with_included_ltdl=yes
212380e3 13246fi
631ef239 13247
212380e3 13248
7083c021 13249fi
212380e3 13250
eec2776c
AJ
13251
13252
13253
13254# Check whether --with-ltdl_include was given.
13255if test "${with_ltdl_include+set}" = set; then :
13256 withval=$with_ltdl_include;
212380e3 13257fi
eec2776c
AJ
13258
13259
13260if test -n "$with_ltdl_include"; then
13261 if test -f "$with_ltdl_include/ltdl.h"; then :
13262 else
13263 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13264 fi
212380e3 13265else
eec2776c 13266 with_ltdl_include=no
7083c021 13267fi
212380e3 13268
212380e3 13269
eec2776c
AJ
13270# Check whether --with-ltdl_lib was given.
13271if test "${with_ltdl_lib+set}" = set; then :
13272 withval=$with_ltdl_lib;
7083c021 13273fi
eec2776c
AJ
13274
13275
13276if test -n "$with_ltdl_lib"; then
13277 if test -f "$with_ltdl_lib/libltdl.la"; then :
13278 else
13279 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
7083c021 13280 fi
eec2776c
AJ
13281else
13282 with_ltdl_lib=no
13283fi
13284
13285case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13286 ,yes,no,no,)
13287 case $enable_ltdl_convenience in
13288 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13289 "") enable_ltdl_convenience=yes
13290 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13291esac
13292LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13293LTDLDEPS=$LIBLTDL
13294LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13295
13296
13297
13298
13299
13300# For backwards non-gettext consistent compatibility...
13301INCLTDL="$LTDLINCL"
13302
13303
13304 ;;
13305 ,no,no,no,)
13306 # If the included ltdl is not to be used, then use the
13307 # preinstalled libltdl we found.
13308
13309$as_echo "#define HAVE_LTDL 1" >>confdefs.h
13310
13311 LIBLTDL=-lltdl
13312 LTDLDEPS=
13313 LTDLINCL=
13314 ;;
13315 ,no*,no,*)
13316 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13317 ;;
13318 *) with_included_ltdl=no
13319 LIBLTDL="-L$with_ltdl_lib -lltdl"
13320 LTDLDEPS=
13321 LTDLINCL="-I$with_ltdl_include"
13322 ;;
13323esac
13324INCLTDL="$LTDLINCL"
13325
13326# Report our decision...
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13328$as_echo_n "checking where to find libltdl headers... " >&6; }
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13330$as_echo "$LTDLINCL" >&6; }
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13332$as_echo_n "checking where to find libltdl library... " >&6; }
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13334$as_echo "$LIBLTDL" >&6; }
13335
13336
212380e3 13337
eec2776c
AJ
13338# Check whether --enable-ltdl-install was given.
13339if test "${enable_ltdl_install+set}" = set; then :
13340 enableval=$enable_ltdl_install;
212380e3 13341fi
eec2776c
AJ
13342
13343
13344case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13345 *yes*) ;;
13346 *) enable_ltdl_convenience=yes ;;
13347esac
13348
13349 if test x"${enable_ltdl_install-no}" != xno; then
13350 INSTALL_LTDL_TRUE=
13351 INSTALL_LTDL_FALSE='#'
13352else
13353 INSTALL_LTDL_TRUE='#'
13354 INSTALL_LTDL_FALSE=
212380e3 13355fi
eec2776c
AJ
13356
13357 if test x"${enable_ltdl_convenience-no}" != xno; then
13358 CONVENIENCE_LTDL_TRUE=
13359 CONVENIENCE_LTDL_FALSE='#'
7083c021 13360else
eec2776c
AJ
13361 CONVENIENCE_LTDL_TRUE='#'
13362 CONVENIENCE_LTDL_FALSE=
212380e3 13363fi
631ef239
AC
13364
13365
13366
f0718c93 13367 subdirs="$subdirs libltdl"
212380e3
AC
13368
13369
7083c021 13370
7083c021 13371
eec2776c
AJ
13372# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13373# the user used. This is so that ltdl.h can pick up the parent projects
13374# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13375# definitions required by ltdl.c.
13376# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
212380e3 13377
7083c021 13378
212380e3 13379
eec2776c
AJ
13380for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13381do :
13382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13383ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13384"
13385if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13386 cat >>confdefs.h <<_ACEOF
13387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 13388_ACEOF
7083c021
AC
13389
13390fi
212380e3 13391
eec2776c 13392done
7083c021 13393
212380e3 13394
eec2776c
AJ
13395for ac_func in closedir opendir readdir
13396do :
13397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13398ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13399if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13400 cat >>confdefs.h <<_ACEOF
13401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 13402_ACEOF
212380e3 13403
7083c021 13404else
7083c021 13405
7083c021 13406
eec2776c 13407 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
7083c021 13408
7083c021 13409fi
7083c021 13410done
7083c021 13411
eec2776c
AJ
13412for ac_func in strlcat strlcpy
13413do :
13414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13417 cat >>confdefs.h <<_ACEOF
13418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13419_ACEOF
13420
13421else
13422
13423
13424 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
212380e3 13425
212380e3 13426fi
eec2776c 13427done
631ef239 13428
7083c021 13429
c52df125 13430
eec2776c
AJ
13431cat >>confdefs.h <<_ACEOF
13432#define LT_LIBEXT "$libext"
13433_ACEOF
c52df125 13434
eec2776c
AJ
13435
13436name=
13437eval "lt_libprefix=\"$libname_spec\""
13438
13439cat >>confdefs.h <<_ACEOF
13440#define LT_LIBPREFIX "$lt_libprefix"
c52df125 13441_ACEOF
7083c021
AC
13442
13443
eec2776c
AJ
13444name=ltdl
13445eval "LTDLOPEN=\"$libname_spec\""
7083c021 13446
c52df125 13447
c52df125 13448
c52df125 13449
1db8e007 13450
1db8e007
JT
13451
13452
13453
eec2776c 13454# Only expand once:
1db8e007 13455
1db8e007 13456
7083c021 13457
eec2776c 13458build_ltdl=$with_included_ltdl
f0718c93
AC
13459#if test x"$build_ltdl" = x"yes"; then
13460# AC_CONFIG_SUBDIRS([libltdl])
13461#fi
d8c4154d 13462 if test x"$build_ltdl" = x"yes"; then
eec2776c
AJ
13463 BUILD_LTDL_TRUE=
13464 BUILD_LTDL_FALSE='#'
13465else
13466 BUILD_LTDL_TRUE='#'
13467 BUILD_LTDL_FALSE=
13468fi
7083c021 13469
212380e3 13470
cfa7b5fd 13471if test "$ac_cv_c_compiler_gnu" = yes; then
eec2776c 13472 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
212380e3 13473fi
631ef239 13474
7083c021 13475if test "$ac_cv_prog_cc_g" = yes; then
2a19fc3f 13476 IRC_CFLAGS="$IRC_CFLAGS -g"
7083c021 13477fi
7083c021
AC
13478
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13480$as_echo_n "checking for /dev/null... " >&6; }
13481if test -c /dev/null ; then
13482
13483$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13484
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486$as_echo "yes" >&6; }
212380e3 13487else
212380e3 13488
7083c021
AC
13489$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13492$as_echo "no - using devnull.log" >&6; }
212380e3 13493fi
631ef239 13494
7083c021
AC
13495if test ! -z "$CFLAGS"; then
13496 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 13497fi
631ef239 13498
7083c021
AC
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13500$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 13501if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
13502 $as_echo_n "(cached) " >&6
13503else
13504 ac_func_search_save_LIBS=$LIBS
13505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 13506/* end confdefs.h. */
7083c021
AC
13507
13508/* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13511#ifdef __cplusplus
13512extern "C"
13513#endif
13514char strerror ();
212380e3
AC
13515int
13516main ()
13517{
7083c021 13518return strerror ();
212380e3
AC
13519 ;
13520 return 0;
13521}
13522_ACEOF
7083c021
AC
13523for ac_lib in '' cposix; do
13524 if test -z "$ac_lib"; then
13525 ac_res="none required"
13526 else
13527 ac_res=-l$ac_lib
13528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13529 fi
13530 if ac_fn_c_try_link "$LINENO"; then :
13531 ac_cv_search_strerror=$ac_res
13532fi
13533rm -f core conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext
b6d0720c 13535 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
13536 break
13537fi
13538done
b6d0720c 13539if ${ac_cv_search_strerror+:} false; then :
7083c021 13540
212380e3 13541else
7083c021
AC
13542 ac_cv_search_strerror=no
13543fi
13544rm conftest.$ac_ext
13545LIBS=$ac_func_search_save_LIBS
13546fi
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13548$as_echo "$ac_cv_search_strerror" >&6; }
13549ac_res=$ac_cv_search_strerror
13550if test "$ac_res" != no; then :
13551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 13552
212380e3 13553fi
631ef239 13554
7083c021
AC
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13556$as_echo_n "checking for inline... " >&6; }
b6d0720c 13557if ${ac_cv_c_inline+:} false; then :
7083c021
AC
13558 $as_echo_n "(cached) " >&6
13559else
13560 ac_cv_c_inline=no
13561for ac_kw in inline __inline__ __inline; do
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563/* end confdefs.h. */
13564#ifndef __cplusplus
13565typedef int foo_t;
13566static $ac_kw foo_t static_foo () {return 0; }
13567$ac_kw foo_t foo () {return 0; }
13568#endif
13569
13570_ACEOF
13571if ac_fn_c_try_compile "$LINENO"; then :
13572 ac_cv_c_inline=$ac_kw
13573fi
631ef239 13574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 13575 test "$ac_cv_c_inline" != no && break
212380e3 13576done
7083c021
AC
13577
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13580$as_echo "$ac_cv_c_inline" >&6; }
13581
13582case $ac_cv_c_inline in
13583 inline | yes) ;;
13584 *)
13585 case $ac_cv_c_inline in
13586 no) ac_val=;;
13587 *) ac_val=$ac_cv_c_inline;;
13588 esac
13589 cat >>confdefs.h <<_ACEOF
13590#ifndef __cplusplus
13591#define inline $ac_val
13592#endif
13593_ACEOF
13594 ;;
212380e3 13595esac
7083c021 13596
7083c021
AC
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13598$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13599set x ${MAKE-make}
13600ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 13601if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
13602 $as_echo_n "(cached) " >&6
13603else
13604 cat >conftest.make <<\_ACEOF
13605SHELL = /bin/sh
13606all:
13607 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 13608_ACEOF
b6d0720c 13609# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
13610case `${MAKE-make} -f conftest.make 2>/dev/null` in
13611 *@@@%%%=?*=@@@%%%*)
13612 eval ac_cv_prog_make_${ac_make}_set=yes;;
13613 *)
13614 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 13615esac
7083c021
AC
13616rm -f conftest.make
13617fi
13618if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13620$as_echo "yes" >&6; }
13621 SET_MAKE=
13622else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
c52df125 13625 SET_MAKE="MAKE=${MAKE-make}"
7083c021 13626fi
7083c021 13627
7083c021
AC
13628
13629# Extract the first word of "rm", so it can be a program name with args.
13630set dummy rm; ac_word=$2
13631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13632$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13633if ${ac_cv_path_RM+:} false; then :
7083c021 13634 $as_echo_n "(cached) " >&6
212380e3 13635else
7083c021
AC
13636 case $RM in
13637 [\\/]* | ?:[\\/]*)
13638 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13639 ;;
13640 *)
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642for as_dir in $PATH
13643do
13644 IFS=$as_save_IFS
13645 test -z "$as_dir" && as_dir=.
13646 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13648 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13650 break 2
13651 fi
13652done
13653 done
13654IFS=$as_save_IFS
212380e3 13655
7083c021
AC
13656 ;;
13657esac
212380e3 13658fi
7083c021
AC
13659RM=$ac_cv_path_RM
13660if test -n "$RM"; then
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13662$as_echo "$RM" >&6; }
13663else
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665$as_echo "no" >&6; }
212380e3 13666fi
631ef239
AC
13667
13668
7083c021
AC
13669# Extract the first word of "cp", so it can be a program name with args.
13670set dummy cp; ac_word=$2
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13673if ${ac_cv_path_CP+:} false; then :
7083c021
AC
13674 $as_echo_n "(cached) " >&6
13675else
13676 case $CP in
13677 [\\/]* | ?:[\\/]*)
13678 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13679 ;;
13680 *)
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH
13683do
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13688 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 break 2
13691 fi
13692done
13693 done
13694IFS=$as_save_IFS
631ef239 13695
7083c021
AC
13696 ;;
13697esac
13698fi
13699CP=$ac_cv_path_CP
13700if test -n "$CP"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13702$as_echo "$CP" >&6; }
13703else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705$as_echo "no" >&6; }
13706fi
212380e3
AC
13707
13708
7083c021
AC
13709# Extract the first word of "mv", so it can be a program name with args.
13710set dummy mv; ac_word=$2
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13713if ${ac_cv_path_MV+:} false; then :
7083c021 13714 $as_echo_n "(cached) " >&6
212380e3 13715else
7083c021
AC
13716 case $MV in
13717 [\\/]* | ?:[\\/]*)
13718 ac_cv_path_MV="$MV" # Let the user override the test with a path.
13719 ;;
13720 *)
13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13728 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730 break 2
13731 fi
13732done
13733 done
13734IFS=$as_save_IFS
13735
13736 ;;
631ef239 13737esac
7083c021
AC
13738fi
13739MV=$ac_cv_path_MV
13740if test -n "$MV"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
13742$as_echo "$MV" >&6; }
212380e3 13743else
7083c021
AC
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745$as_echo "no" >&6; }
212380e3 13746fi
631ef239 13747
212380e3 13748
7083c021
AC
13749# Extract the first word of "ln", so it can be a program name with args.
13750set dummy ln; ac_word=$2
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13753if ${ac_cv_path_LN+:} false; then :
7083c021 13754 $as_echo_n "(cached) " >&6
212380e3 13755else
7083c021
AC
13756 case $LN in
13757 [\\/]* | ?:[\\/]*)
13758 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13759 ;;
13760 *)
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13768 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773 done
13774IFS=$as_save_IFS
212380e3 13775
7083c021 13776 ;;
631ef239 13777esac
7083c021
AC
13778fi
13779LN=$ac_cv_path_LN
13780if test -n "$LN"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13782$as_echo "$LN" >&6; }
212380e3 13783else
7083c021
AC
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785$as_echo "no" >&6; }
212380e3 13786fi
631ef239 13787
7083c021
AC
13788
13789# Extract the first word of "sed", so it can be a program name with args.
13790set dummy sed; ac_word=$2
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13793if ${ac_cv_path_SED+:} false; then :
7083c021
AC
13794 $as_echo_n "(cached) " >&6
13795else
13796 case $SED in
13797 [\\/]* | ?:[\\/]*)
13798 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13799 ;;
13800 *)
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13808 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 break 2
13811 fi
13812done
212380e3 13813 done
7083c021
AC
13814IFS=$as_save_IFS
13815
13816 ;;
13817esac
13818fi
13819SED=$ac_cv_path_SED
13820if test -n "$SED"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13822$as_echo "$SED" >&6; }
212380e3 13823else
7083c021
AC
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
212380e3 13827
212380e3 13828
7083c021
AC
13829# Extract the first word of "ar", so it can be a program name with args.
13830set dummy ar; ac_word=$2
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13833if ${ac_cv_path_AR+:} false; then :
7083c021
AC
13834 $as_echo_n "(cached) " >&6
13835else
13836 case $AR in
13837 [\\/]* | ?:[\\/]*)
13838 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13839 ;;
13840 *)
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13848 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13851 fi
13852done
13853 done
13854IFS=$as_save_IFS
212380e3 13855
7083c021 13856 ;;
631ef239 13857esac
7083c021
AC
13858fi
13859AR=$ac_cv_path_AR
13860if test -n "$AR"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13862$as_echo "$AR" >&6; }
212380e3 13863else
7083c021
AC
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13865$as_echo "no" >&6; }
212380e3 13866fi
631ef239 13867
7083c021
AC
13868
13869# Extract the first word of "ld", so it can be a program name with args.
13870set dummy ld; ac_word=$2
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13873if ${ac_cv_path_LD+:} false; then :
7083c021 13874 $as_echo_n "(cached) " >&6
212380e3 13875else
7083c021
AC
13876 case $LD in
13877 [\\/]* | ?:[\\/]*)
13878 ac_cv_path_LD="$LD" # Let the user override the test with a path.
13879 ;;
13880 *)
13881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882for as_dir in $PATH
13883do
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13888 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
13889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 break 2
13891 fi
13892done
13893 done
13894IFS=$as_save_IFS
212380e3 13895
7083c021
AC
13896 ;;
13897esac
212380e3 13898fi
7083c021
AC
13899LD=$ac_cv_path_LD
13900if test -n "$LD"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13902$as_echo "$LD" >&6; }
13903else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905$as_echo "no" >&6; }
212380e3 13906fi
631ef239 13907
212380e3 13908
7083c021
AC
13909# Extract the first word of "ranlib", so it can be a program name with args.
13910set dummy ranlib; ac_word=$2
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13913if ${ac_cv_path_RANLIB+:} false; then :
7083c021 13914 $as_echo_n "(cached) " >&6
212380e3 13915else
7083c021
AC
13916 case $RANLIB in
13917 [\\/]* | ?:[\\/]*)
13918 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
13919 ;;
13920 *)
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922for as_dir in $PATH
13923do
13924 IFS=$as_save_IFS
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13928 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13930 break 2
13931 fi
13932done
13933 done
13934IFS=$as_save_IFS
212380e3 13935
7083c021
AC
13936 ;;
13937esac
13938fi
13939RANLIB=$ac_cv_path_RANLIB
13940if test -n "$RANLIB"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13942$as_echo "$RANLIB" >&6; }
13943else
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945$as_echo "no" >&6; }
212380e3 13946fi
631ef239 13947
7083c021
AC
13948
13949# Extract the first word of "touch", so it can be a program name with args.
13950set dummy touch; ac_word=$2
13951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13953if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
13954 $as_echo_n "(cached) " >&6
13955else
13956 case $TOUCH in
13957 [\\/]* | ?:[\\/]*)
13958 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
13959 ;;
13960 *)
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962for as_dir in $PATH
13963do
13964 IFS=$as_save_IFS
13965 test -z "$as_dir" && as_dir=.
13966 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 13967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
13968 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
13969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13970 break 2
13971 fi
212380e3 13972done
7083c021
AC
13973 done
13974IFS=$as_save_IFS
13975
13976 ;;
212380e3 13977esac
7083c021
AC
13978fi
13979TOUCH=$ac_cv_path_TOUCH
13980if test -n "$TOUCH"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
13982$as_echo "$TOUCH" >&6; }
212380e3 13983else
7083c021
AC
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985$as_echo "no" >&6; }
13986fi
212380e3 13987
212380e3 13988
7083c021
AC
13989
13990for ac_prog in 'bison -y' byacc
13991do
13992 # Extract the first word of "$ac_prog", so it can be a program name with args.
13993set dummy $ac_prog; ac_word=$2
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13995$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 13996if ${ac_cv_prog_YACC+:} false; then :
7083c021 13997 $as_echo_n "(cached) " >&6
212380e3 13998else
7083c021
AC
13999 if test -n "$YACC"; then
14000 ac_cv_prog_YACC="$YACC" # Let the user override the test.
14001else
14002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003for as_dir in $PATH
14004do
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14009 ac_cv_prog_YACC="$ac_prog"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14012 fi
14013done
14014 done
14015IFS=$as_save_IFS
212380e3 14016
212380e3
AC
14017fi
14018fi
7083c021
AC
14019YACC=$ac_cv_prog_YACC
14020if test -n "$YACC"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14022$as_echo "$YACC" >&6; }
14023else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025$as_echo "no" >&6; }
212380e3 14026fi
631ef239
AC
14027
14028
7083c021
AC
14029 test -n "$YACC" && break
14030done
14031test -n "$YACC" || YACC="yacc"
212380e3
AC
14032
14033
7083c021 14034if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 14035 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 14036fi
212380e3 14037
7083c021
AC
14038for ac_prog in flex lex
14039do
14040 # Extract the first word of "$ac_prog", so it can be a program name with args.
14041set dummy $ac_prog; ac_word=$2
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 14044if ${ac_cv_prog_LEX+:} false; then :
7083c021 14045 $as_echo_n "(cached) " >&6
212380e3 14046else
7083c021
AC
14047 if test -n "$LEX"; then
14048 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 14049else
7083c021
AC
14050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051for as_dir in $PATH
14052do
14053 IFS=$as_save_IFS
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 14056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
14057 ac_cv_prog_LEX="$ac_prog"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14059 break 2
14060 fi
631ef239 14061done
7083c021
AC
14062 done
14063IFS=$as_save_IFS
631ef239 14064
7083c021
AC
14065fi
14066fi
14067LEX=$ac_cv_prog_LEX
14068if test -n "$LEX"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14070$as_echo "$LEX" >&6; }
631ef239 14071else
7083c021
AC
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073$as_echo "no" >&6; }
631ef239
AC
14074fi
14075
14076
7083c021
AC
14077 test -n "$LEX" && break
14078done
14079test -n "$LEX" || LEX=":"
212380e3 14080
7083c021
AC
14081if test "x$LEX" != "x:"; then
14082 cat >conftest.l <<_ACEOF
14083%%
14084a { ECHO; }
14085b { REJECT; }
14086c { yymore (); }
14087d { yyless (1); }
2eff3833
JT
14088e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
14089 yyless ((input () != 0)); }
7083c021
AC
14090f { unput (yytext[0]); }
14091. { BEGIN INITIAL; }
14092%%
14093#ifdef YYTEXT_POINTER
14094extern char *yytext;
212380e3 14095#endif
212380e3 14096int
7083c021 14097main (void)
212380e3 14098{
7083c021 14099 return ! yylex () + ! yywrap ();
212380e3
AC
14100}
14101_ACEOF
7083c021 14102{ { ac_try="$LEX conftest.l"
631ef239
AC
14103case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106esac
7083c021
AC
14107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14108$as_echo "$ac_try_echo"; } >&5
14109 (eval "$LEX conftest.l") 2>&5
212380e3 14110 ac_status=$?
7083c021
AC
14111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14112 test $ac_status = 0; }
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14114$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 14115if ${ac_cv_prog_lex_root+:} false; then :
7083c021 14116 $as_echo_n "(cached) " >&6
212380e3 14117else
212380e3 14118
7083c021
AC
14119if test -f lex.yy.c; then
14120 ac_cv_prog_lex_root=lex.yy
14121elif test -f lexyy.c; then
14122 ac_cv_prog_lex_root=lexyy
14123else
b6d0720c 14124 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
14125fi
14126fi
14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14128$as_echo "$ac_cv_prog_lex_root" >&6; }
14129LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14130
14131if test -z "${LEXLIB+set}"; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14133$as_echo_n "checking lex library... " >&6; }
b6d0720c 14134if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
14135 $as_echo_n "(cached) " >&6
14136else
631ef239 14137
7083c021
AC
14138 ac_save_LIBS=$LIBS
14139 ac_cv_lib_lex='none needed'
14140 for ac_lib in '' -lfl -ll; do
14141 LIBS="$ac_lib $ac_save_LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143/* end confdefs.h. */
14144`cat $LEX_OUTPUT_ROOT.c`
14145_ACEOF
14146if ac_fn_c_try_link "$LINENO"; then :
14147 ac_cv_lib_lex=$ac_lib
212380e3 14148fi
7083c021
AC
14149rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14151 test "$ac_cv_lib_lex" != 'none needed' && break
14152 done
14153 LIBS=$ac_save_LIBS
631ef239 14154
631ef239 14155fi
7083c021
AC
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14157$as_echo "$ac_cv_lib_lex" >&6; }
14158 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14159fi
14160
14161
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14163$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 14164if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 14165 $as_echo_n "(cached) " >&6
631ef239 14166else
7083c021
AC
14167 # POSIX says lex can declare yytext either as a pointer or an array; the
14168# default is implementation-dependent. Figure out which it is, since
14169# not all implementations provide the %pointer and %array declarations.
14170ac_cv_prog_lex_yytext_pointer=no
14171ac_save_LIBS=$LIBS
14172LIBS="$LEXLIB $ac_save_LIBS"
14173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h. */
b6d0720c
AC
14175
14176 #define YYTEXT_POINTER 1
7083c021
AC
14177`cat $LEX_OUTPUT_ROOT.c`
14178_ACEOF
14179if ac_fn_c_try_link "$LINENO"; then :
14180 ac_cv_prog_lex_yytext_pointer=yes
212380e3 14181fi
7083c021
AC
14182rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184LIBS=$ac_save_LIBS
14185
212380e3 14186fi
7083c021
AC
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14188$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14189if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 14190
7083c021
AC
14191$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14192
14193fi
14194rm -f conftest.l $LEX_OUTPUT_ROOT.c
14195
14196fi
14197
14198if test "$LEX" = ":"; then
b6d0720c 14199 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
14200fi
14201
9f9b7042
NPB
14202# Check whether --enable-fhs-paths was given.
14203if test "${enable_fhs_paths+set}" = set; then :
14204 enableval=$enable_fhs_paths;
14205else
14206 if test "$libexecdir" = '${exec_prefix}/libexec' && \
14207 test "$localstatedir" = '${prefix}/var' && \
14208 test "$libdir" = '${exec_prefix}/lib'; then :
14209 enable_fhs_paths=no
14210else
14211 enable_fhs_paths=yes
14212fi
14213
14214fi
14215
14216if test "x$enable_fhs_paths" = "xyes"; then :
14217 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
14218 rundir=${rundir-'${prefix}/run'}
14219 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
14220 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
14221else
14222 libexecdir='${bindir}'
14223 pkglibexecdir='${libexecdir}'
14224 rundir='${sysconfdir}'
14225 pkgrundir='${rundir}'
7083c021 14226 localstatedir='${prefix}'
9f9b7042 14227 pkglocalstatedir='${sysconfdir}'
631ef239 14228fi
9f9b7042
NPB
14229pkglibdir='${libdir}/${PACKAGE_TARNAME}'
14230
14231
14232
14233
14234
14235 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14237 last_ac_define_dir=`eval echo $pkglocalstatedir`
14238 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 14239 ac_define_dir_counter=0
9f9b7042
NPB
14240 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
14241 last_ac_define_dir="$ac_define_dir"
14242 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
14243 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
14244 if test "x$ac_define_dir_counter" = x128; then :
14245 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
14246 break
14247fi
9f9b7042
NPB
14248 done
14249 PKGLOCALSTATEDIR="$ac_define_dir"
14250
14251
14252cat >>confdefs.h <<_ACEOF
14253#define PKGLOCALSTATEDIR "$ac_define_dir"
14254_ACEOF
14255
14256
14257
14258
14259 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14261 last_ac_define_dir=`eval echo $pkglibexecdir`
14262 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 14263 ac_define_dir_counter=0
9f9b7042
NPB
14264 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
14265 last_ac_define_dir="$ac_define_dir"
14266 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
14267 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
14268 if test "x$ac_define_dir_counter" = x128; then :
14269 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
14270 break
14271fi
9f9b7042
NPB
14272 done
14273 PKGLIBEXECDIR="$ac_define_dir"
14274
14275
14276cat >>confdefs.h <<_ACEOF
14277#define PKGLIBEXECDIR "$ac_define_dir"
14278_ACEOF
14279
14280
212380e3 14281
7083c021
AC
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14283$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 14284if ${ac_cv_header_stdc+:} false; then :
7083c021 14285 $as_echo_n "(cached) " >&6
212380e3 14286else
7083c021 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14288/* end confdefs.h. */
7083c021
AC
14289#include <stdlib.h>
14290#include <stdarg.h>
14291#include <string.h>
14292#include <float.h>
212380e3
AC
14293
14294int
14295main ()
14296{
7083c021 14297
212380e3
AC
14298 ;
14299 return 0;
14300}
14301_ACEOF
7083c021
AC
14302if ac_fn_c_try_compile "$LINENO"; then :
14303 ac_cv_header_stdc=yes
212380e3 14304else
7083c021 14305 ac_cv_header_stdc=no
212380e3 14306fi
631ef239 14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 14308
7083c021
AC
14309if test $ac_cv_header_stdc = yes; then
14310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h. */
14313#include <string.h>
14314
212380e3 14315_ACEOF
7083c021
AC
14316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14317 $EGREP "memchr" >/dev/null 2>&1; then :
14318
14319else
14320 ac_cv_header_stdc=no
14321fi
14322rm -f conftest*
212380e3
AC
14323
14324fi
14325
7083c021
AC
14326if test $ac_cv_header_stdc = yes; then
14327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329/* end confdefs.h. */
14330#include <stdlib.h>
14331
14332_ACEOF
14333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14334 $EGREP "free" >/dev/null 2>&1; then :
212380e3 14335
212380e3 14336else
7083c021 14337 ac_cv_header_stdc=no
631ef239 14338fi
7083c021 14339rm -f conftest*
631ef239 14340
7083c021 14341fi
212380e3 14342
7083c021
AC
14343if test $ac_cv_header_stdc = yes; then
14344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14345 if test "$cross_compiling" = yes; then :
14346 :
212380e3 14347else
7083c021 14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14349/* end confdefs.h. */
7083c021
AC
14350#include <ctype.h>
14351#include <stdlib.h>
14352#if ((' ' & 0x0FF) == 0x020)
14353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14355#else
14356# define ISLOWER(c) \
14357 (('a' <= (c) && (c) <= 'i') \
14358 || ('j' <= (c) && (c) <= 'r') \
14359 || ('s' <= (c) && (c) <= 'z'))
14360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 14361#endif
7083c021
AC
14362
14363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
14364int
14365main ()
14366{
7083c021
AC
14367 int i;
14368 for (i = 0; i < 256; i++)
14369 if (XOR (islower (i), ISLOWER (i))
14370 || toupper (i) != TOUPPER (i))
14371 return 2;
212380e3
AC
14372 return 0;
14373}
14374_ACEOF
7083c021 14375if ac_fn_c_try_run "$LINENO"; then :
212380e3 14376
7083c021
AC
14377else
14378 ac_cv_header_stdc=no
631ef239 14379fi
7083c021
AC
14380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14381 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 14382fi
7083c021 14383
212380e3 14384fi
212380e3 14385fi
7083c021
AC
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14387$as_echo "$ac_cv_header_stdc" >&6; }
14388if test $ac_cv_header_stdc = yes; then
14389
14390$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
14391
14392fi
14393
14394
7083c021
AC
14395for 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
14396do :
14397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 14399if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
14400 cat >>confdefs.h <<_ACEOF
14401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14402_ACEOF
212380e3 14403
212380e3
AC
14404fi
14405
7083c021 14406done
212380e3
AC
14407
14408
212380e3 14409
7083c021
AC
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14411$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 14412if ${ac_cv_c_const+:} false; then :
7083c021
AC
14413 $as_echo_n "(cached) " >&6
14414else
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h. */
212380e3 14417
7083c021
AC
14418int
14419main ()
14420{
2eff3833 14421
7083c021 14422#ifndef __cplusplus
2eff3833 14423 /* Ultrix mips cc rejects this sort of thing. */
7083c021 14424 typedef int charset[2];
2eff3833 14425 const charset cs = { 0, 0 };
7083c021
AC
14426 /* SunOS 4.1.1 cc rejects this. */
14427 char const *const *pcpcc;
14428 char **ppc;
14429 /* NEC SVR4.0.2 mips cc rejects this. */
14430 struct point {int x, y;};
14431 static struct point const zero = {0,0};
14432 /* AIX XL C 1.02.0.0 rejects this.
14433 It does not let you subtract one const X* pointer from another in
14434 an arm of an if-expression whose if-part is not a constant
14435 expression */
14436 const char *g = "string";
14437 pcpcc = &g + (g ? g-g : 0);
14438 /* HPUX 7.0 cc rejects these. */
14439 ++pcpcc;
14440 ppc = (char**) pcpcc;
14441 pcpcc = (char const *const *) ppc;
2eff3833
JT
14442 { /* SCO 3.2v4 cc rejects this sort of thing. */
14443 char tx;
14444 char *t = &tx;
7083c021 14445 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 14446
7083c021
AC
14447 *t++ = 0;
14448 if (s) return 0;
14449 }
14450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14451 int x[] = {25, 17};
14452 const int *foo = &x[0];
14453 ++foo;
14454 }
14455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14456 typedef const int *iptr;
14457 iptr p = 0;
14458 ++p;
14459 }
2eff3833 14460 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 14461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
14462 struct s { int j; const int *ap[3]; } bx;
14463 struct s *b = &bx; b->j = 5;
7083c021
AC
14464 }
14465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14466 const int foo = 10;
14467 if (!foo) return 0;
14468 }
14469 return !cs[0] && !zero.x;
14470#endif
212380e3 14471
7083c021
AC
14472 ;
14473 return 0;
14474}
212380e3 14475_ACEOF
7083c021
AC
14476if ac_fn_c_try_compile "$LINENO"; then :
14477 ac_cv_c_const=yes
212380e3 14478else
7083c021 14479 ac_cv_c_const=no
212380e3 14480fi
631ef239 14481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 14482fi
7083c021
AC
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14484$as_echo "$ac_cv_c_const" >&6; }
14485if test $ac_cv_c_const = no; then
212380e3 14486
7083c021 14487$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
14488
14489fi
14490
7083c021
AC
14491if test "$ac_cv_header_machine_endian_h" = "no" ; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14493$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 14494if ${ac_cv_c_bigendian+:} false; then :
7083c021 14495 $as_echo_n "(cached) " >&6
212380e3 14496else
7083c021
AC
14497 ac_cv_c_bigendian=unknown
14498 # See if we're dealing with a universal compiler.
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500/* end confdefs.h. */
14501#ifndef __APPLE_CC__
14502 not a universal capable compiler
14503 #endif
14504 typedef int dummy;
14505
14506_ACEOF
14507if ac_fn_c_try_compile "$LINENO"; then :
14508
14509 # Check for potential -arch flags. It is not universal unless
14510 # there are at least two -arch flags with different values.
14511 ac_arch=
14512 ac_prev=
14513 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14514 if test -n "$ac_prev"; then
14515 case $ac_word in
14516 i?86 | x86_64 | ppc | ppc64)
14517 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14518 ac_arch=$ac_word
14519 else
14520 ac_cv_c_bigendian=universal
14521 break
14522 fi
14523 ;;
14524 esac
14525 ac_prev=
14526 elif test "x$ac_word" = "x-arch"; then
14527 ac_prev=arch
14528 fi
14529 done
14530fi
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 if test $ac_cv_c_bigendian = unknown; then
14533 # See if sys/param.h defines the BYTE_ORDER macro.
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
14535/* end confdefs.h. */
14536#include <sys/types.h>
7083c021 14537 #include <sys/param.h>
212380e3
AC
14538
14539int
14540main ()
14541{
7083c021
AC
14542#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14543 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14544 && LITTLE_ENDIAN)
14545 bogus endian macros
14546 #endif
212380e3
AC
14547
14548 ;
14549 return 0;
14550}
14551_ACEOF
7083c021 14552if ac_fn_c_try_compile "$LINENO"; then :
212380e3 14553 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
14555/* end confdefs.h. */
14556#include <sys/types.h>
7083c021 14557 #include <sys/param.h>
212380e3
AC
14558
14559int
14560main ()
14561{
14562#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
14563 not big endian
14564 #endif
212380e3
AC
14565
14566 ;
14567 return 0;
14568}
14569_ACEOF
7083c021 14570if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
14571 ac_cv_c_bigendian=yes
14572else
7083c021 14573 ac_cv_c_bigendian=no
212380e3 14574fi
631ef239 14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
14576fi
14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 fi
14579 if test $ac_cv_c_bigendian = unknown; then
14580 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582/* end confdefs.h. */
14583#include <limits.h>
212380e3 14584
7083c021
AC
14585int
14586main ()
14587{
14588#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14589 bogus endian macros
14590 #endif
14591
14592 ;
14593 return 0;
14594}
212380e3 14595_ACEOF
7083c021
AC
14596if ac_fn_c_try_compile "$LINENO"; then :
14597 # It does; now see whether it defined to _BIG_ENDIAN or not.
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14599/* end confdefs.h. */
7083c021
AC
14600#include <limits.h>
14601
212380e3
AC
14602int
14603main ()
14604{
7083c021
AC
14605#ifndef _BIG_ENDIAN
14606 not big endian
14607 #endif
14608
212380e3
AC
14609 ;
14610 return 0;
14611}
14612_ACEOF
7083c021 14613if ac_fn_c_try_compile "$LINENO"; then :
212380e3 14614 ac_cv_c_bigendian=yes
7083c021
AC
14615else
14616 ac_cv_c_bigendian=no
212380e3 14617fi
7083c021 14618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 14619fi
7083c021
AC
14620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 if test $ac_cv_c_bigendian = unknown; then
14623 # Compile a test program.
14624 if test "$cross_compiling" = yes; then :
14625 # Try to guess by grepping values from an object file.
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h. */
14628short int ascii_mm[] =
14629 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14630 short int ascii_ii[] =
14631 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14632 int use_ascii (int i) {
14633 return ascii_mm[i] + ascii_ii[i];
14634 }
14635 short int ebcdic_ii[] =
14636 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14637 short int ebcdic_mm[] =
14638 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14639 int use_ebcdic (int i) {
14640 return ebcdic_mm[i] + ebcdic_ii[i];
14641 }
14642 extern int foo;
631ef239 14643
7083c021
AC
14644int
14645main ()
14646{
14647return use_ascii (foo) == use_ebcdic (foo);
14648 ;
14649 return 0;
14650}
14651_ACEOF
14652if ac_fn_c_try_compile "$LINENO"; then :
14653 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14654 ac_cv_c_bigendian=yes
14655 fi
14656 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14657 if test "$ac_cv_c_bigendian" = unknown; then
14658 ac_cv_c_bigendian=no
14659 else
14660 # finding both strings is unlikely to happen, but who knows?
14661 ac_cv_c_bigendian=unknown
14662 fi
14663 fi
212380e3 14664fi
631ef239 14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 14666else
7083c021 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14668/* end confdefs.h. */
631ef239 14669$ac_includes_default
212380e3
AC
14670int
14671main ()
14672{
631ef239 14673
7083c021
AC
14674 /* Are we little or big endian? From Harbison&Steele. */
14675 union
14676 {
14677 long int l;
14678 char c[sizeof (long int)];
14679 } u;
14680 u.l = 1;
14681 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
14682
14683 ;
14684 return 0;
212380e3
AC
14685}
14686_ACEOF
7083c021 14687if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
14688 ac_cv_c_bigendian=no
14689else
7083c021 14690 ac_cv_c_bigendian=yes
212380e3 14691fi
7083c021
AC
14692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14693 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 14694fi
631ef239 14695
7083c021 14696 fi
212380e3 14697fi
7083c021
AC
14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14699$as_echo "$ac_cv_c_bigendian" >&6; }
14700 case $ac_cv_c_bigendian in #(
14701 yes)
14702 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14703;; #(
14704 no)
14705 ;; #(
14706 universal)
14707
14708$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14709
14710 ;; #(
14711 *)
b6d0720c 14712 as_fn_error $? "unknown endianness
7083c021
AC
14713 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14714 esac
631ef239 14715
212380e3 14716fi
7083c021 14717ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 14718if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 14719
7083c021 14720else
212380e3 14721
7083c021
AC
14722cat >>confdefs.h <<_ACEOF
14723#define pid_t int
14724_ACEOF
212380e3 14725
212380e3 14726fi
7083c021
AC
14727
14728ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 14729if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 14730
212380e3 14731else
7083c021
AC
14732
14733cat >>confdefs.h <<_ACEOF
14734#define size_t unsigned int
212380e3 14735_ACEOF
7083c021
AC
14736
14737fi
14738
14739# The cast to long int works around a bug in the HP C Compiler
14740# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14741# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14742# This bug is HP SR number 8606223364.
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14744$as_echo_n "checking size of short... " >&6; }
b6d0720c 14745if ${ac_cv_sizeof_short+:} false; then :
7083c021 14746 $as_echo_n "(cached) " >&6
212380e3 14747else
7083c021
AC
14748 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14749
14750else
14751 if test "$ac_cv_type_short" = yes; then
14752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
14754as_fn_error 77 "cannot compute sizeof (short)
14755See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
14756 else
14757 ac_cv_sizeof_short=0
14758 fi
14759fi
212380e3 14760
212380e3 14761fi
7083c021
AC
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14763$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 14764
212380e3 14765
7083c021
AC
14766
14767cat >>confdefs.h <<_ACEOF
14768#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 14769_ACEOF
7083c021
AC
14770
14771
14772# The cast to long int works around a bug in the HP C Compiler
14773# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14774# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14775# This bug is HP SR number 8606223364.
14776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14777$as_echo_n "checking size of int... " >&6; }
b6d0720c 14778if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
14779 $as_echo_n "(cached) " >&6
14780else
14781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14782
14783else
14784 if test "$ac_cv_type_int" = yes; then
14785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
14787as_fn_error 77 "cannot compute sizeof (int)
14788See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
14789 else
14790 ac_cv_sizeof_int=0
14791 fi
14792fi
14793
14794fi
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14796$as_echo "$ac_cv_sizeof_int" >&6; }
14797
14798
14799
14800cat >>confdefs.h <<_ACEOF
14801#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 14802_ACEOF
7083c021
AC
14803
14804
14805# The cast to long int works around a bug in the HP C Compiler
14806# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14807# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14808# This bug is HP SR number 8606223364.
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14810$as_echo_n "checking size of long... " >&6; }
b6d0720c 14811if ${ac_cv_sizeof_long+:} false; then :
7083c021 14812 $as_echo_n "(cached) " >&6
212380e3 14813else
7083c021 14814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 14815
7083c021
AC
14816else
14817 if test "$ac_cv_type_long" = yes; then
14818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
14820as_fn_error 77 "cannot compute sizeof (long)
14821See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
14822 else
14823 ac_cv_sizeof_long=0
14824 fi
212380e3 14825fi
631ef239 14826
7083c021
AC
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14829$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 14830
631ef239 14831
7083c021
AC
14832
14833cat >>confdefs.h <<_ACEOF
14834#define SIZEOF_LONG $ac_cv_sizeof_long
14835_ACEOF
14836
14837
14838# The cast to long int works around a bug in the HP C Compiler
14839# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14840# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14841# This bug is HP SR number 8606223364.
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14843$as_echo_n "checking size of long long... " >&6; }
b6d0720c 14844if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
14845 $as_echo_n "(cached) " >&6
14846else
14847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14848
212380e3 14849else
7083c021
AC
14850 if test "$ac_cv_type_long_long" = yes; then
14851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
14853as_fn_error 77 "cannot compute sizeof (long long)
14854See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
14855 else
14856 ac_cv_sizeof_long_long=0
14857 fi
212380e3 14858fi
212380e3
AC
14859
14860fi
7083c021
AC
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14862$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
14863
14864
14865
7083c021
AC
14866cat >>confdefs.h <<_ACEOF
14867#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14868_ACEOF
212380e3 14869
212380e3 14870
212380e3 14871
7083c021
AC
14872
14873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14874$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 14875if ${ac_cv_search_socket+:} false; then :
7083c021
AC
14876 $as_echo_n "(cached) " >&6
14877else
14878 ac_func_search_save_LIBS=$LIBS
14879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14880/* end confdefs.h. */
7083c021
AC
14881
14882/* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14885#ifdef __cplusplus
14886extern "C"
14887#endif
14888char socket ();
212380e3
AC
14889int
14890main ()
14891{
7083c021 14892return socket ();
212380e3
AC
14893 ;
14894 return 0;
14895}
14896_ACEOF
7083c021
AC
14897for ac_lib in '' socket; do
14898 if test -z "$ac_lib"; then
14899 ac_res="none required"
14900 else
14901 ac_res=-l$ac_lib
14902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14903 fi
14904 if ac_fn_c_try_link "$LINENO"; then :
14905 ac_cv_search_socket=$ac_res
14906fi
14907rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext
b6d0720c 14909 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
14910 break
14911fi
14912done
b6d0720c 14913if ${ac_cv_search_socket+:} false; then :
212380e3
AC
14914
14915else
7083c021
AC
14916 ac_cv_search_socket=no
14917fi
14918rm conftest.$ac_ext
14919LIBS=$ac_func_search_save_LIBS
14920fi
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14922$as_echo "$ac_cv_search_socket" >&6; }
14923ac_res=$ac_cv_search_socket
14924if test "$ac_res" != no; then :
14925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 14926
7083c021 14927else
b6d0720c 14928 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 14929fi
631ef239 14930
212380e3 14931
7083c021
AC
14932if test x"$SUN" = xyes; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
14934$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 14935if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
14936 $as_echo_n "(cached) " >&6
14937else
14938 ac_func_search_save_LIBS=$LIBS
14939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 14940/* end confdefs.h. */
7083c021
AC
14941
14942/* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945#ifdef __cplusplus
14946extern "C"
14947#endif
14948char inet_ntoa ();
212380e3
AC
14949int
14950main ()
14951{
7083c021 14952return inet_ntoa ();
212380e3
AC
14953 ;
14954 return 0;
14955}
14956_ACEOF
7083c021
AC
14957for ac_lib in '' nsl; do
14958 if test -z "$ac_lib"; then
14959 ac_res="none required"
14960 else
14961 ac_res=-l$ac_lib
14962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14963 fi
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 ac_cv_search_inet_ntoa=$ac_res
14966fi
14967rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext
b6d0720c 14969 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
14970 break
14971fi
14972done
b6d0720c 14973if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
14974
14975else
7083c021
AC
14976 ac_cv_search_inet_ntoa=no
14977fi
14978rm conftest.$ac_ext
14979LIBS=$ac_func_search_save_LIBS
14980fi
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
14982$as_echo "$ac_cv_search_inet_ntoa" >&6; }
14983ac_res=$ac_cv_search_inet_ntoa
14984if test "$ac_res" != no; then :
14985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 14986
7083c021 14987else
b6d0720c 14988 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 14989fi
631ef239 14990
7083c021 14991fi
212380e3 14992
7083c021
AC
14993ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14994#include <sys/socket.h>
14995"
b6d0720c 14996if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
14997
14998else
14999
7083c021 15000$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 15001
7083c021 15002fi
212380e3
AC
15003
15004
7083c021
AC
15005# Check whether --enable-ipv6 was given.
15006if test "${enable_ipv6+set}" = set; then :
15007 enableval=$enable_ipv6; ipv6=$enableval
212380e3 15008else
7083c021
AC
15009 ipv6=no
15010fi
212380e3 15011
212380e3 15012
7083c021
AC
15013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15014$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 15015if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15016 $as_echo_n "(cached) " >&6
15017else
15018 ac_func_search_save_LIBS=$LIBS
15019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020/* end confdefs.h. */
212380e3 15021
631ef239
AC
15022/* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
212380e3
AC
15025#ifdef __cplusplus
15026extern "C"
212380e3 15027#endif
7083c021 15028char crypt ();
212380e3
AC
15029int
15030main ()
15031{
7083c021 15032return crypt ();
212380e3
AC
15033 ;
15034 return 0;
15035}
15036_ACEOF
7083c021
AC
15037for ac_lib in '' crypt descrypt; do
15038 if test -z "$ac_lib"; then
15039 ac_res="none required"
15040 else
15041 ac_res=-l$ac_lib
15042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15043 fi
15044 if ac_fn_c_try_link "$LINENO"; then :
15045 ac_cv_search_crypt=$ac_res
15046fi
15047rm -f core conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext
b6d0720c 15049 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
15050 break
15051fi
15052done
b6d0720c 15053if ${ac_cv_search_crypt+:} false; then :
7083c021 15054
212380e3 15055else
7083c021
AC
15056 ac_cv_search_crypt=no
15057fi
15058rm conftest.$ac_ext
15059LIBS=$ac_func_search_save_LIBS
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15062$as_echo "$ac_cv_search_crypt" >&6; }
15063ac_res=$ac_cv_search_crypt
15064if test "$ac_res" != no; then :
15065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 15066
212380e3 15067fi
631ef239 15068
7083c021
AC
15069
15070CRYPT_LIB=$ac_cv_search_crypt
15071
15072if test "$CRYPT_LIB" = "none required"; then
15073 unset CRYPT_LIB
15074elif test "$CRYPT_LIB" = no; then
15075 unset CRYPT_LIB
212380e3 15076fi
7083c021
AC
15077
15078
15079
15080if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
15081 VICONF=viconf
15082 else
15083 VICONF=""
15084fi
15085
15086
15087
7083c021
AC
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15089$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 15090if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
15091 $as_echo_n "(cached) " >&6
15092else
15093 ac_cv_c_bigendian=unknown
15094 # See if we're dealing with a universal compiler.
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h. */
15097#ifndef __APPLE_CC__
15098 not a universal capable compiler
15099 #endif
15100 typedef int dummy;
15101
15102_ACEOF
15103if ac_fn_c_try_compile "$LINENO"; then :
15104
15105 # Check for potential -arch flags. It is not universal unless
15106 # there are at least two -arch flags with different values.
15107 ac_arch=
15108 ac_prev=
15109 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15110 if test -n "$ac_prev"; then
15111 case $ac_word in
15112 i?86 | x86_64 | ppc | ppc64)
15113 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15114 ac_arch=$ac_word
15115 else
15116 ac_cv_c_bigendian=universal
15117 break
15118 fi
15119 ;;
15120 esac
15121 ac_prev=
15122 elif test "x$ac_word" = "x-arch"; then
15123 ac_prev=arch
15124 fi
15125 done
212380e3 15126fi
7083c021
AC
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 if test $ac_cv_c_bigendian = unknown; then
15129 # See if sys/param.h defines the BYTE_ORDER macro.
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131/* end confdefs.h. */
15132#include <sys/types.h>
15133 #include <sys/param.h>
15134
15135int
15136main ()
15137{
15138#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15139 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15140 && LITTLE_ENDIAN)
15141 bogus endian macros
15142 #endif
15143
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_compile "$LINENO"; then :
15149 # It does; now see whether it defined to BIG_ENDIAN or not.
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h. */
15152#include <sys/types.h>
15153 #include <sys/param.h>
15154
15155int
15156main ()
15157{
15158#if BYTE_ORDER != BIG_ENDIAN
15159 not big endian
15160 #endif
212380e3 15161
7083c021
AC
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166if ac_fn_c_try_compile "$LINENO"; then :
15167 ac_cv_c_bigendian=yes
212380e3 15168else
7083c021
AC
15169 ac_cv_c_bigendian=no
15170fi
15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172fi
15173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 if test $ac_cv_c_bigendian = unknown; then
15176 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178/* end confdefs.h. */
15179#include <limits.h>
15180
15181int
15182main ()
15183{
15184#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15185 bogus endian macros
15186 #endif
15187
15188 ;
15189 return 0;
15190}
212380e3 15191_ACEOF
7083c021
AC
15192if ac_fn_c_try_compile "$LINENO"; then :
15193 # It does; now see whether it defined to _BIG_ENDIAN or not.
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15195/* end confdefs.h. */
7083c021
AC
15196#include <limits.h>
15197
212380e3
AC
15198int
15199main ()
15200{
7083c021
AC
15201#ifndef _BIG_ENDIAN
15202 not big endian
15203 #endif
15204
212380e3
AC
15205 ;
15206 return 0;
15207}
15208_ACEOF
7083c021
AC
15209if ac_fn_c_try_compile "$LINENO"; then :
15210 ac_cv_c_bigendian=yes
212380e3 15211else
7083c021 15212 ac_cv_c_bigendian=no
212380e3 15213fi
631ef239 15214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 15215fi
7083c021
AC
15216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 fi
15218 if test $ac_cv_c_bigendian = unknown; then
15219 # Compile a test program.
15220 if test "$cross_compiling" = yes; then :
15221 # Try to guess by grepping values from an object file.
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h. */
15224short int ascii_mm[] =
15225 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15226 short int ascii_ii[] =
15227 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15228 int use_ascii (int i) {
15229 return ascii_mm[i] + ascii_ii[i];
15230 }
15231 short int ebcdic_ii[] =
15232 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15233 short int ebcdic_mm[] =
15234 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15235 int use_ebcdic (int i) {
15236 return ebcdic_mm[i] + ebcdic_ii[i];
15237 }
15238 extern int foo;
212380e3 15239
7083c021
AC
15240int
15241main ()
15242{
15243return use_ascii (foo) == use_ebcdic (foo);
15244 ;
15245 return 0;
15246}
212380e3 15247_ACEOF
7083c021
AC
15248if ac_fn_c_try_compile "$LINENO"; then :
15249 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15250 ac_cv_c_bigendian=yes
15251 fi
15252 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15253 if test "$ac_cv_c_bigendian" = unknown; then
15254 ac_cv_c_bigendian=no
15255 else
15256 # finding both strings is unlikely to happen, but who knows?
15257 ac_cv_c_bigendian=unknown
15258 fi
15259 fi
15260fi
15261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262else
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15264/* end confdefs.h. */
15265$ac_includes_default
15266int
15267main ()
15268{
7083c021
AC
15269
15270 /* Are we little or big endian? From Harbison&Steele. */
15271 union
15272 {
15273 long int l;
15274 char c[sizeof (long int)];
15275 } u;
15276 u.l = 1;
15277 return u.c[sizeof (long int) - 1] == 1;
15278
212380e3
AC
15279 ;
15280 return 0;
15281}
15282_ACEOF
7083c021
AC
15283if ac_fn_c_try_run "$LINENO"; then :
15284 ac_cv_c_bigendian=no
212380e3 15285else
7083c021 15286 ac_cv_c_bigendian=yes
212380e3 15287fi
7083c021
AC
15288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15290fi
212380e3 15291
7083c021
AC
15292 fi
15293fi
15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15295$as_echo "$ac_cv_c_bigendian" >&6; }
15296 case $ac_cv_c_bigendian in #(
15297 yes)
15298 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15299;; #(
15300 no)
15301 ;; #(
15302 universal)
212380e3 15303
7083c021 15304$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 15305
7083c021
AC
15306 ;; #(
15307 *)
b6d0720c 15308 as_fn_error $? "unknown endianness
7083c021
AC
15309 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15310 esac
212380e3 15311
212380e3 15312
7083c021 15313ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 15314if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 15315
7083c021 15316else
b6d0720c 15317 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 15318fi
212380e3
AC
15319
15320
7083c021
AC
15321for ac_func in strlcat strlcpy
15322do :
15323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 15325if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
15326 cat >>confdefs.h <<_ACEOF
15327#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
15328_ACEOF
15329
212380e3 15330fi
7083c021 15331done
212380e3
AC
15332
15333
7083c021 15334ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 15335if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 15336
212380e3 15337else
212380e3 15338
7083c021 15339 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 15340if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 15341
631ef239 15342
7083c021 15343$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 15344
212380e3 15345
7083c021 15346else
212380e3 15347
7083c021
AC
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
15349$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 15350
7083c021 15351$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 15352
212380e3 15353
212380e3 15354fi
631ef239 15355
7083c021 15356
212380e3 15357fi
7083c021
AC
15358
15359
15360ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 15361if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 15362
212380e3
AC
15363else
15364
7083c021 15365 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 15366if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 15367
7083c021
AC
15368
15369$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
15370
15371
212380e3 15372else
212380e3 15373
7083c021
AC
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
15375$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 15376
7083c021 15377$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 15378
7083c021
AC
15379
15380fi
212380e3
AC
15381
15382
15383fi
15384
15385
7083c021
AC
15386ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15387#include <netinet/in.h>
15388"
b6d0720c 15389if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 15390
7083c021 15391else
212380e3 15392
7083c021 15393$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 15394
7083c021 15395fi
212380e3
AC
15396
15397
7083c021
AC
15398ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
15399#include <sys/socket.h>
15400"
b6d0720c 15401if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 15402
212380e3 15403else
212380e3 15404
7083c021 15405$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 15406
7083c021 15407fi
212380e3 15408
212380e3 15409
7083c021 15410ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 15411if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 15412
7083c021
AC
15413cat >>confdefs.h <<_ACEOF
15414#define HAVE_UINTPTR_T 1
15415_ACEOF
212380e3 15416
631ef239 15417
212380e3 15418fi
7083c021
AC
15419
15420
15421for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
15422do :
15423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 15425if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 15426 cat >>confdefs.h <<_ACEOF
7083c021 15427#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
15428_ACEOF
15429
15430fi
15431done
15432
15433
15434# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15435# for constant arguments. Useless!
7083c021
AC
15436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15437$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 15438if ${ac_cv_working_alloca_h+:} false; then :
7083c021 15439 $as_echo_n "(cached) " >&6
212380e3 15440else
7083c021 15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15442/* end confdefs.h. */
15443#include <alloca.h>
15444int
15445main ()
15446{
15447char *p = (char *) alloca (2 * sizeof (int));
631ef239 15448 if (p) return 0;
212380e3
AC
15449 ;
15450 return 0;
15451}
15452_ACEOF
7083c021 15453if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15454 ac_cv_working_alloca_h=yes
15455else
7083c021 15456 ac_cv_working_alloca_h=no
212380e3 15457fi
7083c021
AC
15458rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
212380e3 15460fi
7083c021
AC
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15462$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
15463if test $ac_cv_working_alloca_h = yes; then
15464
7083c021 15465$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
15466
15467fi
15468
7083c021
AC
15469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15470$as_echo_n "checking for alloca... " >&6; }
b6d0720c 15471if ${ac_cv_func_alloca_works+:} false; then :
7083c021 15472 $as_echo_n "(cached) " >&6
212380e3 15473else
7083c021 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15475/* end confdefs.h. */
15476#ifdef __GNUC__
15477# define alloca __builtin_alloca
15478#else
15479# ifdef _MSC_VER
15480# include <malloc.h>
15481# define alloca _alloca
15482# else
631ef239 15483# ifdef HAVE_ALLOCA_H
212380e3
AC
15484# include <alloca.h>
15485# else
15486# ifdef _AIX
15487 #pragma alloca
15488# else
15489# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 15490void *alloca (size_t);
212380e3
AC
15491# endif
15492# endif
15493# endif
15494# endif
15495#endif
15496
15497int
15498main ()
15499{
15500char *p = (char *) alloca (1);
631ef239 15501 if (p) return 0;
212380e3
AC
15502 ;
15503 return 0;
15504}
15505_ACEOF
7083c021 15506if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15507 ac_cv_func_alloca_works=yes
15508else
7083c021 15509 ac_cv_func_alloca_works=no
212380e3 15510fi
7083c021
AC
15511rm -f core conftest.err conftest.$ac_objext \
15512 conftest$ac_exeext conftest.$ac_ext
212380e3 15513fi
7083c021
AC
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15515$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
15516
15517if test $ac_cv_func_alloca_works = yes; then
15518
7083c021 15519$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
15520
15521else
15522 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15523# that cause trouble. Some versions do not even contain alloca or
15524# contain a buggy version. If you still want to use their alloca,
15525# use ar to extract alloca.o from them instead of compiling alloca.c.
15526
631ef239 15527ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 15528
7083c021 15529$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
15530
15531
7083c021
AC
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15533$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 15534if ${ac_cv_os_cray+:} false; then :
7083c021 15535 $as_echo_n "(cached) " >&6
212380e3 15536else
7083c021 15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15538/* end confdefs.h. */
631ef239 15539#if defined CRAY && ! defined CRAY2
212380e3
AC
15540webecray
15541#else
15542wenotbecray
15543#endif
15544
15545_ACEOF
15546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 15547 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
15548 ac_cv_os_cray=yes
15549else
15550 ac_cv_os_cray=no
15551fi
15552rm -f conftest*
15553
15554fi
7083c021
AC
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15556$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
15557if test $ac_cv_os_cray = yes; then
15558 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
15559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 15561if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
15562
15563cat >>confdefs.h <<_ACEOF
15564#define CRAY_STACKSEG_END $ac_func
15565_ACEOF
15566
15567 break
15568fi
15569
15570 done
15571fi
15572
7083c021
AC
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15574$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 15575if ${ac_cv_c_stack_direction+:} false; then :
7083c021 15576 $as_echo_n "(cached) " >&6
212380e3 15577else
7083c021 15578 if test "$cross_compiling" = yes; then :
212380e3
AC
15579 ac_cv_c_stack_direction=0
15580else
7083c021 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 15582/* end confdefs.h. */
631ef239 15583$ac_includes_default
212380e3 15584int
2eff3833 15585find_stack_direction (int *addr, int depth)
212380e3 15586{
2eff3833
JT
15587 int dir, dummy = 0;
15588 if (! addr)
15589 addr = &dummy;
15590 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15591 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15592 return dir + dummy;
212380e3
AC
15593}
15594
15595int
2eff3833 15596main (int argc, char **argv)
212380e3 15597{
2eff3833 15598 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
15599}
15600_ACEOF
7083c021 15601if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
15602 ac_cv_c_stack_direction=1
15603else
7083c021 15604 ac_cv_c_stack_direction=-1
212380e3 15605fi
7083c021
AC
15606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15607 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 15608fi
631ef239 15609
212380e3 15610fi
7083c021
AC
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15612$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
15613cat >>confdefs.h <<_ACEOF
15614#define STACK_DIRECTION $ac_cv_c_stack_direction
15615_ACEOF
15616
15617
15618fi
15619
15620
15621
7083c021 15622ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 15623if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 15624
212380e3 15625else
7083c021
AC
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15627$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 15628if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 15629 $as_echo_n "(cached) " >&6
212380e3
AC
15630else
15631 ac_check_lib_save_LIBS=$LIBS
15632LIBS="-lrt $LIBS"
7083c021 15633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15634/* end confdefs.h. */
15635
631ef239
AC
15636/* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
212380e3
AC
15639#ifdef __cplusplus
15640extern "C"
15641#endif
212380e3
AC
15642char nanosleep ();
15643int
15644main ()
15645{
631ef239 15646return nanosleep ();
212380e3
AC
15647 ;
15648 return 0;
15649}
15650_ACEOF
7083c021 15651if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15652 ac_cv_lib_rt_nanosleep=yes
15653else
7083c021 15654 ac_cv_lib_rt_nanosleep=no
212380e3 15655fi
7083c021
AC
15656rm -f core conftest.err conftest.$ac_objext \
15657 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
15658LIBS=$ac_check_lib_save_LIBS
15659fi
7083c021
AC
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15661$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 15662if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
15663 LIBS="${LIBS} -lrt"
15664else
7083c021
AC
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
15666$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 15667if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 15668 $as_echo_n "(cached) " >&6
212380e3
AC
15669else
15670 ac_check_lib_save_LIBS=$LIBS
15671LIBS="-lposix4 $LIBS"
7083c021 15672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15673/* end confdefs.h. */
15674
631ef239
AC
15675/* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply. */
212380e3
AC
15678#ifdef __cplusplus
15679extern "C"
15680#endif
212380e3
AC
15681char nanosleep ();
15682int
15683main ()
15684{
631ef239 15685return nanosleep ();
212380e3
AC
15686 ;
15687 return 0;
15688}
15689_ACEOF
7083c021 15690if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15691 ac_cv_lib_posix4_nanosleep=yes
15692else
7083c021 15693 ac_cv_lib_posix4_nanosleep=no
212380e3 15694fi
7083c021
AC
15695rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
15697LIBS=$ac_check_lib_save_LIBS
15698fi
7083c021
AC
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
15700$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 15701if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
15702 LIBS="${LIBS} -lposix4"
15703
15704fi
15705
15706fi
15707
15708fi
15709
15710if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
15711then
7083c021
AC
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
15713$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
15714else
15715
7083c021 15716$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
15717
15718fi
15719
7083c021
AC
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15721$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 15722# Check whether --enable-openssl was given.
7083c021 15723if test "${enable_openssl+set}" = set; then :
631ef239 15724 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
15725else
15726 cf_enable_openssl="auto"
631ef239
AC
15727fi
15728
212380e3
AC
15729
15730if test "$cf_enable_openssl" != "no" ; then
15731 cf_openssl_basedir=""
15732 if test "$cf_enable_openssl" != "auto" &&
15733 test "$cf_enable_openssl" != "yes" ; then
15734 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
15735 else
15736 for dirs in /usr/local/ssl /usr/pkg /usr/local \
15737 /usr/local/openssl ; do
15738 if test -f "${dirs}/include/openssl/opensslv.h" ; then
15739 cf_openssl_basedir="${dirs}"
15740 break
15741 fi
15742 done
15743 unset dirs
15744 fi
15745 if test ! -z "$cf_openssl_basedir"; then
15746 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
15747 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
15748 SSL_LIBS="-L${cf_openssl_basedir}/lib"
15749 else
15750 cf_openssl_basedir=""
15751 fi
15752 else
15753 if test -f "/usr/include/openssl/opensslv.h" ; then
15754 cf_openssl_basedir="/usr"
15755 fi
15756 fi
15757
15758 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15760$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
15761 cf_enable_openssl="yes"
15762 else
7083c021
AC
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
15764$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
15765 cf_enable_openssl="no"
15766 fi
15767 unset cf_openssl_basedir
15768else
7083c021
AC
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15770$as_echo "disabled" >&6; }
212380e3
AC
15771fi
15772
15773save_CPPFLAGS="$CPPFLAGS"
15774CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
15775save_LIBS="$LIBS"
15776LIBS="$LIBS $SSL_LIBS"
15777if test "$cf_enable_openssl" != no; then
7083c021
AC
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
15779$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
15780 if test "$cross_compiling" = yes; then :
212380e3
AC
15781 cf_openssl_version_ok=no
15782else
7083c021 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15784/* end confdefs.h. */
15785#include <openssl/opensslv.h>
15786 #include <stdlib.h>
15787int
15788main ()
15789{
15790if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
15791 exit(0); else exit(1);
15792 ;
15793 return 0;
15794}
15795_ACEOF
7083c021 15796if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
15797 cf_openssl_version_ok=yes
15798else
7083c021 15799 cf_openssl_version_ok=no
212380e3 15800fi
7083c021
AC
15801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15802 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
15803fi
15804
631ef239 15805
212380e3 15806 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15808$as_echo "found" >&6; }
212380e3
AC
15809
15810 ENCSPEED=encspeed
15811
15812
15813 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15815$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 15816if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 15817 $as_echo_n "(cached) " >&6
212380e3
AC
15818else
15819 ac_check_lib_save_LIBS=$LIBS
15820LIBS="-lcrypto $LIBS"
7083c021 15821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15822/* end confdefs.h. */
15823
631ef239
AC
15824/* Override any GCC internal prototype to avoid an error.
15825 Use char because int might match the return type of a GCC
15826 builtin and then its argument prototype would still apply. */
212380e3
AC
15827#ifdef __cplusplus
15828extern "C"
15829#endif
212380e3
AC
15830char RSA_free ();
15831int
15832main ()
15833{
631ef239 15834return RSA_free ();
212380e3
AC
15835 ;
15836 return 0;
15837}
15838_ACEOF
7083c021 15839if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15840 ac_cv_lib_crypto_RSA_free=yes
15841else
7083c021 15842 ac_cv_lib_crypto_RSA_free=no
212380e3 15843fi
7083c021
AC
15844rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
15846LIBS=$ac_check_lib_save_LIBS
15847fi
7083c021
AC
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15849$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 15850if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
15851 cat >>confdefs.h <<_ACEOF
15852#define HAVE_LIBCRYPTO 1
15853_ACEOF
15854
15855 LIBS="-lcrypto $LIBS"
15856
15857fi
15858
15859 SSL_LIBS="$SSL_LIBS -lcrypto"
15860 SSL_SRCS_ENABLE='$(SSL_SRCS)'
15861 else
7083c021
AC
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15863$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
15864 fi
15865fi
15866
15867CPPFLAGS="$save_CPPFLAGS"
15868LIBS="$save_LIBS"
15869
15870
15871
15872
15873
631ef239 15874# Check whether --with-zlib-path was given.
7083c021 15875if test "${with_zlib_path+set}" = set; then :
631ef239
AC
15876 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
15877fi
212380e3 15878
7083c021
AC
15879
15880# Check whether --enable-zlib was given.
15881if test "${enable_zlib+set}" = set; then :
15882 enableval=$enable_zlib; zlib=$enableval
212380e3 15883else
7083c021 15884 zlib=yes
212380e3 15885fi
212380e3 15886
212380e3 15887
7083c021
AC
15888if test "$zlib" = yes; then
15889
15890ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 15891if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
15892
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
15894$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 15895if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 15896 $as_echo_n "(cached) " >&6
212380e3
AC
15897else
15898 ac_check_lib_save_LIBS=$LIBS
15899LIBS="-lz $LIBS"
7083c021 15900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
15901/* end confdefs.h. */
15902
631ef239
AC
15903/* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
212380e3
AC
15906#ifdef __cplusplus
15907extern "C"
15908#endif
212380e3
AC
15909char zlibVersion ();
15910int
15911main ()
15912{
631ef239 15913return zlibVersion ();
212380e3
AC
15914 ;
15915 return 0;
15916}
15917_ACEOF
7083c021 15918if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
15919 ac_cv_lib_z_zlibVersion=yes
15920else
7083c021 15921 ac_cv_lib_z_zlibVersion=no
212380e3 15922fi
7083c021
AC
15923rm -f core conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
15925LIBS=$ac_check_lib_save_LIBS
15926fi
7083c021
AC
15927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
15928$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 15929if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
15930
15931 ZLIB_LD=-lz
15932
15933
7083c021 15934$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
15935
15936
15937else
15938 zlib=no
15939fi
15940
15941
15942else
15943 zlib=no
15944fi
15945
15946
15947
497e30a0
LS
15948fi
15949
a6ef3156
LS
15950
15951# Check whether --with-shared-sqlite was given.
15952if test "${with_shared_sqlite+set}" = set; then :
15953 withval=$with_shared_sqlite; shared_sqlite=$withval
497e30a0
LS
15954else
15955 shared_sqlite=no
15956fi
15957
15958
15959if test "$shared_sqlite" = yes; then
15960
cf1001a7 15961
a5471f24
LS
15962
15963
15964
15965
15966
15967if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15968 if test -n "$ac_tool_prefix"; then
15969 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15970set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972$as_echo_n "checking for $ac_word... " >&6; }
15973if ${ac_cv_path_PKG_CONFIG+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975else
15976 case $PKG_CONFIG in
15977 [\\/]* | ?:[\\/]*)
15978 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15979 ;;
15980 *)
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982for as_dir in $PATH
15983do
15984 IFS=$as_save_IFS
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990 break 2
15991 fi
15992done
15993 done
15994IFS=$as_save_IFS
15995
15996 ;;
cf1001a7 15997esac
a5471f24
LS
15998fi
15999PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16000if test -n "$PKG_CONFIG"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16002$as_echo "$PKG_CONFIG" >&6; }
16003else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005$as_echo "no" >&6; }
16006fi
cf1001a7 16007
497e30a0 16008
a5471f24
LS
16009fi
16010if test -z "$ac_cv_path_PKG_CONFIG"; then
16011 ac_pt_PKG_CONFIG=$PKG_CONFIG
16012 # Extract the first word of "pkg-config", so it can be a program name with args.
16013set dummy pkg-config; ac_word=$2
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16015$as_echo_n "checking for $ac_word... " >&6; }
16016if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
497e30a0
LS
16017 $as_echo_n "(cached) " >&6
16018else
a5471f24
LS
16019 case $ac_pt_PKG_CONFIG in
16020 [\\/]* | ?:[\\/]*)
16021 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16022 ;;
16023 *)
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027 IFS=$as_save_IFS
16028 test -z "$as_dir" && as_dir=.
16029 for ac_exec_ext in '' $ac_executable_extensions; do
16030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16033 break 2
16034 fi
16035done
16036 done
16037IFS=$as_save_IFS
497e30a0 16038
a5471f24
LS
16039 ;;
16040esac
16041fi
16042ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16043if test -n "$ac_pt_PKG_CONFIG"; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16045$as_echo "$ac_pt_PKG_CONFIG" >&6; }
497e30a0 16046else
a5471f24
LS
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048$as_echo "no" >&6; }
497e30a0 16049fi
a5471f24
LS
16050
16051 if test "x$ac_pt_PKG_CONFIG" = x; then
16052 PKG_CONFIG=""
16053 else
16054 case $cross_compiling:$ac_tool_warned in
16055yes:)
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16058ac_tool_warned=yes ;;
16059esac
16060 PKG_CONFIG=$ac_pt_PKG_CONFIG
16061 fi
16062else
16063 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
497e30a0 16064fi
497e30a0 16065
a5471f24
LS
16066fi
16067if test -n "$PKG_CONFIG"; then
16068 _pkg_min_version=0.9.0
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16070$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16071 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073$as_echo "yes" >&6; }
16074 else
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076$as_echo "no" >&6; }
16077 PKG_CONFIG=""
16078 fi
16079fi
16080
16081pkg_failed=no
16082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16083$as_echo_n "checking for SQLITE... " >&6; }
497e30a0 16084
a5471f24
LS
16085if test -n "$SQLITE_CFLAGS"; then
16086 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16087 elif test -n "$PKG_CONFIG"; then
16088 if test -n "$PKG_CONFIG" && \
16089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16090 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16091 ac_status=$?
16092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16093 test $ac_status = 0; }; then
16094 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16095 test "x$?" != "x0" && pkg_failed=yes
497e30a0 16096else
a5471f24
LS
16097 pkg_failed=yes
16098fi
16099 else
16100 pkg_failed=untried
16101fi
16102if test -n "$SQLITE_LIBS"; then
16103 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16104 elif test -n "$PKG_CONFIG"; then
16105 if test -n "$PKG_CONFIG" && \
16106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16107 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16108 ac_status=$?
16109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16110 test $ac_status = 0; }; then
16111 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16112 test "x$?" != "x0" && pkg_failed=yes
16113else
16114 pkg_failed=yes
16115fi
16116 else
16117 pkg_failed=untried
497e30a0
LS
16118fi
16119
16120
a5471f24
LS
16121
16122if test $pkg_failed = yes; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124$as_echo "no" >&6; }
16125
16126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16127 _pkg_short_errors_supported=yes
497e30a0 16128else
a5471f24 16129 _pkg_short_errors_supported=no
497e30a0 16130fi
a5471f24
LS
16131 if test $_pkg_short_errors_supported = yes; then
16132 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16133 else
16134 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16135 fi
16136 # Put the nasty error message in config.log where it belongs
16137 echo "$SQLITE_PKG_ERRORS" >&5
497e30a0 16138
a5471f24
LS
16139 shared_sqlite=no
16140elif test $pkg_failed = untried; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142$as_echo "no" >&6; }
16143 shared_sqlite=no
16144else
16145 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
16146 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16148$as_echo "yes" >&6; }
497e30a0 16149
a5471f24 16150 shared_sqlite=yes
497e30a0 16151
74ab6be0 16152fi
a5471f24 16153fi
74ab6be0
LS
16154
16155if test "$shared_sqlite" = no; then
c52df125 16156 SQLITE_OBJ='sqlite3.$(OBJEXT)'
212380e3
AC
16157fi
16158
a5471f24 16159SQLITE_LD="$SQLITE_LIBS"
212380e3 16160
a5471f24 16161SQLITE_INCLUDES="$SQLITE_CFLAGS"
cf1001a7
LS
16162
16163
cf1001a7
LS
16164
16165
212380e3 16166
631ef239 16167# Check whether --with-confdir was given.
7083c021 16168if test "${with_confdir+set}" = set; then :
634d4aad 16169 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 16170else
9f9b7042 16171 confdir='${sysconfdir}'
634d4aad
NPB
16172fi
16173
212380e3
AC
16174
16175 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 16177 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 16178 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 16179 ac_define_dir_counter=0
9f9b7042
NPB
16180 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16181 last_ac_define_dir="$ac_define_dir"
16182 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
16183 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16184 if test "x$ac_define_dir_counter" = x128; then :
16185 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
16186 break
16187fi
9f9b7042 16188 done
212380e3
AC
16189 ETC_DIR="$ac_define_dir"
16190
16191
16192cat >>confdefs.h <<_ACEOF
16193#define ETC_DIR "$ac_define_dir"
16194_ACEOF
16195
16196
16197
16198
7083c021
AC
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
16200$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 16201
631ef239 16202# Check whether --with-logdir was given.
7083c021 16203if test "${with_logdir+set}" = set; then :
631ef239 16204 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16206$as_echo "yes" >&6; }
212380e3 16207else
9f9b7042
NPB
16208 if test "x$enable_fhs_paths" = "xyes"; then :
16209 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
16210else
16211 logdir='${prefix}/logs'
16212fi
7083c021
AC
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214$as_echo "no" >&6; }
9f9b7042
NPB
16215fi
16216
212380e3
AC
16217
16218 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
16220 last_ac_define_dir=`eval echo $logdir`
16221 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 16222 ac_define_dir_counter=0
9f9b7042
NPB
16223 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16224 last_ac_define_dir="$ac_define_dir"
16225 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
16226 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16227 if test "x$ac_define_dir_counter" = x128; then :
16228 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
16229 break
16230fi
9f9b7042 16231 done
212380e3
AC
16232 LOG_DIR="$ac_define_dir"
16233
16234
16235cat >>confdefs.h <<_ACEOF
16236#define LOG_DIR "$ac_define_dir"
16237_ACEOF
16238
16239
16240
16241
16242 logdir=`(
16243 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16244 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16245 eval echo \""$logdir"\"
16246 )`
16247
16248
16249
212380e3 16250
7083c021
AC
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
16252$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 16253
631ef239 16254# Check whether --with-helpdir was given.
7083c021 16255if test "${with_helpdir+set}" = set; then :
631ef239 16256 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16258$as_echo "yes" >&6; }
212380e3 16259else
9f9b7042
NPB
16260 if test "x$enable_fhs_paths" = "xyes"; then :
16261 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
16262else
16263 helpdir='${prefix}/help'
16264fi
7083c021
AC
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266$as_echo "no" >&6; }
9f9b7042
NPB
16267fi
16268
212380e3
AC
16269
16270 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
16272 last_ac_define_dir=`eval echo $helpdir`
16273 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 16274 ac_define_dir_counter=0
9f9b7042
NPB
16275 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16276 last_ac_define_dir="$ac_define_dir"
16277 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
16278 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16279 if test "x$ac_define_dir_counter" = x128; then :
16280 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
16281 break
16282fi
9f9b7042 16283 done
212380e3
AC
16284 HELP_DIR="$ac_define_dir"
16285
16286
16287cat >>confdefs.h <<_ACEOF
16288#define HELP_DIR "$ac_define_dir"
16289_ACEOF
16290
16291
16292
16293
16294 helpdir=`(
16295 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16296 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16297 eval echo \""$helpdir"\"
16298 )`
16299
16300
16301
212380e3 16302
7083c021
AC
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
16304$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 16305
631ef239 16306# Check whether --with-moduledir was given.
7083c021 16307if test "${with_moduledir+set}" = set; then :
631ef239 16308 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16310$as_echo "yes" >&6; }
9f9b7042
NPB
16311else
16312 if test "x$enable_fhs_paths" = "xyes"; then :
16313 moduledir='${pkglibdir}/modules'
16314else
16315 moduledir='${prefix}/modules'
16316fi
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318$as_echo "no" >&6; }
16319
16320fi
16321
212380e3
AC
16322
16323 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
16325 last_ac_define_dir=`eval echo $moduledir`
16326 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 16327 ac_define_dir_counter=0
9f9b7042
NPB
16328 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16329 last_ac_define_dir="$ac_define_dir"
16330 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
16331 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16332 if test "x$ac_define_dir_counter" = x128; then :
16333 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
16334 break
16335fi
9f9b7042 16336 done
212380e3
AC
16337 MODULE_DIR="$ac_define_dir"
16338
16339
16340cat >>confdefs.h <<_ACEOF
16341#define MODULE_DIR "$ac_define_dir"
16342_ACEOF
16343
16344
16345
16346
16347 moduledir=`(
16348 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16349 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16350 eval echo \""$moduledir"\"
16351 )`
16352
16353
9f9b7042
NPB
16354
16355
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
16357$as_echo_n "checking whether or modify rundir... " >&6; }
16358
16359# Check whether --with-rundir was given.
16360if test "${with_rundir+set}" = set; then :
16361 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362$as_echo "yes" >&6; }
16363 rundir=`echo $withval | sed 's/\/$//'`
212380e3 16364else
9f9b7042 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 16366$as_echo "no" >&6; }
9f9b7042
NPB
16367 if test "x$enable_fhs_paths" = "xyes"; then :
16368 rundir='${prefix}/run'
16369else
16370 rundir='${sysconfdir}'
16371fi
16372fi
16373
16374
212380e3
AC
16375
16376 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
16378 last_ac_define_dir=`eval echo $pkgrundir`
16379 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 16380 ac_define_dir_counter=0
9f9b7042
NPB
16381 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16382 last_ac_define_dir="$ac_define_dir"
16383 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
16384 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16385 if test "x$ac_define_dir_counter" = x128; then :
16386 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
16387 break
16388fi
9f9b7042
NPB
16389 done
16390 PKGRUNDIR="$ac_define_dir"
212380e3
AC
16391
16392
16393cat >>confdefs.h <<_ACEOF
9f9b7042 16394#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
16395_ACEOF
16396
16397
16398
9f9b7042
NPB
16399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
16400$as_echo_n "checking for program prefix... " >&6; }
212380e3 16401
9f9b7042
NPB
16402# Check whether --with-program-prefix was given.
16403if test "${with_program_prefix+set}" = set; then :
16404 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
16405else
16406 with_program_prefix=
16407fi
212380e3 16408
9f9b7042
NPB
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
16410$as_echo "\"$with_program_prefix\"" >&6; }
16411PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
16412
16413
9f9b7042
NPB
16414cat >>confdefs.h <<_ACEOF
16415#define PROGRAM_PREFIX "$with_program_prefix"
16416_ACEOF
631ef239 16417
7083c021 16418
b6d0720c
AC
16419
16420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
16421$as_echo_n "checking whether custom branding is requested... " >&6; }
16422
16423# Check whether --with-custom-branding was given.
16424if test "${with_custom_branding+set}" = set; then :
16425 withval=$with_custom_branding; BRANDING_NAME=$withval
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16427$as_echo "yes" >&6; }
16428else
16429 BRANDING_NAME=$PACKAGE_NAME
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431$as_echo "no" >&6; }
16432
16433fi
16434
16435
16436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
16437$as_echo_n "checking whether a custom version is requested... " >&6; }
16438
16439# Check whether --with-custom-version was given.
16440if test "${with_custom_version+set}" = set; then :
16441 withval=$with_custom_version; BRANDING_VERSION=$withval
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16443$as_echo "yes" >&6; }
16444else
16445 BRANDING_VERSION=$PACKAGE_VERSION
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16447$as_echo "no" >&6; }
16448
16449fi
16450
16451
16452
16453cat >>confdefs.h <<_ACEOF
16454#define BRANDING_NAME "$BRANDING_NAME"
16455_ACEOF
16456
16457
16458cat >>confdefs.h <<_ACEOF
16459#define BRANDING_VERSION "$BRANDING_VERSION"
16460_ACEOF
16461
16462
f5493691
AC
16463if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
16464
16465$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
16466
16467fi
16468
212380e3 16469
631ef239 16470# Check whether --enable-assert was given.
7083c021 16471if test "${enable_assert+set}" = set; then :
631ef239 16472 enableval=$enable_assert; assert=$enableval
212380e3
AC
16473else
16474 assert=no
631ef239
AC
16475fi
16476
212380e3
AC
16477
16478if test "$assert" = no; then
16479
7083c021 16480$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
16481
16482elif test "$assert" = soft; then
16483
7083c021 16484$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
16485
16486
7083c021 16487$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
16488
16489elif test "$assert" = yes; then
16490 assert = "hard";
16491fi
16492
7083c021
AC
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
16494$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 16495# Check whether --enable-iodebug was given.
7083c021 16496if test "${enable_iodebug+set}" = set; then :
631ef239 16497 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
16498else
16499 iodebug=no
631ef239
AC
16500fi
16501
212380e3
AC
16502
16503if test "$iodebug" = yes; then
16504
7083c021 16505$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 16506
7083c021
AC
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16508$as_echo "yes" >&6; }
212380e3 16509else
7083c021
AC
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511$as_echo "no" >&6; }
212380e3
AC
16512fi
16513
16514
7083c021
AC
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
16516$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 16517# Check whether --enable-profile was given.
7083c021 16518if test "${enable_profile+set}" = set; then :
631ef239 16519 enableval=$enable_profile; profile=$enableval
212380e3
AC
16520else
16521 profile=no
631ef239
AC
16522fi
16523
212380e3
AC
16524
16525if test "$profile" = yes; then
16526 if test "$ac_cv_c_compiler_gnu" = yes; then
16527 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
16529$as_echo "yes, adding -pg" >&6; }
212380e3 16530
7083c021 16531$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
16532
16533 else
7083c021
AC
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
16535$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
16536 fi
16537else
7083c021
AC
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16539$as_echo "no" >&6; }
212380e3
AC
16540fi
16541
631ef239 16542# Check whether --enable-balloc was given.
7083c021 16543if test "${enable_balloc+set}" = set; then :
631ef239 16544 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
16545else
16546 balloc=yes
631ef239
AC
16547fi
16548
212380e3
AC
16549
16550if test "$balloc" = no; then
16551
7083c021 16552$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
16553
16554fi
16555
631ef239 16556# Check whether --enable-small-net was given.
7083c021 16557if test "${enable_small_net+set}" = set; then :
631ef239 16558 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
16559else
16560 small_net=no
631ef239
AC
16561fi
16562
212380e3
AC
16563
16564if test "$small_net" = yes; then
16565
7083c021 16566$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
16567
16568
7083c021 16569$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16570
16571
7083c021 16572$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16573
16574
7083c021 16575$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16576
16577
7083c021 16578$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16579
16580
7083c021 16581$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
16582
16583
7083c021 16584$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16585
16586
7083c021 16587$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16588
16589
7083c021 16590$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16591
16592
7083c021 16593$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16594
16595
7083c021 16596$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16597
16598
7083c021 16599$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16600
16601
7083c021 16602$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
16603
16604
7083c021 16605$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 16606
f589ec6f 16607
7083c021 16608$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
16609
16610
7083c021 16611$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 16612
212380e3
AC
16613else
16614
7083c021 16615$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
16616
16617
7083c021 16618$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
16619
16620
7083c021 16621$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
16622
16623
7083c021 16624$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
16625
16626
7083c021 16627$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
16628
16629
7083c021 16630$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16631
16632
7083c021 16633$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
16634
16635
7083c021 16636$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
16637
16638
7083c021 16639$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
16640
16641
7083c021 16642$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
16643
16644
7083c021 16645$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
16646
16647
7083c021 16648$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
16649
16650
7083c021 16651$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
16652
16653
7083c021 16654$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 16655
f589ec6f 16656
7083c021 16657$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
16658
16659
7083c021 16660$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 16661
212380e3
AC
16662fi
16663
16664
631ef239 16665# Check whether --with-nicklen was given.
7083c021 16666if test "${with_nicklen+set}" = set; then :
631ef239 16667 withval=$with_nicklen;
aa769893 16668 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 16669 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 16670 fi
cf533739 16671 if test $withval -gt 50; then
212380e3 16672 NICKLEN=50
7083c021
AC
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
16674$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
16675 elif test $withval -lt 9; then
16676 NICKLEN=9
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
16678$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
16679 else
16680 NICKLEN="$withval"
16681 fi
16682
16683else
cf533739 16684 NICKLEN=31
631ef239 16685fi
212380e3
AC
16686
16687
212380e3 16688
631ef239 16689# Check whether --with-topiclen was given.
7083c021 16690if test "${with_topiclen+set}" = set; then :
631ef239 16691 withval=$with_topiclen;
212380e3
AC
16692 if test $withval -ge 390; then
16693 TOPICLEN=390
7083c021
AC
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
16695$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
16696 else
16697 TOPICLEN=$withval
16698 fi
16699
16700else
16701 TOPICLEN=390
212380e3
AC
16702fi
16703
212380e3
AC
16704
16705
16706cat >>confdefs.h <<_ACEOF
16707#define TOPICLEN ${TOPICLEN}
16708_ACEOF
16709
16710
16711cat >>confdefs.h <<_ACEOF
16712#define NICKLEN (${NICKLEN}+1)
16713_ACEOF
16714
16715
1a82970f
JT
16716# rpath, for finding libratbox.so at run time
16717hold_ldflags=$LDFLAGS
7083c021
AC
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
16719$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 16720LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 16721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
16722/* end confdefs.h. */
16723
16724int
16725main ()
16726{
16727int i;
16728 ;
16729 return 0;
16730}
16731_ACEOF
7083c021 16732if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
16733 found=yes
16734else
7083c021 16735 found=no
1a82970f 16736fi
7083c021
AC
16737rm -f core conftest.err conftest.$ac_objext \
16738 conftest$ac_exeext conftest.$ac_ext
1a82970f 16739LDFLAGS=$hold_ldflags
7083c021
AC
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16741$as_echo "$found" >&6; }
1a82970f
JT
16742if test "$found" = yes; then
16743 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
16744fi
16745
212380e3
AC
16746# This must be down here, or it will mess up checks like the ones
16747# for -Wl,-export-dynamic
16748# -- jilles
d2c5159a 16749CWARNS=""
631ef239 16750# Check whether --enable-warnings was given.
7083c021 16751if test "${enable_warnings+set}" = set; then :
631ef239 16752 enableval=$enable_warnings;
212380e3
AC
16753IRC_CFLAGS="$IRC_CFLAGS -O0"
16754CFLAGS="$IRC_CFLAGS"
16755
16756
7083c021
AC
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
16758$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
16759 if test "${GCC-no}" = yes
16760 then
b6d0720c 16761 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 16762 $as_echo_n "(cached) " >&6
212380e3
AC
16763else
16764
16765 oldcflags="${CFLAGS-}"
16766 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16768/* end confdefs.h. */
16769
16770#include <string.h>
16771#include <stdio.h>
16772int main(void);
16773
16774int
16775main ()
16776{
16777
b1fc1658 16778 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
16779
16780 ;
16781 return 0;
16782}
16783_ACEOF
7083c021 16784if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
16785 charybdis_cv_c_gcc_w_all=yes
16786else
7083c021 16787 charybdis_cv_c_gcc_w_all=no
212380e3 16788fi
631ef239 16789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16790 CFLAGS="${oldcflags}"
16791fi
16792
16793 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
16794 CWARNS="${CWARNS}-Wall "
7083c021
AC
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16796$as_echo "ok" >&6; }
212380e3
AC
16797 else
16798 charybdis_cv_c_gcc_w_all=''
7083c021
AC
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800$as_echo "no" >&6; }
212380e3
AC
16801 fi
16802 else
7083c021
AC
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804$as_echo "no" >&6; }
212380e3
AC
16805 fi
16806
16807
7083c021
AC
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
16809$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
16810 if test "${GCC-no}" = yes
16811 then
b6d0720c 16812 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 16813 $as_echo_n "(cached) " >&6
212380e3
AC
16814else
16815
16816 oldcflags="${CFLAGS-}"
16817 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16819/* end confdefs.h. */
16820
16821#include <string.h>
16822#include <stdio.h>
16823int main(void);
16824
16825int
16826main ()
16827{
16828
b1fc1658 16829 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
16830
16831 ;
16832 return 0;
16833}
16834_ACEOF
7083c021 16835if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
16836 charybdis_cv_c_gcc_w_pointer_arith=yes
16837else
7083c021 16838 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 16839fi
631ef239 16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16841 CFLAGS="${oldcflags}"
16842fi
16843
16844 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
16845 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16847$as_echo "ok" >&6; }
212380e3
AC
16848 else
16849 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851$as_echo "no" >&6; }
212380e3
AC
16852 fi
16853 else
7083c021
AC
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855$as_echo "no" >&6; }
212380e3
AC
16856 fi
16857
16858
7083c021
AC
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
16860$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
16861 if test "${GCC-no}" = yes
16862 then
b6d0720c 16863 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 16864 $as_echo_n "(cached) " >&6
212380e3
AC
16865else
16866
16867 oldcflags="${CFLAGS-}"
16868 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16870/* end confdefs.h. */
16871
16872#include <string.h>
16873#include <stdio.h>
16874int main(void);
16875
16876int
16877main ()
16878{
16879
b1fc1658 16880 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
16881
16882 ;
16883 return 0;
16884}
16885_ACEOF
7083c021 16886if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
16887 charybdis_cv_c_gcc_w_implicit=yes
16888else
7083c021 16889 charybdis_cv_c_gcc_w_implicit=no
212380e3 16890fi
631ef239 16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16892 CFLAGS="${oldcflags}"
16893fi
16894
16895 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
16896 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16898$as_echo "ok" >&6; }
212380e3
AC
16899 else
16900 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16902$as_echo "no" >&6; }
212380e3
AC
16903 fi
16904 else
7083c021
AC
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16906$as_echo "no" >&6; }
212380e3
AC
16907 fi
16908
16909
7083c021
AC
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
16911$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
16912 if test "${GCC-no}" = yes
16913 then
b6d0720c 16914 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 16915 $as_echo_n "(cached) " >&6
212380e3
AC
16916else
16917
16918 oldcflags="${CFLAGS-}"
16919 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16921/* end confdefs.h. */
16922
16923#include <string.h>
16924#include <stdio.h>
16925int main(void);
16926
16927int
16928main ()
16929{
16930
b1fc1658 16931 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
16932
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
16938 charybdis_cv_c_gcc_w_cast_align=yes
16939else
7083c021 16940 charybdis_cv_c_gcc_w_cast_align=no
212380e3 16941fi
631ef239 16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16943 CFLAGS="${oldcflags}"
16944fi
16945
16946 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
16947 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16949$as_echo "ok" >&6; }
212380e3
AC
16950 else
16951 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953$as_echo "no" >&6; }
212380e3
AC
16954 fi
16955 else
7083c021
AC
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957$as_echo "no" >&6; }
212380e3
AC
16958 fi
16959
16960
7083c021
AC
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
16962$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
16963 if test "${GCC-no}" = yes
16964 then
b6d0720c 16965 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 16966 $as_echo_n "(cached) " >&6
212380e3
AC
16967else
16968
16969 oldcflags="${CFLAGS-}"
16970 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
16972/* end confdefs.h. */
16973
16974#include <string.h>
16975#include <stdio.h>
16976int main(void);
16977
16978int
16979main ()
16980{
16981
b1fc1658 16982 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
16983
16984 ;
16985 return 0;
16986}
16987_ACEOF
7083c021 16988if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
16989 charybdis_cv_c_gcc_w_cast_qual=yes
16990else
7083c021 16991 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 16992fi
631ef239 16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
16994 CFLAGS="${oldcflags}"
16995fi
16996
16997 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
16998 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17000$as_echo "ok" >&6; }
212380e3
AC
17001 else
17002 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004$as_echo "no" >&6; }
212380e3
AC
17005 fi
17006 else
7083c021
AC
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008$as_echo "no" >&6; }
212380e3
AC
17009 fi
17010
17011
7083c021
AC
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
17013$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
17014 if test "${GCC-no}" = yes
17015 then
b6d0720c 17016 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 17017 $as_echo_n "(cached) " >&6
d2c5159a
JT
17018else
17019
17020 oldcflags="${CFLAGS-}"
17021 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
17023/* end confdefs.h. */
17024
17025#include <string.h>
17026#include <stdio.h>
17027int main(void);
17028
17029int
17030main ()
17031{
17032
17033 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17034
17035 ;
17036 return 0;
17037}
17038_ACEOF
7083c021 17039if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 17040 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 17041else
7083c021 17042 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 17043fi
d2c5159a
JT
17044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 CFLAGS="${oldcflags}"
17046fi
17047
bbe58888 17048 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 17049 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17051$as_echo "ok" >&6; }
d2c5159a 17052 else
bbe58888 17053 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055$as_echo "no" >&6; }
bbe58888
VY
17056 fi
17057 else
7083c021
AC
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17059$as_echo "no" >&6; }
bbe58888
VY
17060 fi
17061
17062
7083c021
AC
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
17064$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
17065 if test "${GCC-no}" = yes
17066 then
b6d0720c 17067 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 17068 $as_echo_n "(cached) " >&6
bbe58888
VY
17069else
17070
17071 oldcflags="${CFLAGS-}"
17072 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
17074/* end confdefs.h. */
17075
17076#include <string.h>
17077#include <stdio.h>
17078int main(void);
17079
17080int
17081main ()
17082{
17083
17084 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17085
17086 ;
17087 return 0;
17088}
17089_ACEOF
7083c021 17090if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
17091 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
17092else
7083c021 17093 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 17094fi
bbe58888
VY
17095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 CFLAGS="${oldcflags}"
17097fi
17098
17099 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
17100 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17102$as_echo "ok" >&6; }
bbe58888
VY
17103 else
17104 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17106$as_echo "no" >&6; }
d2c5159a
JT
17107 fi
17108 else
7083c021
AC
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110$as_echo "no" >&6; }
d2c5159a
JT
17111 fi
17112
17113
7083c021
AC
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
17115$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
17116 if test "${GCC-no}" = yes
17117 then
b6d0720c 17118 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 17119 $as_echo_n "(cached) " >&6
212380e3
AC
17120else
17121
17122 oldcflags="${CFLAGS-}"
17123 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17125/* end confdefs.h. */
17126
17127#include <string.h>
17128#include <stdio.h>
17129int main(void);
17130
17131int
17132main ()
17133{
17134
b1fc1658 17135 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17136
17137 ;
17138 return 0;
17139}
17140_ACEOF
7083c021 17141if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17142 charybdis_cv_c_gcc_prototypes=yes
17143else
7083c021 17144 charybdis_cv_c_gcc_prototypes=no
212380e3 17145fi
631ef239 17146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17147 CFLAGS="${oldcflags}"
17148fi
17149
17150 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
17151 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17153$as_echo "ok" >&6; }
212380e3
AC
17154 else
17155 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157$as_echo "no" >&6; }
212380e3
AC
17158 fi
17159 else
7083c021
AC
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161$as_echo "no" >&6; }
212380e3
AC
17162 fi
17163
17164
7083c021
AC
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
17166$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
17167 if test "${GCC-no}" = yes
17168 then
b6d0720c 17169 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 17170 $as_echo_n "(cached) " >&6
212380e3
AC
17171else
17172
17173 oldcflags="${CFLAGS-}"
17174 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17176/* end confdefs.h. */
17177
17178#include <string.h>
17179#include <stdio.h>
17180int main(void);
17181
17182int
17183main ()
17184{
17185
b1fc1658 17186 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17187
17188 ;
17189 return 0;
17190}
17191_ACEOF
7083c021 17192if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17193 charybdis_cv_c_gcc_parenthesis=yes
17194else
7083c021 17195 charybdis_cv_c_gcc_parenthesis=no
212380e3 17196fi
631ef239 17197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17198 CFLAGS="${oldcflags}"
17199fi
17200
17201 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
17202 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17204$as_echo "ok" >&6; }
212380e3
AC
17205 else
17206 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208$as_echo "no" >&6; }
212380e3
AC
17209 fi
17210 else
7083c021
AC
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17212$as_echo "no" >&6; }
212380e3
AC
17213 fi
17214
17215
7083c021
AC
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
17217$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
17218 if test "${GCC-no}" = yes
17219 then
b6d0720c 17220 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 17221 $as_echo_n "(cached) " >&6
212380e3
AC
17222else
17223
17224 oldcflags="${CFLAGS-}"
17225 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17227/* end confdefs.h. */
17228
17229#include <string.h>
17230#include <stdio.h>
17231int main(void);
17232
17233int
17234main ()
17235{
17236
b1fc1658 17237 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17238
17239 ;
17240 return 0;
17241}
17242_ACEOF
7083c021 17243if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17244 charybdis_cv_c_gcc_w=yes
17245else
7083c021 17246 charybdis_cv_c_gcc_w=no
212380e3 17247fi
631ef239 17248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17249 CFLAGS="${oldcflags}"
17250fi
17251
17252 if test "x$charybdis_cv_c_gcc_w" = xyes; then
17253 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17255$as_echo "ok" >&6; }
212380e3
AC
17256 else
17257 charybdis_cv_c_gcc_w=''
7083c021
AC
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259$as_echo "no" >&6; }
212380e3
AC
17260 fi
17261 else
7083c021
AC
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263$as_echo "no" >&6; }
212380e3
AC
17264 fi
17265
17266
7083c021
AC
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
17268$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
17269 if test "${GCC-no}" = yes
17270 then
b6d0720c 17271 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 17272 $as_echo_n "(cached) " >&6
212380e3
AC
17273else
17274
17275 oldcflags="${CFLAGS-}"
17276 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17278/* end confdefs.h. */
17279
17280#include <string.h>
17281#include <stdio.h>
17282int main(void);
17283
17284int
17285main ()
17286{
17287
b1fc1658 17288 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
7083c021 17294if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17295 charybdis_cv_c_gcc_w_extra=yes
17296else
7083c021 17297 charybdis_cv_c_gcc_w_extra=no
212380e3 17298fi
631ef239 17299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17300 CFLAGS="${oldcflags}"
17301fi
17302
17303 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
17304 CWARNS="${CWARNS}-Wextra "
7083c021
AC
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17306$as_echo "ok" >&6; }
212380e3
AC
17307 else
17308 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310$as_echo "no" >&6; }
212380e3
AC
17311 fi
17312 else
7083c021
AC
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314$as_echo "no" >&6; }
212380e3
AC
17315 fi
17316
17317
7083c021
AC
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
17319$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
17320 if test "${GCC-no}" = yes
17321 then
b6d0720c 17322 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 17323 $as_echo_n "(cached) " >&6
212380e3
AC
17324else
17325
17326 oldcflags="${CFLAGS-}"
17327 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17329/* end confdefs.h. */
17330
17331#include <string.h>
17332#include <stdio.h>
17333int main(void);
17334
17335int
17336main ()
17337{
17338
b1fc1658 17339 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17340
17341 ;
17342 return 0;
17343}
17344_ACEOF
7083c021 17345if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17346 charybdis_cv_c_gcc_w_shadow=yes
17347else
7083c021 17348 charybdis_cv_c_gcc_w_shadow=no
212380e3 17349fi
631ef239 17350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17351 CFLAGS="${oldcflags}"
17352fi
17353
17354 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
17355 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17357$as_echo "ok" >&6; }
212380e3
AC
17358 else
17359 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17361$as_echo "no" >&6; }
212380e3
AC
17362 fi
17363 else
7083c021
AC
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365$as_echo "no" >&6; }
212380e3
AC
17366 fi
17367
17368
7083c021
AC
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
17370$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
17371 if test "${GCC-no}" = yes
17372 then
b6d0720c 17373 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 17374 $as_echo_n "(cached) " >&6
212380e3
AC
17375else
17376
17377 oldcflags="${CFLAGS-}"
17378 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17380/* end confdefs.h. */
17381
17382#include <string.h>
17383#include <stdio.h>
17384int main(void);
17385
17386int
17387main ()
17388{
17389
b1fc1658 17390 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17391
17392 ;
17393 return 0;
17394}
17395_ACEOF
7083c021 17396if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17397 charybdis_cv_c_gcc_w_missing_noreturn=yes
17398else
7083c021 17399 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 17400fi
631ef239 17401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17402 CFLAGS="${oldcflags}"
17403fi
17404
17405 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
17406 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17408$as_echo "ok" >&6; }
212380e3
AC
17409 else
17410 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412$as_echo "no" >&6; }
212380e3
AC
17413 fi
17414 else
7083c021
AC
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416$as_echo "no" >&6; }
212380e3
AC
17417 fi
17418
17419
7083c021
AC
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
17421$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
17422 if test "${GCC-no}" = yes
17423 then
b6d0720c 17424 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 17425 $as_echo_n "(cached) " >&6
212380e3
AC
17426else
17427
17428 oldcflags="${CFLAGS-}"
17429 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17431/* end confdefs.h. */
17432
17433#include <string.h>
17434#include <stdio.h>
17435int main(void);
17436
17437int
17438main ()
17439{
17440
b1fc1658 17441 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17442
17443 ;
17444 return 0;
17445}
17446_ACEOF
7083c021 17447if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17448 charybdis_cv_c_gcc_w_undef=yes
17449else
7083c021 17450 charybdis_cv_c_gcc_w_undef=no
212380e3 17451fi
631ef239 17452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17453 CFLAGS="${oldcflags}"
17454fi
17455
17456 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
17457 CWARNS="${CWARNS}-Wundef "
7083c021
AC
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17459$as_echo "ok" >&6; }
212380e3
AC
17460 else
17461 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17463$as_echo "no" >&6; }
212380e3
AC
17464 fi
17465 else
7083c021
AC
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467$as_echo "no" >&6; }
212380e3
AC
17468 fi
17469
17470
7083c021
AC
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
17472$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
17473 if test "${GCC-no}" = yes
17474 then
b6d0720c 17475 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 17476 $as_echo_n "(cached) " >&6
212380e3
AC
17477else
17478
17479 oldcflags="${CFLAGS-}"
17480 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17482/* end confdefs.h. */
17483
17484#include <string.h>
17485#include <stdio.h>
17486int main(void);
17487
17488int
17489main ()
17490{
17491
b1fc1658 17492 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17493
17494 ;
17495 return 0;
17496}
17497_ACEOF
7083c021 17498if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17499 charybdis_cv_c_gcc_w_packed=yes
17500else
7083c021 17501 charybdis_cv_c_gcc_w_packed=no
212380e3 17502fi
631ef239 17503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17504 CFLAGS="${oldcflags}"
17505fi
17506
17507 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
17508 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17510$as_echo "ok" >&6; }
212380e3
AC
17511 else
17512 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17514$as_echo "no" >&6; }
212380e3
AC
17515 fi
17516 else
7083c021
AC
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518$as_echo "no" >&6; }
212380e3
AC
17519 fi
17520
17521
7083c021
AC
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
17523$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
17524 if test "${GCC-no}" = yes
17525 then
b6d0720c 17526 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 17527 $as_echo_n "(cached) " >&6
212380e3
AC
17528else
17529
17530 oldcflags="${CFLAGS-}"
17531 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17533/* end confdefs.h. */
17534
17535#include <string.h>
17536#include <stdio.h>
17537int main(void);
17538
17539int
17540main ()
17541{
17542
b1fc1658 17543 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17544
17545 ;
17546 return 0;
17547}
17548_ACEOF
7083c021 17549if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17550 charybdis_cv_c_gcc_w_nested_externs=yes
17551else
7083c021 17552 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 17553fi
631ef239 17554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17555 CFLAGS="${oldcflags}"
17556fi
17557
17558 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
17559 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17561$as_echo "ok" >&6; }
212380e3
AC
17562 else
17563 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565$as_echo "no" >&6; }
212380e3
AC
17566 fi
17567 else
7083c021
AC
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17569$as_echo "no" >&6; }
212380e3
AC
17570 fi
17571
17572
7083c021
AC
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
17574$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
17575 if test "${GCC-no}" = yes
17576 then
b6d0720c 17577 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 17578 $as_echo_n "(cached) " >&6
212380e3
AC
17579else
17580
17581 oldcflags="${CFLAGS-}"
17582 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17584/* end confdefs.h. */
17585
17586#include <string.h>
17587#include <stdio.h>
17588int main(void);
17589
17590int
17591main ()
17592{
17593
b1fc1658 17594 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
7083c021 17600if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17601 charybdis_cv_c_gcc_w_unused=yes
17602else
7083c021 17603 charybdis_cv_c_gcc_w_unused=no
212380e3 17604fi
631ef239 17605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17606 CFLAGS="${oldcflags}"
17607fi
17608
17609 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
17610 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17612$as_echo "ok" >&6; }
212380e3
AC
17613 else
17614 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17616$as_echo "no" >&6; }
212380e3
AC
17617 fi
17618 else
7083c021
AC
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620$as_echo "no" >&6; }
212380e3
AC
17621 fi
17622
17623
7083c021
AC
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
17625$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
17626 if test "${GCC-no}" = yes
17627 then
b6d0720c 17628 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 17629 $as_echo_n "(cached) " >&6
212380e3
AC
17630else
17631
17632 oldcflags="${CFLAGS-}"
17633 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17635/* end confdefs.h. */
17636
17637#include <string.h>
17638#include <stdio.h>
17639int main(void);
17640
17641int
17642main ()
17643{
17644
b1fc1658 17645 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17646
17647 ;
17648 return 0;
17649}
17650_ACEOF
7083c021 17651if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17652 charybdis_cv_c_gcc_w_redundant_decls=yes
17653else
7083c021 17654 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 17655fi
631ef239 17656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17657 CFLAGS="${oldcflags}"
17658fi
17659
17660 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
17661 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17663$as_echo "ok" >&6; }
212380e3
AC
17664 else
17665 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17667$as_echo "no" >&6; }
212380e3
AC
17668 fi
17669 else
7083c021
AC
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671$as_echo "no" >&6; }
212380e3
AC
17672 fi
17673
17674
7083c021
AC
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
17676$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
17677 if test "${GCC-no}" = yes
17678 then
b6d0720c 17679 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 17680 $as_echo_n "(cached) " >&6
212380e3
AC
17681else
17682
17683 oldcflags="${CFLAGS-}"
17684 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17686/* end confdefs.h. */
17687
17688#include <string.h>
17689#include <stdio.h>
17690int main(void);
17691
17692int
17693main ()
17694{
17695
b1fc1658 17696 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
17697
17698 ;
17699 return 0;
17700}
17701_ACEOF
7083c021 17702if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
17703 charybdis_cv_c_gcc_w_float_equal=yes
17704else
7083c021 17705 charybdis_cv_c_gcc_w_float_equal=no
212380e3 17706fi
631ef239 17707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
17708 CFLAGS="${oldcflags}"
17709fi
17710
17711 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
17712 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17714$as_echo "ok" >&6; }
212380e3
AC
17715 else
17716 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718$as_echo "no" >&6; }
212380e3
AC
17719 fi
17720 else
7083c021
AC
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17722$as_echo "no" >&6; }
212380e3
AC
17723 fi
17724
17725
7083c021
AC
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
17727$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
17728 if test "${GCC-no}" = yes
17729 then
b6d0720c 17730 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 17731 $as_echo_n "(cached) " >&6
212380e3
AC
17732else
17733
17734 oldcflags="${CFLAGS-}"
4a584d41 17735 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
17737/* end confdefs.h. */
17738
17739#include <string.h>
17740#include <stdio.h>
17741int main(void);
17742
17743int
17744main ()
17745{
7083c021
AC
17746
17747 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17748
212380e3
AC
17749 ;
17750 return 0;
17751}
17752_ACEOF
7083c021
AC
17753if ac_fn_c_try_compile "$LINENO"; then :
17754 charybdis_cv_c_gcc_w_format=yes
212380e3 17755else
7083c021
AC
17756 charybdis_cv_c_gcc_w_format=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759 CFLAGS="${oldcflags}"
17760fi
17761
17762 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
17763 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17765$as_echo "ok" >&6; }
17766 else
17767 charybdis_cv_c_gcc_w_format=''
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770 fi
17771 else
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773$as_echo "no" >&6; }
17774 fi
17775
17776
17777IRC_CFLAGS="$CFLAGS"
212380e3 17778
212380e3 17779fi
631ef239 17780
7083c021 17781
d2c5159a
JT
17782IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
17783
212380e3
AC
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797if test "$prefix" = "NONE"; then
17798
17799cat >>confdefs.h <<_ACEOF
17800#define IRCD_PREFIX "$ac_default_prefix"
17801_ACEOF
17802
17803
17804else
17805
17806
17807 prefix=`echo $prefix | sed 's/\/$//'`
17808
17809cat >>confdefs.h <<_ACEOF
17810#define IRCD_PREFIX "$prefix"
17811_ACEOF
17812
17813
17814fi
17815
0d73e7db 17816ac_config_files="$ac_config_files Makefile authd/Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9f9b7042 17817
2eff3833 17818ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
17819
17820
17821cat >confcache <<\_ACEOF
17822# This file is a shell script that caches the results of configure
17823# tests run on this system so they can be shared between configure
17824# scripts and configure runs, see configure's option --config-cache.
17825# It is not useful on other systems. If it contains results you don't
17826# want to keep, you may remove or edit it.
17827#
17828# config.status only pays attention to the cache file if you give it
17829# the --recheck option to rerun configure.
17830#
17831# `ac_cv_env_foo' variables (set or unset) will be overridden when
17832# loading this file, other *unset* `ac_cv_foo' will be assigned the
17833# following values.
17834
17835_ACEOF
17836
17837# The following way of writing the cache mishandles newlines in values,
17838# but we know of no workaround that is simple, portable, and efficient.
631ef239 17839# So, we kill variables containing newlines.
212380e3
AC
17840# Ultrix sh set writes to stderr and can't be redirected directly,
17841# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
17842(
17843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17844 eval ac_val=\$$ac_var
17845 case $ac_val in #(
17846 *${as_nl}*)
17847 case $ac_var in #(
7083c021
AC
17848 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17849$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
17850 esac
17851 case $ac_var in #(
17852 _ | IFS | as_nl) ;; #(
7083c021
AC
17853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17854 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
17855 esac ;;
17856 esac
17857 done
17858
212380e3 17859 (set) 2>&1 |
631ef239
AC
17860 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17861 *${as_nl}ac_space=\ *)
7083c021
AC
17862 # `set' does not quote correctly, so add quotes: double-quote
17863 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
17864 sed -n \
17865 "s/'/'\\\\''/g;
17866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 17867 ;; #(
212380e3
AC
17868 *)
17869 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 17870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 17871 ;;
631ef239
AC
17872 esac |
17873 sort
17874) |
212380e3 17875 sed '
631ef239 17876 /^ac_cv_env_/b end
212380e3 17877 t clear
631ef239 17878 :clear
212380e3
AC
17879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17880 t end
631ef239
AC
17881 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17882 :end' >>confcache
17883if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17884 if test -w "$cache_file"; then
b6d0720c 17885 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17887$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
17888 if test ! -f "$cache_file" || test -h "$cache_file"; then
17889 cat confcache >"$cache_file"
17890 else
17891 case $cache_file in #(
17892 */* | ?:*)
17893 mv -f confcache "$cache_file"$$ &&
17894 mv -f "$cache_file"$$ "$cache_file" ;; #(
17895 *)
17896 mv -f confcache "$cache_file" ;;
17897 esac
17898 fi
17899 fi
212380e3 17900 else
7083c021
AC
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17902$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
17903 fi
17904fi
17905rm -f confcache
17906
17907test "x$prefix" = xNONE && prefix=$ac_default_prefix
17908# Let make expand exec_prefix.
17909test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17910
212380e3
AC
17911DEFS=-DHAVE_CONFIG_H
17912
17913ac_libobjs=
17914ac_ltlibobjs=
b6d0720c 17915U=
212380e3
AC
17916for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17917 # 1. Remove the extension, and $U if already installed.
631ef239 17918 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 17919 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
17920 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17921 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
17922 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17923 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
17924done
17925LIBOBJS=$ac_libobjs
17926
17927LTLIBOBJS=$ac_ltlibobjs
17928
17929
c52df125
AC
17930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17931$as_echo_n "checking that generated files are newer than configure... " >&6; }
17932 if test -n "$am_sleep_pid"; then
17933 # Hide warnings about reused PIDs.
17934 wait $am_sleep_pid 2>/dev/null
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17937$as_echo "done" >&6; }
c52df125
AC
17938if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17939 as_fn_error $? "conditional \"AMDEP\" was never defined.
17940Usually this means the macro was only invoked conditionally." "$LINENO" 5
17941fi
17942if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17943 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17944Usually this means the macro was only invoked conditionally." "$LINENO" 5
17945fi
eec2776c
AJ
17946 if test -n "$EXEEXT"; then
17947 am__EXEEXT_TRUE=
17948 am__EXEEXT_FALSE='#'
17949else
17950 am__EXEEXT_TRUE='#'
17951 am__EXEEXT_FALSE=
17952fi
17953
c52df125
AC
17954if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17955 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
17956Usually this means the macro was only invoked conditionally." "$LINENO" 5
17957fi
17958if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17959 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
17960Usually this means the macro was only invoked conditionally." "$LINENO" 5
17961fi
17962LT_CONFIG_H=include/setup.h
17963
17964 _ltdl_libobjs=
17965 _ltdl_ltlibobjs=
17966 if test -n "$_LT_LIBOBJS"; then
17967 # Remove the extension.
17968 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17969 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17970 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17971 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17972 done
17973 fi
17974 ltdl_LIBOBJS=$_ltdl_libobjs
17975
17976 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17977
17978
17979if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then
17980 as_fn_error $? "conditional \"BUILD_LTDL\" was never defined.
17981Usually this means the macro was only invoked conditionally." "$LINENO" 5
17982fi
212380e3 17983
7083c021
AC
17984
17985
b6d0720c 17986: "${CONFIG_STATUS=./config.status}"
7083c021 17987ac_write_fail=0
212380e3
AC
17988ac_clean_files_save=$ac_clean_files
17989ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
17990{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17991$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17992as_write_fail=0
17993cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
17994#! $SHELL
17995# Generated by $as_me.
17996# Run this file to recreate the current configuration.
17997# Compiler output produced by configure, useful for debugging
17998# configure, is in config.log if it exists.
17999
18000debug=false
18001ac_cs_recheck=false
18002ac_cs_silent=false
212380e3 18003
7083c021
AC
18004SHELL=\${CONFIG_SHELL-$SHELL}
18005export SHELL
18006_ASEOF
18007cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18008## -------------------- ##
18009## M4sh Initialization. ##
18010## -------------------- ##
212380e3 18011
631ef239
AC
18012# Be more Bourne compatible
18013DUALCASE=1; export DUALCASE # for MKS sh
7083c021 18014if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
18015 emulate sh
18016 NULLCMD=:
7083c021 18017 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
18018 # is contrary to our usage. Disable this feature.
18019 alias -g '${1+"$@"}'='"$@"'
631ef239 18020 setopt NO_GLOB_SUBST
212380e3 18021else
7083c021
AC
18022 case `(set -o) 2>/dev/null` in #(
18023 *posix*) :
18024 set -o posix ;; #(
18025 *) :
18026 ;;
631ef239 18027esac
212380e3
AC
18028fi
18029
18030
7083c021
AC
18031as_nl='
18032'
18033export as_nl
18034# Printing a long string crashes Solaris 7 /usr/bin/printf.
18035as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18036as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18038# Prefer a ksh shell builtin over an external printf program on Solaris,
18039# but without wasting forks for bash or zsh.
18040if test -z "$BASH_VERSION$ZSH_VERSION" \
18041 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18042 as_echo='print -r --'
18043 as_echo_n='print -rn --'
18044elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18045 as_echo='printf %s\n'
18046 as_echo_n='printf %s'
18047else
18048 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18049 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18050 as_echo_n='/usr/ucb/echo -n'
631ef239 18051 else
7083c021
AC
18052 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18053 as_echo_n_body='eval
18054 arg=$1;
18055 case $arg in #(
18056 *"$as_nl"*)
18057 expr "X$arg" : "X\\(.*\\)$as_nl";
18058 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18059 esac;
18060 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18061 '
18062 export as_echo_n_body
18063 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 18064 fi
7083c021
AC
18065 export as_echo_body
18066 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
18067fi
18068
7083c021
AC
18069# The user is always right.
18070if test "${PATH_SEPARATOR+set}" != set; then
18071 PATH_SEPARATOR=:
18072 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18073 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18074 PATH_SEPARATOR=';'
18075 }
631ef239
AC
18076fi
18077
18078
18079# IFS
18080# We need space, tab and new line, in precisely that order. Quoting is
18081# there to prevent editors from complaining about space-tab.
18082# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18083# splitting by setting IFS to empty value.)
631ef239
AC
18084IFS=" "" $as_nl"
18085
18086# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 18087as_myself=
7083c021 18088case $0 in #((
631ef239
AC
18089 *[\\/]* ) as_myself=$0 ;;
18090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18091for as_dir in $PATH
18092do
18093 IFS=$as_save_IFS
18094 test -z "$as_dir" && as_dir=.
7083c021
AC
18095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18096 done
631ef239
AC
18097IFS=$as_save_IFS
18098
18099 ;;
18100esac
18101# We did not find ourselves, most probably we were run as `sh COMMAND'
18102# in which case we are not to be found in the path.
18103if test "x$as_myself" = x; then
18104 as_myself=$0
18105fi
18106if test ! -f "$as_myself"; then
7083c021
AC
18107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18108 exit 1
631ef239
AC
18109fi
18110
7083c021
AC
18111# Unset variables that we do not need and which cause bugs (e.g. in
18112# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18113# suppresses any "Segmentation fault" message there. '((' could
18114# trigger a bug in pdksh 5.2.14.
18115for as_var in BASH_ENV ENV MAIL MAILPATH
18116do eval test x\${$as_var+set} = xset \
18117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 18118done
212380e3
AC
18119PS1='$ '
18120PS2='> '
18121PS4='+ '
18122
7083c021
AC
18123# NLS nuisances.
18124LC_ALL=C
18125export LC_ALL
18126LANGUAGE=C
18127export LANGUAGE
18128
18129# CDPATH.
18130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18131
18132
b6d0720c
AC
18133# as_fn_error STATUS ERROR [LINENO LOG_FD]
18134# ----------------------------------------
7083c021
AC
18135# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18136# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 18137# script with STATUS, using 1 if that was 0.
7083c021
AC
18138as_fn_error ()
18139{
b6d0720c
AC
18140 as_status=$1; test $as_status -eq 0 && as_status=1
18141 if test "$4"; then
18142 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18143 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 18144 fi
b6d0720c 18145 $as_echo "$as_me: error: $2" >&2
7083c021
AC
18146 as_fn_exit $as_status
18147} # as_fn_error
18148
18149
18150# as_fn_set_status STATUS
18151# -----------------------
18152# Set $? to STATUS, without forking.
18153as_fn_set_status ()
18154{
18155 return $1
18156} # as_fn_set_status
18157
18158# as_fn_exit STATUS
18159# -----------------
18160# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18161as_fn_exit ()
18162{
18163 set +e
18164 as_fn_set_status $1
18165 exit $1
18166} # as_fn_exit
18167
18168# as_fn_unset VAR
18169# ---------------
18170# Portably unset VAR.
18171as_fn_unset ()
18172{
18173 { eval $1=; unset $1;}
18174}
18175as_unset=as_fn_unset
18176# as_fn_append VAR VALUE
18177# ----------------------
18178# Append the text in VALUE to the end of the definition contained in VAR. Take
18179# advantage of any shell optimizations that allow amortized linear growth over
18180# repeated appends, instead of the typical quadratic growth present in naive
18181# implementations.
18182if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18183 eval 'as_fn_append ()
18184 {
18185 eval $1+=\$2
18186 }'
18187else
18188 as_fn_append ()
18189 {
18190 eval $1=\$$1\$2
18191 }
18192fi # as_fn_append
18193
18194# as_fn_arith ARG...
18195# ------------------
18196# Perform arithmetic evaluation on the ARGs, and store the result in the
18197# global $as_val. Take advantage of shells that can avoid forks. The arguments
18198# must be portable across $(()) and expr.
18199if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18200 eval 'as_fn_arith ()
18201 {
18202 as_val=$(( $* ))
18203 }'
18204else
18205 as_fn_arith ()
18206 {
18207 as_val=`expr "$@" || test $? -eq 1`
18208 }
18209fi # as_fn_arith
18210
212380e3 18211
631ef239
AC
18212if expr a : '\(a\)' >/dev/null 2>&1 &&
18213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
18214 as_expr=expr
18215else
18216 as_expr=false
18217fi
18218
631ef239 18219if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
18220 as_basename=basename
18221else
18222 as_basename=false
18223fi
18224
7083c021
AC
18225if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18226 as_dirname=dirname
18227else
18228 as_dirname=false
18229fi
212380e3 18230
631ef239 18231as_me=`$as_basename -- "$0" ||
212380e3
AC
18232$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18233 X"$0" : 'X\(//\)$' \| \
631ef239 18234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 18235$as_echo X/"$0" |
631ef239
AC
18236 sed '/^.*\/\([^/][^/]*\)\/*$/{
18237 s//\1/
18238 q
18239 }
18240 /^X\/\(\/\/\)$/{
18241 s//\1/
18242 q
18243 }
18244 /^X\/\(\/\).*/{
18245 s//\1/
18246 q
18247 }
18248 s/.*/./; q'`
212380e3 18249
7083c021
AC
18250# Avoid depending upon Character Ranges.
18251as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18252as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18253as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18254as_cr_digits='0123456789'
18255as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
18256
18257ECHO_C= ECHO_N= ECHO_T=
7083c021 18258case `echo -n x` in #(((((
631ef239 18259-n*)
7083c021 18260 case `echo 'xy\c'` in
631ef239 18261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
18262 xy) ECHO_C='\c';;
18263 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18264 ECHO_T=' ';;
631ef239
AC
18265 esac;;
18266*)
18267 ECHO_N='-n';;
212380e3
AC
18268esac
18269
212380e3 18270rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
18271if test -d conf$$.dir; then
18272 rm -f conf$$.dir/conf$$.file
18273else
18274 rm -f conf$$.dir
7083c021
AC
18275 mkdir conf$$.dir 2>/dev/null
18276fi
18277if (echo >conf$$.file) 2>/dev/null; then
18278 if ln -s conf$$.file conf$$ 2>/dev/null; then
18279 as_ln_s='ln -s'
18280 # ... but there are two gotchas:
18281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 18283 # In both cases, we have to default to `cp -pR'.
7083c021 18284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 18285 as_ln_s='cp -pR'
7083c021
AC
18286 elif ln conf$$.file conf$$ 2>/dev/null; then
18287 as_ln_s=ln
18288 else
2eff3833 18289 as_ln_s='cp -pR'
7083c021 18290 fi
212380e3 18291else
2eff3833 18292 as_ln_s='cp -pR'
212380e3 18293fi
631ef239
AC
18294rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18295rmdir conf$$.dir 2>/dev/null
212380e3 18296
7083c021
AC
18297
18298# as_fn_mkdir_p
18299# -------------
18300# Create "$as_dir" as a directory, including parents if necessary.
18301as_fn_mkdir_p ()
18302{
18303
18304 case $as_dir in #(
18305 -*) as_dir=./$as_dir;;
18306 esac
18307 test -d "$as_dir" || eval $as_mkdir_p || {
18308 as_dirs=
18309 while :; do
18310 case $as_dir in #(
18311 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18312 *) as_qdir=$as_dir;;
18313 esac
18314 as_dirs="'$as_qdir' $as_dirs"
18315 as_dir=`$as_dirname -- "$as_dir" ||
18316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317 X"$as_dir" : 'X\(//\)[^/]' \| \
18318 X"$as_dir" : 'X\(//\)$' \| \
18319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18320$as_echo X"$as_dir" |
18321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18322 s//\1/
18323 q
18324 }
18325 /^X\(\/\/\)[^/].*/{
18326 s//\1/
18327 q
18328 }
18329 /^X\(\/\/\)$/{
18330 s//\1/
18331 q
18332 }
18333 /^X\(\/\).*/{
18334 s//\1/
18335 q
18336 }
18337 s/.*/./; q'`
18338 test -d "$as_dir" && break
18339 done
18340 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 18341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
18342
18343
18344} # as_fn_mkdir_p
212380e3 18345if mkdir -p . 2>/dev/null; then
7083c021 18346 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
18347else
18348 test -d ./-p && rmdir ./-p
18349 as_mkdir_p=false
18350fi
18351
2eff3833
JT
18352
18353# as_fn_executable_p FILE
18354# -----------------------
18355# Test if FILE is an executable regular file.
18356as_fn_executable_p ()
18357{
18358 test -f "$1" && test -x "$1"
18359} # as_fn_executable_p
18360as_test_x='test -x'
18361as_executable_p=as_fn_executable_p
212380e3
AC
18362
18363# Sed expression to map a string onto a valid CPP name.
18364as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18365
18366# Sed expression to map a string onto a valid variable name.
18367as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18368
18369
212380e3 18370exec 6>&1
7083c021
AC
18371## ----------------------------------- ##
18372## Main body of $CONFIG_STATUS script. ##
18373## ----------------------------------- ##
18374_ASEOF
18375test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 18376
7083c021
AC
18377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378# Save the log message, to keep $0 and so on meaningful, and to
212380e3 18379# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
18380# values after options handling.
18381ac_log="
c52df125 18382This file was extended by charybdis $as_me 3.6.0-dev, which was
2eff3833 18383generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
18384
18385 CONFIG_FILES = $CONFIG_FILES
18386 CONFIG_HEADERS = $CONFIG_HEADERS
18387 CONFIG_LINKS = $CONFIG_LINKS
18388 CONFIG_COMMANDS = $CONFIG_COMMANDS
18389 $ $0 $@
18390
631ef239
AC
18391on `(hostname || uname -n) 2>/dev/null | sed 1q`
18392"
18393
212380e3
AC
18394_ACEOF
18395
7083c021
AC
18396case $ac_config_files in *"
18397"*) set x $ac_config_files; shift; ac_config_files=$*;;
18398esac
18399
18400case $ac_config_headers in *"
18401"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18402esac
18403
18404
18405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 18406# Files that config.status was made for.
631ef239
AC
18407config_files="$ac_config_files"
18408config_headers="$ac_config_headers"
9f9b7042 18409config_commands="$ac_config_commands"
212380e3 18410
631ef239 18411_ACEOF
212380e3 18412
7083c021 18413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 18414ac_cs_usage="\
7083c021
AC
18415\`$as_me' instantiates files and other configuration actions
18416from templates according to the current configuration. Unless the files
18417and actions are specified as TAGs, all are instantiated by default.
212380e3 18418
7083c021 18419Usage: $0 [OPTION]... [TAG]...
212380e3
AC
18420
18421 -h, --help print this help, then exit
631ef239 18422 -V, --version print version number and configuration settings, then exit
6fb6bd15 18423 --config print configuration, then exit
7083c021
AC
18424 -q, --quiet, --silent
18425 do not print progress messages
212380e3
AC
18426 -d, --debug don't remove temporary files
18427 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
18428 --file=FILE[:TEMPLATE]
18429 instantiate the configuration file FILE
18430 --header=FILE[:TEMPLATE]
18431 instantiate the configuration header FILE
212380e3
AC
18432
18433Configuration files:
18434$config_files
18435
18436Configuration headers:
18437$config_headers
18438
9f9b7042
NPB
18439Configuration commands:
18440$config_commands
18441
7083c021 18442Report bugs to the package provider."
212380e3 18443
631ef239 18444_ACEOF
7083c021 18445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 18446ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 18447ac_cs_version="\\
c52df125 18448charybdis config.status 3.6.0-dev
2eff3833 18449configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 18450 with options \\"\$ac_cs_config\\"
212380e3 18451
2eff3833 18452Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
18453This config.status script is free software; the Free Software Foundation
18454gives unlimited permission to copy, distribute and modify it."
631ef239
AC
18455
18456ac_pwd='$ac_pwd'
18457srcdir='$srcdir'
18458INSTALL='$INSTALL'
c52df125
AC
18459MKDIR_P='$MKDIR_P'
18460AWK='$AWK'
7083c021 18461test -n "\$AWK" || AWK=awk
212380e3
AC
18462_ACEOF
18463
7083c021
AC
18464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465# The default lists apply if the user does not specify any file.
212380e3
AC
18466ac_need_defaults=:
18467while test $# != 0
18468do
18469 case $1 in
b6d0720c 18470 --*=?*)
631ef239
AC
18471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
18473 ac_shift=:
18474 ;;
b6d0720c
AC
18475 --*=)
18476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18477 ac_optarg=
18478 ac_shift=:
18479 ;;
631ef239 18480 *)
212380e3
AC
18481 ac_option=$1
18482 ac_optarg=$2
18483 ac_shift=shift
18484 ;;
212380e3
AC
18485 esac
18486
18487 case $ac_option in
18488 # Handling of the options.
212380e3
AC
18489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18490 ac_cs_recheck=: ;;
631ef239 18491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 18492 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
18493 --config | --confi | --conf | --con | --co | --c )
18494 $as_echo "$ac_cs_config"; exit ;;
631ef239 18495 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
18496 debug=: ;;
18497 --file | --fil | --fi | --f )
18498 $ac_shift
7083c021
AC
18499 case $ac_optarg in
18500 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 18501 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
18502 esac
18503 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
18504 ac_need_defaults=false;;
18505 --header | --heade | --head | --hea )
18506 $ac_shift
7083c021
AC
18507 case $ac_optarg in
18508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18509 esac
18510 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 18511 ac_need_defaults=false;;
631ef239
AC
18512 --he | --h)
18513 # Conflict between --help and --header
b6d0720c 18514 as_fn_error $? "ambiguous option: \`$1'
7083c021 18515Try \`$0 --help' for more information.";;
631ef239 18516 --help | --hel | -h )
7083c021 18517 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
18518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18520 ac_cs_silent=: ;;
18521
18522 # This is an error.
b6d0720c 18523 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 18524Try \`$0 --help' for more information." ;;
212380e3 18525
7083c021 18526 *) as_fn_append ac_config_targets " $1"
631ef239 18527 ac_need_defaults=false ;;
212380e3
AC
18528
18529 esac
18530 shift
18531done
18532
18533ac_configure_extra_args=
18534
18535if $ac_cs_silent; then
18536 exec 6>/dev/null
18537 ac_configure_extra_args="$ac_configure_extra_args --silent"
18538fi
18539
18540_ACEOF
7083c021 18541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 18542if \$ac_cs_recheck; then
2eff3833 18543 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
18544 shift
18545 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18546 CONFIG_SHELL='$SHELL'
631ef239 18547 export CONFIG_SHELL
7083c021 18548 exec "\$@"
212380e3
AC
18549fi
18550
18551_ACEOF
7083c021 18552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
18553exec 5>>config.log
18554{
18555 echo
18556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18557## Running $as_me. ##
18558_ASBOX
7083c021 18559 $as_echo "$ac_log"
631ef239 18560} >&5
212380e3 18561
631ef239 18562_ACEOF
7083c021 18563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c52df125
AC
18564#
18565# INIT-COMMANDS
18566#
18567AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18568
18569
18570# The HP-UX ksh and POSIX shell print the target directory to stdout
18571# if CDPATH is set.
18572(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18573
18574sed_quote_subst='$sed_quote_subst'
18575double_quote_subst='$double_quote_subst'
18576delay_variable_subst='$delay_variable_subst'
18577macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18578macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18579enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18580enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18581pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18582enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18583SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18584ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18585PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18586host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18587host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18588host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18589build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18590build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18591build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18592SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18593Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18594GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18595EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18596FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18597LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18598NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18599LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18600max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18601ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18602exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18603lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18604lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18605lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18606lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18607lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18608reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18609reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18610OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18611deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18612file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18613file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18614want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18615DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18616sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18617AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18618AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18619archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18620STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18621RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18622old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18623old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18624old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18625lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18626CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18627CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18628compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18629GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18630lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18631lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18632lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18633lt_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"`'
18634nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18635lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18636objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18637MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18638lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18639lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18640lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18641lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18642lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18643need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18644MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18645DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18646NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18647LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18648OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18649OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18650libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18651shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18652extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18653archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18654enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18655export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18656whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18657compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18658old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18659old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18660archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18661archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18662module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18663module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18664with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18665allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18666no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18667hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18668hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18669hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18670hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18671hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18672hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18673hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18674inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18675link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18676always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18677export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18678exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18679include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18680prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18681postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18682file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18683variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18684need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18685need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18686version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18687runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18688shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18689shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18690libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18691library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18692soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18693install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18694postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18695postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18696finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18697finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18698hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18699sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18700sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18701hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18702enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18703enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18704enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18705old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18706striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18707
18708LTCC='$LTCC'
18709LTCFLAGS='$LTCFLAGS'
18710compiler='$compiler_DEFAULT'
18711
18712# A function that is used when there is no print builtin or printf.
18713func_fallback_echo ()
18714{
18715 eval 'cat <<_LTECHO_EOF
18716\$1
18717_LTECHO_EOF'
18718}
18719
18720# Quote evaled strings.
18721for var in SHELL \
18722ECHO \
18723PATH_SEPARATOR \
18724SED \
18725GREP \
18726EGREP \
18727FGREP \
18728LD \
18729NM \
18730LN_S \
18731lt_SP2NL \
18732lt_NL2SP \
18733reload_flag \
18734OBJDUMP \
18735deplibs_check_method \
18736file_magic_cmd \
18737file_magic_glob \
18738want_nocaseglob \
18739DLLTOOL \
18740sharedlib_from_linklib_cmd \
18741AR \
18742AR_FLAGS \
18743archiver_list_spec \
18744STRIP \
18745RANLIB \
18746CC \
18747CFLAGS \
18748compiler \
18749lt_cv_sys_global_symbol_pipe \
18750lt_cv_sys_global_symbol_to_cdecl \
18751lt_cv_sys_global_symbol_to_c_name_address \
18752lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18753nm_file_list_spec \
18754lt_prog_compiler_no_builtin_flag \
18755lt_prog_compiler_pic \
18756lt_prog_compiler_wl \
18757lt_prog_compiler_static \
18758lt_cv_prog_compiler_c_o \
18759need_locks \
18760MANIFEST_TOOL \
18761DSYMUTIL \
18762NMEDIT \
18763LIPO \
18764OTOOL \
18765OTOOL64 \
18766shrext_cmds \
18767export_dynamic_flag_spec \
18768whole_archive_flag_spec \
18769compiler_needs_object \
18770with_gnu_ld \
18771allow_undefined_flag \
18772no_undefined_flag \
18773hardcode_libdir_flag_spec \
18774hardcode_libdir_separator \
18775exclude_expsyms \
18776include_expsyms \
18777file_list_spec \
18778variables_saved_for_relink \
18779libname_spec \
18780library_names_spec \
18781soname_spec \
18782install_override_mode \
18783finish_eval \
18784old_striplib \
18785striplib; do
18786 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18787 *[\\\\\\\`\\"\\\$]*)
18788 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18789 ;;
18790 *)
18791 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18792 ;;
18793 esac
18794done
18795
18796# Double-quote double-evaled strings.
18797for var in reload_cmds \
18798old_postinstall_cmds \
18799old_postuninstall_cmds \
18800old_archive_cmds \
18801extract_expsyms_cmds \
18802old_archive_from_new_cmds \
18803old_archive_from_expsyms_cmds \
18804archive_cmds \
18805archive_expsym_cmds \
18806module_cmds \
18807module_expsym_cmds \
18808export_symbols_cmds \
18809prelink_cmds \
18810postlink_cmds \
18811postinstall_cmds \
18812postuninstall_cmds \
18813finish_cmds \
18814sys_lib_search_path_spec \
18815sys_lib_dlsearch_path_spec; do
18816 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18817 *[\\\\\\\`\\"\\\$]*)
18818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18819 ;;
18820 *)
18821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18822 ;;
18823 esac
18824done
18825
18826ac_aux_dir='$ac_aux_dir'
18827xsi_shell='$xsi_shell'
18828lt_shell_append='$lt_shell_append'
18829
18830# See if we are running on zsh, and set the options which allow our
18831# commands through without removal of \ escapes INIT.
18832if test -n "\${ZSH_VERSION+set}" ; then
18833 setopt NO_GLOB_SUBST
18834fi
18835
18836
18837 PACKAGE='$PACKAGE'
18838 VERSION='$VERSION'
18839 TIMESTAMP='$TIMESTAMP'
18840 RM='$RM'
18841 ofile='$ofile'
18842
18843
18844
18845
631ef239 18846_ACEOF
212380e3 18847
7083c021 18848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
18849
18850# Handling of arguments.
212380e3
AC
18851for ac_config_target in $ac_config_targets
18852do
631ef239
AC
18853 case $ac_config_target in
18854 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
c52df125
AC
18855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18856 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
631ef239 18857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
0d73e7db 18858 "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;;
7083c021 18859 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 18860 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 18861 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
46fded53 18862 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
631ef239
AC
18863 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18864 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 18865 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
18866 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18867 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 18868 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 18869
b6d0720c 18870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
18871 esac
18872done
18873
631ef239 18874
212380e3
AC
18875# If the user did not use the arguments to specify the items to instantiate,
18876# then the envvar interface is used. Set only those that are not.
18877# We use the long form for the default assignment because of an extremely
18878# bizarre bug on SunOS 4.1.3.
18879if $ac_need_defaults; then
18880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 18882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
18883fi
18884
18885# Have a temporary directory for convenience. Make it in the build tree
631ef239 18886# simply because there is no reason against having it here, and in addition,
212380e3 18887# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
18888# Hook for its removal unless debugging.
18889# Note that there is a small window in which the directory will not be cleaned:
18890# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
18891$debug ||
18892{
b6d0720c 18893 tmp= ac_tmp=
631ef239 18894 trap 'exit_status=$?
b6d0720c
AC
18895 : "${ac_tmp:=$tmp}"
18896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 18897' 0
7083c021 18898 trap 'as_fn_exit 1' 1 2 13 15
212380e3 18899}
212380e3
AC
18900# Create a (secure) tmp directory for tmp files.
18901
18902{
631ef239 18903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 18904 test -d "$tmp"
212380e3
AC
18905} ||
18906{
631ef239
AC
18907 tmp=./conf$$-$RANDOM
18908 (umask 077 && mkdir "$tmp")
b6d0720c
AC
18909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18910ac_tmp=$tmp
212380e3 18911
7083c021
AC
18912# Set up the scripts for CONFIG_FILES section.
18913# No need to generate them if there are no CONFIG_FILES.
18914# This happens for instance with `./config.status config.h'.
631ef239
AC
18915if test -n "$CONFIG_FILES"; then
18916
631ef239 18917
7083c021
AC
18918ac_cr=`echo X | tr X '\015'`
18919# On cygwin, bash can eat \r inside `` if the user requested igncr.
18920# But we know of no other shell where ac_cr would be empty at this
18921# point, so we can use a bashism as a fallback.
18922if test "x$ac_cr" = x; then
18923 eval ac_cr=\$\'\\r\'
18924fi
18925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 18927 ac_cs_awk_cr='\\r'
7083c021
AC
18928else
18929 ac_cs_awk_cr=$ac_cr
18930fi
18931
b6d0720c 18932echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 18933_ACEOF
631ef239
AC
18934
18935
7083c021
AC
18936{
18937 echo "cat >conf$$subs.awk <<_ACEOF" &&
18938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18939 echo "_ACEOF"
18940} >conf$$subs.sh ||
b6d0720c
AC
18941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
18943ac_delim='%!_!# '
18944for ac_last_try in false false false false false :; do
7083c021 18945 . ./conf$$subs.sh ||
b6d0720c 18946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
18947
18948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18949 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
18950 break
18951 elif $ac_last_try; then
b6d0720c 18952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
18953 else
18954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 18955 fi
631ef239 18956done
7083c021
AC
18957rm -f conf$$subs.sh
18958
18959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 18960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
18961_ACEOF
18962sed -n '
18963h
18964s/^/S["/; s/!.*/"]=/
18965p
18966g
18967s/^[^!]*!//
18968:repl
18969t repl
18970s/'"$ac_delim"'$//
18971t delim
18972:nl
18973h
6fb6bd15 18974s/\(.\{148\}\)..*/\1/
7083c021
AC
18975t more1
18976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18977p
18978n
18979b repl
18980:more1
18981s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18982p
18983g
18984s/.\{148\}//
18985t nl
18986:delim
18987h
6fb6bd15 18988s/\(.\{148\}\)..*/\1/
7083c021
AC
18989t more2
18990s/["\\]/\\&/g; s/^/"/; s/$/"/
18991p
18992b
18993:more2
18994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18995p
18996g
18997s/.\{148\}//
18998t delim
18999' <conf$$subs.awk | sed '
19000/^[^""]/{
19001 N
19002 s/\n//
19003}
19004' >>$CONFIG_STATUS || ac_write_fail=1
19005rm -f conf$$subs.awk
19006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19007_ACAWK
b6d0720c 19008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
19009 for (key in S) S_is_set[key] = 1
19010 FS = "\a"
212380e3 19011
7083c021
AC
19012}
19013{
19014 line = $ 0
19015 nfields = split(line, field, "@")
19016 substed = 0
19017 len = length(field[1])
19018 for (i = 2; i < nfields; i++) {
19019 key = field[i]
19020 keylen = length(key)
19021 if (S_is_set[key]) {
19022 value = S[key]
19023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19024 len += length(value) + length(field[++i])
19025 substed = 1
19026 } else
19027 len += 1 + keylen
19028 }
631ef239 19029
7083c021
AC
19030 print line
19031}
19032
19033_ACAWK
631ef239 19034_ACEOF
7083c021
AC
19035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19038else
19039 cat
b6d0720c
AC
19040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 19042_ACEOF
631ef239 19043
b6d0720c
AC
19044# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
19046# trailing colons and then remove the whole line if VPATH becomes empty
19047# (actually we leave an empty line to preserve line numbers).
19048if test "x$srcdir" = x.; then
b6d0720c
AC
19049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19050h
19051s///
19052s/^/:/
19053s/[ ]*$/:/
19054s/:\$(srcdir):/:/g
19055s/:\${srcdir}:/:/g
19056s/:@srcdir@:/:/g
19057s/^:*//
631ef239 19058s/:*$//
b6d0720c
AC
19059x
19060s/\(=[ ]*\).*/\1/
19061G
19062s/\n//
631ef239
AC
19063s/^[^=]*=[ ]*$//
19064}'
19065fi
19066
7083c021 19067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
19068fi # test -n "$CONFIG_FILES"
19069
7083c021
AC
19070# Set up the scripts for CONFIG_HEADERS section.
19071# No need to generate them if there are no CONFIG_HEADERS.
19072# This happens for instance with `./config.status Makefile'.
19073if test -n "$CONFIG_HEADERS"; then
b6d0720c 19074cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
19075BEGIN {
19076_ACEOF
19077
19078# Transform confdefs.h into an awk script `defines.awk', embedded as
19079# here-document in config.status, that substitutes the proper values into
19080# config.h.in to produce config.h.
19081
19082# Create a delimiter string that does not exist in confdefs.h, to ease
19083# handling of long lines.
19084ac_delim='%!_!# '
19085for ac_last_try in false false :; do
b6d0720c
AC
19086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19087 if test -z "$ac_tt"; then
7083c021
AC
19088 break
19089 elif $ac_last_try; then
b6d0720c 19090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
19091 else
19092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19093 fi
19094done
19095
19096# For the awk script, D is an array of macro values keyed by name,
19097# likewise P contains macro parameters if any. Preserve backslash
19098# newline sequences.
19099
19100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19101sed -n '
19102s/.\{148\}/&'"$ac_delim"'/g
19103t rset
19104:rset
19105s/^[ ]*#[ ]*define[ ][ ]*/ /
19106t def
19107d
19108:def
19109s/\\$//
19110t bsnl
19111s/["\\]/\\&/g
19112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19113D["\1"]=" \3"/p
19114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19115d
19116:bsnl
19117s/["\\]/\\&/g
19118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19119D["\1"]=" \3\\\\\\n"\\/p
19120t cont
19121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19122t cont
19123d
19124:cont
19125n
19126s/.\{148\}/&'"$ac_delim"'/g
19127t clear
19128:clear
19129s/\\$//
19130t bsnlc
19131s/["\\]/\\&/g; s/^/"/; s/$/"/p
19132d
19133:bsnlc
19134s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19135b cont
19136' <confdefs.h | sed '
19137s/'"$ac_delim"'/"\\\
19138"/g' >>$CONFIG_STATUS || ac_write_fail=1
19139
19140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19141 for (key in D) D_is_set[key] = 1
19142 FS = "\a"
19143}
19144/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19145 line = \$ 0
19146 split(line, arg, " ")
19147 if (arg[1] == "#") {
19148 defundef = arg[2]
19149 mac1 = arg[3]
19150 } else {
19151 defundef = substr(arg[1], 2)
19152 mac1 = arg[2]
19153 }
19154 split(mac1, mac2, "(") #)
19155 macro = mac2[1]
19156 prefix = substr(line, 1, index(line, defundef) - 1)
19157 if (D_is_set[macro]) {
19158 # Preserve the white space surrounding the "#".
19159 print prefix "define", macro P[macro] D[macro]
19160 next
19161 } else {
19162 # Replace #undef with comments. This is necessary, for example,
19163 # in the case of _POSIX_SOURCE, which is predefined and required
19164 # on some systems where configure will not decide to define it.
19165 if (defundef == "undef") {
19166 print "/*", prefix defundef, macro, "*/"
19167 next
19168 }
19169 }
19170}
19171{ print }
19172_ACAWK
19173_ACEOF
19174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 19175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
19176fi # test -n "$CONFIG_HEADERS"
19177
631ef239 19178
9f9b7042 19179eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
19180shift
19181for ac_tag
631ef239
AC
19182do
19183 case $ac_tag in
19184 :[FHLC]) ac_mode=$ac_tag; continue;;
19185 esac
19186 case $ac_mode$ac_tag in
19187 :[FHL]*:*);;
b6d0720c 19188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
19189 :[FH]-) ac_tag=-:-;;
19190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 19191 esac
631ef239
AC
19192 ac_save_IFS=$IFS
19193 IFS=:
19194 set x $ac_tag
19195 IFS=$ac_save_IFS
19196 shift
19197 ac_file=$1
19198 shift
212380e3 19199
631ef239
AC
19200 case $ac_mode in
19201 :L) ac_source=$1;;
19202 :[FH])
19203 ac_file_inputs=
19204 for ac_f
19205 do
19206 case $ac_f in
b6d0720c 19207 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
19208 *) # Look for the file first in the build tree, then in the source tree
19209 # (if the path is not absolute). The absolute path cannot be DOS-style,
19210 # because $ac_f cannot contain `:'.
19211 test -f "$ac_f" ||
19212 case $ac_f in
19213 [\\/$]*) false;;
19214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19215 esac ||
b6d0720c 19216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 19217 esac
7083c021
AC
19218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19219 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
19220 done
19221
19222 # Let's still pretend it is `configure' which instantiates (i.e., don't
19223 # use $as_me), people would be surprised to read:
19224 # /* config.h. Generated by config.status. */
7083c021
AC
19225 configure_input='Generated from '`
19226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19227 `' by configure.'
631ef239
AC
19228 if test x"$ac_file" != x-; then
19229 configure_input="$ac_file. $configure_input"
7083c021
AC
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19231$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 19232 fi
7083c021
AC
19233 # Neutralize special characters interpreted by sed in replacement strings.
19234 case $configure_input in #(
19235 *\&* | *\|* | *\\* )
19236 ac_sed_conf_input=`$as_echo "$configure_input" |
19237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19238 *) ac_sed_conf_input=$configure_input;;
19239 esac
631ef239
AC
19240
19241 case $ac_tag in
b6d0720c
AC
19242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
19244 esac
19245 ;;
19246 esac
19247
19248 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
19249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19250 X"$ac_file" : 'X\(//\)[^/]' \| \
19251 X"$ac_file" : 'X\(//\)$' \| \
631ef239 19252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 19253$as_echo X"$ac_file" |
631ef239
AC
19254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19255 s//\1/
19256 q
19257 }
19258 /^X\(\/\/\)[^/].*/{
19259 s//\1/
19260 q
19261 }
19262 /^X\(\/\/\)$/{
19263 s//\1/
19264 q
19265 }
19266 /^X\(\/\).*/{
19267 s//\1/
19268 q
19269 }
19270 s/.*/./; q'`
7083c021 19271 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
19272 ac_builddir=.
19273
631ef239
AC
19274case "$ac_dir" in
19275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276*)
7083c021 19277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 19278 # A ".." for each directory in $ac_dir_suffix.
7083c021 19279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
19280 case $ac_top_builddir_sub in
19281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19283 esac ;;
19284esac
19285ac_abs_top_builddir=$ac_pwd
19286ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287# for backward compatibility:
19288ac_top_builddir=$ac_top_build_prefix
212380e3
AC
19289
19290case $srcdir in
631ef239 19291 .) # We are building in place.
212380e3 19292 ac_srcdir=.
631ef239
AC
19293 ac_top_srcdir=$ac_top_builddir_sub
19294 ac_abs_top_srcdir=$ac_pwd ;;
19295 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 19296 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
19297 ac_top_srcdir=$srcdir
19298 ac_abs_top_srcdir=$srcdir ;;
19299 *) # Relative name.
19300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301 ac_top_srcdir=$ac_top_build_prefix$srcdir
19302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 19303esac
631ef239 19304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 19305
212380e3 19306
631ef239
AC
19307 case $ac_mode in
19308 :F)
19309 #
19310 # CONFIG_FILE
19311 #
212380e3
AC
19312
19313 case $INSTALL in
19314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 19315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 19316 esac
c52df125
AC
19317 ac_MKDIR_P=$MKDIR_P
19318 case $MKDIR_P in
19319 [\\/$]* | ?:[\\/]* ) ;;
19320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19321 esac
631ef239 19322_ACEOF
212380e3 19323
7083c021 19324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
19325# If the template does not know about datarootdir, expand it.
19326# FIXME: This hack should be removed a few years after 2.60.
19327ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
19328ac_sed_dataroot='
19329/datarootdir/ {
631ef239
AC
19330 p
19331 q
19332}
19333/@datadir@/p
19334/@docdir@/p
19335/@infodir@/p
19336/@localedir@/p
7083c021
AC
19337/@mandir@/p'
19338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
19339*datarootdir*) ac_datarootdir_seen=yes;;
19340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 19343_ACEOF
7083c021 19344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
19345 ac_datarootdir_hack='
19346 s&@datadir@&$datadir&g
19347 s&@docdir@&$docdir&g
19348 s&@infodir@&$infodir&g
19349 s&@localedir@&$localedir&g
19350 s&@mandir@&$mandir&g
7083c021 19351 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 19352esac
212380e3 19353_ACEOF
631ef239
AC
19354
19355# Neutralize VPATH when `$srcdir' = `.'.
19356# Shell code in configure.ac might set extrasub.
19357# FIXME: do we really want to maintain this feature?
7083c021
AC
19358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19359ac_sed_extra="$ac_vpsub
212380e3
AC
19360$extrasub
19361_ACEOF
7083c021 19362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
19363:t
19364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 19365s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 19366s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 19367s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
19368s&@srcdir@&$ac_srcdir&;t t
19369s&@abs_srcdir@&$ac_abs_srcdir&;t t
19370s&@top_srcdir@&$ac_top_srcdir&;t t
19371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19372s&@builddir@&$ac_builddir&;t t
19373s&@abs_builddir@&$ac_abs_builddir&;t t
19374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19375s&@INSTALL@&$ac_INSTALL&;t t
c52df125 19376s&@MKDIR_P@&$ac_MKDIR_P&;t t
631ef239 19377$ac_datarootdir_hack
7083c021 19378"
b6d0720c
AC
19379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
19381
19382test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
19383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19385 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 19387which seems to be undefined. Please make sure it is defined" >&5
7083c021 19388$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 19389which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 19390
b6d0720c 19391 rm -f "$ac_tmp/stdin"
212380e3 19392 case $ac_file in
b6d0720c
AC
19393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 19395 esac \
b6d0720c 19396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
19397 ;;
19398 :H)
19399 #
19400 # CONFIG_HEADER
19401 #
212380e3 19402 if test x"$ac_file" != x-; then
7083c021
AC
19403 {
19404 $as_echo "/* $configure_input */" \
b6d0720c
AC
19405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19406 } >"$ac_tmp/config.h" \
19407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19410$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 19411 else
7083c021 19412 rm -f "$ac_file"
b6d0720c
AC
19413 mv "$ac_tmp/config.h" "$ac_file" \
19414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
19415 fi
19416 else
7083c021 19417 $as_echo "/* $configure_input */" \
b6d0720c
AC
19418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19419 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 19420 fi
c52df125
AC
19421# Compute "$ac_file"'s index in $config_headers.
19422_am_arg="$ac_file"
19423_am_stamp_count=1
19424for _am_header in $config_headers :; do
19425 case $_am_header in
19426 $_am_arg | $_am_arg:* )
19427 break ;;
19428 * )
19429 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19430 esac
19431done
19432echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19433$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19434 X"$_am_arg" : 'X\(//\)[^/]' \| \
19435 X"$_am_arg" : 'X\(//\)$' \| \
19436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19437$as_echo X"$_am_arg" |
19438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19439 s//\1/
19440 q
19441 }
19442 /^X\(\/\/\)[^/].*/{
19443 s//\1/
19444 q
19445 }
19446 /^X\(\/\/\)$/{
19447 s//\1/
19448 q
19449 }
19450 /^X\(\/\).*/{
19451 s//\1/
19452 q
19453 }
19454 s/.*/./; q'`/stamp-h$_am_stamp_count
631ef239
AC
19455 ;;
19456
9f9b7042
NPB
19457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19458$as_echo "$as_me: executing $ac_file commands" >&6;}
19459 ;;
631ef239
AC
19460 esac
19461
9f9b7042
NPB
19462
19463 case $ac_file$ac_mode in
c52df125
AC
19464 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19465 # Older Autoconf quotes --file arguments for eval, but not when files
19466 # are listed without --file. Let's play safe and only enable the eval
19467 # if we detect the quoting.
19468 case $CONFIG_FILES in
19469 *\'*) eval set x "$CONFIG_FILES" ;;
19470 *) set x $CONFIG_FILES ;;
19471 esac
19472 shift
19473 for mf
19474 do
19475 # Strip MF so we end up with the name of the file.
19476 mf=`echo "$mf" | sed -e 's/:.*$//'`
19477 # Check whether this is an Automake generated Makefile or not.
19478 # We used to match only the files named 'Makefile.in', but
19479 # some people rename them; so instead we look at the file content.
19480 # Grep'ing the first line is not enough: some people post-process
19481 # each Makefile.in and add a new line on top of each file to say so.
19482 # Grep'ing the whole file is not good either: AIX grep has a line
19483 # limit of 2048, but all sed's we know have understand at least 4000.
19484 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19485 dirpart=`$as_dirname -- "$mf" ||
19486$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19487 X"$mf" : 'X\(//\)[^/]' \| \
19488 X"$mf" : 'X\(//\)$' \| \
19489 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19490$as_echo X"$mf" |
19491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19492 s//\1/
19493 q
19494 }
19495 /^X\(\/\/\)[^/].*/{
19496 s//\1/
19497 q
19498 }
19499 /^X\(\/\/\)$/{
19500 s//\1/
19501 q
19502 }
19503 /^X\(\/\).*/{
19504 s//\1/
19505 q
19506 }
19507 s/.*/./; q'`
19508 else
19509 continue
19510 fi
19511 # Extract the definition of DEPDIR, am__include, and am__quote
19512 # from the Makefile without running 'make'.
19513 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19514 test -z "$DEPDIR" && continue
19515 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19516 test -z "$am__include" && continue
19517 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19518 # Find all dependency output files, they are included files with
19519 # $(DEPDIR) in their names. We invoke sed twice because it is the
19520 # simplest approach to changing $(DEPDIR) to its actual value in the
19521 # expansion.
19522 for file in `sed -n "
19523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19525 # Make sure the directory exists.
19526 test -f "$dirpart/$file" && continue
19527 fdir=`$as_dirname -- "$file" ||
19528$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19529 X"$file" : 'X\(//\)[^/]' \| \
19530 X"$file" : 'X\(//\)$' \| \
19531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19532$as_echo X"$file" |
19533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19534 s//\1/
19535 q
19536 }
19537 /^X\(\/\/\)[^/].*/{
19538 s//\1/
19539 q
19540 }
19541 /^X\(\/\/\)$/{
19542 s//\1/
19543 q
19544 }
19545 /^X\(\/\).*/{
19546 s//\1/
19547 q
19548 }
19549 s/.*/./; q'`
19550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19551 # echo "creating $dirpart/$file"
19552 echo '# dummy' > "$dirpart/$file"
19553 done
19554 done
19555}
19556 ;;
19557 "libtool":C)
19558
19559 # See if we are running on zsh, and set the options which allow our
19560 # commands through without removal of \ escapes.
19561 if test -n "${ZSH_VERSION+set}" ; then
19562 setopt NO_GLOB_SUBST
19563 fi
19564
19565 cfgfile="${ofile}T"
19566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19567 $RM "$cfgfile"
19568
19569 cat <<_LT_EOF >> "$cfgfile"
19570#! $SHELL
19571
19572# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19573# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19575# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19576#
19577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19578# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19579# Foundation, Inc.
19580# Written by Gordon Matzigkeit, 1996
19581#
19582# This file is part of GNU Libtool.
19583#
19584# GNU Libtool is free software; you can redistribute it and/or
19585# modify it under the terms of the GNU General Public License as
19586# published by the Free Software Foundation; either version 2 of
19587# the License, or (at your option) any later version.
19588#
19589# As a special exception to the GNU General Public License,
19590# if you distribute this file as part of a program or library that
19591# is built using GNU Libtool, you may include this file under the
19592# same distribution terms that you use for the rest of that program.
19593#
19594# GNU Libtool is distributed in the hope that it will be useful,
19595# but WITHOUT ANY WARRANTY; without even the implied warranty of
19596# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19597# GNU General Public License for more details.
19598#
19599# You should have received a copy of the GNU General Public License
19600# along with GNU Libtool; see the file COPYING. If not, a copy
19601# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19602# obtained by writing to the Free Software Foundation, Inc.,
19603# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19604
19605
19606# The names of the tagged configurations supported by this script.
19607available_tags=""
19608
19609# ### BEGIN LIBTOOL CONFIG
19610
19611# Which release of libtool.m4 was used?
19612macro_version=$macro_version
19613macro_revision=$macro_revision
19614
19615# Whether or not to build static libraries.
19616build_old_libs=$enable_static
19617
19618# Whether or not to build shared libraries.
19619build_libtool_libs=$enable_shared
19620
19621# What type of objects to build.
19622pic_mode=$pic_mode
19623
19624# Whether or not to optimize for fast installation.
19625fast_install=$enable_fast_install
19626
19627# Shell to use when invoking shell scripts.
19628SHELL=$lt_SHELL
19629
19630# An echo program that protects backslashes.
19631ECHO=$lt_ECHO
19632
19633# The PATH separator for the build system.
19634PATH_SEPARATOR=$lt_PATH_SEPARATOR
19635
19636# The host system.
19637host_alias=$host_alias
19638host=$host
19639host_os=$host_os
19640
19641# The build system.
19642build_alias=$build_alias
19643build=$build
19644build_os=$build_os
19645
19646# A sed program that does not truncate output.
19647SED=$lt_SED
19648
19649# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19650Xsed="\$SED -e 1s/^X//"
19651
19652# A grep program that handles long lines.
19653GREP=$lt_GREP
19654
19655# An ERE matcher.
19656EGREP=$lt_EGREP
19657
19658# A literal string matcher.
19659FGREP=$lt_FGREP
19660
19661# A BSD- or MS-compatible name lister.
19662NM=$lt_NM
19663
19664# Whether we need soft or hard links.
19665LN_S=$lt_LN_S
19666
19667# What is the maximum length of a command?
19668max_cmd_len=$max_cmd_len
19669
19670# Object file suffix (normally "o").
19671objext=$ac_objext
19672
19673# Executable file suffix (normally "").
19674exeext=$exeext
19675
19676# whether the shell understands "unset".
19677lt_unset=$lt_unset
19678
19679# turn spaces into newlines.
19680SP2NL=$lt_lt_SP2NL
19681
19682# turn newlines into spaces.
19683NL2SP=$lt_lt_NL2SP
19684
19685# convert \$build file names to \$host format.
19686to_host_file_cmd=$lt_cv_to_host_file_cmd
19687
19688# convert \$build files to toolchain format.
19689to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19690
19691# An object symbol dumper.
19692OBJDUMP=$lt_OBJDUMP
19693
19694# Method to check whether dependent libraries are shared objects.
19695deplibs_check_method=$lt_deplibs_check_method
19696
19697# Command to use when deplibs_check_method = "file_magic".
19698file_magic_cmd=$lt_file_magic_cmd
19699
19700# How to find potential files when deplibs_check_method = "file_magic".
19701file_magic_glob=$lt_file_magic_glob
19702
19703# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19704want_nocaseglob=$lt_want_nocaseglob
19705
19706# DLL creation program.
19707DLLTOOL=$lt_DLLTOOL
19708
19709# Command to associate shared and link libraries.
19710sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19711
19712# The archiver.
19713AR=$lt_AR
19714
19715# Flags to create an archive.
19716AR_FLAGS=$lt_AR_FLAGS
19717
19718# How to feed a file listing to the archiver.
19719archiver_list_spec=$lt_archiver_list_spec
19720
19721# A symbol stripping program.
19722STRIP=$lt_STRIP
19723
19724# Commands used to install an old-style archive.
19725RANLIB=$lt_RANLIB
19726old_postinstall_cmds=$lt_old_postinstall_cmds
19727old_postuninstall_cmds=$lt_old_postuninstall_cmds
19728
19729# Whether to use a lock for old archive extraction.
19730lock_old_archive_extraction=$lock_old_archive_extraction
19731
19732# A C compiler.
19733LTCC=$lt_CC
19734
19735# LTCC compiler flags.
19736LTCFLAGS=$lt_CFLAGS
19737
19738# Take the output of nm and produce a listing of raw symbols and C names.
19739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19740
19741# Transform the output of nm in a proper C declaration.
19742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19743
19744# Transform the output of nm in a C name address pair.
19745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19746
19747# Transform the output of nm in a C name address pair when lib prefix is needed.
19748global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19749
19750# Specify filename containing input files for \$NM.
19751nm_file_list_spec=$lt_nm_file_list_spec
19752
19753# The root where to search for dependent libraries,and in which our libraries should be installed.
19754lt_sysroot=$lt_sysroot
19755
19756# The name of the directory that contains temporary libtool files.
19757objdir=$objdir
19758
19759# Used to examine libraries when file_magic_cmd begins with "file".
19760MAGIC_CMD=$MAGIC_CMD
19761
19762# Must we lock files when doing compilation?
19763need_locks=$lt_need_locks
19764
19765# Manifest tool.
19766MANIFEST_TOOL=$lt_MANIFEST_TOOL
19767
19768# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19769DSYMUTIL=$lt_DSYMUTIL
19770
19771# Tool to change global to local symbols on Mac OS X.
19772NMEDIT=$lt_NMEDIT
19773
19774# Tool to manipulate fat objects and archives on Mac OS X.
19775LIPO=$lt_LIPO
19776
19777# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19778OTOOL=$lt_OTOOL
19779
19780# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19781OTOOL64=$lt_OTOOL64
19782
19783# Old archive suffix (normally "a").
19784libext=$libext
19785
19786# Shared library suffix (normally ".so").
19787shrext_cmds=$lt_shrext_cmds
19788
19789# The commands to extract the exported symbol list from a shared archive.
19790extract_expsyms_cmds=$lt_extract_expsyms_cmds
19791
19792# Variables whose values should be saved in libtool wrapper scripts and
19793# restored at link time.
19794variables_saved_for_relink=$lt_variables_saved_for_relink
19795
19796# Do we need the "lib" prefix for modules?
19797need_lib_prefix=$need_lib_prefix
19798
19799# Do we need a version for libraries?
19800need_version=$need_version
19801
19802# Library versioning type.
19803version_type=$version_type
19804
19805# Shared library runtime path variable.
19806runpath_var=$runpath_var
19807
19808# Shared library path variable.
19809shlibpath_var=$shlibpath_var
19810
19811# Is shlibpath searched before the hard-coded library search path?
19812shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19813
19814# Format of library name prefix.
19815libname_spec=$lt_libname_spec
19816
19817# List of archive names. First name is the real one, the rest are links.
19818# The last name is the one that the linker finds with -lNAME
19819library_names_spec=$lt_library_names_spec
19820
19821# The coded name of the library, if different from the real name.
19822soname_spec=$lt_soname_spec
19823
19824# Permission mode override for installation of shared libraries.
19825install_override_mode=$lt_install_override_mode
19826
19827# Command to use after installation of a shared archive.
19828postinstall_cmds=$lt_postinstall_cmds
19829
19830# Command to use after uninstallation of a shared archive.
19831postuninstall_cmds=$lt_postuninstall_cmds
19832
19833# Commands used to finish a libtool library installation in a directory.
19834finish_cmds=$lt_finish_cmds
19835
19836# As "finish_cmds", except a single script fragment to be evaled but
19837# not shown.
19838finish_eval=$lt_finish_eval
19839
19840# Whether we should hardcode library paths into libraries.
19841hardcode_into_libs=$hardcode_into_libs
19842
19843# Compile-time system search path for libraries.
19844sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19845
19846# Run-time system search path for libraries.
19847sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19848
19849# Whether dlopen is supported.
19850dlopen_support=$enable_dlopen
19851
19852# Whether dlopen of programs is supported.
19853dlopen_self=$enable_dlopen_self
19854
19855# Whether dlopen of statically linked programs is supported.
19856dlopen_self_static=$enable_dlopen_self_static
19857
19858# Commands to strip libraries.
19859old_striplib=$lt_old_striplib
19860striplib=$lt_striplib
19861
19862
19863# The linker used to build libraries.
19864LD=$lt_LD
19865
19866# How to create reloadable object files.
19867reload_flag=$lt_reload_flag
19868reload_cmds=$lt_reload_cmds
19869
19870# Commands used to build an old-style archive.
19871old_archive_cmds=$lt_old_archive_cmds
19872
19873# A language specific compiler.
19874CC=$lt_compiler
19875
19876# Is the compiler the GNU compiler?
19877with_gcc=$GCC
19878
19879# Compiler flag to turn off builtin functions.
19880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19881
19882# Additional compiler flags for building library objects.
19883pic_flag=$lt_lt_prog_compiler_pic
19884
19885# How to pass a linker flag through the compiler.
19886wl=$lt_lt_prog_compiler_wl
19887
19888# Compiler flag to prevent dynamic linking.
19889link_static_flag=$lt_lt_prog_compiler_static
19890
19891# Does compiler simultaneously support -c and -o options?
19892compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19893
19894# Whether or not to add -lc for building shared libraries.
19895build_libtool_need_lc=$archive_cmds_need_lc
19896
19897# Whether or not to disallow shared libs when runtime libs are static.
19898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19899
19900# Compiler flag to allow reflexive dlopens.
19901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19902
19903# Compiler flag to generate shared objects directly from archives.
19904whole_archive_flag_spec=$lt_whole_archive_flag_spec
19905
19906# Whether the compiler copes with passing no objects directly.
19907compiler_needs_object=$lt_compiler_needs_object
19908
19909# Create an old-style archive from a shared archive.
19910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19911
19912# Create a temporary old-style archive to link instead of a shared archive.
19913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19914
19915# Commands used to build a shared archive.
19916archive_cmds=$lt_archive_cmds
19917archive_expsym_cmds=$lt_archive_expsym_cmds
19918
19919# Commands used to build a loadable module if different from building
19920# a shared archive.
19921module_cmds=$lt_module_cmds
19922module_expsym_cmds=$lt_module_expsym_cmds
19923
19924# Whether we are building with GNU ld or not.
19925with_gnu_ld=$lt_with_gnu_ld
19926
19927# Flag that allows shared libraries with undefined symbols to be built.
19928allow_undefined_flag=$lt_allow_undefined_flag
19929
19930# Flag that enforces no undefined symbols.
19931no_undefined_flag=$lt_no_undefined_flag
19932
19933# Flag to hardcode \$libdir into a binary during linking.
19934# This must work even if \$libdir does not exist
19935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19936
19937# Whether we need a single "-rpath" flag with a separated argument.
19938hardcode_libdir_separator=$lt_hardcode_libdir_separator
19939
19940# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19941# DIR into the resulting binary.
19942hardcode_direct=$hardcode_direct
19943
19944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19945# DIR into the resulting binary and the resulting library dependency is
19946# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19947# library is relocated.
19948hardcode_direct_absolute=$hardcode_direct_absolute
19949
19950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19951# into the resulting binary.
19952hardcode_minus_L=$hardcode_minus_L
19953
19954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19955# into the resulting binary.
19956hardcode_shlibpath_var=$hardcode_shlibpath_var
19957
19958# Set to "yes" if building a shared library automatically hardcodes DIR
19959# into the library and all subsequent libraries and executables linked
19960# against it.
19961hardcode_automatic=$hardcode_automatic
19962
19963# Set to yes if linker adds runtime paths of dependent libraries
19964# to runtime path list.
19965inherit_rpath=$inherit_rpath
19966
19967# Whether libtool must link a program against all its dependency libraries.
19968link_all_deplibs=$link_all_deplibs
19969
19970# Set to "yes" if exported symbols are required.
19971always_export_symbols=$always_export_symbols
19972
19973# The commands to list exported symbols.
19974export_symbols_cmds=$lt_export_symbols_cmds
19975
19976# Symbols that should not be listed in the preloaded symbols.
19977exclude_expsyms=$lt_exclude_expsyms
19978
19979# Symbols that must always be exported.
19980include_expsyms=$lt_include_expsyms
19981
19982# Commands necessary for linking programs (against libraries) with templates.
19983prelink_cmds=$lt_prelink_cmds
19984
19985# Commands necessary for finishing linking programs.
19986postlink_cmds=$lt_postlink_cmds
19987
19988# Specify filename containing input files.
19989file_list_spec=$lt_file_list_spec
19990
19991# How to hardcode a shared library path into an executable.
19992hardcode_action=$hardcode_action
19993
19994# ### END LIBTOOL CONFIG
19995
19996_LT_EOF
19997
19998 case $host_os in
19999 aix3*)
20000 cat <<\_LT_EOF >> "$cfgfile"
20001# AIX sometimes has problems with the GCC collect2 program. For some
20002# reason, if we set the COLLECT_NAMES environment variable, the problems
20003# vanish in a puff of smoke.
20004if test "X${COLLECT_NAMES+set}" != Xset; then
20005 COLLECT_NAMES=
20006 export COLLECT_NAMES
20007fi
20008_LT_EOF
20009 ;;
20010 esac
20011
20012
20013ltmain="$ac_aux_dir/ltmain.sh"
20014
20015
20016 # We use sed instead of cat because bash on DJGPP gets confused if
20017 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20018 # text mode, it properly converts lines to CR/LF. This bash problem
20019 # is reportedly fixed, but why not run on old versions too?
20020 sed '$q' "$ltmain" >> "$cfgfile" \
20021 || (rm -f "$cfgfile"; exit 1)
20022
20023 if test x"$xsi_shell" = xyes; then
20024 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20025func_dirname ()\
20026{\
20027\ case ${1} in\
20028\ */*) func_dirname_result="${1%/*}${2}" ;;\
20029\ * ) func_dirname_result="${3}" ;;\
20030\ esac\
20031} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20032 && mv -f "$cfgfile.tmp" "$cfgfile" \
20033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20034test 0 -eq $? || _lt_function_replace_fail=:
20035
20036
20037 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20038func_basename ()\
20039{\
20040\ func_basename_result="${1##*/}"\
20041} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20042 && mv -f "$cfgfile.tmp" "$cfgfile" \
20043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20044test 0 -eq $? || _lt_function_replace_fail=:
20045
20046
20047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20048func_dirname_and_basename ()\
20049{\
20050\ case ${1} in\
20051\ */*) func_dirname_result="${1%/*}${2}" ;;\
20052\ * ) func_dirname_result="${3}" ;;\
20053\ esac\
20054\ func_basename_result="${1##*/}"\
20055} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20056 && mv -f "$cfgfile.tmp" "$cfgfile" \
20057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20058test 0 -eq $? || _lt_function_replace_fail=:
20059
20060
20061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20062func_stripname ()\
20063{\
20064\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20065\ # positional parameters, so assign one to ordinary parameter first.\
20066\ func_stripname_result=${3}\
20067\ func_stripname_result=${func_stripname_result#"${1}"}\
20068\ func_stripname_result=${func_stripname_result%"${2}"}\
20069} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20070 && mv -f "$cfgfile.tmp" "$cfgfile" \
20071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072test 0 -eq $? || _lt_function_replace_fail=:
20073
20074
20075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20076func_split_long_opt ()\
20077{\
20078\ func_split_long_opt_name=${1%%=*}\
20079\ func_split_long_opt_arg=${1#*=}\
20080} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20081 && mv -f "$cfgfile.tmp" "$cfgfile" \
20082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20083test 0 -eq $? || _lt_function_replace_fail=:
20084
20085
20086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20087func_split_short_opt ()\
20088{\
20089\ func_split_short_opt_arg=${1#??}\
20090\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20091} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20092 && mv -f "$cfgfile.tmp" "$cfgfile" \
20093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20094test 0 -eq $? || _lt_function_replace_fail=:
20095
20096
20097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20098func_lo2o ()\
20099{\
20100\ case ${1} in\
20101\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20102\ *) func_lo2o_result=${1} ;;\
20103\ esac\
20104} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20105 && mv -f "$cfgfile.tmp" "$cfgfile" \
20106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20107test 0 -eq $? || _lt_function_replace_fail=:
20108
20109
20110 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20111func_xform ()\
20112{\
20113 func_xform_result=${1%.*}.lo\
20114} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20115 && mv -f "$cfgfile.tmp" "$cfgfile" \
20116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20117test 0 -eq $? || _lt_function_replace_fail=:
20118
20119
20120 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20121func_arith ()\
20122{\
20123 func_arith_result=$(( $* ))\
20124} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20125 && mv -f "$cfgfile.tmp" "$cfgfile" \
20126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127test 0 -eq $? || _lt_function_replace_fail=:
20128
20129
20130 sed -e '/^func_len ()$/,/^} # func_len /c\
20131func_len ()\
20132{\
20133 func_len_result=${#1}\
20134} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20135 && mv -f "$cfgfile.tmp" "$cfgfile" \
20136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20137test 0 -eq $? || _lt_function_replace_fail=:
20138
20139fi
20140
20141if test x"$lt_shell_append" = xyes; then
20142 sed -e '/^func_append ()$/,/^} # func_append /c\
20143func_append ()\
20144{\
20145 eval "${1}+=\\${2}"\
20146} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20147 && mv -f "$cfgfile.tmp" "$cfgfile" \
20148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20149test 0 -eq $? || _lt_function_replace_fail=:
20150
20151
20152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20153func_append_quoted ()\
20154{\
20155\ func_quote_for_eval "${2}"\
20156\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20157} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20158 && mv -f "$cfgfile.tmp" "$cfgfile" \
20159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20160test 0 -eq $? || _lt_function_replace_fail=:
20161
20162
20163 # Save a `func_append' function call where possible by direct use of '+='
20164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20165 && mv -f "$cfgfile.tmp" "$cfgfile" \
20166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20167 test 0 -eq $? || _lt_function_replace_fail=:
20168else
20169 # Save a `func_append' function call even when '+=' is not available
20170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20171 && mv -f "$cfgfile.tmp" "$cfgfile" \
20172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20173 test 0 -eq $? || _lt_function_replace_fail=:
20174fi
20175
20176if test x"$_lt_function_replace_fail" = x":"; then
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20178$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20179fi
20180
20181
20182 mv -f "$cfgfile" "$ofile" ||
20183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20184 chmod +x "$ofile"
20185
20186 ;;
2eff3833 20187 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
20188
20189 esac
631ef239 20190done # for ac_tag
212380e3 20191
212380e3 20192
7083c021 20193as_fn_exit 0
212380e3 20194_ACEOF
212380e3
AC
20195ac_clean_files=$ac_clean_files_save
20196
7083c021 20197test $ac_write_fail = 0 ||
b6d0720c 20198 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 20199
212380e3
AC
20200
20201# configure is writing to config.log, and then calls config.status.
20202# config.status does its own redirection, appending to config.log.
20203# Unfortunately, on DOS this fails, as config.log is still kept open
20204# by configure, so config.status won't be able to write to it; its
20205# output is simply discarded. So we exec the FD to /dev/null,
20206# effectively closing config.log, so it can be properly (re)opened and
20207# appended to by config.status. When coming back to configure, we
20208# need to make the FD available again.
20209if test "$no_create" != yes; then
20210 ac_cs_success=:
20211 ac_config_status_args=
20212 test "$silent" = yes &&
20213 ac_config_status_args="$ac_config_status_args --quiet"
20214 exec 5>/dev/null
20215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20216 exec 5>>config.log
20217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20218 # would make configure fail if this is the last instruction.
b6d0720c 20219 $ac_cs_success || as_fn_exit 1
212380e3 20220fi
1db8e007
JT
20221
20222#
20223# CONFIG_SUBDIRS section.
20224#
20225if test "$no_recursion" != yes; then
20226
20227 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20228 # so they do not pile up.
20229 ac_sub_configure_args=
20230 ac_prev=
20231 eval "set x $ac_configure_args"
20232 shift
20233 for ac_arg
20234 do
20235 if test -n "$ac_prev"; then
20236 ac_prev=
20237 continue
20238 fi
20239 case $ac_arg in
20240 -cache-file | --cache-file | --cache-fil | --cache-fi \
20241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20242 ac_prev=cache_file ;;
20243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20245 | --c=*)
20246 ;;
20247 --config-cache | -C)
20248 ;;
20249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20250 ac_prev=srcdir ;;
20251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20252 ;;
20253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20254 ac_prev=prefix ;;
20255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20256 ;;
20257 --disable-option-checking)
20258 ;;
20259 *)
20260 case $ac_arg in
20261 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20262 esac
20263 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20264 esac
20265 done
20266
20267 # Always prepend --prefix to ensure using the same prefix
20268 # in subdir configurations.
20269 ac_arg="--prefix=$prefix"
20270 case $ac_arg in
20271 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20272 esac
20273 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20274
20275 # Pass --silent
20276 if test "$silent" = yes; then
20277 ac_sub_configure_args="--silent $ac_sub_configure_args"
20278 fi
20279
20280 # Always prepend --disable-option-checking to silence warnings, since
20281 # different subdirs can have different --enable and --with options.
20282 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20283
20284 ac_popdir=`pwd`
20285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20286
20287 # Do not complain, so a configure script can configure whichever
20288 # parts of a large source tree are present.
20289 test -d "$srcdir/$ac_dir" || continue
20290
20291 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20292 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20293 $as_echo "$ac_msg" >&6
20294 as_dir="$ac_dir"; as_fn_mkdir_p
20295 ac_builddir=.
20296
20297case "$ac_dir" in
20298.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20299*)
20300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20301 # A ".." for each directory in $ac_dir_suffix.
20302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20303 case $ac_top_builddir_sub in
20304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20306 esac ;;
20307esac
20308ac_abs_top_builddir=$ac_pwd
20309ac_abs_builddir=$ac_pwd$ac_dir_suffix
20310# for backward compatibility:
20311ac_top_builddir=$ac_top_build_prefix
20312
20313case $srcdir in
20314 .) # We are building in place.
20315 ac_srcdir=.
20316 ac_top_srcdir=$ac_top_builddir_sub
20317 ac_abs_top_srcdir=$ac_pwd ;;
20318 [\\/]* | ?:[\\/]* ) # Absolute name.
20319 ac_srcdir=$srcdir$ac_dir_suffix;
20320 ac_top_srcdir=$srcdir
20321 ac_abs_top_srcdir=$srcdir ;;
20322 *) # Relative name.
20323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20324 ac_top_srcdir=$ac_top_build_prefix$srcdir
20325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20326esac
20327ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20328
20329
20330 cd "$ac_dir"
20331
20332 # Check for guested configure; otherwise get Cygnus style configure.
20333 if test -f "$ac_srcdir/configure.gnu"; then
20334 ac_sub_configure=$ac_srcdir/configure.gnu
20335 elif test -f "$ac_srcdir/configure"; then
20336 ac_sub_configure=$ac_srcdir/configure
20337 elif test -f "$ac_srcdir/configure.in"; then
20338 # This should be Cygnus configure.
20339 ac_sub_configure=$ac_aux_dir/configure
20340 else
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20342$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20343 ac_sub_configure=
20344 fi
20345
20346 # The recursion is here.
20347 if test -n "$ac_sub_configure"; then
20348 # Make the cache file name correct relative to the subdirectory.
20349 case $cache_file in
20350 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20351 *) # Relative name.
20352 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20353 esac
20354
20355 { $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
20356$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20357 # The eval makes quoting arguments work.
20358 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20359 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20360 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20361 fi
20362
20363 cd "$ac_popdir"
20364 done
20365fi
7083c021
AC
20366if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20368$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20369fi
b676ea3b 20370
212380e3
AC
20371
20372if test "$cf_openssl_version_ok" = yes; then
20373 openssl="yes"
20374else
20375 openssl="no"
20376fi
20377
212380e3 20378echo "
b6d0720c 20379Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
20380 Install directory : $prefix
20381
20382 Ziplinks : $zlib
20383 OpenSSL : $openssl
212380e3
AC
20384 Small network : $small_net
20385 Block allocator : $balloc
212380e3
AC
20386
20387 Nickname length : $NICKLEN
20388 Topic length : $TOPICLEN
20389
b6d0720c 20390Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 20391"