]> jfr.im git - solanum.git/blame_incremental - configure
msgbuf: msgbuf_unparse_tags(): don't send a tags sigil unless tags will actually...
[solanum.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
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'
54 else
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'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
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 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
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=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
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
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
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 || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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;}
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
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
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
199test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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 :
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
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."
274 else
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."
279 fi
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"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
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
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
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
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
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
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'`
464
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
471
472
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; }
495
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
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
506}
507
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
520
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.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
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
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
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'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566lt_ltdl_dir='libltdl'
567
568lt_dlopen_dir="$lt_ltdl_dir"
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='charybdis'
593PACKAGE_TARNAME='charybdis'
594PACKAGE_VERSION='3.6.0-dev'
595PACKAGE_STRING='charybdis 3.6.0-dev'
596PACKAGE_BUGREPORT=''
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_default_prefix=$HOME/ircd
636enable_option_checking=no
637ac_subst_vars='ltdl_LTLIBOBJS
638ltdl_LIBOBJS
639am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641LTLIBOBJS
642LIBOBJS
643SEDOBJ
644IRC_CFLAGS
645PICFLAGS
646SSL_LIBS
647SSL_INCLUDES
648SSL_SRCS_ENABLE
649MOD_TARGET
650MODULES_LIBS
651PROGRAM_PREFIX
652PKGRUNDIR
653moduledir
654MODULE_DIR
655helpdir
656HELP_DIR
657logdir
658LOG_DIR
659ETC_DIR
660SQLITE_OBJ
661SQLITE_INCLUDES
662SQLITE_LD
663SQLITE_LIBS
664SQLITE_CFLAGS
665PKG_CONFIG_LIBDIR
666PKG_CONFIG_PATH
667PKG_CONFIG
668ZLIB_LD
669ENCSPEED
670ALLOCA
671CRYPT_LIB
672PKGLIBEXECDIR
673pkglibexecdir
674PKGLOCALSTATEDIR
675pkglocalstatedir
676pkgrundir
677rundir
678pkglibdir
679LEXLIB
680LEX_OUTPUT_ROOT
681LEX
682YFLAGS
683YACC
684TOUCH
685LN
686MV
687CP
688RM
689BUILD_LTDL_FALSE
690BUILD_LTDL_TRUE
691LTDLOPEN
692LT_CONFIG_H
693CONVENIENCE_LTDL_FALSE
694CONVENIENCE_LTDL_TRUE
695INSTALL_LTDL_FALSE
696INSTALL_LTDL_TRUE
697ARGZ_H
698sys_symbol_underscore
699LIBADD_DL
700LT_DLPREOPEN
701LIBADD_DLD_LINK
702LIBADD_SHL_LOAD
703LIBADD_DLOPEN
704LT_DLLOADERS
705INCLTDL
706LTDLINCL
707LTDLDEPS
708LIBLTDL
709OTOOL64
710OTOOL
711LIPO
712NMEDIT
713DSYMUTIL
714MANIFEST_TOOL
715RANLIB
716DLLTOOL
717OBJDUMP
718LN_S
719NM
720ac_ct_DUMPBIN
721DUMPBIN
722LD
723FGREP
724SED
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
733LIBTOOL
734ac_ct_AR
735AR
736AM_BACKSLASH
737AM_DEFAULT_VERBOSITY
738AM_DEFAULT_V
739AM_V
740am__fastdepCC_FALSE
741am__fastdepCC_TRUE
742CCDEPMODE
743am__nodep
744AMDEPBACKSLASH
745AMDEP_FALSE
746AMDEP_TRUE
747am__quote
748am__include
749DEPDIR
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773subdirs
774EGREP
775GREP
776CPP
777OBJEXT
778EXEEXT
779ac_ct_CC
780CPPFLAGS
781LDFLAGS
782CFLAGS
783CC
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
821SHELL'
822ac_subst_files=''
823ac_user_opts='
824enable_option_checking
825enable_dependency_tracking
826enable_silent_rules
827enable_static
828enable_shared
829with_pic
830enable_fast_install
831with_gnu_ld
832with_sysroot
833enable_libtool_lock
834with_included_ltdl
835with_ltdl_include
836with_ltdl_lib
837enable_ltdl_install
838enable_fhs_paths
839enable_ipv6
840enable_openssl
841with_zlib_path
842enable_zlib
843with_shared_sqlite
844with_confdir
845with_logdir
846with_helpdir
847with_moduledir
848with_rundir
849with_program_prefix
850with_custom_branding
851with_custom_version
852enable_assert
853enable_profile
854with_nicklen
855with_topiclen
856enable_warnings
857'
858 ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CPP
867YACC
868YFLAGS
869PKG_CONFIG
870PKG_CONFIG_PATH
871PKG_CONFIG_LIBDIR
872SQLITE_CFLAGS
873SQLITE_LIBS'
874ac_subdirs_all='libratbox
875libltdl'
876
877# Initialize some variables set by options.
878ac_init_help=
879ac_init_version=false
880ac_unrecognized_opts=
881ac_unrecognized_sep=
882# The variables have the same names as the options, with
883# dashes changed to underlines.
884cache_file=/dev/null
885exec_prefix=NONE
886no_create=
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
895verbose=
896x_includes=NONE
897x_libraries=NONE
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
904# (The list follows the same order as the GNU Coding Standards.)
905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
913includedir='${prefix}/include'
914oldincludedir='/usr/include'
915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
924
925ac_prev=
926ac_dashdash=
927for ac_option
928do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *=) ac_optarg= ;;
939 *) ac_optarg=yes ;;
940 esac
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219"with_$ac_useropt"
1220"*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235"with_$ac_useropt"
1236"*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261Try \`$0 --help' for more information"
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 ;;
1281
1282 esac
1283done
1284
1285if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1288fi
1289
1290if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1296fi
1297
1298# Check all directory arguments for consistency.
1299for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303do
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317done
1318
1319# There might be people who depend on the old broken behavior: `$host'
1320# used to hold the argument of --host etc.
1321# FIXME: To remove some day.
1322build=$build_alias
1323host=$host_alias
1324target=$target_alias
1325
1326# FIXME: To remove some day.
1327if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
1340
1341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358$as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380else
1381 ac_srcdir_defaulted=no
1382fi
1383if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386fi
1387ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391# When building in place, set srcdir=.
1392if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394fi
1395# Remove unnecessary trailing slashes from srcdir.
1396# Double slashes in file names in object file debugging info
1397# mess up M-x gdb in Emacs.
1398case $srcdir in
1399*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400esac
1401for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406done
1407
1408#
1409# Report the --help message.
1410#
1411if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415\`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems.
1416
1417Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422Defaults for the options are specified in brackets.
1423
1424Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441By default, \`make install' will install all the files in
1442\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444for instance \`--prefix=\$HOME'.
1445
1446For better control, use the options below.
1447
1448Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468_ACEOF
1469
1470 cat <<\_ACEOF
1471
1472Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480_ACEOF
1481fi
1482
1483if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-static[=PKGS] build static libraries [default=no]
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-ltdl-install install libltdl
1505 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
1506 --enable-ipv6 Enable IPv6 support
1507 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1508 --disable-openssl Disable OpenSSL support.
1509 --disable-zlib Disable ziplinks support
1510 --enable-assert Enable assert(). Choose between soft(warnings) and
1511 hard(aborts the daemon)
1512 --enable-profile Enable profiling
1513 --enable-warnings Enable all sorts of warnings for debugging.
1514
1515Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-sysroot=DIR Search for dependent libraries within DIR
1522 (or the compiler's sysroot if not specified).
1523 --with-included-ltdl use the GNU ltdl sources included here
1524 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1525 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1526 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1527 --with-shared-sqlite Use shared sqlite
1528 --with-confdir=DIR Directory to install config files [deprecated, use
1529 --sysconfdir instead].
1530 --with-logdir=DIR Directory where to write logfiles.
1531 --with-helpdir=DIR Directory to install help files.
1532 --with-moduledir=DIR Directory to install modules.
1533 --with-rundir=DIR Directory in which to store pidfile.
1534 --with-program-prefix= If set, programs installed into PATH will be
1535 installed with names prefixed by this prefix.
1536 --with-custom-branding=NAME
1537 Custom branding name.
1538 --with-custom-version=NAME
1539 Custom version branding.
1540 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
1541 31, max 50)
1542 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1543 390)
1544
1545Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554 YACC The `Yet Another Compiler Compiler' implementation to use.
1555 Defaults to the first program found out of: `bison -y', `byacc',
1556 `yacc'.
1557 YFLAGS The list of arguments that will be passed by default to $YACC.
1558 This script will default YFLAGS to the empty string to avoid a
1559 default value of `-d' given by some make applications.
1560 PKG_CONFIG path to pkg-config utility
1561 PKG_CONFIG_PATH
1562 directories to add to pkg-config's search path
1563 PKG_CONFIG_LIBDIR
1564 path overriding pkg-config's built-in search path
1565 SQLITE_CFLAGS
1566 C compiler flags for SQLITE, overriding pkg-config
1567 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572Report bugs to the package provider.
1573_ACEOF
1574ac_status=$?
1575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
1583 ac_builddir=.
1584
1585case "$ac_dir" in
1586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587*)
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595esac
1596ac_abs_top_builddir=$ac_pwd
1597ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598# for backward compatibility:
1599ac_top_builddir=$ac_top_build_prefix
1600
1601case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614esac
1615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634 cat <<\_ACEOF
1635charybdis configure 3.6.0-dev
1636generated by GNU Autoconf 2.69
1637
1638Copyright (C) 2012 Free Software Foundation, Inc.
1639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
1641_ACEOF
1642 exit
1643fi
1644
1645## ------------------------ ##
1646## Autoconf initialization. ##
1647## ------------------------ ##
1648
1649# ac_fn_c_try_compile LINENO
1650# --------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_compile ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_compile
1686
1687# ac_fn_c_try_cpp LINENO
1688# ----------------------
1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_cpp ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 }; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_cpp
1723
1724# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725# -------------------------------------------------------
1726# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727# the include files in INCLUDES and setting the cache variable VAR
1728# accordingly.
1729ac_fn_c_check_header_mongrel ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if eval \${$3+:} false; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741else
1742 # Is the header compilable?
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744$as_echo_n "checking $2 usability... " >&6; }
1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747$4
1748#include <$2>
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1752else
1753 ac_header_compiler=no
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757$as_echo "$ac_header_compiler" >&6; }
1758
1759# Is the header present?
1760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761$as_echo_n "checking $2 presence... " >&6; }
1762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h. */
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1768else
1769 ac_header_preproc=no
1770fi
1771rm -f conftest.err conftest.i conftest.$ac_ext
1772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773$as_echo "$ac_header_preproc" >&6; }
1774
1775# So? What about this header?
1776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1777 yes:no: )
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 ;;
1783 no:yes:* )
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ;;
1795esac
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1800else
1801 eval "$3=\$ac_header_compiler"
1802fi
1803eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805$as_echo "$ac_res" >&6; }
1806fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_mongrel
1810
1811# ac_fn_c_try_run LINENO
1812# ----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814# that executables *can* be run.
1815ac_fn_c_try_run ()
1816{
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=$ac_status
1846fi
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_run
1852
1853# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854# -------------------------------------------------------
1855# Tests whether HEADER exists and can be compiled using the include files in
1856# INCLUDES, setting the cache variable VAR accordingly.
1857ac_fn_c_check_header_compile ()
1858{
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867$4
1868#include <$2>
1869_ACEOF
1870if ac_fn_c_try_compile "$LINENO"; then :
1871 eval "$3=yes"
1872else
1873 eval "$3=no"
1874fi
1875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_header_compile
1883
1884# ac_fn_c_try_link LINENO
1885# -----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_link ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_link
1929
1930# ac_fn_c_check_func LINENO FUNC VAR
1931# ----------------------------------
1932# Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945#define $2 innocuous_$2
1946
1947/* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952#ifdef __STDC__
1953# include <limits.h>
1954#else
1955# include <assert.h>
1956#endif
1957
1958#undef $2
1959
1960/* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963#ifdef __cplusplus
1964extern "C"
1965#endif
1966char $2 ();
1967/* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970#if defined __stub_$2 || defined __stub___$2
1971choke me
1972#endif
1973
1974int
1975main ()
1976{
1977return $2 ();
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984else
1985 eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_func
1996
1997# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1998# ---------------------------------------------
1999# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2000# accordingly.
2001ac_fn_c_check_decl ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 as_decl_name=`echo $2|sed 's/ *(.*//'`
2005 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2007$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2008if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014int
2015main ()
2016{
2017#ifndef $as_decl_name
2018#ifdef __cplusplus
2019 (void) $as_decl_use;
2020#else
2021 (void) $as_decl_name;
2022#endif
2023#endif
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031else
2032 eval "$3=no"
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_c_check_decl
2042
2043# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2044# -------------------------------------------
2045# Tests whether TYPE exists after having included INCLUDES, setting cache
2046# variable VAR accordingly.
2047ac_fn_c_check_type ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051$as_echo_n "checking for $2... " >&6; }
2052if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054else
2055 eval "$3=no"
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059int
2060main ()
2061{
2062if (sizeof ($2))
2063 return 0;
2064 ;
2065 return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
2072int
2073main ()
2074{
2075if (sizeof (($2)))
2076 return 0;
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082
2083else
2084 eval "$3=yes"
2085fi
2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095} # ac_fn_c_check_type
2096
2097# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098# --------------------------------------------
2099# Tries to find the compile-time value of EXPR in a program that includes
2100# INCLUDES, setting VAR accordingly. Returns whether the value could be
2101# computed
2102ac_fn_c_compute_int ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113static int test_array [1 - 2 * !(($2) >= 0)];
2114test_array [0] = 0;
2115return test_array [0];
2116
2117 ;
2118 return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_lo=0 ac_mid=0
2123 while :; do
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$4
2127int
2128main ()
2129{
2130static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131test_array [0] = 0;
2132return test_array [0];
2133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=$ac_mid; break
2140else
2141 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142 if test $ac_lo -le $ac_mid; then
2143 ac_lo= ac_hi=
2144 break
2145 fi
2146 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 done
2150else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154int
2155main ()
2156{
2157static int test_array [1 - 2 * !(($2) < 0)];
2158test_array [0] = 0;
2159return test_array [0];
2160
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_hi=-1 ac_mid=-1
2167 while :; do
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170$4
2171int
2172main ()
2173{
2174static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2175test_array [0] = 0;
2176return test_array [0];
2177
2178 ;
2179 return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_lo=$ac_mid; break
2184else
2185 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2186 if test $ac_mid -le $ac_hi; then
2187 ac_lo= ac_hi=
2188 break
2189 fi
2190 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194else
2195 ac_lo= ac_hi=
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200# Binary search between lo and hi bounds.
2201while test "x$ac_lo" != "x$ac_hi"; do
2202 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$4
2206int
2207main ()
2208{
2209static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210test_array [0] = 0;
2211return test_array [0];
2212
2213 ;
2214 return 0;
2215}
2216_ACEOF
2217if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_hi=$ac_mid
2219else
2220 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223done
2224case $ac_lo in #((
2225?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226'') ac_retval=1 ;;
2227esac
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$4
2232static long int longval () { return $2; }
2233static unsigned long int ulongval () { return $2; }
2234#include <stdio.h>
2235#include <stdlib.h>
2236int
2237main ()
2238{
2239
2240 FILE *f = fopen ("conftest.val", "w");
2241 if (! f)
2242 return 1;
2243 if (($2) < 0)
2244 {
2245 long int i = longval ();
2246 if (i != ($2))
2247 return 1;
2248 fprintf (f, "%ld", i);
2249 }
2250 else
2251 {
2252 unsigned long int i = ulongval ();
2253 if (i != ($2))
2254 return 1;
2255 fprintf (f, "%lu", i);
2256 }
2257 /* Do not output a trailing newline, as this causes \r\n confusion
2258 on some platforms. */
2259 return ferror (f) || fclose (f) != 0;
2260
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_run "$LINENO"; then :
2266 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267else
2268 ac_retval=1
2269fi
2270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271 conftest.$ac_objext conftest.beam conftest.$ac_ext
2272rm -f conftest.val
2273
2274 fi
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 as_fn_set_status $ac_retval
2277
2278} # ac_fn_c_compute_int
2279cat >config.log <<_ACEOF
2280This file contains any messages produced by compilers while
2281running configure, to aid debugging if configure makes a mistake.
2282
2283It was created by charybdis $as_me 3.6.0-dev, which was
2284generated by GNU Autoconf 2.69. Invocation command line was
2285
2286 $ $0 $@
2287
2288_ACEOF
2289exec 5>>config.log
2290{
2291cat <<_ASUNAME
2292## --------- ##
2293## Platform. ##
2294## --------- ##
2295
2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2297uname -m = `(uname -m) 2>/dev/null || echo unknown`
2298uname -r = `(uname -r) 2>/dev/null || echo unknown`
2299uname -s = `(uname -s) 2>/dev/null || echo unknown`
2300uname -v = `(uname -v) 2>/dev/null || echo unknown`
2301
2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2303/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2304
2305/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2306/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2308/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2309/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2310/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2311/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2312
2313_ASUNAME
2314
2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316for as_dir in $PATH
2317do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 $as_echo "PATH: $as_dir"
2321 done
2322IFS=$as_save_IFS
2323
2324} >&5
2325
2326cat >&5 <<_ACEOF
2327
2328
2329## ----------- ##
2330## Core tests. ##
2331## ----------- ##
2332
2333_ACEOF
2334
2335
2336# Keep a trace of the command line.
2337# Strip out --no-create and --no-recursion so they do not pile up.
2338# Strip out --silent because we don't want to record it for future runs.
2339# Also quote any args containing shell meta-characters.
2340# Make two passes to allow for proper duplicate-argument suppression.
2341ac_configure_args=
2342ac_configure_args0=
2343ac_configure_args1=
2344ac_must_keep_next=false
2345for ac_pass in 1 2
2346do
2347 for ac_arg
2348 do
2349 case $ac_arg in
2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2352 | -silent | --silent | --silen | --sile | --sil)
2353 continue ;;
2354 *\'*)
2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 esac
2357 case $ac_pass in
2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2359 2)
2360 as_fn_append ac_configure_args1 " '$ac_arg'"
2361 if test $ac_must_keep_next = true; then
2362 ac_must_keep_next=false # Got value, back to normal.
2363 else
2364 case $ac_arg in
2365 *=* | --config-cache | -C | -disable-* | --disable-* \
2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2368 | -with-* | --with-* | -without-* | --without-* | --x)
2369 case "$ac_configure_args0 " in
2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2371 esac
2372 ;;
2373 -* ) ac_must_keep_next=true ;;
2374 esac
2375 fi
2376 as_fn_append ac_configure_args " '$ac_arg'"
2377 ;;
2378 esac
2379 done
2380done
2381{ ac_configure_args0=; unset ac_configure_args0;}
2382{ ac_configure_args1=; unset ac_configure_args1;}
2383
2384# When interrupted or exit'd, cleanup temporary files, and complete
2385# config.log. We remove comments because anyway the quotes in there
2386# would cause problems or look ugly.
2387# WARNING: Use '\'' to represent an apostrophe within the trap.
2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2389trap 'exit_status=$?
2390 # Save into config.log some information that might help in debugging.
2391 {
2392 echo
2393
2394 $as_echo "## ---------------- ##
2395## Cache variables. ##
2396## ---------------- ##"
2397 echo
2398 # The following way of writing the cache mishandles newlines in values,
2399(
2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2401 eval ac_val=\$$ac_var
2402 case $ac_val in #(
2403 *${as_nl}*)
2404 case $ac_var in #(
2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2407 esac
2408 case $ac_var in #(
2409 _ | IFS | as_nl) ;; #(
2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2411 *) { eval $ac_var=; unset $ac_var;} ;;
2412 esac ;;
2413 esac
2414 done
2415 (set) 2>&1 |
2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2417 *${as_nl}ac_space=\ *)
2418 sed -n \
2419 "s/'\''/'\''\\\\'\'''\''/g;
2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2421 ;; #(
2422 *)
2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2424 ;;
2425 esac |
2426 sort
2427)
2428 echo
2429
2430 $as_echo "## ----------------- ##
2431## Output variables. ##
2432## ----------------- ##"
2433 echo
2434 for ac_var in $ac_subst_vars
2435 do
2436 eval ac_val=\$$ac_var
2437 case $ac_val in
2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 esac
2440 $as_echo "$ac_var='\''$ac_val'\''"
2441 done | sort
2442 echo
2443
2444 if test -n "$ac_subst_files"; then
2445 $as_echo "## ------------------- ##
2446## File substitutions. ##
2447## ------------------- ##"
2448 echo
2449 for ac_var in $ac_subst_files
2450 do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 esac
2455 $as_echo "$ac_var='\''$ac_val'\''"
2456 done | sort
2457 echo
2458 fi
2459
2460 if test -s confdefs.h; then
2461 $as_echo "## ----------- ##
2462## confdefs.h. ##
2463## ----------- ##"
2464 echo
2465 cat confdefs.h
2466 echo
2467 fi
2468 test "$ac_signal" != 0 &&
2469 $as_echo "$as_me: caught signal $ac_signal"
2470 $as_echo "$as_me: exit $exit_status"
2471 } >&5
2472 rm -f core *.core core.conftest.* &&
2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2474 exit $exit_status
2475' 0
2476for ac_signal in 1 2 13 15; do
2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2478done
2479ac_signal=0
2480
2481# confdefs.h avoids OS command line length limits that DEFS can exceed.
2482rm -f -r conftest* confdefs.h
2483
2484$as_echo "/* confdefs.h */" > confdefs.h
2485
2486# Predefined preprocessor variables.
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_NAME "$PACKAGE_NAME"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_VERSION "$PACKAGE_VERSION"
2498_ACEOF
2499
2500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_STRING "$PACKAGE_STRING"
2502_ACEOF
2503
2504cat >>confdefs.h <<_ACEOF
2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2506_ACEOF
2507
2508cat >>confdefs.h <<_ACEOF
2509#define PACKAGE_URL "$PACKAGE_URL"
2510_ACEOF
2511
2512
2513# Let the site file select an alternate cache file if it wants to.
2514# Prefer an explicitly selected file to automatically selected ones.
2515ac_site_file1=NONE
2516ac_site_file2=NONE
2517if test -n "$CONFIG_SITE"; then
2518 # We do not want a PATH search for config.site.
2519 case $CONFIG_SITE in #((
2520 -*) ac_site_file1=./$CONFIG_SITE;;
2521 */*) ac_site_file1=$CONFIG_SITE;;
2522 *) ac_site_file1=./$CONFIG_SITE;;
2523 esac
2524elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2527else
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2530fi
2531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532do
2533 test "x$ac_site_file" = xNONE && continue
2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
2538 . "$ac_site_file" \
2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2541as_fn_error $? "failed to load site script $ac_site_file
2542See \`config.log' for more details" "$LINENO" 5; }
2543 fi
2544done
2545
2546if test -r "$cache_file"; then
2547 # Some versions of bash will fail to source /dev/null (special files
2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551$as_echo "$as_me: loading cache $cache_file" >&6;}
2552 case $cache_file in
2553 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554 *) . "./$cache_file";;
2555 esac
2556 fi
2557else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559$as_echo "$as_me: creating cache $cache_file" >&6;}
2560 >$cache_file
2561fi
2562
2563# Check that the precious variables saved in the cache have kept the same
2564# value.
2565ac_cache_corrupted=false
2566for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2572 set,)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,set)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,);;
2581 *)
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x $ac_old_val`
2585 ac_new_val_w=`echo x $ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589 ac_cache_corrupted=:
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2594 fi
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2596$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2598$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2599 fi;;
2600 esac
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2603 case $ac_new_val in
2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2606 esac
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610 esac
2611 fi
2612done
2613if $ac_cache_corrupted; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2619fi
2620## -------------------- ##
2621## Main body of script. ##
2622## -------------------- ##
2623
2624ac_ext=c
2625ac_cpp='$CPP $CPPFLAGS'
2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629
2630
2631
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638ac_aux_dir=
2639for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2640 if test -f "$ac_dir/install-sh"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/install-sh -c"
2643 break
2644 elif test -f "$ac_dir/install.sh"; then
2645 ac_aux_dir=$ac_dir
2646 ac_install_sh="$ac_aux_dir/install.sh -c"
2647 break
2648 elif test -f "$ac_dir/shtool"; then
2649 ac_aux_dir=$ac_dir
2650 ac_install_sh="$ac_aux_dir/shtool install -c"
2651 break
2652 fi
2653done
2654if test -z "$ac_aux_dir"; then
2655 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2656fi
2657
2658# These three variables are undocumented and unsupported,
2659# and are intended to be withdrawn in a future Autoconf release.
2660# They can cause serious problems if a builder's source tree is in a directory
2661# whose full name contains unusual characters.
2662ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2663ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2664ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2665
2666
2667# Expand $ac_aux_dir to an absolute path.
2668am_aux_dir=`cd "$ac_aux_dir" && pwd`
2669
2670ac_ext=c
2671ac_cpp='$CPP $CPPFLAGS'
2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2677set dummy ${ac_tool_prefix}gcc; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_CC+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698 done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706$as_echo "$CC" >&6; }
2707else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$ac_cv_prog_CC"; then
2715 ac_ct_CC=$CC
2716 # Extract the first word of "gcc", so it can be a program name with args.
2717set dummy gcc; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722else
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="gcc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746$as_echo "$ac_ct_CC" >&6; }
2747else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752 if test "x$ac_ct_CC" = x; then
2753 CC=""
2754 else
2755 case $cross_compiling:$ac_tool_warned in
2756yes:)
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761 CC=$ac_ct_CC
2762 fi
2763else
2764 CC="$ac_cv_prog_CC"
2765fi
2766
2767if test -z "$CC"; then
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2770set dummy ${ac_tool_prefix}cc; ac_word=$2
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772$as_echo_n "checking for $ac_word... " >&6; }
2773if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780for as_dir in $PATH
2781do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}cc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790done
2791 done
2792IFS=$as_save_IFS
2793
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799$as_echo "$CC" >&6; }
2800else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802$as_echo "no" >&6; }
2803fi
2804
2805
2806 fi
2807fi
2808if test -z "$CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810set dummy cc; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815else
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2818else
2819 ac_prog_rejected=no
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2828 ac_prog_rejected=yes
2829 continue
2830 fi
2831 ac_cv_prog_CC="cc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836 done
2837IFS=$as_save_IFS
2838
2839if test $ac_prog_rejected = yes; then
2840 # We found a bogon in the path, so make sure we never use it.
2841 set dummy $ac_cv_prog_CC
2842 shift
2843 if test $# != 0; then
2844 # We chose a different compiler from the bogus one.
2845 # However, it has the same basename, so the bogon will be chosen
2846 # first if we set CC to just the basename; use the full file name.
2847 shift
2848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2849 fi
2850fi
2851fi
2852fi
2853CC=$ac_cv_prog_CC
2854if test -n "$CC"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2856$as_echo "$CC" >&6; }
2857else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860fi
2861
2862
2863fi
2864if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 for ac_prog in cl.exe
2867 do
2868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if ${ac_cv_prog_CC+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890 done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898$as_echo "$CC" >&6; }
2899else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904
2905 test -n "$CC" && break
2906 done
2907fi
2908if test -z "$CC"; then
2909 ac_ct_CC=$CC
2910 for ac_prog in cl.exe
2911do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_ac_ct_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918else
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CC="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934 done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940if test -n "$ac_ct_CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2942$as_echo "$ac_ct_CC" >&6; }
2943else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949 test -n "$ac_ct_CC" && break
2950done
2951
2952 if test "x$ac_ct_CC" = x; then
2953 CC=""
2954 else
2955 case $cross_compiling:$ac_tool_warned in
2956yes:)
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2959ac_tool_warned=yes ;;
2960esac
2961 CC=$ac_ct_CC
2962 fi
2963fi
2964
2965fi
2966
2967
2968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970as_fn_error $? "no acceptable C compiler found in \$PATH
2971See \`config.log' for more details" "$LINENO" 5; }
2972
2973# Provide some information about the compiler.
2974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2975set X $ac_compile
2976ac_compiler=$2
2977for ac_option in --version -v -V -qversion; do
2978 { { ac_try="$ac_compiler $ac_option >&5"
2979case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2986 ac_status=$?
2987 if test -s conftest.err; then
2988 sed '10a\
2989... rest of stderr output deleted ...
2990 10q' conftest.err >conftest.er1
2991 cat conftest.er1 >&5
2992 fi
2993 rm -f conftest.er1 conftest.err
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }
2996done
2997
2998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999/* end confdefs.h. */
3000
3001int
3002main ()
3003{
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009ac_clean_files_save=$ac_clean_files
3010ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3011# Try to create an executable without -o first, disregard a.out.
3012# It will help us diagnose broken compilers, and finding out an intuition
3013# of exeext.
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3015$as_echo_n "checking whether the C compiler works... " >&6; }
3016ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3017
3018# The possible output files:
3019ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3020
3021ac_rmfiles=
3022for ac_file in $ac_files
3023do
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027 esac
3028done
3029rm -f $ac_rmfiles
3030
3031if { { ac_try="$ac_link_default"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037$as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_link_default") 2>&5
3039 ac_status=$?
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3043# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3044# in a Makefile. We should not override ac_cv_exeext if it was cached,
3045# so that the user can short-circuit this test for compilers unknown to
3046# Autoconf.
3047for ac_file in $ac_files ''
3048do
3049 test -f "$ac_file" || continue
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3052 ;;
3053 [ab].out )
3054 # We found the default executable, but exeext='' is most
3055 # certainly right.
3056 break;;
3057 *.* )
3058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3059 then :; else
3060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061 fi
3062 # We set ac_cv_exeext here because the later test for it is not
3063 # safe: cross compilers may not add the suffix if given an `-o'
3064 # argument, so we may need to know it at that point already.
3065 # Even if this section looks crufty: it has the advantage of
3066 # actually working.
3067 break;;
3068 * )
3069 break;;
3070 esac
3071done
3072test "$ac_cv_exeext" = no && ac_cv_exeext=
3073
3074else
3075 ac_file=''
3076fi
3077if test -z "$ac_file"; then :
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080$as_echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error 77 "C compiler cannot create executables
3086See \`config.log' for more details" "$LINENO" 5; }
3087else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089$as_echo "yes" >&6; }
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094$as_echo "$ac_file" >&6; }
3095ac_exeext=$ac_cv_exeext
3096
3097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098ac_clean_files=$ac_clean_files_save
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100$as_echo_n "checking for suffix of executables... " >&6; }
3101if { { ac_try="$ac_link"
3102case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3114# work properly (i.e., refer to `conftest.exe'), while it won't with
3115# `rm'.
3116for ac_file in conftest.exe conftest conftest.*; do
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 break;;
3122 * ) break;;
3123 esac
3124done
3125else
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3129See \`config.log' for more details" "$LINENO" 5; }
3130fi
3131rm -f conftest conftest$ac_cv_exeext
3132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133$as_echo "$ac_cv_exeext" >&6; }
3134
3135rm -f conftest.$ac_ext
3136EXEEXT=$ac_cv_exeext
3137ac_exeext=$EXEEXT
3138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h. */
3140#include <stdio.h>
3141int
3142main ()
3143{
3144FILE *f = fopen ("conftest.out", "w");
3145 return ferror (f) || fclose (f) != 0;
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151ac_clean_files="$ac_clean_files conftest.out"
3152# Check that the compiler produces executables we can run. If not, either
3153# the compiler is broken, or we cross compile.
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155$as_echo_n "checking whether we are cross compiling... " >&6; }
3156if test "$cross_compiling" != yes; then
3157 { { ac_try="$ac_link"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168 if { ac_try='./conftest$ac_cv_exeext'
3169 { { case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178 test $ac_status = 0; }; }; then
3179 cross_compiling=no
3180 else
3181 if test "$cross_compiling" = maybe; then
3182 cross_compiling=yes
3183 else
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186as_fn_error $? "cannot run C compiled programs.
3187If you meant to cross compile, use \`--host'.
3188See \`config.log' for more details" "$LINENO" 5; }
3189 fi
3190 fi
3191fi
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193$as_echo "$cross_compiling" >&6; }
3194
3195rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196ac_clean_files=$ac_clean_files_save
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198$as_echo_n "checking for suffix of object files... " >&6; }
3199if ${ac_cv_objext+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201else
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203/* end confdefs.h. */
3204
3205int
3206main ()
3207{
3208
3209 ;
3210 return 0;
3211}
3212_ACEOF
3213rm -f conftest.o conftest.obj
3214if { { ac_try="$ac_compile"
3215case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_compile") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; then :
3225 for ac_file in conftest.o conftest.obj conftest.*; do
3226 test -f "$ac_file" || continue;
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232done
3233else
3234 $as_echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error $? "cannot compute suffix of object files: cannot compile
3240See \`config.log' for more details" "$LINENO" 5; }
3241fi
3242rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245$as_echo "$ac_cv_objext" >&6; }
3246OBJEXT=$ac_cv_objext
3247ac_objext=$OBJEXT
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250if ${ac_cv_c_compiler_gnu+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252else
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h. */
3255
3256int
3257main ()
3258{
3259#ifndef __GNUC__
3260 choke me
3261#endif
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267if ac_fn_c_try_compile "$LINENO"; then :
3268 ac_compiler_gnu=yes
3269else
3270 ac_compiler_gnu=no
3271fi
3272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278if test $ac_compiler_gnu = yes; then
3279 GCC=yes
3280else
3281 GCC=
3282fi
3283ac_test_CFLAGS=${CFLAGS+set}
3284ac_save_CFLAGS=$CFLAGS
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286$as_echo_n "checking whether $CC accepts -g... " >&6; }
3287if ${ac_cv_prog_cc_g+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289else
3290 ac_save_c_werror_flag=$ac_c_werror_flag
3291 ac_c_werror_flag=yes
3292 ac_cv_prog_cc_g=no
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307else
3308 CFLAGS=""
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320if ac_fn_c_try_compile "$LINENO"; then :
3321
3322else
3323 ac_c_werror_flag=$ac_save_c_werror_flag
3324 CFLAGS="-g"
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336if ac_fn_c_try_compile "$LINENO"; then :
3337 ac_cv_prog_cc_g=yes
3338fi
3339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342fi
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347$as_echo "$ac_cv_prog_cc_g" >&6; }
3348if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3352 CFLAGS="-g -O2"
3353 else
3354 CFLAGS="-g"
3355 fi
3356else
3357 if test "$GCC" = yes; then
3358 CFLAGS="-O2"
3359 else
3360 CFLAGS=
3361 fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365if ${ac_cv_prog_cc_c89+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367else
3368 ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h. */
3372#include <stdarg.h>
3373#include <stdio.h>
3374struct stat;
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379 char **p;
3380 int i;
3381{
3382 return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424do
3425 CC="$ac_save_CC $ac_arg"
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_c89=$ac_arg
3428fi
3429rm -f core conftest.err conftest.$ac_objext
3430 test "x$ac_cv_prog_cc_c89" != "xno" && break
3431done
3432rm -f conftest.$ac_ext
3433CC=$ac_save_CC
3434
3435fi
3436# AC_CACHE_VAL
3437case "x$ac_cv_prog_cc_c89" in
3438 x)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3440$as_echo "none needed" >&6; } ;;
3441 xno)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3443$as_echo "unsupported" >&6; } ;;
3444 *)
3445 CC="$CC $ac_cv_prog_cc_c89"
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3447$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3448esac
3449if test "x$ac_cv_prog_cc_c89" != xno; then :
3450
3451fi
3452
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459ac_ext=c
3460ac_cpp='$CPP $CPPFLAGS'
3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3465$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3466if ${am_cv_prog_cc_c_o+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480 # Make sure it works both with $CC and with simple cc.
3481 # Following AC_PROG_CC_C_O, we do the test twice because some
3482 # compilers refuse to overwrite an existing .o file with -o,
3483 # though they will create one.
3484 am_cv_prog_cc_c_o=yes
3485 for am_i in 1 2; do
3486 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3487 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } \
3491 && test -f conftest2.$ac_objext; then
3492 : OK
3493 else
3494 am_cv_prog_cc_c_o=no
3495 break
3496 fi
3497 done
3498 rm -f core conftest*
3499 unset am_i
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3502$as_echo "$am_cv_prog_cc_c_o" >&6; }
3503if test "$am_cv_prog_cc_c_o" != yes; then
3504 # Losing compiler, so override with the script.
3505 # FIXME: It is wrong to rewrite CC.
3506 # But if we don't then we get into trouble of one sort or another.
3507 # A longer-term fix would be to have automake use am__CC in this case,
3508 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3509 CC="$am_aux_dir/compile $CC"
3510fi
3511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
3517
3518
3519ac_ext=c
3520ac_cpp='$CPP $CPPFLAGS'
3521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3525$as_echo_n "checking how to run the C preprocessor... " >&6; }
3526# On Suns, sometimes $CPP names a directory.
3527if test -n "$CPP" && test -d "$CPP"; then
3528 CPP=
3529fi
3530if test -z "$CPP"; then
3531 if ${ac_cv_prog_CPP+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533else
3534 # Double quotes because CPP needs to be expanded
3535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3536 do
3537 ac_preproc_ok=false
3538for ac_c_preproc_warn_flag in '' yes
3539do
3540 # Use a header file that comes with gcc, so configuring glibc
3541 # with a fresh cross-compiler works.
3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543 # <limits.h> exists even on freestanding compilers.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h. */
3548#ifdef __STDC__
3549# include <limits.h>
3550#else
3551# include <assert.h>
3552#endif
3553 Syntax error
3554_ACEOF
3555if ac_fn_c_try_cpp "$LINENO"; then :
3556
3557else
3558 # Broken: fails on valid input.
3559continue
3560fi
3561rm -f conftest.err conftest.i conftest.$ac_ext
3562
3563 # OK, works on sane cases. Now check whether nonexistent headers
3564 # can be detected and how.
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
3567#include <ac_nonexistent.h>
3568_ACEOF
3569if ac_fn_c_try_cpp "$LINENO"; then :
3570 # Broken: success on invalid input.
3571continue
3572else
3573 # Passes both tests.
3574ac_preproc_ok=:
3575break
3576fi
3577rm -f conftest.err conftest.i conftest.$ac_ext
3578
3579done
3580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581rm -f conftest.i conftest.err conftest.$ac_ext
3582if $ac_preproc_ok; then :
3583 break
3584fi
3585
3586 done
3587 ac_cv_prog_CPP=$CPP
3588
3589fi
3590 CPP=$ac_cv_prog_CPP
3591else
3592 ac_cv_prog_CPP=$CPP
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3595$as_echo "$CPP" >&6; }
3596ac_preproc_ok=false
3597for ac_c_preproc_warn_flag in '' yes
3598do
3599 # Use a header file that comes with gcc, so configuring glibc
3600 # with a fresh cross-compiler works.
3601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 # <limits.h> exists even on freestanding compilers.
3603 # On the NeXT, cc -E runs the code through the compiler's parser,
3604 # not just through cpp. "Syntax error" is here to catch this case.
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h. */
3607#ifdef __STDC__
3608# include <limits.h>
3609#else
3610# include <assert.h>
3611#endif
3612 Syntax error
3613_ACEOF
3614if ac_fn_c_try_cpp "$LINENO"; then :
3615
3616else
3617 # Broken: fails on valid input.
3618continue
3619fi
3620rm -f conftest.err conftest.i conftest.$ac_ext
3621
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h. */
3626#include <ac_nonexistent.h>
3627_ACEOF
3628if ac_fn_c_try_cpp "$LINENO"; then :
3629 # Broken: success on invalid input.
3630continue
3631else
3632 # Passes both tests.
3633ac_preproc_ok=:
3634break
3635fi
3636rm -f conftest.err conftest.i conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.i conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then :
3642
3643else
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details" "$LINENO" 5; }
3648fi
3649
3650ac_ext=c
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3658$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3659if ${ac_cv_path_GREP+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661else
3662 if test -z "$GREP"; then
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 as_fn_executable_p "$ac_path_GREP" || continue
3674# Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676case `"$ac_path_GREP" --version 2>&1` in
3677*GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679*)
3680 ac_count=0
3681 $as_echo_n 0123456789 >"conftest.in"
3682 while :
3683 do
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 $as_echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 as_fn_arith $ac_count + 1 && ac_count=$as_val
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3695 fi
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
3702 $ac_path_GREP_found && break 3
3703 done
3704 done
3705 done
3706IFS=$as_save_IFS
3707 if test -z "$ac_cv_path_GREP"; then
3708 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3709 fi
3710else
3711 ac_cv_path_GREP=$GREP
3712fi
3713
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3716$as_echo "$ac_cv_path_GREP" >&6; }
3717 GREP="$ac_cv_path_GREP"
3718
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3721$as_echo_n "checking for egrep... " >&6; }
3722if ${ac_cv_path_EGREP+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724else
3725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3726 then ac_cv_path_EGREP="$GREP -E"
3727 else
3728 if test -z "$EGREP"; then
3729 ac_path_EGREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3733do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in egrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3739 as_fn_executable_p "$ac_path_EGREP" || continue
3740# Check for GNU ac_path_EGREP and select it if it is found.
3741 # Check for GNU $ac_path_EGREP
3742case `"$ac_path_EGREP" --version 2>&1` in
3743*GNU*)
3744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3745*)
3746 ac_count=0
3747 $as_echo_n 0123456789 >"conftest.in"
3748 while :
3749 do
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 $as_echo 'EGREP' >> "conftest.nl"
3754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 as_fn_arith $ac_count + 1 && ac_count=$as_val
3757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_EGREP="$ac_path_EGREP"
3760 ac_path_EGREP_max=$ac_count
3761 fi
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766esac
3767
3768 $ac_path_EGREP_found && break 3
3769 done
3770 done
3771 done
3772IFS=$as_save_IFS
3773 if test -z "$ac_cv_path_EGREP"; then
3774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3775 fi
3776else
3777 ac_cv_path_EGREP=$EGREP
3778fi
3779
3780 fi
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3783$as_echo "$ac_cv_path_EGREP" >&6; }
3784 EGREP="$ac_cv_path_EGREP"
3785
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3788$as_echo_n "checking for ANSI C header files... " >&6; }
3789if ${ac_cv_header_stdc+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h. */
3794#include <stdlib.h>
3795#include <stdarg.h>
3796#include <string.h>
3797#include <float.h>
3798
3799int
3800main ()
3801{
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_header_stdc=yes
3809else
3810 ac_cv_header_stdc=no
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813
3814if test $ac_cv_header_stdc = yes; then
3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h. */
3818#include <string.h>
3819
3820_ACEOF
3821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822 $EGREP "memchr" >/dev/null 2>&1; then :
3823
3824else
3825 ac_cv_header_stdc=no
3826fi
3827rm -f conftest*
3828
3829fi
3830
3831if test $ac_cv_header_stdc = yes; then
3832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h. */
3835#include <stdlib.h>
3836
3837_ACEOF
3838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3839 $EGREP "free" >/dev/null 2>&1; then :
3840
3841else
3842 ac_cv_header_stdc=no
3843fi
3844rm -f conftest*
3845
3846fi
3847
3848if test $ac_cv_header_stdc = yes; then
3849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3850 if test "$cross_compiling" = yes; then :
3851 :
3852else
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855#include <ctype.h>
3856#include <stdlib.h>
3857#if ((' ' & 0x0FF) == 0x020)
3858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3860#else
3861# define ISLOWER(c) \
3862 (('a' <= (c) && (c) <= 'i') \
3863 || ('j' <= (c) && (c) <= 'r') \
3864 || ('s' <= (c) && (c) <= 'z'))
3865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3866#endif
3867
3868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3869int
3870main ()
3871{
3872 int i;
3873 for (i = 0; i < 256; i++)
3874 if (XOR (islower (i), ISLOWER (i))
3875 || toupper (i) != TOUPPER (i))
3876 return 2;
3877 return 0;
3878}
3879_ACEOF
3880if ac_fn_c_try_run "$LINENO"; then :
3881
3882else
3883 ac_cv_header_stdc=no
3884fi
3885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3886 conftest.$ac_objext conftest.beam conftest.$ac_ext
3887fi
3888
3889fi
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3892$as_echo "$ac_cv_header_stdc" >&6; }
3893if test $ac_cv_header_stdc = yes; then
3894
3895$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3896
3897fi
3898
3899# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3901 inttypes.h stdint.h unistd.h
3902do :
3903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3904ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3905"
3906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3907 cat >>confdefs.h <<_ACEOF
3908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3909_ACEOF
3910
3911fi
3912
3913done
3914
3915
3916
3917 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3918if test "x$ac_cv_header_minix_config_h" = xyes; then :
3919 MINIX=yes
3920else
3921 MINIX=
3922fi
3923
3924
3925 if test "$MINIX" = yes; then
3926
3927$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3928
3929
3930$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3931
3932
3933$as_echo "#define _MINIX 1" >>confdefs.h
3934
3935 fi
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3939$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3940if ${ac_cv_safe_to_define___extensions__+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945
3946# define __EXTENSIONS__ 1
3947 $ac_includes_default
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_safe_to_define___extensions__=yes
3958else
3959 ac_cv_safe_to_define___extensions__=no
3960fi
3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962fi
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3965 test $ac_cv_safe_to_define___extensions__ = yes &&
3966 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3967
3968 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3969
3970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3971
3972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3973
3974 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3975
3976
3977
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3980$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3981if ${ac_cv_prog_cc_c99+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983else
3984 ac_cv_prog_cc_c99=no
3985ac_save_CC=$CC
3986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987/* end confdefs.h. */
3988#include <stdarg.h>
3989#include <stdbool.h>
3990#include <stdlib.h>
3991#include <wchar.h>
3992#include <stdio.h>
3993
3994// Check varargs macros. These examples are taken from C99 6.10.3.5.
3995#define debug(...) fprintf (stderr, __VA_ARGS__)
3996#define showlist(...) puts (#__VA_ARGS__)
3997#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3998static void
3999test_varargs_macros (void)
4000{
4001 int x = 1234;
4002 int y = 5678;
4003 debug ("Flag");
4004 debug ("X = %d\n", x);
4005 showlist (The first, second, and third items.);
4006 report (x>y, "x is %d but y is %d", x, y);
4007}
4008
4009// Check long long types.
4010#define BIG64 18446744073709551615ull
4011#define BIG32 4294967295ul
4012#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4013#if !BIG_OK
4014 your preprocessor is broken;
4015#endif
4016#if BIG_OK
4017#else
4018 your preprocessor is broken;
4019#endif
4020static long long int bignum = -9223372036854775807LL;
4021static unsigned long long int ubignum = BIG64;
4022
4023struct incomplete_array
4024{
4025 int datasize;
4026 double data[];
4027};
4028
4029struct named_init {
4030 int number;
4031 const wchar_t *name;
4032 double average;
4033};
4034
4035typedef const char *ccp;
4036
4037static inline int
4038test_restrict (ccp restrict text)
4039{
4040 // See if C++-style comments work.
4041 // Iterate through items via the restricted pointer.
4042 // Also check for declarations in for loops.
4043 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4044 continue;
4045 return 0;
4046}
4047
4048// Check varargs and va_copy.
4049static void
4050test_varargs (const char *format, ...)
4051{
4052 va_list args;
4053 va_start (args, format);
4054 va_list args_copy;
4055 va_copy (args_copy, args);
4056
4057 const char *str;
4058 int number;
4059 float fnumber;
4060
4061 while (*format)
4062 {
4063 switch (*format++)
4064 {
4065 case 's': // string
4066 str = va_arg (args_copy, const char *);
4067 break;
4068 case 'd': // int
4069 number = va_arg (args_copy, int);
4070 break;
4071 case 'f': // float
4072 fnumber = va_arg (args_copy, double);
4073 break;
4074 default:
4075 break;
4076 }
4077 }
4078 va_end (args_copy);
4079 va_end (args);
4080}
4081
4082int
4083main ()
4084{
4085
4086 // Check bool.
4087 _Bool success = false;
4088
4089 // Check restrict.
4090 if (test_restrict ("String literal") == 0)
4091 success = true;
4092 char *restrict newvar = "Another string";
4093
4094 // Check varargs.
4095 test_varargs ("s, d' f .", "string", 65, 34.234);
4096 test_varargs_macros ();
4097
4098 // Check flexible array members.
4099 struct incomplete_array *ia =
4100 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4101 ia->datasize = 10;
4102 for (int i = 0; i < ia->datasize; ++i)
4103 ia->data[i] = i * 1.234;
4104
4105 // Check named initializers.
4106 struct named_init ni = {
4107 .number = 34,
4108 .name = L"Test wide string",
4109 .average = 543.34343,
4110 };
4111
4112 ni.number = 58;
4113
4114 int dynamic_array[ni.number];
4115 dynamic_array[ni.number - 1] = 543;
4116
4117 // work around unused variable warnings
4118 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4119 || dynamic_array[ni.number - 1] != 543);
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4126do
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c99=$ac_arg
4130fi
4131rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c99" != "xno" && break
4133done
4134rm -f conftest.$ac_ext
4135CC=$ac_save_CC
4136
4137fi
4138# AC_CACHE_VAL
4139case "x$ac_cv_prog_cc_c99" in
4140 x)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142$as_echo "none needed" >&6; } ;;
4143 xno)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145$as_echo "unsupported" >&6; } ;;
4146 *)
4147 CC="$CC $ac_cv_prog_cc_c99"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4149$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4150esac
4151if test "x$ac_cv_prog_cc_c99" != xno; then :
4152
4153fi
4154
4155
4156
4157if test x"$ac_cv_prog_cc_c99" = "xno"; then
4158 as_fn_error $? "charybdis requires a C99 capable compiler" "$LINENO" 5
4159fi
4160
4161
4162
4163ac_config_headers="$ac_config_headers include/setup.h"
4164
4165
4166
4167subdirs="$subdirs libratbox"
4168
4169ac_aux_dir=
4170for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
4171 if test -f "$ac_dir/install-sh"; then
4172 ac_aux_dir=$ac_dir
4173 ac_install_sh="$ac_aux_dir/install-sh -c"
4174 break
4175 elif test -f "$ac_dir/install.sh"; then
4176 ac_aux_dir=$ac_dir
4177 ac_install_sh="$ac_aux_dir/install.sh -c"
4178 break
4179 elif test -f "$ac_dir/shtool"; then
4180 ac_aux_dir=$ac_dir
4181 ac_install_sh="$ac_aux_dir/shtool install -c"
4182 break
4183 fi
4184done
4185if test -z "$ac_aux_dir"; then
4186 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
4187fi
4188
4189# These three variables are undocumented and unsupported,
4190# and are intended to be withdrawn in a future Autoconf release.
4191# They can cause serious problems if a builder's source tree is in a directory
4192# whose full name contains unusual characters.
4193ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4194ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4195ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4196
4197
4198
4199
4200am__api_version='1.15'
4201
4202# Find a good install program. We prefer a C program (faster),
4203# so one script is as good as another. But avoid the broken or
4204# incompatible versions:
4205# SysV /etc/install, /usr/sbin/install
4206# SunOS /usr/etc/install
4207# IRIX /sbin/install
4208# AIX /bin/install
4209# AmigaOS /C/install, which installs bootblocks on floppy discs
4210# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4211# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4212# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4213# OS/2's system install, which has a completely different semantic
4214# ./install, which can be erroneously created by make from ./install.sh.
4215# Reject install programs that cannot install multiple files.
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4217$as_echo_n "checking for a BSD-compatible install... " >&6; }
4218if test -z "$INSTALL"; then
4219if ${ac_cv_path_install+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 # Account for people who put trailing slashes in PATH elements.
4228case $as_dir/ in #((
4229 ./ | .// | /[cC]/* | \
4230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4232 /usr/ucb/* ) ;;
4233 *)
4234 # OSF1 and SCO ODT 3.0 have their own names for install.
4235 # Don't use installbsd from OSF since it installs stuff as root
4236 # by default.
4237 for ac_prog in ginstall scoinst install; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4240 if test $ac_prog = install &&
4241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # AIX install. It has an incompatible calling convention.
4243 :
4244 elif test $ac_prog = install &&
4245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4246 # program-specific install script used by HP pwplus--don't use.
4247 :
4248 else
4249 rm -rf conftest.one conftest.two conftest.dir
4250 echo one > conftest.one
4251 echo two > conftest.two
4252 mkdir conftest.dir
4253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4254 test -s conftest.one && test -s conftest.two &&
4255 test -s conftest.dir/conftest.one &&
4256 test -s conftest.dir/conftest.two
4257 then
4258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4259 break 3
4260 fi
4261 fi
4262 fi
4263 done
4264 done
4265 ;;
4266esac
4267
4268 done
4269IFS=$as_save_IFS
4270
4271rm -rf conftest.one conftest.two conftest.dir
4272
4273fi
4274 if test "${ac_cv_path_install+set}" = set; then
4275 INSTALL=$ac_cv_path_install
4276 else
4277 # As a last resort, use the slow shell script. Don't cache a
4278 # value for INSTALL within a source directory, because that will
4279 # break other packages using the cache if that directory is
4280 # removed, or if the value is a relative name.
4281 INSTALL=$ac_install_sh
4282 fi
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4285$as_echo "$INSTALL" >&6; }
4286
4287# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4288# It thinks the first close brace ends the variable substitution.
4289test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4290
4291test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4292
4293test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4296$as_echo_n "checking whether build environment is sane... " >&6; }
4297# Reject unsafe characters in $srcdir or the absolute working directory
4298# name. Accept space and tab only in the latter.
4299am_lf='
4300'
4301case `pwd` in
4302 *[\\\"\#\$\&\'\`$am_lf]*)
4303 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4304esac
4305case $srcdir in
4306 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4307 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4308esac
4309
4310# Do 'set' in a subshell so we don't clobber the current shell's
4311# arguments. Must try -L first in case configure is actually a
4312# symlink; some systems play weird games with the mod time of symlinks
4313# (eg FreeBSD returns the mod time of the symlink's containing
4314# directory).
4315if (
4316 am_has_slept=no
4317 for am_try in 1 2; do
4318 echo "timestamp, slept: $am_has_slept" > conftest.file
4319 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4320 if test "$*" = "X"; then
4321 # -L didn't work.
4322 set X `ls -t "$srcdir/configure" conftest.file`
4323 fi
4324 if test "$*" != "X $srcdir/configure conftest.file" \
4325 && test "$*" != "X conftest.file $srcdir/configure"; then
4326
4327 # If neither matched, then we have a broken ls. This can happen
4328 # if, for instance, CONFIG_SHELL is bash and it inherits a
4329 # broken ls alias from the environment. This has actually
4330 # happened. Such a system could not be considered "sane".
4331 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4332 alias in your environment" "$LINENO" 5
4333 fi
4334 if test "$2" = conftest.file || test $am_try -eq 2; then
4335 break
4336 fi
4337 # Just in case.
4338 sleep 1
4339 am_has_slept=yes
4340 done
4341 test "$2" = conftest.file
4342 )
4343then
4344 # Ok.
4345 :
4346else
4347 as_fn_error $? "newly created file is older than distributed files!
4348Check your system clock" "$LINENO" 5
4349fi
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4351$as_echo "yes" >&6; }
4352# If we didn't sleep, we still need to ensure time stamps of config.status and
4353# generated files are strictly newer.
4354am_sleep_pid=
4355if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4356 ( sleep 1 ) &
4357 am_sleep_pid=$!
4358fi
4359
4360rm -f conftest.file
4361
4362test "$program_prefix" != NONE &&
4363 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4364# Use a double $ so make ignores it.
4365test "$program_suffix" != NONE &&
4366 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4367# Double any \ or $.
4368# By default was `s,x,x', remove it if useless.
4369ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4370program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4371
4372if test x"${MISSING+set}" != xset; then
4373 case $am_aux_dir in
4374 *\ * | *\ *)
4375 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4376 *)
4377 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4378 esac
4379fi
4380# Use eval to expand $SHELL
4381if eval "$MISSING --is-lightweight"; then
4382 am_missing_run="$MISSING "
4383else
4384 am_missing_run=
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4386$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4387fi
4388
4389if test x"${install_sh+set}" != xset; then
4390 case $am_aux_dir in
4391 *\ * | *\ *)
4392 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4393 *)
4394 install_sh="\${SHELL} $am_aux_dir/install-sh"
4395 esac
4396fi
4397
4398# Installed binaries are usually stripped using 'strip' when the user
4399# run "make install-strip". However 'strip' might not be the right
4400# tool to use in cross-compilation environments, therefore Automake
4401# will honor the 'STRIP' environment variable to overrule this program.
4402if test "$cross_compiling" != no; then
4403 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4405set dummy ${ac_tool_prefix}strip; ac_word=$2
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if ${ac_cv_prog_STRIP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 if test -n "$STRIP"; then
4412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426 done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431STRIP=$ac_cv_prog_STRIP
4432if test -n "$STRIP"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4434$as_echo "$STRIP" >&6; }
4435else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440
4441fi
4442if test -z "$ac_cv_prog_STRIP"; then
4443 ac_ct_STRIP=$STRIP
4444 # Extract the first word of "strip", so it can be a program name with args.
4445set dummy strip; ac_word=$2
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447$as_echo_n "checking for $ac_word... " >&6; }
4448if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 if test -n "$ac_ct_STRIP"; then
4452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4453else
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_ac_ct_STRIP="strip"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465done
4466 done
4467IFS=$as_save_IFS
4468
4469fi
4470fi
4471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4472if test -n "$ac_ct_STRIP"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4474$as_echo "$ac_ct_STRIP" >&6; }
4475else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
4479
4480 if test "x$ac_ct_STRIP" = x; then
4481 STRIP=":"
4482 else
4483 case $cross_compiling:$ac_tool_warned in
4484yes:)
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487ac_tool_warned=yes ;;
4488esac
4489 STRIP=$ac_ct_STRIP
4490 fi
4491else
4492 STRIP="$ac_cv_prog_STRIP"
4493fi
4494
4495fi
4496INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4499$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4500if test -z "$MKDIR_P"; then
4501 if ${ac_cv_path_mkdir+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_prog in mkdir gmkdir; do
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4512 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4513 'mkdir (GNU coreutils) '* | \
4514 'mkdir (coreutils) '* | \
4515 'mkdir (fileutils) '4.1*)
4516 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4517 break 3;;
4518 esac
4519 done
4520 done
4521 done
4522IFS=$as_save_IFS
4523
4524fi
4525
4526 test -d ./--version && rmdir ./--version
4527 if test "${ac_cv_path_mkdir+set}" = set; then
4528 MKDIR_P="$ac_cv_path_mkdir -p"
4529 else
4530 # As a last resort, use the slow shell script. Don't cache a
4531 # value for MKDIR_P within a source directory, because that will
4532 # break other packages using the cache if that directory is
4533 # removed, or if the value is a relative name.
4534 MKDIR_P="$ac_install_sh -d"
4535 fi
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4538$as_echo "$MKDIR_P" >&6; }
4539
4540for ac_prog in gawk mawk nawk awk
4541do
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543set dummy $ac_prog; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_prog_AWK+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 if test -n "$AWK"; then
4550 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_AWK="$ac_prog"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564 done
4565IFS=$as_save_IFS
4566
4567fi
4568fi
4569AWK=$ac_cv_prog_AWK
4570if test -n "$AWK"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4572$as_echo "$AWK" >&6; }
4573else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579 test -n "$AWK" && break
4580done
4581
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4583$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4584set x ${MAKE-make}
4585ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4586if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588else
4589 cat >conftest.make <<\_ACEOF
4590SHELL = /bin/sh
4591all:
4592 @echo '@@@%%%=$(MAKE)=@@@%%%'
4593_ACEOF
4594# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4595case `${MAKE-make} -f conftest.make 2>/dev/null` in
4596 *@@@%%%=?*=@@@%%%*)
4597 eval ac_cv_prog_make_${ac_make}_set=yes;;
4598 *)
4599 eval ac_cv_prog_make_${ac_make}_set=no;;
4600esac
4601rm -f conftest.make
4602fi
4603if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605$as_echo "yes" >&6; }
4606 SET_MAKE=
4607else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610 SET_MAKE="MAKE=${MAKE-make}"
4611fi
4612
4613rm -rf .tst 2>/dev/null
4614mkdir .tst 2>/dev/null
4615if test -d .tst; then
4616 am__leading_dot=.
4617else
4618 am__leading_dot=_
4619fi
4620rmdir .tst 2>/dev/null
4621
4622DEPDIR="${am__leading_dot}deps"
4623
4624ac_config_commands="$ac_config_commands depfiles"
4625
4626
4627am_make=${MAKE-make}
4628cat > confinc << 'END'
4629am__doit:
4630 @echo this is the am__doit target
4631.PHONY: am__doit
4632END
4633# If we don't find an include directive, just comment out the code.
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4635$as_echo_n "checking for style of include used by $am_make... " >&6; }
4636am__include="#"
4637am__quote=
4638_am_result=none
4639# First try GNU make style include.
4640echo "include confinc" > confmf
4641# Ignore all kinds of additional output from 'make'.
4642case `$am_make -s -f confmf 2> /dev/null` in #(
4643*the\ am__doit\ target*)
4644 am__include=include
4645 am__quote=
4646 _am_result=GNU
4647 ;;
4648esac
4649# Now try BSD make style include.
4650if test "$am__include" = "#"; then
4651 echo '.include "confinc"' > confmf
4652 case `$am_make -s -f confmf 2> /dev/null` in #(
4653 *the\ am__doit\ target*)
4654 am__include=.include
4655 am__quote="\""
4656 _am_result=BSD
4657 ;;
4658 esac
4659fi
4660
4661
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4663$as_echo "$_am_result" >&6; }
4664rm -f confinc confmf
4665
4666# Check whether --enable-dependency-tracking was given.
4667if test "${enable_dependency_tracking+set}" = set; then :
4668 enableval=$enable_dependency_tracking;
4669fi
4670
4671if test "x$enable_dependency_tracking" != xno; then
4672 am_depcomp="$ac_aux_dir/depcomp"
4673 AMDEPBACKSLASH='\'
4674 am__nodep='_no'
4675fi
4676 if test "x$enable_dependency_tracking" != xno; then
4677 AMDEP_TRUE=
4678 AMDEP_FALSE='#'
4679else
4680 AMDEP_TRUE='#'
4681 AMDEP_FALSE=
4682fi
4683
4684
4685# Check whether --enable-silent-rules was given.
4686if test "${enable_silent_rules+set}" = set; then :
4687 enableval=$enable_silent_rules;
4688fi
4689
4690case $enable_silent_rules in # (((
4691 yes) AM_DEFAULT_VERBOSITY=0;;
4692 no) AM_DEFAULT_VERBOSITY=1;;
4693 *) AM_DEFAULT_VERBOSITY=1;;
4694esac
4695am_make=${MAKE-make}
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4697$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4698if ${am_cv_make_support_nested_variables+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 if $as_echo 'TRUE=$(BAR$(V))
4702BAR0=false
4703BAR1=true
4704V=1
4705am__doit:
4706 @$(TRUE)
4707.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4708 am_cv_make_support_nested_variables=yes
4709else
4710 am_cv_make_support_nested_variables=no
4711fi
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4714$as_echo "$am_cv_make_support_nested_variables" >&6; }
4715if test $am_cv_make_support_nested_variables = yes; then
4716 AM_V='$(V)'
4717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4718else
4719 AM_V=$AM_DEFAULT_VERBOSITY
4720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4721fi
4722AM_BACKSLASH='\'
4723
4724if test "`cd $srcdir && pwd`" != "`pwd`"; then
4725 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4726 # is not polluted with repeated "-I."
4727 am__isrc=' -I$(srcdir)'
4728 # test to see if srcdir already configured
4729 if test -f $srcdir/config.status; then
4730 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4731 fi
4732fi
4733
4734# test whether we have cygpath
4735if test -z "$CYGPATH_W"; then
4736 if (cygpath --version) >/dev/null 2>/dev/null; then
4737 CYGPATH_W='cygpath -w'
4738 else
4739 CYGPATH_W=echo
4740 fi
4741fi
4742
4743
4744# Define the identity of the package.
4745 PACKAGE='charybdis'
4746 VERSION='3.6.0-dev'
4747
4748
4749cat >>confdefs.h <<_ACEOF
4750#define PACKAGE "$PACKAGE"
4751_ACEOF
4752
4753
4754cat >>confdefs.h <<_ACEOF
4755#define VERSION "$VERSION"
4756_ACEOF
4757
4758# Some tools Automake needs.
4759
4760ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4761
4762
4763AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4764
4765
4766AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4767
4768
4769AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4770
4771
4772MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4773
4774# For better backward compatibility. To be removed once Automake 1.9.x
4775# dies out for good. For more background, see:
4776# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4777# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4778mkdir_p='$(MKDIR_P)'
4779
4780# We need awk for the "check" target (and possibly the TAP driver). The
4781# system "awk" is bad on some platforms.
4782# Always define AMTAR for backward compatibility. Yes, it's still used
4783# in the wild :-( We should find a proper way to deprecate it ...
4784AMTAR='$${TAR-tar}'
4785
4786
4787# We'll loop over all known methods to create a tar archive until one works.
4788_am_tools='gnutar pax cpio none'
4789
4790am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4791
4792
4793
4794
4795
4796depcc="$CC" am_compiler_list=
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4799$as_echo_n "checking dependency style of $depcc... " >&6; }
4800if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802else
4803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4804 # We make a subdir and do the tests there. Otherwise we can end up
4805 # making bogus files that we don't know about and never remove. For
4806 # instance it was reported that on HP-UX the gcc test will end up
4807 # making a dummy file named 'D' -- because '-MD' means "put the output
4808 # in D".
4809 rm -rf conftest.dir
4810 mkdir conftest.dir
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4814 cd conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4820 # directory.
4821 mkdir sub
4822
4823 am_cv_CC_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826 fi
4827 am__universal=false
4828 case " $depcc " in #(
4829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830 esac
4831
4832 for depmode in $am_compiler_list; do
4833 # Setup a source with many dependencies, because some compilers
4834 # like to wrap large dependency lists on column 80 (with \), and
4835 # we should not choose a depcomp mode which is confused by this.
4836 #
4837 # We need to recreate these files for each test, as the compiler may
4838 # overwrite some of them when testing with obscure command lines.
4839 # This happens at least with the AIX C compiler.
4840 : > sub/conftest.c
4841 for i in 1 2 3 4 5 6; do
4842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4844 # Solaris 10 /bin/sh.
4845 echo '/* dummy */' > sub/conftst$i.h
4846 done
4847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4850 # mode. It turns out that the SunPro C++ compiler does not properly
4851 # handle '-M -o', and we need to detect this. Also, some Intel
4852 # versions had trouble with output in subdirs.
4853 am__obj=sub/conftest.${OBJEXT-o}
4854 am__minus_obj="-o $am__obj"
4855 case $depmode in
4856 gcc)
4857 # This depmode causes a compiler race in universal mode.
4858 test "$am__universal" = false || continue
4859 ;;
4860 nosideeffect)
4861 # After this tag, mechanisms are not by side-effect, so they'll
4862 # only be used when explicitly requested.
4863 if test "x$enable_dependency_tracking" = xyes; then
4864 continue
4865 else
4866 break
4867 fi
4868 ;;
4869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4870 # This compiler won't grok '-c -o', but also, the minuso test has
4871 # not run yet. These depmodes are late enough in the game, and
4872 # so weak that their functioning should not be impacted.
4873 am__obj=conftest.${OBJEXT-o}
4874 am__minus_obj=
4875 ;;
4876 none) break ;;
4877 esac
4878 if depmode=$depmode \
4879 source=sub/conftest.c object=$am__obj \
4880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882 >/dev/null 2>conftest.err &&
4883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887 # icc doesn't choke on unknown options, it will just issue warnings
4888 # or remarks (even with -Werror). So we grep stderr for any message
4889 # that says an option was ignored or not supported.
4890 # When given -MP, icc 7.0 and 7.1 complain thusly:
4891 # icc: Command line warning: ignoring option '-M'; no argument required
4892 # The diagnosis changed in icc 8.0:
4893 # icc: Command line remark: option '-MP' not supported
4894 if (grep 'ignoring option' conftest.err ||
4895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896 am_cv_CC_dependencies_compiler_type=$depmode
4897 break
4898 fi
4899 fi
4900 done
4901
4902 cd ..
4903 rm -rf conftest.dir
4904else
4905 am_cv_CC_dependencies_compiler_type=none
4906fi
4907
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4910$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4911CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4912
4913 if
4914 test "x$enable_dependency_tracking" != xno \
4915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4916 am__fastdepCC_TRUE=
4917 am__fastdepCC_FALSE='#'
4918else
4919 am__fastdepCC_TRUE='#'
4920 am__fastdepCC_FALSE=
4921fi
4922
4923
4924
4925# POSIX will say in a future version that running "rm -f" with no argument
4926# is OK; and we want to be able to make that assumption in our Makefile
4927# recipes. So use an aggressive probe to check that the usage we want is
4928# actually supported "in the wild" to an acceptable degree.
4929# See automake bug#10828.
4930# To make any issue more visible, cause the running configure to be aborted
4931# by default if the 'rm' program in use doesn't match our expectations; the
4932# user can still override this though.
4933if rm -f && rm -fr && rm -rf; then : OK; else
4934 cat >&2 <<'END'
4935Oops!
4936
4937Your 'rm' program seems unable to run without file operands specified
4938on the command line, even when the '-f' option is present. This is contrary
4939to the behaviour of most rm programs out there, and not conforming with
4940the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4941
4942Please tell bug-automake@gnu.org about your system, including the value
4943of your $PATH and any error possibly output before this message. This
4944can help us improve future automake versions.
4945
4946END
4947 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4948 echo 'Configuration will proceed anyway, since you have set the' >&2
4949 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4950 echo >&2
4951 else
4952 cat >&2 <<'END'
4953Aborting the configuration process, to ensure you take notice of the issue.
4954
4955You can download and install GNU coreutils to get an 'rm' implementation
4956that behaves properly: <http://www.gnu.org/software/coreutils/>.
4957
4958If you want to complete the configuration process using your problematic
4959'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4960to "yes", and re-run configure.
4961
4962END
4963 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4964 fi
4965fi
4966
4967# Check whether --enable-silent-rules was given.
4968if test "${enable_silent_rules+set}" = set; then :
4969 enableval=$enable_silent_rules;
4970fi
4971
4972case $enable_silent_rules in # (((
4973 yes) AM_DEFAULT_VERBOSITY=0;;
4974 no) AM_DEFAULT_VERBOSITY=1;;
4975 *) AM_DEFAULT_VERBOSITY=0;;
4976esac
4977am_make=${MAKE-make}
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4979$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4980if ${am_cv_make_support_nested_variables+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982else
4983 if $as_echo 'TRUE=$(BAR$(V))
4984BAR0=false
4985BAR1=true
4986V=1
4987am__doit:
4988 @$(TRUE)
4989.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4990 am_cv_make_support_nested_variables=yes
4991else
4992 am_cv_make_support_nested_variables=no
4993fi
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4996$as_echo "$am_cv_make_support_nested_variables" >&6; }
4997if test $am_cv_make_support_nested_variables = yes; then
4998 AM_V='$(V)'
4999 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5000else
5001 AM_V=$AM_DEFAULT_VERBOSITY
5002 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5003fi
5004AM_BACKSLASH='\'
5005
5006if test -n "$ac_tool_prefix"; then
5007 for ac_prog in ar lib "link -lib"
5008 do
5009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_prog_AR+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015else
5016 if test -n "$AR"; then
5017 ac_cv_prog_AR="$AR" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
5031 done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036AR=$ac_cv_prog_AR
5037if test -n "$AR"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5039$as_echo "$AR" >&6; }
5040else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045
5046 test -n "$AR" && break
5047 done
5048fi
5049if test -z "$AR"; then
5050 ac_ct_AR=$AR
5051 for ac_prog in ar lib "link -lib"
5052do
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054set dummy $ac_prog; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_ac_ct_AR+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059else
5060 if test -n "$ac_ct_AR"; then
5061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_AR="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074done
5075 done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080ac_ct_AR=$ac_cv_prog_ac_ct_AR
5081if test -n "$ac_ct_AR"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5083$as_echo "$ac_ct_AR" >&6; }
5084else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090 test -n "$ac_ct_AR" && break
5091done
5092
5093 if test "x$ac_ct_AR" = x; then
5094 AR="false"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097yes:)
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100ac_tool_warned=yes ;;
5101esac
5102 AR=$ac_ct_AR
5103 fi
5104fi
5105
5106: ${AR=ar}
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5109$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5110if ${am_cv_ar_interface+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112else
5113 ac_ext=c
5114ac_cpp='$CPP $CPPFLAGS'
5115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 am_cv_ar_interface=ar
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122int some_variable = 0;
5123_ACEOF
5124if ac_fn_c_try_compile "$LINENO"; then :
5125 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5127 (eval $am_ar_try) 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }
5131 if test "$ac_status" -eq 0; then
5132 am_cv_ar_interface=ar
5133 else
5134 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5136 (eval $am_ar_try) 2>&5
5137 ac_status=$?
5138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }
5140 if test "$ac_status" -eq 0; then
5141 am_cv_ar_interface=lib
5142 else
5143 am_cv_ar_interface=unknown
5144 fi
5145 fi
5146 rm -f conftest.lib libconftest.a
5147
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_ext=c
5151ac_cpp='$CPP $CPPFLAGS'
5152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5158$as_echo "$am_cv_ar_interface" >&6; }
5159
5160case $am_cv_ar_interface in
5161ar)
5162 ;;
5163lib)
5164 # Microsoft lib, so override with the ar-lib wrapper script.
5165 # FIXME: It is wrong to rewrite AR.
5166 # But if we don't then we get into trouble of one sort or another.
5167 # A longer-term fix would be to have automake use am__AR in this case,
5168 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5169 # similar.
5170 AR="$am_aux_dir/ar-lib $AR"
5171 ;;
5172unknown)
5173 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5174 ;;
5175esac
5176
5177
5178case `pwd` in
5179 *\ * | *\ *)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5181$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5182esac
5183
5184
5185
5186macro_version='2.4.2'
5187macro_revision='1.3337'
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201ltmain="$ac_aux_dir/ltmain.sh"
5202
5203# Make sure we can run config.sub.
5204$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5205 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5208$as_echo_n "checking build system type... " >&6; }
5209if ${ac_cv_build+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 ac_build_alias=$build_alias
5213test "x$ac_build_alias" = x &&
5214 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5215test "x$ac_build_alias" = x &&
5216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5217ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5219
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5222$as_echo "$ac_cv_build" >&6; }
5223case $ac_cv_build in
5224*-*-*) ;;
5225*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5226esac
5227build=$ac_cv_build
5228ac_save_IFS=$IFS; IFS='-'
5229set x $ac_cv_build
5230shift
5231build_cpu=$1
5232build_vendor=$2
5233shift; shift
5234# Remember, the first character of IFS is used to create $*,
5235# except with old shells:
5236build_os=$*
5237IFS=$ac_save_IFS
5238case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5242$as_echo_n "checking host system type... " >&6; }
5243if ${ac_cv_host+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test "x$host_alias" = x; then
5247 ac_cv_host=$ac_cv_build
5248else
5249 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5251fi
5252
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5255$as_echo "$ac_cv_host" >&6; }
5256case $ac_cv_host in
5257*-*-*) ;;
5258*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5259esac
5260host=$ac_cv_host
5261ac_save_IFS=$IFS; IFS='-'
5262set x $ac_cv_host
5263shift
5264host_cpu=$1
5265host_vendor=$2
5266shift; shift
5267# Remember, the first character of IFS is used to create $*,
5268# except with old shells:
5269host_os=$*
5270IFS=$ac_save_IFS
5271case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5272
5273
5274# Backslashify metacharacters that are still active within
5275# double-quoted strings.
5276sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5277
5278# Same as above, but do not quote variable references.
5279double_quote_subst='s/\(["`\\]\)/\\\1/g'
5280
5281# Sed substitution to delay expansion of an escaped shell variable in a
5282# double_quote_subst'ed string.
5283delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5284
5285# Sed substitution to delay expansion of an escaped single quote.
5286delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5287
5288# Sed substitution to avoid accidental globbing in evaled expressions
5289no_glob_subst='s/\*/\\\*/g'
5290
5291ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5292ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5293ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5294
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5296$as_echo_n "checking how to print strings... " >&6; }
5297# Test print first, because it will be a builtin if present.
5298if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5299 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5300 ECHO='print -r --'
5301elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5302 ECHO='printf %s\n'
5303else
5304 # Use this function as a fallback that always works.
5305 func_fallback_echo ()
5306 {
5307 eval 'cat <<_LTECHO_EOF
5308$1
5309_LTECHO_EOF'
5310 }
5311 ECHO='func_fallback_echo'
5312fi
5313
5314# func_echo_all arg...
5315# Invoke $ECHO with all args, space-separated.
5316func_echo_all ()
5317{
5318 $ECHO ""
5319}
5320
5321case "$ECHO" in
5322 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5323$as_echo "printf" >&6; } ;;
5324 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5325$as_echo "print -r" >&6; } ;;
5326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5327$as_echo "cat" >&6; } ;;
5328esac
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5344$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5345if ${ac_cv_path_SED+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347else
5348 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5349 for ac_i in 1 2 3 4 5 6 7; do
5350 ac_script="$ac_script$as_nl$ac_script"
5351 done
5352 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5353 { ac_script=; unset ac_script;}
5354 if test -z "$SED"; then
5355 ac_path_SED_found=false
5356 # Loop through the user's path and test for each of PROGNAME-LIST
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_prog in sed gsed; do
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5365 as_fn_executable_p "$ac_path_SED" || continue
5366# Check for GNU ac_path_SED and select it if it is found.
5367 # Check for GNU $ac_path_SED
5368case `"$ac_path_SED" --version 2>&1` in
5369*GNU*)
5370 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5371*)
5372 ac_count=0
5373 $as_echo_n 0123456789 >"conftest.in"
5374 while :
5375 do
5376 cat "conftest.in" "conftest.in" >"conftest.tmp"
5377 mv "conftest.tmp" "conftest.in"
5378 cp "conftest.in" "conftest.nl"
5379 $as_echo '' >> "conftest.nl"
5380 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5382 as_fn_arith $ac_count + 1 && ac_count=$as_val
5383 if test $ac_count -gt ${ac_path_SED_max-0}; then
5384 # Best one so far, save it but keep looking for a better one
5385 ac_cv_path_SED="$ac_path_SED"
5386 ac_path_SED_max=$ac_count
5387 fi
5388 # 10*(2^10) chars as input seems more than enough
5389 test $ac_count -gt 10 && break
5390 done
5391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5392esac
5393
5394 $ac_path_SED_found && break 3
5395 done
5396 done
5397 done
5398IFS=$as_save_IFS
5399 if test -z "$ac_cv_path_SED"; then
5400 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5401 fi
5402else
5403 ac_cv_path_SED=$SED
5404fi
5405
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5408$as_echo "$ac_cv_path_SED" >&6; }
5409 SED="$ac_cv_path_SED"
5410 rm -f conftest.sed
5411
5412test -z "$SED" && SED=sed
5413Xsed="$SED -e 1s/^X//"
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5426$as_echo_n "checking for fgrep... " >&6; }
5427if ${ac_cv_path_FGREP+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429else
5430 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5431 then ac_cv_path_FGREP="$GREP -F"
5432 else
5433 if test -z "$FGREP"; then
5434 ac_path_FGREP_found=false
5435 # Loop through the user's path and test for each of PROGNAME-LIST
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_prog in fgrep; do
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5444 as_fn_executable_p "$ac_path_FGREP" || continue
5445# Check for GNU ac_path_FGREP and select it if it is found.
5446 # Check for GNU $ac_path_FGREP
5447case `"$ac_path_FGREP" --version 2>&1` in
5448*GNU*)
5449 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5450*)
5451 ac_count=0
5452 $as_echo_n 0123456789 >"conftest.in"
5453 while :
5454 do
5455 cat "conftest.in" "conftest.in" >"conftest.tmp"
5456 mv "conftest.tmp" "conftest.in"
5457 cp "conftest.in" "conftest.nl"
5458 $as_echo 'FGREP' >> "conftest.nl"
5459 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5461 as_fn_arith $ac_count + 1 && ac_count=$as_val
5462 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5463 # Best one so far, save it but keep looking for a better one
5464 ac_cv_path_FGREP="$ac_path_FGREP"
5465 ac_path_FGREP_max=$ac_count
5466 fi
5467 # 10*(2^10) chars as input seems more than enough
5468 test $ac_count -gt 10 && break
5469 done
5470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5471esac
5472
5473 $ac_path_FGREP_found && break 3
5474 done
5475 done
5476 done
5477IFS=$as_save_IFS
5478 if test -z "$ac_cv_path_FGREP"; then
5479 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5480 fi
5481else
5482 ac_cv_path_FGREP=$FGREP
5483fi
5484
5485 fi
5486fi
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5488$as_echo "$ac_cv_path_FGREP" >&6; }
5489 FGREP="$ac_cv_path_FGREP"
5490
5491
5492test -z "$GREP" && GREP=grep
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512# Check whether --with-gnu-ld was given.
5513if test "${with_gnu_ld+set}" = set; then :
5514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5515else
5516 with_gnu_ld=no
5517fi
5518
5519ac_prog=ld
5520if test "$GCC" = yes; then
5521 # Check if gcc -print-prog-name=ld gives a path.
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5523$as_echo_n "checking for ld used by $CC... " >&6; }
5524 case $host in
5525 *-*-mingw*)
5526 # gcc leaves a trailing carriage return which upsets mingw
5527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5528 *)
5529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5530 esac
5531 case $ac_prog in
5532 # Accept absolute paths.
5533 [\\/]* | ?:[\\/]*)
5534 re_direlt='/[^/][^/]*/\.\./'
5535 # Canonicalize the pathname of ld
5536 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5537 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5538 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5539 done
5540 test -z "$LD" && LD="$ac_prog"
5541 ;;
5542 "")
5543 # If it fails, then pretend we aren't using GCC.
5544 ac_prog=ld
5545 ;;
5546 *)
5547 # If it is relative, then search for the first ld in PATH.
5548 with_gnu_ld=unknown
5549 ;;
5550 esac
5551elif test "$with_gnu_ld" = yes; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5553$as_echo_n "checking for GNU ld... " >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5556$as_echo_n "checking for non-GNU ld... " >&6; }
5557fi
5558if ${lt_cv_path_LD+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560else
5561 if test -z "$LD"; then
5562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5563 for ac_dir in $PATH; do
5564 IFS="$lt_save_ifs"
5565 test -z "$ac_dir" && ac_dir=.
5566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5567 lt_cv_path_LD="$ac_dir/$ac_prog"
5568 # Check to see if the program is GNU ld. I'd rather use --version,
5569 # but apparently some variants of GNU ld only accept -v.
5570 # Break only if it was the GNU/non-GNU ld that we prefer.
5571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5572 *GNU* | *'with BFD'*)
5573 test "$with_gnu_ld" != no && break
5574 ;;
5575 *)
5576 test "$with_gnu_ld" != yes && break
5577 ;;
5578 esac
5579 fi
5580 done
5581 IFS="$lt_save_ifs"
5582else
5583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5584fi
5585fi
5586
5587LD="$lt_cv_path_LD"
5588if test -n "$LD"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5590$as_echo "$LD" >&6; }
5591else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5597$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5598if ${lt_cv_prog_gnu_ld+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5602case `$LD -v 2>&1 </dev/null` in
5603*GNU* | *'with BFD'*)
5604 lt_cv_prog_gnu_ld=yes
5605 ;;
5606*)
5607 lt_cv_prog_gnu_ld=no
5608 ;;
5609esac
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5612$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5613with_gnu_ld=$lt_cv_prog_gnu_ld
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5624$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5625if ${lt_cv_path_NM+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627else
5628 if test -n "$NM"; then
5629 # Let the user override the test.
5630 lt_cv_path_NM="$NM"
5631else
5632 lt_nm_to_check="${ac_tool_prefix}nm"
5633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5634 lt_nm_to_check="$lt_nm_to_check nm"
5635 fi
5636 for lt_tmp_nm in $lt_nm_to_check; do
5637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5639 IFS="$lt_save_ifs"
5640 test -z "$ac_dir" && ac_dir=.
5641 tmp_nm="$ac_dir/$lt_tmp_nm"
5642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5643 # Check to see if the nm accepts a BSD-compat flag.
5644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5645 # nm: unknown option "B" ignored
5646 # Tru64's nm complains that /dev/null is an invalid object file
5647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5648 */dev/null* | *'Invalid file or object type'*)
5649 lt_cv_path_NM="$tmp_nm -B"
5650 break
5651 ;;
5652 *)
5653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5654 */dev/null*)
5655 lt_cv_path_NM="$tmp_nm -p"
5656 break
5657 ;;
5658 *)
5659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5660 continue # so that we can try to find one that supports BSD flags
5661 ;;
5662 esac
5663 ;;
5664 esac
5665 fi
5666 done
5667 IFS="$lt_save_ifs"
5668 done
5669 : ${lt_cv_path_NM=no}
5670fi
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5673$as_echo "$lt_cv_path_NM" >&6; }
5674if test "$lt_cv_path_NM" != "no"; then
5675 NM="$lt_cv_path_NM"
5676else
5677 # Didn't find any BSD compatible name lister, look for dumpbin.
5678 if test -n "$DUMPBIN"; then :
5679 # Let the user override the test.
5680 else
5681 if test -n "$ac_tool_prefix"; then
5682 for ac_prog in dumpbin "link -dump"
5683 do
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_DUMPBIN+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 if test -n "$DUMPBIN"; then
5692 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706 done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711DUMPBIN=$ac_cv_prog_DUMPBIN
5712if test -n "$DUMPBIN"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5714$as_echo "$DUMPBIN" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721 test -n "$DUMPBIN" && break
5722 done
5723fi
5724if test -z "$DUMPBIN"; then
5725 ac_ct_DUMPBIN=$DUMPBIN
5726 for ac_prog in dumpbin "link -dump"
5727do
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729set dummy $ac_prog; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 if test -n "$ac_ct_DUMPBIN"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750 done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756if test -n "$ac_ct_DUMPBIN"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5758$as_echo "$ac_ct_DUMPBIN" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764
5765 test -n "$ac_ct_DUMPBIN" && break
5766done
5767
5768 if test "x$ac_ct_DUMPBIN" = x; then
5769 DUMPBIN=":"
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772yes:)
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775ac_tool_warned=yes ;;
5776esac
5777 DUMPBIN=$ac_ct_DUMPBIN
5778 fi
5779fi
5780
5781 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5782 *COFF*)
5783 DUMPBIN="$DUMPBIN -symbols"
5784 ;;
5785 *)
5786 DUMPBIN=:
5787 ;;
5788 esac
5789 fi
5790
5791 if test "$DUMPBIN" != ":"; then
5792 NM="$DUMPBIN"
5793 fi
5794fi
5795test -z "$NM" && NM=nm
5796
5797
5798
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5803$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5804if ${lt_cv_nm_interface+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 lt_cv_nm_interface="BSD nm"
5808 echo "int some_variable = 0;" > conftest.$ac_ext
5809 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5810 (eval "$ac_compile" 2>conftest.err)
5811 cat conftest.err >&5
5812 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5814 cat conftest.err >&5
5815 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5816 cat conftest.out >&5
5817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5818 lt_cv_nm_interface="MS dumpbin"
5819 fi
5820 rm -f conftest*
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5823$as_echo "$lt_cv_nm_interface" >&6; }
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5826$as_echo_n "checking whether ln -s works... " >&6; }
5827LN_S=$as_ln_s
5828if test "$LN_S" = "ln -s"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830$as_echo "yes" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5833$as_echo "no, using $LN_S" >&6; }
5834fi
5835
5836# find the maximum length of command line arguments
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5838$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5839if ${lt_cv_sys_max_cmd_len+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 i=0
5843 teststring="ABCD"
5844
5845 case $build_os in
5846 msdosdjgpp*)
5847 # On DJGPP, this test can blow up pretty badly due to problems in libc
5848 # (any single argument exceeding 2000 bytes causes a buffer overrun
5849 # during glob expansion). Even if it were fixed, the result of this
5850 # check would be larger than it should be.
5851 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5852 ;;
5853
5854 gnu*)
5855 # Under GNU Hurd, this test is not required because there is
5856 # no limit to the length of command line arguments.
5857 # Libtool will interpret -1 as no limit whatsoever
5858 lt_cv_sys_max_cmd_len=-1;
5859 ;;
5860
5861 cygwin* | mingw* | cegcc*)
5862 # On Win9x/ME, this test blows up -- it succeeds, but takes
5863 # about 5 minutes as the teststring grows exponentially.
5864 # Worse, since 9x/ME are not pre-emptively multitasking,
5865 # you end up with a "frozen" computer, even though with patience
5866 # the test eventually succeeds (with a max line length of 256k).
5867 # Instead, let's just punt: use the minimum linelength reported by
5868 # all of the supported platforms: 8192 (on NT/2K/XP).
5869 lt_cv_sys_max_cmd_len=8192;
5870 ;;
5871
5872 mint*)
5873 # On MiNT this can take a long time and run out of memory.
5874 lt_cv_sys_max_cmd_len=8192;
5875 ;;
5876
5877 amigaos*)
5878 # On AmigaOS with pdksh, this test takes hours, literally.
5879 # So we just punt and use a minimum line length of 8192.
5880 lt_cv_sys_max_cmd_len=8192;
5881 ;;
5882
5883 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5884 # This has been around since 386BSD, at least. Likely further.
5885 if test -x /sbin/sysctl; then
5886 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5887 elif test -x /usr/sbin/sysctl; then
5888 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5889 else
5890 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5891 fi
5892 # And add a safety zone
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5895 ;;
5896
5897 interix*)
5898 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5899 lt_cv_sys_max_cmd_len=196608
5900 ;;
5901
5902 os2*)
5903 # The test takes a long time on OS/2.
5904 lt_cv_sys_max_cmd_len=8192
5905 ;;
5906
5907 osf*)
5908 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5909 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5910 # nice to cause kernel panics so lets avoid the loop below.
5911 # First set a reasonable default.
5912 lt_cv_sys_max_cmd_len=16384
5913 #
5914 if test -x /sbin/sysconfig; then
5915 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5916 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5917 esac
5918 fi
5919 ;;
5920 sco3.2v5*)
5921 lt_cv_sys_max_cmd_len=102400
5922 ;;
5923 sysv5* | sco5v6* | sysv4.2uw2*)
5924 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5925 if test -n "$kargmax"; then
5926 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5927 else
5928 lt_cv_sys_max_cmd_len=32768
5929 fi
5930 ;;
5931 *)
5932 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5933 if test -n "$lt_cv_sys_max_cmd_len" && \
5934 test undefined != "$lt_cv_sys_max_cmd_len"; then
5935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5937 else
5938 # Make teststring a little bigger before we do anything with it.
5939 # a 1K string should be a reasonable start.
5940 for i in 1 2 3 4 5 6 7 8 ; do
5941 teststring=$teststring$teststring
5942 done
5943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5944 # If test is not a shell built-in, we'll probably end up computing a
5945 # maximum length that is only half of the actual maximum length, but
5946 # we can't tell.
5947 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5948 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5949 test $i != 17 # 1/2 MB should be enough
5950 do
5951 i=`expr $i + 1`
5952 teststring=$teststring$teststring
5953 done
5954 # Only check the string length outside the loop.
5955 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5956 teststring=
5957 # Add a significant safety factor because C++ compilers can tack on
5958 # massive amounts of additional arguments before passing them to the
5959 # linker. It appears as though 1/2 is a usable value.
5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5961 fi
5962 ;;
5963 esac
5964
5965fi
5966
5967if test -n $lt_cv_sys_max_cmd_len ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5969$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5970else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5972$as_echo "none" >&6; }
5973fi
5974max_cmd_len=$lt_cv_sys_max_cmd_len
5975
5976
5977
5978
5979
5980
5981: ${CP="cp -f"}
5982: ${MV="mv -f"}
5983: ${RM="rm -f"}
5984
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5986$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5987# Try some XSI features
5988xsi_shell=no
5989( _lt_dummy="a/b/c"
5990 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5991 = c,a/b,b/c, \
5992 && eval 'test $(( 1 + 1 )) -eq 2 \
5993 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5994 && xsi_shell=yes
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5996$as_echo "$xsi_shell" >&6; }
5997
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6000$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6001lt_shell_append=no
6002( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6003 >/dev/null 2>&1 \
6004 && lt_shell_append=yes
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6006$as_echo "$lt_shell_append" >&6; }
6007
6008
6009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6010 lt_unset=unset
6011else
6012 lt_unset=false
6013fi
6014
6015
6016
6017
6018
6019# test EBCDIC or ASCII
6020case `echo X|tr X '\101'` in
6021 A) # ASCII based system
6022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6023 lt_SP2NL='tr \040 \012'
6024 lt_NL2SP='tr \015\012 \040\040'
6025 ;;
6026 *) # EBCDIC based system
6027 lt_SP2NL='tr \100 \n'
6028 lt_NL2SP='tr \r\n \100\100'
6029 ;;
6030esac
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6042if ${lt_cv_to_host_file_cmd+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044else
6045 case $host in
6046 *-*-mingw* )
6047 case $build in
6048 *-*-mingw* ) # actually msys
6049 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6050 ;;
6051 *-*-cygwin* )
6052 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6053 ;;
6054 * ) # otherwise, assume *nix
6055 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6056 ;;
6057 esac
6058 ;;
6059 *-*-cygwin* )
6060 case $build in
6061 *-*-mingw* ) # actually msys
6062 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6063 ;;
6064 *-*-cygwin* )
6065 lt_cv_to_host_file_cmd=func_convert_file_noop
6066 ;;
6067 * ) # otherwise, assume *nix
6068 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6069 ;;
6070 esac
6071 ;;
6072 * ) # unhandled hosts (and "normal" native builds)
6073 lt_cv_to_host_file_cmd=func_convert_file_noop
6074 ;;
6075esac
6076
6077fi
6078
6079to_host_file_cmd=$lt_cv_to_host_file_cmd
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6082
6083
6084
6085
6086
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6089if ${lt_cv_to_tool_file_cmd+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092 #assume ordinary cross tools, or native build.
6093lt_cv_to_tool_file_cmd=func_convert_file_noop
6094case $host in
6095 *-*-mingw* )
6096 case $build in
6097 *-*-mingw* ) # actually msys
6098 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6099 ;;
6100 esac
6101 ;;
6102esac
6103
6104fi
6105
6106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6109
6110
6111
6112
6113
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6115$as_echo_n "checking for $LD option to reload object files... " >&6; }
6116if ${lt_cv_ld_reload_flag+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 lt_cv_ld_reload_flag='-r'
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6122$as_echo "$lt_cv_ld_reload_flag" >&6; }
6123reload_flag=$lt_cv_ld_reload_flag
6124case $reload_flag in
6125"" | " "*) ;;
6126*) reload_flag=" $reload_flag" ;;
6127esac
6128reload_cmds='$LD$reload_flag -o $output$reload_objs'
6129case $host_os in
6130 cygwin* | mingw* | pw32* | cegcc*)
6131 if test "$GCC" != yes; then
6132 reload_cmds=false
6133 fi
6134 ;;
6135 darwin*)
6136 if test "$GCC" = yes; then
6137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6138 else
6139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6140 fi
6141 ;;
6142esac
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152if test -n "$ac_tool_prefix"; then
6153 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6154set dummy ${ac_tool_prefix}objdump; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if ${ac_cv_prog_OBJDUMP+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159else
6160 if test -n "$OBJDUMP"; then
6161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174done
6175 done
6176IFS=$as_save_IFS
6177
6178fi
6179fi
6180OBJDUMP=$ac_cv_prog_OBJDUMP
6181if test -n "$OBJDUMP"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6183$as_echo "$OBJDUMP" >&6; }
6184else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189
6190fi
6191if test -z "$ac_cv_prog_OBJDUMP"; then
6192 ac_ct_OBJDUMP=$OBJDUMP
6193 # Extract the first word of "objdump", so it can be a program name with args.
6194set dummy objdump; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199else
6200 if test -n "$ac_ct_OBJDUMP"; then
6201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215 done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6221if test -n "$ac_ct_OBJDUMP"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6223$as_echo "$ac_ct_OBJDUMP" >&6; }
6224else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229 if test "x$ac_ct_OBJDUMP" = x; then
6230 OBJDUMP="false"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236ac_tool_warned=yes ;;
6237esac
6238 OBJDUMP=$ac_ct_OBJDUMP
6239 fi
6240else
6241 OBJDUMP="$ac_cv_prog_OBJDUMP"
6242fi
6243
6244test -z "$OBJDUMP" && OBJDUMP=objdump
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6255$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6256if ${lt_cv_deplibs_check_method+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258else
6259 lt_cv_file_magic_cmd='$MAGIC_CMD'
6260lt_cv_file_magic_test_file=
6261lt_cv_deplibs_check_method='unknown'
6262# Need to set the preceding variable on all platforms that support
6263# interlibrary dependencies.
6264# 'none' -- dependencies not supported.
6265# `unknown' -- same as none, but documents that we really don't know.
6266# 'pass_all' -- all dependencies passed with no checks.
6267# 'test_compile' -- check by making test program.
6268# 'file_magic [[regex]]' -- check by looking for files in library path
6269# which responds to the $file_magic_cmd with a given extended regex.
6270# If you have `file' or equivalent on your system and you're not sure
6271# whether `pass_all' will *always* work, you probably want this one.
6272
6273case $host_os in
6274aix[4-9]*)
6275 lt_cv_deplibs_check_method=pass_all
6276 ;;
6277
6278beos*)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282bsdi[45]*)
6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6284 lt_cv_file_magic_cmd='/usr/bin/file -L'
6285 lt_cv_file_magic_test_file=/shlib/libc.so
6286 ;;
6287
6288cygwin*)
6289 # func_win32_libid is a shell function defined in ltmain.sh
6290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6291 lt_cv_file_magic_cmd='func_win32_libid'
6292 ;;
6293
6294mingw* | pw32*)
6295 # Base MSYS/MinGW do not provide the 'file' command needed by
6296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6297 # unless we find 'file', for example because we are cross-compiling.
6298 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6299 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301 lt_cv_file_magic_cmd='func_win32_libid'
6302 else
6303 # Keep this pattern in sync with the one in func_win32_libid.
6304 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6305 lt_cv_file_magic_cmd='$OBJDUMP -f'
6306 fi
6307 ;;
6308
6309cegcc*)
6310 # use the weaker test based on 'objdump'. See mingw*.
6311 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6312 lt_cv_file_magic_cmd='$OBJDUMP -f'
6313 ;;
6314
6315darwin* | rhapsody*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318
6319freebsd* | dragonfly*)
6320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321 case $host_cpu in
6322 i*86 )
6323 # Not sure whether the presence of OpenBSD here was a mistake.
6324 # Let's accept both of them until this is cleared up.
6325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6326 lt_cv_file_magic_cmd=/usr/bin/file
6327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6328 ;;
6329 esac
6330 else
6331 lt_cv_deplibs_check_method=pass_all
6332 fi
6333 ;;
6334
6335haiku*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339hpux10.20* | hpux11*)
6340 lt_cv_file_magic_cmd=/usr/bin/file
6341 case $host_cpu in
6342 ia64*)
6343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6345 ;;
6346 hppa*64*)
6347 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]'
6348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6349 ;;
6350 *)
6351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6353 ;;
6354 esac
6355 ;;
6356
6357interix[3-9]*)
6358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6360 ;;
6361
6362irix5* | irix6* | nonstopux*)
6363 case $LD in
6364 *-32|*"-32 ") libmagic=32-bit;;
6365 *-n32|*"-n32 ") libmagic=N32;;
6366 *-64|*"-64 ") libmagic=64-bit;;
6367 *) libmagic=never-match;;
6368 esac
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372# This must be glibc/ELF.
6373linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377netbsd* | netbsdelf*-gnu)
6378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6380 else
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6382 fi
6383 ;;
6384
6385newos6*)
6386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6387 lt_cv_file_magic_cmd=/usr/bin/file
6388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6389 ;;
6390
6391*nto* | *qnx*)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394
6395openbsd*)
6396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6398 else
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6400 fi
6401 ;;
6402
6403osf3* | osf4* | osf5*)
6404 lt_cv_deplibs_check_method=pass_all
6405 ;;
6406
6407rdos*)
6408 lt_cv_deplibs_check_method=pass_all
6409 ;;
6410
6411solaris*)
6412 lt_cv_deplibs_check_method=pass_all
6413 ;;
6414
6415sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
6418
6419sysv4 | sysv4.3*)
6420 case $host_vendor in
6421 motorola)
6422 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]'
6423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6424 ;;
6425 ncr)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428 sequent)
6429 lt_cv_file_magic_cmd='/bin/file'
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6431 ;;
6432 sni)
6433 lt_cv_file_magic_cmd='/bin/file'
6434 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6435 lt_cv_file_magic_test_file=/lib/libc.so
6436 ;;
6437 siemens)
6438 lt_cv_deplibs_check_method=pass_all
6439 ;;
6440 pc)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443 esac
6444 ;;
6445
6446tpf*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449esac
6450
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6453$as_echo "$lt_cv_deplibs_check_method" >&6; }
6454
6455file_magic_glob=
6456want_nocaseglob=no
6457if test "$build" = "$host"; then
6458 case $host_os in
6459 mingw* | pw32*)
6460 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6461 want_nocaseglob=yes
6462 else
6463 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6464 fi
6465 ;;
6466 esac
6467fi
6468
6469file_magic_cmd=$lt_cv_file_magic_cmd
6470deplibs_check_method=$lt_cv_deplibs_check_method
6471test -z "$deplibs_check_method" && deplibs_check_method=unknown
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6496set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if ${ac_cv_prog_DLLTOOL+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$DLLTOOL"; then
6503 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522DLLTOOL=$ac_cv_prog_DLLTOOL
6523if test -n "$DLLTOOL"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6525$as_echo "$DLLTOOL" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532fi
6533if test -z "$ac_cv_prog_DLLTOOL"; then
6534 ac_ct_DLLTOOL=$DLLTOOL
6535 # Extract the first word of "dlltool", so it can be a program name with args.
6536set dummy dlltool; ac_word=$2
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538$as_echo_n "checking for $ac_word... " >&6; }
6539if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 if test -n "$ac_ct_DLLTOOL"; then
6543 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556done
6557 done
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6563if test -n "$ac_ct_DLLTOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6565$as_echo "$ac_ct_DLLTOOL" >&6; }
6566else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568$as_echo "no" >&6; }
6569fi
6570
6571 if test "x$ac_ct_DLLTOOL" = x; then
6572 DLLTOOL="false"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575yes:)
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580 DLLTOOL=$ac_ct_DLLTOOL
6581 fi
6582else
6583 DLLTOOL="$ac_cv_prog_DLLTOOL"
6584fi
6585
6586test -z "$DLLTOOL" && DLLTOOL=dlltool
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6598$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6599if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601else
6602 lt_cv_sharedlib_from_linklib_cmd='unknown'
6603
6604case $host_os in
6605cygwin* | mingw* | pw32* | cegcc*)
6606 # two different shell functions defined in ltmain.sh
6607 # decide which to use based on capabilities of $DLLTOOL
6608 case `$DLLTOOL --help 2>&1` in
6609 *--identify-strict*)
6610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6611 ;;
6612 *)
6613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6614 ;;
6615 esac
6616 ;;
6617*)
6618 # fallback: assume linklib IS sharedlib
6619 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6620 ;;
6621esac
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6625$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6626sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6627test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6628
6629
6630
6631
6632
6633
6634
6635if test -n "$ac_tool_prefix"; then
6636 for ac_prog in ar
6637 do
6638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_prog_AR+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644else
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660 done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665AR=$ac_cv_prog_AR
6666if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668$as_echo "$AR" >&6; }
6669else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675 test -n "$AR" && break
6676 done
6677fi
6678if test -z "$AR"; then
6679 ac_ct_AR=$AR
6680 for ac_prog in ar
6681do
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683set dummy $ac_prog; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_prog_ac_ct_AR+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$ac_ct_AR"; then
6690 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_ac_ct_AR="$ac_prog"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709ac_ct_AR=$ac_cv_prog_ac_ct_AR
6710if test -n "$ac_ct_AR"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6712$as_echo "$ac_ct_AR" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718
6719 test -n "$ac_ct_AR" && break
6720done
6721
6722 if test "x$ac_ct_AR" = x; then
6723 AR="false"
6724 else
6725 case $cross_compiling:$ac_tool_warned in
6726yes:)
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729ac_tool_warned=yes ;;
6730esac
6731 AR=$ac_ct_AR
6732 fi
6733fi
6734
6735: ${AR=ar}
6736: ${AR_FLAGS=cru}
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6749$as_echo_n "checking for archiver @FILE support... " >&6; }
6750if ${lt_cv_ar_at_file+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752else
6753 lt_cv_ar_at_file=no
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h. */
6756
6757int
6758main ()
6759{
6760
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_c_try_compile "$LINENO"; then :
6766 echo conftest.$ac_objext > conftest.lst
6767 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6769 (eval $lt_ar_try) 2>&5
6770 ac_status=$?
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; }
6773 if test "$ac_status" -eq 0; then
6774 # Ensure the archiver fails upon bogus file names.
6775 rm -f conftest.$ac_objext libconftest.a
6776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6777 (eval $lt_ar_try) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }
6781 if test "$ac_status" -ne 0; then
6782 lt_cv_ar_at_file=@
6783 fi
6784 fi
6785 rm -f conftest.* libconftest.a
6786
6787fi
6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6792$as_echo "$lt_cv_ar_at_file" >&6; }
6793
6794if test "x$lt_cv_ar_at_file" = xno; then
6795 archiver_list_spec=
6796else
6797 archiver_list_spec=$lt_cv_ar_at_file
6798fi
6799
6800
6801
6802
6803
6804
6805
6806if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}strip; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_STRIP+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813else
6814 if test -n "$STRIP"; then
6815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829 done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834STRIP=$ac_cv_prog_STRIP
6835if test -n "$STRIP"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6837$as_echo "$STRIP" >&6; }
6838else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843
6844fi
6845if test -z "$ac_cv_prog_STRIP"; then
6846 ac_ct_STRIP=$STRIP
6847 # Extract the first word of "strip", so it can be a program name with args.
6848set dummy strip; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$ac_ct_STRIP"; then
6855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_STRIP="strip"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6875if test -n "$ac_ct_STRIP"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6877$as_echo "$ac_ct_STRIP" >&6; }
6878else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883 if test "x$ac_ct_STRIP" = x; then
6884 STRIP=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890ac_tool_warned=yes ;;
6891esac
6892 STRIP=$ac_ct_STRIP
6893 fi
6894else
6895 STRIP="$ac_cv_prog_STRIP"
6896fi
6897
6898test -z "$STRIP" && STRIP=:
6899
6900
6901
6902
6903
6904
6905if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6907set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if ${ac_cv_prog_RANLIB+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912else
6913 if test -n "$RANLIB"; then
6914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928 done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933RANLIB=$ac_cv_prog_RANLIB
6934if test -n "$RANLIB"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6936$as_echo "$RANLIB" >&6; }
6937else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942
6943fi
6944if test -z "$ac_cv_prog_RANLIB"; then
6945 ac_ct_RANLIB=$RANLIB
6946 # Extract the first word of "ranlib", so it can be a program name with args.
6947set dummy ranlib; ac_word=$2
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949$as_echo_n "checking for $ac_word... " >&6; }
6950if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952else
6953 if test -n "$ac_ct_RANLIB"; then
6954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_RANLIB="ranlib"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968 done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6974if test -n "$ac_ct_RANLIB"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6976$as_echo "$ac_ct_RANLIB" >&6; }
6977else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979$as_echo "no" >&6; }
6980fi
6981
6982 if test "x$ac_ct_RANLIB" = x; then
6983 RANLIB=":"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986yes:)
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989ac_tool_warned=yes ;;
6990esac
6991 RANLIB=$ac_ct_RANLIB
6992 fi
6993else
6994 RANLIB="$ac_cv_prog_RANLIB"
6995fi
6996
6997test -z "$RANLIB" && RANLIB=:
6998
6999
7000
7001
7002
7003
7004# Determine commands to create old-style static archives.
7005old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7006old_postinstall_cmds='chmod 644 $oldlib'
7007old_postuninstall_cmds=
7008
7009if test -n "$RANLIB"; then
7010 case $host_os in
7011 openbsd*)
7012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7013 ;;
7014 *)
7015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7016 ;;
7017 esac
7018 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7019fi
7020
7021case $host_os in
7022 darwin*)
7023 lock_old_archive_extraction=yes ;;
7024 *)
7025 lock_old_archive_extraction=no ;;
7026esac
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066# If no C compiler was specified, use CC.
7067LTCC=${LTCC-"$CC"}
7068
7069# If no C compiler flags were specified, use CFLAGS.
7070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7071
7072# Allow CC to be a program name with arguments.
7073compiler=$CC
7074
7075
7076# Check for command to grab the raw symbol name followed by C symbol from nm.
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7078$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7079if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081else
7082
7083# These are sane defaults that work on at least a few old systems.
7084# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7085
7086# Character class describing NM global symbol codes.
7087symcode='[BCDEGRST]'
7088
7089# Regexp to match symbols that can be accessed directly from C.
7090sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7091
7092# Define system-specific variables.
7093case $host_os in
7094aix*)
7095 symcode='[BCDT]'
7096 ;;
7097cygwin* | mingw* | pw32* | cegcc*)
7098 symcode='[ABCDGISTW]'
7099 ;;
7100hpux*)
7101 if test "$host_cpu" = ia64; then
7102 symcode='[ABCDEGRST]'
7103 fi
7104 ;;
7105irix* | nonstopux*)
7106 symcode='[BCDEGRST]'
7107 ;;
7108osf*)
7109 symcode='[BCDEGQRST]'
7110 ;;
7111solaris*)
7112 symcode='[BDRT]'
7113 ;;
7114sco3.2v5*)
7115 symcode='[DT]'
7116 ;;
7117sysv4.2uw2*)
7118 symcode='[DT]'
7119 ;;
7120sysv5* | sco5v6* | unixware* | OpenUNIX*)
7121 symcode='[ABDT]'
7122 ;;
7123sysv4)
7124 symcode='[DFNSTU]'
7125 ;;
7126esac
7127
7128# If we're using GNU nm, then use its standard symbol codes.
7129case `$NM -V 2>&1` in
7130*GNU* | *'with BFD'*)
7131 symcode='[ABCDGIRSTW]' ;;
7132esac
7133
7134# Transform an extracted symbol line into a proper C declaration.
7135# Some systems (esp. on ia64) link data and code symbols differently,
7136# so use this general approach.
7137lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7138
7139# Transform an extracted symbol line into symbol name and symbol address
7140lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7141lt_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'"
7142
7143# Handle CRLF in mingw tool chain
7144opt_cr=
7145case $build_os in
7146mingw*)
7147 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7148 ;;
7149esac
7150
7151# Try without a prefix underscore, then with it.
7152for ac_symprfx in "" "_"; do
7153
7154 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7155 symxfrm="\\1 $ac_symprfx\\2 \\2"
7156
7157 # Write the raw and C identifiers.
7158 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7159 # Fake it for dumpbin and say T for any non-static function
7160 # and D for any global variable.
7161 # Also find C++ and __fastcall symbols from MSVC++,
7162 # which start with @ or ?.
7163 lt_cv_sys_global_symbol_pipe="$AWK '"\
7164" {last_section=section; section=\$ 3};"\
7165" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7166" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7167" \$ 0!~/External *\|/{next};"\
7168" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7169" {if(hide[section]) next};"\
7170" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7171" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7172" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7173" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7174" ' prfx=^$ac_symprfx"
7175 else
7176 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7177 fi
7178 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7179
7180 # Check to see that the pipe works correctly.
7181 pipe_works=no
7182
7183 rm -f conftest*
7184 cat > conftest.$ac_ext <<_LT_EOF
7185#ifdef __cplusplus
7186extern "C" {
7187#endif
7188char nm_test_var;
7189void nm_test_func(void);
7190void nm_test_func(void){}
7191#ifdef __cplusplus
7192}
7193#endif
7194int main(){nm_test_var='a';nm_test_func();return(0);}
7195_LT_EOF
7196
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7199 ac_status=$?
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 # Now try to grab the symbols.
7203 nlist=conftest.nm
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; } && test -s "$nlist"; then
7209 # Try sorting and uniquifying the output.
7210 if sort "$nlist" | uniq > "$nlist"T; then
7211 mv -f "$nlist"T "$nlist"
7212 else
7213 rm -f "$nlist"T
7214 fi
7215
7216 # Make sure that we snagged all the symbols we need.
7217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7219 cat <<_LT_EOF > conftest.$ac_ext
7220/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7221#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7222/* DATA imports from DLLs on WIN32 con't be const, because runtime
7223 relocations are performed -- see ld's documentation on pseudo-relocs. */
7224# define LT_DLSYM_CONST
7225#elif defined(__osf__)
7226/* This system does not cope well with relocations in const data. */
7227# define LT_DLSYM_CONST
7228#else
7229# define LT_DLSYM_CONST const
7230#endif
7231
7232#ifdef __cplusplus
7233extern "C" {
7234#endif
7235
7236_LT_EOF
7237 # Now generate the symbol file.
7238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7239
7240 cat <<_LT_EOF >> conftest.$ac_ext
7241
7242/* The mapping between symbol names and symbols. */
7243LT_DLSYM_CONST struct {
7244 const char *name;
7245 void *address;
7246}
7247lt__PROGRAM__LTX_preloaded_symbols[] =
7248{
7249 { "@PROGRAM@", (void *) 0 },
7250_LT_EOF
7251 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7252 cat <<\_LT_EOF >> conftest.$ac_ext
7253 {0, (void *) 0}
7254};
7255
7256/* This works around a problem in FreeBSD linker */
7257#ifdef FREEBSD_WORKAROUND
7258static const void *lt_preloaded_setup() {
7259 return lt__PROGRAM__LTX_preloaded_symbols;
7260}
7261#endif
7262
7263#ifdef __cplusplus
7264}
7265#endif
7266_LT_EOF
7267 # Now try linking the two files.
7268 mv conftest.$ac_objext conftstm.$ac_objext
7269 lt_globsym_save_LIBS=$LIBS
7270 lt_globsym_save_CFLAGS=$CFLAGS
7271 LIBS="conftstm.$ac_objext"
7272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7274 (eval $ac_link) 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7278 pipe_works=yes
7279 fi
7280 LIBS=$lt_globsym_save_LIBS
7281 CFLAGS=$lt_globsym_save_CFLAGS
7282 else
7283 echo "cannot find nm_test_func in $nlist" >&5
7284 fi
7285 else
7286 echo "cannot find nm_test_var in $nlist" >&5
7287 fi
7288 else
7289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7290 fi
7291 else
7292 echo "$progname: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7294 fi
7295 rm -rf conftest* conftst*
7296
7297 # Do not use the global_symbol_pipe unless it works.
7298 if test "$pipe_works" = yes; then
7299 break
7300 else
7301 lt_cv_sys_global_symbol_pipe=
7302 fi
7303done
7304
7305fi
7306
7307if test -z "$lt_cv_sys_global_symbol_pipe"; then
7308 lt_cv_sys_global_symbol_to_cdecl=
7309fi
7310if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7312$as_echo "failed" >&6; }
7313else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7315$as_echo "ok" >&6; }
7316fi
7317
7318# Response file support.
7319if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7320 nm_file_list_spec='@'
7321elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7322 nm_file_list_spec='@'
7323fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7352$as_echo_n "checking for sysroot... " >&6; }
7353
7354# Check whether --with-sysroot was given.
7355if test "${with_sysroot+set}" = set; then :
7356 withval=$with_sysroot;
7357else
7358 with_sysroot=no
7359fi
7360
7361
7362lt_sysroot=
7363case ${with_sysroot} in #(
7364 yes)
7365 if test "$GCC" = yes; then
7366 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7367 fi
7368 ;; #(
7369 /*)
7370 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7371 ;; #(
7372 no|'')
7373 ;; #(
7374 *)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7376$as_echo "${with_sysroot}" >&6; }
7377 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7378 ;;
7379esac
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7382$as_echo "${lt_sysroot:-no}" >&6; }
7383
7384
7385
7386
7387
7388# Check whether --enable-libtool-lock was given.
7389if test "${enable_libtool_lock+set}" = set; then :
7390 enableval=$enable_libtool_lock;
7391fi
7392
7393test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7394
7395# Some flags need to be propagated to the compiler or linker for good
7396# libtool support.
7397case $host in
7398ia64-*-hpux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.$ac_objext` in
7407 *ELF-32*)
7408 HPUX_IA64_MODE="32"
7409 ;;
7410 *ELF-64*)
7411 HPUX_IA64_MODE="64"
7412 ;;
7413 esac
7414 fi
7415 rm -rf conftest*
7416 ;;
7417*-*-irix6*)
7418 # Find out which ABI we are using.
7419 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 if test "$lt_cv_prog_gnu_ld" = yes; then
7426 case `/usr/bin/file conftest.$ac_objext` in
7427 *32-bit*)
7428 LD="${LD-ld} -melf32bsmip"
7429 ;;
7430 *N32*)
7431 LD="${LD-ld} -melf32bmipn32"
7432 ;;
7433 *64-bit*)
7434 LD="${LD-ld} -melf64bmip"
7435 ;;
7436 esac
7437 else
7438 case `/usr/bin/file conftest.$ac_objext` in
7439 *32-bit*)
7440 LD="${LD-ld} -32"
7441 ;;
7442 *N32*)
7443 LD="${LD-ld} -n32"
7444 ;;
7445 *64-bit*)
7446 LD="${LD-ld} -64"
7447 ;;
7448 esac
7449 fi
7450 fi
7451 rm -rf conftest*
7452 ;;
7453
7454x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7455s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7456 # Find out which ABI we are using.
7457 echo 'int i;' > conftest.$ac_ext
7458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7459 (eval $ac_compile) 2>&5
7460 ac_status=$?
7461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462 test $ac_status = 0; }; then
7463 case `/usr/bin/file conftest.o` in
7464 *32-bit*)
7465 case $host in
7466 x86_64-*kfreebsd*-gnu)
7467 LD="${LD-ld} -m elf_i386_fbsd"
7468 ;;
7469 x86_64-*linux*)
7470 case `/usr/bin/file conftest.o` in
7471 *x86-64*)
7472 LD="${LD-ld} -m elf32_x86_64"
7473 ;;
7474 *)
7475 LD="${LD-ld} -m elf_i386"
7476 ;;
7477 esac
7478 ;;
7479 powerpc64le-*)
7480 LD="${LD-ld} -m elf32lppclinux"
7481 ;;
7482 powerpc64-*)
7483 LD="${LD-ld} -m elf32ppclinux"
7484 ;;
7485 s390x-*linux*)
7486 LD="${LD-ld} -m elf_s390"
7487 ;;
7488 sparc64-*linux*)
7489 LD="${LD-ld} -m elf32_sparc"
7490 ;;
7491 esac
7492 ;;
7493 *64-bit*)
7494 case $host in
7495 x86_64-*kfreebsd*-gnu)
7496 LD="${LD-ld} -m elf_x86_64_fbsd"
7497 ;;
7498 x86_64-*linux*)
7499 LD="${LD-ld} -m elf_x86_64"
7500 ;;
7501 powerpcle-*)
7502 LD="${LD-ld} -m elf64lppc"
7503 ;;
7504 powerpc-*)
7505 LD="${LD-ld} -m elf64ppc"
7506 ;;
7507 s390*-*linux*|s390*-*tpf*)
7508 LD="${LD-ld} -m elf64_s390"
7509 ;;
7510 sparc*-*linux*)
7511 LD="${LD-ld} -m elf64_sparc"
7512 ;;
7513 esac
7514 ;;
7515 esac
7516 fi
7517 rm -rf conftest*
7518 ;;
7519
7520*-*-sco3.2v5*)
7521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7522 SAVE_CFLAGS="$CFLAGS"
7523 CFLAGS="$CFLAGS -belf"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7525$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7526if ${lt_cv_cc_needs_belf+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528else
7529 ac_ext=c
7530ac_cpp='$CPP $CPPFLAGS'
7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h. */
7537
7538int
7539main ()
7540{
7541
7542 ;
7543 return 0;
7544}
7545_ACEOF
7546if ac_fn_c_try_link "$LINENO"; then :
7547 lt_cv_cc_needs_belf=yes
7548else
7549 lt_cv_cc_needs_belf=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext \
7552 conftest$ac_exeext conftest.$ac_ext
7553 ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559fi
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7561$as_echo "$lt_cv_cc_needs_belf" >&6; }
7562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7564 CFLAGS="$SAVE_CFLAGS"
7565 fi
7566 ;;
7567*-*solaris*)
7568 # Find out which ABI we are using.
7569 echo 'int i;' > conftest.$ac_ext
7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; }; then
7575 case `/usr/bin/file conftest.o` in
7576 *64-bit*)
7577 case $lt_cv_prog_gnu_ld in
7578 yes*)
7579 case $host in
7580 i?86-*-solaris*)
7581 LD="${LD-ld} -m elf_x86_64"
7582 ;;
7583 sparc*-*-solaris*)
7584 LD="${LD-ld} -m elf64_sparc"
7585 ;;
7586 esac
7587 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7588 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7589 LD="${LD-ld}_sol2"
7590 fi
7591 ;;
7592 *)
7593 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7594 LD="${LD-ld} -64"
7595 fi
7596 ;;
7597 esac
7598 ;;
7599 esac
7600 fi
7601 rm -rf conftest*
7602 ;;
7603esac
7604
7605need_locks="$enable_libtool_lock"
7606
7607if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7609set dummy ${ac_tool_prefix}mt; ac_word=$2
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611$as_echo_n "checking for $ac_word... " >&6; }
7612if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614else
7615 if test -n "$MANIFEST_TOOL"; then
7616 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629done
7630 done
7631IFS=$as_save_IFS
7632
7633fi
7634fi
7635MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7636if test -n "$MANIFEST_TOOL"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7638$as_echo "$MANIFEST_TOOL" >&6; }
7639else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641$as_echo "no" >&6; }
7642fi
7643
7644
7645fi
7646if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7647 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7648 # Extract the first word of "mt", so it can be a program name with args.
7649set dummy mt; ac_word=$2
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651$as_echo_n "checking for $ac_word... " >&6; }
7652if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654else
7655 if test -n "$ac_ct_MANIFEST_TOOL"; then
7656 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7657else
7658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659for as_dir in $PATH
7660do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669done
7670 done
7671IFS=$as_save_IFS
7672
7673fi
7674fi
7675ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7676if test -n "$ac_ct_MANIFEST_TOOL"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7678$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7679else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682fi
7683
7684 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7685 MANIFEST_TOOL=":"
7686 else
7687 case $cross_compiling:$ac_tool_warned in
7688yes:)
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691ac_tool_warned=yes ;;
7692esac
7693 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7694 fi
7695else
7696 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7697fi
7698
7699test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7701$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7702if ${lt_cv_path_mainfest_tool+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704else
7705 lt_cv_path_mainfest_tool=no
7706 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7707 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7708 cat conftest.err >&5
7709 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7710 lt_cv_path_mainfest_tool=yes
7711 fi
7712 rm -f conftest*
7713fi
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7715$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7716if test "x$lt_cv_path_mainfest_tool" != xyes; then
7717 MANIFEST_TOOL=:
7718fi
7719
7720
7721
7722
7723
7724
7725 case $host_os in
7726 rhapsody* | darwin*)
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_DSYMUTIL+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$DSYMUTIL"; then
7736 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755DSYMUTIL=$ac_cv_prog_DSYMUTIL
7756if test -n "$DSYMUTIL"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7758$as_echo "$DSYMUTIL" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_DSYMUTIL"; then
7767 ac_ct_DSYMUTIL=$DSYMUTIL
7768 # Extract the first word of "dsymutil", so it can be a program name with args.
7769set dummy dsymutil; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774else
7775 if test -n "$ac_ct_DSYMUTIL"; then
7776 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790 done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7796if test -n "$ac_ct_DSYMUTIL"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7798$as_echo "$ac_ct_DSYMUTIL" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804 if test "x$ac_ct_DSYMUTIL" = x; then
7805 DSYMUTIL=":"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813 DSYMUTIL=$ac_ct_DSYMUTIL
7814 fi
7815else
7816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7817fi
7818
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if ${ac_cv_prog_NMEDIT+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826else
7827 if test -n "$NMEDIT"; then
7828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847NMEDIT=$ac_cv_prog_NMEDIT
7848if test -n "$NMEDIT"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7850$as_echo "$NMEDIT" >&6; }
7851else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857fi
7858if test -z "$ac_cv_prog_NMEDIT"; then
7859 ac_ct_NMEDIT=$NMEDIT
7860 # Extract the first word of "nmedit", so it can be a program name with args.
7861set dummy nmedit; ac_word=$2
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
7864if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866else
7867 if test -n "$ac_ct_NMEDIT"; then
7868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882 done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7888if test -n "$ac_ct_NMEDIT"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7890$as_echo "$ac_ct_NMEDIT" >&6; }
7891else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894fi
7895
7896 if test "x$ac_ct_NMEDIT" = x; then
7897 NMEDIT=":"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905 NMEDIT=$ac_ct_NMEDIT
7906 fi
7907else
7908 NMEDIT="$ac_cv_prog_NMEDIT"
7909fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}lipo; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_LIPO+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918else
7919 if test -n "$LIPO"; then
7920 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934 done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939LIPO=$ac_cv_prog_LIPO
7940if test -n "$LIPO"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7942$as_echo "$LIPO" >&6; }
7943else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_LIPO"; then
7951 ac_ct_LIPO=$LIPO
7952 # Extract the first word of "lipo", so it can be a program name with args.
7953set dummy lipo; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958else
7959 if test -n "$ac_ct_LIPO"; then
7960 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_LIPO="lipo"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974 done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7980if test -n "$ac_ct_LIPO"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7982$as_echo "$ac_ct_LIPO" >&6; }
7983else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988 if test "x$ac_ct_LIPO" = x; then
7989 LIPO=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997 LIPO=$ac_ct_LIPO
7998 fi
7999else
8000 LIPO="$ac_cv_prog_LIPO"
8001fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8005set dummy ${ac_tool_prefix}otool; ac_word=$2
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007$as_echo_n "checking for $ac_word... " >&6; }
8008if ${ac_cv_prog_OTOOL+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010else
8011 if test -n "$OTOOL"; then
8012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025done
8026 done
8027IFS=$as_save_IFS
8028
8029fi
8030fi
8031OTOOL=$ac_cv_prog_OTOOL
8032if test -n "$OTOOL"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8034$as_echo "$OTOOL" >&6; }
8035else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037$as_echo "no" >&6; }
8038fi
8039
8040
8041fi
8042if test -z "$ac_cv_prog_OTOOL"; then
8043 ac_ct_OTOOL=$OTOOL
8044 # Extract the first word of "otool", so it can be a program name with args.
8045set dummy otool; ac_word=$2
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047$as_echo_n "checking for $ac_word... " >&6; }
8048if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 if test -n "$ac_ct_OTOOL"; then
8052 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8053else
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_OTOOL="otool"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066 done
8067IFS=$as_save_IFS
8068
8069fi
8070fi
8071ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8072if test -n "$ac_ct_OTOOL"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8074$as_echo "$ac_ct_OTOOL" >&6; }
8075else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078fi
8079
8080 if test "x$ac_ct_OTOOL" = x; then
8081 OTOOL=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084yes:)
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087ac_tool_warned=yes ;;
8088esac
8089 OTOOL=$ac_ct_OTOOL
8090 fi
8091else
8092 OTOOL="$ac_cv_prog_OTOOL"
8093fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8097set dummy ${ac_tool_prefix}otool64; ac_word=$2
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if ${ac_cv_prog_OTOOL64+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102else
8103 if test -n "$OTOOL64"; then
8104 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117done
8118 done
8119IFS=$as_save_IFS
8120
8121fi
8122fi
8123OTOOL64=$ac_cv_prog_OTOOL64
8124if test -n "$OTOOL64"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8126$as_echo "$OTOOL64" >&6; }
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133fi
8134if test -z "$ac_cv_prog_OTOOL64"; then
8135 ac_ct_OTOOL64=$OTOOL64
8136 # Extract the first word of "otool64", so it can be a program name with args.
8137set dummy otool64; ac_word=$2
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139$as_echo_n "checking for $ac_word... " >&6; }
8140if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142else
8143 if test -n "$ac_ct_OTOOL64"; then
8144 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8145else
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_ac_ct_OTOOL64="otool64"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158 done
8159IFS=$as_save_IFS
8160
8161fi
8162fi
8163ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8164if test -n "$ac_ct_OTOOL64"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8166$as_echo "$ac_ct_OTOOL64" >&6; }
8167else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
8170fi
8171
8172 if test "x$ac_ct_OTOOL64" = x; then
8173 OTOOL64=":"
8174 else
8175 case $cross_compiling:$ac_tool_warned in
8176yes:)
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179ac_tool_warned=yes ;;
8180esac
8181 OTOOL64=$ac_ct_OTOOL64
8182 fi
8183else
8184 OTOOL64="$ac_cv_prog_OTOOL64"
8185fi
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8214$as_echo_n "checking for -single_module linker flag... " >&6; }
8215if ${lt_cv_apple_cc_single_mod+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217else
8218 lt_cv_apple_cc_single_mod=no
8219 if test -z "${LT_MULTI_MODULE}"; then
8220 # By default we will add the -single_module flag. You can override
8221 # by either setting the environment variable LT_MULTI_MODULE
8222 # non-empty at configure time, or by adding -multi_module to the
8223 # link flags.
8224 rm -rf libconftest.dylib*
8225 echo "int foo(void){return 1;}" > conftest.c
8226 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8227-dynamiclib -Wl,-single_module conftest.c" >&5
8228 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8229 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8230 _lt_result=$?
8231 # If there is a non-empty error log, and "single_module"
8232 # appears in it, assume the flag caused a linker warning
8233 if test -s conftest.err && $GREP single_module conftest.err; then
8234 cat conftest.err >&5
8235 # Otherwise, if the output was created with a 0 exit code from
8236 # the compiler, it worked.
8237 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8238 lt_cv_apple_cc_single_mod=yes
8239 else
8240 cat conftest.err >&5
8241 fi
8242 rm -rf libconftest.dylib*
8243 rm -f conftest.*
8244 fi
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8247$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8248
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8250$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8251if ${lt_cv_ld_exported_symbols_list+:} false; then :
8252 $as_echo_n "(cached) " >&6
8253else
8254 lt_cv_ld_exported_symbols_list=no
8255 save_LDFLAGS=$LDFLAGS
8256 echo "_main" > conftest.sym
8257 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h. */
8260
8261int
8262main ()
8263{
8264
8265 ;
8266 return 0;
8267}
8268_ACEOF
8269if ac_fn_c_try_link "$LINENO"; then :
8270 lt_cv_ld_exported_symbols_list=yes
8271else
8272 lt_cv_ld_exported_symbols_list=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext \
8275 conftest$ac_exeext conftest.$ac_ext
8276 LDFLAGS="$save_LDFLAGS"
8277
8278fi
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8280$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8281
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8283$as_echo_n "checking for -force_load linker flag... " >&6; }
8284if ${lt_cv_ld_force_load+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286else
8287 lt_cv_ld_force_load=no
8288 cat > conftest.c << _LT_EOF
8289int forced_loaded() { return 2;}
8290_LT_EOF
8291 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8292 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8293 echo "$AR cru libconftest.a conftest.o" >&5
8294 $AR cru libconftest.a conftest.o 2>&5
8295 echo "$RANLIB libconftest.a" >&5
8296 $RANLIB libconftest.a 2>&5
8297 cat > conftest.c << _LT_EOF
8298int main() { return 0;}
8299_LT_EOF
8300 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8301 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8302 _lt_result=$?
8303 if test -s conftest.err && $GREP force_load conftest.err; then
8304 cat conftest.err >&5
8305 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8306 lt_cv_ld_force_load=yes
8307 else
8308 cat conftest.err >&5
8309 fi
8310 rm -f conftest.err libconftest.a conftest conftest.c
8311 rm -rf conftest.dSYM
8312
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8315$as_echo "$lt_cv_ld_force_load" >&6; }
8316 case $host_os in
8317 rhapsody* | darwin1.[012])
8318 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8319 darwin1.*)
8320 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8321 darwin*) # darwin 5.x on
8322 # if running on 10.5 or later, the deployment target defaults
8323 # to the OS version, if on x86, and 10.4, the deployment
8324 # target defaults to 10.4. Don't you love it?
8325 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8326 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8327 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8328 10.[012]*)
8329 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8330 10.*)
8331 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8332 esac
8333 ;;
8334 esac
8335 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8336 _lt_dar_single_mod='$single_module'
8337 fi
8338 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8339 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8340 else
8341 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8342 fi
8343 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8344 _lt_dsymutil='~$DSYMUTIL $lib || :'
8345 else
8346 _lt_dsymutil=
8347 fi
8348 ;;
8349 esac
8350
8351for ac_header in dlfcn.h
8352do :
8353 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8354"
8355if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8356 cat >>confdefs.h <<_ACEOF
8357#define HAVE_DLFCN_H 1
8358_ACEOF
8359
8360fi
8361
8362done
8363
8364
8365
8366
8367
8368# Set options
8369enable_dlopen=yes
8370# Check whether --enable-static was given.
8371if test "${enable_static+set}" = set; then :
8372 enableval=$enable_static; p=${PACKAGE-default}
8373 case $enableval in
8374 yes) enable_static=yes ;;
8375 no) enable_static=no ;;
8376 *)
8377 enable_static=no
8378 # Look at the argument we got. We use all the common list separators.
8379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380 for pkg in $enableval; do
8381 IFS="$lt_save_ifs"
8382 if test "X$pkg" = "X$p"; then
8383 enable_static=yes
8384 fi
8385 done
8386 IFS="$lt_save_ifs"
8387 ;;
8388 esac
8389else
8390 enable_static=no
8391fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 enable_win32_dll=no
8404
8405
8406 # Check whether --enable-shared was given.
8407if test "${enable_shared+set}" = set; then :
8408 enableval=$enable_shared; p=${PACKAGE-default}
8409 case $enableval in
8410 yes) enable_shared=yes ;;
8411 no) enable_shared=no ;;
8412 *)
8413 enable_shared=no
8414 # Look at the argument we got. We use all the common list separators.
8415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8416 for pkg in $enableval; do
8417 IFS="$lt_save_ifs"
8418 if test "X$pkg" = "X$p"; then
8419 enable_shared=yes
8420 fi
8421 done
8422 IFS="$lt_save_ifs"
8423 ;;
8424 esac
8425else
8426 enable_shared=yes
8427fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439# Check whether --with-pic was given.
8440if test "${with_pic+set}" = set; then :
8441 withval=$with_pic; lt_p=${PACKAGE-default}
8442 case $withval in
8443 yes|no) pic_mode=$withval ;;
8444 *)
8445 pic_mode=default
8446 # Look at the argument we got. We use all the common list separators.
8447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8448 for lt_pkg in $withval; do
8449 IFS="$lt_save_ifs"
8450 if test "X$lt_pkg" = "X$lt_p"; then
8451 pic_mode=yes
8452 fi
8453 done
8454 IFS="$lt_save_ifs"
8455 ;;
8456 esac
8457else
8458 pic_mode=default
8459fi
8460
8461
8462test -z "$pic_mode" && pic_mode=default
8463
8464
8465
8466
8467
8468
8469
8470 # Check whether --enable-fast-install was given.
8471if test "${enable_fast_install+set}" = set; then :
8472 enableval=$enable_fast_install; p=${PACKAGE-default}
8473 case $enableval in
8474 yes) enable_fast_install=yes ;;
8475 no) enable_fast_install=no ;;
8476 *)
8477 enable_fast_install=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8481 IFS="$lt_save_ifs"
8482 if test "X$pkg" = "X$p"; then
8483 enable_fast_install=yes
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8487 ;;
8488 esac
8489else
8490 enable_fast_install=yes
8491fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503# This can be used to rebuild libtool when needed
8504LIBTOOL_DEPS="$ltmain"
8505
8506# Always use our own libtool.
8507LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538test -z "$LN_S" && LN_S="ln -s"
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553if test -n "${ZSH_VERSION+set}" ; then
8554 setopt NO_GLOB_SUBST
8555fi
8556
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8558$as_echo_n "checking for objdir... " >&6; }
8559if ${lt_cv_objdir+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561else
8562 rm -f .libs 2>/dev/null
8563mkdir .libs 2>/dev/null
8564if test -d .libs; then
8565 lt_cv_objdir=.libs
8566else
8567 # MS-DOS does not allow filenames that begin with a dot.
8568 lt_cv_objdir=_libs
8569fi
8570rmdir .libs 2>/dev/null
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8573$as_echo "$lt_cv_objdir" >&6; }
8574objdir=$lt_cv_objdir
8575
8576
8577
8578
8579
8580cat >>confdefs.h <<_ACEOF
8581#define LT_OBJDIR "$lt_cv_objdir/"
8582_ACEOF
8583
8584
8585
8586
8587case $host_os in
8588aix3*)
8589 # AIX sometimes has problems with the GCC collect2 program. For some
8590 # reason, if we set the COLLECT_NAMES environment variable, the problems
8591 # vanish in a puff of smoke.
8592 if test "X${COLLECT_NAMES+set}" != Xset; then
8593 COLLECT_NAMES=
8594 export COLLECT_NAMES
8595 fi
8596 ;;
8597esac
8598
8599# Global variables:
8600ofile=libtool
8601can_build_shared=yes
8602
8603# All known linkers require a `.a' archive for static linking (except MSVC,
8604# which needs '.lib').
8605libext=a
8606
8607with_gnu_ld="$lt_cv_prog_gnu_ld"
8608
8609old_CC="$CC"
8610old_CFLAGS="$CFLAGS"
8611
8612# Set sane defaults for various variables
8613test -z "$CC" && CC=cc
8614test -z "$LTCC" && LTCC=$CC
8615test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8616test -z "$LD" && LD=ld
8617test -z "$ac_objext" && ac_objext=o
8618
8619for cc_temp in $compiler""; do
8620 case $cc_temp in
8621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8623 \-*) ;;
8624 *) break;;
8625 esac
8626done
8627cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8628
8629
8630# Only perform the check for file, if the check method requires it
8631test -z "$MAGIC_CMD" && MAGIC_CMD=file
8632case $deplibs_check_method in
8633file_magic*)
8634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8636$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8637if ${lt_cv_path_MAGIC_CMD+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639else
8640 case $MAGIC_CMD in
8641[\\/*] | ?:[\\/]*)
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8643 ;;
8644*)
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8649 IFS="$lt_save_ifs"
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/${ac_tool_prefix}file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8655 "file_magic "*)
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8660 :
8661 else
8662 cat <<_LT_EOF 1>&2
8663
8664*** Warning: the command libtool uses to detect shared libraries,
8665*** $file_magic_cmd, produces output that libtool cannot recognize.
8666*** The result is that libtool may fail to recognize shared libraries
8667*** as such. This will affect the creation of libtool libraries that
8668*** depend on shared libraries, but programs linked with such libtool
8669*** libraries will work regardless of this problem. Nevertheless, you
8670*** may want to report the problem to your system manager and/or to
8671*** bug-libtool@gnu.org
8672
8673_LT_EOF
8674 fi ;;
8675 esac
8676 fi
8677 break
8678 fi
8679 done
8680 IFS="$lt_save_ifs"
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8682 ;;
8683esac
8684fi
8685
8686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687if test -n "$MAGIC_CMD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689$as_echo "$MAGIC_CMD" >&6; }
8690else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692$as_echo "no" >&6; }
8693fi
8694
8695
8696
8697
8698
8699if test -z "$lt_cv_path_MAGIC_CMD"; then
8700 if test -n "$ac_tool_prefix"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8702$as_echo_n "checking for file... " >&6; }
8703if ${lt_cv_path_MAGIC_CMD+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705else
8706 case $MAGIC_CMD in
8707[\\/*] | ?:[\\/]*)
8708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8709 ;;
8710*)
8711 lt_save_MAGIC_CMD="$MAGIC_CMD"
8712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8714 for ac_dir in $ac_dummy; do
8715 IFS="$lt_save_ifs"
8716 test -z "$ac_dir" && ac_dir=.
8717 if test -f $ac_dir/file; then
8718 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8719 if test -n "$file_magic_test_file"; then
8720 case $deplibs_check_method in
8721 "file_magic "*)
8722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8725 $EGREP "$file_magic_regex" > /dev/null; then
8726 :
8727 else
8728 cat <<_LT_EOF 1>&2
8729
8730*** Warning: the command libtool uses to detect shared libraries,
8731*** $file_magic_cmd, produces output that libtool cannot recognize.
8732*** The result is that libtool may fail to recognize shared libraries
8733*** as such. This will affect the creation of libtool libraries that
8734*** depend on shared libraries, but programs linked with such libtool
8735*** libraries will work regardless of this problem. Nevertheless, you
8736*** may want to report the problem to your system manager and/or to
8737*** bug-libtool@gnu.org
8738
8739_LT_EOF
8740 fi ;;
8741 esac
8742 fi
8743 break
8744 fi
8745 done
8746 IFS="$lt_save_ifs"
8747 MAGIC_CMD="$lt_save_MAGIC_CMD"
8748 ;;
8749esac
8750fi
8751
8752MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8753if test -n "$MAGIC_CMD"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8755$as_echo "$MAGIC_CMD" >&6; }
8756else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758$as_echo "no" >&6; }
8759fi
8760
8761
8762 else
8763 MAGIC_CMD=:
8764 fi
8765fi
8766
8767 fi
8768 ;;
8769esac
8770
8771# Use C for the default configuration in the libtool script
8772
8773lt_save_CC="$CC"
8774ac_ext=c
8775ac_cpp='$CPP $CPPFLAGS'
8776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778ac_compiler_gnu=$ac_cv_c_compiler_gnu
8779
8780
8781# Source file extension for C test sources.
8782ac_ext=c
8783
8784# Object file extension for compiled C test sources.
8785objext=o
8786objext=$objext
8787
8788# Code to be used in simple compile tests
8789lt_simple_compile_test_code="int some_variable = 0;"
8790
8791# Code to be used in simple link tests
8792lt_simple_link_test_code='int main(){return(0);}'
8793
8794
8795
8796
8797
8798
8799
8800# If no C compiler was specified, use CC.
8801LTCC=${LTCC-"$CC"}
8802
8803# If no C compiler flags were specified, use CFLAGS.
8804LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8805
8806# Allow CC to be a program name with arguments.
8807compiler=$CC
8808
8809# Save the default compiler, since it gets overwritten when the other
8810# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8811compiler_DEFAULT=$CC
8812
8813# save warnings/boilerplate of simple test code
8814ac_outfile=conftest.$ac_objext
8815echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8816eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817_lt_compiler_boilerplate=`cat conftest.err`
8818$RM conftest*
8819
8820ac_outfile=conftest.$ac_objext
8821echo "$lt_simple_link_test_code" >conftest.$ac_ext
8822eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8823_lt_linker_boilerplate=`cat conftest.err`
8824$RM -r conftest*
8825
8826
8827## CAVEAT EMPTOR:
8828## There is no encapsulation within the following macros, do not change
8829## the running order or otherwise move them around unless you know exactly
8830## what you are doing...
8831if test -n "$compiler"; then
8832
8833lt_prog_compiler_no_builtin_flag=
8834
8835if test "$GCC" = yes; then
8836 case $cc_basename in
8837 nvcc*)
8838 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8839 *)
8840 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8841 esac
8842
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8844$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8845if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8846 $as_echo_n "(cached) " >&6
8847else
8848 lt_cv_prog_compiler_rtti_exceptions=no
8849 ac_outfile=conftest.$ac_objext
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851 lt_compiler_flag="-fno-rtti -fno-exceptions"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 # The option is referenced via a variable to avoid confusing sed.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>conftest.err)
8863 ac_status=$?
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s "$ac_outfile"; then
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings other than the usual output.
8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_rtti_exceptions=yes
8873 fi
8874 fi
8875 $RM conftest*
8876
8877fi
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8879$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8880
8881if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8882 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8883else
8884 :
8885fi
8886
8887fi
8888
8889
8890
8891
8892
8893
8894 lt_prog_compiler_wl=
8895lt_prog_compiler_pic=
8896lt_prog_compiler_static=
8897
8898
8899 if test "$GCC" = yes; then
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_static='-static'
8902
8903 case $host_os in
8904 aix*)
8905 # All AIX code is PIC.
8906 if test "$host_cpu" = ia64; then
8907 # AIX 5 now supports IA64 processor
8908 lt_prog_compiler_static='-Bstatic'
8909 fi
8910 ;;
8911
8912 amigaos*)
8913 case $host_cpu in
8914 powerpc)
8915 # see comment about AmigaOS4 .so support
8916 lt_prog_compiler_pic='-fPIC'
8917 ;;
8918 m68k)
8919 # FIXME: we need at least 68020 code to build shared libraries, but
8920 # adding the `-m68020' flag to GCC prevents building anything better,
8921 # like `-m68040'.
8922 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8923 ;;
8924 esac
8925 ;;
8926
8927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8928 # PIC is the default for these OSes.
8929 ;;
8930
8931 mingw* | cygwin* | pw32* | os2* | cegcc*)
8932 # This hack is so that the source file can tell whether it is being
8933 # built for inclusion in a dll (and should export symbols for example).
8934 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8935 # (--disable-auto-import) libraries
8936 lt_prog_compiler_pic='-DDLL_EXPORT'
8937 ;;
8938
8939 darwin* | rhapsody*)
8940 # PIC is the default on this platform
8941 # Common symbols not allowed in MH_DYLIB files
8942 lt_prog_compiler_pic='-fno-common'
8943 ;;
8944
8945 haiku*)
8946 # PIC is the default for Haiku.
8947 # The "-static" flag exists, but is broken.
8948 lt_prog_compiler_static=
8949 ;;
8950
8951 hpux*)
8952 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8953 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8954 # sets the default TLS model and affects inlining.
8955 case $host_cpu in
8956 hppa*64*)
8957 # +Z the default
8958 ;;
8959 *)
8960 lt_prog_compiler_pic='-fPIC'
8961 ;;
8962 esac
8963 ;;
8964
8965 interix[3-9]*)
8966 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8967 # Instead, we relocate shared libraries at runtime.
8968 ;;
8969
8970 msdosdjgpp*)
8971 # Just because we use GCC doesn't mean we suddenly get shared libraries
8972 # on systems that don't support them.
8973 lt_prog_compiler_can_build_shared=no
8974 enable_shared=no
8975 ;;
8976
8977 *nto* | *qnx*)
8978 # QNX uses GNU C++, but need to define -shared option too, otherwise
8979 # it will coredump.
8980 lt_prog_compiler_pic='-fPIC -shared'
8981 ;;
8982
8983 sysv4*MP*)
8984 if test -d /usr/nec; then
8985 lt_prog_compiler_pic=-Kconform_pic
8986 fi
8987 ;;
8988
8989 *)
8990 lt_prog_compiler_pic='-fPIC'
8991 ;;
8992 esac
8993
8994 case $cc_basename in
8995 nvcc*) # Cuda Compiler Driver 2.2
8996 lt_prog_compiler_wl='-Xlinker '
8997 if test -n "$lt_prog_compiler_pic"; then
8998 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8999 fi
9000 ;;
9001 esac
9002 else
9003 # PORTME Check for flag to pass linker flags through the system compiler.
9004 case $host_os in
9005 aix*)
9006 lt_prog_compiler_wl='-Wl,'
9007 if test "$host_cpu" = ia64; then
9008 # AIX 5 now supports IA64 processor
9009 lt_prog_compiler_static='-Bstatic'
9010 else
9011 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9012 fi
9013 ;;
9014
9015 mingw* | cygwin* | pw32* | os2* | cegcc*)
9016 # This hack is so that the source file can tell whether it is being
9017 # built for inclusion in a dll (and should export symbols for example).
9018 lt_prog_compiler_pic='-DDLL_EXPORT'
9019 ;;
9020
9021 hpux9* | hpux10* | hpux11*)
9022 lt_prog_compiler_wl='-Wl,'
9023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9024 # not for PA HP-UX.
9025 case $host_cpu in
9026 hppa*64*|ia64*)
9027 # +Z the default
9028 ;;
9029 *)
9030 lt_prog_compiler_pic='+Z'
9031 ;;
9032 esac
9033 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9034 lt_prog_compiler_static='${wl}-a ${wl}archive'
9035 ;;
9036
9037 irix5* | irix6* | nonstopux*)
9038 lt_prog_compiler_wl='-Wl,'
9039 # PIC (with -KPIC) is the default.
9040 lt_prog_compiler_static='-non_shared'
9041 ;;
9042
9043 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9044 case $cc_basename in
9045 # old Intel for x86_64 which still supported -KPIC.
9046 ecc*)
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-KPIC'
9049 lt_prog_compiler_static='-static'
9050 ;;
9051 # icc used to be incompatible with GCC.
9052 # ICC 10 doesn't accept -KPIC any more.
9053 icc* | ifort*)
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_pic='-fPIC'
9056 lt_prog_compiler_static='-static'
9057 ;;
9058 # Lahey Fortran 8.1.
9059 lf95*)
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_pic='--shared'
9062 lt_prog_compiler_static='--static'
9063 ;;
9064 nagfor*)
9065 # NAG Fortran compiler
9066 lt_prog_compiler_wl='-Wl,-Wl,,'
9067 lt_prog_compiler_pic='-PIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 ;;
9070 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9071 # Portland Group compilers (*not* the Pentium gcc compiler,
9072 # which looks to be a dead project)
9073 lt_prog_compiler_wl='-Wl,'
9074 lt_prog_compiler_pic='-fpic'
9075 lt_prog_compiler_static='-Bstatic'
9076 ;;
9077 ccc*)
9078 lt_prog_compiler_wl='-Wl,'
9079 # All Alpha code is PIC.
9080 lt_prog_compiler_static='-non_shared'
9081 ;;
9082 xl* | bgxl* | bgf* | mpixl*)
9083 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='-qpic'
9086 lt_prog_compiler_static='-qstaticlink'
9087 ;;
9088 *)
9089 case `$CC -V 2>&1 | sed 5q` in
9090 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9091 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-Bstatic'
9094 lt_prog_compiler_wl=''
9095 ;;
9096 *Sun\ F* | *Sun*Fortran*)
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9099 lt_prog_compiler_wl='-Qoption ld '
9100 ;;
9101 *Sun\ C*)
9102 # Sun C 5.9
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-Bstatic'
9105 lt_prog_compiler_wl='-Wl,'
9106 ;;
9107 *Intel*\ [CF]*Compiler*)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-fPIC'
9110 lt_prog_compiler_static='-static'
9111 ;;
9112 *Portland\ Group*)
9113 lt_prog_compiler_wl='-Wl,'
9114 lt_prog_compiler_pic='-fpic'
9115 lt_prog_compiler_static='-Bstatic'
9116 ;;
9117 esac
9118 ;;
9119 esac
9120 ;;
9121
9122 newsos6)
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 ;;
9126
9127 *nto* | *qnx*)
9128 # QNX uses GNU C++, but need to define -shared option too, otherwise
9129 # it will coredump.
9130 lt_prog_compiler_pic='-fPIC -shared'
9131 ;;
9132
9133 osf3* | osf4* | osf5*)
9134 lt_prog_compiler_wl='-Wl,'
9135 # All OSF/1 code is PIC.
9136 lt_prog_compiler_static='-non_shared'
9137 ;;
9138
9139 rdos*)
9140 lt_prog_compiler_static='-non_shared'
9141 ;;
9142
9143 solaris*)
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-Bstatic'
9146 case $cc_basename in
9147 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9148 lt_prog_compiler_wl='-Qoption ld ';;
9149 *)
9150 lt_prog_compiler_wl='-Wl,';;
9151 esac
9152 ;;
9153
9154 sunos4*)
9155 lt_prog_compiler_wl='-Qoption ld '
9156 lt_prog_compiler_pic='-PIC'
9157 lt_prog_compiler_static='-Bstatic'
9158 ;;
9159
9160 sysv4 | sysv4.2uw2* | sysv4.3*)
9161 lt_prog_compiler_wl='-Wl,'
9162 lt_prog_compiler_pic='-KPIC'
9163 lt_prog_compiler_static='-Bstatic'
9164 ;;
9165
9166 sysv4*MP*)
9167 if test -d /usr/nec ;then
9168 lt_prog_compiler_pic='-Kconform_pic'
9169 lt_prog_compiler_static='-Bstatic'
9170 fi
9171 ;;
9172
9173 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-KPIC'
9176 lt_prog_compiler_static='-Bstatic'
9177 ;;
9178
9179 unicos*)
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_can_build_shared=no
9182 ;;
9183
9184 uts4*)
9185 lt_prog_compiler_pic='-pic'
9186 lt_prog_compiler_static='-Bstatic'
9187 ;;
9188
9189 *)
9190 lt_prog_compiler_can_build_shared=no
9191 ;;
9192 esac
9193 fi
9194
9195case $host_os in
9196 # For platforms which do not support PIC, -DPIC is meaningless:
9197 *djgpp*)
9198 lt_prog_compiler_pic=
9199 ;;
9200 *)
9201 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9202 ;;
9203esac
9204
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9206$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9207if ${lt_cv_prog_compiler_pic+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209else
9210 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9213$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9214lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9215
9216#
9217# Check to make sure the PIC flag actually works.
9218#
9219if test -n "$lt_prog_compiler_pic"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9221$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9222if ${lt_cv_prog_compiler_pic_works+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224else
9225 lt_cv_prog_compiler_pic_works=no
9226 ac_outfile=conftest.$ac_objext
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9229 # Insert the option either (1) after the last *FLAGS variable, or
9230 # (2) before a word containing "conftest.", or (3) at the end.
9231 # Note that $ac_compile itself does not contain backslashes and begins
9232 # with a dollar sign (not a hyphen), so the echo should work correctly.
9233 # The option is referenced via a variable to avoid confusing sed.
9234 lt_compile=`echo "$ac_compile" | $SED \
9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237 -e 's:$: $lt_compiler_flag:'`
9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9239 (eval "$lt_compile" 2>conftest.err)
9240 ac_status=$?
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 if (exit $ac_status) && test -s "$ac_outfile"; then
9244 # The compiler can only warn and ignore the option if not recognized
9245 # So say no if there are warnings other than the usual output.
9246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9249 lt_cv_prog_compiler_pic_works=yes
9250 fi
9251 fi
9252 $RM conftest*
9253
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9256$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9257
9258if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9259 case $lt_prog_compiler_pic in
9260 "" | " "*) ;;
9261 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9262 esac
9263else
9264 lt_prog_compiler_pic=
9265 lt_prog_compiler_can_build_shared=no
9266fi
9267
9268fi
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280#
9281# Check to make sure the static flag actually works.
9282#
9283wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9285$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9286if ${lt_cv_prog_compiler_static_works+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288else
9289 lt_cv_prog_compiler_static_works=no
9290 save_LDFLAGS="$LDFLAGS"
9291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9294 # The linker can only warn and ignore the option if not recognized
9295 # So say no if there are warnings
9296 if test -s conftest.err; then
9297 # Append any errors to the config.log.
9298 cat conftest.err 1>&5
9299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9301 if diff conftest.exp conftest.er2 >/dev/null; then
9302 lt_cv_prog_compiler_static_works=yes
9303 fi
9304 else
9305 lt_cv_prog_compiler_static_works=yes
9306 fi
9307 fi
9308 $RM -r conftest*
9309 LDFLAGS="$save_LDFLAGS"
9310
9311fi
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9313$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9314
9315if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9316 :
9317else
9318 lt_prog_compiler_static=
9319fi
9320
9321
9322
9323
9324
9325
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9329if ${lt_cv_prog_compiler_c_o+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331else
9332 lt_cv_prog_compiler_c_o=no
9333 $RM -r conftest 2>/dev/null
9334 mkdir conftest
9335 cd conftest
9336 mkdir out
9337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9338
9339 lt_compiler_flag="-o out/conftest2.$ac_objext"
9340 # Insert the option either (1) after the last *FLAGS variable, or
9341 # (2) before a word containing "conftest.", or (3) at the end.
9342 # Note that $ac_compile itself does not contain backslashes and begins
9343 # with a dollar sign (not a hyphen), so the echo should work correctly.
9344 lt_compile=`echo "$ac_compile" | $SED \
9345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9347 -e 's:$: $lt_compiler_flag:'`
9348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9349 (eval "$lt_compile" 2>out/conftest.err)
9350 ac_status=$?
9351 cat out/conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9354 then
9355 # The compiler can only warn and ignore the option if not recognized
9356 # So say no if there are warnings
9357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9360 lt_cv_prog_compiler_c_o=yes
9361 fi
9362 fi
9363 chmod u+w . 2>&5
9364 $RM conftest*
9365 # SGI C++ compiler will create directory out/ii_files/ for
9366 # template instantiation
9367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9368 $RM out/* && rmdir out
9369 cd ..
9370 $RM -r conftest
9371 $RM conftest*
9372
9373fi
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9375$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9376
9377
9378
9379
9380
9381
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9383$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9384if ${lt_cv_prog_compiler_c_o+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386else
9387 lt_cv_prog_compiler_c_o=no
9388 $RM -r conftest 2>/dev/null
9389 mkdir conftest
9390 cd conftest
9391 mkdir out
9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9393
9394 lt_compiler_flag="-o out/conftest2.$ac_objext"
9395 # Insert the option either (1) after the last *FLAGS variable, or
9396 # (2) before a word containing "conftest.", or (3) at the end.
9397 # Note that $ac_compile itself does not contain backslashes and begins
9398 # with a dollar sign (not a hyphen), so the echo should work correctly.
9399 lt_compile=`echo "$ac_compile" | $SED \
9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9402 -e 's:$: $lt_compiler_flag:'`
9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9404 (eval "$lt_compile" 2>out/conftest.err)
9405 ac_status=$?
9406 cat out/conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9409 then
9410 # The compiler can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9415 lt_cv_prog_compiler_c_o=yes
9416 fi
9417 fi
9418 chmod u+w . 2>&5
9419 $RM conftest*
9420 # SGI C++ compiler will create directory out/ii_files/ for
9421 # template instantiation
9422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9423 $RM out/* && rmdir out
9424 cd ..
9425 $RM -r conftest
9426 $RM conftest*
9427
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9430$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9431
9432
9433
9434
9435hard_links="nottested"
9436if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9437 # do not overwrite the value of need_locks provided by the user
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9439$as_echo_n "checking if we can lock with hard links... " >&6; }
9440 hard_links=yes
9441 $RM conftest*
9442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9443 touch conftest.a
9444 ln conftest.a conftest.b 2>&5 || hard_links=no
9445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9447$as_echo "$hard_links" >&6; }
9448 if test "$hard_links" = no; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9450$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9451 need_locks=warn
9452 fi
9453else
9454 need_locks=no
9455fi
9456
9457
9458
9459
9460
9461
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9463$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9464
9465 runpath_var=
9466 allow_undefined_flag=
9467 always_export_symbols=no
9468 archive_cmds=
9469 archive_expsym_cmds=
9470 compiler_needs_object=no
9471 enable_shared_with_static_runtimes=no
9472 export_dynamic_flag_spec=
9473 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9474 hardcode_automatic=no
9475 hardcode_direct=no
9476 hardcode_direct_absolute=no
9477 hardcode_libdir_flag_spec=
9478 hardcode_libdir_separator=
9479 hardcode_minus_L=no
9480 hardcode_shlibpath_var=unsupported
9481 inherit_rpath=no
9482 link_all_deplibs=unknown
9483 module_cmds=
9484 module_expsym_cmds=
9485 old_archive_from_new_cmds=
9486 old_archive_from_expsyms_cmds=
9487 thread_safe_flag_spec=
9488 whole_archive_flag_spec=
9489 # include_expsyms should be a list of space-separated symbols to be *always*
9490 # included in the symbol list
9491 include_expsyms=
9492 # exclude_expsyms can be an extended regexp of symbols to exclude
9493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9495 # as well as any symbol that contains `d'.
9496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9498 # platforms (ab)use it in PIC code, but their linkers get confused if
9499 # the symbol is explicitly referenced. Since portable code cannot
9500 # rely on this symbol name, it's probably fine to never include it in
9501 # preloaded symbol tables.
9502 # Exclude shared library initialization/finalization symbols.
9503 extract_expsyms_cmds=
9504
9505 case $host_os in
9506 cygwin* | mingw* | pw32* | cegcc*)
9507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9508 # When not using gcc, we currently assume that we are using
9509 # Microsoft Visual C++.
9510 if test "$GCC" != yes; then
9511 with_gnu_ld=no
9512 fi
9513 ;;
9514 interix*)
9515 # we just hope/assume this is gcc and not c89 (= MSVC++)
9516 with_gnu_ld=yes
9517 ;;
9518 openbsd*)
9519 with_gnu_ld=no
9520 ;;
9521 linux* | k*bsd*-gnu | gnu*)
9522 link_all_deplibs=no
9523 ;;
9524 esac
9525
9526 ld_shlibs=yes
9527
9528 # On some targets, GNU ld is compatible enough with the native linker
9529 # that we're better off using the native interface for both.
9530 lt_use_gnu_ld_interface=no
9531 if test "$with_gnu_ld" = yes; then
9532 case $host_os in
9533 aix*)
9534 # The AIX port of GNU ld has always aspired to compatibility
9535 # with the native linker. However, as the warning in the GNU ld
9536 # block says, versions before 2.19.5* couldn't really create working
9537 # shared libraries, regardless of the interface used.
9538 case `$LD -v 2>&1` in
9539 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9540 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9541 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9542 *)
9543 lt_use_gnu_ld_interface=yes
9544 ;;
9545 esac
9546 ;;
9547 *)
9548 lt_use_gnu_ld_interface=yes
9549 ;;
9550 esac
9551 fi
9552
9553 if test "$lt_use_gnu_ld_interface" = yes; then
9554 # If archive_cmds runs LD, not CC, wlarc should be empty
9555 wlarc='${wl}'
9556
9557 # Set some defaults for GNU ld with shared library support. These
9558 # are reset later if shared libraries are not supported. Putting them
9559 # here allows them to be overridden if necessary.
9560 runpath_var=LD_RUN_PATH
9561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562 export_dynamic_flag_spec='${wl}--export-dynamic'
9563 # ancient GNU ld didn't support --whole-archive et. al.
9564 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9565 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9566 else
9567 whole_archive_flag_spec=
9568 fi
9569 supports_anon_versioning=no
9570 case `$LD -v 2>&1` in
9571 *GNU\ gold*) supports_anon_versioning=yes ;;
9572 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9573 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9574 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9575 *\ 2.11.*) ;; # other 2.11 versions
9576 *) supports_anon_versioning=yes ;;
9577 esac
9578
9579 # See if GNU ld supports shared libraries.
9580 case $host_os in
9581 aix[3-9]*)
9582 # On AIX/PPC, the GNU linker is very broken
9583 if test "$host_cpu" != ia64; then
9584 ld_shlibs=no
9585 cat <<_LT_EOF 1>&2
9586
9587*** Warning: the GNU linker, at least up to release 2.19, is reported
9588*** to be unable to reliably create shared libraries on AIX.
9589*** Therefore, libtool is disabling shared libraries support. If you
9590*** really care for shared libraries, you may want to install binutils
9591*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9592*** You will then need to restart the configuration process.
9593
9594_LT_EOF
9595 fi
9596 ;;
9597
9598 amigaos*)
9599 case $host_cpu in
9600 powerpc)
9601 # see comment about AmigaOS4 .so support
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds=''
9604 ;;
9605 m68k)
9606 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)'
9607 hardcode_libdir_flag_spec='-L$libdir'
9608 hardcode_minus_L=yes
9609 ;;
9610 esac
9611 ;;
9612
9613 beos*)
9614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9615 allow_undefined_flag=unsupported
9616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9617 # support --undefined. This deserves some investigation. FIXME
9618 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619 else
9620 ld_shlibs=no
9621 fi
9622 ;;
9623
9624 cygwin* | mingw* | pw32* | cegcc*)
9625 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9626 # as there is no search path for DLLs.
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 export_dynamic_flag_spec='${wl}--export-all-symbols'
9629 allow_undefined_flag=unsupported
9630 always_export_symbols=no
9631 enable_shared_with_static_runtimes=yes
9632 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'
9633 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9634
9635 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9637 # If the export-symbols file already is a .def file (1st line
9638 # is EXPORTS), use it as is; otherwise, prepend...
9639 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9640 cp $export_symbols $output_objdir/$soname.def;
9641 else
9642 echo EXPORTS > $output_objdir/$soname.def;
9643 cat $export_symbols >> $output_objdir/$soname.def;
9644 fi~
9645 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650
9651 haiku*)
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 link_all_deplibs=yes
9654 ;;
9655
9656 interix[3-9]*)
9657 hardcode_direct=no
9658 hardcode_shlibpath_var=no
9659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9660 export_dynamic_flag_spec='${wl}-E'
9661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9662 # Instead, shared libraries are loaded at an image base (0x10000000 by
9663 # default) and relocated if they conflict, which is a slow very memory
9664 # consuming and fragmenting process. To avoid this, we pick a random,
9665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9668 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'
9669 ;;
9670
9671 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9672 tmp_diet=no
9673 if test "$host_os" = linux-dietlibc; then
9674 case $cc_basename in
9675 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9676 esac
9677 fi
9678 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9679 && test "$tmp_diet" = no
9680 then
9681 tmp_addflag=' $pic_flag'
9682 tmp_sharedflag='-shared'
9683 case $cc_basename,$host_cpu in
9684 pgcc*) # Portland Group C compiler
9685 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'
9686 tmp_addflag=' $pic_flag'
9687 ;;
9688 pgf77* | pgf90* | pgf95* | pgfortran*)
9689 # Portland Group f77 and f90 compilers
9690 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'
9691 tmp_addflag=' $pic_flag -Mnomain' ;;
9692 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9693 tmp_addflag=' -i_dynamic' ;;
9694 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9695 tmp_addflag=' -i_dynamic -nofor_main' ;;
9696 ifc* | ifort*) # Intel Fortran compiler
9697 tmp_addflag=' -nofor_main' ;;
9698 lf95*) # Lahey Fortran 8.1
9699 whole_archive_flag_spec=
9700 tmp_sharedflag='--shared' ;;
9701 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9702 tmp_sharedflag='-qmkshrobj'
9703 tmp_addflag= ;;
9704 nvcc*) # Cuda Compiler Driver 2.2
9705 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'
9706 compiler_needs_object=yes
9707 ;;
9708 esac
9709 case `$CC -V 2>&1 | sed 5q` in
9710 *Sun\ C*) # Sun C 5.9
9711 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'
9712 compiler_needs_object=yes
9713 tmp_sharedflag='-G' ;;
9714 *Sun\ F*) # Sun Fortran 8.3
9715 tmp_sharedflag='-G' ;;
9716 esac
9717 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9718
9719 if test "x$supports_anon_versioning" = xyes; then
9720 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9722 echo "local: *; };" >> $output_objdir/$libname.ver~
9723 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9724 fi
9725
9726 case $cc_basename in
9727 xlf* | bgf* | bgxlf* | mpixlf*)
9728 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9729 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9731 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9732 if test "x$supports_anon_versioning" = xyes; then
9733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9735 echo "local: *; };" >> $output_objdir/$libname.ver~
9736 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9737 fi
9738 ;;
9739 esac
9740 else
9741 ld_shlibs=no
9742 fi
9743 ;;
9744
9745 netbsd* | netbsdelf*-gnu)
9746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9747 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9748 wlarc=
9749 else
9750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9752 fi
9753 ;;
9754
9755 solaris*)
9756 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9757 ld_shlibs=no
9758 cat <<_LT_EOF 1>&2
9759
9760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9761*** create shared libraries on Solaris systems. Therefore, libtool
9762*** is disabling shared libraries support. We urge you to upgrade GNU
9763*** binutils to release 2.9.1 or newer. Another option is to modify
9764*** your PATH or compiler configuration so that the native linker is
9765*** used, and then restart.
9766
9767_LT_EOF
9768 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9771 else
9772 ld_shlibs=no
9773 fi
9774 ;;
9775
9776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9777 case `$LD -v 2>&1` in
9778 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9779 ld_shlibs=no
9780 cat <<_LT_EOF 1>&2
9781
9782*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9783*** reliably create shared libraries on SCO systems. Therefore, libtool
9784*** is disabling shared libraries support. We urge you to upgrade GNU
9785*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9786*** your PATH or compiler configuration so that the native linker is
9787*** used, and then restart.
9788
9789_LT_EOF
9790 ;;
9791 *)
9792 # For security reasons, it is highly recommended that you always
9793 # use absolute paths for naming shared libraries, and exclude the
9794 # DT_RUNPATH tag from executables and libraries. But doing so
9795 # requires that you compile everything twice, which is a pain.
9796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9800 else
9801 ld_shlibs=no
9802 fi
9803 ;;
9804 esac
9805 ;;
9806
9807 sunos4*)
9808 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9809 wlarc=
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 *)
9815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9818 else
9819 ld_shlibs=no
9820 fi
9821 ;;
9822 esac
9823
9824 if test "$ld_shlibs" = no; then
9825 runpath_var=
9826 hardcode_libdir_flag_spec=
9827 export_dynamic_flag_spec=
9828 whole_archive_flag_spec=
9829 fi
9830 else
9831 # PORTME fill in a description of your system's linker (not GNU ld)
9832 case $host_os in
9833 aix3*)
9834 allow_undefined_flag=unsupported
9835 always_export_symbols=yes
9836 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'
9837 # Note: this linker hardcodes the directories in LIBPATH if there
9838 # are no directories specified by -L.
9839 hardcode_minus_L=yes
9840 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9841 # Neither direct hardcoding nor static linking is supported with a
9842 # broken collect2.
9843 hardcode_direct=unsupported
9844 fi
9845 ;;
9846
9847 aix[4-9]*)
9848 if test "$host_cpu" = ia64; then
9849 # On IA64, the linker does run time linking by default, so we don't
9850 # have to do anything special.
9851 aix_use_runtimelinking=no
9852 exp_sym_flag='-Bexport'
9853 no_entry_flag=""
9854 else
9855 # If we're using GNU nm, then we don't want the "-C" option.
9856 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9857 # Also, AIX nm treats weak defined symbols like other global
9858 # defined symbols, whereas GNU nm marks them as "W".
9859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9860 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'
9861 else
9862 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'
9863 fi
9864 aix_use_runtimelinking=no
9865
9866 # Test if we are trying to use run time linking or normal
9867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9868 # need to do runtime linking.
9869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9870 for ld_flag in $LDFLAGS; do
9871 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9872 aix_use_runtimelinking=yes
9873 break
9874 fi
9875 done
9876 ;;
9877 esac
9878
9879 exp_sym_flag='-bexport'
9880 no_entry_flag='-bnoentry'
9881 fi
9882
9883 # When large executables or shared objects are built, AIX ld can
9884 # have problems creating the table of contents. If linking a library
9885 # or program results in "error TOC overflow" add -mminimal-toc to
9886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9888
9889 archive_cmds=''
9890 hardcode_direct=yes
9891 hardcode_direct_absolute=yes
9892 hardcode_libdir_separator=':'
9893 link_all_deplibs=yes
9894 file_list_spec='${wl}-f,'
9895
9896 if test "$GCC" = yes; then
9897 case $host_os in aix4.[012]|aix4.[012].*)
9898 # We only want to do this on AIX 4.2 and lower, the check
9899 # below for broken collect2 doesn't work under 4.3+
9900 collect2name=`${CC} -print-prog-name=collect2`
9901 if test -f "$collect2name" &&
9902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9903 then
9904 # We have reworked collect2
9905 :
9906 else
9907 # We have old collect2
9908 hardcode_direct=unsupported
9909 # It fails to find uninstalled libraries when the uninstalled
9910 # path is not listed in the libpath. Setting hardcode_minus_L
9911 # to unsupported forces relinking
9912 hardcode_minus_L=yes
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_libdir_separator=
9915 fi
9916 ;;
9917 esac
9918 shared_flag='-shared'
9919 if test "$aix_use_runtimelinking" = yes; then
9920 shared_flag="$shared_flag "'${wl}-G'
9921 fi
9922 link_all_deplibs=no
9923 else
9924 # not using gcc
9925 if test "$host_cpu" = ia64; then
9926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9927 # chokes on -Wl,-G. The following line is correct:
9928 shared_flag='-G'
9929 else
9930 if test "$aix_use_runtimelinking" = yes; then
9931 shared_flag='${wl}-G'
9932 else
9933 shared_flag='${wl}-bM:SRE'
9934 fi
9935 fi
9936 fi
9937
9938 export_dynamic_flag_spec='${wl}-bexpall'
9939 # It seems that -bexpall does not export symbols beginning with
9940 # underscore (_), so it is better to generate a list of symbols to export.
9941 always_export_symbols=yes
9942 if test "$aix_use_runtimelinking" = yes; then
9943 # Warning - without using the other runtime loading flags (-brtl),
9944 # -berok will link without error, but may produce a broken library.
9945 allow_undefined_flag='-berok'
9946 # Determine the default libpath from the value encoded in an
9947 # empty executable.
9948 if test "${lt_cv_aix_libpath+set}" = set; then
9949 aix_libpath=$lt_cv_aix_libpath
9950else
9951 if ${lt_cv_aix_libpath_+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h. */
9956
9957int
9958main ()
9959{
9960
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966
9967 lt_aix_libpath_sed='
9968 /Import File Strings/,/^$/ {
9969 /^0/ {
9970 s/^0 *\([^ ]*\) *$/\1/
9971 p
9972 }
9973 }'
9974 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9975 # Check for a 64-bit object if we didn't find anything.
9976 if test -z "$lt_cv_aix_libpath_"; then
9977 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9978 fi
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 if test -z "$lt_cv_aix_libpath_"; then
9983 lt_cv_aix_libpath_="/usr/lib:/lib"
9984 fi
9985
9986fi
9987
9988 aix_libpath=$lt_cv_aix_libpath_
9989fi
9990
9991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9992 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"
9993 else
9994 if test "$host_cpu" = ia64; then
9995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9996 allow_undefined_flag="-z nodefs"
9997 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"
9998 else
9999 # Determine the default libpath from the value encoded in an
10000 # empty executable.
10001 if test "${lt_cv_aix_libpath+set}" = set; then
10002 aix_libpath=$lt_cv_aix_libpath
10003else
10004 if ${lt_cv_aix_libpath_+:} false; then :
10005 $as_echo_n "(cached) " >&6
10006else
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h. */
10009
10010int
10011main ()
10012{
10013
10014 ;
10015 return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019
10020 lt_aix_libpath_sed='
10021 /Import File Strings/,/^$/ {
10022 /^0/ {
10023 s/^0 *\([^ ]*\) *$/\1/
10024 p
10025 }
10026 }'
10027 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10028 # Check for a 64-bit object if we didn't find anything.
10029 if test -z "$lt_cv_aix_libpath_"; then
10030 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031 fi
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 if test -z "$lt_cv_aix_libpath_"; then
10036 lt_cv_aix_libpath_="/usr/lib:/lib"
10037 fi
10038
10039fi
10040
10041 aix_libpath=$lt_cv_aix_libpath_
10042fi
10043
10044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10045 # Warning - without using the other run time loading flags,
10046 # -berok will link without error, but may produce a broken library.
10047 no_undefined_flag=' ${wl}-bernotok'
10048 allow_undefined_flag=' ${wl}-berok'
10049 if test "$with_gnu_ld" = yes; then
10050 # We only use this code for GNU lds that support --whole-archive.
10051 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10052 else
10053 # Exported symbols can be pulled into shared objects from archives
10054 whole_archive_flag_spec='$convenience'
10055 fi
10056 archive_cmds_need_lc=yes
10057 # This is similar to how AIX traditionally builds its shared libraries.
10058 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'
10059 fi
10060 fi
10061 ;;
10062
10063 amigaos*)
10064 case $host_cpu in
10065 powerpc)
10066 # see comment about AmigaOS4 .so support
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 archive_expsym_cmds=''
10069 ;;
10070 m68k)
10071 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)'
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_minus_L=yes
10074 ;;
10075 esac
10076 ;;
10077
10078 bsdi[45]*)
10079 export_dynamic_flag_spec=-rdynamic
10080 ;;
10081
10082 cygwin* | mingw* | pw32* | cegcc*)
10083 # When not using gcc, we currently assume that we are using
10084 # Microsoft Visual C++.
10085 # hardcode_libdir_flag_spec is actually meaningless, as there is
10086 # no search path for DLLs.
10087 case $cc_basename in
10088 cl*)
10089 # Native MSVC
10090 hardcode_libdir_flag_spec=' '
10091 allow_undefined_flag=unsupported
10092 always_export_symbols=yes
10093 file_list_spec='@'
10094 # Tell ltmain to make .lib files, not .a files.
10095 libext=lib
10096 # Tell ltmain to make .dll files, not .so files.
10097 shrext_cmds=".dll"
10098 # FIXME: Setting linknames here is a bad hack.
10099 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10100 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10101 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10102 else
10103 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10104 fi~
10105 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10106 linknames='
10107 # The linker will not automatically build a static lib if we build a DLL.
10108 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10109 enable_shared_with_static_runtimes=yes
10110 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10112 # Don't use ranlib
10113 old_postinstall_cmds='chmod 644 $oldlib'
10114 postlink_cmds='lt_outputfile="@OUTPUT@"~
10115 lt_tool_outputfile="@TOOL_OUTPUT@"~
10116 case $lt_outputfile in
10117 *.exe|*.EXE) ;;
10118 *)
10119 lt_outputfile="$lt_outputfile.exe"
10120 lt_tool_outputfile="$lt_tool_outputfile.exe"
10121 ;;
10122 esac~
10123 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10124 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10125 $RM "$lt_outputfile.manifest";
10126 fi'
10127 ;;
10128 *)
10129 # Assume MSVC wrapper
10130 hardcode_libdir_flag_spec=' '
10131 allow_undefined_flag=unsupported
10132 # Tell ltmain to make .lib files, not .a files.
10133 libext=lib
10134 # Tell ltmain to make .dll files, not .so files.
10135 shrext_cmds=".dll"
10136 # FIXME: Setting linknames here is a bad hack.
10137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10138 # The linker will automatically build a .lib file if we build a DLL.
10139 old_archive_from_new_cmds='true'
10140 # FIXME: Should let the user specify the lib program.
10141 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10142 enable_shared_with_static_runtimes=yes
10143 ;;
10144 esac
10145 ;;
10146
10147 darwin* | rhapsody*)
10148
10149
10150 archive_cmds_need_lc=no
10151 hardcode_direct=no
10152 hardcode_automatic=yes
10153 hardcode_shlibpath_var=unsupported
10154 if test "$lt_cv_ld_force_load" = "yes"; then
10155 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\"`'
10156
10157 else
10158 whole_archive_flag_spec=''
10159 fi
10160 link_all_deplibs=yes
10161 allow_undefined_flag="$_lt_dar_allow_undefined"
10162 case $cc_basename in
10163 ifort*) _lt_dar_can_shared=yes ;;
10164 *) _lt_dar_can_shared=$GCC ;;
10165 esac
10166 if test "$_lt_dar_can_shared" = "yes"; then
10167 output_verbose_link_cmd=func_echo_all
10168 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10169 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10170 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}"
10171 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}"
10172
10173 else
10174 ld_shlibs=no
10175 fi
10176
10177 ;;
10178
10179 dgux*)
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-L$libdir'
10182 hardcode_shlibpath_var=no
10183 ;;
10184
10185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186 # support. Future versions do this automatically, but an explicit c++rt0.o
10187 # does not break anything, and helps significantly (at the cost of a little
10188 # extra space).
10189 freebsd2.2*)
10190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191 hardcode_libdir_flag_spec='-R$libdir'
10192 hardcode_direct=yes
10193 hardcode_shlibpath_var=no
10194 ;;
10195
10196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10197 freebsd2.*)
10198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=yes
10200 hardcode_minus_L=yes
10201 hardcode_shlibpath_var=no
10202 ;;
10203
10204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205 freebsd* | dragonfly*)
10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 hpux9*)
10213 if test "$GCC" = yes; then
10214 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'
10215 else
10216 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'
10217 fi
10218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219 hardcode_libdir_separator=:
10220 hardcode_direct=yes
10221
10222 # hardcode_minus_L: Not really in the search PATH,
10223 # but as the default location of the library.
10224 hardcode_minus_L=yes
10225 export_dynamic_flag_spec='${wl}-E'
10226 ;;
10227
10228 hpux10*)
10229 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10230 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231 else
10232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233 fi
10234 if test "$with_gnu_ld" = no; then
10235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236 hardcode_libdir_separator=:
10237 hardcode_direct=yes
10238 hardcode_direct_absolute=yes
10239 export_dynamic_flag_spec='${wl}-E'
10240 # hardcode_minus_L: Not really in the search PATH,
10241 # but as the default location of the library.
10242 hardcode_minus_L=yes
10243 fi
10244 ;;
10245
10246 hpux11*)
10247 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10248 case $host_cpu in
10249 hppa*64*)
10250 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 ;;
10252 ia64*)
10253 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10254 ;;
10255 *)
10256 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257 ;;
10258 esac
10259 else
10260 case $host_cpu in
10261 hppa*64*)
10262 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 ;;
10264 ia64*)
10265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10266 ;;
10267 *)
10268
10269 # Older versions of the 11.00 compiler do not understand -b yet
10270 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10272$as_echo_n "checking if $CC understands -b... " >&6; }
10273if ${lt_cv_prog_compiler__b+:} false; then :
10274 $as_echo_n "(cached) " >&6
10275else
10276 lt_cv_prog_compiler__b=no
10277 save_LDFLAGS="$LDFLAGS"
10278 LDFLAGS="$LDFLAGS -b"
10279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10281 # The linker can only warn and ignore the option if not recognized
10282 # So say no if there are warnings
10283 if test -s conftest.err; then
10284 # Append any errors to the config.log.
10285 cat conftest.err 1>&5
10286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10288 if diff conftest.exp conftest.er2 >/dev/null; then
10289 lt_cv_prog_compiler__b=yes
10290 fi
10291 else
10292 lt_cv_prog_compiler__b=yes
10293 fi
10294 fi
10295 $RM -r conftest*
10296 LDFLAGS="$save_LDFLAGS"
10297
10298fi
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10300$as_echo "$lt_cv_prog_compiler__b" >&6; }
10301
10302if test x"$lt_cv_prog_compiler__b" = xyes; then
10303 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304else
10305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10306fi
10307
10308 ;;
10309 esac
10310 fi
10311 if test "$with_gnu_ld" = no; then
10312 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10313 hardcode_libdir_separator=:
10314
10315 case $host_cpu in
10316 hppa*64*|ia64*)
10317 hardcode_direct=no
10318 hardcode_shlibpath_var=no
10319 ;;
10320 *)
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 export_dynamic_flag_spec='${wl}-E'
10324
10325 # hardcode_minus_L: Not really in the search PATH,
10326 # but as the default location of the library.
10327 hardcode_minus_L=yes
10328 ;;
10329 esac
10330 fi
10331 ;;
10332
10333 irix5* | irix6* | nonstopux*)
10334 if test "$GCC" = yes; then
10335 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'
10336 # Try to use the -exported_symbol ld option, if it does not
10337 # work, assume that -exports_file does not work either and
10338 # implicitly export all symbols.
10339 # This should be the same for all languages, so no per-tag cache variable.
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10341$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10342if ${lt_cv_irix_exported_symbol+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344else
10345 save_LDFLAGS="$LDFLAGS"
10346 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348/* end confdefs.h. */
10349int foo (void) { return 0; }
10350_ACEOF
10351if ac_fn_c_try_link "$LINENO"; then :
10352 lt_cv_irix_exported_symbol=yes
10353else
10354 lt_cv_irix_exported_symbol=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LDFLAGS="$save_LDFLAGS"
10359fi
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10361$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10362 if test "$lt_cv_irix_exported_symbol" = yes; then
10363 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'
10364 fi
10365 else
10366 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'
10367 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'
10368 fi
10369 archive_cmds_need_lc='no'
10370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371 hardcode_libdir_separator=:
10372 inherit_rpath=yes
10373 link_all_deplibs=yes
10374 ;;
10375
10376 netbsd* | netbsdelf*-gnu)
10377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10379 else
10380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10381 fi
10382 hardcode_libdir_flag_spec='-R$libdir'
10383 hardcode_direct=yes
10384 hardcode_shlibpath_var=no
10385 ;;
10386
10387 newsos6)
10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_direct=yes
10390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10391 hardcode_libdir_separator=:
10392 hardcode_shlibpath_var=no
10393 ;;
10394
10395 *nto* | *qnx*)
10396 ;;
10397
10398 openbsd*)
10399 if test -f /usr/libexec/ld.so; then
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10402 hardcode_direct_absolute=yes
10403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10407 export_dynamic_flag_spec='${wl}-E'
10408 else
10409 case $host_os in
10410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-R$libdir'
10413 ;;
10414 *)
10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10417 ;;
10418 esac
10419 fi
10420 else
10421 ld_shlibs=no
10422 fi
10423 ;;
10424
10425 os2*)
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_minus_L=yes
10428 allow_undefined_flag=unsupported
10429 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'
10430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10431 ;;
10432
10433 osf3*)
10434 if test "$GCC" = yes; then
10435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10436 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'
10437 else
10438 allow_undefined_flag=' -expect_unresolved \*'
10439 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'
10440 fi
10441 archive_cmds_need_lc='no'
10442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10443 hardcode_libdir_separator=:
10444 ;;
10445
10446 osf4* | osf5*) # as osf3* with the addition of -msym flag
10447 if test "$GCC" = yes; then
10448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10449 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'
10450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10451 else
10452 allow_undefined_flag=' -expect_unresolved \*'
10453 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'
10454 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~
10455 $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'
10456
10457 # Both c and cxx compiler support -rpath directly
10458 hardcode_libdir_flag_spec='-rpath $libdir'
10459 fi
10460 archive_cmds_need_lc='no'
10461 hardcode_libdir_separator=:
10462 ;;
10463
10464 solaris*)
10465 no_undefined_flag=' -z defs'
10466 if test "$GCC" = yes; then
10467 wlarc='${wl}'
10468 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10470 $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'
10471 else
10472 case `$CC -V 2>&1` in
10473 *"Compilers 5.0"*)
10474 wlarc=''
10475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10478 ;;
10479 *)
10480 wlarc='${wl}'
10481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10484 ;;
10485 esac
10486 fi
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_shlibpath_var=no
10489 case $host_os in
10490 solaris2.[0-5] | solaris2.[0-5].*) ;;
10491 *)
10492 # The compiler driver will combine and reorder linker options,
10493 # but understands `-z linker_flag'. GCC discards it without `$wl',
10494 # but is careful enough not to reorder.
10495 # Supported since Solaris 2.6 (maybe 2.5.1?)
10496 if test "$GCC" = yes; then
10497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10498 else
10499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10500 fi
10501 ;;
10502 esac
10503 link_all_deplibs=yes
10504 ;;
10505
10506 sunos4*)
10507 if test "x$host_vendor" = xsequent; then
10508 # Use $CC to link under sequent, because it throws in some extra .o
10509 # files that make .init and .fini sections work.
10510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10511 else
10512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10513 fi
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_direct=yes
10516 hardcode_minus_L=yes
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 sysv4)
10521 case $host_vendor in
10522 sni)
10523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10524 hardcode_direct=yes # is this really true???
10525 ;;
10526 siemens)
10527 ## LD is ld it makes a PLAMLIB
10528 ## CC just makes a GrossModule.
10529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10530 reload_cmds='$CC -r -o $output$reload_objs'
10531 hardcode_direct=no
10532 ;;
10533 motorola)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10536 ;;
10537 esac
10538 runpath_var='LD_RUN_PATH'
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 sysv4.3*)
10543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544 hardcode_shlibpath_var=no
10545 export_dynamic_flag_spec='-Bexport'
10546 ;;
10547
10548 sysv4*MP*)
10549 if test -d /usr/nec; then
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_shlibpath_var=no
10552 runpath_var=LD_RUN_PATH
10553 hardcode_runpath_var=yes
10554 ld_shlibs=yes
10555 fi
10556 ;;
10557
10558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10559 no_undefined_flag='${wl}-z,text'
10560 archive_cmds_need_lc=no
10561 hardcode_shlibpath_var=no
10562 runpath_var='LD_RUN_PATH'
10563
10564 if test "$GCC" = yes; then
10565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 else
10568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 fi
10571 ;;
10572
10573 sysv5* | sco3.2v5* | sco5v6*)
10574 # Note: We can NOT use -z defs as we might desire, because we do not
10575 # link with -lc, and that would cause any symbols used from libc to
10576 # always be unresolved, which means just about no library would
10577 # ever link correctly. If we're not using GNU ld we use -z text
10578 # though, which does catch some bad symbols but isn't as heavy-handed
10579 # as -z defs.
10580 no_undefined_flag='${wl}-z,text'
10581 allow_undefined_flag='${wl}-z,nodefs'
10582 archive_cmds_need_lc=no
10583 hardcode_shlibpath_var=no
10584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10585 hardcode_libdir_separator=':'
10586 link_all_deplibs=yes
10587 export_dynamic_flag_spec='${wl}-Bexport'
10588 runpath_var='LD_RUN_PATH'
10589
10590 if test "$GCC" = yes; then
10591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593 else
10594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10596 fi
10597 ;;
10598
10599 uts4*)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_shlibpath_var=no
10603 ;;
10604
10605 *)
10606 ld_shlibs=no
10607 ;;
10608 esac
10609
10610 if test x$host_vendor = xsni; then
10611 case $host in
10612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10613 export_dynamic_flag_spec='${wl}-Blargedynsym'
10614 ;;
10615 esac
10616 fi
10617 fi
10618
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10620$as_echo "$ld_shlibs" >&6; }
10621test "$ld_shlibs" = no && can_build_shared=no
10622
10623with_gnu_ld=$with_gnu_ld
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639#
10640# Do we need to explicitly link libc?
10641#
10642case "x$archive_cmds_need_lc" in
10643x|xyes)
10644 # Assume -lc should be added
10645 archive_cmds_need_lc=yes
10646
10647 if test "$enable_shared" = yes && test "$GCC" = yes; then
10648 case $archive_cmds in
10649 *'~'*)
10650 # FIXME: we may have to deal with multi-command sequences.
10651 ;;
10652 '$CC '*)
10653 # Test whether the compiler implicitly links with -lc since on some
10654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10655 # to ld, don't add -lc before -lgcc.
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10657$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10658if ${lt_cv_archive_cmds_need_lc+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660else
10661 $RM conftest*
10662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10663
10664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10665 (eval $ac_compile) 2>&5
10666 ac_status=$?
10667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10668 test $ac_status = 0; } 2>conftest.err; then
10669 soname=conftest
10670 lib=conftest
10671 libobjs=conftest.$ac_objext
10672 deplibs=
10673 wl=$lt_prog_compiler_wl
10674 pic_flag=$lt_prog_compiler_pic
10675 compiler_flags=-v
10676 linker_flags=-v
10677 verstring=
10678 output_objdir=.
10679 libname=conftest
10680 lt_save_allow_undefined_flag=$allow_undefined_flag
10681 allow_undefined_flag=
10682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10683 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10686 test $ac_status = 0; }
10687 then
10688 lt_cv_archive_cmds_need_lc=no
10689 else
10690 lt_cv_archive_cmds_need_lc=yes
10691 fi
10692 allow_undefined_flag=$lt_save_allow_undefined_flag
10693 else
10694 cat conftest.err 1>&5
10695 fi
10696 $RM conftest*
10697
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10700$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10701 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10702 ;;
10703 esac
10704 fi
10705 ;;
10706esac
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10860$as_echo_n "checking dynamic linker characteristics... " >&6; }
10861
10862if test "$GCC" = yes; then
10863 case $host_os in
10864 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10865 *) lt_awk_arg="/^libraries:/" ;;
10866 esac
10867 case $host_os in
10868 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10869 *) lt_sed_strip_eq="s,=/,/,g" ;;
10870 esac
10871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10872 case $lt_search_path_spec in
10873 *\;*)
10874 # if the path contains ";" then we assume it to be the separator
10875 # otherwise default to the standard path separator (i.e. ":") - it is
10876 # assumed that no part of a normal pathname contains ";" but that should
10877 # okay in the real world where ";" in dirpaths is itself problematic.
10878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10879 ;;
10880 *)
10881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10882 ;;
10883 esac
10884 # Ok, now we have the path, separated by spaces, we can step through it
10885 # and add multilib dir if necessary.
10886 lt_tmp_lt_search_path_spec=
10887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10888 for lt_sys_path in $lt_search_path_spec; do
10889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10891 else
10892 test -d "$lt_sys_path" && \
10893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10894 fi
10895 done
10896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10897BEGIN {RS=" "; FS="/|\n";} {
10898 lt_foo="";
10899 lt_count=0;
10900 for (lt_i = NF; lt_i > 0; lt_i--) {
10901 if ($lt_i != "" && $lt_i != ".") {
10902 if ($lt_i == "..") {
10903 lt_count++;
10904 } else {
10905 if (lt_count == 0) {
10906 lt_foo="/" $lt_i lt_foo;
10907 } else {
10908 lt_count--;
10909 }
10910 }
10911 }
10912 }
10913 if (lt_foo != "") { lt_freq[lt_foo]++; }
10914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10915}'`
10916 # AWK program above erroneously prepends '/' to C:/dos/paths
10917 # for these hosts.
10918 case $host_os in
10919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10921 esac
10922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10923else
10924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10925fi
10926library_names_spec=
10927libname_spec='lib$name'
10928soname_spec=
10929shrext_cmds=".so"
10930postinstall_cmds=
10931postuninstall_cmds=
10932finish_cmds=
10933finish_eval=
10934shlibpath_var=
10935shlibpath_overrides_runpath=unknown
10936version_type=none
10937dynamic_linker="$host_os ld.so"
10938sys_lib_dlsearch_path_spec="/lib /usr/lib"
10939need_lib_prefix=unknown
10940hardcode_into_libs=no
10941
10942# when you set need_version to no, make sure it does not cause -set_version
10943# flags to be left without arguments
10944need_version=unknown
10945
10946case $host_os in
10947aix3*)
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10950 shlibpath_var=LIBPATH
10951
10952 # AIX 3 has no versioning support, so we append a major version to the name.
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 ;;
10955
10956aix[4-9]*)
10957 version_type=linux # correct to gnu/linux during the next big refactor
10958 need_lib_prefix=no
10959 need_version=no
10960 hardcode_into_libs=yes
10961 if test "$host_cpu" = ia64; then
10962 # AIX 5 supports IA64
10963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 else
10966 # With GCC up to 2.95.x, collect2 would create an import file
10967 # for dependence libraries. The import file would start with
10968 # the line `#! .'. This would cause the generated library to
10969 # depend on `.', always an invalid library. This was fixed in
10970 # development snapshots of GCC prior to 3.0.
10971 case $host_os in
10972 aix4 | aix4.[01] | aix4.[01].*)
10973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10974 echo ' yes '
10975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10976 :
10977 else
10978 can_build_shared=no
10979 fi
10980 ;;
10981 esac
10982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10983 # soname into executable. Probably we can add versioning support to
10984 # collect2, so additional links can be useful in future.
10985 if test "$aix_use_runtimelinking" = yes; then
10986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10987 # instead of lib<name>.a to let people know that these are not
10988 # typical AIX shared libraries.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 else
10991 # We preserve .a as extension for shared libraries through AIX4.2
10992 # and later when we are not doing run time linking.
10993 library_names_spec='${libname}${release}.a $libname.a'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 fi
10996 shlibpath_var=LIBPATH
10997 fi
10998 ;;
10999
11000amigaos*)
11001 case $host_cpu in
11002 powerpc)
11003 # Since July 2007 AmigaOS4 officially supports .so libraries.
11004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 ;;
11007 m68k)
11008 library_names_spec='$libname.ixlibrary $libname.a'
11009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11010 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'
11011 ;;
11012 esac
11013 ;;
11014
11015beos*)
11016 library_names_spec='${libname}${shared_ext}'
11017 dynamic_linker="$host_os ld.so"
11018 shlibpath_var=LIBRARY_PATH
11019 ;;
11020
11021bsdi[45]*)
11022 version_type=linux # correct to gnu/linux during the next big refactor
11023 need_version=no
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11030 # the default ld.so.conf also contains /usr/contrib/lib and
11031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11032 # libtool to hard-code these into programs
11033 ;;
11034
11035cygwin* | mingw* | pw32* | cegcc*)
11036 version_type=windows
11037 shrext_cmds=".dll"
11038 need_version=no
11039 need_lib_prefix=no
11040
11041 case $GCC,$cc_basename in
11042 yes,*)
11043 # gcc
11044 library_names_spec='$libname.dll.a'
11045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11046 postinstall_cmds='base_file=`basename \${file}`~
11047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11048 dldir=$destdir/`dirname \$dlpath`~
11049 test -d \$dldir || mkdir -p \$dldir~
11050 $install_prog $dir/$dlname \$dldir/$dlname~
11051 chmod a+x \$dldir/$dlname~
11052 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11053 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11054 fi'
11055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11056 dlpath=$dir/\$dldll~
11057 $RM \$dlpath'
11058 shlibpath_overrides_runpath=yes
11059
11060 case $host_os in
11061 cygwin*)
11062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11064
11065 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11066 ;;
11067 mingw* | cegcc*)
11068 # MinGW DLLs use traditional 'lib' prefix
11069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11070 ;;
11071 pw32*)
11072 # pw32 DLLs use 'pw' prefix rather than 'lib'
11073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11074 ;;
11075 esac
11076 dynamic_linker='Win32 ld.exe'
11077 ;;
11078
11079 *,cl*)
11080 # Native MSVC
11081 libname_spec='$name'
11082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11083 library_names_spec='${libname}.dll.lib'
11084
11085 case $build_os in
11086 mingw*)
11087 sys_lib_search_path_spec=
11088 lt_save_ifs=$IFS
11089 IFS=';'
11090 for lt_path in $LIB
11091 do
11092 IFS=$lt_save_ifs
11093 # Let DOS variable expansion print the short 8.3 style file name.
11094 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11095 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11096 done
11097 IFS=$lt_save_ifs
11098 # Convert to MSYS style.
11099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11100 ;;
11101 cygwin*)
11102 # Convert to unix form, then to dos form, then back to unix form
11103 # but this time dos style (no spaces!) so that the unix form looks
11104 # like /cygdrive/c/PROGRA~1:/cygdr...
11105 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11106 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11107 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11108 ;;
11109 *)
11110 sys_lib_search_path_spec="$LIB"
11111 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11112 # It is most probably a Windows format PATH.
11113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11114 else
11115 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11116 fi
11117 # FIXME: find the short name or the path components, as spaces are
11118 # common. (e.g. "Program Files" -> "PROGRA~1")
11119 ;;
11120 esac
11121
11122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11123 postinstall_cmds='base_file=`basename \${file}`~
11124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11125 dldir=$destdir/`dirname \$dlpath`~
11126 test -d \$dldir || mkdir -p \$dldir~
11127 $install_prog $dir/$dlname \$dldir/$dlname'
11128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11129 dlpath=$dir/\$dldll~
11130 $RM \$dlpath'
11131 shlibpath_overrides_runpath=yes
11132 dynamic_linker='Win32 link.exe'
11133 ;;
11134
11135 *)
11136 # Assume MSVC wrapper
11137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11138 dynamic_linker='Win32 ld.exe'
11139 ;;
11140 esac
11141 # FIXME: first we should search . and the directory the executable is in
11142 shlibpath_var=PATH
11143 ;;
11144
11145darwin* | rhapsody*)
11146 dynamic_linker="$host_os dyld"
11147 version_type=darwin
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11151 soname_spec='${libname}${release}${major}$shared_ext'
11152 shlibpath_overrides_runpath=yes
11153 shlibpath_var=DYLD_LIBRARY_PATH
11154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11155
11156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11158 ;;
11159
11160dgux*)
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 ;;
11168
11169freebsd* | dragonfly*)
11170 # DragonFly does not have aout. When/if they implement a new
11171 # versioning mechanism, adjust this.
11172 if test -x /usr/bin/objformat; then
11173 objformat=`/usr/bin/objformat`
11174 else
11175 case $host_os in
11176 freebsd[23].*) objformat=aout ;;
11177 *) objformat=elf ;;
11178 esac
11179 fi
11180 version_type=freebsd-$objformat
11181 case $version_type in
11182 freebsd-elf*)
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11184 need_version=no
11185 need_lib_prefix=no
11186 ;;
11187 freebsd-*)
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11189 need_version=yes
11190 ;;
11191 esac
11192 shlibpath_var=LD_LIBRARY_PATH
11193 case $host_os in
11194 freebsd2.*)
11195 shlibpath_overrides_runpath=yes
11196 ;;
11197 freebsd3.[01]* | freebsdelf3.[01]*)
11198 shlibpath_overrides_runpath=yes
11199 hardcode_into_libs=yes
11200 ;;
11201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11203 shlibpath_overrides_runpath=no
11204 hardcode_into_libs=yes
11205 ;;
11206 *) # from 4.6 on, and DragonFly
11207 shlibpath_overrides_runpath=yes
11208 hardcode_into_libs=yes
11209 ;;
11210 esac
11211 ;;
11212
11213haiku*)
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 need_lib_prefix=no
11216 need_version=no
11217 dynamic_linker="$host_os runtime_loader"
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LIBRARY_PATH
11221 shlibpath_overrides_runpath=yes
11222 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11223 hardcode_into_libs=yes
11224 ;;
11225
11226hpux9* | hpux10* | hpux11*)
11227 # Give a soname corresponding to the major version so that dld.sl refuses to
11228 # link against other versions.
11229 version_type=sunos
11230 need_lib_prefix=no
11231 need_version=no
11232 case $host_cpu in
11233 ia64*)
11234 shrext_cmds='.so'
11235 hardcode_into_libs=yes
11236 dynamic_linker="$host_os dld.so"
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 if test "X$HPUX_IA64_MODE" = X32; then
11242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11243 else
11244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11245 fi
11246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11247 ;;
11248 hppa*64*)
11249 shrext_cmds='.sl'
11250 hardcode_into_libs=yes
11251 dynamic_linker="$host_os dld.sl"
11252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11258 ;;
11259 *)
11260 shrext_cmds='.sl'
11261 dynamic_linker="$host_os dld.sl"
11262 shlibpath_var=SHLIB_PATH
11263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 ;;
11267 esac
11268 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11269 postinstall_cmds='chmod 555 $lib'
11270 # or fails outright, so override atomically:
11271 install_override_mode=555
11272 ;;
11273
11274interix[3-9]*)
11275 version_type=linux # correct to gnu/linux during the next big refactor
11276 need_lib_prefix=no
11277 need_version=no
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=no
11283 hardcode_into_libs=yes
11284 ;;
11285
11286irix5* | irix6* | nonstopux*)
11287 case $host_os in
11288 nonstopux*) version_type=nonstopux ;;
11289 *)
11290 if test "$lt_cv_prog_gnu_ld" = yes; then
11291 version_type=linux # correct to gnu/linux during the next big refactor
11292 else
11293 version_type=irix
11294 fi ;;
11295 esac
11296 need_lib_prefix=no
11297 need_version=no
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11300 case $host_os in
11301 irix5* | nonstopux*)
11302 libsuff= shlibsuff=
11303 ;;
11304 *)
11305 case $LD in # libtool.m4 will add one of these switches to LD
11306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11307 libsuff= shlibsuff= libmagic=32-bit;;
11308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11309 libsuff=32 shlibsuff=N32 libmagic=N32;;
11310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11311 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11312 *) libsuff= shlibsuff= libmagic=never-match;;
11313 esac
11314 ;;
11315 esac
11316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11317 shlibpath_overrides_runpath=no
11318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11320 hardcode_into_libs=yes
11321 ;;
11322
11323# No shared lib support for Linux oldld, aout, or coff.
11324linux*oldld* | linux*aout* | linux*coff*)
11325 dynamic_linker=no
11326 ;;
11327
11328# This must be glibc/ELF.
11329linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11330 version_type=linux # correct to gnu/linux during the next big refactor
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=no
11338
11339 # Some binutils ld are patched to set DT_RUNPATH
11340 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 lt_cv_shlibpath_overrides_runpath=no
11344 save_LDFLAGS=$LDFLAGS
11345 save_libdir=$libdir
11346 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11347 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349/* end confdefs.h. */
11350
11351int
11352main ()
11353{
11354
11355 ;
11356 return 0;
11357}
11358_ACEOF
11359if ac_fn_c_try_link "$LINENO"; then :
11360 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11361 lt_cv_shlibpath_overrides_runpath=yes
11362fi
11363fi
11364rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LDFLAGS=$save_LDFLAGS
11367 libdir=$save_libdir
11368
11369fi
11370
11371 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11372
11373 # This implies no fast_install, which is unacceptable.
11374 # Some rework will be needed to allow for fast_install
11375 # before this can be enabled.
11376 hardcode_into_libs=yes
11377
11378 # Append ld.so.conf contents to the search path
11379 if test -f /etc/ld.so.conf; then
11380 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' ' '`
11381 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11382 fi
11383
11384 # We used to test for /lib/ld.so.1 and disable shared libraries on
11385 # powerpc, because MkLinux only supported shared libraries with the
11386 # GNU dynamic linker. Since this was broken with cross compilers,
11387 # most powerpc-linux boxes support dynamic linking these days and
11388 # people can always --disable-shared, the test was removed, and we
11389 # assume the GNU/Linux dynamic linker is in use.
11390 dynamic_linker='GNU/Linux ld.so'
11391 ;;
11392
11393netbsdelf*-gnu)
11394 version_type=linux
11395 need_lib_prefix=no
11396 need_version=no
11397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11398 soname_spec='${libname}${release}${shared_ext}$major'
11399 shlibpath_var=LD_LIBRARY_PATH
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11402 dynamic_linker='NetBSD ld.elf_so'
11403 ;;
11404
11405netbsd*)
11406 version_type=sunos
11407 need_lib_prefix=no
11408 need_version=no
11409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11412 dynamic_linker='NetBSD (a.out) ld.so'
11413 else
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 dynamic_linker='NetBSD ld.elf_so'
11417 fi
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=yes
11420 hardcode_into_libs=yes
11421 ;;
11422
11423newsos6)
11424 version_type=linux # correct to gnu/linux during the next big refactor
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=yes
11428 ;;
11429
11430*nto* | *qnx*)
11431 version_type=qnx
11432 need_lib_prefix=no
11433 need_version=no
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=no
11438 hardcode_into_libs=yes
11439 dynamic_linker='ldqnx.so'
11440 ;;
11441
11442openbsd*)
11443 version_type=sunos
11444 sys_lib_dlsearch_path_spec="/usr/lib"
11445 need_lib_prefix=no
11446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11447 case $host_os in
11448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11449 *) need_version=no ;;
11450 esac
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11455 case $host_os in
11456 openbsd2.[89] | openbsd2.[89].*)
11457 shlibpath_overrides_runpath=no
11458 ;;
11459 *)
11460 shlibpath_overrides_runpath=yes
11461 ;;
11462 esac
11463 else
11464 shlibpath_overrides_runpath=yes
11465 fi
11466 ;;
11467
11468os2*)
11469 libname_spec='$name'
11470 shrext_cmds=".dll"
11471 need_lib_prefix=no
11472 library_names_spec='$libname${shared_ext} $libname.a'
11473 dynamic_linker='OS/2 ld.exe'
11474 shlibpath_var=LIBPATH
11475 ;;
11476
11477osf3* | osf4* | osf5*)
11478 version_type=osf
11479 need_lib_prefix=no
11480 need_version=no
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11486 ;;
11487
11488rdos*)
11489 dynamic_linker=no
11490 ;;
11491
11492solaris*)
11493 version_type=linux # correct to gnu/linux during the next big refactor
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 shlibpath_overrides_runpath=yes
11500 hardcode_into_libs=yes
11501 # ldd complains unless libraries are executable
11502 postinstall_cmds='chmod +x $lib'
11503 ;;
11504
11505sunos4*)
11506 version_type=sunos
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11511 if test "$with_gnu_ld" = yes; then
11512 need_lib_prefix=no
11513 fi
11514 need_version=yes
11515 ;;
11516
11517sysv4 | sysv4.3*)
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 case $host_vendor in
11523 sni)
11524 shlibpath_overrides_runpath=no
11525 need_lib_prefix=no
11526 runpath_var=LD_RUN_PATH
11527 ;;
11528 siemens)
11529 need_lib_prefix=no
11530 ;;
11531 motorola)
11532 need_lib_prefix=no
11533 need_version=no
11534 shlibpath_overrides_runpath=no
11535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11536 ;;
11537 esac
11538 ;;
11539
11540sysv4*MP*)
11541 if test -d /usr/nec ;then
11542 version_type=linux # correct to gnu/linux during the next big refactor
11543 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11544 soname_spec='$libname${shared_ext}.$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 fi
11547 ;;
11548
11549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11550 version_type=freebsd-elf
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11557 hardcode_into_libs=yes
11558 if test "$with_gnu_ld" = yes; then
11559 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11560 else
11561 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11562 case $host_os in
11563 sco3.2v5*)
11564 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11565 ;;
11566 esac
11567 fi
11568 sys_lib_dlsearch_path_spec='/usr/lib'
11569 ;;
11570
11571tpf*)
11572 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11573 version_type=linux # correct to gnu/linux during the next big refactor
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=no
11579 hardcode_into_libs=yes
11580 ;;
11581
11582uts4*)
11583 version_type=linux # correct to gnu/linux during the next big refactor
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 ;;
11588
11589*)
11590 dynamic_linker=no
11591 ;;
11592esac
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11594$as_echo "$dynamic_linker" >&6; }
11595test "$dynamic_linker" = no && can_build_shared=no
11596
11597variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11598if test "$GCC" = yes; then
11599 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11600fi
11601
11602if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11603 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11604fi
11605if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11606 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11607fi
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11701$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11702hardcode_action=
11703if test -n "$hardcode_libdir_flag_spec" ||
11704 test -n "$runpath_var" ||
11705 test "X$hardcode_automatic" = "Xyes" ; then
11706
11707 # We can hardcode non-existent directories.
11708 if test "$hardcode_direct" != no &&
11709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11710 # have to relink, otherwise we might link with an installed library
11711 # when we should be linking with a yet-to-be-installed one
11712 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11713 test "$hardcode_minus_L" != no; then
11714 # Linking always hardcodes the temporary library directory.
11715 hardcode_action=relink
11716 else
11717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11718 hardcode_action=immediate
11719 fi
11720else
11721 # We cannot hardcode anything, or else we can only hardcode existing
11722 # directories.
11723 hardcode_action=unsupported
11724fi
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11726$as_echo "$hardcode_action" >&6; }
11727
11728if test "$hardcode_action" = relink ||
11729 test "$inherit_rpath" = yes; then
11730 # Fast installation is not supported
11731 enable_fast_install=no
11732elif test "$shlibpath_overrides_runpath" = yes ||
11733 test "$enable_shared" = no; then
11734 # Fast installation is not necessary
11735 enable_fast_install=needless
11736fi
11737
11738
11739
11740
11741
11742
11743 if test "x$enable_dlopen" != xyes; then
11744 enable_dlopen=unknown
11745 enable_dlopen_self=unknown
11746 enable_dlopen_self_static=unknown
11747else
11748 lt_cv_dlopen=no
11749 lt_cv_dlopen_libs=
11750
11751 case $host_os in
11752 beos*)
11753 lt_cv_dlopen="load_add_on"
11754 lt_cv_dlopen_libs=
11755 lt_cv_dlopen_self=yes
11756 ;;
11757
11758 mingw* | pw32* | cegcc*)
11759 lt_cv_dlopen="LoadLibrary"
11760 lt_cv_dlopen_libs=
11761 ;;
11762
11763 cygwin*)
11764 lt_cv_dlopen="dlopen"
11765 lt_cv_dlopen_libs=
11766 ;;
11767
11768 darwin*)
11769 # if libdl is installed we need to link against it
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11771$as_echo_n "checking for dlopen in -ldl... " >&6; }
11772if ${ac_cv_lib_dl_dlopen+:} false; then :
11773 $as_echo_n "(cached) " >&6
11774else
11775 ac_check_lib_save_LIBS=$LIBS
11776LIBS="-ldl $LIBS"
11777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778/* end confdefs.h. */
11779
11780/* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783#ifdef __cplusplus
11784extern "C"
11785#endif
11786char dlopen ();
11787int
11788main ()
11789{
11790return dlopen ();
11791 ;
11792 return 0;
11793}
11794_ACEOF
11795if ac_fn_c_try_link "$LINENO"; then :
11796 ac_cv_lib_dl_dlopen=yes
11797else
11798 ac_cv_lib_dl_dlopen=no
11799fi
11800rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802LIBS=$ac_check_lib_save_LIBS
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11805$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11806if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11808else
11809
11810 lt_cv_dlopen="dyld"
11811 lt_cv_dlopen_libs=
11812 lt_cv_dlopen_self=yes
11813
11814fi
11815
11816 ;;
11817
11818 *)
11819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11820if test "x$ac_cv_func_shl_load" = xyes; then :
11821 lt_cv_dlopen="shl_load"
11822else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11824$as_echo_n "checking for shl_load in -ldld... " >&6; }
11825if ${ac_cv_lib_dld_shl_load+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827else
11828 ac_check_lib_save_LIBS=$LIBS
11829LIBS="-ldld $LIBS"
11830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831/* end confdefs.h. */
11832
11833/* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11836#ifdef __cplusplus
11837extern "C"
11838#endif
11839char shl_load ();
11840int
11841main ()
11842{
11843return shl_load ();
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848if ac_fn_c_try_link "$LINENO"; then :
11849 ac_cv_lib_dld_shl_load=yes
11850else
11851 ac_cv_lib_dld_shl_load=no
11852fi
11853rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11858$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11859if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11860 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11861else
11862 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11863if test "x$ac_cv_func_dlopen" = xyes; then :
11864 lt_cv_dlopen="dlopen"
11865else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11867$as_echo_n "checking for dlopen in -ldl... " >&6; }
11868if ${ac_cv_lib_dl_dlopen+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870else
11871 ac_check_lib_save_LIBS=$LIBS
11872LIBS="-ldl $LIBS"
11873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874/* end confdefs.h. */
11875
11876/* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879#ifdef __cplusplus
11880extern "C"
11881#endif
11882char dlopen ();
11883int
11884main ()
11885{
11886return dlopen ();
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_lib_dl_dlopen=yes
11893else
11894 ac_cv_lib_dl_dlopen=no
11895fi
11896rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898LIBS=$ac_check_lib_save_LIBS
11899fi
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11901$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11902if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11904else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11906$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11907if ${ac_cv_lib_svld_dlopen+:} false; then :
11908 $as_echo_n "(cached) " >&6
11909else
11910 ac_check_lib_save_LIBS=$LIBS
11911LIBS="-lsvld $LIBS"
11912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913/* end confdefs.h. */
11914
11915/* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11918#ifdef __cplusplus
11919extern "C"
11920#endif
11921char dlopen ();
11922int
11923main ()
11924{
11925return dlopen ();
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930if ac_fn_c_try_link "$LINENO"; then :
11931 ac_cv_lib_svld_dlopen=yes
11932else
11933 ac_cv_lib_svld_dlopen=no
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937LIBS=$ac_check_lib_save_LIBS
11938fi
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11940$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11941if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11943else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11945$as_echo_n "checking for dld_link in -ldld... " >&6; }
11946if ${ac_cv_lib_dld_dld_link+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948else
11949 ac_check_lib_save_LIBS=$LIBS
11950LIBS="-ldld $LIBS"
11951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h. */
11953
11954/* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11957#ifdef __cplusplus
11958extern "C"
11959#endif
11960char dld_link ();
11961int
11962main ()
11963{
11964return dld_link ();
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_lib_dld_dld_link=yes
11971else
11972 ac_cv_lib_dld_dld_link=no
11973fi
11974rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976LIBS=$ac_check_lib_save_LIBS
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11979$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11980if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11982fi
11983
11984
11985fi
11986
11987
11988fi
11989
11990
11991fi
11992
11993
11994fi
11995
11996
11997fi
11998
11999 ;;
12000 esac
12001
12002 if test "x$lt_cv_dlopen" != xno; then
12003 enable_dlopen=yes
12004 else
12005 enable_dlopen=no
12006 fi
12007
12008 case $lt_cv_dlopen in
12009 dlopen)
12010 save_CPPFLAGS="$CPPFLAGS"
12011 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12012
12013 save_LDFLAGS="$LDFLAGS"
12014 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12015
12016 save_LIBS="$LIBS"
12017 LIBS="$lt_cv_dlopen_libs $LIBS"
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12020$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12021if ${lt_cv_dlopen_self+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023else
12024 if test "$cross_compiling" = yes; then :
12025 lt_cv_dlopen_self=cross
12026else
12027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12028 lt_status=$lt_dlunknown
12029 cat > conftest.$ac_ext <<_LT_EOF
12030#line $LINENO "configure"
12031#include "confdefs.h"
12032
12033#if HAVE_DLFCN_H
12034#include <dlfcn.h>
12035#endif
12036
12037#include <stdio.h>
12038
12039#ifdef RTLD_GLOBAL
12040# define LT_DLGLOBAL RTLD_GLOBAL
12041#else
12042# ifdef DL_GLOBAL
12043# define LT_DLGLOBAL DL_GLOBAL
12044# else
12045# define LT_DLGLOBAL 0
12046# endif
12047#endif
12048
12049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12050 find out it does not work in some platform. */
12051#ifndef LT_DLLAZY_OR_NOW
12052# ifdef RTLD_LAZY
12053# define LT_DLLAZY_OR_NOW RTLD_LAZY
12054# else
12055# ifdef DL_LAZY
12056# define LT_DLLAZY_OR_NOW DL_LAZY
12057# else
12058# ifdef RTLD_NOW
12059# define LT_DLLAZY_OR_NOW RTLD_NOW
12060# else
12061# ifdef DL_NOW
12062# define LT_DLLAZY_OR_NOW DL_NOW
12063# else
12064# define LT_DLLAZY_OR_NOW 0
12065# endif
12066# endif
12067# endif
12068# endif
12069#endif
12070
12071/* When -fvisbility=hidden is used, assume the code has been annotated
12072 correspondingly for the symbols needed. */
12073#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12074int fnord () __attribute__((visibility("default")));
12075#endif
12076
12077int fnord () { return 42; }
12078int main ()
12079{
12080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12081 int status = $lt_dlunknown;
12082
12083 if (self)
12084 {
12085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12086 else
12087 {
12088 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12089 else puts (dlerror ());
12090 }
12091 /* dlclose (self); */
12092 }
12093 else
12094 puts (dlerror ());
12095
12096 return status;
12097}
12098_LT_EOF
12099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12100 (eval $ac_link) 2>&5
12101 ac_status=$?
12102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12103 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12104 (./conftest; exit; ) >&5 2>/dev/null
12105 lt_status=$?
12106 case x$lt_status in
12107 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12108 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12109 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12110 esac
12111 else :
12112 # compilation failed
12113 lt_cv_dlopen_self=no
12114 fi
12115fi
12116rm -fr conftest*
12117
12118
12119fi
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12121$as_echo "$lt_cv_dlopen_self" >&6; }
12122
12123 if test "x$lt_cv_dlopen_self" = xyes; then
12124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12126$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12127if ${lt_cv_dlopen_self_static+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129else
12130 if test "$cross_compiling" = yes; then :
12131 lt_cv_dlopen_self_static=cross
12132else
12133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12134 lt_status=$lt_dlunknown
12135 cat > conftest.$ac_ext <<_LT_EOF
12136#line $LINENO "configure"
12137#include "confdefs.h"
12138
12139#if HAVE_DLFCN_H
12140#include <dlfcn.h>
12141#endif
12142
12143#include <stdio.h>
12144
12145#ifdef RTLD_GLOBAL
12146# define LT_DLGLOBAL RTLD_GLOBAL
12147#else
12148# ifdef DL_GLOBAL
12149# define LT_DLGLOBAL DL_GLOBAL
12150# else
12151# define LT_DLGLOBAL 0
12152# endif
12153#endif
12154
12155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12156 find out it does not work in some platform. */
12157#ifndef LT_DLLAZY_OR_NOW
12158# ifdef RTLD_LAZY
12159# define LT_DLLAZY_OR_NOW RTLD_LAZY
12160# else
12161# ifdef DL_LAZY
12162# define LT_DLLAZY_OR_NOW DL_LAZY
12163# else
12164# ifdef RTLD_NOW
12165# define LT_DLLAZY_OR_NOW RTLD_NOW
12166# else
12167# ifdef DL_NOW
12168# define LT_DLLAZY_OR_NOW DL_NOW
12169# else
12170# define LT_DLLAZY_OR_NOW 0
12171# endif
12172# endif
12173# endif
12174# endif
12175#endif
12176
12177/* When -fvisbility=hidden is used, assume the code has been annotated
12178 correspondingly for the symbols needed. */
12179#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12180int fnord () __attribute__((visibility("default")));
12181#endif
12182
12183int fnord () { return 42; }
12184int main ()
12185{
12186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12187 int status = $lt_dlunknown;
12188
12189 if (self)
12190 {
12191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12192 else
12193 {
12194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12195 else puts (dlerror ());
12196 }
12197 /* dlclose (self); */
12198 }
12199 else
12200 puts (dlerror ());
12201
12202 return status;
12203}
12204_LT_EOF
12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12206 (eval $ac_link) 2>&5
12207 ac_status=$?
12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12210 (./conftest; exit; ) >&5 2>/dev/null
12211 lt_status=$?
12212 case x$lt_status in
12213 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12214 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12215 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12216 esac
12217 else :
12218 # compilation failed
12219 lt_cv_dlopen_self_static=no
12220 fi
12221fi
12222rm -fr conftest*
12223
12224
12225fi
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12227$as_echo "$lt_cv_dlopen_self_static" >&6; }
12228 fi
12229
12230 CPPFLAGS="$save_CPPFLAGS"
12231 LDFLAGS="$save_LDFLAGS"
12232 LIBS="$save_LIBS"
12233 ;;
12234 esac
12235
12236 case $lt_cv_dlopen_self in
12237 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12238 *) enable_dlopen_self=unknown ;;
12239 esac
12240
12241 case $lt_cv_dlopen_self_static in
12242 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12243 *) enable_dlopen_self_static=unknown ;;
12244 esac
12245fi
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263striplib=
12264old_striplib=
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12266$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12267if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12269 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12271$as_echo "yes" >&6; }
12272else
12273# FIXME - insert some real tests, host_os isn't really good enough
12274 case $host_os in
12275 darwin*)
12276 if test -n "$STRIP" ; then
12277 striplib="$STRIP -x"
12278 old_striplib="$STRIP -S"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280$as_echo "yes" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283$as_echo "no" >&6; }
12284 fi
12285 ;;
12286 *)
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289 ;;
12290 esac
12291fi
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304 # Report which library types will actually be built
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12306$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12308$as_echo "$can_build_shared" >&6; }
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12311$as_echo_n "checking whether to build shared libraries... " >&6; }
12312 test "$can_build_shared" = "no" && enable_shared=no
12313
12314 # On AIX, shared libraries and static libraries use the same namespace, and
12315 # are all built from PIC.
12316 case $host_os in
12317 aix3*)
12318 test "$enable_shared" = yes && enable_static=no
12319 if test -n "$RANLIB"; then
12320 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12321 postinstall_cmds='$RANLIB $lib'
12322 fi
12323 ;;
12324
12325 aix[4-9]*)
12326 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12327 test "$enable_shared" = yes && enable_static=no
12328 fi
12329 ;;
12330 esac
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12332$as_echo "$enable_shared" >&6; }
12333
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12335$as_echo_n "checking whether to build static libraries... " >&6; }
12336 # Make sure either enable_shared or enable_static is yes.
12337 test "$enable_shared" = yes || enable_static=yes
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12339$as_echo "$enable_static" >&6; }
12340
12341
12342
12343
12344fi
12345ac_ext=c
12346ac_cpp='$CPP $CPPFLAGS'
12347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12349ac_compiler_gnu=$ac_cv_c_compiler_gnu
12350
12351CC="$lt_save_CC"
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367 ac_config_commands="$ac_config_commands libtool"
12368
12369
12370
12371
12372# Only expand once:
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12383$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12384if ${libltdl_cv_shlibext+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386else
12387
12388module=yes
12389eval libltdl_cv_shlibext=$shrext_cmds
12390module=no
12391eval libltdl_cv_shrext=$shrext_cmds
12392
12393fi
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12395$as_echo "$libltdl_cv_shlibext" >&6; }
12396if test -n "$libltdl_cv_shlibext"; then
12397
12398cat >>confdefs.h <<_ACEOF
12399#define LT_MODULE_EXT "$libltdl_cv_shlibext"
12400_ACEOF
12401
12402fi
12403if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12404
12405cat >>confdefs.h <<_ACEOF
12406#define LT_SHARED_EXT "$libltdl_cv_shrext"
12407_ACEOF
12408
12409fi
12410
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12412$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12413if ${lt_cv_module_path_var+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415else
12416 lt_cv_module_path_var="$shlibpath_var"
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12419$as_echo "$lt_cv_module_path_var" >&6; }
12420if test -n "$lt_cv_module_path_var"; then
12421
12422cat >>confdefs.h <<_ACEOF
12423#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12424_ACEOF
12425
12426fi
12427
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12429$as_echo_n "checking for the default library search path... " >&6; }
12430if ${lt_cv_sys_dlsearch_path+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432else
12433 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12434fi
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12436$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12437if test -n "$lt_cv_sys_dlsearch_path"; then
12438 sys_dlsearch_path=
12439 for dir in $lt_cv_sys_dlsearch_path; do
12440 if test -z "$sys_dlsearch_path"; then
12441 sys_dlsearch_path="$dir"
12442 else
12443 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12444 fi
12445 done
12446
12447cat >>confdefs.h <<_ACEOF
12448#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12449_ACEOF
12450
12451fi
12452
12453
12454LT_DLLOADERS=
12455
12456
12457ac_ext=c
12458ac_cpp='$CPP $CPPFLAGS'
12459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462
12463
12464LIBADD_DLOPEN=
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12466$as_echo_n "checking for library containing dlopen... " >&6; }
12467if ${ac_cv_search_dlopen+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469else
12470 ac_func_search_save_LIBS=$LIBS
12471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472/* end confdefs.h. */
12473
12474/* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477#ifdef __cplusplus
12478extern "C"
12479#endif
12480char dlopen ();
12481int
12482main ()
12483{
12484return dlopen ();
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489for ac_lib in '' dl; do
12490 if test -z "$ac_lib"; then
12491 ac_res="none required"
12492 else
12493 ac_res=-l$ac_lib
12494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12495 fi
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_search_dlopen=$ac_res
12498fi
12499rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext
12501 if ${ac_cv_search_dlopen+:} false; then :
12502 break
12503fi
12504done
12505if ${ac_cv_search_dlopen+:} false; then :
12506
12507else
12508 ac_cv_search_dlopen=no
12509fi
12510rm conftest.$ac_ext
12511LIBS=$ac_func_search_save_LIBS
12512fi
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12514$as_echo "$ac_cv_search_dlopen" >&6; }
12515ac_res=$ac_cv_search_dlopen
12516if test "$ac_res" != no; then :
12517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12518
12519$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12520
12521 if test "$ac_cv_search_dlopen" != "none required" ; then
12522 LIBADD_DLOPEN="-ldl"
12523 fi
12524 libltdl_cv_lib_dl_dlopen="yes"
12525 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12526else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h. */
12529#if HAVE_DLFCN_H
12530# include <dlfcn.h>
12531#endif
12532
12533int
12534main ()
12535{
12536dlopen(0, 0);
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541if ac_fn_c_try_link "$LINENO"; then :
12542
12543$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12544
12545 libltdl_cv_func_dlopen="yes"
12546 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12547else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12549$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12550if ${ac_cv_lib_svld_dlopen+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552else
12553 ac_check_lib_save_LIBS=$LIBS
12554LIBS="-lsvld $LIBS"
12555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h. */
12557
12558/* Override any GCC internal prototype to avoid an error.
12559 Use char because int might match the return type of a GCC
12560 builtin and then its argument prototype would still apply. */
12561#ifdef __cplusplus
12562extern "C"
12563#endif
12564char dlopen ();
12565int
12566main ()
12567{
12568return dlopen ();
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_lib_svld_dlopen=yes
12575else
12576 ac_cv_lib_svld_dlopen=no
12577fi
12578rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580LIBS=$ac_check_lib_save_LIBS
12581fi
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12583$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12584if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12585
12586$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12587
12588 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12589 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12590fi
12591
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595fi
12596
12597if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12598then
12599 lt_save_LIBS="$LIBS"
12600 LIBS="$LIBS $LIBADD_DLOPEN"
12601 for ac_func in dlerror
12602do :
12603 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12604if test "x$ac_cv_func_dlerror" = xyes; then :
12605 cat >>confdefs.h <<_ACEOF
12606#define HAVE_DLERROR 1
12607_ACEOF
12608
12609fi
12610done
12611
12612 LIBS="$lt_save_LIBS"
12613fi
12614
12615
12616LIBADD_SHL_LOAD=
12617ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12618if test "x$ac_cv_func_shl_load" = xyes; then :
12619
12620$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12621
12622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12623else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12625$as_echo_n "checking for shl_load in -ldld... " >&6; }
12626if ${ac_cv_lib_dld_shl_load+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628else
12629 ac_check_lib_save_LIBS=$LIBS
12630LIBS="-ldld $LIBS"
12631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h. */
12633
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char shl_load ();
12641int
12642main ()
12643{
12644return shl_load ();
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649if ac_fn_c_try_link "$LINENO"; then :
12650 ac_cv_lib_dld_shl_load=yes
12651else
12652 ac_cv_lib_dld_shl_load=no
12653fi
12654rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656LIBS=$ac_check_lib_save_LIBS
12657fi
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12659$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12660if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12661
12662$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12663
12664 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12665 LIBADD_SHL_LOAD="-ldld"
12666fi
12667
12668fi
12669
12670
12671
12672case $host_os in
12673darwin[1567].*)
12674# We only want this for pre-Mac OS X 10.4.
12675 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12676if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12677
12678$as_echo "#define HAVE_DYLD 1" >>confdefs.h
12679
12680 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12681fi
12682
12683 ;;
12684beos*)
12685 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12686 ;;
12687cygwin* | mingw* | os2* | pw32*)
12688 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12689"
12690if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12691 ac_have_decl=1
12692else
12693 ac_have_decl=0
12694fi
12695
12696cat >>confdefs.h <<_ACEOF
12697#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12698_ACEOF
12699
12700 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12701 ;;
12702esac
12703
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12705$as_echo_n "checking for dld_link in -ldld... " >&6; }
12706if ${ac_cv_lib_dld_dld_link+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708else
12709 ac_check_lib_save_LIBS=$LIBS
12710LIBS="-ldld $LIBS"
12711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712/* end confdefs.h. */
12713
12714/* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717#ifdef __cplusplus
12718extern "C"
12719#endif
12720char dld_link ();
12721int
12722main ()
12723{
12724return dld_link ();
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729if ac_fn_c_try_link "$LINENO"; then :
12730 ac_cv_lib_dld_dld_link=yes
12731else
12732 ac_cv_lib_dld_dld_link=no
12733fi
12734rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736LIBS=$ac_check_lib_save_LIBS
12737fi
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12739$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12740if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12741
12742$as_echo "#define HAVE_DLD 1" >>confdefs.h
12743
12744 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12745fi
12746
12747
12748
12749
12750LT_DLPREOPEN=
12751if test -n "$LT_DLLOADERS"
12752then
12753 for lt_loader in $LT_DLLOADERS; do
12754 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12755 done
12756
12757$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12758
12759fi
12760
12761
12762LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12763
12764
12765ac_ext=c
12766ac_cpp='$CPP $CPPFLAGS'
12767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12769ac_compiler_gnu=$ac_cv_c_compiler_gnu
12770
12771
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12773$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12774if ${lt_cv_sys_symbol_underscore+:} false; then :
12775 $as_echo_n "(cached) " >&6
12776else
12777 lt_cv_sys_symbol_underscore=no
12778 cat > conftest.$ac_ext <<_LT_EOF
12779void nm_test_func(){}
12780int main(){nm_test_func;return 0;}
12781_LT_EOF
12782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12783 (eval $ac_compile) 2>&5
12784 ac_status=$?
12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12786 test $ac_status = 0; }; then
12787 # Now try to grab the symbols.
12788 ac_nlist=conftest.nm
12789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12790 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12791 ac_status=$?
12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793 test $ac_status = 0; } && test -s "$ac_nlist"; then
12794 # See whether the symbols have a leading underscore.
12795 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12796 lt_cv_sys_symbol_underscore=yes
12797 else
12798 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12799 :
12800 else
12801 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12802 fi
12803 fi
12804 else
12805 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12806 fi
12807 else
12808 echo "configure: failed program was:" >&5
12809 cat conftest.c >&5
12810 fi
12811 rm -rf conftest*
12812
12813fi
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12815$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12816 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12817
12818
12819if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12820 if test x"$libltdl_cv_func_dlopen" = xyes ||
12821 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12823$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12824if ${libltdl_cv_need_uscore+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826else
12827 libltdl_cv_need_uscore=unknown
12828 save_LIBS="$LIBS"
12829 LIBS="$LIBS $LIBADD_DLOPEN"
12830 if test "$cross_compiling" = yes; then :
12831 libltdl_cv_need_uscore=cross
12832else
12833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12834 lt_status=$lt_dlunknown
12835 cat > conftest.$ac_ext <<_LT_EOF
12836#line $LINENO "configure"
12837#include "confdefs.h"
12838
12839#if HAVE_DLFCN_H
12840#include <dlfcn.h>
12841#endif
12842
12843#include <stdio.h>
12844
12845#ifdef RTLD_GLOBAL
12846# define LT_DLGLOBAL RTLD_GLOBAL
12847#else
12848# ifdef DL_GLOBAL
12849# define LT_DLGLOBAL DL_GLOBAL
12850# else
12851# define LT_DLGLOBAL 0
12852# endif
12853#endif
12854
12855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12856 find out it does not work in some platform. */
12857#ifndef LT_DLLAZY_OR_NOW
12858# ifdef RTLD_LAZY
12859# define LT_DLLAZY_OR_NOW RTLD_LAZY
12860# else
12861# ifdef DL_LAZY
12862# define LT_DLLAZY_OR_NOW DL_LAZY
12863# else
12864# ifdef RTLD_NOW
12865# define LT_DLLAZY_OR_NOW RTLD_NOW
12866# else
12867# ifdef DL_NOW
12868# define LT_DLLAZY_OR_NOW DL_NOW
12869# else
12870# define LT_DLLAZY_OR_NOW 0
12871# endif
12872# endif
12873# endif
12874# endif
12875#endif
12876
12877/* When -fvisbility=hidden is used, assume the code has been annotated
12878 correspondingly for the symbols needed. */
12879#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12880int fnord () __attribute__((visibility("default")));
12881#endif
12882
12883int fnord () { return 42; }
12884int main ()
12885{
12886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12887 int status = $lt_dlunknown;
12888
12889 if (self)
12890 {
12891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12892 else
12893 {
12894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12895 else puts (dlerror ());
12896 }
12897 /* dlclose (self); */
12898 }
12899 else
12900 puts (dlerror ());
12901
12902 return status;
12903}
12904_LT_EOF
12905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12906 (eval $ac_link) 2>&5
12907 ac_status=$?
12908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12909 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12910 (./conftest; exit; ) >&5 2>/dev/null
12911 lt_status=$?
12912 case x$lt_status in
12913 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12914 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12915 x$lt_dlunknown|x*) ;;
12916 esac
12917 else :
12918 # compilation failed
12919
12920 fi
12921fi
12922rm -fr conftest*
12923
12924 LIBS="$save_LIBS"
12925
12926fi
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12928$as_echo "$libltdl_cv_need_uscore" >&6; }
12929 fi
12930fi
12931
12932if test x"$libltdl_cv_need_uscore" = xyes; then
12933
12934$as_echo "#define NEED_USCORE 1" >>confdefs.h
12935
12936fi
12937
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12939$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12940if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12941 $as_echo_n "(cached) " >&6
12942else
12943 # PORTME does your system automatically load deplibs for dlopen?
12944 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12945 # For now, we just catch OSes we know something about -- in the
12946 # future, we'll try test this programmatically.
12947 lt_cv_sys_dlopen_deplibs=unknown
12948 case $host_os in
12949 aix3*|aix4.1.*|aix4.2.*)
12950 # Unknown whether this is true for these versions of AIX, but
12951 # we want this `case' here to explicitly catch those versions.
12952 lt_cv_sys_dlopen_deplibs=unknown
12953 ;;
12954 aix[4-9]*)
12955 lt_cv_sys_dlopen_deplibs=yes
12956 ;;
12957 amigaos*)
12958 case $host_cpu in
12959 powerpc)
12960 lt_cv_sys_dlopen_deplibs=no
12961 ;;
12962 esac
12963 ;;
12964 darwin*)
12965 # Assuming the user has installed a libdl from somewhere, this is true
12966 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12967 lt_cv_sys_dlopen_deplibs=yes
12968 ;;
12969 freebsd* | dragonfly*)
12970 lt_cv_sys_dlopen_deplibs=yes
12971 ;;
12972 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12973 # GNU and its variants, using gnu ld.so (Glibc)
12974 lt_cv_sys_dlopen_deplibs=yes
12975 ;;
12976 hpux10*|hpux11*)
12977 lt_cv_sys_dlopen_deplibs=yes
12978 ;;
12979 interix*)
12980 lt_cv_sys_dlopen_deplibs=yes
12981 ;;
12982 irix[12345]*|irix6.[01]*)
12983 # Catch all versions of IRIX before 6.2, and indicate that we don't
12984 # know how it worked for any of those versions.
12985 lt_cv_sys_dlopen_deplibs=unknown
12986 ;;
12987 irix*)
12988 # The case above catches anything before 6.2, and it's known that
12989 # at 6.2 and later dlopen does load deplibs.
12990 lt_cv_sys_dlopen_deplibs=yes
12991 ;;
12992 netbsd* | netbsdelf*-gnu)
12993 lt_cv_sys_dlopen_deplibs=yes
12994 ;;
12995 openbsd*)
12996 lt_cv_sys_dlopen_deplibs=yes
12997 ;;
12998 osf[1234]*)
12999 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
13000 # it did *not* use an RPATH in a shared library to find objects the
13001 # library depends on, so we explicitly say `no'.
13002 lt_cv_sys_dlopen_deplibs=no
13003 ;;
13004 osf5.0|osf5.0a|osf5.1)
13005 # dlopen *does* load deplibs and with the right loader patch applied
13006 # it even uses RPATH in a shared library to search for shared objects
13007 # that the library depends on, but there's no easy way to know if that
13008 # patch is installed. Since this is the case, all we can really
13009 # say is unknown -- it depends on the patch being installed. If
13010 # it is, this changes to `yes'. Without it, it would be `no'.
13011 lt_cv_sys_dlopen_deplibs=unknown
13012 ;;
13013 osf*)
13014 # the two cases above should catch all versions of osf <= 5.1. Read
13015 # the comments above for what we know about them.
13016 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
13017 # is used to find them so we can finally say `yes'.
13018 lt_cv_sys_dlopen_deplibs=yes
13019 ;;
13020 qnx*)
13021 lt_cv_sys_dlopen_deplibs=yes
13022 ;;
13023 solaris*)
13024 lt_cv_sys_dlopen_deplibs=yes
13025 ;;
13026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13027 libltdl_cv_sys_dlopen_deplibs=yes
13028 ;;
13029 esac
13030
13031fi
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
13033$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
13034if test "$lt_cv_sys_dlopen_deplibs" != yes; then
13035
13036$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
13037
13038fi
13039
13040:
13041
13042for ac_header in argz.h
13043do :
13044 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
13045"
13046if test "x$ac_cv_header_argz_h" = xyes; then :
13047 cat >>confdefs.h <<_ACEOF
13048#define HAVE_ARGZ_H 1
13049_ACEOF
13050
13051fi
13052
13053done
13054
13055
13056ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
13057# include <argz.h>
13058#endif
13059"
13060if test "x$ac_cv_type_error_t" = xyes; then :
13061
13062cat >>confdefs.h <<_ACEOF
13063#define HAVE_ERROR_T 1
13064_ACEOF
13065
13066
13067else
13068
13069$as_echo "#define error_t int" >>confdefs.h
13070
13071
13072$as_echo "#define __error_t_defined 1" >>confdefs.h
13073
13074fi
13075
13076
13077ARGZ_H=
13078for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13079 argz_next argz_stringify
13080do :
13081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13082ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13083if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13084 cat >>confdefs.h <<_ACEOF
13085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13086_ACEOF
13087
13088else
13089 ARGZ_H=argz.h;
13090
13091 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13092
13093fi
13094done
13095
13096
13097if test -z "$ARGZ_H"; then :
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13099$as_echo_n "checking if argz actually works... " >&6; }
13100if ${lt_cv_sys_argz_works+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102else
13103 case $host_os in #(
13104 *cygwin*)
13105 lt_cv_sys_argz_works=no
13106 if test "$cross_compiling" != no; then
13107 lt_cv_sys_argz_works="guessing no"
13108 else
13109 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13110 save_IFS=$IFS
13111 IFS=-.
13112 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13113 IFS=$save_IFS
13114 lt_os_major=${2-0}
13115 lt_os_minor=${3-0}
13116 lt_os_micro=${4-0}
13117 if test "$lt_os_major" -gt 1 \
13118 || { test "$lt_os_major" -eq 1 \
13119 && { test "$lt_os_minor" -gt 5 \
13120 || { test "$lt_os_minor" -eq 5 \
13121 && test "$lt_os_micro" -gt 24; }; }; }; then
13122 lt_cv_sys_argz_works=yes
13123 fi
13124 fi
13125 ;; #(
13126 *) lt_cv_sys_argz_works=yes ;;
13127 esac
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13130$as_echo "$lt_cv_sys_argz_works" >&6; }
13131 if test "$lt_cv_sys_argz_works" = yes; then :
13132
13133$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13134
13135else
13136 ARGZ_H=argz.h
13137
13138
13139 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
13140
13141fi
13142fi
13143
13144
13145
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13147$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13148if ${libltdl_cv_preloaded_symbols+:} false; then :
13149 $as_echo_n "(cached) " >&6
13150else
13151 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13152 libltdl_cv_preloaded_symbols=yes
13153 else
13154 libltdl_cv_preloaded_symbols=no
13155 fi
13156
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13159$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13160if test x"$libltdl_cv_preloaded_symbols" = xyes; then
13161
13162$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13163
13164fi
13165
13166# Set options
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179# Check whether --with-included_ltdl was given.
13180if test "${with_included_ltdl+set}" = set; then :
13181 withval=$with_included_ltdl;
13182fi
13183
13184
13185if test "x$with_included_ltdl" != xyes; then
13186 # We are not being forced to use the included libltdl sources, so
13187 # decide whether there is a useful installed version we can use.
13188 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13189
13190"
13191if test "x$ac_cv_header_ltdl_h" = xyes; then :
13192 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13193 #include <ltdl.h>
13194"
13195if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13197$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13198if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200else
13201 ac_check_lib_save_LIBS=$LIBS
13202LIBS="-lltdl $LIBS"
13203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204/* end confdefs.h. */
13205
13206/* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209#ifdef __cplusplus
13210extern "C"
13211#endif
13212char lt_dladvise_preload ();
13213int
13214main ()
13215{
13216return lt_dladvise_preload ();
13217 ;
13218 return 0;
13219}
13220_ACEOF
13221if ac_fn_c_try_link "$LINENO"; then :
13222 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13223else
13224 ac_cv_lib_ltdl_lt_dladvise_preload=no
13225fi
13226rm -f core conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228LIBS=$ac_check_lib_save_LIBS
13229fi
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13231$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13232if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13233 with_included_ltdl=no
13234else
13235 with_included_ltdl=yes
13236fi
13237
13238else
13239 with_included_ltdl=yes
13240fi
13241
13242else
13243 with_included_ltdl=yes
13244fi
13245
13246
13247fi
13248
13249
13250
13251
13252# Check whether --with-ltdl_include was given.
13253if test "${with_ltdl_include+set}" = set; then :
13254 withval=$with_ltdl_include;
13255fi
13256
13257
13258if test -n "$with_ltdl_include"; then
13259 if test -f "$with_ltdl_include/ltdl.h"; then :
13260 else
13261 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13262 fi
13263else
13264 with_ltdl_include=no
13265fi
13266
13267
13268# Check whether --with-ltdl_lib was given.
13269if test "${with_ltdl_lib+set}" = set; then :
13270 withval=$with_ltdl_lib;
13271fi
13272
13273
13274if test -n "$with_ltdl_lib"; then
13275 if test -f "$with_ltdl_lib/libltdl.la"; then :
13276 else
13277 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13278 fi
13279else
13280 with_ltdl_lib=no
13281fi
13282
13283case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13284 ,yes,no,no,)
13285 case $enable_ltdl_convenience in
13286 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13287 "") enable_ltdl_convenience=yes
13288 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13289esac
13290LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13291LTDLDEPS=$LIBLTDL
13292LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13293
13294
13295
13296
13297
13298# For backwards non-gettext consistent compatibility...
13299INCLTDL="$LTDLINCL"
13300
13301
13302 ;;
13303 ,no,no,no,)
13304 # If the included ltdl is not to be used, then use the
13305 # preinstalled libltdl we found.
13306
13307$as_echo "#define HAVE_LTDL 1" >>confdefs.h
13308
13309 LIBLTDL=-lltdl
13310 LTDLDEPS=
13311 LTDLINCL=
13312 ;;
13313 ,no*,no,*)
13314 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13315 ;;
13316 *) with_included_ltdl=no
13317 LIBLTDL="-L$with_ltdl_lib -lltdl"
13318 LTDLDEPS=
13319 LTDLINCL="-I$with_ltdl_include"
13320 ;;
13321esac
13322INCLTDL="$LTDLINCL"
13323
13324# Report our decision...
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13326$as_echo_n "checking where to find libltdl headers... " >&6; }
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13328$as_echo "$LTDLINCL" >&6; }
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13330$as_echo_n "checking where to find libltdl library... " >&6; }
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13332$as_echo "$LIBLTDL" >&6; }
13333
13334
13335
13336# Check whether --enable-ltdl-install was given.
13337if test "${enable_ltdl_install+set}" = set; then :
13338 enableval=$enable_ltdl_install;
13339fi
13340
13341
13342case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13343 *yes*) ;;
13344 *) enable_ltdl_convenience=yes ;;
13345esac
13346
13347 if test x"${enable_ltdl_install-no}" != xno; then
13348 INSTALL_LTDL_TRUE=
13349 INSTALL_LTDL_FALSE='#'
13350else
13351 INSTALL_LTDL_TRUE='#'
13352 INSTALL_LTDL_FALSE=
13353fi
13354
13355 if test x"${enable_ltdl_convenience-no}" != xno; then
13356 CONVENIENCE_LTDL_TRUE=
13357 CONVENIENCE_LTDL_FALSE='#'
13358else
13359 CONVENIENCE_LTDL_TRUE='#'
13360 CONVENIENCE_LTDL_FALSE=
13361fi
13362
13363
13364
13365 subdirs="$subdirs libltdl"
13366
13367
13368
13369
13370# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13371# the user used. This is so that ltdl.h can pick up the parent projects
13372# config.h file, The first file in AC_CONFIG_HEADERS must contain the
13373# definitions required by ltdl.c.
13374# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13375
13376
13377
13378for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13379do :
13380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13382"
13383if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13384 cat >>confdefs.h <<_ACEOF
13385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13386_ACEOF
13387
13388fi
13389
13390done
13391
13392
13393for ac_func in closedir opendir readdir
13394do :
13395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13396ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13397if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13398 cat >>confdefs.h <<_ACEOF
13399#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13400_ACEOF
13401
13402else
13403
13404
13405 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13406
13407fi
13408done
13409
13410for ac_func in strlcat strlcpy
13411do :
13412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13413ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13414if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13415 cat >>confdefs.h <<_ACEOF
13416#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13417_ACEOF
13418
13419else
13420
13421
13422 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13423
13424fi
13425done
13426
13427
13428
13429cat >>confdefs.h <<_ACEOF
13430#define LT_LIBEXT "$libext"
13431_ACEOF
13432
13433
13434name=
13435eval "lt_libprefix=\"$libname_spec\""
13436
13437cat >>confdefs.h <<_ACEOF
13438#define LT_LIBPREFIX "$lt_libprefix"
13439_ACEOF
13440
13441
13442name=ltdl
13443eval "LTDLOPEN=\"$libname_spec\""
13444
13445
13446
13447
13448
13449
13450
13451
13452# Only expand once:
13453
13454
13455
13456build_ltdl=$with_included_ltdl
13457 if test x"$build_ltdl" = x"yes"; then
13458 BUILD_LTDL_TRUE=
13459 BUILD_LTDL_FALSE='#'
13460else
13461 BUILD_LTDL_TRUE='#'
13462 BUILD_LTDL_FALSE=
13463fi
13464
13465
13466if test "$ac_cv_c_compiler_gnu" = yes; then
13467 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
13468fi
13469
13470if test "$ac_cv_prog_cc_g" = yes; then
13471 IRC_CFLAGS="$IRC_CFLAGS -g"
13472fi
13473
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13475$as_echo_n "checking for /dev/null... " >&6; }
13476if test -c /dev/null ; then
13477
13478$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13479
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13481$as_echo "yes" >&6; }
13482else
13483
13484$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13485
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13487$as_echo "no - using devnull.log" >&6; }
13488fi
13489
13490if test ! -z "$CFLAGS"; then
13491 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
13492fi
13493
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13495$as_echo_n "checking for library containing strerror... " >&6; }
13496if ${ac_cv_search_strerror+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498else
13499 ac_func_search_save_LIBS=$LIBS
13500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501/* end confdefs.h. */
13502
13503/* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13506#ifdef __cplusplus
13507extern "C"
13508#endif
13509char strerror ();
13510int
13511main ()
13512{
13513return strerror ();
13514 ;
13515 return 0;
13516}
13517_ACEOF
13518for ac_lib in '' cposix; do
13519 if test -z "$ac_lib"; then
13520 ac_res="none required"
13521 else
13522 ac_res=-l$ac_lib
13523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13524 fi
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_search_strerror=$ac_res
13527fi
13528rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext
13530 if ${ac_cv_search_strerror+:} false; then :
13531 break
13532fi
13533done
13534if ${ac_cv_search_strerror+:} false; then :
13535
13536else
13537 ac_cv_search_strerror=no
13538fi
13539rm conftest.$ac_ext
13540LIBS=$ac_func_search_save_LIBS
13541fi
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13543$as_echo "$ac_cv_search_strerror" >&6; }
13544ac_res=$ac_cv_search_strerror
13545if test "$ac_res" != no; then :
13546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13547
13548fi
13549
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13551$as_echo_n "checking for inline... " >&6; }
13552if ${ac_cv_c_inline+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554else
13555 ac_cv_c_inline=no
13556for ac_kw in inline __inline__ __inline; do
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558/* end confdefs.h. */
13559#ifndef __cplusplus
13560typedef int foo_t;
13561static $ac_kw foo_t static_foo () {return 0; }
13562$ac_kw foo_t foo () {return 0; }
13563#endif
13564
13565_ACEOF
13566if ac_fn_c_try_compile "$LINENO"; then :
13567 ac_cv_c_inline=$ac_kw
13568fi
13569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 test "$ac_cv_c_inline" != no && break
13571done
13572
13573fi
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13575$as_echo "$ac_cv_c_inline" >&6; }
13576
13577case $ac_cv_c_inline in
13578 inline | yes) ;;
13579 *)
13580 case $ac_cv_c_inline in
13581 no) ac_val=;;
13582 *) ac_val=$ac_cv_c_inline;;
13583 esac
13584 cat >>confdefs.h <<_ACEOF
13585#ifndef __cplusplus
13586#define inline $ac_val
13587#endif
13588_ACEOF
13589 ;;
13590esac
13591
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13594set x ${MAKE-make}
13595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598else
13599 cat >conftest.make <<\_ACEOF
13600SHELL = /bin/sh
13601all:
13602 @echo '@@@%%%=$(MAKE)=@@@%%%'
13603_ACEOF
13604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13605case `${MAKE-make} -f conftest.make 2>/dev/null` in
13606 *@@@%%%=?*=@@@%%%*)
13607 eval ac_cv_prog_make_${ac_make}_set=yes;;
13608 *)
13609 eval ac_cv_prog_make_${ac_make}_set=no;;
13610esac
13611rm -f conftest.make
13612fi
13613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615$as_echo "yes" >&6; }
13616 SET_MAKE=
13617else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
13620 SET_MAKE="MAKE=${MAKE-make}"
13621fi
13622
13623
13624# Extract the first word of "rm", so it can be a program name with args.
13625set dummy rm; ac_word=$2
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627$as_echo_n "checking for $ac_word... " >&6; }
13628if ${ac_cv_path_RM+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630else
13631 case $RM in
13632 [\\/]* | ?:[\\/]*)
13633 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13634 ;;
13635 *)
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13643 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13646 fi
13647done
13648 done
13649IFS=$as_save_IFS
13650
13651 ;;
13652esac
13653fi
13654RM=$ac_cv_path_RM
13655if test -n "$RM"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13657$as_echo "$RM" >&6; }
13658else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
13661fi
13662
13663
13664# Extract the first word of "cp", so it can be a program name with args.
13665set dummy cp; ac_word=$2
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667$as_echo_n "checking for $ac_word... " >&6; }
13668if ${ac_cv_path_CP+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670else
13671 case $CP in
13672 [\\/]* | ?:[\\/]*)
13673 ac_cv_path_CP="$CP" # Let the user override the test with a path.
13674 ;;
13675 *)
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13686 fi
13687done
13688 done
13689IFS=$as_save_IFS
13690
13691 ;;
13692esac
13693fi
13694CP=$ac_cv_path_CP
13695if test -n "$CP"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
13697$as_echo "$CP" >&6; }
13698else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701fi
13702
13703
13704# Extract the first word of "mv", so it can be a program name with args.
13705set dummy mv; ac_word=$2
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707$as_echo_n "checking for $ac_word... " >&6; }
13708if ${ac_cv_path_MV+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710else
13711 case $MV in
13712 [\\/]* | ?:[\\/]*)
13713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
13714 ;;
13715 *)
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717for as_dir in $PATH
13718do
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13726 fi
13727done
13728 done
13729IFS=$as_save_IFS
13730
13731 ;;
13732esac
13733fi
13734MV=$ac_cv_path_MV
13735if test -n "$MV"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
13737$as_echo "$MV" >&6; }
13738else
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
13741fi
13742
13743
13744# Extract the first word of "ln", so it can be a program name with args.
13745set dummy ln; ac_word=$2
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747$as_echo_n "checking for $ac_word... " >&6; }
13748if ${ac_cv_path_LN+:} false; then :
13749 $as_echo_n "(cached) " >&6
13750else
13751 case $LN in
13752 [\\/]* | ?:[\\/]*)
13753 ac_cv_path_LN="$LN" # Let the user override the test with a path.
13754 ;;
13755 *)
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757for as_dir in $PATH
13758do
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13766 fi
13767done
13768 done
13769IFS=$as_save_IFS
13770
13771 ;;
13772esac
13773fi
13774LN=$ac_cv_path_LN
13775if test -n "$LN"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
13777$as_echo "$LN" >&6; }
13778else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783
13784# Extract the first word of "sed", so it can be a program name with args.
13785set dummy sed; ac_word=$2
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787$as_echo_n "checking for $ac_word... " >&6; }
13788if ${ac_cv_path_SED+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790else
13791 case $SED in
13792 [\\/]* | ?:[\\/]*)
13793 ac_cv_path_SED="$SED" # Let the user override the test with a path.
13794 ;;
13795 *)
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797for as_dir in $PATH
13798do
13799 IFS=$as_save_IFS
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 break 2
13806 fi
13807done
13808 done
13809IFS=$as_save_IFS
13810
13811 ;;
13812esac
13813fi
13814SED=$ac_cv_path_SED
13815if test -n "$SED"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13817$as_echo "$SED" >&6; }
13818else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
13822
13823
13824# Extract the first word of "ar", so it can be a program name with args.
13825set dummy ar; ac_word=$2
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827$as_echo_n "checking for $ac_word... " >&6; }
13828if ${ac_cv_path_AR+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830else
13831 case $AR in
13832 [\\/]* | ?:[\\/]*)
13833 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13834 ;;
13835 *)
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $PATH
13838do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13846 fi
13847done
13848 done
13849IFS=$as_save_IFS
13850
13851 ;;
13852esac
13853fi
13854AR=$ac_cv_path_AR
13855if test -n "$AR"; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13857$as_echo "$AR" >&6; }
13858else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860$as_echo "no" >&6; }
13861fi
13862
13863
13864# Extract the first word of "ld", so it can be a program name with args.
13865set dummy ld; ac_word=$2
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867$as_echo_n "checking for $ac_word... " >&6; }
13868if ${ac_cv_path_LD+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870else
13871 case $LD in
13872 [\\/]* | ?:[\\/]*)
13873 ac_cv_path_LD="$LD" # Let the user override the test with a path.
13874 ;;
13875 *)
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888 done
13889IFS=$as_save_IFS
13890
13891 ;;
13892esac
13893fi
13894LD=$ac_cv_path_LD
13895if test -n "$LD"; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13897$as_echo "$LD" >&6; }
13898else
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900$as_echo "no" >&6; }
13901fi
13902
13903
13904# Extract the first word of "ranlib", so it can be a program name with args.
13905set dummy ranlib; ac_word=$2
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907$as_echo_n "checking for $ac_word... " >&6; }
13908if ${ac_cv_path_RANLIB+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910else
13911 case $RANLIB in
13912 [\\/]* | ?:[\\/]*)
13913 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
13914 ;;
13915 *)
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917for as_dir in $PATH
13918do
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13923 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13926 fi
13927done
13928 done
13929IFS=$as_save_IFS
13930
13931 ;;
13932esac
13933fi
13934RANLIB=$ac_cv_path_RANLIB
13935if test -n "$RANLIB"; then
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13937$as_echo "$RANLIB" >&6; }
13938else
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940$as_echo "no" >&6; }
13941fi
13942
13943
13944# Extract the first word of "touch", so it can be a program name with args.
13945set dummy touch; ac_word=$2
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13947$as_echo_n "checking for $ac_word... " >&6; }
13948if ${ac_cv_path_TOUCH+:} false; then :
13949 $as_echo_n "(cached) " >&6
13950else
13951 case $TOUCH in
13952 [\\/]* | ?:[\\/]*)
13953 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
13954 ;;
13955 *)
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13963 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967done
13968 done
13969IFS=$as_save_IFS
13970
13971 ;;
13972esac
13973fi
13974TOUCH=$ac_cv_path_TOUCH
13975if test -n "$TOUCH"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
13977$as_echo "$TOUCH" >&6; }
13978else
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980$as_echo "no" >&6; }
13981fi
13982
13983
13984
13985for ac_prog in 'bison -y' byacc
13986do
13987 # Extract the first word of "$ac_prog", so it can be a program name with args.
13988set dummy $ac_prog; ac_word=$2
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13990$as_echo_n "checking for $ac_word... " >&6; }
13991if ${ac_cv_prog_YACC+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993else
13994 if test -n "$YACC"; then
13995 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13996else
13997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998for as_dir in $PATH
13999do
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14004 ac_cv_prog_YACC="$ac_prog"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14007 fi
14008done
14009 done
14010IFS=$as_save_IFS
14011
14012fi
14013fi
14014YACC=$ac_cv_prog_YACC
14015if test -n "$YACC"; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14017$as_echo "$YACC" >&6; }
14018else
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020$as_echo "no" >&6; }
14021fi
14022
14023
14024 test -n "$YACC" && break
14025done
14026test -n "$YACC" || YACC="yacc"
14027
14028
14029if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
14030 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
14031fi
14032
14033for ac_prog in flex lex
14034do
14035 # Extract the first word of "$ac_prog", so it can be a program name with args.
14036set dummy $ac_prog; ac_word=$2
14037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14038$as_echo_n "checking for $ac_word... " >&6; }
14039if ${ac_cv_prog_LEX+:} false; then :
14040 $as_echo_n "(cached) " >&6
14041else
14042 if test -n "$LEX"; then
14043 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14044else
14045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046for as_dir in $PATH
14047do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052 ac_cv_prog_LEX="$ac_prog"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14055 fi
14056done
14057 done
14058IFS=$as_save_IFS
14059
14060fi
14061fi
14062LEX=$ac_cv_prog_LEX
14063if test -n "$LEX"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14065$as_echo "$LEX" >&6; }
14066else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068$as_echo "no" >&6; }
14069fi
14070
14071
14072 test -n "$LEX" && break
14073done
14074test -n "$LEX" || LEX=":"
14075
14076if test "x$LEX" != "x:"; then
14077 cat >conftest.l <<_ACEOF
14078%%
14079a { ECHO; }
14080b { REJECT; }
14081c { yymore (); }
14082d { yyless (1); }
14083e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
14084 yyless ((input () != 0)); }
14085f { unput (yytext[0]); }
14086. { BEGIN INITIAL; }
14087%%
14088#ifdef YYTEXT_POINTER
14089extern char *yytext;
14090#endif
14091int
14092main (void)
14093{
14094 return ! yylex () + ! yywrap ();
14095}
14096_ACEOF
14097{ { ac_try="$LEX conftest.l"
14098case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14103$as_echo "$ac_try_echo"; } >&5
14104 (eval "$LEX conftest.l") 2>&5
14105 ac_status=$?
14106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107 test $ac_status = 0; }
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14109$as_echo_n "checking lex output file root... " >&6; }
14110if ${ac_cv_prog_lex_root+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112else
14113
14114if test -f lex.yy.c; then
14115 ac_cv_prog_lex_root=lex.yy
14116elif test -f lexyy.c; then
14117 ac_cv_prog_lex_root=lexyy
14118else
14119 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14120fi
14121fi
14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14123$as_echo "$ac_cv_prog_lex_root" >&6; }
14124LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14125
14126if test -z "${LEXLIB+set}"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14128$as_echo_n "checking lex library... " >&6; }
14129if ${ac_cv_lib_lex+:} false; then :
14130 $as_echo_n "(cached) " >&6
14131else
14132
14133 ac_save_LIBS=$LIBS
14134 ac_cv_lib_lex='none needed'
14135 for ac_lib in '' -lfl -ll; do
14136 LIBS="$ac_lib $ac_save_LIBS"
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138/* end confdefs.h. */
14139`cat $LEX_OUTPUT_ROOT.c`
14140_ACEOF
14141if ac_fn_c_try_link "$LINENO"; then :
14142 ac_cv_lib_lex=$ac_lib
14143fi
14144rm -f core conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
14146 test "$ac_cv_lib_lex" != 'none needed' && break
14147 done
14148 LIBS=$ac_save_LIBS
14149
14150fi
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14152$as_echo "$ac_cv_lib_lex" >&6; }
14153 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14154fi
14155
14156
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14158$as_echo_n "checking whether yytext is a pointer... " >&6; }
14159if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
14160 $as_echo_n "(cached) " >&6
14161else
14162 # POSIX says lex can declare yytext either as a pointer or an array; the
14163# default is implementation-dependent. Figure out which it is, since
14164# not all implementations provide the %pointer and %array declarations.
14165ac_cv_prog_lex_yytext_pointer=no
14166ac_save_LIBS=$LIBS
14167LIBS="$LEXLIB $ac_save_LIBS"
14168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169/* end confdefs.h. */
14170
14171 #define YYTEXT_POINTER 1
14172`cat $LEX_OUTPUT_ROOT.c`
14173_ACEOF
14174if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_prog_lex_yytext_pointer=yes
14176fi
14177rm -f core conftest.err conftest.$ac_objext \
14178 conftest$ac_exeext conftest.$ac_ext
14179LIBS=$ac_save_LIBS
14180
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14183$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14184if test $ac_cv_prog_lex_yytext_pointer = yes; then
14185
14186$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14187
14188fi
14189rm -f conftest.l $LEX_OUTPUT_ROOT.c
14190
14191fi
14192
14193if test "$LEX" = ":"; then
14194 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
14195fi
14196
14197# Check whether --enable-fhs-paths was given.
14198if test "${enable_fhs_paths+set}" = set; then :
14199 enableval=$enable_fhs_paths;
14200else
14201 if test "$libexecdir" = '${exec_prefix}/libexec' && \
14202 test "$localstatedir" = '${prefix}/var' && \
14203 test "$libdir" = '${exec_prefix}/lib'; then :
14204 enable_fhs_paths=no
14205else
14206 enable_fhs_paths=yes
14207fi
14208
14209fi
14210
14211if test "x$enable_fhs_paths" = "xyes"; then :
14212 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
14213 rundir=${rundir-'${prefix}/run'}
14214 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
14215 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
14216else
14217 libexecdir='${bindir}'
14218 pkglibexecdir='${libexecdir}'
14219 rundir='${sysconfdir}'
14220 pkgrundir='${rundir}'
14221 localstatedir='${prefix}'
14222 pkglocalstatedir='${sysconfdir}'
14223fi
14224pkglibdir='${libdir}/${PACKAGE_TARNAME}'
14225
14226
14227
14228
14229
14230 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14231 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14232 last_ac_define_dir=`eval echo $pkglocalstatedir`
14233 ac_define_dir=`eval echo $last_ac_define_dir`
14234 ac_define_dir_counter=0
14235 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
14236 last_ac_define_dir="$ac_define_dir"
14237 ac_define_dir=`eval echo $last_ac_define_dir`
14238 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
14239 if test "x$ac_define_dir_counter" = x128; then :
14240 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
14241 break
14242fi
14243 done
14244 PKGLOCALSTATEDIR="$ac_define_dir"
14245
14246
14247cat >>confdefs.h <<_ACEOF
14248#define PKGLOCALSTATEDIR "$ac_define_dir"
14249_ACEOF
14250
14251
14252
14253
14254 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14256 last_ac_define_dir=`eval echo $pkglibexecdir`
14257 ac_define_dir=`eval echo $last_ac_define_dir`
14258 ac_define_dir_counter=0
14259 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
14260 last_ac_define_dir="$ac_define_dir"
14261 ac_define_dir=`eval echo $last_ac_define_dir`
14262 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
14263 if test "x$ac_define_dir_counter" = x128; then :
14264 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
14265 break
14266fi
14267 done
14268 PKGLIBEXECDIR="$ac_define_dir"
14269
14270
14271cat >>confdefs.h <<_ACEOF
14272#define PKGLIBEXECDIR "$ac_define_dir"
14273_ACEOF
14274
14275
14276
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14278$as_echo_n "checking for ANSI C header files... " >&6; }
14279if ${ac_cv_header_stdc+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283/* end confdefs.h. */
14284#include <stdlib.h>
14285#include <stdarg.h>
14286#include <string.h>
14287#include <float.h>
14288
14289int
14290main ()
14291{
14292
14293 ;
14294 return 0;
14295}
14296_ACEOF
14297if ac_fn_c_try_compile "$LINENO"; then :
14298 ac_cv_header_stdc=yes
14299else
14300 ac_cv_header_stdc=no
14301fi
14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303
14304if test $ac_cv_header_stdc = yes; then
14305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h. */
14308#include <string.h>
14309
14310_ACEOF
14311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14312 $EGREP "memchr" >/dev/null 2>&1; then :
14313
14314else
14315 ac_cv_header_stdc=no
14316fi
14317rm -f conftest*
14318
14319fi
14320
14321if test $ac_cv_header_stdc = yes; then
14322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h. */
14325#include <stdlib.h>
14326
14327_ACEOF
14328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329 $EGREP "free" >/dev/null 2>&1; then :
14330
14331else
14332 ac_cv_header_stdc=no
14333fi
14334rm -f conftest*
14335
14336fi
14337
14338if test $ac_cv_header_stdc = yes; then
14339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14340 if test "$cross_compiling" = yes; then :
14341 :
14342else
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h. */
14345#include <ctype.h>
14346#include <stdlib.h>
14347#if ((' ' & 0x0FF) == 0x020)
14348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14350#else
14351# define ISLOWER(c) \
14352 (('a' <= (c) && (c) <= 'i') \
14353 || ('j' <= (c) && (c) <= 'r') \
14354 || ('s' <= (c) && (c) <= 'z'))
14355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14356#endif
14357
14358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14359int
14360main ()
14361{
14362 int i;
14363 for (i = 0; i < 256; i++)
14364 if (XOR (islower (i), ISLOWER (i))
14365 || toupper (i) != TOUPPER (i))
14366 return 2;
14367 return 0;
14368}
14369_ACEOF
14370if ac_fn_c_try_run "$LINENO"; then :
14371
14372else
14373 ac_cv_header_stdc=no
14374fi
14375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14376 conftest.$ac_objext conftest.beam conftest.$ac_ext
14377fi
14378
14379fi
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14382$as_echo "$ac_cv_header_stdc" >&6; }
14383if test $ac_cv_header_stdc = yes; then
14384
14385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14386
14387fi
14388
14389
14390for 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
14391do :
14392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14395 cat >>confdefs.h <<_ACEOF
14396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14397_ACEOF
14398
14399fi
14400
14401done
14402
14403
14404
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14406$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14407if ${ac_cv_c_const+:} false; then :
14408 $as_echo_n "(cached) " >&6
14409else
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h. */
14412
14413int
14414main ()
14415{
14416
14417#ifndef __cplusplus
14418 /* Ultrix mips cc rejects this sort of thing. */
14419 typedef int charset[2];
14420 const charset cs = { 0, 0 };
14421 /* SunOS 4.1.1 cc rejects this. */
14422 char const *const *pcpcc;
14423 char **ppc;
14424 /* NEC SVR4.0.2 mips cc rejects this. */
14425 struct point {int x, y;};
14426 static struct point const zero = {0,0};
14427 /* AIX XL C 1.02.0.0 rejects this.
14428 It does not let you subtract one const X* pointer from another in
14429 an arm of an if-expression whose if-part is not a constant
14430 expression */
14431 const char *g = "string";
14432 pcpcc = &g + (g ? g-g : 0);
14433 /* HPUX 7.0 cc rejects these. */
14434 ++pcpcc;
14435 ppc = (char**) pcpcc;
14436 pcpcc = (char const *const *) ppc;
14437 { /* SCO 3.2v4 cc rejects this sort of thing. */
14438 char tx;
14439 char *t = &tx;
14440 char const *s = 0 ? (char *) 0 : (char const *) 0;
14441
14442 *t++ = 0;
14443 if (s) return 0;
14444 }
14445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14446 int x[] = {25, 17};
14447 const int *foo = &x[0];
14448 ++foo;
14449 }
14450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14451 typedef const int *iptr;
14452 iptr p = 0;
14453 ++p;
14454 }
14455 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14457 struct s { int j; const int *ap[3]; } bx;
14458 struct s *b = &bx; b->j = 5;
14459 }
14460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14461 const int foo = 10;
14462 if (!foo) return 0;
14463 }
14464 return !cs[0] && !zero.x;
14465#endif
14466
14467 ;
14468 return 0;
14469}
14470_ACEOF
14471if ac_fn_c_try_compile "$LINENO"; then :
14472 ac_cv_c_const=yes
14473else
14474 ac_cv_c_const=no
14475fi
14476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14477fi
14478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14479$as_echo "$ac_cv_c_const" >&6; }
14480if test $ac_cv_c_const = no; then
14481
14482$as_echo "#define const /**/" >>confdefs.h
14483
14484fi
14485
14486if test "$ac_cv_header_machine_endian_h" = "no" ; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14488$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14489if ${ac_cv_c_bigendian+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491else
14492 ac_cv_c_bigendian=unknown
14493 # See if we're dealing with a universal compiler.
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h. */
14496#ifndef __APPLE_CC__
14497 not a universal capable compiler
14498 #endif
14499 typedef int dummy;
14500
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"; then :
14503
14504 # Check for potential -arch flags. It is not universal unless
14505 # there are at least two -arch flags with different values.
14506 ac_arch=
14507 ac_prev=
14508 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14509 if test -n "$ac_prev"; then
14510 case $ac_word in
14511 i?86 | x86_64 | ppc | ppc64)
14512 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14513 ac_arch=$ac_word
14514 else
14515 ac_cv_c_bigendian=universal
14516 break
14517 fi
14518 ;;
14519 esac
14520 ac_prev=
14521 elif test "x$ac_word" = "x-arch"; then
14522 ac_prev=arch
14523 fi
14524 done
14525fi
14526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 if test $ac_cv_c_bigendian = unknown; then
14528 # See if sys/param.h defines the BYTE_ORDER macro.
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h. */
14531#include <sys/types.h>
14532 #include <sys/param.h>
14533
14534int
14535main ()
14536{
14537#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14538 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14539 && LITTLE_ENDIAN)
14540 bogus endian macros
14541 #endif
14542
14543 ;
14544 return 0;
14545}
14546_ACEOF
14547if ac_fn_c_try_compile "$LINENO"; then :
14548 # It does; now see whether it defined to BIG_ENDIAN or not.
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h. */
14551#include <sys/types.h>
14552 #include <sys/param.h>
14553
14554int
14555main ()
14556{
14557#if BYTE_ORDER != BIG_ENDIAN
14558 not big endian
14559 #endif
14560
14561 ;
14562 return 0;
14563}
14564_ACEOF
14565if ac_fn_c_try_compile "$LINENO"; then :
14566 ac_cv_c_bigendian=yes
14567else
14568 ac_cv_c_bigendian=no
14569fi
14570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571fi
14572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 if test $ac_cv_c_bigendian = unknown; then
14575 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577/* end confdefs.h. */
14578#include <limits.h>
14579
14580int
14581main ()
14582{
14583#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14584 bogus endian macros
14585 #endif
14586
14587 ;
14588 return 0;
14589}
14590_ACEOF
14591if ac_fn_c_try_compile "$LINENO"; then :
14592 # It does; now see whether it defined to _BIG_ENDIAN or not.
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594/* end confdefs.h. */
14595#include <limits.h>
14596
14597int
14598main ()
14599{
14600#ifndef _BIG_ENDIAN
14601 not big endian
14602 #endif
14603
14604 ;
14605 return 0;
14606}
14607_ACEOF
14608if ac_fn_c_try_compile "$LINENO"; then :
14609 ac_cv_c_bigendian=yes
14610else
14611 ac_cv_c_bigendian=no
14612fi
14613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614fi
14615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 fi
14617 if test $ac_cv_c_bigendian = unknown; then
14618 # Compile a test program.
14619 if test "$cross_compiling" = yes; then :
14620 # Try to guess by grepping values from an object file.
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h. */
14623short int ascii_mm[] =
14624 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14625 short int ascii_ii[] =
14626 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14627 int use_ascii (int i) {
14628 return ascii_mm[i] + ascii_ii[i];
14629 }
14630 short int ebcdic_ii[] =
14631 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14632 short int ebcdic_mm[] =
14633 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14634 int use_ebcdic (int i) {
14635 return ebcdic_mm[i] + ebcdic_ii[i];
14636 }
14637 extern int foo;
14638
14639int
14640main ()
14641{
14642return use_ascii (foo) == use_ebcdic (foo);
14643 ;
14644 return 0;
14645}
14646_ACEOF
14647if ac_fn_c_try_compile "$LINENO"; then :
14648 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14649 ac_cv_c_bigendian=yes
14650 fi
14651 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14652 if test "$ac_cv_c_bigendian" = unknown; then
14653 ac_cv_c_bigendian=no
14654 else
14655 # finding both strings is unlikely to happen, but who knows?
14656 ac_cv_c_bigendian=unknown
14657 fi
14658 fi
14659fi
14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661else
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663/* end confdefs.h. */
14664$ac_includes_default
14665int
14666main ()
14667{
14668
14669 /* Are we little or big endian? From Harbison&Steele. */
14670 union
14671 {
14672 long int l;
14673 char c[sizeof (long int)];
14674 } u;
14675 u.l = 1;
14676 return u.c[sizeof (long int) - 1] == 1;
14677
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682if ac_fn_c_try_run "$LINENO"; then :
14683 ac_cv_c_bigendian=no
14684else
14685 ac_cv_c_bigendian=yes
14686fi
14687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14688 conftest.$ac_objext conftest.beam conftest.$ac_ext
14689fi
14690
14691 fi
14692fi
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14694$as_echo "$ac_cv_c_bigendian" >&6; }
14695 case $ac_cv_c_bigendian in #(
14696 yes)
14697 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14698;; #(
14699 no)
14700 ;; #(
14701 universal)
14702
14703$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14704
14705 ;; #(
14706 *)
14707 as_fn_error $? "unknown endianness
14708 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14709 esac
14710
14711fi
14712ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14713if test "x$ac_cv_type_pid_t" = xyes; then :
14714
14715else
14716
14717cat >>confdefs.h <<_ACEOF
14718#define pid_t int
14719_ACEOF
14720
14721fi
14722
14723ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14724if test "x$ac_cv_type_size_t" = xyes; then :
14725
14726else
14727
14728cat >>confdefs.h <<_ACEOF
14729#define size_t unsigned int
14730_ACEOF
14731
14732fi
14733
14734# The cast to long int works around a bug in the HP C Compiler
14735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14737# This bug is HP SR number 8606223364.
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14739$as_echo_n "checking size of short... " >&6; }
14740if ${ac_cv_sizeof_short+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742else
14743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14744
14745else
14746 if test "$ac_cv_type_short" = yes; then
14747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14749as_fn_error 77 "cannot compute sizeof (short)
14750See \`config.log' for more details" "$LINENO" 5; }
14751 else
14752 ac_cv_sizeof_short=0
14753 fi
14754fi
14755
14756fi
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14758$as_echo "$ac_cv_sizeof_short" >&6; }
14759
14760
14761
14762cat >>confdefs.h <<_ACEOF
14763#define SIZEOF_SHORT $ac_cv_sizeof_short
14764_ACEOF
14765
14766
14767# The cast to long int works around a bug in the HP C Compiler
14768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14770# This bug is HP SR number 8606223364.
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14772$as_echo_n "checking size of int... " >&6; }
14773if ${ac_cv_sizeof_int+:} false; then :
14774 $as_echo_n "(cached) " >&6
14775else
14776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14777
14778else
14779 if test "$ac_cv_type_int" = yes; then
14780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14782as_fn_error 77 "cannot compute sizeof (int)
14783See \`config.log' for more details" "$LINENO" 5; }
14784 else
14785 ac_cv_sizeof_int=0
14786 fi
14787fi
14788
14789fi
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14791$as_echo "$ac_cv_sizeof_int" >&6; }
14792
14793
14794
14795cat >>confdefs.h <<_ACEOF
14796#define SIZEOF_INT $ac_cv_sizeof_int
14797_ACEOF
14798
14799
14800# The cast to long int works around a bug in the HP C Compiler
14801# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14802# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14803# This bug is HP SR number 8606223364.
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14805$as_echo_n "checking size of long... " >&6; }
14806if ${ac_cv_sizeof_long+:} false; then :
14807 $as_echo_n "(cached) " >&6
14808else
14809 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14810
14811else
14812 if test "$ac_cv_type_long" = yes; then
14813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14815as_fn_error 77 "cannot compute sizeof (long)
14816See \`config.log' for more details" "$LINENO" 5; }
14817 else
14818 ac_cv_sizeof_long=0
14819 fi
14820fi
14821
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14824$as_echo "$ac_cv_sizeof_long" >&6; }
14825
14826
14827
14828cat >>confdefs.h <<_ACEOF
14829#define SIZEOF_LONG $ac_cv_sizeof_long
14830_ACEOF
14831
14832
14833# The cast to long int works around a bug in the HP C Compiler
14834# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14835# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14836# This bug is HP SR number 8606223364.
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14838$as_echo_n "checking size of long long... " >&6; }
14839if ${ac_cv_sizeof_long_long+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841else
14842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14843
14844else
14845 if test "$ac_cv_type_long_long" = yes; then
14846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14848as_fn_error 77 "cannot compute sizeof (long long)
14849See \`config.log' for more details" "$LINENO" 5; }
14850 else
14851 ac_cv_sizeof_long_long=0
14852 fi
14853fi
14854
14855fi
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14857$as_echo "$ac_cv_sizeof_long_long" >&6; }
14858
14859
14860
14861cat >>confdefs.h <<_ACEOF
14862#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14863_ACEOF
14864
14865
14866
14867
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14869$as_echo_n "checking for library containing socket... " >&6; }
14870if ${ac_cv_search_socket+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872else
14873 ac_func_search_save_LIBS=$LIBS
14874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h. */
14876
14877/* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880#ifdef __cplusplus
14881extern "C"
14882#endif
14883char socket ();
14884int
14885main ()
14886{
14887return socket ();
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892for ac_lib in '' socket; do
14893 if test -z "$ac_lib"; then
14894 ac_res="none required"
14895 else
14896 ac_res=-l$ac_lib
14897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14898 fi
14899 if ac_fn_c_try_link "$LINENO"; then :
14900 ac_cv_search_socket=$ac_res
14901fi
14902rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext
14904 if ${ac_cv_search_socket+:} false; then :
14905 break
14906fi
14907done
14908if ${ac_cv_search_socket+:} false; then :
14909
14910else
14911 ac_cv_search_socket=no
14912fi
14913rm conftest.$ac_ext
14914LIBS=$ac_func_search_save_LIBS
14915fi
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14917$as_echo "$ac_cv_search_socket" >&6; }
14918ac_res=$ac_cv_search_socket
14919if test "$ac_res" != no; then :
14920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14921
14922else
14923 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
14924fi
14925
14926
14927if test x"$SUN" = xyes; then
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
14929$as_echo_n "checking for library containing inet_ntoa... " >&6; }
14930if ${ac_cv_search_inet_ntoa+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932else
14933 ac_func_search_save_LIBS=$LIBS
14934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935/* end confdefs.h. */
14936
14937/* Override any GCC internal prototype to avoid an error.
14938 Use char because int might match the return type of a GCC
14939 builtin and then its argument prototype would still apply. */
14940#ifdef __cplusplus
14941extern "C"
14942#endif
14943char inet_ntoa ();
14944int
14945main ()
14946{
14947return inet_ntoa ();
14948 ;
14949 return 0;
14950}
14951_ACEOF
14952for ac_lib in '' nsl; do
14953 if test -z "$ac_lib"; then
14954 ac_res="none required"
14955 else
14956 ac_res=-l$ac_lib
14957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14958 fi
14959 if ac_fn_c_try_link "$LINENO"; then :
14960 ac_cv_search_inet_ntoa=$ac_res
14961fi
14962rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext
14964 if ${ac_cv_search_inet_ntoa+:} false; then :
14965 break
14966fi
14967done
14968if ${ac_cv_search_inet_ntoa+:} false; then :
14969
14970else
14971 ac_cv_search_inet_ntoa=no
14972fi
14973rm conftest.$ac_ext
14974LIBS=$ac_func_search_save_LIBS
14975fi
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
14977$as_echo "$ac_cv_search_inet_ntoa" >&6; }
14978ac_res=$ac_cv_search_inet_ntoa
14979if test "$ac_res" != no; then :
14980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14981
14982else
14983 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
14984fi
14985
14986fi
14987
14988ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
14989#include <sys/socket.h>
14990"
14991if test "x$ac_cv_type_socklen_t" = xyes; then :
14992
14993else
14994
14995$as_echo "#define socklen_t unsigned int" >>confdefs.h
14996
14997fi
14998
14999
15000# Check whether --enable-ipv6 was given.
15001if test "${enable_ipv6+set}" = set; then :
15002 enableval=$enable_ipv6; ipv6=$enableval
15003else
15004 ipv6=no
15005fi
15006
15007
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15009$as_echo_n "checking for library containing crypt... " >&6; }
15010if ${ac_cv_search_crypt+:} false; then :
15011 $as_echo_n "(cached) " >&6
15012else
15013 ac_func_search_save_LIBS=$LIBS
15014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h. */
15016
15017/* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
15020#ifdef __cplusplus
15021extern "C"
15022#endif
15023char crypt ();
15024int
15025main ()
15026{
15027return crypt ();
15028 ;
15029 return 0;
15030}
15031_ACEOF
15032for ac_lib in '' crypt descrypt; do
15033 if test -z "$ac_lib"; then
15034 ac_res="none required"
15035 else
15036 ac_res=-l$ac_lib
15037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15038 fi
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 ac_cv_search_crypt=$ac_res
15041fi
15042rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext
15044 if ${ac_cv_search_crypt+:} false; then :
15045 break
15046fi
15047done
15048if ${ac_cv_search_crypt+:} false; then :
15049
15050else
15051 ac_cv_search_crypt=no
15052fi
15053rm conftest.$ac_ext
15054LIBS=$ac_func_search_save_LIBS
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15057$as_echo "$ac_cv_search_crypt" >&6; }
15058ac_res=$ac_cv_search_crypt
15059if test "$ac_res" != no; then :
15060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15061
15062fi
15063
15064
15065CRYPT_LIB=$ac_cv_search_crypt
15066
15067if test "$CRYPT_LIB" = "none required"; then
15068 unset CRYPT_LIB
15069elif test "$CRYPT_LIB" = no; then
15070 unset CRYPT_LIB
15071fi
15072
15073
15074
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15076$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15077if ${ac_cv_c_bigendian+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079else
15080 ac_cv_c_bigendian=unknown
15081 # See if we're dealing with a universal compiler.
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h. */
15084#ifndef __APPLE_CC__
15085 not a universal capable compiler
15086 #endif
15087 typedef int dummy;
15088
15089_ACEOF
15090if ac_fn_c_try_compile "$LINENO"; then :
15091
15092 # Check for potential -arch flags. It is not universal unless
15093 # there are at least two -arch flags with different values.
15094 ac_arch=
15095 ac_prev=
15096 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15097 if test -n "$ac_prev"; then
15098 case $ac_word in
15099 i?86 | x86_64 | ppc | ppc64)
15100 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15101 ac_arch=$ac_word
15102 else
15103 ac_cv_c_bigendian=universal
15104 break
15105 fi
15106 ;;
15107 esac
15108 ac_prev=
15109 elif test "x$ac_word" = "x-arch"; then
15110 ac_prev=arch
15111 fi
15112 done
15113fi
15114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15115 if test $ac_cv_c_bigendian = unknown; then
15116 # See if sys/param.h defines the BYTE_ORDER macro.
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118/* end confdefs.h. */
15119#include <sys/types.h>
15120 #include <sys/param.h>
15121
15122int
15123main ()
15124{
15125#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15126 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15127 && LITTLE_ENDIAN)
15128 bogus endian macros
15129 #endif
15130
15131 ;
15132 return 0;
15133}
15134_ACEOF
15135if ac_fn_c_try_compile "$LINENO"; then :
15136 # It does; now see whether it defined to BIG_ENDIAN or not.
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h. */
15139#include <sys/types.h>
15140 #include <sys/param.h>
15141
15142int
15143main ()
15144{
15145#if BYTE_ORDER != BIG_ENDIAN
15146 not big endian
15147 #endif
15148
15149 ;
15150 return 0;
15151}
15152_ACEOF
15153if ac_fn_c_try_compile "$LINENO"; then :
15154 ac_cv_c_bigendian=yes
15155else
15156 ac_cv_c_bigendian=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 fi
15162 if test $ac_cv_c_bigendian = unknown; then
15163 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165/* end confdefs.h. */
15166#include <limits.h>
15167
15168int
15169main ()
15170{
15171#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15172 bogus endian macros
15173 #endif
15174
15175 ;
15176 return 0;
15177}
15178_ACEOF
15179if ac_fn_c_try_compile "$LINENO"; then :
15180 # It does; now see whether it defined to _BIG_ENDIAN or not.
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h. */
15183#include <limits.h>
15184
15185int
15186main ()
15187{
15188#ifndef _BIG_ENDIAN
15189 not big endian
15190 #endif
15191
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196if ac_fn_c_try_compile "$LINENO"; then :
15197 ac_cv_c_bigendian=yes
15198else
15199 ac_cv_c_bigendian=no
15200fi
15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202fi
15203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15204 fi
15205 if test $ac_cv_c_bigendian = unknown; then
15206 # Compile a test program.
15207 if test "$cross_compiling" = yes; then :
15208 # Try to guess by grepping values from an object file.
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210/* end confdefs.h. */
15211short int ascii_mm[] =
15212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15213 short int ascii_ii[] =
15214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15215 int use_ascii (int i) {
15216 return ascii_mm[i] + ascii_ii[i];
15217 }
15218 short int ebcdic_ii[] =
15219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15220 short int ebcdic_mm[] =
15221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15222 int use_ebcdic (int i) {
15223 return ebcdic_mm[i] + ebcdic_ii[i];
15224 }
15225 extern int foo;
15226
15227int
15228main ()
15229{
15230return use_ascii (foo) == use_ebcdic (foo);
15231 ;
15232 return 0;
15233}
15234_ACEOF
15235if ac_fn_c_try_compile "$LINENO"; then :
15236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15237 ac_cv_c_bigendian=yes
15238 fi
15239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15240 if test "$ac_cv_c_bigendian" = unknown; then
15241 ac_cv_c_bigendian=no
15242 else
15243 # finding both strings is unlikely to happen, but who knows?
15244 ac_cv_c_bigendian=unknown
15245 fi
15246 fi
15247fi
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249else
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h. */
15252$ac_includes_default
15253int
15254main ()
15255{
15256
15257 /* Are we little or big endian? From Harbison&Steele. */
15258 union
15259 {
15260 long int l;
15261 char c[sizeof (long int)];
15262 } u;
15263 u.l = 1;
15264 return u.c[sizeof (long int) - 1] == 1;
15265
15266 ;
15267 return 0;
15268}
15269_ACEOF
15270if ac_fn_c_try_run "$LINENO"; then :
15271 ac_cv_c_bigendian=no
15272else
15273 ac_cv_c_bigendian=yes
15274fi
15275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15276 conftest.$ac_objext conftest.beam conftest.$ac_ext
15277fi
15278
15279 fi
15280fi
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15282$as_echo "$ac_cv_c_bigendian" >&6; }
15283 case $ac_cv_c_bigendian in #(
15284 yes)
15285 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15286;; #(
15287 no)
15288 ;; #(
15289 universal)
15290
15291$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15292
15293 ;; #(
15294 *)
15295 as_fn_error $? "unknown endianness
15296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15297 esac
15298
15299
15300ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
15301if test "x$ac_cv_header_stdarg_h" = xyes; then :
15302
15303else
15304 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
15305fi
15306
15307
15308for ac_func in strlcat strlcpy
15309do :
15310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15312if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15313 cat >>confdefs.h <<_ACEOF
15314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15315_ACEOF
15316
15317fi
15318done
15319
15320
15321ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
15322if test "x$ac_cv_type_u_int32_t" = xyes; then :
15323
15324else
15325
15326 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15327if test "x$ac_cv_type_uint32_t" = xyes; then :
15328
15329
15330$as_echo "#define u_int32_t uint32_t" >>confdefs.h
15331
15332
15333else
15334
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
15336$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
15337
15338$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
15339
15340
15341fi
15342
15343
15344fi
15345
15346
15347ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15348if test "x$ac_cv_type_u_int16_t" = xyes; then :
15349
15350else
15351
15352 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15353if test "x$ac_cv_type_uint16_t" = xyes; then :
15354
15355
15356$as_echo "#define u_int16_t uint16_t" >>confdefs.h
15357
15358
15359else
15360
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
15362$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
15363
15364$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
15365
15366
15367fi
15368
15369
15370fi
15371
15372
15373ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
15374#include <netinet/in.h>
15375"
15376if test "x$ac_cv_type_in_port_t" = xyes; then :
15377
15378else
15379
15380$as_echo "#define in_port_t u_int16_t" >>confdefs.h
15381
15382fi
15383
15384
15385ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
15386#include <sys/socket.h>
15387"
15388if test "x$ac_cv_type_sa_family_t" = xyes; then :
15389
15390else
15391
15392$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
15393
15394fi
15395
15396
15397ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15398if test "x$ac_cv_type_uintptr_t" = xyes; then :
15399
15400cat >>confdefs.h <<_ACEOF
15401#define HAVE_UINTPTR_T 1
15402_ACEOF
15403
15404
15405fi
15406
15407
15408for ac_func in snprintf vsnprintf socketpair mmap gettimeofday strdup strndup
15409do :
15410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15412if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15413 cat >>confdefs.h <<_ACEOF
15414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15415_ACEOF
15416
15417fi
15418done
15419
15420
15421# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15422# for constant arguments. Useless!
15423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15424$as_echo_n "checking for working alloca.h... " >&6; }
15425if ${ac_cv_working_alloca_h+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427else
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h. */
15430#include <alloca.h>
15431int
15432main ()
15433{
15434char *p = (char *) alloca (2 * sizeof (int));
15435 if (p) return 0;
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440if ac_fn_c_try_link "$LINENO"; then :
15441 ac_cv_working_alloca_h=yes
15442else
15443 ac_cv_working_alloca_h=no
15444fi
15445rm -f core conftest.err conftest.$ac_objext \
15446 conftest$ac_exeext conftest.$ac_ext
15447fi
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15449$as_echo "$ac_cv_working_alloca_h" >&6; }
15450if test $ac_cv_working_alloca_h = yes; then
15451
15452$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15453
15454fi
15455
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15457$as_echo_n "checking for alloca... " >&6; }
15458if ${ac_cv_func_alloca_works+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460else
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462/* end confdefs.h. */
15463#ifdef __GNUC__
15464# define alloca __builtin_alloca
15465#else
15466# ifdef _MSC_VER
15467# include <malloc.h>
15468# define alloca _alloca
15469# else
15470# ifdef HAVE_ALLOCA_H
15471# include <alloca.h>
15472# else
15473# ifdef _AIX
15474 #pragma alloca
15475# else
15476# ifndef alloca /* predefined by HP cc +Olibcalls */
15477void *alloca (size_t);
15478# endif
15479# endif
15480# endif
15481# endif
15482#endif
15483
15484int
15485main ()
15486{
15487char *p = (char *) alloca (1);
15488 if (p) return 0;
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493if ac_fn_c_try_link "$LINENO"; then :
15494 ac_cv_func_alloca_works=yes
15495else
15496 ac_cv_func_alloca_works=no
15497fi
15498rm -f core conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500fi
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15502$as_echo "$ac_cv_func_alloca_works" >&6; }
15503
15504if test $ac_cv_func_alloca_works = yes; then
15505
15506$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15507
15508else
15509 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15510# that cause trouble. Some versions do not even contain alloca or
15511# contain a buggy version. If you still want to use their alloca,
15512# use ar to extract alloca.o from them instead of compiling alloca.c.
15513
15514ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15515
15516$as_echo "#define C_ALLOCA 1" >>confdefs.h
15517
15518
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15520$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15521if ${ac_cv_os_cray+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523else
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525/* end confdefs.h. */
15526#if defined CRAY && ! defined CRAY2
15527webecray
15528#else
15529wenotbecray
15530#endif
15531
15532_ACEOF
15533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15534 $EGREP "webecray" >/dev/null 2>&1; then :
15535 ac_cv_os_cray=yes
15536else
15537 ac_cv_os_cray=no
15538fi
15539rm -f conftest*
15540
15541fi
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15543$as_echo "$ac_cv_os_cray" >&6; }
15544if test $ac_cv_os_cray = yes; then
15545 for ac_func in _getb67 GETB67 getb67; do
15546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15547ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15548if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15549
15550cat >>confdefs.h <<_ACEOF
15551#define CRAY_STACKSEG_END $ac_func
15552_ACEOF
15553
15554 break
15555fi
15556
15557 done
15558fi
15559
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15561$as_echo_n "checking stack direction for C alloca... " >&6; }
15562if ${ac_cv_c_stack_direction+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564else
15565 if test "$cross_compiling" = yes; then :
15566 ac_cv_c_stack_direction=0
15567else
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h. */
15570$ac_includes_default
15571int
15572find_stack_direction (int *addr, int depth)
15573{
15574 int dir, dummy = 0;
15575 if (! addr)
15576 addr = &dummy;
15577 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15578 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15579 return dir + dummy;
15580}
15581
15582int
15583main (int argc, char **argv)
15584{
15585 return find_stack_direction (0, argc + !argv + 20) < 0;
15586}
15587_ACEOF
15588if ac_fn_c_try_run "$LINENO"; then :
15589 ac_cv_c_stack_direction=1
15590else
15591 ac_cv_c_stack_direction=-1
15592fi
15593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15594 conftest.$ac_objext conftest.beam conftest.$ac_ext
15595fi
15596
15597fi
15598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15599$as_echo "$ac_cv_c_stack_direction" >&6; }
15600cat >>confdefs.h <<_ACEOF
15601#define STACK_DIRECTION $ac_cv_c_stack_direction
15602_ACEOF
15603
15604
15605fi
15606
15607
15608
15609ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15610if test "x$ac_cv_func_nanosleep" = xyes; then :
15611
15612else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15614$as_echo_n "checking for nanosleep in -lrt... " >&6; }
15615if ${ac_cv_lib_rt_nanosleep+:} false; then :
15616 $as_echo_n "(cached) " >&6
15617else
15618 ac_check_lib_save_LIBS=$LIBS
15619LIBS="-lrt $LIBS"
15620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h. */
15622
15623/* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15626#ifdef __cplusplus
15627extern "C"
15628#endif
15629char nanosleep ();
15630int
15631main ()
15632{
15633return nanosleep ();
15634 ;
15635 return 0;
15636}
15637_ACEOF
15638if ac_fn_c_try_link "$LINENO"; then :
15639 ac_cv_lib_rt_nanosleep=yes
15640else
15641 ac_cv_lib_rt_nanosleep=no
15642fi
15643rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15645LIBS=$ac_check_lib_save_LIBS
15646fi
15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15648$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15649if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
15650 LIBS="${LIBS} -lrt"
15651else
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
15653$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
15654if ${ac_cv_lib_posix4_nanosleep+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656else
15657 ac_check_lib_save_LIBS=$LIBS
15658LIBS="-lposix4 $LIBS"
15659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h. */
15661
15662/* Override any GCC internal prototype to avoid an error.
15663 Use char because int might match the return type of a GCC
15664 builtin and then its argument prototype would still apply. */
15665#ifdef __cplusplus
15666extern "C"
15667#endif
15668char nanosleep ();
15669int
15670main ()
15671{
15672return nanosleep ();
15673 ;
15674 return 0;
15675}
15676_ACEOF
15677if ac_fn_c_try_link "$LINENO"; then :
15678 ac_cv_lib_posix4_nanosleep=yes
15679else
15680 ac_cv_lib_posix4_nanosleep=no
15681fi
15682rm -f core conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684LIBS=$ac_check_lib_save_LIBS
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
15687$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
15688if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
15689 LIBS="${LIBS} -lposix4"
15690
15691fi
15692
15693fi
15694
15695fi
15696
15697if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
15698then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
15700$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
15701else
15702
15703$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15704
15705fi
15706
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15708$as_echo_n "checking for OpenSSL... " >&6; }
15709# Check whether --enable-openssl was given.
15710if test "${enable_openssl+set}" = set; then :
15711 enableval=$enable_openssl; cf_enable_openssl=$enableval
15712else
15713 cf_enable_openssl="auto"
15714fi
15715
15716
15717if test "$cf_enable_openssl" != "no" ; then
15718 cf_openssl_basedir=""
15719 if test "$cf_enable_openssl" != "auto" &&
15720 test "$cf_enable_openssl" != "yes" ; then
15721 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
15722 else
15723 for dirs in /usr/local/ssl /usr/pkg /usr/local \
15724 /usr/local/openssl ; do
15725 if test -f "${dirs}/include/openssl/opensslv.h" ; then
15726 cf_openssl_basedir="${dirs}"
15727 break
15728 fi
15729 done
15730 unset dirs
15731 fi
15732 if test ! -z "$cf_openssl_basedir"; then
15733 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
15734 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
15735 SSL_LIBS="-L${cf_openssl_basedir}/lib"
15736 else
15737 cf_openssl_basedir=""
15738 fi
15739 else
15740 if test -f "/usr/include/openssl/opensslv.h" ; then
15741 cf_openssl_basedir="/usr"
15742 fi
15743 fi
15744
15745 if test ! -z "$cf_openssl_basedir"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15747$as_echo "$cf_openssl_basedir" >&6; }
15748 cf_enable_openssl="yes"
15749 else
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
15751$as_echo "not found. Specify a correct path?" >&6; }
15752 cf_enable_openssl="no"
15753 fi
15754 unset cf_openssl_basedir
15755else
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15757$as_echo "disabled" >&6; }
15758fi
15759
15760save_CPPFLAGS="$CPPFLAGS"
15761CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
15762save_LIBS="$LIBS"
15763LIBS="$LIBS $SSL_LIBS"
15764if test "$cf_enable_openssl" != no; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
15766$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
15767 if test "$cross_compiling" = yes; then :
15768 cf_openssl_version_ok=no
15769else
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h. */
15772#include <openssl/opensslv.h>
15773 #include <stdlib.h>
15774int
15775main ()
15776{
15777if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
15778 exit(0); else exit(1);
15779 ;
15780 return 0;
15781}
15782_ACEOF
15783if ac_fn_c_try_run "$LINENO"; then :
15784 cf_openssl_version_ok=yes
15785else
15786 cf_openssl_version_ok=no
15787fi
15788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15789 conftest.$ac_objext conftest.beam conftest.$ac_ext
15790fi
15791
15792
15793 if test "$cf_openssl_version_ok" = yes; then
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15795$as_echo "found" >&6; }
15796
15797 ENCSPEED=encspeed
15798
15799
15800 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15802$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15803if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805else
15806 ac_check_lib_save_LIBS=$LIBS
15807LIBS="-lcrypto $LIBS"
15808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809/* end confdefs.h. */
15810
15811/* Override any GCC internal prototype to avoid an error.
15812 Use char because int might match the return type of a GCC
15813 builtin and then its argument prototype would still apply. */
15814#ifdef __cplusplus
15815extern "C"
15816#endif
15817char RSA_free ();
15818int
15819main ()
15820{
15821return RSA_free ();
15822 ;
15823 return 0;
15824}
15825_ACEOF
15826if ac_fn_c_try_link "$LINENO"; then :
15827 ac_cv_lib_crypto_RSA_free=yes
15828else
15829 ac_cv_lib_crypto_RSA_free=no
15830fi
15831rm -f core conftest.err conftest.$ac_objext \
15832 conftest$ac_exeext conftest.$ac_ext
15833LIBS=$ac_check_lib_save_LIBS
15834fi
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15836$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15837if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15838 cat >>confdefs.h <<_ACEOF
15839#define HAVE_LIBCRYPTO 1
15840_ACEOF
15841
15842 LIBS="-lcrypto $LIBS"
15843
15844fi
15845
15846 SSL_LIBS="$SSL_LIBS -lcrypto"
15847 SSL_SRCS_ENABLE='$(SSL_SRCS)'
15848 else
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
15850$as_echo "no - OpenSSL support disabled" >&6; }
15851 fi
15852fi
15853
15854CPPFLAGS="$save_CPPFLAGS"
15855LIBS="$save_LIBS"
15856
15857
15858
15859
15860
15861# Check whether --with-zlib-path was given.
15862if test "${with_zlib_path+set}" = set; then :
15863 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
15864fi
15865
15866
15867# Check whether --enable-zlib was given.
15868if test "${enable_zlib+set}" = set; then :
15869 enableval=$enable_zlib; zlib=$enableval
15870else
15871 zlib=yes
15872fi
15873
15874
15875if test "$zlib" = yes; then
15876
15877ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15878if test "x$ac_cv_header_zlib_h" = xyes; then :
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
15881$as_echo_n "checking for zlibVersion in -lz... " >&6; }
15882if ${ac_cv_lib_z_zlibVersion+:} false; then :
15883 $as_echo_n "(cached) " >&6
15884else
15885 ac_check_lib_save_LIBS=$LIBS
15886LIBS="-lz $LIBS"
15887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888/* end confdefs.h. */
15889
15890/* Override any GCC internal prototype to avoid an error.
15891 Use char because int might match the return type of a GCC
15892 builtin and then its argument prototype would still apply. */
15893#ifdef __cplusplus
15894extern "C"
15895#endif
15896char zlibVersion ();
15897int
15898main ()
15899{
15900return zlibVersion ();
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905if ac_fn_c_try_link "$LINENO"; then :
15906 ac_cv_lib_z_zlibVersion=yes
15907else
15908 ac_cv_lib_z_zlibVersion=no
15909fi
15910rm -f core conftest.err conftest.$ac_objext \
15911 conftest$ac_exeext conftest.$ac_ext
15912LIBS=$ac_check_lib_save_LIBS
15913fi
15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
15915$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
15916if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
15917
15918 ZLIB_LD=-lz
15919
15920
15921$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
15922
15923
15924else
15925 zlib=no
15926fi
15927
15928
15929else
15930 zlib=no
15931fi
15932
15933
15934
15935fi
15936
15937
15938# Check whether --with-shared-sqlite was given.
15939if test "${with_shared_sqlite+set}" = set; then :
15940 withval=$with_shared_sqlite; shared_sqlite=$withval
15941else
15942 shared_sqlite=no
15943fi
15944
15945
15946if test "$shared_sqlite" = yes; then
15947
15948
15949
15950
15951
15952
15953
15954if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15955 if test -n "$ac_tool_prefix"; then
15956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15957set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15959$as_echo_n "checking for $ac_word... " >&6; }
15960if ${ac_cv_path_PKG_CONFIG+:} false; then :
15961 $as_echo_n "(cached) " >&6
15962else
15963 case $PKG_CONFIG in
15964 [\\/]* | ?:[\\/]*)
15965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15966 ;;
15967 *)
15968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15969for as_dir in $PATH
15970do
15971 IFS=$as_save_IFS
15972 test -z "$as_dir" && as_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15975 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15977 break 2
15978 fi
15979done
15980 done
15981IFS=$as_save_IFS
15982
15983 ;;
15984esac
15985fi
15986PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15987if test -n "$PKG_CONFIG"; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15989$as_echo "$PKG_CONFIG" >&6; }
15990else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992$as_echo "no" >&6; }
15993fi
15994
15995
15996fi
15997if test -z "$ac_cv_path_PKG_CONFIG"; then
15998 ac_pt_PKG_CONFIG=$PKG_CONFIG
15999 # Extract the first word of "pkg-config", so it can be a program name with args.
16000set dummy pkg-config; ac_word=$2
16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16002$as_echo_n "checking for $ac_word... " >&6; }
16003if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16004 $as_echo_n "(cached) " >&6
16005else
16006 case $ac_pt_PKG_CONFIG in
16007 [\\/]* | ?:[\\/]*)
16008 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16009 ;;
16010 *)
16011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012for as_dir in $PATH
16013do
16014 IFS=$as_save_IFS
16015 test -z "$as_dir" && as_dir=.
16016 for ac_exec_ext in '' $ac_executable_extensions; do
16017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020 break 2
16021 fi
16022done
16023 done
16024IFS=$as_save_IFS
16025
16026 ;;
16027esac
16028fi
16029ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16030if test -n "$ac_pt_PKG_CONFIG"; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16032$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16033else
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035$as_echo "no" >&6; }
16036fi
16037
16038 if test "x$ac_pt_PKG_CONFIG" = x; then
16039 PKG_CONFIG=""
16040 else
16041 case $cross_compiling:$ac_tool_warned in
16042yes:)
16043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16045ac_tool_warned=yes ;;
16046esac
16047 PKG_CONFIG=$ac_pt_PKG_CONFIG
16048 fi
16049else
16050 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16051fi
16052
16053fi
16054if test -n "$PKG_CONFIG"; then
16055 _pkg_min_version=0.9.0
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16057$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16058 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16060$as_echo "yes" >&6; }
16061 else
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16063$as_echo "no" >&6; }
16064 PKG_CONFIG=""
16065 fi
16066fi
16067
16068pkg_failed=no
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
16070$as_echo_n "checking for SQLITE... " >&6; }
16071
16072if test -n "$SQLITE_CFLAGS"; then
16073 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
16074 elif test -n "$PKG_CONFIG"; then
16075 if test -n "$PKG_CONFIG" && \
16076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16077 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16078 ac_status=$?
16079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 test $ac_status = 0; }; then
16081 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
16082 test "x$?" != "x0" && pkg_failed=yes
16083else
16084 pkg_failed=yes
16085fi
16086 else
16087 pkg_failed=untried
16088fi
16089if test -n "$SQLITE_LIBS"; then
16090 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
16091 elif test -n "$PKG_CONFIG"; then
16092 if test -n "$PKG_CONFIG" && \
16093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
16094 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
16095 ac_status=$?
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; then
16098 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
16099 test "x$?" != "x0" && pkg_failed=yes
16100else
16101 pkg_failed=yes
16102fi
16103 else
16104 pkg_failed=untried
16105fi
16106
16107
16108
16109if test $pkg_failed = yes; then
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111$as_echo "no" >&6; }
16112
16113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16114 _pkg_short_errors_supported=yes
16115else
16116 _pkg_short_errors_supported=no
16117fi
16118 if test $_pkg_short_errors_supported = yes; then
16119 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
16120 else
16121 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
16122 fi
16123 # Put the nasty error message in config.log where it belongs
16124 echo "$SQLITE_PKG_ERRORS" >&5
16125
16126 shared_sqlite=no
16127elif test $pkg_failed = untried; then
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129$as_echo "no" >&6; }
16130 shared_sqlite=no
16131else
16132 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
16133 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16135$as_echo "yes" >&6; }
16136
16137 shared_sqlite=yes
16138
16139fi
16140fi
16141
16142if test "$shared_sqlite" = no; then
16143 SQLITE_OBJ='sqlite3.$(OBJEXT)'
16144fi
16145
16146SQLITE_LD="$SQLITE_LIBS"
16147
16148SQLITE_INCLUDES="$SQLITE_CFLAGS"
16149
16150
16151
16152
16153
16154# Check whether --with-confdir was given.
16155if test "${with_confdir+set}" = set; then :
16156 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
16157else
16158 confdir='${sysconfdir}'
16159fi
16160
16161
16162 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16164 last_ac_define_dir=`eval echo $sysconfdir`
16165 ac_define_dir=`eval echo $last_ac_define_dir`
16166 ac_define_dir_counter=0
16167 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16168 last_ac_define_dir="$ac_define_dir"
16169 ac_define_dir=`eval echo $last_ac_define_dir`
16170 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16171 if test "x$ac_define_dir_counter" = x128; then :
16172 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
16173 break
16174fi
16175 done
16176 ETC_DIR="$ac_define_dir"
16177
16178
16179cat >>confdefs.h <<_ACEOF
16180#define ETC_DIR "$ac_define_dir"
16181_ACEOF
16182
16183
16184
16185
16186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
16187$as_echo_n "checking whether to modify logdir... " >&6; }
16188
16189# Check whether --with-logdir was given.
16190if test "${with_logdir+set}" = set; then :
16191 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16193$as_echo "yes" >&6; }
16194else
16195 if test "x$enable_fhs_paths" = "xyes"; then :
16196 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
16197else
16198 logdir='${prefix}/logs'
16199fi
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16201$as_echo "no" >&6; }
16202fi
16203
16204
16205 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16207 last_ac_define_dir=`eval echo $logdir`
16208 ac_define_dir=`eval echo $last_ac_define_dir`
16209 ac_define_dir_counter=0
16210 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16211 last_ac_define_dir="$ac_define_dir"
16212 ac_define_dir=`eval echo $last_ac_define_dir`
16213 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16214 if test "x$ac_define_dir_counter" = x128; then :
16215 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
16216 break
16217fi
16218 done
16219 LOG_DIR="$ac_define_dir"
16220
16221
16222cat >>confdefs.h <<_ACEOF
16223#define LOG_DIR "$ac_define_dir"
16224_ACEOF
16225
16226
16227
16228
16229 logdir=`(
16230 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16231 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16232 eval echo \""$logdir"\"
16233 )`
16234
16235
16236
16237
16238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
16239$as_echo_n "checking whether to modify helpdir... " >&6; }
16240
16241# Check whether --with-helpdir was given.
16242if test "${with_helpdir+set}" = set; then :
16243 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16245$as_echo "yes" >&6; }
16246else
16247 if test "x$enable_fhs_paths" = "xyes"; then :
16248 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
16249else
16250 helpdir='${prefix}/help'
16251fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16253$as_echo "no" >&6; }
16254fi
16255
16256
16257 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16259 last_ac_define_dir=`eval echo $helpdir`
16260 ac_define_dir=`eval echo $last_ac_define_dir`
16261 ac_define_dir_counter=0
16262 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16263 last_ac_define_dir="$ac_define_dir"
16264 ac_define_dir=`eval echo $last_ac_define_dir`
16265 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16266 if test "x$ac_define_dir_counter" = x128; then :
16267 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
16268 break
16269fi
16270 done
16271 HELP_DIR="$ac_define_dir"
16272
16273
16274cat >>confdefs.h <<_ACEOF
16275#define HELP_DIR "$ac_define_dir"
16276_ACEOF
16277
16278
16279
16280
16281 helpdir=`(
16282 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16283 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16284 eval echo \""$helpdir"\"
16285 )`
16286
16287
16288
16289
16290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
16291$as_echo_n "checking whether to modify moduledir... " >&6; }
16292
16293# Check whether --with-moduledir was given.
16294if test "${with_moduledir+set}" = set; then :
16295 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297$as_echo "yes" >&6; }
16298else
16299 if test "x$enable_fhs_paths" = "xyes"; then :
16300 moduledir='${pkglibdir}/modules'
16301else
16302 moduledir='${prefix}/modules'
16303fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305$as_echo "no" >&6; }
16306
16307fi
16308
16309
16310 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16312 last_ac_define_dir=`eval echo $moduledir`
16313 ac_define_dir=`eval echo $last_ac_define_dir`
16314 ac_define_dir_counter=0
16315 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16316 last_ac_define_dir="$ac_define_dir"
16317 ac_define_dir=`eval echo $last_ac_define_dir`
16318 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16319 if test "x$ac_define_dir_counter" = x128; then :
16320 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
16321 break
16322fi
16323 done
16324 MODULE_DIR="$ac_define_dir"
16325
16326
16327cat >>confdefs.h <<_ACEOF
16328#define MODULE_DIR "$ac_define_dir"
16329_ACEOF
16330
16331
16332
16333
16334 moduledir=`(
16335 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16336 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
16337 eval echo \""$moduledir"\"
16338 )`
16339
16340
16341
16342
16343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
16344$as_echo_n "checking whether or modify rundir... " >&6; }
16345
16346# Check whether --with-rundir was given.
16347if test "${with_rundir+set}" = set; then :
16348 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349$as_echo "yes" >&6; }
16350 rundir=`echo $withval | sed 's/\/$//'`
16351else
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353$as_echo "no" >&6; }
16354 if test "x$enable_fhs_paths" = "xyes"; then :
16355 rundir='${prefix}/run'
16356else
16357 rundir='${sysconfdir}'
16358fi
16359fi
16360
16361
16362
16363 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16365 last_ac_define_dir=`eval echo $pkgrundir`
16366 ac_define_dir=`eval echo $last_ac_define_dir`
16367 ac_define_dir_counter=0
16368 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
16369 last_ac_define_dir="$ac_define_dir"
16370 ac_define_dir=`eval echo $last_ac_define_dir`
16371 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
16372 if test "x$ac_define_dir_counter" = x128; then :
16373 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
16374 break
16375fi
16376 done
16377 PKGRUNDIR="$ac_define_dir"
16378
16379
16380cat >>confdefs.h <<_ACEOF
16381#define PKGRUNDIR "$ac_define_dir"
16382_ACEOF
16383
16384
16385
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
16387$as_echo_n "checking for program prefix... " >&6; }
16388
16389# Check whether --with-program-prefix was given.
16390if test "${with_program_prefix+set}" = set; then :
16391 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
16392else
16393 with_program_prefix=
16394fi
16395
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
16397$as_echo "\"$with_program_prefix\"" >&6; }
16398PROGRAM_PREFIX="$with_program_prefix"
16399
16400
16401cat >>confdefs.h <<_ACEOF
16402#define PROGRAM_PREFIX "$with_program_prefix"
16403_ACEOF
16404
16405
16406
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
16408$as_echo_n "checking whether custom branding is requested... " >&6; }
16409
16410# Check whether --with-custom-branding was given.
16411if test "${with_custom_branding+set}" = set; then :
16412 withval=$with_custom_branding; BRANDING_NAME=$withval
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414$as_echo "yes" >&6; }
16415else
16416 BRANDING_NAME=$PACKAGE_NAME
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418$as_echo "no" >&6; }
16419
16420fi
16421
16422
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
16424$as_echo_n "checking whether a custom version is requested... " >&6; }
16425
16426# Check whether --with-custom-version was given.
16427if test "${with_custom_version+set}" = set; then :
16428 withval=$with_custom_version; BRANDING_VERSION=$withval
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16430$as_echo "yes" >&6; }
16431else
16432 BRANDING_VERSION=$PACKAGE_VERSION
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434$as_echo "no" >&6; }
16435
16436fi
16437
16438
16439
16440cat >>confdefs.h <<_ACEOF
16441#define BRANDING_NAME "$BRANDING_NAME"
16442_ACEOF
16443
16444
16445cat >>confdefs.h <<_ACEOF
16446#define BRANDING_VERSION "$BRANDING_VERSION"
16447_ACEOF
16448
16449
16450if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
16451
16452$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
16453
16454fi
16455
16456
16457# Check whether --enable-assert was given.
16458if test "${enable_assert+set}" = set; then :
16459 enableval=$enable_assert; assert=$enableval
16460else
16461 assert=no
16462fi
16463
16464
16465if test "$assert" = no; then
16466
16467$as_echo "#define NDEBUG 1" >>confdefs.h
16468
16469elif test "$assert" = soft; then
16470
16471$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
16472
16473
16474$as_echo "#define NDEBUG 1" >>confdefs.h
16475
16476elif test "$assert" = yes; then
16477 assert = "hard";
16478fi
16479
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
16481$as_echo_n "checking if you want to do a profile build... " >&6; }
16482# Check whether --enable-profile was given.
16483if test "${enable_profile+set}" = set; then :
16484 enableval=$enable_profile; profile=$enableval
16485else
16486 profile=no
16487fi
16488
16489
16490if test "$profile" = yes; then
16491 if test "$ac_cv_c_compiler_gnu" = yes; then
16492 IRC_CFLAGS="$IRC_CFLAGS -pg"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
16494$as_echo "yes, adding -pg" >&6; }
16495
16496$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
16497
16498 else
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
16500$as_echo "no, profile builds only work with gcc" >&6; }
16501 fi
16502else
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16504$as_echo "no" >&6; }
16505fi
16506
16507
16508$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
16509
16510
16511$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
16512
16513
16514$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
16515
16516
16517$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
16518
16519
16520$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
16521
16522
16523$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
16524
16525
16526$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
16527
16528
16529$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
16530
16531
16532$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
16533
16534
16535$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
16536
16537
16538$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
16539
16540
16541$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
16542
16543
16544$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
16545
16546
16547$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
16548
16549
16550$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
16551
16552
16553$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
16554
16555
16556
16557# Check whether --with-nicklen was given.
16558if test "${with_nicklen+set}" = set; then :
16559 withval=$with_nicklen;
16560 if ! expr "$withval" + 0 >/dev/null 2>&1; then
16561 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
16562 fi
16563 if test $withval -gt 50; then
16564 NICKLEN=50
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
16566$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
16567 elif test $withval -lt 9; then
16568 NICKLEN=9
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
16570$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
16571 else
16572 NICKLEN="$withval"
16573 fi
16574
16575else
16576 NICKLEN=31
16577fi
16578
16579
16580
16581# Check whether --with-topiclen was given.
16582if test "${with_topiclen+set}" = set; then :
16583 withval=$with_topiclen;
16584 if test $withval -gt 390; then
16585 TOPICLEN=390
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
16587$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
16588 else
16589 TOPICLEN=$withval
16590 fi
16591
16592else
16593 TOPICLEN=390
16594fi
16595
16596
16597
16598cat >>confdefs.h <<_ACEOF
16599#define TOPICLEN ${TOPICLEN}
16600_ACEOF
16601
16602
16603cat >>confdefs.h <<_ACEOF
16604#define NICKLEN (${NICKLEN}+1)
16605_ACEOF
16606
16607
16608# rpath, for finding libratbox.so at run time
16609hold_ldflags=$LDFLAGS
16610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
16611$as_echo_n "checking for the ld -rpath flag... " >&6; }
16612LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
16613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614/* end confdefs.h. */
16615
16616int
16617main ()
16618{
16619int i;
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624if ac_fn_c_try_link "$LINENO"; then :
16625 found=yes
16626else
16627 found=no
16628fi
16629rm -f core conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16631LDFLAGS=$hold_ldflags
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16633$as_echo "$found" >&6; }
16634if test "$found" = yes; then
16635 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
16636fi
16637
16638# This must be down here, or it will mess up checks like the ones
16639# for -Wl,-export-dynamic
16640# -- jilles
16641CWARNS=""
16642# Check whether --enable-warnings was given.
16643if test "${enable_warnings+set}" = set; then :
16644 enableval=$enable_warnings;
16645IRC_CFLAGS="$IRC_CFLAGS -O0"
16646CFLAGS="$IRC_CFLAGS"
16647
16648
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
16650$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
16651 if test "${GCC-no}" = yes
16652 then
16653 if ${charybdis_cv_c_gcc_w_all+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655else
16656
16657 oldcflags="${CFLAGS-}"
16658 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660/* end confdefs.h. */
16661
16662#include <string.h>
16663#include <stdio.h>
16664int main(void);
16665
16666int
16667main ()
16668{
16669
16670 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16671
16672 ;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_compile "$LINENO"; then :
16677 charybdis_cv_c_gcc_w_all=yes
16678else
16679 charybdis_cv_c_gcc_w_all=no
16680fi
16681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 CFLAGS="${oldcflags}"
16683fi
16684
16685 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
16686 CWARNS="${CWARNS}-Wall "
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16688$as_echo "ok" >&6; }
16689 else
16690 charybdis_cv_c_gcc_w_all=''
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692$as_echo "no" >&6; }
16693 fi
16694 else
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696$as_echo "no" >&6; }
16697 fi
16698
16699
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
16701$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
16702 if test "${GCC-no}" = yes
16703 then
16704 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
16705 $as_echo_n "(cached) " >&6
16706else
16707
16708 oldcflags="${CFLAGS-}"
16709 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h. */
16712
16713#include <string.h>
16714#include <stdio.h>
16715int main(void);
16716
16717int
16718main ()
16719{
16720
16721 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16722
16723 ;
16724 return 0;
16725}
16726_ACEOF
16727if ac_fn_c_try_compile "$LINENO"; then :
16728 charybdis_cv_c_gcc_w_pointer_arith=yes
16729else
16730 charybdis_cv_c_gcc_w_pointer_arith=no
16731fi
16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 CFLAGS="${oldcflags}"
16734fi
16735
16736 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
16737 CWARNS="${CWARNS}-Wpointer-arith "
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16739$as_echo "ok" >&6; }
16740 else
16741 charybdis_cv_c_gcc_w_pointer_arith=''
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743$as_echo "no" >&6; }
16744 fi
16745 else
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747$as_echo "no" >&6; }
16748 fi
16749
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
16752$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
16753 if test "${GCC-no}" = yes
16754 then
16755 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
16756 $as_echo_n "(cached) " >&6
16757else
16758
16759 oldcflags="${CFLAGS-}"
16760 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762/* end confdefs.h. */
16763
16764#include <string.h>
16765#include <stdio.h>
16766int main(void);
16767
16768int
16769main ()
16770{
16771
16772 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16773
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778if ac_fn_c_try_compile "$LINENO"; then :
16779 charybdis_cv_c_gcc_w_implicit=yes
16780else
16781 charybdis_cv_c_gcc_w_implicit=no
16782fi
16783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 CFLAGS="${oldcflags}"
16785fi
16786
16787 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
16788 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16790$as_echo "ok" >&6; }
16791 else
16792 charybdis_cv_c_gcc_w_implicit=''
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794$as_echo "no" >&6; }
16795 fi
16796 else
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798$as_echo "no" >&6; }
16799 fi
16800
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
16803$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
16804 if test "${GCC-no}" = yes
16805 then
16806 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808else
16809
16810 oldcflags="${CFLAGS-}"
16811 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813/* end confdefs.h. */
16814
16815#include <string.h>
16816#include <stdio.h>
16817int main(void);
16818
16819int
16820main ()
16821{
16822
16823 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16824
16825 ;
16826 return 0;
16827}
16828_ACEOF
16829if ac_fn_c_try_compile "$LINENO"; then :
16830 charybdis_cv_c_gcc_w_cast_align=yes
16831else
16832 charybdis_cv_c_gcc_w_cast_align=no
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835 CFLAGS="${oldcflags}"
16836fi
16837
16838 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
16839 CWARNS="${CWARNS}-Wcast-align "
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16841$as_echo "ok" >&6; }
16842 else
16843 charybdis_cv_c_gcc_w_cast_align=''
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845$as_echo "no" >&6; }
16846 fi
16847 else
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849$as_echo "no" >&6; }
16850 fi
16851
16852
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
16854$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
16855 if test "${GCC-no}" = yes
16856 then
16857 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859else
16860
16861 oldcflags="${CFLAGS-}"
16862 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h. */
16865
16866#include <string.h>
16867#include <stdio.h>
16868int main(void);
16869
16870int
16871main ()
16872{
16873
16874 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16875
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880if ac_fn_c_try_compile "$LINENO"; then :
16881 charybdis_cv_c_gcc_w_cast_qual=yes
16882else
16883 charybdis_cv_c_gcc_w_cast_qual=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 CFLAGS="${oldcflags}"
16887fi
16888
16889 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
16890 CWARNS="${CWARNS}-Wcast-qual "
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16892$as_echo "ok" >&6; }
16893 else
16894 charybdis_cv_c_gcc_w_cast_qual=''
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896$as_echo "no" >&6; }
16897 fi
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900$as_echo "no" >&6; }
16901 fi
16902
16903
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
16905$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
16906 if test "${GCC-no}" = yes
16907 then
16908 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
16909 $as_echo_n "(cached) " >&6
16910else
16911
16912 oldcflags="${CFLAGS-}"
16913 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915/* end confdefs.h. */
16916
16917#include <string.h>
16918#include <stdio.h>
16919int main(void);
16920
16921int
16922main ()
16923{
16924
16925 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16926
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_compile "$LINENO"; then :
16932 charybdis_cv_c_gcc_w_write_strings=yes
16933else
16934 charybdis_cv_c_gcc_w_write_strings=no
16935fi
16936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 CFLAGS="${oldcflags}"
16938fi
16939
16940 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
16941 CWARNS="${CWARNS}-Wwrite-strings "
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16943$as_echo "ok" >&6; }
16944 else
16945 charybdis_cv_c_gcc_w_write_strings=''
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947$as_echo "no" >&6; }
16948 fi
16949 else
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951$as_echo "no" >&6; }
16952 fi
16953
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
16956$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
16957 if test "${GCC-no}" = yes
16958 then
16959 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
16960 $as_echo_n "(cached) " >&6
16961else
16962
16963 oldcflags="${CFLAGS-}"
16964 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966/* end confdefs.h. */
16967
16968#include <string.h>
16969#include <stdio.h>
16970int main(void);
16971
16972int
16973main ()
16974{
16975
16976 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
16977
16978 ;
16979 return 0;
16980}
16981_ACEOF
16982if ac_fn_c_try_compile "$LINENO"; then :
16983 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
16984else
16985 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
16986fi
16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 CFLAGS="${oldcflags}"
16989fi
16990
16991 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
16992 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16994$as_echo "ok" >&6; }
16995 else
16996 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998$as_echo "no" >&6; }
16999 fi
17000 else
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002$as_echo "no" >&6; }
17003 fi
17004
17005
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
17007$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
17008 if test "${GCC-no}" = yes
17009 then
17010 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012else
17013
17014 oldcflags="${CFLAGS-}"
17015 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017/* end confdefs.h. */
17018
17019#include <string.h>
17020#include <stdio.h>
17021int main(void);
17022
17023int
17024main ()
17025{
17026
17027 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17028
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033if ac_fn_c_try_compile "$LINENO"; then :
17034 charybdis_cv_c_gcc_prototypes=yes
17035else
17036 charybdis_cv_c_gcc_prototypes=no
17037fi
17038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 CFLAGS="${oldcflags}"
17040fi
17041
17042 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
17043 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17045$as_echo "ok" >&6; }
17046 else
17047 charybdis_cv_c_gcc_prototypes=''
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049$as_echo "no" >&6; }
17050 fi
17051 else
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053$as_echo "no" >&6; }
17054 fi
17055
17056
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
17058$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
17059 if test "${GCC-no}" = yes
17060 then
17061 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063else
17064
17065 oldcflags="${CFLAGS-}"
17066 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068/* end confdefs.h. */
17069
17070#include <string.h>
17071#include <stdio.h>
17072int main(void);
17073
17074int
17075main ()
17076{
17077
17078 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17079
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084if ac_fn_c_try_compile "$LINENO"; then :
17085 charybdis_cv_c_gcc_parenthesis=yes
17086else
17087 charybdis_cv_c_gcc_parenthesis=no
17088fi
17089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17090 CFLAGS="${oldcflags}"
17091fi
17092
17093 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
17094 CWARNS="${CWARNS}-Wparenthesis "
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17096$as_echo "ok" >&6; }
17097 else
17098 charybdis_cv_c_gcc_parenthesis=''
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17100$as_echo "no" >&6; }
17101 fi
17102 else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104$as_echo "no" >&6; }
17105 fi
17106
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
17109$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
17110 if test "${GCC-no}" = yes
17111 then
17112 if ${charybdis_cv_c_gcc_w+:} false; then :
17113 $as_echo_n "(cached) " >&6
17114else
17115
17116 oldcflags="${CFLAGS-}"
17117 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h. */
17120
17121#include <string.h>
17122#include <stdio.h>
17123int main(void);
17124
17125int
17126main ()
17127{
17128
17129 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17130
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135if ac_fn_c_try_compile "$LINENO"; then :
17136 charybdis_cv_c_gcc_w=yes
17137else
17138 charybdis_cv_c_gcc_w=no
17139fi
17140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 CFLAGS="${oldcflags}"
17142fi
17143
17144 if test "x$charybdis_cv_c_gcc_w" = xyes; then
17145 CWARNS="${CWARNS}-W -Wno-unused "
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17147$as_echo "ok" >&6; }
17148 else
17149 charybdis_cv_c_gcc_w=''
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17151$as_echo "no" >&6; }
17152 fi
17153 else
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155$as_echo "no" >&6; }
17156 fi
17157
17158
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
17160$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
17161 if test "${GCC-no}" = yes
17162 then
17163 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
17164 $as_echo_n "(cached) " >&6
17165else
17166
17167 oldcflags="${CFLAGS-}"
17168 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170/* end confdefs.h. */
17171
17172#include <string.h>
17173#include <stdio.h>
17174int main(void);
17175
17176int
17177main ()
17178{
17179
17180 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17181
17182 ;
17183 return 0;
17184}
17185_ACEOF
17186if ac_fn_c_try_compile "$LINENO"; then :
17187 charybdis_cv_c_gcc_w_extra=yes
17188else
17189 charybdis_cv_c_gcc_w_extra=no
17190fi
17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 CFLAGS="${oldcflags}"
17193fi
17194
17195 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
17196 CWARNS="${CWARNS}-Wextra "
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17198$as_echo "ok" >&6; }
17199 else
17200 charybdis_cv_c_gcc_w_extra=''
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202$as_echo "no" >&6; }
17203 fi
17204 else
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206$as_echo "no" >&6; }
17207 fi
17208
17209
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
17211$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
17212 if test "${GCC-no}" = yes
17213 then
17214 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216else
17217
17218 oldcflags="${CFLAGS-}"
17219 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
17220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221/* end confdefs.h. */
17222
17223#include <string.h>
17224#include <stdio.h>
17225int main(void);
17226
17227int
17228main ()
17229{
17230
17231 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17232
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237if ac_fn_c_try_compile "$LINENO"; then :
17238 charybdis_cv_c_gcc_w_shadow=yes
17239else
17240 charybdis_cv_c_gcc_w_shadow=no
17241fi
17242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 CFLAGS="${oldcflags}"
17244fi
17245
17246 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
17247 CWARNS="${CWARNS}-Wshadow "
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17249$as_echo "ok" >&6; }
17250 else
17251 charybdis_cv_c_gcc_w_shadow=''
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253$as_echo "no" >&6; }
17254 fi
17255 else
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17257$as_echo "no" >&6; }
17258 fi
17259
17260
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
17262$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
17263 if test "${GCC-no}" = yes
17264 then
17265 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
17266 $as_echo_n "(cached) " >&6
17267else
17268
17269 oldcflags="${CFLAGS-}"
17270 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272/* end confdefs.h. */
17273
17274#include <string.h>
17275#include <stdio.h>
17276int main(void);
17277
17278int
17279main ()
17280{
17281
17282 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17283
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288if ac_fn_c_try_compile "$LINENO"; then :
17289 charybdis_cv_c_gcc_w_missing_noreturn=yes
17290else
17291 charybdis_cv_c_gcc_w_missing_noreturn=no
17292fi
17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 CFLAGS="${oldcflags}"
17295fi
17296
17297 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
17298 CWARNS="${CWARNS}-Wmissing-noreturn "
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17300$as_echo "ok" >&6; }
17301 else
17302 charybdis_cv_c_gcc_w_missing_noreturn=''
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304$as_echo "no" >&6; }
17305 fi
17306 else
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308$as_echo "no" >&6; }
17309 fi
17310
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
17313$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
17314 if test "${GCC-no}" = yes
17315 then
17316 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318else
17319
17320 oldcflags="${CFLAGS-}"
17321 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h. */
17324
17325#include <string.h>
17326#include <stdio.h>
17327int main(void);
17328
17329int
17330main ()
17331{
17332
17333 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339if ac_fn_c_try_compile "$LINENO"; then :
17340 charybdis_cv_c_gcc_w_undef=yes
17341else
17342 charybdis_cv_c_gcc_w_undef=no
17343fi
17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 CFLAGS="${oldcflags}"
17346fi
17347
17348 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
17349 CWARNS="${CWARNS}-Wundef "
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17351$as_echo "ok" >&6; }
17352 else
17353 charybdis_cv_c_gcc_w_undef=''
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355$as_echo "no" >&6; }
17356 fi
17357 else
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359$as_echo "no" >&6; }
17360 fi
17361
17362
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
17364$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
17365 if test "${GCC-no}" = yes
17366 then
17367 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
17368 $as_echo_n "(cached) " >&6
17369else
17370
17371 oldcflags="${CFLAGS-}"
17372 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h. */
17375
17376#include <string.h>
17377#include <stdio.h>
17378int main(void);
17379
17380int
17381main ()
17382{
17383
17384 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17385
17386 ;
17387 return 0;
17388}
17389_ACEOF
17390if ac_fn_c_try_compile "$LINENO"; then :
17391 charybdis_cv_c_gcc_w_packed=yes
17392else
17393 charybdis_cv_c_gcc_w_packed=no
17394fi
17395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 CFLAGS="${oldcflags}"
17397fi
17398
17399 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
17400 CWARNS="${CWARNS}-Wpacked "
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17402$as_echo "ok" >&6; }
17403 else
17404 charybdis_cv_c_gcc_w_packed=''
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406$as_echo "no" >&6; }
17407 fi
17408 else
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410$as_echo "no" >&6; }
17411 fi
17412
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
17415$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
17416 if test "${GCC-no}" = yes
17417 then
17418 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
17419 $as_echo_n "(cached) " >&6
17420else
17421
17422 oldcflags="${CFLAGS-}"
17423 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425/* end confdefs.h. */
17426
17427#include <string.h>
17428#include <stdio.h>
17429int main(void);
17430
17431int
17432main ()
17433{
17434
17435 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441if ac_fn_c_try_compile "$LINENO"; then :
17442 charybdis_cv_c_gcc_w_nested_externs=yes
17443else
17444 charybdis_cv_c_gcc_w_nested_externs=no
17445fi
17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 CFLAGS="${oldcflags}"
17448fi
17449
17450 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
17451 CWARNS="${CWARNS}-Wnested-externs "
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17453$as_echo "ok" >&6; }
17454 else
17455 charybdis_cv_c_gcc_w_nested_externs=''
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457$as_echo "no" >&6; }
17458 fi
17459 else
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461$as_echo "no" >&6; }
17462 fi
17463
17464
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
17466$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
17467 if test "${GCC-no}" = yes
17468 then
17469 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
17470 $as_echo_n "(cached) " >&6
17471else
17472
17473 oldcflags="${CFLAGS-}"
17474 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h. */
17477
17478#include <string.h>
17479#include <stdio.h>
17480int main(void);
17481
17482int
17483main ()
17484{
17485
17486 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17487
17488 ;
17489 return 0;
17490}
17491_ACEOF
17492if ac_fn_c_try_compile "$LINENO"; then :
17493 charybdis_cv_c_gcc_w_unused=yes
17494else
17495 charybdis_cv_c_gcc_w_unused=no
17496fi
17497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498 CFLAGS="${oldcflags}"
17499fi
17500
17501 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
17502 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17504$as_echo "ok" >&6; }
17505 else
17506 charybdis_cv_c_gcc_w_unused=''
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17508$as_echo "no" >&6; }
17509 fi
17510 else
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512$as_echo "no" >&6; }
17513 fi
17514
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
17517$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
17518 if test "${GCC-no}" = yes
17519 then
17520 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
17521 $as_echo_n "(cached) " >&6
17522else
17523
17524 oldcflags="${CFLAGS-}"
17525 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h. */
17528
17529#include <string.h>
17530#include <stdio.h>
17531int main(void);
17532
17533int
17534main ()
17535{
17536
17537 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17538
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543if ac_fn_c_try_compile "$LINENO"; then :
17544 charybdis_cv_c_gcc_w_redundant_decls=yes
17545else
17546 charybdis_cv_c_gcc_w_redundant_decls=no
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 CFLAGS="${oldcflags}"
17550fi
17551
17552 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
17553 CWARNS="${CWARNS}-Wredundant-decls "
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17555$as_echo "ok" >&6; }
17556 else
17557 charybdis_cv_c_gcc_w_redundant_decls=''
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17559$as_echo "no" >&6; }
17560 fi
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563$as_echo "no" >&6; }
17564 fi
17565
17566
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
17568$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
17569 if test "${GCC-no}" = yes
17570 then
17571 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
17572 $as_echo_n "(cached) " >&6
17573else
17574
17575 oldcflags="${CFLAGS-}"
17576 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h. */
17579
17580#include <string.h>
17581#include <stdio.h>
17582int main(void);
17583
17584int
17585main ()
17586{
17587
17588 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17589
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594if ac_fn_c_try_compile "$LINENO"; then :
17595 charybdis_cv_c_gcc_w_float_equal=yes
17596else
17597 charybdis_cv_c_gcc_w_float_equal=no
17598fi
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600 CFLAGS="${oldcflags}"
17601fi
17602
17603 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
17604 CWARNS="${CWARNS}-Wfloat-equal "
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17606$as_echo "ok" >&6; }
17607 else
17608 charybdis_cv_c_gcc_w_float_equal=''
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17610$as_echo "no" >&6; }
17611 fi
17612 else
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17614$as_echo "no" >&6; }
17615 fi
17616
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
17619$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
17620 if test "${GCC-no}" = yes
17621 then
17622 if ${charybdis_cv_c_gcc_w_format+:} false; then :
17623 $as_echo_n "(cached) " >&6
17624else
17625
17626 oldcflags="${CFLAGS-}"
17627 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629/* end confdefs.h. */
17630
17631#include <string.h>
17632#include <stdio.h>
17633int main(void);
17634
17635int
17636main ()
17637{
17638
17639 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
17640
17641 ;
17642 return 0;
17643}
17644_ACEOF
17645if ac_fn_c_try_compile "$LINENO"; then :
17646 charybdis_cv_c_gcc_w_format=yes
17647else
17648 charybdis_cv_c_gcc_w_format=no
17649fi
17650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 CFLAGS="${oldcflags}"
17652fi
17653
17654 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
17655 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17657$as_echo "ok" >&6; }
17658 else
17659 charybdis_cv_c_gcc_w_format=''
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17661$as_echo "no" >&6; }
17662 fi
17663 else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665$as_echo "no" >&6; }
17666 fi
17667
17668
17669IRC_CFLAGS="$CFLAGS"
17670
17671fi
17672
17673
17674IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689if test "$prefix" = "NONE"; then
17690
17691cat >>confdefs.h <<_ACEOF
17692#define IRCD_PREFIX "$ac_default_prefix"
17693_ACEOF
17694
17695
17696else
17697
17698
17699 prefix=`echo $prefix | sed 's/\/$//'`
17700
17701cat >>confdefs.h <<_ACEOF
17702#define IRCD_PREFIX "$prefix"
17703_ACEOF
17704
17705
17706fi
17707
17708ac_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"
17709
17710ac_config_commands="$ac_config_commands tools/genssl_chmod"
17711
17712
17713cat >confcache <<\_ACEOF
17714# This file is a shell script that caches the results of configure
17715# tests run on this system so they can be shared between configure
17716# scripts and configure runs, see configure's option --config-cache.
17717# It is not useful on other systems. If it contains results you don't
17718# want to keep, you may remove or edit it.
17719#
17720# config.status only pays attention to the cache file if you give it
17721# the --recheck option to rerun configure.
17722#
17723# `ac_cv_env_foo' variables (set or unset) will be overridden when
17724# loading this file, other *unset* `ac_cv_foo' will be assigned the
17725# following values.
17726
17727_ACEOF
17728
17729# The following way of writing the cache mishandles newlines in values,
17730# but we know of no workaround that is simple, portable, and efficient.
17731# So, we kill variables containing newlines.
17732# Ultrix sh set writes to stderr and can't be redirected directly,
17733# and sets the high bit in the cache file unless we assign to the vars.
17734(
17735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17736 eval ac_val=\$$ac_var
17737 case $ac_val in #(
17738 *${as_nl}*)
17739 case $ac_var in #(
17740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17742 esac
17743 case $ac_var in #(
17744 _ | IFS | as_nl) ;; #(
17745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17746 *) { eval $ac_var=; unset $ac_var;} ;;
17747 esac ;;
17748 esac
17749 done
17750
17751 (set) 2>&1 |
17752 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17753 *${as_nl}ac_space=\ *)
17754 # `set' does not quote correctly, so add quotes: double-quote
17755 # substitution turns \\\\ into \\, and sed turns \\ into \.
17756 sed -n \
17757 "s/'/'\\\\''/g;
17758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17759 ;; #(
17760 *)
17761 # `set' quotes correctly as required by POSIX, so do not add quotes.
17762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17763 ;;
17764 esac |
17765 sort
17766) |
17767 sed '
17768 /^ac_cv_env_/b end
17769 t clear
17770 :clear
17771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17772 t end
17773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17774 :end' >>confcache
17775if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17776 if test -w "$cache_file"; then
17777 if test "x$cache_file" != "x/dev/null"; then
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17779$as_echo "$as_me: updating cache $cache_file" >&6;}
17780 if test ! -f "$cache_file" || test -h "$cache_file"; then
17781 cat confcache >"$cache_file"
17782 else
17783 case $cache_file in #(
17784 */* | ?:*)
17785 mv -f confcache "$cache_file"$$ &&
17786 mv -f "$cache_file"$$ "$cache_file" ;; #(
17787 *)
17788 mv -f confcache "$cache_file" ;;
17789 esac
17790 fi
17791 fi
17792 else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17794$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17795 fi
17796fi
17797rm -f confcache
17798
17799test "x$prefix" = xNONE && prefix=$ac_default_prefix
17800# Let make expand exec_prefix.
17801test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17802
17803DEFS=-DHAVE_CONFIG_H
17804
17805ac_libobjs=
17806ac_ltlibobjs=
17807U=
17808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17809 # 1. Remove the extension, and $U if already installed.
17810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17811 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17813 # will be set to the directory where LIBOBJS objects are built.
17814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17816done
17817LIBOBJS=$ac_libobjs
17818
17819LTLIBOBJS=$ac_ltlibobjs
17820
17821
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17823$as_echo_n "checking that generated files are newer than configure... " >&6; }
17824 if test -n "$am_sleep_pid"; then
17825 # Hide warnings about reused PIDs.
17826 wait $am_sleep_pid 2>/dev/null
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17829$as_echo "done" >&6; }
17830if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17831 as_fn_error $? "conditional \"AMDEP\" was never defined.
17832Usually this means the macro was only invoked conditionally." "$LINENO" 5
17833fi
17834if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17835 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17836Usually this means the macro was only invoked conditionally." "$LINENO" 5
17837fi
17838 if test -n "$EXEEXT"; then
17839 am__EXEEXT_TRUE=
17840 am__EXEEXT_FALSE='#'
17841else
17842 am__EXEEXT_TRUE='#'
17843 am__EXEEXT_FALSE=
17844fi
17845
17846if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17847 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
17848Usually this means the macro was only invoked conditionally." "$LINENO" 5
17849fi
17850if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17851 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
17852Usually this means the macro was only invoked conditionally." "$LINENO" 5
17853fi
17854LT_CONFIG_H=include/setup.h
17855
17856 _ltdl_libobjs=
17857 _ltdl_ltlibobjs=
17858 if test -n "$_LT_LIBOBJS"; then
17859 # Remove the extension.
17860 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17861 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17862 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17863 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17864 done
17865 fi
17866 ltdl_LIBOBJS=$_ltdl_libobjs
17867
17868 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17869
17870
17871if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then
17872 as_fn_error $? "conditional \"BUILD_LTDL\" was never defined.
17873Usually this means the macro was only invoked conditionally." "$LINENO" 5
17874fi
17875
17876
17877
17878: "${CONFIG_STATUS=./config.status}"
17879ac_write_fail=0
17880ac_clean_files_save=$ac_clean_files
17881ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17884as_write_fail=0
17885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17886#! $SHELL
17887# Generated by $as_me.
17888# Run this file to recreate the current configuration.
17889# Compiler output produced by configure, useful for debugging
17890# configure, is in config.log if it exists.
17891
17892debug=false
17893ac_cs_recheck=false
17894ac_cs_silent=false
17895
17896SHELL=\${CONFIG_SHELL-$SHELL}
17897export SHELL
17898_ASEOF
17899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17900## -------------------- ##
17901## M4sh Initialization. ##
17902## -------------------- ##
17903
17904# Be more Bourne compatible
17905DUALCASE=1; export DUALCASE # for MKS sh
17906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17907 emulate sh
17908 NULLCMD=:
17909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17910 # is contrary to our usage. Disable this feature.
17911 alias -g '${1+"$@"}'='"$@"'
17912 setopt NO_GLOB_SUBST
17913else
17914 case `(set -o) 2>/dev/null` in #(
17915 *posix*) :
17916 set -o posix ;; #(
17917 *) :
17918 ;;
17919esac
17920fi
17921
17922
17923as_nl='
17924'
17925export as_nl
17926# Printing a long string crashes Solaris 7 /usr/bin/printf.
17927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17930# Prefer a ksh shell builtin over an external printf program on Solaris,
17931# but without wasting forks for bash or zsh.
17932if test -z "$BASH_VERSION$ZSH_VERSION" \
17933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17934 as_echo='print -r --'
17935 as_echo_n='print -rn --'
17936elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17937 as_echo='printf %s\n'
17938 as_echo_n='printf %s'
17939else
17940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17942 as_echo_n='/usr/ucb/echo -n'
17943 else
17944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17945 as_echo_n_body='eval
17946 arg=$1;
17947 case $arg in #(
17948 *"$as_nl"*)
17949 expr "X$arg" : "X\\(.*\\)$as_nl";
17950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17951 esac;
17952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17953 '
17954 export as_echo_n_body
17955 as_echo_n='sh -c $as_echo_n_body as_echo'
17956 fi
17957 export as_echo_body
17958 as_echo='sh -c $as_echo_body as_echo'
17959fi
17960
17961# The user is always right.
17962if test "${PATH_SEPARATOR+set}" != set; then
17963 PATH_SEPARATOR=:
17964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17966 PATH_SEPARATOR=';'
17967 }
17968fi
17969
17970
17971# IFS
17972# We need space, tab and new line, in precisely that order. Quoting is
17973# there to prevent editors from complaining about space-tab.
17974# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17975# splitting by setting IFS to empty value.)
17976IFS=" "" $as_nl"
17977
17978# Find who we are. Look in the path if we contain no directory separator.
17979as_myself=
17980case $0 in #((
17981 *[\\/]* ) as_myself=$0 ;;
17982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17983for as_dir in $PATH
17984do
17985 IFS=$as_save_IFS
17986 test -z "$as_dir" && as_dir=.
17987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17988 done
17989IFS=$as_save_IFS
17990
17991 ;;
17992esac
17993# We did not find ourselves, most probably we were run as `sh COMMAND'
17994# in which case we are not to be found in the path.
17995if test "x$as_myself" = x; then
17996 as_myself=$0
17997fi
17998if test ! -f "$as_myself"; then
17999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18000 exit 1
18001fi
18002
18003# Unset variables that we do not need and which cause bugs (e.g. in
18004# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18005# suppresses any "Segmentation fault" message there. '((' could
18006# trigger a bug in pdksh 5.2.14.
18007for as_var in BASH_ENV ENV MAIL MAILPATH
18008do eval test x\${$as_var+set} = xset \
18009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18010done
18011PS1='$ '
18012PS2='> '
18013PS4='+ '
18014
18015# NLS nuisances.
18016LC_ALL=C
18017export LC_ALL
18018LANGUAGE=C
18019export LANGUAGE
18020
18021# CDPATH.
18022(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18023
18024
18025# as_fn_error STATUS ERROR [LINENO LOG_FD]
18026# ----------------------------------------
18027# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18028# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18029# script with STATUS, using 1 if that was 0.
18030as_fn_error ()
18031{
18032 as_status=$1; test $as_status -eq 0 && as_status=1
18033 if test "$4"; then
18034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18036 fi
18037 $as_echo "$as_me: error: $2" >&2
18038 as_fn_exit $as_status
18039} # as_fn_error
18040
18041
18042# as_fn_set_status STATUS
18043# -----------------------
18044# Set $? to STATUS, without forking.
18045as_fn_set_status ()
18046{
18047 return $1
18048} # as_fn_set_status
18049
18050# as_fn_exit STATUS
18051# -----------------
18052# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18053as_fn_exit ()
18054{
18055 set +e
18056 as_fn_set_status $1
18057 exit $1
18058} # as_fn_exit
18059
18060# as_fn_unset VAR
18061# ---------------
18062# Portably unset VAR.
18063as_fn_unset ()
18064{
18065 { eval $1=; unset $1;}
18066}
18067as_unset=as_fn_unset
18068# as_fn_append VAR VALUE
18069# ----------------------
18070# Append the text in VALUE to the end of the definition contained in VAR. Take
18071# advantage of any shell optimizations that allow amortized linear growth over
18072# repeated appends, instead of the typical quadratic growth present in naive
18073# implementations.
18074if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18075 eval 'as_fn_append ()
18076 {
18077 eval $1+=\$2
18078 }'
18079else
18080 as_fn_append ()
18081 {
18082 eval $1=\$$1\$2
18083 }
18084fi # as_fn_append
18085
18086# as_fn_arith ARG...
18087# ------------------
18088# Perform arithmetic evaluation on the ARGs, and store the result in the
18089# global $as_val. Take advantage of shells that can avoid forks. The arguments
18090# must be portable across $(()) and expr.
18091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18092 eval 'as_fn_arith ()
18093 {
18094 as_val=$(( $* ))
18095 }'
18096else
18097 as_fn_arith ()
18098 {
18099 as_val=`expr "$@" || test $? -eq 1`
18100 }
18101fi # as_fn_arith
18102
18103
18104if expr a : '\(a\)' >/dev/null 2>&1 &&
18105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18106 as_expr=expr
18107else
18108 as_expr=false
18109fi
18110
18111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18112 as_basename=basename
18113else
18114 as_basename=false
18115fi
18116
18117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18118 as_dirname=dirname
18119else
18120 as_dirname=false
18121fi
18122
18123as_me=`$as_basename -- "$0" ||
18124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18125 X"$0" : 'X\(//\)$' \| \
18126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18127$as_echo X/"$0" |
18128 sed '/^.*\/\([^/][^/]*\)\/*$/{
18129 s//\1/
18130 q
18131 }
18132 /^X\/\(\/\/\)$/{
18133 s//\1/
18134 q
18135 }
18136 /^X\/\(\/\).*/{
18137 s//\1/
18138 q
18139 }
18140 s/.*/./; q'`
18141
18142# Avoid depending upon Character Ranges.
18143as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18145as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18146as_cr_digits='0123456789'
18147as_cr_alnum=$as_cr_Letters$as_cr_digits
18148
18149ECHO_C= ECHO_N= ECHO_T=
18150case `echo -n x` in #(((((
18151-n*)
18152 case `echo 'xy\c'` in
18153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18154 xy) ECHO_C='\c';;
18155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18156 ECHO_T=' ';;
18157 esac;;
18158*)
18159 ECHO_N='-n';;
18160esac
18161
18162rm -f conf$$ conf$$.exe conf$$.file
18163if test -d conf$$.dir; then
18164 rm -f conf$$.dir/conf$$.file
18165else
18166 rm -f conf$$.dir
18167 mkdir conf$$.dir 2>/dev/null
18168fi
18169if (echo >conf$$.file) 2>/dev/null; then
18170 if ln -s conf$$.file conf$$ 2>/dev/null; then
18171 as_ln_s='ln -s'
18172 # ... but there are two gotchas:
18173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18175 # In both cases, we have to default to `cp -pR'.
18176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18177 as_ln_s='cp -pR'
18178 elif ln conf$$.file conf$$ 2>/dev/null; then
18179 as_ln_s=ln
18180 else
18181 as_ln_s='cp -pR'
18182 fi
18183else
18184 as_ln_s='cp -pR'
18185fi
18186rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18187rmdir conf$$.dir 2>/dev/null
18188
18189
18190# as_fn_mkdir_p
18191# -------------
18192# Create "$as_dir" as a directory, including parents if necessary.
18193as_fn_mkdir_p ()
18194{
18195
18196 case $as_dir in #(
18197 -*) as_dir=./$as_dir;;
18198 esac
18199 test -d "$as_dir" || eval $as_mkdir_p || {
18200 as_dirs=
18201 while :; do
18202 case $as_dir in #(
18203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18204 *) as_qdir=$as_dir;;
18205 esac
18206 as_dirs="'$as_qdir' $as_dirs"
18207 as_dir=`$as_dirname -- "$as_dir" ||
18208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18209 X"$as_dir" : 'X\(//\)[^/]' \| \
18210 X"$as_dir" : 'X\(//\)$' \| \
18211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18212$as_echo X"$as_dir" |
18213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18214 s//\1/
18215 q
18216 }
18217 /^X\(\/\/\)[^/].*/{
18218 s//\1/
18219 q
18220 }
18221 /^X\(\/\/\)$/{
18222 s//\1/
18223 q
18224 }
18225 /^X\(\/\).*/{
18226 s//\1/
18227 q
18228 }
18229 s/.*/./; q'`
18230 test -d "$as_dir" && break
18231 done
18232 test -z "$as_dirs" || eval "mkdir $as_dirs"
18233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18234
18235
18236} # as_fn_mkdir_p
18237if mkdir -p . 2>/dev/null; then
18238 as_mkdir_p='mkdir -p "$as_dir"'
18239else
18240 test -d ./-p && rmdir ./-p
18241 as_mkdir_p=false
18242fi
18243
18244
18245# as_fn_executable_p FILE
18246# -----------------------
18247# Test if FILE is an executable regular file.
18248as_fn_executable_p ()
18249{
18250 test -f "$1" && test -x "$1"
18251} # as_fn_executable_p
18252as_test_x='test -x'
18253as_executable_p=as_fn_executable_p
18254
18255# Sed expression to map a string onto a valid CPP name.
18256as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18257
18258# Sed expression to map a string onto a valid variable name.
18259as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18260
18261
18262exec 6>&1
18263## ----------------------------------- ##
18264## Main body of $CONFIG_STATUS script. ##
18265## ----------------------------------- ##
18266_ASEOF
18267test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18268
18269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18270# Save the log message, to keep $0 and so on meaningful, and to
18271# report actual input values of CONFIG_FILES etc. instead of their
18272# values after options handling.
18273ac_log="
18274This file was extended by charybdis $as_me 3.6.0-dev, which was
18275generated by GNU Autoconf 2.69. Invocation command line was
18276
18277 CONFIG_FILES = $CONFIG_FILES
18278 CONFIG_HEADERS = $CONFIG_HEADERS
18279 CONFIG_LINKS = $CONFIG_LINKS
18280 CONFIG_COMMANDS = $CONFIG_COMMANDS
18281 $ $0 $@
18282
18283on `(hostname || uname -n) 2>/dev/null | sed 1q`
18284"
18285
18286_ACEOF
18287
18288case $ac_config_files in *"
18289"*) set x $ac_config_files; shift; ac_config_files=$*;;
18290esac
18291
18292case $ac_config_headers in *"
18293"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18294esac
18295
18296
18297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298# Files that config.status was made for.
18299config_files="$ac_config_files"
18300config_headers="$ac_config_headers"
18301config_commands="$ac_config_commands"
18302
18303_ACEOF
18304
18305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18306ac_cs_usage="\
18307\`$as_me' instantiates files and other configuration actions
18308from templates according to the current configuration. Unless the files
18309and actions are specified as TAGs, all are instantiated by default.
18310
18311Usage: $0 [OPTION]... [TAG]...
18312
18313 -h, --help print this help, then exit
18314 -V, --version print version number and configuration settings, then exit
18315 --config print configuration, then exit
18316 -q, --quiet, --silent
18317 do not print progress messages
18318 -d, --debug don't remove temporary files
18319 --recheck update $as_me by reconfiguring in the same conditions
18320 --file=FILE[:TEMPLATE]
18321 instantiate the configuration file FILE
18322 --header=FILE[:TEMPLATE]
18323 instantiate the configuration header FILE
18324
18325Configuration files:
18326$config_files
18327
18328Configuration headers:
18329$config_headers
18330
18331Configuration commands:
18332$config_commands
18333
18334Report bugs to the package provider."
18335
18336_ACEOF
18337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18338ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18339ac_cs_version="\\
18340charybdis config.status 3.6.0-dev
18341configured by $0, generated by GNU Autoconf 2.69,
18342 with options \\"\$ac_cs_config\\"
18343
18344Copyright (C) 2012 Free Software Foundation, Inc.
18345This config.status script is free software; the Free Software Foundation
18346gives unlimited permission to copy, distribute and modify it."
18347
18348ac_pwd='$ac_pwd'
18349srcdir='$srcdir'
18350INSTALL='$INSTALL'
18351MKDIR_P='$MKDIR_P'
18352AWK='$AWK'
18353test -n "\$AWK" || AWK=awk
18354_ACEOF
18355
18356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18357# The default lists apply if the user does not specify any file.
18358ac_need_defaults=:
18359while test $# != 0
18360do
18361 case $1 in
18362 --*=?*)
18363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18365 ac_shift=:
18366 ;;
18367 --*=)
18368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18369 ac_optarg=
18370 ac_shift=:
18371 ;;
18372 *)
18373 ac_option=$1
18374 ac_optarg=$2
18375 ac_shift=shift
18376 ;;
18377 esac
18378
18379 case $ac_option in
18380 # Handling of the options.
18381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18382 ac_cs_recheck=: ;;
18383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18384 $as_echo "$ac_cs_version"; exit ;;
18385 --config | --confi | --conf | --con | --co | --c )
18386 $as_echo "$ac_cs_config"; exit ;;
18387 --debug | --debu | --deb | --de | --d | -d )
18388 debug=: ;;
18389 --file | --fil | --fi | --f )
18390 $ac_shift
18391 case $ac_optarg in
18392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18393 '') as_fn_error $? "missing file argument" ;;
18394 esac
18395 as_fn_append CONFIG_FILES " '$ac_optarg'"
18396 ac_need_defaults=false;;
18397 --header | --heade | --head | --hea )
18398 $ac_shift
18399 case $ac_optarg in
18400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18401 esac
18402 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18403 ac_need_defaults=false;;
18404 --he | --h)
18405 # Conflict between --help and --header
18406 as_fn_error $? "ambiguous option: \`$1'
18407Try \`$0 --help' for more information.";;
18408 --help | --hel | -h )
18409 $as_echo "$ac_cs_usage"; exit ;;
18410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18411 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18412 ac_cs_silent=: ;;
18413
18414 # This is an error.
18415 -*) as_fn_error $? "unrecognized option: \`$1'
18416Try \`$0 --help' for more information." ;;
18417
18418 *) as_fn_append ac_config_targets " $1"
18419 ac_need_defaults=false ;;
18420
18421 esac
18422 shift
18423done
18424
18425ac_configure_extra_args=
18426
18427if $ac_cs_silent; then
18428 exec 6>/dev/null
18429 ac_configure_extra_args="$ac_configure_extra_args --silent"
18430fi
18431
18432_ACEOF
18433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434if \$ac_cs_recheck; then
18435 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18436 shift
18437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18438 CONFIG_SHELL='$SHELL'
18439 export CONFIG_SHELL
18440 exec "\$@"
18441fi
18442
18443_ACEOF
18444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18445exec 5>>config.log
18446{
18447 echo
18448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18449## Running $as_me. ##
18450_ASBOX
18451 $as_echo "$ac_log"
18452} >&5
18453
18454_ACEOF
18455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18456#
18457# INIT-COMMANDS
18458#
18459AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18460
18461
18462# The HP-UX ksh and POSIX shell print the target directory to stdout
18463# if CDPATH is set.
18464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18465
18466sed_quote_subst='$sed_quote_subst'
18467double_quote_subst='$double_quote_subst'
18468delay_variable_subst='$delay_variable_subst'
18469macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18470macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18471enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18472enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18473pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18474enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18475SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18476ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18477PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18478host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18479host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18480host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18481build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18482build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18483build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18484SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18485Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18486GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18487EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18488FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18489LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18490NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18491LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18492max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18493ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18494exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18495lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18496lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18497lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18498lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18499lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18500reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18501reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18502OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18503deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18504file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18505file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18506want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18507DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18508sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18509AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18510AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18511archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18512STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18513RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18514old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18515old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18516old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18517lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18518CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18519CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18520compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18521GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18522lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18523lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18524lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18525lt_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"`'
18526nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18527lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18528objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18529MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18530lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18531lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18532lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18533lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18534lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18535need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18536MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18537DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18538NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18539LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18540OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18541OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18542libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18543shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18544extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18545archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18546enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18547export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18548whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18549compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18550old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18551old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18552archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18553archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18554module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18555module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18556with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18557allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18558no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18559hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18560hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18561hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18562hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18563hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18564hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18565hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18566inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18567link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18568always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18569export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18570exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18571include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18572prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18573postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18574file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18575variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18576need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18577need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18578version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18579runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18580shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18581shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18582libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18583library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18584soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18585install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18586postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18587postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18588finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18589finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18590hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18591sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18592sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18593hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18594enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18595enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18596enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18597old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18598striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18599
18600LTCC='$LTCC'
18601LTCFLAGS='$LTCFLAGS'
18602compiler='$compiler_DEFAULT'
18603
18604# A function that is used when there is no print builtin or printf.
18605func_fallback_echo ()
18606{
18607 eval 'cat <<_LTECHO_EOF
18608\$1
18609_LTECHO_EOF'
18610}
18611
18612# Quote evaled strings.
18613for var in SHELL \
18614ECHO \
18615PATH_SEPARATOR \
18616SED \
18617GREP \
18618EGREP \
18619FGREP \
18620LD \
18621NM \
18622LN_S \
18623lt_SP2NL \
18624lt_NL2SP \
18625reload_flag \
18626OBJDUMP \
18627deplibs_check_method \
18628file_magic_cmd \
18629file_magic_glob \
18630want_nocaseglob \
18631DLLTOOL \
18632sharedlib_from_linklib_cmd \
18633AR \
18634AR_FLAGS \
18635archiver_list_spec \
18636STRIP \
18637RANLIB \
18638CC \
18639CFLAGS \
18640compiler \
18641lt_cv_sys_global_symbol_pipe \
18642lt_cv_sys_global_symbol_to_cdecl \
18643lt_cv_sys_global_symbol_to_c_name_address \
18644lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18645nm_file_list_spec \
18646lt_prog_compiler_no_builtin_flag \
18647lt_prog_compiler_pic \
18648lt_prog_compiler_wl \
18649lt_prog_compiler_static \
18650lt_cv_prog_compiler_c_o \
18651need_locks \
18652MANIFEST_TOOL \
18653DSYMUTIL \
18654NMEDIT \
18655LIPO \
18656OTOOL \
18657OTOOL64 \
18658shrext_cmds \
18659export_dynamic_flag_spec \
18660whole_archive_flag_spec \
18661compiler_needs_object \
18662with_gnu_ld \
18663allow_undefined_flag \
18664no_undefined_flag \
18665hardcode_libdir_flag_spec \
18666hardcode_libdir_separator \
18667exclude_expsyms \
18668include_expsyms \
18669file_list_spec \
18670variables_saved_for_relink \
18671libname_spec \
18672library_names_spec \
18673soname_spec \
18674install_override_mode \
18675finish_eval \
18676old_striplib \
18677striplib; do
18678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18679 *[\\\\\\\`\\"\\\$]*)
18680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18681 ;;
18682 *)
18683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18684 ;;
18685 esac
18686done
18687
18688# Double-quote double-evaled strings.
18689for var in reload_cmds \
18690old_postinstall_cmds \
18691old_postuninstall_cmds \
18692old_archive_cmds \
18693extract_expsyms_cmds \
18694old_archive_from_new_cmds \
18695old_archive_from_expsyms_cmds \
18696archive_cmds \
18697archive_expsym_cmds \
18698module_cmds \
18699module_expsym_cmds \
18700export_symbols_cmds \
18701prelink_cmds \
18702postlink_cmds \
18703postinstall_cmds \
18704postuninstall_cmds \
18705finish_cmds \
18706sys_lib_search_path_spec \
18707sys_lib_dlsearch_path_spec; do
18708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18709 *[\\\\\\\`\\"\\\$]*)
18710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18711 ;;
18712 *)
18713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18714 ;;
18715 esac
18716done
18717
18718ac_aux_dir='$ac_aux_dir'
18719xsi_shell='$xsi_shell'
18720lt_shell_append='$lt_shell_append'
18721
18722# See if we are running on zsh, and set the options which allow our
18723# commands through without removal of \ escapes INIT.
18724if test -n "\${ZSH_VERSION+set}" ; then
18725 setopt NO_GLOB_SUBST
18726fi
18727
18728
18729 PACKAGE='$PACKAGE'
18730 VERSION='$VERSION'
18731 TIMESTAMP='$TIMESTAMP'
18732 RM='$RM'
18733 ofile='$ofile'
18734
18735
18736
18737
18738_ACEOF
18739
18740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741
18742# Handling of arguments.
18743for ac_config_target in $ac_config_targets
18744do
18745 case $ac_config_target in
18746 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
18747 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18748 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18749 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18750 "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;;
18751 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
18752 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
18753 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
18754 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
18755 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18756 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18757 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
18758 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18759 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18760 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
18761
18762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18763 esac
18764done
18765
18766
18767# If the user did not use the arguments to specify the items to instantiate,
18768# then the envvar interface is used. Set only those that are not.
18769# We use the long form for the default assignment because of an extremely
18770# bizarre bug on SunOS 4.1.3.
18771if $ac_need_defaults; then
18772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18775fi
18776
18777# Have a temporary directory for convenience. Make it in the build tree
18778# simply because there is no reason against having it here, and in addition,
18779# creating and moving files from /tmp can sometimes cause problems.
18780# Hook for its removal unless debugging.
18781# Note that there is a small window in which the directory will not be cleaned:
18782# after its creation but before its name has been assigned to `$tmp'.
18783$debug ||
18784{
18785 tmp= ac_tmp=
18786 trap 'exit_status=$?
18787 : "${ac_tmp:=$tmp}"
18788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18789' 0
18790 trap 'as_fn_exit 1' 1 2 13 15
18791}
18792# Create a (secure) tmp directory for tmp files.
18793
18794{
18795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18796 test -d "$tmp"
18797} ||
18798{
18799 tmp=./conf$$-$RANDOM
18800 (umask 077 && mkdir "$tmp")
18801} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18802ac_tmp=$tmp
18803
18804# Set up the scripts for CONFIG_FILES section.
18805# No need to generate them if there are no CONFIG_FILES.
18806# This happens for instance with `./config.status config.h'.
18807if test -n "$CONFIG_FILES"; then
18808
18809
18810ac_cr=`echo X | tr X '\015'`
18811# On cygwin, bash can eat \r inside `` if the user requested igncr.
18812# But we know of no other shell where ac_cr would be empty at this
18813# point, so we can use a bashism as a fallback.
18814if test "x$ac_cr" = x; then
18815 eval ac_cr=\$\'\\r\'
18816fi
18817ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18818if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18819 ac_cs_awk_cr='\\r'
18820else
18821 ac_cs_awk_cr=$ac_cr
18822fi
18823
18824echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18825_ACEOF
18826
18827
18828{
18829 echo "cat >conf$$subs.awk <<_ACEOF" &&
18830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18831 echo "_ACEOF"
18832} >conf$$subs.sh ||
18833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18834ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18835ac_delim='%!_!# '
18836for ac_last_try in false false false false false :; do
18837 . ./conf$$subs.sh ||
18838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18839
18840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18841 if test $ac_delim_n = $ac_delim_num; then
18842 break
18843 elif $ac_last_try; then
18844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18845 else
18846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18847 fi
18848done
18849rm -f conf$$subs.sh
18850
18851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18852cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18853_ACEOF
18854sed -n '
18855h
18856s/^/S["/; s/!.*/"]=/
18857p
18858g
18859s/^[^!]*!//
18860:repl
18861t repl
18862s/'"$ac_delim"'$//
18863t delim
18864:nl
18865h
18866s/\(.\{148\}\)..*/\1/
18867t more1
18868s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18869p
18870n
18871b repl
18872:more1
18873s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18874p
18875g
18876s/.\{148\}//
18877t nl
18878:delim
18879h
18880s/\(.\{148\}\)..*/\1/
18881t more2
18882s/["\\]/\\&/g; s/^/"/; s/$/"/
18883p
18884b
18885:more2
18886s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18887p
18888g
18889s/.\{148\}//
18890t delim
18891' <conf$$subs.awk | sed '
18892/^[^""]/{
18893 N
18894 s/\n//
18895}
18896' >>$CONFIG_STATUS || ac_write_fail=1
18897rm -f conf$$subs.awk
18898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18899_ACAWK
18900cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18901 for (key in S) S_is_set[key] = 1
18902 FS = "\a"
18903
18904}
18905{
18906 line = $ 0
18907 nfields = split(line, field, "@")
18908 substed = 0
18909 len = length(field[1])
18910 for (i = 2; i < nfields; i++) {
18911 key = field[i]
18912 keylen = length(key)
18913 if (S_is_set[key]) {
18914 value = S[key]
18915 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18916 len += length(value) + length(field[++i])
18917 substed = 1
18918 } else
18919 len += 1 + keylen
18920 }
18921
18922 print line
18923}
18924
18925_ACAWK
18926_ACEOF
18927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18928if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18930else
18931 cat
18932fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18933 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18934_ACEOF
18935
18936# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18937# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18938# trailing colons and then remove the whole line if VPATH becomes empty
18939# (actually we leave an empty line to preserve line numbers).
18940if test "x$srcdir" = x.; then
18941 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18942h
18943s///
18944s/^/:/
18945s/[ ]*$/:/
18946s/:\$(srcdir):/:/g
18947s/:\${srcdir}:/:/g
18948s/:@srcdir@:/:/g
18949s/^:*//
18950s/:*$//
18951x
18952s/\(=[ ]*\).*/\1/
18953G
18954s/\n//
18955s/^[^=]*=[ ]*$//
18956}'
18957fi
18958
18959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18960fi # test -n "$CONFIG_FILES"
18961
18962# Set up the scripts for CONFIG_HEADERS section.
18963# No need to generate them if there are no CONFIG_HEADERS.
18964# This happens for instance with `./config.status Makefile'.
18965if test -n "$CONFIG_HEADERS"; then
18966cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18967BEGIN {
18968_ACEOF
18969
18970# Transform confdefs.h into an awk script `defines.awk', embedded as
18971# here-document in config.status, that substitutes the proper values into
18972# config.h.in to produce config.h.
18973
18974# Create a delimiter string that does not exist in confdefs.h, to ease
18975# handling of long lines.
18976ac_delim='%!_!# '
18977for ac_last_try in false false :; do
18978 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18979 if test -z "$ac_tt"; then
18980 break
18981 elif $ac_last_try; then
18982 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18983 else
18984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18985 fi
18986done
18987
18988# For the awk script, D is an array of macro values keyed by name,
18989# likewise P contains macro parameters if any. Preserve backslash
18990# newline sequences.
18991
18992ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18993sed -n '
18994s/.\{148\}/&'"$ac_delim"'/g
18995t rset
18996:rset
18997s/^[ ]*#[ ]*define[ ][ ]*/ /
18998t def
18999d
19000:def
19001s/\\$//
19002t bsnl
19003s/["\\]/\\&/g
19004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19005D["\1"]=" \3"/p
19006s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19007d
19008:bsnl
19009s/["\\]/\\&/g
19010s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19011D["\1"]=" \3\\\\\\n"\\/p
19012t cont
19013s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19014t cont
19015d
19016:cont
19017n
19018s/.\{148\}/&'"$ac_delim"'/g
19019t clear
19020:clear
19021s/\\$//
19022t bsnlc
19023s/["\\]/\\&/g; s/^/"/; s/$/"/p
19024d
19025:bsnlc
19026s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19027b cont
19028' <confdefs.h | sed '
19029s/'"$ac_delim"'/"\\\
19030"/g' >>$CONFIG_STATUS || ac_write_fail=1
19031
19032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19033 for (key in D) D_is_set[key] = 1
19034 FS = "\a"
19035}
19036/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19037 line = \$ 0
19038 split(line, arg, " ")
19039 if (arg[1] == "#") {
19040 defundef = arg[2]
19041 mac1 = arg[3]
19042 } else {
19043 defundef = substr(arg[1], 2)
19044 mac1 = arg[2]
19045 }
19046 split(mac1, mac2, "(") #)
19047 macro = mac2[1]
19048 prefix = substr(line, 1, index(line, defundef) - 1)
19049 if (D_is_set[macro]) {
19050 # Preserve the white space surrounding the "#".
19051 print prefix "define", macro P[macro] D[macro]
19052 next
19053 } else {
19054 # Replace #undef with comments. This is necessary, for example,
19055 # in the case of _POSIX_SOURCE, which is predefined and required
19056 # on some systems where configure will not decide to define it.
19057 if (defundef == "undef") {
19058 print "/*", prefix defundef, macro, "*/"
19059 next
19060 }
19061 }
19062}
19063{ print }
19064_ACAWK
19065_ACEOF
19066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19067 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19068fi # test -n "$CONFIG_HEADERS"
19069
19070
19071eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19072shift
19073for ac_tag
19074do
19075 case $ac_tag in
19076 :[FHLC]) ac_mode=$ac_tag; continue;;
19077 esac
19078 case $ac_mode$ac_tag in
19079 :[FHL]*:*);;
19080 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19081 :[FH]-) ac_tag=-:-;;
19082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19083 esac
19084 ac_save_IFS=$IFS
19085 IFS=:
19086 set x $ac_tag
19087 IFS=$ac_save_IFS
19088 shift
19089 ac_file=$1
19090 shift
19091
19092 case $ac_mode in
19093 :L) ac_source=$1;;
19094 :[FH])
19095 ac_file_inputs=
19096 for ac_f
19097 do
19098 case $ac_f in
19099 -) ac_f="$ac_tmp/stdin";;
19100 *) # Look for the file first in the build tree, then in the source tree
19101 # (if the path is not absolute). The absolute path cannot be DOS-style,
19102 # because $ac_f cannot contain `:'.
19103 test -f "$ac_f" ||
19104 case $ac_f in
19105 [\\/$]*) false;;
19106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19107 esac ||
19108 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19109 esac
19110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19111 as_fn_append ac_file_inputs " '$ac_f'"
19112 done
19113
19114 # Let's still pretend it is `configure' which instantiates (i.e., don't
19115 # use $as_me), people would be surprised to read:
19116 # /* config.h. Generated by config.status. */
19117 configure_input='Generated from '`
19118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19119 `' by configure.'
19120 if test x"$ac_file" != x-; then
19121 configure_input="$ac_file. $configure_input"
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19123$as_echo "$as_me: creating $ac_file" >&6;}
19124 fi
19125 # Neutralize special characters interpreted by sed in replacement strings.
19126 case $configure_input in #(
19127 *\&* | *\|* | *\\* )
19128 ac_sed_conf_input=`$as_echo "$configure_input" |
19129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19130 *) ac_sed_conf_input=$configure_input;;
19131 esac
19132
19133 case $ac_tag in
19134 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19136 esac
19137 ;;
19138 esac
19139
19140 ac_dir=`$as_dirname -- "$ac_file" ||
19141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19142 X"$ac_file" : 'X\(//\)[^/]' \| \
19143 X"$ac_file" : 'X\(//\)$' \| \
19144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19145$as_echo X"$ac_file" |
19146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19147 s//\1/
19148 q
19149 }
19150 /^X\(\/\/\)[^/].*/{
19151 s//\1/
19152 q
19153 }
19154 /^X\(\/\/\)$/{
19155 s//\1/
19156 q
19157 }
19158 /^X\(\/\).*/{
19159 s//\1/
19160 q
19161 }
19162 s/.*/./; q'`
19163 as_dir="$ac_dir"; as_fn_mkdir_p
19164 ac_builddir=.
19165
19166case "$ac_dir" in
19167.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19168*)
19169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19170 # A ".." for each directory in $ac_dir_suffix.
19171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19172 case $ac_top_builddir_sub in
19173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19175 esac ;;
19176esac
19177ac_abs_top_builddir=$ac_pwd
19178ac_abs_builddir=$ac_pwd$ac_dir_suffix
19179# for backward compatibility:
19180ac_top_builddir=$ac_top_build_prefix
19181
19182case $srcdir in
19183 .) # We are building in place.
19184 ac_srcdir=.
19185 ac_top_srcdir=$ac_top_builddir_sub
19186 ac_abs_top_srcdir=$ac_pwd ;;
19187 [\\/]* | ?:[\\/]* ) # Absolute name.
19188 ac_srcdir=$srcdir$ac_dir_suffix;
19189 ac_top_srcdir=$srcdir
19190 ac_abs_top_srcdir=$srcdir ;;
19191 *) # Relative name.
19192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19193 ac_top_srcdir=$ac_top_build_prefix$srcdir
19194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19195esac
19196ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19197
19198
19199 case $ac_mode in
19200 :F)
19201 #
19202 # CONFIG_FILE
19203 #
19204
19205 case $INSTALL in
19206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19208 esac
19209 ac_MKDIR_P=$MKDIR_P
19210 case $MKDIR_P in
19211 [\\/$]* | ?:[\\/]* ) ;;
19212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19213 esac
19214_ACEOF
19215
19216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217# If the template does not know about datarootdir, expand it.
19218# FIXME: This hack should be removed a few years after 2.60.
19219ac_datarootdir_hack=; ac_datarootdir_seen=
19220ac_sed_dataroot='
19221/datarootdir/ {
19222 p
19223 q
19224}
19225/@datadir@/p
19226/@docdir@/p
19227/@infodir@/p
19228/@localedir@/p
19229/@mandir@/p'
19230case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19231*datarootdir*) ac_datarootdir_seen=yes;;
19232*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19234$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19235_ACEOF
19236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19237 ac_datarootdir_hack='
19238 s&@datadir@&$datadir&g
19239 s&@docdir@&$docdir&g
19240 s&@infodir@&$infodir&g
19241 s&@localedir@&$localedir&g
19242 s&@mandir@&$mandir&g
19243 s&\\\${datarootdir}&$datarootdir&g' ;;
19244esac
19245_ACEOF
19246
19247# Neutralize VPATH when `$srcdir' = `.'.
19248# Shell code in configure.ac might set extrasub.
19249# FIXME: do we really want to maintain this feature?
19250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19251ac_sed_extra="$ac_vpsub
19252$extrasub
19253_ACEOF
19254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19255:t
19256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19257s|@configure_input@|$ac_sed_conf_input|;t t
19258s&@top_builddir@&$ac_top_builddir_sub&;t t
19259s&@top_build_prefix@&$ac_top_build_prefix&;t t
19260s&@srcdir@&$ac_srcdir&;t t
19261s&@abs_srcdir@&$ac_abs_srcdir&;t t
19262s&@top_srcdir@&$ac_top_srcdir&;t t
19263s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19264s&@builddir@&$ac_builddir&;t t
19265s&@abs_builddir@&$ac_abs_builddir&;t t
19266s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19267s&@INSTALL@&$ac_INSTALL&;t t
19268s&@MKDIR_P@&$ac_MKDIR_P&;t t
19269$ac_datarootdir_hack
19270"
19271eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19273
19274test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19277 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19279which seems to be undefined. Please make sure it is defined" >&5
19280$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19281which seems to be undefined. Please make sure it is defined" >&2;}
19282
19283 rm -f "$ac_tmp/stdin"
19284 case $ac_file in
19285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19287 esac \
19288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19289 ;;
19290 :H)
19291 #
19292 # CONFIG_HEADER
19293 #
19294 if test x"$ac_file" != x-; then
19295 {
19296 $as_echo "/* $configure_input */" \
19297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19298 } >"$ac_tmp/config.h" \
19299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19300 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19302$as_echo "$as_me: $ac_file is unchanged" >&6;}
19303 else
19304 rm -f "$ac_file"
19305 mv "$ac_tmp/config.h" "$ac_file" \
19306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19307 fi
19308 else
19309 $as_echo "/* $configure_input */" \
19310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19311 || as_fn_error $? "could not create -" "$LINENO" 5
19312 fi
19313# Compute "$ac_file"'s index in $config_headers.
19314_am_arg="$ac_file"
19315_am_stamp_count=1
19316for _am_header in $config_headers :; do
19317 case $_am_header in
19318 $_am_arg | $_am_arg:* )
19319 break ;;
19320 * )
19321 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19322 esac
19323done
19324echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19325$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19326 X"$_am_arg" : 'X\(//\)[^/]' \| \
19327 X"$_am_arg" : 'X\(//\)$' \| \
19328 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19329$as_echo X"$_am_arg" |
19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19331 s//\1/
19332 q
19333 }
19334 /^X\(\/\/\)[^/].*/{
19335 s//\1/
19336 q
19337 }
19338 /^X\(\/\/\)$/{
19339 s//\1/
19340 q
19341 }
19342 /^X\(\/\).*/{
19343 s//\1/
19344 q
19345 }
19346 s/.*/./; q'`/stamp-h$_am_stamp_count
19347 ;;
19348
19349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19350$as_echo "$as_me: executing $ac_file commands" >&6;}
19351 ;;
19352 esac
19353
19354
19355 case $ac_file$ac_mode in
19356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19357 # Older Autoconf quotes --file arguments for eval, but not when files
19358 # are listed without --file. Let's play safe and only enable the eval
19359 # if we detect the quoting.
19360 case $CONFIG_FILES in
19361 *\'*) eval set x "$CONFIG_FILES" ;;
19362 *) set x $CONFIG_FILES ;;
19363 esac
19364 shift
19365 for mf
19366 do
19367 # Strip MF so we end up with the name of the file.
19368 mf=`echo "$mf" | sed -e 's/:.*$//'`
19369 # Check whether this is an Automake generated Makefile or not.
19370 # We used to match only the files named 'Makefile.in', but
19371 # some people rename them; so instead we look at the file content.
19372 # Grep'ing the first line is not enough: some people post-process
19373 # each Makefile.in and add a new line on top of each file to say so.
19374 # Grep'ing the whole file is not good either: AIX grep has a line
19375 # limit of 2048, but all sed's we know have understand at least 4000.
19376 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19377 dirpart=`$as_dirname -- "$mf" ||
19378$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19379 X"$mf" : 'X\(//\)[^/]' \| \
19380 X"$mf" : 'X\(//\)$' \| \
19381 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19382$as_echo X"$mf" |
19383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19384 s//\1/
19385 q
19386 }
19387 /^X\(\/\/\)[^/].*/{
19388 s//\1/
19389 q
19390 }
19391 /^X\(\/\/\)$/{
19392 s//\1/
19393 q
19394 }
19395 /^X\(\/\).*/{
19396 s//\1/
19397 q
19398 }
19399 s/.*/./; q'`
19400 else
19401 continue
19402 fi
19403 # Extract the definition of DEPDIR, am__include, and am__quote
19404 # from the Makefile without running 'make'.
19405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19406 test -z "$DEPDIR" && continue
19407 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19408 test -z "$am__include" && continue
19409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19410 # Find all dependency output files, they are included files with
19411 # $(DEPDIR) in their names. We invoke sed twice because it is the
19412 # simplest approach to changing $(DEPDIR) to its actual value in the
19413 # expansion.
19414 for file in `sed -n "
19415 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19416 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19417 # Make sure the directory exists.
19418 test -f "$dirpart/$file" && continue
19419 fdir=`$as_dirname -- "$file" ||
19420$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19421 X"$file" : 'X\(//\)[^/]' \| \
19422 X"$file" : 'X\(//\)$' \| \
19423 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19424$as_echo X"$file" |
19425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19426 s//\1/
19427 q
19428 }
19429 /^X\(\/\/\)[^/].*/{
19430 s//\1/
19431 q
19432 }
19433 /^X\(\/\/\)$/{
19434 s//\1/
19435 q
19436 }
19437 /^X\(\/\).*/{
19438 s//\1/
19439 q
19440 }
19441 s/.*/./; q'`
19442 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19443 # echo "creating $dirpart/$file"
19444 echo '# dummy' > "$dirpart/$file"
19445 done
19446 done
19447}
19448 ;;
19449 "libtool":C)
19450
19451 # See if we are running on zsh, and set the options which allow our
19452 # commands through without removal of \ escapes.
19453 if test -n "${ZSH_VERSION+set}" ; then
19454 setopt NO_GLOB_SUBST
19455 fi
19456
19457 cfgfile="${ofile}T"
19458 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19459 $RM "$cfgfile"
19460
19461 cat <<_LT_EOF >> "$cfgfile"
19462#! $SHELL
19463
19464# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19465# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19466# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19467# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19468#
19469# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19470# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19471# Foundation, Inc.
19472# Written by Gordon Matzigkeit, 1996
19473#
19474# This file is part of GNU Libtool.
19475#
19476# GNU Libtool is free software; you can redistribute it and/or
19477# modify it under the terms of the GNU General Public License as
19478# published by the Free Software Foundation; either version 2 of
19479# the License, or (at your option) any later version.
19480#
19481# As a special exception to the GNU General Public License,
19482# if you distribute this file as part of a program or library that
19483# is built using GNU Libtool, you may include this file under the
19484# same distribution terms that you use for the rest of that program.
19485#
19486# GNU Libtool is distributed in the hope that it will be useful,
19487# but WITHOUT ANY WARRANTY; without even the implied warranty of
19488# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19489# GNU General Public License for more details.
19490#
19491# You should have received a copy of the GNU General Public License
19492# along with GNU Libtool; see the file COPYING. If not, a copy
19493# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19494# obtained by writing to the Free Software Foundation, Inc.,
19495# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19496
19497
19498# The names of the tagged configurations supported by this script.
19499available_tags=""
19500
19501# ### BEGIN LIBTOOL CONFIG
19502
19503# Which release of libtool.m4 was used?
19504macro_version=$macro_version
19505macro_revision=$macro_revision
19506
19507# Whether or not to build static libraries.
19508build_old_libs=$enable_static
19509
19510# Whether or not to build shared libraries.
19511build_libtool_libs=$enable_shared
19512
19513# What type of objects to build.
19514pic_mode=$pic_mode
19515
19516# Whether or not to optimize for fast installation.
19517fast_install=$enable_fast_install
19518
19519# Shell to use when invoking shell scripts.
19520SHELL=$lt_SHELL
19521
19522# An echo program that protects backslashes.
19523ECHO=$lt_ECHO
19524
19525# The PATH separator for the build system.
19526PATH_SEPARATOR=$lt_PATH_SEPARATOR
19527
19528# The host system.
19529host_alias=$host_alias
19530host=$host
19531host_os=$host_os
19532
19533# The build system.
19534build_alias=$build_alias
19535build=$build
19536build_os=$build_os
19537
19538# A sed program that does not truncate output.
19539SED=$lt_SED
19540
19541# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19542Xsed="\$SED -e 1s/^X//"
19543
19544# A grep program that handles long lines.
19545GREP=$lt_GREP
19546
19547# An ERE matcher.
19548EGREP=$lt_EGREP
19549
19550# A literal string matcher.
19551FGREP=$lt_FGREP
19552
19553# A BSD- or MS-compatible name lister.
19554NM=$lt_NM
19555
19556# Whether we need soft or hard links.
19557LN_S=$lt_LN_S
19558
19559# What is the maximum length of a command?
19560max_cmd_len=$max_cmd_len
19561
19562# Object file suffix (normally "o").
19563objext=$ac_objext
19564
19565# Executable file suffix (normally "").
19566exeext=$exeext
19567
19568# whether the shell understands "unset".
19569lt_unset=$lt_unset
19570
19571# turn spaces into newlines.
19572SP2NL=$lt_lt_SP2NL
19573
19574# turn newlines into spaces.
19575NL2SP=$lt_lt_NL2SP
19576
19577# convert \$build file names to \$host format.
19578to_host_file_cmd=$lt_cv_to_host_file_cmd
19579
19580# convert \$build files to toolchain format.
19581to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19582
19583# An object symbol dumper.
19584OBJDUMP=$lt_OBJDUMP
19585
19586# Method to check whether dependent libraries are shared objects.
19587deplibs_check_method=$lt_deplibs_check_method
19588
19589# Command to use when deplibs_check_method = "file_magic".
19590file_magic_cmd=$lt_file_magic_cmd
19591
19592# How to find potential files when deplibs_check_method = "file_magic".
19593file_magic_glob=$lt_file_magic_glob
19594
19595# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19596want_nocaseglob=$lt_want_nocaseglob
19597
19598# DLL creation program.
19599DLLTOOL=$lt_DLLTOOL
19600
19601# Command to associate shared and link libraries.
19602sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19603
19604# The archiver.
19605AR=$lt_AR
19606
19607# Flags to create an archive.
19608AR_FLAGS=$lt_AR_FLAGS
19609
19610# How to feed a file listing to the archiver.
19611archiver_list_spec=$lt_archiver_list_spec
19612
19613# A symbol stripping program.
19614STRIP=$lt_STRIP
19615
19616# Commands used to install an old-style archive.
19617RANLIB=$lt_RANLIB
19618old_postinstall_cmds=$lt_old_postinstall_cmds
19619old_postuninstall_cmds=$lt_old_postuninstall_cmds
19620
19621# Whether to use a lock for old archive extraction.
19622lock_old_archive_extraction=$lock_old_archive_extraction
19623
19624# A C compiler.
19625LTCC=$lt_CC
19626
19627# LTCC compiler flags.
19628LTCFLAGS=$lt_CFLAGS
19629
19630# Take the output of nm and produce a listing of raw symbols and C names.
19631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19632
19633# Transform the output of nm in a proper C declaration.
19634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19635
19636# Transform the output of nm in a C name address pair.
19637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19638
19639# Transform the output of nm in a C name address pair when lib prefix is needed.
19640global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19641
19642# Specify filename containing input files for \$NM.
19643nm_file_list_spec=$lt_nm_file_list_spec
19644
19645# The root where to search for dependent libraries,and in which our libraries should be installed.
19646lt_sysroot=$lt_sysroot
19647
19648# The name of the directory that contains temporary libtool files.
19649objdir=$objdir
19650
19651# Used to examine libraries when file_magic_cmd begins with "file".
19652MAGIC_CMD=$MAGIC_CMD
19653
19654# Must we lock files when doing compilation?
19655need_locks=$lt_need_locks
19656
19657# Manifest tool.
19658MANIFEST_TOOL=$lt_MANIFEST_TOOL
19659
19660# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19661DSYMUTIL=$lt_DSYMUTIL
19662
19663# Tool to change global to local symbols on Mac OS X.
19664NMEDIT=$lt_NMEDIT
19665
19666# Tool to manipulate fat objects and archives on Mac OS X.
19667LIPO=$lt_LIPO
19668
19669# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19670OTOOL=$lt_OTOOL
19671
19672# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19673OTOOL64=$lt_OTOOL64
19674
19675# Old archive suffix (normally "a").
19676libext=$libext
19677
19678# Shared library suffix (normally ".so").
19679shrext_cmds=$lt_shrext_cmds
19680
19681# The commands to extract the exported symbol list from a shared archive.
19682extract_expsyms_cmds=$lt_extract_expsyms_cmds
19683
19684# Variables whose values should be saved in libtool wrapper scripts and
19685# restored at link time.
19686variables_saved_for_relink=$lt_variables_saved_for_relink
19687
19688# Do we need the "lib" prefix for modules?
19689need_lib_prefix=$need_lib_prefix
19690
19691# Do we need a version for libraries?
19692need_version=$need_version
19693
19694# Library versioning type.
19695version_type=$version_type
19696
19697# Shared library runtime path variable.
19698runpath_var=$runpath_var
19699
19700# Shared library path variable.
19701shlibpath_var=$shlibpath_var
19702
19703# Is shlibpath searched before the hard-coded library search path?
19704shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19705
19706# Format of library name prefix.
19707libname_spec=$lt_libname_spec
19708
19709# List of archive names. First name is the real one, the rest are links.
19710# The last name is the one that the linker finds with -lNAME
19711library_names_spec=$lt_library_names_spec
19712
19713# The coded name of the library, if different from the real name.
19714soname_spec=$lt_soname_spec
19715
19716# Permission mode override for installation of shared libraries.
19717install_override_mode=$lt_install_override_mode
19718
19719# Command to use after installation of a shared archive.
19720postinstall_cmds=$lt_postinstall_cmds
19721
19722# Command to use after uninstallation of a shared archive.
19723postuninstall_cmds=$lt_postuninstall_cmds
19724
19725# Commands used to finish a libtool library installation in a directory.
19726finish_cmds=$lt_finish_cmds
19727
19728# As "finish_cmds", except a single script fragment to be evaled but
19729# not shown.
19730finish_eval=$lt_finish_eval
19731
19732# Whether we should hardcode library paths into libraries.
19733hardcode_into_libs=$hardcode_into_libs
19734
19735# Compile-time system search path for libraries.
19736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19737
19738# Run-time system search path for libraries.
19739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19740
19741# Whether dlopen is supported.
19742dlopen_support=$enable_dlopen
19743
19744# Whether dlopen of programs is supported.
19745dlopen_self=$enable_dlopen_self
19746
19747# Whether dlopen of statically linked programs is supported.
19748dlopen_self_static=$enable_dlopen_self_static
19749
19750# Commands to strip libraries.
19751old_striplib=$lt_old_striplib
19752striplib=$lt_striplib
19753
19754
19755# The linker used to build libraries.
19756LD=$lt_LD
19757
19758# How to create reloadable object files.
19759reload_flag=$lt_reload_flag
19760reload_cmds=$lt_reload_cmds
19761
19762# Commands used to build an old-style archive.
19763old_archive_cmds=$lt_old_archive_cmds
19764
19765# A language specific compiler.
19766CC=$lt_compiler
19767
19768# Is the compiler the GNU compiler?
19769with_gcc=$GCC
19770
19771# Compiler flag to turn off builtin functions.
19772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19773
19774# Additional compiler flags for building library objects.
19775pic_flag=$lt_lt_prog_compiler_pic
19776
19777# How to pass a linker flag through the compiler.
19778wl=$lt_lt_prog_compiler_wl
19779
19780# Compiler flag to prevent dynamic linking.
19781link_static_flag=$lt_lt_prog_compiler_static
19782
19783# Does compiler simultaneously support -c and -o options?
19784compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19785
19786# Whether or not to add -lc for building shared libraries.
19787build_libtool_need_lc=$archive_cmds_need_lc
19788
19789# Whether or not to disallow shared libs when runtime libs are static.
19790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19791
19792# Compiler flag to allow reflexive dlopens.
19793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19794
19795# Compiler flag to generate shared objects directly from archives.
19796whole_archive_flag_spec=$lt_whole_archive_flag_spec
19797
19798# Whether the compiler copes with passing no objects directly.
19799compiler_needs_object=$lt_compiler_needs_object
19800
19801# Create an old-style archive from a shared archive.
19802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19803
19804# Create a temporary old-style archive to link instead of a shared archive.
19805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19806
19807# Commands used to build a shared archive.
19808archive_cmds=$lt_archive_cmds
19809archive_expsym_cmds=$lt_archive_expsym_cmds
19810
19811# Commands used to build a loadable module if different from building
19812# a shared archive.
19813module_cmds=$lt_module_cmds
19814module_expsym_cmds=$lt_module_expsym_cmds
19815
19816# Whether we are building with GNU ld or not.
19817with_gnu_ld=$lt_with_gnu_ld
19818
19819# Flag that allows shared libraries with undefined symbols to be built.
19820allow_undefined_flag=$lt_allow_undefined_flag
19821
19822# Flag that enforces no undefined symbols.
19823no_undefined_flag=$lt_no_undefined_flag
19824
19825# Flag to hardcode \$libdir into a binary during linking.
19826# This must work even if \$libdir does not exist
19827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19828
19829# Whether we need a single "-rpath" flag with a separated argument.
19830hardcode_libdir_separator=$lt_hardcode_libdir_separator
19831
19832# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19833# DIR into the resulting binary.
19834hardcode_direct=$hardcode_direct
19835
19836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19837# DIR into the resulting binary and the resulting library dependency is
19838# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19839# library is relocated.
19840hardcode_direct_absolute=$hardcode_direct_absolute
19841
19842# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19843# into the resulting binary.
19844hardcode_minus_L=$hardcode_minus_L
19845
19846# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19847# into the resulting binary.
19848hardcode_shlibpath_var=$hardcode_shlibpath_var
19849
19850# Set to "yes" if building a shared library automatically hardcodes DIR
19851# into the library and all subsequent libraries and executables linked
19852# against it.
19853hardcode_automatic=$hardcode_automatic
19854
19855# Set to yes if linker adds runtime paths of dependent libraries
19856# to runtime path list.
19857inherit_rpath=$inherit_rpath
19858
19859# Whether libtool must link a program against all its dependency libraries.
19860link_all_deplibs=$link_all_deplibs
19861
19862# Set to "yes" if exported symbols are required.
19863always_export_symbols=$always_export_symbols
19864
19865# The commands to list exported symbols.
19866export_symbols_cmds=$lt_export_symbols_cmds
19867
19868# Symbols that should not be listed in the preloaded symbols.
19869exclude_expsyms=$lt_exclude_expsyms
19870
19871# Symbols that must always be exported.
19872include_expsyms=$lt_include_expsyms
19873
19874# Commands necessary for linking programs (against libraries) with templates.
19875prelink_cmds=$lt_prelink_cmds
19876
19877# Commands necessary for finishing linking programs.
19878postlink_cmds=$lt_postlink_cmds
19879
19880# Specify filename containing input files.
19881file_list_spec=$lt_file_list_spec
19882
19883# How to hardcode a shared library path into an executable.
19884hardcode_action=$hardcode_action
19885
19886# ### END LIBTOOL CONFIG
19887
19888_LT_EOF
19889
19890 case $host_os in
19891 aix3*)
19892 cat <<\_LT_EOF >> "$cfgfile"
19893# AIX sometimes has problems with the GCC collect2 program. For some
19894# reason, if we set the COLLECT_NAMES environment variable, the problems
19895# vanish in a puff of smoke.
19896if test "X${COLLECT_NAMES+set}" != Xset; then
19897 COLLECT_NAMES=
19898 export COLLECT_NAMES
19899fi
19900_LT_EOF
19901 ;;
19902 esac
19903
19904
19905ltmain="$ac_aux_dir/ltmain.sh"
19906
19907
19908 # We use sed instead of cat because bash on DJGPP gets confused if
19909 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19910 # text mode, it properly converts lines to CR/LF. This bash problem
19911 # is reportedly fixed, but why not run on old versions too?
19912 sed '$q' "$ltmain" >> "$cfgfile" \
19913 || (rm -f "$cfgfile"; exit 1)
19914
19915 if test x"$xsi_shell" = xyes; then
19916 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19917func_dirname ()\
19918{\
19919\ case ${1} in\
19920\ */*) func_dirname_result="${1%/*}${2}" ;;\
19921\ * ) func_dirname_result="${3}" ;;\
19922\ esac\
19923} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19924 && mv -f "$cfgfile.tmp" "$cfgfile" \
19925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19926test 0 -eq $? || _lt_function_replace_fail=:
19927
19928
19929 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19930func_basename ()\
19931{\
19932\ func_basename_result="${1##*/}"\
19933} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19934 && mv -f "$cfgfile.tmp" "$cfgfile" \
19935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19936test 0 -eq $? || _lt_function_replace_fail=:
19937
19938
19939 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19940func_dirname_and_basename ()\
19941{\
19942\ case ${1} in\
19943\ */*) func_dirname_result="${1%/*}${2}" ;;\
19944\ * ) func_dirname_result="${3}" ;;\
19945\ esac\
19946\ func_basename_result="${1##*/}"\
19947} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19948 && mv -f "$cfgfile.tmp" "$cfgfile" \
19949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19950test 0 -eq $? || _lt_function_replace_fail=:
19951
19952
19953 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19954func_stripname ()\
19955{\
19956\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19957\ # positional parameters, so assign one to ordinary parameter first.\
19958\ func_stripname_result=${3}\
19959\ func_stripname_result=${func_stripname_result#"${1}"}\
19960\ func_stripname_result=${func_stripname_result%"${2}"}\
19961} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19962 && mv -f "$cfgfile.tmp" "$cfgfile" \
19963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19964test 0 -eq $? || _lt_function_replace_fail=:
19965
19966
19967 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19968func_split_long_opt ()\
19969{\
19970\ func_split_long_opt_name=${1%%=*}\
19971\ func_split_long_opt_arg=${1#*=}\
19972} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19973 && mv -f "$cfgfile.tmp" "$cfgfile" \
19974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19975test 0 -eq $? || _lt_function_replace_fail=:
19976
19977
19978 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19979func_split_short_opt ()\
19980{\
19981\ func_split_short_opt_arg=${1#??}\
19982\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19983} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19984 && mv -f "$cfgfile.tmp" "$cfgfile" \
19985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19986test 0 -eq $? || _lt_function_replace_fail=:
19987
19988
19989 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19990func_lo2o ()\
19991{\
19992\ case ${1} in\
19993\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19994\ *) func_lo2o_result=${1} ;;\
19995\ esac\
19996} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19997 && mv -f "$cfgfile.tmp" "$cfgfile" \
19998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19999test 0 -eq $? || _lt_function_replace_fail=:
20000
20001
20002 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20003func_xform ()\
20004{\
20005 func_xform_result=${1%.*}.lo\
20006} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20007 && mv -f "$cfgfile.tmp" "$cfgfile" \
20008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20009test 0 -eq $? || _lt_function_replace_fail=:
20010
20011
20012 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20013func_arith ()\
20014{\
20015 func_arith_result=$(( $* ))\
20016} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20017 && mv -f "$cfgfile.tmp" "$cfgfile" \
20018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20019test 0 -eq $? || _lt_function_replace_fail=:
20020
20021
20022 sed -e '/^func_len ()$/,/^} # func_len /c\
20023func_len ()\
20024{\
20025 func_len_result=${#1}\
20026} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20027 && mv -f "$cfgfile.tmp" "$cfgfile" \
20028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20029test 0 -eq $? || _lt_function_replace_fail=:
20030
20031fi
20032
20033if test x"$lt_shell_append" = xyes; then
20034 sed -e '/^func_append ()$/,/^} # func_append /c\
20035func_append ()\
20036{\
20037 eval "${1}+=\\${2}"\
20038} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20039 && mv -f "$cfgfile.tmp" "$cfgfile" \
20040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20041test 0 -eq $? || _lt_function_replace_fail=:
20042
20043
20044 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20045func_append_quoted ()\
20046{\
20047\ func_quote_for_eval "${2}"\
20048\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20049} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20050 && mv -f "$cfgfile.tmp" "$cfgfile" \
20051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20052test 0 -eq $? || _lt_function_replace_fail=:
20053
20054
20055 # Save a `func_append' function call where possible by direct use of '+='
20056 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20057 && mv -f "$cfgfile.tmp" "$cfgfile" \
20058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20059 test 0 -eq $? || _lt_function_replace_fail=:
20060else
20061 # Save a `func_append' function call even when '+=' is not available
20062 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20063 && mv -f "$cfgfile.tmp" "$cfgfile" \
20064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20065 test 0 -eq $? || _lt_function_replace_fail=:
20066fi
20067
20068if test x"$_lt_function_replace_fail" = x":"; then
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20070$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20071fi
20072
20073
20074 mv -f "$cfgfile" "$ofile" ||
20075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20076 chmod +x "$ofile"
20077
20078 ;;
20079 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
20080
20081 esac
20082done # for ac_tag
20083
20084
20085as_fn_exit 0
20086_ACEOF
20087ac_clean_files=$ac_clean_files_save
20088
20089test $ac_write_fail = 0 ||
20090 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20091
20092
20093# configure is writing to config.log, and then calls config.status.
20094# config.status does its own redirection, appending to config.log.
20095# Unfortunately, on DOS this fails, as config.log is still kept open
20096# by configure, so config.status won't be able to write to it; its
20097# output is simply discarded. So we exec the FD to /dev/null,
20098# effectively closing config.log, so it can be properly (re)opened and
20099# appended to by config.status. When coming back to configure, we
20100# need to make the FD available again.
20101if test "$no_create" != yes; then
20102 ac_cs_success=:
20103 ac_config_status_args=
20104 test "$silent" = yes &&
20105 ac_config_status_args="$ac_config_status_args --quiet"
20106 exec 5>/dev/null
20107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20108 exec 5>>config.log
20109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20110 # would make configure fail if this is the last instruction.
20111 $ac_cs_success || as_fn_exit 1
20112fi
20113
20114#
20115# CONFIG_SUBDIRS section.
20116#
20117if test "$no_recursion" != yes; then
20118
20119 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20120 # so they do not pile up.
20121 ac_sub_configure_args=
20122 ac_prev=
20123 eval "set x $ac_configure_args"
20124 shift
20125 for ac_arg
20126 do
20127 if test -n "$ac_prev"; then
20128 ac_prev=
20129 continue
20130 fi
20131 case $ac_arg in
20132 -cache-file | --cache-file | --cache-fil | --cache-fi \
20133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20134 ac_prev=cache_file ;;
20135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20137 | --c=*)
20138 ;;
20139 --config-cache | -C)
20140 ;;
20141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20142 ac_prev=srcdir ;;
20143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20144 ;;
20145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20146 ac_prev=prefix ;;
20147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20148 ;;
20149 --disable-option-checking)
20150 ;;
20151 *)
20152 case $ac_arg in
20153 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20154 esac
20155 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
20156 esac
20157 done
20158
20159 # Always prepend --prefix to ensure using the same prefix
20160 # in subdir configurations.
20161 ac_arg="--prefix=$prefix"
20162 case $ac_arg in
20163 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20164 esac
20165 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20166
20167 # Pass --silent
20168 if test "$silent" = yes; then
20169 ac_sub_configure_args="--silent $ac_sub_configure_args"
20170 fi
20171
20172 # Always prepend --disable-option-checking to silence warnings, since
20173 # different subdirs can have different --enable and --with options.
20174 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20175
20176 ac_popdir=`pwd`
20177 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20178
20179 # Do not complain, so a configure script can configure whichever
20180 # parts of a large source tree are present.
20181 test -d "$srcdir/$ac_dir" || continue
20182
20183 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20184 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20185 $as_echo "$ac_msg" >&6
20186 as_dir="$ac_dir"; as_fn_mkdir_p
20187 ac_builddir=.
20188
20189case "$ac_dir" in
20190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20191*)
20192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20193 # A ".." for each directory in $ac_dir_suffix.
20194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20195 case $ac_top_builddir_sub in
20196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20198 esac ;;
20199esac
20200ac_abs_top_builddir=$ac_pwd
20201ac_abs_builddir=$ac_pwd$ac_dir_suffix
20202# for backward compatibility:
20203ac_top_builddir=$ac_top_build_prefix
20204
20205case $srcdir in
20206 .) # We are building in place.
20207 ac_srcdir=.
20208 ac_top_srcdir=$ac_top_builddir_sub
20209 ac_abs_top_srcdir=$ac_pwd ;;
20210 [\\/]* | ?:[\\/]* ) # Absolute name.
20211 ac_srcdir=$srcdir$ac_dir_suffix;
20212 ac_top_srcdir=$srcdir
20213 ac_abs_top_srcdir=$srcdir ;;
20214 *) # Relative name.
20215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20216 ac_top_srcdir=$ac_top_build_prefix$srcdir
20217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20218esac
20219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20220
20221
20222 cd "$ac_dir"
20223
20224 # Check for guested configure; otherwise get Cygnus style configure.
20225 if test -f "$ac_srcdir/configure.gnu"; then
20226 ac_sub_configure=$ac_srcdir/configure.gnu
20227 elif test -f "$ac_srcdir/configure"; then
20228 ac_sub_configure=$ac_srcdir/configure
20229 elif test -f "$ac_srcdir/configure.in"; then
20230 # This should be Cygnus configure.
20231 ac_sub_configure=$ac_aux_dir/configure
20232 else
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20234$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20235 ac_sub_configure=
20236 fi
20237
20238 # The recursion is here.
20239 if test -n "$ac_sub_configure"; then
20240 # Make the cache file name correct relative to the subdirectory.
20241 case $cache_file in
20242 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20243 *) # Relative name.
20244 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20245 esac
20246
20247 { $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
20248$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20249 # The eval makes quoting arguments work.
20250 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20251 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20252 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20253 fi
20254
20255 cd "$ac_popdir"
20256 done
20257fi
20258if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20260$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20261fi
20262
20263
20264if test "$cf_openssl_version_ok" = yes; then
20265 openssl="yes"
20266else
20267 openssl="no"
20268fi
20269
20270echo "
20271Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
20272 Install directory : $prefix
20273
20274 Ziplinks : $zlib
20275 OpenSSL : $openssl
20276
20277 Nickname length : $NICKLEN
20278 Topic length : $TOPICLEN
20279
20280Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
20281"