Import Upstream version 0.69.0
[hcoop/debian/courier-authlib.git] / libs / rfc822 / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rfc822lib 0.13.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='rfc822lib'
592PACKAGE_TARNAME='rfc822lib'
593PACKAGE_VERSION='0.13'
594PACKAGE_STRING='rfc822lib 0.13'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="rfc822.c"
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_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_SGML_FALSE
640HAVE_SGML_TRUE
641LIBIDN_LIBS
642LIBIDN_CFLAGS
643PKG_CONFIG_LIBDIR
644PKG_CONFIG_PATH
645PKG_CONFIG
646LT_SYS_LIBRARY_PATH
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654ac_ct_AR
655AR
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673LIBTOOL
674EGREP
675GREP
676CPP
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_aix_soname
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772enable_largefile
773with_libidn
774'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP
784LT_SYS_LIBRARY_PATH
785PKG_CONFIG
786PKG_CONFIG_PATH
787PKG_CONFIG_LIBDIR
788LIBIDN_CFLAGS
789LIBIDN_LIBS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904"enable_$ac_useropt"
905"*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134"with_$ac_useropt"
1135"*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"with_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330\`configure' configures rfc822lib 0.13 to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of rfc822lib 0.13:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --disable-largefile omit support for large files
1420
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-aix-soname=aix|svr4|both
1427 shared library versioning (aka "SONAME") variant to
1428 provide on AIX, [default=aix].
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431 compiler's sysroot if not specified).
1432 --with-libidn=DIR Support IDN (needs GNU Libidn)
1433
1434Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 LT_SYS_LIBRARY_PATH
1444 User-defined run-time library search path.
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 LIBIDN_CFLAGS
1451 C compiler flags for LIBIDN, overriding pkg-config
1452 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to <courier-users@lists.sourceforge.net>.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519 cat <<\_ACEOF
1520rfc822lib configure 0.13
1521generated by GNU Autoconf 2.69
1522
1523Copyright (C) 2012 Free Software Foundation, Inc.
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527 exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570} # ac_fn_c_try_compile
1571
1572# ac_fn_c_try_cpp LINENO
1573# ----------------------
1574# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_cpp ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 }; then :
1597 ac_retval=0
1598else
1599 $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=1
1603fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607} # ac_fn_c_try_cpp
1608
1609# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1610# -------------------------------------------------------
1611# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1612# the include files in INCLUDES and setting the cache variable VAR
1613# accordingly.
1614ac_fn_c_check_header_mongrel ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if eval \${$3+:} false; then :
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1622fi
1623eval ac_res=\$$3
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625$as_echo "$ac_res" >&6; }
1626else
1627 # Is the header compilable?
1628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1629$as_echo_n "checking $2 usability... " >&6; }
1630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h. */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_header_compiler=yes
1637else
1638 ac_header_compiler=no
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1642$as_echo "$ac_header_compiler" >&6; }
1643
1644# Is the header present?
1645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1646$as_echo_n "checking $2 presence... " >&6; }
1647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h. */
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_cpp "$LINENO"; then :
1652 ac_header_preproc=yes
1653else
1654 ac_header_preproc=no
1655fi
1656rm -f conftest.err conftest.i conftest.$ac_ext
1657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1658$as_echo "$ac_header_preproc" >&6; }
1659
1660# So? What about this header?
1661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1662 yes:no: )
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1664$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ;;
1668 no:yes:* )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1670$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1672$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1674$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1676$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679( $as_echo "## -------------------------------------------------- ##
1680## Report this to courier-users@lists.sourceforge.net ##
1681## -------------------------------------------------- ##"
1682 ) | sed "s/^/$as_me: WARNING: /" >&2
1683 ;;
1684esac
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
1687if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689else
1690 eval "$3=\$ac_header_compiler"
1691fi
1692eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694$as_echo "$ac_res" >&6; }
1695fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698} # ac_fn_c_check_header_mongrel
1699
1700# ac_fn_c_try_run LINENO
1701# ----------------------
1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703# that executables *can* be run.
1704ac_fn_c_try_run ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=$ac_status
1735fi
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_run
1741
1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743# -------------------------------------------------------
1744# Tests whether HEADER exists and can be compiled using the include files in
1745# INCLUDES, setting the cache variable VAR accordingly.
1746ac_fn_c_check_header_compile ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
1751if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756$4
1757#include <$2>
1758_ACEOF
1759if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761else
1762 eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_header_compile
1772
1773# ac_fn_c_try_link LINENO
1774# -----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 test -x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817} # ac_fn_c_try_link
1818
1819# ac_fn_c_check_func LINENO FUNC VAR
1820# ----------------------------------
1821# Tests whether FUNC exists, setting the cache variable VAR accordingly
1822ac_fn_c_check_func ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
1827if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834#define $2 innocuous_$2
1835
1836/* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841#ifdef __STDC__
1842# include <limits.h>
1843#else
1844# include <assert.h>
1845#endif
1846
1847#undef $2
1848
1849/* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852#ifdef __cplusplus
1853extern "C"
1854#endif
1855char $2 ();
1856/* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859#if defined __stub_$2 || defined __stub___$2
1860choke me
1861#endif
1862
1863int
1864main ()
1865{
1866return $2 ();
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873else
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_func
1885
1886# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1887# -------------------------------------------
1888# Tests whether TYPE exists after having included INCLUDES, setting cache
1889# variable VAR accordingly.
1890ac_fn_c_check_type ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897else
1898 eval "$3=no"
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
1905if (sizeof ($2))
1906 return 0;
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918if (sizeof (($2)))
1919 return 0;
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925
1926else
1927 eval "$3=yes"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_type
1939cat >config.log <<_ACEOF
1940This file contains any messages produced by compilers while
1941running configure, to aid debugging if configure makes a mistake.
1942
1943It was created by rfc822lib $as_me 0.13, which was
1944generated by GNU Autoconf 2.69. Invocation command line was
1945
1946 $ $0 $@
1947
1948_ACEOF
1949exec 5>>config.log
1950{
1951cat <<_ASUNAME
1952## --------- ##
1953## Platform. ##
1954## --------- ##
1955
1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1964
1965/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1966/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1969/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1970/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1971/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1972
1973_ASUNAME
1974
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 $as_echo "PATH: $as_dir"
1981 done
1982IFS=$as_save_IFS
1983
1984} >&5
1985
1986cat >&5 <<_ACEOF
1987
1988
1989## ----------- ##
1990## Core tests. ##
1991## ----------- ##
1992
1993_ACEOF
1994
1995
1996# Keep a trace of the command line.
1997# Strip out --no-create and --no-recursion so they do not pile up.
1998# Strip out --silent because we don't want to record it for future runs.
1999# Also quote any args containing shell meta-characters.
2000# Make two passes to allow for proper duplicate-argument suppression.
2001ac_configure_args=
2002ac_configure_args0=
2003ac_configure_args1=
2004ac_must_keep_next=false
2005for ac_pass in 1 2
2006do
2007 for ac_arg
2008 do
2009 case $ac_arg in
2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012 | -silent | --silent | --silen | --sile | --sil)
2013 continue ;;
2014 *\'*)
2015 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016 esac
2017 case $ac_pass in
2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019 2)
2020 as_fn_append ac_configure_args1 " '$ac_arg'"
2021 if test $ac_must_keep_next = true; then
2022 ac_must_keep_next=false # Got value, back to normal.
2023 else
2024 case $ac_arg in
2025 *=* | --config-cache | -C | -disable-* | --disable-* \
2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028 | -with-* | --with-* | -without-* | --without-* | --x)
2029 case "$ac_configure_args0 " in
2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031 esac
2032 ;;
2033 -* ) ac_must_keep_next=true ;;
2034 esac
2035 fi
2036 as_fn_append ac_configure_args " '$ac_arg'"
2037 ;;
2038 esac
2039 done
2040done
2041{ ac_configure_args0=; unset ac_configure_args0;}
2042{ ac_configure_args1=; unset ac_configure_args1;}
2043
2044# When interrupted or exit'd, cleanup temporary files, and complete
2045# config.log. We remove comments because anyway the quotes in there
2046# would cause problems or look ugly.
2047# WARNING: Use '\'' to represent an apostrophe within the trap.
2048# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049trap 'exit_status=$?
2050 # Save into config.log some information that might help in debugging.
2051 {
2052 echo
2053
2054 $as_echo "## ---------------- ##
2055## Cache variables. ##
2056## ---------------- ##"
2057 echo
2058 # The following way of writing the cache mishandles newlines in values,
2059(
2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in #(
2063 *${as_nl}*)
2064 case $ac_var in #(
2065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067 esac
2068 case $ac_var in #(
2069 _ | IFS | as_nl) ;; #(
2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071 *) { eval $ac_var=; unset $ac_var;} ;;
2072 esac ;;
2073 esac
2074 done
2075 (set) 2>&1 |
2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077 *${as_nl}ac_space=\ *)
2078 sed -n \
2079 "s/'\''/'\''\\\\'\'''\''/g;
2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081 ;; #(
2082 *)
2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 ;;
2085 esac |
2086 sort
2087)
2088 echo
2089
2090 $as_echo "## ----------------- ##
2091## Output variables. ##
2092## ----------------- ##"
2093 echo
2094 for ac_var in $ac_subst_vars
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103
2104 if test -n "$ac_subst_files"; then
2105 $as_echo "## ------------------- ##
2106## File substitutions. ##
2107## ------------------- ##"
2108 echo
2109 for ac_var in $ac_subst_files
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118 fi
2119
2120 if test -s confdefs.h; then
2121 $as_echo "## ----------- ##
2122## confdefs.h. ##
2123## ----------- ##"
2124 echo
2125 cat confdefs.h
2126 echo
2127 fi
2128 test "$ac_signal" != 0 &&
2129 $as_echo "$as_me: caught signal $ac_signal"
2130 $as_echo "$as_me: exit $exit_status"
2131 } >&5
2132 rm -f core *.core core.conftest.* &&
2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134 exit $exit_status
2135' 0
2136for ac_signal in 1 2 13 15; do
2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138done
2139ac_signal=0
2140
2141# confdefs.h avoids OS command line length limits that DEFS can exceed.
2142rm -f -r conftest* confdefs.h
2143
2144$as_echo "/* confdefs.h */" > confdefs.h
2145
2146# Predefined preprocessor variables.
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_NAME "$PACKAGE_NAME"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_VERSION "$PACKAGE_VERSION"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_STRING "$PACKAGE_STRING"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_URL "$PACKAGE_URL"
2170_ACEOF
2171
2172
2173# Let the site file select an alternate cache file if it wants to.
2174# Prefer an explicitly selected file to automatically selected ones.
2175ac_site_file1=NONE
2176ac_site_file2=NONE
2177if test -n "$CONFIG_SITE"; then
2178 # We do not want a PATH search for config.site.
2179 case $CONFIG_SITE in #((
2180 -*) ac_site_file1=./$CONFIG_SITE;;
2181 */*) ac_site_file1=$CONFIG_SITE;;
2182 *) ac_site_file1=./$CONFIG_SITE;;
2183 esac
2184elif test "x$prefix" != xNONE; then
2185 ac_site_file1=$prefix/share/config.site
2186 ac_site_file2=$prefix/etc/config.site
2187else
2188 ac_site_file1=$ac_default_prefix/share/config.site
2189 ac_site_file2=$ac_default_prefix/etc/config.site
2190fi
2191for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192do
2193 test "x$ac_site_file" = xNONE && continue
2194 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2196$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197 sed 's/^/| /' "$ac_site_file" >&5
2198 . "$ac_site_file" \
2199 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201as_fn_error $? "failed to load site script $ac_site_file
2202See \`config.log' for more details" "$LINENO" 5; }
2203 fi
2204done
2205
2206if test -r "$cache_file"; then
2207 # Some versions of bash will fail to source /dev/null (special files
2208 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2209 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211$as_echo "$as_me: loading cache $cache_file" >&6;}
2212 case $cache_file in
2213 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214 *) . "./$cache_file";;
2215 esac
2216 fi
2217else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219$as_echo "$as_me: creating cache $cache_file" >&6;}
2220 >$cache_file
2221fi
2222
2223# Check that the precious variables saved in the cache have kept the same
2224# value.
2225ac_cache_corrupted=false
2226for ac_var in $ac_precious_vars; do
2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228 eval ac_new_set=\$ac_env_${ac_var}_set
2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230 eval ac_new_val=\$ac_env_${ac_var}_value
2231 case $ac_old_set,$ac_new_set in
2232 set,)
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235 ac_cache_corrupted=: ;;
2236 ,set)
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2240 ,);;
2241 *)
2242 if test "x$ac_old_val" != "x$ac_new_val"; then
2243 # differences in whitespace do not lead to failure.
2244 ac_old_val_w=`echo x $ac_old_val`
2245 ac_new_val_w=`echo x $ac_new_val`
2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249 ac_cache_corrupted=:
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253 eval $ac_var=\$ac_old_val
2254 fi
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2256$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2258$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2259 fi;;
2260 esac
2261 # Pass precious variables to config.status.
2262 if test "$ac_new_set" = set; then
2263 case $ac_new_val in
2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 *) ac_arg=$ac_var=$ac_new_val ;;
2266 esac
2267 case " $ac_configure_args " in
2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270 esac
2271 fi
2272done
2273if $ac_cache_corrupted; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279fi
2280## -------------------- ##
2281## Main body of script. ##
2282## -------------------- ##
2283
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291
2292>confdefs.h # Kill PACKAGE_ macros
2293
2294
2295ac_aux_dir=
2296for ac_dir in ../.. "$srcdir"/../..; do
2297 if test -f "$ac_dir/install-sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install-sh -c"
2300 break
2301 elif test -f "$ac_dir/install.sh"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/install.sh -c"
2304 break
2305 elif test -f "$ac_dir/shtool"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/shtool install -c"
2308 break
2309 fi
2310done
2311if test -z "$ac_aux_dir"; then
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2313fi
2314
2315# These three variables are undocumented and unsupported,
2316# and are intended to be withdrawn in a future Autoconf release.
2317# They can cause serious problems if a builder's source tree is in a directory
2318# whose full name contains unusual characters.
2319ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2320ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2321ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322
2323
2324am__api_version='1.15'
2325
2326# Find a good install program. We prefer a C program (faster),
2327# so one script is as good as another. But avoid the broken or
2328# incompatible versions:
2329# SysV /etc/install, /usr/sbin/install
2330# SunOS /usr/etc/install
2331# IRIX /sbin/install
2332# AIX /bin/install
2333# AmigaOS /C/install, which installs bootblocks on floppy discs
2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337# OS/2's system install, which has a completely different semantic
2338# ./install, which can be erroneously created by make from ./install.sh.
2339# Reject install programs that cannot install multiple files.
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341$as_echo_n "checking for a BSD-compatible install... " >&6; }
2342if test -z "$INSTALL"; then
2343if ${ac_cv_path_install+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2384 fi
2385 fi
2386 fi
2387 done
2388 done
2389 ;;
2390esac
2391
2392 done
2393IFS=$as_save_IFS
2394
2395rm -rf conftest.one conftest.two conftest.dir
2396
2397fi
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2406 fi
2407fi
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409$as_echo "$INSTALL" >&6; }
2410
2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412# It thinks the first close brace ends the variable substitution.
2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420$as_echo_n "checking whether build environment is sane... " >&6; }
2421# Reject unsafe characters in $srcdir or the absolute working directory
2422# name. Accept space and tab only in the latter.
2423am_lf='
2424'
2425case `pwd` in
2426 *[\\\"\#\$\&\'\`$am_lf]*)
2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428esac
2429case $srcdir in
2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432esac
2433
2434# Do 'set' in a subshell so we don't clobber the current shell's
2435# arguments. Must try -L first in case configure is actually a
2436# symlink; some systems play weird games with the mod time of symlinks
2437# (eg FreeBSD returns the mod time of the symlink's containing
2438# directory).
2439if (
2440 am_has_slept=no
2441 for am_try in 1 2; do
2442 echo "timestamp, slept: $am_has_slept" > conftest.file
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2447 fi
2448 if test "$*" != "X $srcdir/configure conftest.file" \
2449 && test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451 # If neither matched, then we have a broken ls. This can happen
2452 # if, for instance, CONFIG_SHELL is bash and it inherits a
2453 # broken ls alias from the environment. This has actually
2454 # happened. Such a system could not be considered "sane".
2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2456 alias in your environment" "$LINENO" 5
2457 fi
2458 if test "$2" = conftest.file || test $am_try -eq 2; then
2459 break
2460 fi
2461 # Just in case.
2462 sleep 1
2463 am_has_slept=yes
2464 done
2465 test "$2" = conftest.file
2466 )
2467then
2468 # Ok.
2469 :
2470else
2471 as_fn_error $? "newly created file is older than distributed files!
2472Check your system clock" "$LINENO" 5
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475$as_echo "yes" >&6; }
2476# If we didn't sleep, we still need to ensure time stamps of config.status and
2477# generated files are strictly newer.
2478am_sleep_pid=
2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480 ( sleep 1 ) &
2481 am_sleep_pid=$!
2482fi
2483
2484rm -f conftest.file
2485
2486test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488# Use a double $ so make ignores it.
2489test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491# Double any \ or $.
2492# By default was `s,x,x', remove it if useless.
2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496# Expand $ac_aux_dir to an absolute path.
2497am_aux_dir=`cd "$ac_aux_dir" && pwd`
2498
2499if test x"${MISSING+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 *)
2504 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505 esac
2506fi
2507# Use eval to expand $SHELL
2508if eval "$MISSING --is-lightweight"; then
2509 am_missing_run="$MISSING "
2510else
2511 am_missing_run=
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514fi
2515
2516if test x"${install_sh+set}" != xset; then
2517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 *)
2521 install_sh="\${SHELL} $am_aux_dir/install-sh"
2522 esac
2523fi
2524
2525# Installed binaries are usually stripped using 'strip' when the user
2526# run "make install-strip". However 'strip' might not be the right
2527# tool to use in cross-compilation environments, therefore Automake
2528# will honor the 'STRIP' environment variable to overrule this program.
2529if test "$cross_compiling" != no; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}strip; ac_word=$2
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534$as_echo_n "checking for $ac_word... " >&6; }
2535if ${ac_cv_prog_STRIP+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537else
2538 if test -n "$STRIP"; then
2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553 done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558STRIP=$ac_cv_prog_STRIP
2559if test -n "$STRIP"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2561$as_echo "$STRIP" >&6; }
2562else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564$as_echo "no" >&6; }
2565fi
2566
2567
2568fi
2569if test -z "$ac_cv_prog_STRIP"; then
2570 ac_ct_STRIP=$STRIP
2571 # Extract the first word of "strip", so it can be a program name with args.
2572set dummy strip; ac_word=$2
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574$as_echo_n "checking for $ac_word... " >&6; }
2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 if test -n "$ac_ct_STRIP"; then
2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_STRIP="strip"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593 done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599if test -n "$ac_ct_STRIP"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2601$as_echo "$ac_ct_STRIP" >&6; }
2602else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604$as_echo "no" >&6; }
2605fi
2606
2607 if test "x$ac_ct_STRIP" = x; then
2608 STRIP=":"
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611yes:)
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614ac_tool_warned=yes ;;
2615esac
2616 STRIP=$ac_ct_STRIP
2617 fi
2618else
2619 STRIP="$ac_cv_prog_STRIP"
2620fi
2621
2622fi
2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2627if test -z "$MKDIR_P"; then
2628 if ${ac_cv_path_mkdir+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in mkdir gmkdir; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640 'mkdir (GNU coreutils) '* | \
2641 'mkdir (coreutils) '* | \
2642 'mkdir (fileutils) '4.1*)
2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644 break 3;;
2645 esac
2646 done
2647 done
2648 done
2649IFS=$as_save_IFS
2650
2651fi
2652
2653 test -d ./--version && rmdir ./--version
2654 if test "${ac_cv_path_mkdir+set}" = set; then
2655 MKDIR_P="$ac_cv_path_mkdir -p"
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for MKDIR_P within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
2661 MKDIR_P="$ac_install_sh -d"
2662 fi
2663fi
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2665$as_echo "$MKDIR_P" >&6; }
2666
2667for ac_prog in gawk mawk nawk awk
2668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_AWK+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675else
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691 done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696AWK=$ac_cv_prog_AWK
2697if test -n "$AWK"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699$as_echo "$AWK" >&6; }
2700else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702$as_echo "no" >&6; }
2703fi
2704
2705
2706 test -n "$AWK" && break
2707done
2708
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711set x ${MAKE-make}
2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715else
2716 cat >conftest.make <<\_ACEOF
2717SHELL = /bin/sh
2718all:
2719 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720_ACEOF
2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2722case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 *@@@%%%=?*=@@@%%%*)
2724 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 *)
2726 eval ac_cv_prog_make_${ac_make}_set=no;;
2727esac
2728rm -f conftest.make
2729fi
2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732$as_echo "yes" >&6; }
2733 SET_MAKE=
2734else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737 SET_MAKE="MAKE=${MAKE-make}"
2738fi
2739
2740rm -rf .tst 2>/dev/null
2741mkdir .tst 2>/dev/null
2742if test -d .tst; then
2743 am__leading_dot=.
2744else
2745 am__leading_dot=_
2746fi
2747rmdir .tst 2>/dev/null
2748
2749# Check whether --enable-silent-rules was given.
2750if test "${enable_silent_rules+set}" = set; then :
2751 enableval=$enable_silent_rules;
2752fi
2753
2754case $enable_silent_rules in # (((
2755 yes) AM_DEFAULT_VERBOSITY=0;;
2756 no) AM_DEFAULT_VERBOSITY=1;;
2757 *) AM_DEFAULT_VERBOSITY=1;;
2758esac
2759am_make=${MAKE-make}
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762if ${am_cv_make_support_nested_variables+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764else
2765 if $as_echo 'TRUE=$(BAR$(V))
2766BAR0=false
2767BAR1=true
2768V=1
2769am__doit:
2770 @$(TRUE)
2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772 am_cv_make_support_nested_variables=yes
2773else
2774 am_cv_make_support_nested_variables=no
2775fi
2776fi
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778$as_echo "$am_cv_make_support_nested_variables" >&6; }
2779if test $am_cv_make_support_nested_variables = yes; then
2780 AM_V='$(V)'
2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2782else
2783 AM_V=$AM_DEFAULT_VERBOSITY
2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2785fi
2786AM_BACKSLASH='\'
2787
2788if test "`cd $srcdir && pwd`" != "`pwd`"; then
2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2790 # is not polluted with repeated "-I."
2791 am__isrc=' -I$(srcdir)'
2792 # test to see if srcdir already configured
2793 if test -f $srcdir/config.status; then
2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2795 fi
2796fi
2797
2798# test whether we have cygpath
2799if test -z "$CYGPATH_W"; then
2800 if (cygpath --version) >/dev/null 2>/dev/null; then
2801 CYGPATH_W='cygpath -w'
2802 else
2803 CYGPATH_W=echo
2804 fi
2805fi
2806
2807
2808# Define the identity of the package.
2809 PACKAGE='rfc822lib'
2810 VERSION='0.13'
2811
2812
2813# Some tools Automake needs.
2814
2815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816
2817
2818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819
2820
2821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822
2823
2824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
2826
2827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828
2829# For better backward compatibility. To be removed once Automake 1.9.x
2830# dies out for good. For more background, see:
2831# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2832# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2833mkdir_p='$(MKDIR_P)'
2834
2835# We need awk for the "check" target (and possibly the TAP driver). The
2836# system "awk" is bad on some platforms.
2837# Always define AMTAR for backward compatibility. Yes, it's still used
2838# in the wild :-( We should find a proper way to deprecate it ...
2839AMTAR='$${TAR-tar}'
2840
2841
2842# We'll loop over all known methods to create a tar archive until one works.
2843_am_tools='gnutar pax cpio none'
2844
2845am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846
2847
2848
2849
2850
2851
2852# POSIX will say in a future version that running "rm -f" with no argument
2853# is OK; and we want to be able to make that assumption in our Makefile
2854# recipes. So use an aggressive probe to check that the usage we want is
2855# actually supported "in the wild" to an acceptable degree.
2856# See automake bug#10828.
2857# To make any issue more visible, cause the running configure to be aborted
2858# by default if the 'rm' program in use doesn't match our expectations; the
2859# user can still override this though.
2860if rm -f && rm -fr && rm -rf; then : OK; else
2861 cat >&2 <<'END'
2862Oops!
2863
2864Your 'rm' program seems unable to run without file operands specified
2865on the command line, even when the '-f' option is present. This is contrary
2866to the behaviour of most rm programs out there, and not conforming with
2867the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2868
2869Please tell bug-automake@gnu.org about your system, including the value
2870of your $PATH and any error possibly output before this message. This
2871can help us improve future automake versions.
2872
2873END
2874 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2875 echo 'Configuration will proceed anyway, since you have set the' >&2
2876 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2877 echo >&2
2878 else
2879 cat >&2 <<'END'
2880Aborting the configuration process, to ensure you take notice of the issue.
2881
2882You can download and install GNU coreutils to get an 'rm' implementation
2883that behaves properly: <http://www.gnu.org/software/coreutils/>.
2884
2885If you want to complete the configuration process using your problematic
2886'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2887to "yes", and re-run configure.
2888
2889END
2890 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2891 fi
2892fi
2893
2894ac_config_headers="$ac_config_headers config.h"
2895
2896
2897DEPDIR="${am__leading_dot}deps"
2898
2899ac_config_commands="$ac_config_commands depfiles"
2900
2901
2902am_make=${MAKE-make}
2903cat > confinc << 'END'
2904am__doit:
2905 @echo this is the am__doit target
2906.PHONY: am__doit
2907END
2908# If we don't find an include directive, just comment out the code.
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2910$as_echo_n "checking for style of include used by $am_make... " >&6; }
2911am__include="#"
2912am__quote=
2913_am_result=none
2914# First try GNU make style include.
2915echo "include confinc" > confmf
2916# Ignore all kinds of additional output from 'make'.
2917case `$am_make -s -f confmf 2> /dev/null` in #(
2918*the\ am__doit\ target*)
2919 am__include=include
2920 am__quote=
2921 _am_result=GNU
2922 ;;
2923esac
2924# Now try BSD make style include.
2925if test "$am__include" = "#"; then
2926 echo '.include "confinc"' > confmf
2927 case `$am_make -s -f confmf 2> /dev/null` in #(
2928 *the\ am__doit\ target*)
2929 am__include=.include
2930 am__quote="\""
2931 _am_result=BSD
2932 ;;
2933 esac
2934fi
2935
2936
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2938$as_echo "$_am_result" >&6; }
2939rm -f confinc confmf
2940
2941# Check whether --enable-dependency-tracking was given.
2942if test "${enable_dependency_tracking+set}" = set; then :
2943 enableval=$enable_dependency_tracking;
2944fi
2945
2946if test "x$enable_dependency_tracking" != xno; then
2947 am_depcomp="$ac_aux_dir/depcomp"
2948 AMDEPBACKSLASH='\'
2949 am__nodep='_no'
2950fi
2951 if test "x$enable_dependency_tracking" != xno; then
2952 AMDEP_TRUE=
2953 AMDEP_FALSE='#'
2954else
2955 AMDEP_TRUE='#'
2956 AMDEP_FALSE=
2957fi
2958
2959
2960ac_ext=c
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if ${ac_cv_prog_CC+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988 done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993CC=$ac_cv_prog_CC
2994if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996$as_echo "$CC" >&6; }
2997else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002
3003fi
3004if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007set dummy gcc; ac_word=$2
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009$as_echo_n "checking for $ac_word... " >&6; }
3010if ${ac_cv_prog_ac_ct_CC+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015else
3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017for as_dir in $PATH
3018do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027done
3028 done
3029IFS=$as_save_IFS
3030
3031fi
3032fi
3033ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3036$as_echo "$ac_ct_CC" >&6; }
3037else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039$as_echo "no" >&6; }
3040fi
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046yes:)
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049ac_tool_warned=yes ;;
3050esac
3051 CC=$ac_ct_CC
3052 fi
3053else
3054 CC="$ac_cv_prog_CC"
3055fi
3056
3057if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3060set dummy ${ac_tool_prefix}cc; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="${ac_tool_prefix}cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081 done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086CC=$ac_cv_prog_CC
3087if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089$as_echo "$CC" >&6; }
3090else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096 fi
3097fi
3098if test -z "$CC"; then
3099 # Extract the first word of "cc", so it can be a program name with args.
3100set dummy cc; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105else
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109 ac_prog_rejected=no
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3118 ac_prog_rejected=yes
3119 continue
3120 fi
3121 ac_cv_prog_CC="cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126 done
3127IFS=$as_save_IFS
3128
3129if test $ac_prog_rejected = yes; then
3130 # We found a bogon in the path, so make sure we never use it.
3131 set dummy $ac_cv_prog_CC
3132 shift
3133 if test $# != 0; then
3134 # We chose a different compiler from the bogus one.
3135 # However, it has the same basename, so the bogon will be chosen
3136 # first if we set CC to just the basename; use the full file name.
3137 shift
3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 fi
3140fi
3141fi
3142fi
3143CC=$ac_cv_prog_CC
3144if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146$as_echo "$CC" >&6; }
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152
3153fi
3154if test -z "$CC"; then
3155 if test -n "$ac_tool_prefix"; then
3156 for ac_prog in cl.exe
3157 do
3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180 done
3181IFS=$as_save_IFS
3182
3183fi
3184fi
3185CC=$ac_cv_prog_CC
3186if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188$as_echo "$CC" >&6; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193
3194
3195 test -n "$CC" && break
3196 done
3197fi
3198if test -z "$CC"; then
3199 ac_ct_CC=$CC
3200 for ac_prog in cl.exe
3201do
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203set dummy $ac_prog; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if ${ac_cv_prog_ac_ct_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224 done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230if test -n "$ac_ct_CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232$as_echo "$ac_ct_CC" >&6; }
3233else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239 test -n "$ac_ct_CC" && break
3240done
3241
3242 if test "x$ac_ct_CC" = x; then
3243 CC=""
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246yes:)
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249ac_tool_warned=yes ;;
3250esac
3251 CC=$ac_ct_CC
3252 fi
3253fi
3254
3255fi
3256
3257
3258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error $? "no acceptable C compiler found in \$PATH
3261See \`config.log' for more details" "$LINENO" 5; }
3262
3263# Provide some information about the compiler.
3264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265set X $ac_compile
3266ac_compiler=$2
3267for ac_option in --version -v -V -qversion; do
3268 { { ac_try="$ac_compiler $ac_option >&5"
3269case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274$as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3276 ac_status=$?
3277 if test -s conftest.err; then
3278 sed '10a\
3279... rest of stderr output deleted ...
3280 10q' conftest.err >conftest.er1
3281 cat conftest.er1 >&5
3282 fi
3283 rm -f conftest.er1 conftest.err
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286done
3287
3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299ac_clean_files_save=$ac_clean_files
3300ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3301# Try to create an executable without -o first, disregard a.out.
3302# It will help us diagnose broken compilers, and finding out an intuition
3303# of exeext.
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3305$as_echo_n "checking whether the C compiler works... " >&6; }
3306ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3307
3308# The possible output files:
3309ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310
3311ac_rmfiles=
3312for ac_file in $ac_files
3313do
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 esac
3318done
3319rm -f $ac_rmfiles
3320
3321if { { ac_try="$ac_link_default"
3322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link_default") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334# in a Makefile. We should not override ac_cv_exeext if it was cached,
3335# so that the user can short-circuit this test for compilers unknown to
3336# Autoconf.
3337for ac_file in $ac_files ''
3338do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3342 ;;
3343 [ab].out )
3344 # We found the default executable, but exeext='' is most
3345 # certainly right.
3346 break;;
3347 *.* )
3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349 then :; else
3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351 fi
3352 # We set ac_cv_exeext here because the later test for it is not
3353 # safe: cross compilers may not add the suffix if given an `-o'
3354 # argument, so we may need to know it at that point already.
3355 # Even if this section looks crufty: it has the advantage of
3356 # actually working.
3357 break;;
3358 * )
3359 break;;
3360 esac
3361done
3362test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364else
3365 ac_file=''
3366fi
3367if test -z "$ac_file"; then :
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3370$as_echo "$as_me: failed program was:" >&5
3371sed 's/^/| /' conftest.$ac_ext >&5
3372
3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error 77 "C compiler cannot create executables
3376See \`config.log' for more details" "$LINENO" 5; }
3377else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379$as_echo "yes" >&6; }
3380fi
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3382$as_echo_n "checking for C compiler default output file name... " >&6; }
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3384$as_echo "$ac_file" >&6; }
3385ac_exeext=$ac_cv_exeext
3386
3387rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3388ac_clean_files=$ac_clean_files_save
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3390$as_echo_n "checking for suffix of executables... " >&6; }
3391if { { ac_try="$ac_link"
3392case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3403# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3404# work properly (i.e., refer to `conftest.exe'), while it won't with
3405# `rm'.
3406for ac_file in conftest.exe conftest conftest.*; do
3407 test -f "$ac_file" || continue
3408 case $ac_file in
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 break;;
3412 * ) break;;
3413 esac
3414done
3415else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3419See \`config.log' for more details" "$LINENO" 5; }
3420fi
3421rm -f conftest conftest$ac_cv_exeext
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3423$as_echo "$ac_cv_exeext" >&6; }
3424
3425rm -f conftest.$ac_ext
3426EXEEXT=$ac_cv_exeext
3427ac_exeext=$EXEEXT
3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h. */
3430#include <stdio.h>
3431int
3432main ()
3433{
3434FILE *f = fopen ("conftest.out", "w");
3435 return ferror (f) || fclose (f) != 0;
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441ac_clean_files="$ac_clean_files conftest.out"
3442# Check that the compiler produces executables we can run. If not, either
3443# the compiler is broken, or we cross compile.
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3445$as_echo_n "checking whether we are cross compiling... " >&6; }
3446if test "$cross_compiling" != yes; then
3447 { { ac_try="$ac_link"
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_link") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458 if { ac_try='./conftest$ac_cv_exeext'
3459 { { case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_try") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; }; then
3469 cross_compiling=no
3470 else
3471 if test "$cross_compiling" = maybe; then
3472 cross_compiling=yes
3473 else
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476as_fn_error $? "cannot run C compiled programs.
3477If you meant to cross compile, use \`--host'.
3478See \`config.log' for more details" "$LINENO" 5; }
3479 fi
3480 fi
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3483$as_echo "$cross_compiling" >&6; }
3484
3485rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3486ac_clean_files=$ac_clean_files_save
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3488$as_echo_n "checking for suffix of object files... " >&6; }
3489if ${ac_cv_objext+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491else
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h. */
3494
3495int
3496main ()
3497{
3498
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.o conftest.obj
3504if { { ac_try="$ac_compile"
3505case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_compile") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 break;;
3521 esac
3522done
3523else
3524 $as_echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529as_fn_error $? "cannot compute suffix of object files: cannot compile
3530See \`config.log' for more details" "$LINENO" 5; }
3531fi
3532rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3535$as_echo "$ac_cv_objext" >&6; }
3536OBJEXT=$ac_cv_objext
3537ac_objext=$OBJEXT
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3540if ${ac_cv_c_compiler_gnu+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542else
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */
3545
3546int
3547main ()
3548{
3549#ifndef __GNUC__
3550 choke me
3551#endif
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_compiler_gnu=yes
3559else
3560 ac_compiler_gnu=no
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565fi
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3567$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568if test $ac_compiler_gnu = yes; then
3569 GCC=yes
3570else
3571 GCC=
3572fi
3573ac_test_CFLAGS=${CFLAGS+set}
3574ac_save_CFLAGS=$CFLAGS
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3576$as_echo_n "checking whether $CC accepts -g... " >&6; }
3577if ${ac_cv_prog_cc_g+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 ac_save_c_werror_flag=$ac_c_werror_flag
3581 ac_c_werror_flag=yes
3582 ac_cv_prog_cc_g=no
3583 CFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_g=yes
3597else
3598 CFLAGS=""
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600/* end confdefs.h. */
3601
3602int
3603main ()
3604{
3605
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610if ac_fn_c_try_compile "$LINENO"; then :
3611
3612else
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 CFLAGS="-g"
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h. */
3617
3618int
3619main ()
3620{
3621
3622 ;
3623 return 0;
3624}
3625_ACEOF
3626if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_cv_prog_cc_g=yes
3628fi
3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630fi
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_c_werror_flag=$ac_save_c_werror_flag
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3637$as_echo "$ac_cv_prog_cc_g" >&6; }
3638if test "$ac_test_CFLAGS" = set; then
3639 CFLAGS=$ac_save_CFLAGS
3640elif test $ac_cv_prog_cc_g = yes; then
3641 if test "$GCC" = yes; then
3642 CFLAGS="-g -O2"
3643 else
3644 CFLAGS="-g"
3645 fi
3646else
3647 if test "$GCC" = yes; then
3648 CFLAGS="-O2"
3649 else
3650 CFLAGS=
3651 fi
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3655if ${ac_cv_prog_cc_c89+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 ac_cv_prog_cc_c89=no
3659ac_save_CC=$CC
3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h. */
3662#include <stdarg.h>
3663#include <stdio.h>
3664struct stat;
3665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666struct buf { int x; };
3667FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668static char *e (p, i)
3669 char **p;
3670 int i;
3671{
3672 return p[i];
3673}
3674static char *f (char * (*g) (char **, int), char **p, ...)
3675{
3676 char *s;
3677 va_list v;
3678 va_start (v,p);
3679 s = g (p, va_arg (v,int));
3680 va_end (v);
3681 return s;
3682}
3683
3684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std. */
3691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692
3693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694 inside strings and character constants. */
3695#define FOO(x) 'x'
3696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3697
3698int test (int i, double x);
3699struct s1 {int (*f) (int a);};
3700struct s2 {int (*f) (double a);};
3701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702int argc;
3703char **argv;
3704int
3705main ()
3706{
3707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3714do
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c89=$ac_arg
3718fi
3719rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3721done
3722rm -f conftest.$ac_ext
3723CC=$ac_save_CC
3724
3725fi
3726# AC_CACHE_VAL
3727case "x$ac_cv_prog_cc_c89" in
3728 x)
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730$as_echo "none needed" >&6; } ;;
3731 xno)
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733$as_echo "unsupported" >&6; } ;;
3734 *)
3735 CC="$CC $ac_cv_prog_cc_c89"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3738esac
3739if test "x$ac_cv_prog_cc_c89" != xno; then :
3740
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3755$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3756if ${am_cv_prog_cc_c_o+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760/* end confdefs.h. */
3761
3762int
3763main ()
3764{
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770 # Make sure it works both with $CC and with simple cc.
3771 # Following AC_PROG_CC_C_O, we do the test twice because some
3772 # compilers refuse to overwrite an existing .o file with -o,
3773 # though they will create one.
3774 am_cv_prog_cc_c_o=yes
3775 for am_i in 1 2; do
3776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } \
3781 && test -f conftest2.$ac_objext; then
3782 : OK
3783 else
3784 am_cv_prog_cc_c_o=no
3785 break
3786 fi
3787 done
3788 rm -f core conftest*
3789 unset am_i
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3792$as_echo "$am_cv_prog_cc_c_o" >&6; }
3793if test "$am_cv_prog_cc_c_o" != yes; then
3794 # Losing compiler, so override with the script.
3795 # FIXME: It is wrong to rewrite CC.
3796 # But if we don't then we get into trouble of one sort or another.
3797 # A longer-term fix would be to have automake use am__CC in this case,
3798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3799 CC="$am_aux_dir/compile $CC"
3800fi
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807
3808depcc="$CC" am_compiler_list=
3809
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3811$as_echo_n "checking dependency style of $depcc... " >&6; }
3812if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3816 # We make a subdir and do the tests there. Otherwise we can end up
3817 # making bogus files that we don't know about and never remove. For
3818 # instance it was reported that on HP-UX the gcc test will end up
3819 # making a dummy file named 'D' -- because '-MD' means "put the output
3820 # in D".
3821 rm -rf conftest.dir
3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3834
3835 am_cv_CC_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
3839 am__universal=false
3840 case " $depcc " in #(
3841 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3842 esac
3843
3844 for depmode in $am_compiler_list; do
3845 # Setup a source with many dependencies, because some compilers
3846 # like to wrap large dependency lists on column 80 (with \), and
3847 # we should not choose a depcomp mode which is confused by this.
3848 #
3849 # We need to recreate these files for each test, as the compiler may
3850 # overwrite some of them when testing with obscure command lines.
3851 # This happens at least with the AIX C compiler.
3852 : > sub/conftest.c
3853 for i in 1 2 3 4 5 6; do
3854 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3856 # Solaris 10 /bin/sh.
3857 echo '/* dummy */' > sub/conftst$i.h
3858 done
3859 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3860
3861 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3862 # mode. It turns out that the SunPro C++ compiler does not properly
3863 # handle '-M -o', and we need to detect this. Also, some Intel
3864 # versions had trouble with output in subdirs.
3865 am__obj=sub/conftest.${OBJEXT-o}
3866 am__minus_obj="-o $am__obj"
3867 case $depmode in
3868 gcc)
3869 # This depmode causes a compiler race in universal mode.
3870 test "$am__universal" = false || continue
3871 ;;
3872 nosideeffect)
3873 # After this tag, mechanisms are not by side-effect, so they'll
3874 # only be used when explicitly requested.
3875 if test "x$enable_dependency_tracking" = xyes; then
3876 continue
3877 else
3878 break
3879 fi
3880 ;;
3881 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3882 # This compiler won't grok '-c -o', but also, the minuso test has
3883 # not run yet. These depmodes are late enough in the game, and
3884 # so weak that their functioning should not be impacted.
3885 am__obj=conftest.${OBJEXT-o}
3886 am__minus_obj=
3887 ;;
3888 none) break ;;
3889 esac
3890 if depmode=$depmode \
3891 source=sub/conftest.c object=$am__obj \
3892 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894 >/dev/null 2>conftest.err &&
3895 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899 # icc doesn't choke on unknown options, it will just issue warnings
3900 # or remarks (even with -Werror). So we grep stderr for any message
3901 # that says an option was ignored or not supported.
3902 # When given -MP, icc 7.0 and 7.1 complain thusly:
3903 # icc: Command line warning: ignoring option '-M'; no argument required
3904 # The diagnosis changed in icc 8.0:
3905 # icc: Command line remark: option '-MP' not supported
3906 if (grep 'ignoring option' conftest.err ||
3907 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908 am_cv_CC_dependencies_compiler_type=$depmode
3909 break
3910 fi
3911 fi
3912 done
3913
3914 cd ..
3915 rm -rf conftest.dir
3916else
3917 am_cv_CC_dependencies_compiler_type=none
3918fi
3919
3920fi
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3924
3925 if
3926 test "x$enable_dependency_tracking" != xno \
3927 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3928 am__fastdepCC_TRUE=
3929 am__fastdepCC_FALSE='#'
3930else
3931 am__fastdepCC_TRUE='#'
3932 am__fastdepCC_FALSE=
3933fi
3934
3935
3936
3937ac_ext=c
3938ac_cpp='$CPP $CPPFLAGS'
3939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943$as_echo_n "checking how to run the C preprocessor... " >&6; }
3944# On Suns, sometimes $CPP names a directory.
3945if test -n "$CPP" && test -d "$CPP"; then
3946 CPP=
3947fi
3948if test -z "$CPP"; then
3949 if ${ac_cv_prog_CPP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 # Double quotes because CPP needs to be expanded
3953 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3954 do
3955 ac_preproc_ok=false
3956for ac_c_preproc_warn_flag in '' yes
3957do
3958 # Use a header file that comes with gcc, so configuring glibc
3959 # with a fresh cross-compiler works.
3960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961 # <limits.h> exists even on freestanding compilers.
3962 # On the NeXT, cc -E runs the code through the compiler's parser,
3963 # not just through cpp. "Syntax error" is here to catch this case.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966#ifdef __STDC__
3967# include <limits.h>
3968#else
3969# include <assert.h>
3970#endif
3971 Syntax error
3972_ACEOF
3973if ac_fn_c_try_cpp "$LINENO"; then :
3974
3975else
3976 # Broken: fails on valid input.
3977continue
3978fi
3979rm -f conftest.err conftest.i conftest.$ac_ext
3980
3981 # OK, works on sane cases. Now check whether nonexistent headers
3982 # can be detected and how.
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
3985#include <ac_nonexistent.h>
3986_ACEOF
3987if ac_fn_c_try_cpp "$LINENO"; then :
3988 # Broken: success on invalid input.
3989continue
3990else
3991 # Passes both tests.
3992ac_preproc_ok=:
3993break
3994fi
3995rm -f conftest.err conftest.i conftest.$ac_ext
3996
3997done
3998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999rm -f conftest.i conftest.err conftest.$ac_ext
4000if $ac_preproc_ok; then :
4001 break
4002fi
4003
4004 done
4005 ac_cv_prog_CPP=$CPP
4006
4007fi
4008 CPP=$ac_cv_prog_CPP
4009else
4010 ac_cv_prog_CPP=$CPP
4011fi
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013$as_echo "$CPP" >&6; }
4014ac_preproc_ok=false
4015for ac_c_preproc_warn_flag in '' yes
4016do
4017 # Use a header file that comes with gcc, so configuring glibc
4018 # with a fresh cross-compiler works.
4019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020 # <limits.h> exists even on freestanding compilers.
4021 # On the NeXT, cc -E runs the code through the compiler's parser,
4022 # not just through cpp. "Syntax error" is here to catch this case.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h. */
4025#ifdef __STDC__
4026# include <limits.h>
4027#else
4028# include <assert.h>
4029#endif
4030 Syntax error
4031_ACEOF
4032if ac_fn_c_try_cpp "$LINENO"; then :
4033
4034else
4035 # Broken: fails on valid input.
4036continue
4037fi
4038rm -f conftest.err conftest.i conftest.$ac_ext
4039
4040 # OK, works on sane cases. Now check whether nonexistent headers
4041 # can be detected and how.
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044#include <ac_nonexistent.h>
4045_ACEOF
4046if ac_fn_c_try_cpp "$LINENO"; then :
4047 # Broken: success on invalid input.
4048continue
4049else
4050 # Passes both tests.
4051ac_preproc_ok=:
4052break
4053fi
4054rm -f conftest.err conftest.i conftest.$ac_ext
4055
4056done
4057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058rm -f conftest.i conftest.err conftest.$ac_ext
4059if $ac_preproc_ok; then :
4060
4061else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065See \`config.log' for more details" "$LINENO" 5; }
4066fi
4067
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077if ${ac_cv_path_GREP+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 if test -z "$GREP"; then
4081 ac_path_GREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in grep ggrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091 as_fn_executable_p "$ac_path_GREP" || continue
4092# Check for GNU ac_path_GREP and select it if it is found.
4093 # Check for GNU $ac_path_GREP
4094case `"$ac_path_GREP" --version 2>&1` in
4095*GNU*)
4096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097*)
4098 ac_count=0
4099 $as_echo_n 0123456789 >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo 'GREP' >> "conftest.nl"
4106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_GREP="$ac_path_GREP"
4112 ac_path_GREP_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118esac
4119
4120 $ac_path_GREP_found && break 3
4121 done
4122 done
4123 done
4124IFS=$as_save_IFS
4125 if test -z "$ac_cv_path_GREP"; then
4126 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4127 fi
4128else
4129 ac_cv_path_GREP=$GREP
4130fi
4131
4132fi
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134$as_echo "$ac_cv_path_GREP" >&6; }
4135 GREP="$ac_cv_path_GREP"
4136
4137
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139$as_echo_n "checking for egrep... " >&6; }
4140if ${ac_cv_path_EGREP+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142else
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4145 else
4146 if test -z "$EGREP"; then
4147 ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in egrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_EGREP" || continue
4158# Check for GNU ac_path_EGREP and select it if it is found.
4159 # Check for GNU $ac_path_EGREP
4160case `"$ac_path_EGREP" --version 2>&1` in
4161*GNU*)
4162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4163*)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'EGREP' >> "conftest.nl"
4172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_EGREP="$ac_path_EGREP"
4178 ac_path_EGREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184esac
4185
4186 $ac_path_EGREP_found && break 3
4187 done
4188 done
4189 done
4190IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_EGREP"; then
4192 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194else
4195 ac_cv_path_EGREP=$EGREP
4196fi
4197
4198 fi
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201$as_echo "$ac_cv_path_EGREP" >&6; }
4202 EGREP="$ac_cv_path_EGREP"
4203
4204
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206$as_echo_n "checking for ANSI C header files... " >&6; }
4207if ${ac_cv_header_stdc+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
4212#include <stdlib.h>
4213#include <stdarg.h>
4214#include <string.h>
4215#include <float.h>
4216
4217int
4218main ()
4219{
4220
4221 ;
4222 return 0;
4223}
4224_ACEOF
4225if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_header_stdc=yes
4227else
4228 ac_cv_header_stdc=no
4229fi
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231
4232if test $ac_cv_header_stdc = yes; then
4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h. */
4236#include <string.h>
4237
4238_ACEOF
4239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240 $EGREP "memchr" >/dev/null 2>&1; then :
4241
4242else
4243 ac_cv_header_stdc=no
4244fi
4245rm -f conftest*
4246
4247fi
4248
4249if test $ac_cv_header_stdc = yes; then
4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252/* end confdefs.h. */
4253#include <stdlib.h>
4254
4255_ACEOF
4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then :
4258
4259else
4260 ac_cv_header_stdc=no
4261fi
4262rm -f conftest*
4263
4264fi
4265
4266if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then :
4269 :
4270else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h. */
4273#include <ctype.h>
4274#include <stdlib.h>
4275#if ((' ' & 0x0FF) == 0x020)
4276# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278#else
4279# define ISLOWER(c) \
4280 (('a' <= (c) && (c) <= 'i') \
4281 || ('j' <= (c) && (c) <= 'r') \
4282 || ('s' <= (c) && (c) <= 'z'))
4283# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4284#endif
4285
4286#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4287int
4288main ()
4289{
4290 int i;
4291 for (i = 0; i < 256; i++)
4292 if (XOR (islower (i), ISLOWER (i))
4293 || toupper (i) != TOUPPER (i))
4294 return 2;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_run "$LINENO"; then :
4299
4300else
4301 ac_cv_header_stdc=no
4302fi
4303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304 conftest.$ac_objext conftest.beam conftest.$ac_ext
4305fi
4306
4307fi
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310$as_echo "$ac_cv_header_stdc" >&6; }
4311if test $ac_cv_header_stdc = yes; then
4312
4313$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4314
4315fi
4316
4317# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4320do :
4321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4323"
4324if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325 cat >>confdefs.h <<_ACEOF
4326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327_ACEOF
4328
4329fi
4330
4331done
4332
4333
4334
4335 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4336if test "x$ac_cv_header_minix_config_h" = xyes; then :
4337 MINIX=yes
4338else
4339 MINIX=
4340fi
4341
4342
4343 if test "$MINIX" = yes; then
4344
4345$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4346
4347
4348$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4349
4350
4351$as_echo "#define _MINIX 1" >>confdefs.h
4352
4353 fi
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4357$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4358if ${ac_cv_safe_to_define___extensions__+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362/* end confdefs.h. */
4363
4364# define __EXTENSIONS__ 1
4365 $ac_includes_default
4366int
4367main ()
4368{
4369
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_safe_to_define___extensions__=yes
4376else
4377 ac_cv_safe_to_define___extensions__=no
4378fi
4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4382$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4383 test $ac_cv_safe_to_define___extensions__ = yes &&
4384 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4385
4386 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4387
4388 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4389
4390 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4391
4392 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4393
4394
4395ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}gcc; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if ${ac_cv_prog_CC+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423 done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428CC=$ac_cv_prog_CC
4429if test -n "$CC"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4431$as_echo "$CC" >&6; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435fi
4436
4437
4438fi
4439if test -z "$ac_cv_prog_CC"; then
4440 ac_ct_CC=$CC
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442set dummy gcc; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
4445if ${ac_cv_prog_ac_ct_CC+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$ac_ct_CC"; then
4449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_ac_ct_CC="gcc"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463 done
4464IFS=$as_save_IFS
4465
4466fi
4467fi
4468ac_ct_CC=$ac_cv_prog_ac_ct_CC
4469if test -n "$ac_ct_CC"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4471$as_echo "$ac_ct_CC" >&6; }
4472else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475fi
4476
4477 if test "x$ac_ct_CC" = x; then
4478 CC=""
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486 CC=$ac_ct_CC
4487 fi
4488else
4489 CC="$ac_cv_prog_CC"
4490fi
4491
4492if test -z "$CC"; then
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4495set dummy ${ac_tool_prefix}cc; ac_word=$2
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497$as_echo_n "checking for $ac_word... " >&6; }
4498if ${ac_cv_prog_CC+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_CC="${ac_tool_prefix}cc"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516 done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521CC=$ac_cv_prog_CC
4522if test -n "$CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4524$as_echo "$CC" >&6; }
4525else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528fi
4529
4530
4531 fi
4532fi
4533if test -z "$CC"; then
4534 # Extract the first word of "cc", so it can be a program name with args.
4535set dummy cc; ac_word=$2
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537$as_echo_n "checking for $ac_word... " >&6; }
4538if ${ac_cv_prog_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543else
4544 ac_prog_rejected=no
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553 ac_prog_rejected=yes
4554 continue
4555 fi
4556 ac_cv_prog_CC="cc"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561 done
4562IFS=$as_save_IFS
4563
4564if test $ac_prog_rejected = yes; then
4565 # We found a bogon in the path, so make sure we never use it.
4566 set dummy $ac_cv_prog_CC
4567 shift
4568 if test $# != 0; then
4569 # We chose a different compiler from the bogus one.
4570 # However, it has the same basename, so the bogon will be chosen
4571 # first if we set CC to just the basename; use the full file name.
4572 shift
4573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4574 fi
4575fi
4576fi
4577fi
4578CC=$ac_cv_prog_CC
4579if test -n "$CC"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4581$as_echo "$CC" >&6; }
4582else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587
4588fi
4589if test -z "$CC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in cl.exe
4592 do
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if ${ac_cv_prog_CC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615 done
4616IFS=$as_save_IFS
4617
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4623$as_echo "$CC" >&6; }
4624else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628
4629
4630 test -n "$CC" && break
4631 done
4632fi
4633if test -z "$CC"; then
4634 ac_ct_CC=$CC
4635 for ac_prog in cl.exe
4636do
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638set dummy $ac_prog; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
4641if ${ac_cv_prog_ac_ct_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CC="$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659 done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665if test -n "$ac_ct_CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667$as_echo "$ac_ct_CC" >&6; }
4668else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673
4674 test -n "$ac_ct_CC" && break
4675done
4676
4677 if test "x$ac_ct_CC" = x; then
4678 CC=""
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681yes:)
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684ac_tool_warned=yes ;;
4685esac
4686 CC=$ac_ct_CC
4687 fi
4688fi
4689
4690fi
4691
4692
4693test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695as_fn_error $? "no acceptable C compiler found in \$PATH
4696See \`config.log' for more details" "$LINENO" 5; }
4697
4698# Provide some information about the compiler.
4699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4700set X $ac_compile
4701ac_compiler=$2
4702for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711 ac_status=$?
4712 if test -s conftest.err; then
4713 sed '10a\
4714... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
4717 fi
4718 rm -f conftest.er1 conftest.err
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721done
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4724$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4725if ${ac_cv_c_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744else
4745 ac_compiler_gnu=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_c_compiler_gnu=$ac_compiler_gnu
4749
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4752$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754 GCC=yes
4755else
4756 GCC=
4757fi
4758ac_test_CFLAGS=${CFLAGS+set}
4759ac_save_CFLAGS=$CFLAGS
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4761$as_echo_n "checking whether $CC accepts -g... " >&6; }
4762if ${ac_cv_prog_cc_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4767 ac_cv_prog_cc_g=no
4768 CFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_prog_cc_g=yes
4782else
4783 CFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795if ac_fn_c_try_compile "$LINENO"; then :
4796
4797else
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4822$as_echo "$ac_cv_prog_cc_g" >&6; }
4823if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4840if ${ac_cv_prog_cc_c89+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 ac_cv_prog_cc_c89=no
4844ac_save_CC=$CC
4845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h. */
4847#include <stdarg.h>
4848#include <stdio.h>
4849struct stat;
4850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4851struct buf { int x; };
4852FILE * (*rcsopen) (struct buf *, struct stat *, int);
4853static char *e (p, i)
4854 char **p;
4855 int i;
4856{
4857 return p[i];
4858}
4859static char *f (char * (*g) (char **, int), char **p, ...)
4860{
4861 char *s;
4862 va_list v;
4863 va_start (v,p);
4864 s = g (p, va_arg (v,int));
4865 va_end (v);
4866 return s;
4867}
4868
4869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4870 function prototypes and stuff, but not '\xHH' hex character constants.
4871 These don't provoke an error unfortunately, instead are silently treated
4872 as 'x'. The following induces an error, until -std is added to get
4873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4874 array size at least. It's necessary to write '\x00'==0 to get something
4875 that's true only with -std. */
4876int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4877
4878/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4879 inside strings and character constants. */
4880#define FOO(x) 'x'
4881int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4882
4883int test (int i, double x);
4884struct s1 {int (*f) (int a);};
4885struct s2 {int (*f) (double a);};
4886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887int argc;
4888char **argv;
4889int
4890main ()
4891{
4892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4899do
4900 CC="$ac_save_CC $ac_arg"
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 ac_cv_prog_cc_c89=$ac_arg
4903fi
4904rm -f core conftest.err conftest.$ac_objext
4905 test "x$ac_cv_prog_cc_c89" != "xno" && break
4906done
4907rm -f conftest.$ac_ext
4908CC=$ac_save_CC
4909
4910fi
4911# AC_CACHE_VAL
4912case "x$ac_cv_prog_cc_c89" in
4913 x)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4915$as_echo "none needed" >&6; } ;;
4916 xno)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918$as_echo "unsupported" >&6; } ;;
4919 *)
4920 CC="$CC $ac_cv_prog_cc_c89"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4922$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4923esac
4924if test "x$ac_cv_prog_cc_c89" != xno; then :
4925
4926fi
4927
4928ac_ext=c
4929ac_cpp='$CPP $CPPFLAGS'
4930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933
4934ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4940$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4941if ${am_cv_prog_cc_c_o+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h. */
4946
4947int
4948main ()
4949{
4950
4951 ;
4952 return 0;
4953}
4954_ACEOF
4955 # Make sure it works both with $CC and with simple cc.
4956 # Following AC_PROG_CC_C_O, we do the test twice because some
4957 # compilers refuse to overwrite an existing .o file with -o,
4958 # though they will create one.
4959 am_cv_prog_cc_c_o=yes
4960 for am_i in 1 2; do
4961 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4962 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } \
4966 && test -f conftest2.$ac_objext; then
4967 : OK
4968 else
4969 am_cv_prog_cc_c_o=no
4970 break
4971 fi
4972 done
4973 rm -f core conftest*
4974 unset am_i
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4977$as_echo "$am_cv_prog_cc_c_o" >&6; }
4978if test "$am_cv_prog_cc_c_o" != yes; then
4979 # Losing compiler, so override with the script.
4980 # FIXME: It is wrong to rewrite CC.
4981 # But if we don't then we get into trouble of one sort or another.
4982 # A longer-term fix would be to have automake use am__CC in this case,
4983 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4984 CC="$am_aux_dir/compile $CC"
4985fi
4986ac_ext=c
4987ac_cpp='$CPP $CPPFLAGS'
4988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991
4992
4993depcc="$CC" am_compiler_list=
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4996$as_echo_n "checking dependency style of $depcc... " >&6; }
4997if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999else
5000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5001 # We make a subdir and do the tests there. Otherwise we can end up
5002 # making bogus files that we don't know about and never remove. For
5003 # instance it was reported that on HP-UX the gcc test will end up
5004 # making a dummy file named 'D' -- because '-MD' means "put the output
5005 # in D".
5006 rm -rf conftest.dir
5007 mkdir conftest.dir
5008 # Copy depcomp to subdir because otherwise we won't find it if we're
5009 # using a relative directory.
5010 cp "$am_depcomp" conftest.dir
5011 cd conftest.dir
5012 # We will build objects and dependencies in a subdirectory because
5013 # it helps to detect inapplicable dependency modes. For instance
5014 # both Tru64's cc and ICC support -MD to output dependencies as a
5015 # side effect of compilation, but ICC will put the dependencies in
5016 # the current directory while Tru64 will put them in the object
5017 # directory.
5018 mkdir sub
5019
5020 am_cv_CC_dependencies_compiler_type=none
5021 if test "$am_compiler_list" = ""; then
5022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5023 fi
5024 am__universal=false
5025 case " $depcc " in #(
5026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5027 esac
5028
5029 for depmode in $am_compiler_list; do
5030 # Setup a source with many dependencies, because some compilers
5031 # like to wrap large dependency lists on column 80 (with \), and
5032 # we should not choose a depcomp mode which is confused by this.
5033 #
5034 # We need to recreate these files for each test, as the compiler may
5035 # overwrite some of them when testing with obscure command lines.
5036 # This happens at least with the AIX C compiler.
5037 : > sub/conftest.c
5038 for i in 1 2 3 4 5 6; do
5039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5041 # Solaris 10 /bin/sh.
5042 echo '/* dummy */' > sub/conftst$i.h
5043 done
5044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5045
5046 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5047 # mode. It turns out that the SunPro C++ compiler does not properly
5048 # handle '-M -o', and we need to detect this. Also, some Intel
5049 # versions had trouble with output in subdirs.
5050 am__obj=sub/conftest.${OBJEXT-o}
5051 am__minus_obj="-o $am__obj"
5052 case $depmode in
5053 gcc)
5054 # This depmode causes a compiler race in universal mode.
5055 test "$am__universal" = false || continue
5056 ;;
5057 nosideeffect)
5058 # After this tag, mechanisms are not by side-effect, so they'll
5059 # only be used when explicitly requested.
5060 if test "x$enable_dependency_tracking" = xyes; then
5061 continue
5062 else
5063 break
5064 fi
5065 ;;
5066 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5067 # This compiler won't grok '-c -o', but also, the minuso test has
5068 # not run yet. These depmodes are late enough in the game, and
5069 # so weak that their functioning should not be impacted.
5070 am__obj=conftest.${OBJEXT-o}
5071 am__minus_obj=
5072 ;;
5073 none) break ;;
5074 esac
5075 if depmode=$depmode \
5076 source=sub/conftest.c object=$am__obj \
5077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5079 >/dev/null 2>conftest.err &&
5080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5084 # icc doesn't choke on unknown options, it will just issue warnings
5085 # or remarks (even with -Werror). So we grep stderr for any message
5086 # that says an option was ignored or not supported.
5087 # When given -MP, icc 7.0 and 7.1 complain thusly:
5088 # icc: Command line warning: ignoring option '-M'; no argument required
5089 # The diagnosis changed in icc 8.0:
5090 # icc: Command line remark: option '-MP' not supported
5091 if (grep 'ignoring option' conftest.err ||
5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5093 am_cv_CC_dependencies_compiler_type=$depmode
5094 break
5095 fi
5096 fi
5097 done
5098
5099 cd ..
5100 rm -rf conftest.dir
5101else
5102 am_cv_CC_dependencies_compiler_type=none
5103fi
5104
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5107$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5108CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5109
5110 if
5111 test "x$enable_dependency_tracking" != xno \
5112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5113 am__fastdepCC_TRUE=
5114 am__fastdepCC_FALSE='#'
5115else
5116 am__fastdepCC_TRUE='#'
5117 am__fastdepCC_FALSE=
5118fi
5119
5120
5121case `pwd` in
5122 *\ * | *\ *)
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5124$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5125esac
5126
5127
5128
5129macro_version='2.4.6'
5130macro_revision='2.4.6'
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144ltmain=$ac_aux_dir/ltmain.sh
5145
5146# Make sure we can run config.sub.
5147$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5148 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5151$as_echo_n "checking build system type... " >&6; }
5152if ${ac_cv_build+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 ac_build_alias=$build_alias
5156test "x$ac_build_alias" = x &&
5157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5158test "x$ac_build_alias" = x &&
5159 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5161 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5162
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5165$as_echo "$ac_cv_build" >&6; }
5166case $ac_cv_build in
5167*-*-*) ;;
5168*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5169esac
5170build=$ac_cv_build
5171ac_save_IFS=$IFS; IFS='-'
5172set x $ac_cv_build
5173shift
5174build_cpu=$1
5175build_vendor=$2
5176shift; shift
5177# Remember, the first character of IFS is used to create $*,
5178# except with old shells:
5179build_os=$*
5180IFS=$ac_save_IFS
5181case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5182
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5185$as_echo_n "checking host system type... " >&6; }
5186if ${ac_cv_host+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test "x$host_alias" = x; then
5190 ac_cv_host=$ac_cv_build
5191else
5192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5193 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5194fi
5195
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5198$as_echo "$ac_cv_host" >&6; }
5199case $ac_cv_host in
5200*-*-*) ;;
5201*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5202esac
5203host=$ac_cv_host
5204ac_save_IFS=$IFS; IFS='-'
5205set x $ac_cv_host
5206shift
5207host_cpu=$1
5208host_vendor=$2
5209shift; shift
5210# Remember, the first character of IFS is used to create $*,
5211# except with old shells:
5212host_os=$*
5213IFS=$ac_save_IFS
5214case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5215
5216
5217# Backslashify metacharacters that are still active within
5218# double-quoted strings.
5219sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5220
5221# Same as above, but do not quote variable references.
5222double_quote_subst='s/\(["`\\]\)/\\\1/g'
5223
5224# Sed substitution to delay expansion of an escaped shell variable in a
5225# double_quote_subst'ed string.
5226delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5227
5228# Sed substitution to delay expansion of an escaped single quote.
5229delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5230
5231# Sed substitution to avoid accidental globbing in evaled expressions
5232no_glob_subst='s/\*/\\\*/g'
5233
5234ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5235ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5236ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5237
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5239$as_echo_n "checking how to print strings... " >&6; }
5240# Test print first, because it will be a builtin if present.
5241if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5242 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5243 ECHO='print -r --'
5244elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5245 ECHO='printf %s\n'
5246else
5247 # Use this function as a fallback that always works.
5248 func_fallback_echo ()
5249 {
5250 eval 'cat <<_LTECHO_EOF
5251$1
5252_LTECHO_EOF'
5253 }
5254 ECHO='func_fallback_echo'
5255fi
5256
5257# func_echo_all arg...
5258# Invoke $ECHO with all args, space-separated.
5259func_echo_all ()
5260{
5261 $ECHO ""
5262}
5263
5264case $ECHO in
5265 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5266$as_echo "printf" >&6; } ;;
5267 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5268$as_echo "print -r" >&6; } ;;
5269 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5270$as_echo "cat" >&6; } ;;
5271esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5288if ${ac_cv_path_SED+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290else
5291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292 for ac_i in 1 2 3 4 5 6 7; do
5293 ac_script="$ac_script$as_nl$ac_script"
5294 done
5295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296 { ac_script=; unset ac_script;}
5297 if test -z "$SED"; then
5298 ac_path_SED_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in sed gsed; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5308 as_fn_executable_p "$ac_path_SED" || continue
5309# Check for GNU ac_path_SED and select it if it is found.
5310 # Check for GNU $ac_path_SED
5311case `"$ac_path_SED" --version 2>&1` in
5312*GNU*)
5313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5314*)
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5318 do
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo '' >> "conftest.nl"
5323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_SED_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_SED="$ac_path_SED"
5329 ac_path_SED_max=$ac_count
5330 fi
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335esac
5336
5337 $ac_path_SED_found && break 3
5338 done
5339 done
5340 done
5341IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_SED"; then
5343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5344 fi
5345else
5346 ac_cv_path_SED=$SED
5347fi
5348
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5351$as_echo "$ac_cv_path_SED" >&6; }
5352 SED="$ac_cv_path_SED"
5353 rm -f conftest.sed
5354
5355test -z "$SED" && SED=sed
5356Xsed="$SED -e 1s/^X//"
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5369$as_echo_n "checking for fgrep... " >&6; }
5370if ${ac_cv_path_FGREP+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372else
5373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5374 then ac_cv_path_FGREP="$GREP -F"
5375 else
5376 if test -z "$FGREP"; then
5377 ac_path_FGREP_found=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5381do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_prog in fgrep; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5387 as_fn_executable_p "$ac_path_FGREP" || continue
5388# Check for GNU ac_path_FGREP and select it if it is found.
5389 # Check for GNU $ac_path_FGREP
5390case `"$ac_path_FGREP" --version 2>&1` in
5391*GNU*)
5392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5393*)
5394 ac_count=0
5395 $as_echo_n 0123456789 >"conftest.in"
5396 while :
5397 do
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'FGREP' >> "conftest.nl"
5402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_FGREP="$ac_path_FGREP"
5408 ac_path_FGREP_max=$ac_count
5409 fi
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414esac
5415
5416 $ac_path_FGREP_found && break 3
5417 done
5418 done
5419 done
5420IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_FGREP"; then
5422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423 fi
5424else
5425 ac_cv_path_FGREP=$FGREP
5426fi
5427
5428 fi
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5431$as_echo "$ac_cv_path_FGREP" >&6; }
5432 FGREP="$ac_cv_path_FGREP"
5433
5434
5435test -z "$GREP" && GREP=grep
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455# Check whether --with-gnu-ld was given.
5456if test "${with_gnu_ld+set}" = set; then :
5457 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5458else
5459 with_gnu_ld=no
5460fi
5461
5462ac_prog=ld
5463if test yes = "$GCC"; then
5464 # Check if gcc -print-prog-name=ld gives a path.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5466$as_echo_n "checking for ld used by $CC... " >&6; }
5467 case $host in
5468 *-*-mingw*)
5469 # gcc leaves a trailing carriage return, which upsets mingw
5470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5471 *)
5472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5473 esac
5474 case $ac_prog in
5475 # Accept absolute paths.
5476 [\\/]* | ?:[\\/]*)
5477 re_direlt='/[^/][^/]*/\.\./'
5478 # Canonicalize the pathname of ld
5479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5482 done
5483 test -z "$LD" && LD=$ac_prog
5484 ;;
5485 "")
5486 # If it fails, then pretend we aren't using GCC.
5487 ac_prog=ld
5488 ;;
5489 *)
5490 # If it is relative, then search for the first ld in PATH.
5491 with_gnu_ld=unknown
5492 ;;
5493 esac
5494elif test yes = "$with_gnu_ld"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5496$as_echo_n "checking for GNU ld... " >&6; }
5497else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5499$as_echo_n "checking for non-GNU ld... " >&6; }
5500fi
5501if ${lt_cv_path_LD+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503else
5504 if test -z "$LD"; then
5505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5506 for ac_dir in $PATH; do
5507 IFS=$lt_save_ifs
5508 test -z "$ac_dir" && ac_dir=.
5509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5510 lt_cv_path_LD=$ac_dir/$ac_prog
5511 # Check to see if the program is GNU ld. I'd rather use --version,
5512 # but apparently some variants of GNU ld only accept -v.
5513 # Break only if it was the GNU/non-GNU ld that we prefer.
5514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5515 *GNU* | *'with BFD'*)
5516 test no != "$with_gnu_ld" && break
5517 ;;
5518 *)
5519 test yes != "$with_gnu_ld" && break
5520 ;;
5521 esac
5522 fi
5523 done
5524 IFS=$lt_save_ifs
5525else
5526 lt_cv_path_LD=$LD # Let the user override the test with a path.
5527fi
5528fi
5529
5530LD=$lt_cv_path_LD
5531if test -n "$LD"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5533$as_echo "$LD" >&6; }
5534else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5540$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5541if ${lt_cv_prog_gnu_ld+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5545case `$LD -v 2>&1 </dev/null` in
5546*GNU* | *'with BFD'*)
5547 lt_cv_prog_gnu_ld=yes
5548 ;;
5549*)
5550 lt_cv_prog_gnu_ld=no
5551 ;;
5552esac
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5555$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5556with_gnu_ld=$lt_cv_prog_gnu_ld
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5567$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5568if ${lt_cv_path_NM+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570else
5571 if test -n "$NM"; then
5572 # Let the user override the test.
5573 lt_cv_path_NM=$NM
5574else
5575 lt_nm_to_check=${ac_tool_prefix}nm
5576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5577 lt_nm_to_check="$lt_nm_to_check nm"
5578 fi
5579 for lt_tmp_nm in $lt_nm_to_check; do
5580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5582 IFS=$lt_save_ifs
5583 test -z "$ac_dir" && ac_dir=.
5584 tmp_nm=$ac_dir/$lt_tmp_nm
5585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5586 # Check to see if the nm accepts a BSD-compat flag.
5587 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5588 # nm: unknown option "B" ignored
5589 # Tru64's nm complains that /dev/null is an invalid object file
5590 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5591 case $build_os in
5592 mingw*) lt_bad_file=conftest.nm/nofile ;;
5593 *) lt_bad_file=/dev/null ;;
5594 esac
5595 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5596 *$lt_bad_file* | *'Invalid file or object type'*)
5597 lt_cv_path_NM="$tmp_nm -B"
5598 break 2
5599 ;;
5600 *)
5601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5602 */dev/null*)
5603 lt_cv_path_NM="$tmp_nm -p"
5604 break 2
5605 ;;
5606 *)
5607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5608 continue # so that we can try to find one that supports BSD flags
5609 ;;
5610 esac
5611 ;;
5612 esac
5613 fi
5614 done
5615 IFS=$lt_save_ifs
5616 done
5617 : ${lt_cv_path_NM=no}
5618fi
5619fi
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5621$as_echo "$lt_cv_path_NM" >&6; }
5622if test no != "$lt_cv_path_NM"; then
5623 NM=$lt_cv_path_NM
5624else
5625 # Didn't find any BSD compatible name lister, look for dumpbin.
5626 if test -n "$DUMPBIN"; then :
5627 # Let the user override the test.
5628 else
5629 if test -n "$ac_tool_prefix"; then
5630 for ac_prog in dumpbin "link -dump"
5631 do
5632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635$as_echo_n "checking for $ac_word... " >&6; }
5636if ${ac_cv_prog_DUMPBIN+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638else
5639 if test -n "$DUMPBIN"; then
5640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653done
5654 done
5655IFS=$as_save_IFS
5656
5657fi
5658fi
5659DUMPBIN=$ac_cv_prog_DUMPBIN
5660if test -n "$DUMPBIN"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5662$as_echo "$DUMPBIN" >&6; }
5663else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666fi
5667
5668
5669 test -n "$DUMPBIN" && break
5670 done
5671fi
5672if test -z "$DUMPBIN"; then
5673 ac_ct_DUMPBIN=$DUMPBIN
5674 for ac_prog in dumpbin "link -dump"
5675do
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677set dummy $ac_prog; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682else
5683 if test -n "$ac_ct_DUMPBIN"; then
5684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697done
5698 done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5704if test -n "$ac_ct_DUMPBIN"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5706$as_echo "$ac_ct_DUMPBIN" >&6; }
5707else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713 test -n "$ac_ct_DUMPBIN" && break
5714done
5715
5716 if test "x$ac_ct_DUMPBIN" = x; then
5717 DUMPBIN=":"
5718 else
5719 case $cross_compiling:$ac_tool_warned in
5720yes:)
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725 DUMPBIN=$ac_ct_DUMPBIN
5726 fi
5727fi
5728
5729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5730 *COFF*)
5731 DUMPBIN="$DUMPBIN -symbols -headers"
5732 ;;
5733 *)
5734 DUMPBIN=:
5735 ;;
5736 esac
5737 fi
5738
5739 if test : != "$DUMPBIN"; then
5740 NM=$DUMPBIN
5741 fi
5742fi
5743test -z "$NM" && NM=nm
5744
5745
5746
5747
5748
5749
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5751$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5752if ${lt_cv_nm_interface+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754else
5755 lt_cv_nm_interface="BSD nm"
5756 echo "int some_variable = 0;" > conftest.$ac_ext
5757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5758 (eval "$ac_compile" 2>conftest.err)
5759 cat conftest.err >&5
5760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5764 cat conftest.out >&5
5765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5766 lt_cv_nm_interface="MS dumpbin"
5767 fi
5768 rm -f conftest*
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5771$as_echo "$lt_cv_nm_interface" >&6; }
5772
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5774$as_echo_n "checking whether ln -s works... " >&6; }
5775LN_S=$as_ln_s
5776if test "$LN_S" = "ln -s"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778$as_echo "yes" >&6; }
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5781$as_echo "no, using $LN_S" >&6; }
5782fi
5783
5784# find the maximum length of command line arguments
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5786$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5787if ${lt_cv_sys_max_cmd_len+:} false; then :
5788 $as_echo_n "(cached) " >&6
5789else
5790 i=0
5791 teststring=ABCD
5792
5793 case $build_os in
5794 msdosdjgpp*)
5795 # On DJGPP, this test can blow up pretty badly due to problems in libc
5796 # (any single argument exceeding 2000 bytes causes a buffer overrun
5797 # during glob expansion). Even if it were fixed, the result of this
5798 # check would be larger than it should be.
5799 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5800 ;;
5801
5802 gnu*)
5803 # Under GNU Hurd, this test is not required because there is
5804 # no limit to the length of command line arguments.
5805 # Libtool will interpret -1 as no limit whatsoever
5806 lt_cv_sys_max_cmd_len=-1;
5807 ;;
5808
5809 cygwin* | mingw* | cegcc*)
5810 # On Win9x/ME, this test blows up -- it succeeds, but takes
5811 # about 5 minutes as the teststring grows exponentially.
5812 # Worse, since 9x/ME are not pre-emptively multitasking,
5813 # you end up with a "frozen" computer, even though with patience
5814 # the test eventually succeeds (with a max line length of 256k).
5815 # Instead, let's just punt: use the minimum linelength reported by
5816 # all of the supported platforms: 8192 (on NT/2K/XP).
5817 lt_cv_sys_max_cmd_len=8192;
5818 ;;
5819
5820 mint*)
5821 # On MiNT this can take a long time and run out of memory.
5822 lt_cv_sys_max_cmd_len=8192;
5823 ;;
5824
5825 amigaos*)
5826 # On AmigaOS with pdksh, this test takes hours, literally.
5827 # So we just punt and use a minimum line length of 8192.
5828 lt_cv_sys_max_cmd_len=8192;
5829 ;;
5830
5831 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5832 # This has been around since 386BSD, at least. Likely further.
5833 if test -x /sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5835 elif test -x /usr/sbin/sysctl; then
5836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5837 else
5838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5839 fi
5840 # And add a safety zone
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5843 ;;
5844
5845 interix*)
5846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5847 lt_cv_sys_max_cmd_len=196608
5848 ;;
5849
5850 os2*)
5851 # The test takes a long time on OS/2.
5852 lt_cv_sys_max_cmd_len=8192
5853 ;;
5854
5855 osf*)
5856 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5857 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5858 # nice to cause kernel panics so lets avoid the loop below.
5859 # First set a reasonable default.
5860 lt_cv_sys_max_cmd_len=16384
5861 #
5862 if test -x /sbin/sysconfig; then
5863 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5864 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5865 esac
5866 fi
5867 ;;
5868 sco3.2v5*)
5869 lt_cv_sys_max_cmd_len=102400
5870 ;;
5871 sysv5* | sco5v6* | sysv4.2uw2*)
5872 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5873 if test -n "$kargmax"; then
5874 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5875 else
5876 lt_cv_sys_max_cmd_len=32768
5877 fi
5878 ;;
5879 *)
5880 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5881 if test -n "$lt_cv_sys_max_cmd_len" && \
5882 test undefined != "$lt_cv_sys_max_cmd_len"; then
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885 else
5886 # Make teststring a little bigger before we do anything with it.
5887 # a 1K string should be a reasonable start.
5888 for i in 1 2 3 4 5 6 7 8; do
5889 teststring=$teststring$teststring
5890 done
5891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892 # If test is not a shell built-in, we'll probably end up computing a
5893 # maximum length that is only half of the actual maximum length, but
5894 # we can't tell.
5895 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5896 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5897 test 17 != "$i" # 1/2 MB should be enough
5898 do
5899 i=`expr $i + 1`
5900 teststring=$teststring$teststring
5901 done
5902 # Only check the string length outside the loop.
5903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904 teststring=
5905 # Add a significant safety factor because C++ compilers can tack on
5906 # massive amounts of additional arguments before passing them to the
5907 # linker. It appears as though 1/2 is a usable value.
5908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909 fi
5910 ;;
5911 esac
5912
5913fi
5914
5915if test -n "$lt_cv_sys_max_cmd_len"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5917$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5918else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5920$as_echo "none" >&6; }
5921fi
5922max_cmd_len=$lt_cv_sys_max_cmd_len
5923
5924
5925
5926
5927
5928
5929: ${CP="cp -f"}
5930: ${MV="mv -f"}
5931: ${RM="rm -f"}
5932
5933if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5934 lt_unset=unset
5935else
5936 lt_unset=false
5937fi
5938
5939
5940
5941
5942
5943# test EBCDIC or ASCII
5944case `echo X|tr X '\101'` in
5945 A) # ASCII based system
5946 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5947 lt_SP2NL='tr \040 \012'
5948 lt_NL2SP='tr \015\012 \040\040'
5949 ;;
5950 *) # EBCDIC based system
5951 lt_SP2NL='tr \100 \n'
5952 lt_NL2SP='tr \r\n \100\100'
5953 ;;
5954esac
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5965$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5966if ${lt_cv_to_host_file_cmd+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968else
5969 case $host in
5970 *-*-mingw* )
5971 case $build in
5972 *-*-mingw* ) # actually msys
5973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5974 ;;
5975 *-*-cygwin* )
5976 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5977 ;;
5978 * ) # otherwise, assume *nix
5979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5980 ;;
5981 esac
5982 ;;
5983 *-*-cygwin* )
5984 case $build in
5985 *-*-mingw* ) # actually msys
5986 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5987 ;;
5988 *-*-cygwin* )
5989 lt_cv_to_host_file_cmd=func_convert_file_noop
5990 ;;
5991 * ) # otherwise, assume *nix
5992 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5993 ;;
5994 esac
5995 ;;
5996 * ) # unhandled hosts (and "normal" native builds)
5997 lt_cv_to_host_file_cmd=func_convert_file_noop
5998 ;;
5999esac
6000
6001fi
6002
6003to_host_file_cmd=$lt_cv_to_host_file_cmd
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6005$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6012$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6013if ${lt_cv_to_tool_file_cmd+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015else
6016 #assume ordinary cross tools, or native build.
6017lt_cv_to_tool_file_cmd=func_convert_file_noop
6018case $host in
6019 *-*-mingw* )
6020 case $build in
6021 *-*-mingw* ) # actually msys
6022 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023 ;;
6024 esac
6025 ;;
6026esac
6027
6028fi
6029
6030to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6032$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6033
6034
6035
6036
6037
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6039$as_echo_n "checking for $LD option to reload object files... " >&6; }
6040if ${lt_cv_ld_reload_flag+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042else
6043 lt_cv_ld_reload_flag='-r'
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6046$as_echo "$lt_cv_ld_reload_flag" >&6; }
6047reload_flag=$lt_cv_ld_reload_flag
6048case $reload_flag in
6049"" | " "*) ;;
6050*) reload_flag=" $reload_flag" ;;
6051esac
6052reload_cmds='$LD$reload_flag -o $output$reload_objs'
6053case $host_os in
6054 cygwin* | mingw* | pw32* | cegcc*)
6055 if test yes != "$GCC"; then
6056 reload_cmds=false
6057 fi
6058 ;;
6059 darwin*)
6060 if test yes = "$GCC"; then
6061 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6062 else
6063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6064 fi
6065 ;;
6066esac
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6078set dummy ${ac_tool_prefix}objdump; ac_word=$2
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if ${ac_cv_prog_OBJDUMP+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083else
6084 if test -n "$OBJDUMP"; then
6085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6097 fi
6098done
6099 done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104OBJDUMP=$ac_cv_prog_OBJDUMP
6105if test -n "$OBJDUMP"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6107$as_echo "$OBJDUMP" >&6; }
6108else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114fi
6115if test -z "$ac_cv_prog_OBJDUMP"; then
6116 ac_ct_OBJDUMP=$OBJDUMP
6117 # Extract the first word of "objdump", so it can be a program name with args.
6118set dummy objdump; ac_word=$2
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120$as_echo_n "checking for $ac_word... " >&6; }
6121if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123else
6124 if test -n "$ac_ct_OBJDUMP"; then
6125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6126else
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138done
6139 done
6140IFS=$as_save_IFS
6141
6142fi
6143fi
6144ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6145if test -n "$ac_ct_OBJDUMP"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6147$as_echo "$ac_ct_OBJDUMP" >&6; }
6148else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150$as_echo "no" >&6; }
6151fi
6152
6153 if test "x$ac_ct_OBJDUMP" = x; then
6154 OBJDUMP="false"
6155 else
6156 case $cross_compiling:$ac_tool_warned in
6157yes:)
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160ac_tool_warned=yes ;;
6161esac
6162 OBJDUMP=$ac_ct_OBJDUMP
6163 fi
6164else
6165 OBJDUMP="$ac_cv_prog_OBJDUMP"
6166fi
6167
6168test -z "$OBJDUMP" && OBJDUMP=objdump
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6179$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6180if ${lt_cv_deplibs_check_method+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182else
6183 lt_cv_file_magic_cmd='$MAGIC_CMD'
6184lt_cv_file_magic_test_file=
6185lt_cv_deplibs_check_method='unknown'
6186# Need to set the preceding variable on all platforms that support
6187# interlibrary dependencies.
6188# 'none' -- dependencies not supported.
6189# 'unknown' -- same as none, but documents that we really don't know.
6190# 'pass_all' -- all dependencies passed with no checks.
6191# 'test_compile' -- check by making test program.
6192# 'file_magic [[regex]]' -- check by looking for files in library path
6193# that responds to the $file_magic_cmd with a given extended regex.
6194# If you have 'file' or equivalent on your system and you're not sure
6195# whether 'pass_all' will *always* work, you probably want this one.
6196
6197case $host_os in
6198aix[4-9]*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202beos*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206bsdi[45]*)
6207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6208 lt_cv_file_magic_cmd='/usr/bin/file -L'
6209 lt_cv_file_magic_test_file=/shlib/libc.so
6210 ;;
6211
6212cygwin*)
6213 # func_win32_libid is a shell function defined in ltmain.sh
6214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6215 lt_cv_file_magic_cmd='func_win32_libid'
6216 ;;
6217
6218mingw* | pw32*)
6219 # Base MSYS/MinGW do not provide the 'file' command needed by
6220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6221 # unless we find 'file', for example because we are cross-compiling.
6222 if ( file / ) >/dev/null 2>&1; then
6223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224 lt_cv_file_magic_cmd='func_win32_libid'
6225 else
6226 # Keep this pattern in sync with the one in func_win32_libid.
6227 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6228 lt_cv_file_magic_cmd='$OBJDUMP -f'
6229 fi
6230 ;;
6231
6232cegcc*)
6233 # use the weaker test based on 'objdump'. See mingw*.
6234 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6235 lt_cv_file_magic_cmd='$OBJDUMP -f'
6236 ;;
6237
6238darwin* | rhapsody*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242freebsd* | dragonfly*)
6243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6244 case $host_cpu in
6245 i*86 )
6246 # Not sure whether the presence of OpenBSD here was a mistake.
6247 # Let's accept both of them until this is cleared up.
6248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6249 lt_cv_file_magic_cmd=/usr/bin/file
6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6251 ;;
6252 esac
6253 else
6254 lt_cv_deplibs_check_method=pass_all
6255 fi
6256 ;;
6257
6258haiku*)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262hpux10.20* | hpux11*)
6263 lt_cv_file_magic_cmd=/usr/bin/file
6264 case $host_cpu in
6265 ia64*)
6266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6268 ;;
6269 hppa*64*)
6270 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]'
6271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6272 ;;
6273 *)
6274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6276 ;;
6277 esac
6278 ;;
6279
6280interix[3-9]*)
6281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6283 ;;
6284
6285irix5* | irix6* | nonstopux*)
6286 case $LD in
6287 *-32|*"-32 ") libmagic=32-bit;;
6288 *-n32|*"-n32 ") libmagic=N32;;
6289 *-64|*"-64 ") libmagic=64-bit;;
6290 *) libmagic=never-match;;
6291 esac
6292 lt_cv_deplibs_check_method=pass_all
6293 ;;
6294
6295# This must be glibc/ELF.
6296linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300netbsd*)
6301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6303 else
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6305 fi
6306 ;;
6307
6308newos6*)
6309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6310 lt_cv_file_magic_cmd=/usr/bin/file
6311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6312 ;;
6313
6314*nto* | *qnx*)
6315 lt_cv_deplibs_check_method=pass_all
6316 ;;
6317
6318openbsd* | bitrig*)
6319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6321 else
6322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323 fi
6324 ;;
6325
6326osf3* | osf4* | osf5*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330rdos*)
6331 lt_cv_deplibs_check_method=pass_all
6332 ;;
6333
6334solaris*)
6335 lt_cv_deplibs_check_method=pass_all
6336 ;;
6337
6338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341
6342sysv4 | sysv4.3*)
6343 case $host_vendor in
6344 motorola)
6345 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]'
6346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6347 ;;
6348 ncr)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351 sequent)
6352 lt_cv_file_magic_cmd='/bin/file'
6353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6354 ;;
6355 sni)
6356 lt_cv_file_magic_cmd='/bin/file'
6357 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6358 lt_cv_file_magic_test_file=/lib/libc.so
6359 ;;
6360 siemens)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363 pc)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366 esac
6367 ;;
6368
6369tpf*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372os2*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375esac
6376
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6379$as_echo "$lt_cv_deplibs_check_method" >&6; }
6380
6381file_magic_glob=
6382want_nocaseglob=no
6383if test "$build" = "$host"; then
6384 case $host_os in
6385 mingw* | pw32*)
6386 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6387 want_nocaseglob=yes
6388 else
6389 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6390 fi
6391 ;;
6392 esac
6393fi
6394
6395file_magic_cmd=$lt_cv_file_magic_cmd
6396deplibs_check_method=$lt_cv_deplibs_check_method
6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420if test -n "$ac_tool_prefix"; then
6421 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6422set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_DLLTOOL+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$DLLTOOL"; then
6429 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443 done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448DLLTOOL=$ac_cv_prog_DLLTOOL
6449if test -n "$DLLTOOL"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6451$as_echo "$DLLTOOL" >&6; }
6452else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458fi
6459if test -z "$ac_cv_prog_DLLTOOL"; then
6460 ac_ct_DLLTOOL=$DLLTOOL
6461 # Extract the first word of "dlltool", so it can be a program name with args.
6462set dummy dlltool; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
6465if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467else
6468 if test -n "$ac_ct_DLLTOOL"; then
6469 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6489if test -n "$ac_ct_DLLTOOL"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6491$as_echo "$ac_ct_DLLTOOL" >&6; }
6492else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497 if test "x$ac_ct_DLLTOOL" = x; then
6498 DLLTOOL="false"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501yes:)
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504ac_tool_warned=yes ;;
6505esac
6506 DLLTOOL=$ac_ct_DLLTOOL
6507 fi
6508else
6509 DLLTOOL="$ac_cv_prog_DLLTOOL"
6510fi
6511
6512test -z "$DLLTOOL" && DLLTOOL=dlltool
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6524$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6525if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527else
6528 lt_cv_sharedlib_from_linklib_cmd='unknown'
6529
6530case $host_os in
6531cygwin* | mingw* | pw32* | cegcc*)
6532 # two different shell functions defined in ltmain.sh;
6533 # decide which one to use based on capabilities of $DLLTOOL
6534 case `$DLLTOOL --help 2>&1` in
6535 *--identify-strict*)
6536 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6537 ;;
6538 *)
6539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6540 ;;
6541 esac
6542 ;;
6543*)
6544 # fallback: assume linklib IS sharedlib
6545 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6546 ;;
6547esac
6548
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6551$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6552sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6553test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6554
6555
6556
6557
6558
6559
6560
6561if test -n "$ac_tool_prefix"; then
6562 for ac_prog in ar
6563 do
6564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if ${ac_cv_prog_AR+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -n "$AR"; then
6572 ac_cv_prog_AR="$AR" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586 done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591AR=$ac_cv_prog_AR
6592if test -n "$AR"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6594$as_echo "$AR" >&6; }
6595else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601 test -n "$AR" && break
6602 done
6603fi
6604if test -z "$AR"; then
6605 ac_ct_AR=$AR
6606 for ac_prog in ar
6607do
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609set dummy $ac_prog; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_ac_ct_AR+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_ac_ct_AR="$ac_prog"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636if test -n "$ac_ct_AR"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638$as_echo "$ac_ct_AR" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645 test -n "$ac_ct_AR" && break
6646done
6647
6648 if test "x$ac_ct_AR" = x; then
6649 AR="false"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657 AR=$ac_ct_AR
6658 fi
6659fi
6660
6661: ${AR=ar}
6662: ${AR_FLAGS=cru}
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6675$as_echo_n "checking for archiver @FILE support... " >&6; }
6676if ${lt_cv_ar_at_file+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678else
6679 lt_cv_ar_at_file=no
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h. */
6682
6683int
6684main ()
6685{
6686
6687 ;
6688 return 0;
6689}
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692 echo conftest.$ac_objext > conftest.lst
6693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6695 (eval $lt_ar_try) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; }
6699 if test 0 -eq "$ac_status"; then
6700 # Ensure the archiver fails upon bogus file names.
6701 rm -f conftest.$ac_objext libconftest.a
6702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6703 (eval $lt_ar_try) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }
6707 if test 0 -ne "$ac_status"; then
6708 lt_cv_ar_at_file=@
6709 fi
6710 fi
6711 rm -f conftest.* libconftest.a
6712
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6718$as_echo "$lt_cv_ar_at_file" >&6; }
6719
6720if test no = "$lt_cv_ar_at_file"; then
6721 archiver_list_spec=
6722else
6723 archiver_list_spec=$lt_cv_ar_at_file
6724fi
6725
6726
6727
6728
6729
6730
6731
6732if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6734set dummy ${ac_tool_prefix}strip; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if ${ac_cv_prog_STRIP+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739else
6740 if test -n "$STRIP"; then
6741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
6760STRIP=$ac_cv_prog_STRIP
6761if test -n "$STRIP"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6763$as_echo "$STRIP" >&6; }
6764else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769
6770fi
6771if test -z "$ac_cv_prog_STRIP"; then
6772 ac_ct_STRIP=$STRIP
6773 # Extract the first word of "strip", so it can be a program name with args.
6774set dummy strip; ac_word=$2
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776$as_echo_n "checking for $ac_word... " >&6; }
6777if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779else
6780 if test -n "$ac_ct_STRIP"; then
6781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6782else
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_STRIP="strip"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794done
6795 done
6796IFS=$as_save_IFS
6797
6798fi
6799fi
6800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6801if test -n "$ac_ct_STRIP"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6803$as_echo "$ac_ct_STRIP" >&6; }
6804else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806$as_echo "no" >&6; }
6807fi
6808
6809 if test "x$ac_ct_STRIP" = x; then
6810 STRIP=":"
6811 else
6812 case $cross_compiling:$ac_tool_warned in
6813yes:)
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816ac_tool_warned=yes ;;
6817esac
6818 STRIP=$ac_ct_STRIP
6819 fi
6820else
6821 STRIP="$ac_cv_prog_STRIP"
6822fi
6823
6824test -z "$STRIP" && STRIP=:
6825
6826
6827
6828
6829
6830
6831if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if ${ac_cv_prog_RANLIB+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838else
6839 if test -n "$RANLIB"; then
6840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853done
6854 done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859RANLIB=$ac_cv_prog_RANLIB
6860if test -n "$RANLIB"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6862$as_echo "$RANLIB" >&6; }
6863else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_RANLIB"; then
6871 ac_ct_RANLIB=$RANLIB
6872 # Extract the first word of "ranlib", so it can be a program name with args.
6873set dummy ranlib; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$ac_ct_RANLIB"; then
6880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_RANLIB="ranlib"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6900if test -n "$ac_ct_RANLIB"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6902$as_echo "$ac_ct_RANLIB" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908 if test "x$ac_ct_RANLIB" = x; then
6909 RANLIB=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 RANLIB=$ac_ct_RANLIB
6918 fi
6919else
6920 RANLIB="$ac_cv_prog_RANLIB"
6921fi
6922
6923test -z "$RANLIB" && RANLIB=:
6924
6925
6926
6927
6928
6929
6930# Determine commands to create old-style static archives.
6931old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6932old_postinstall_cmds='chmod 644 $oldlib'
6933old_postuninstall_cmds=
6934
6935if test -n "$RANLIB"; then
6936 case $host_os in
6937 bitrig* | openbsd*)
6938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6939 ;;
6940 *)
6941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6942 ;;
6943 esac
6944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6945fi
6946
6947case $host_os in
6948 darwin*)
6949 lock_old_archive_extraction=yes ;;
6950 *)
6951 lock_old_archive_extraction=no ;;
6952esac
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992# If no C compiler was specified, use CC.
6993LTCC=${LTCC-"$CC"}
6994
6995# If no C compiler flags were specified, use CFLAGS.
6996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6997
6998# Allow CC to be a program name with arguments.
6999compiler=$CC
7000
7001
7002# Check for command to grab the raw symbol name followed by C symbol from nm.
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7004$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7005if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007else
7008
7009# These are sane defaults that work on at least a few old systems.
7010# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7011
7012# Character class describing NM global symbol codes.
7013symcode='[BCDEGRST]'
7014
7015# Regexp to match symbols that can be accessed directly from C.
7016sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7017
7018# Define system-specific variables.
7019case $host_os in
7020aix*)
7021 symcode='[BCDT]'
7022 ;;
7023cygwin* | mingw* | pw32* | cegcc*)
7024 symcode='[ABCDGISTW]'
7025 ;;
7026hpux*)
7027 if test ia64 = "$host_cpu"; then
7028 symcode='[ABCDEGRST]'
7029 fi
7030 ;;
7031irix* | nonstopux*)
7032 symcode='[BCDEGRST]'
7033 ;;
7034osf*)
7035 symcode='[BCDEGQRST]'
7036 ;;
7037solaris*)
7038 symcode='[BDRT]'
7039 ;;
7040sco3.2v5*)
7041 symcode='[DT]'
7042 ;;
7043sysv4.2uw2*)
7044 symcode='[DT]'
7045 ;;
7046sysv5* | sco5v6* | unixware* | OpenUNIX*)
7047 symcode='[ABDT]'
7048 ;;
7049sysv4)
7050 symcode='[DFNSTU]'
7051 ;;
7052esac
7053
7054# If we're using GNU nm, then use its standard symbol codes.
7055case `$NM -V 2>&1` in
7056*GNU* | *'with BFD'*)
7057 symcode='[ABCDGIRSTW]' ;;
7058esac
7059
7060if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7061 # Gets list of data symbols to import.
7062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7063 # Adjust the below global symbol transforms to fixup imported variables.
7064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7066 lt_c_name_lib_hook="\
7067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7069else
7070 # Disable hooks by default.
7071 lt_cv_sys_global_symbol_to_import=
7072 lt_cdecl_hook=
7073 lt_c_name_hook=
7074 lt_c_name_lib_hook=
7075fi
7076
7077# Transform an extracted symbol line into a proper C declaration.
7078# Some systems (esp. on ia64) link data and code symbols differently,
7079# so use this general approach.
7080lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7081$lt_cdecl_hook\
7082" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7083" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7084
7085# Transform an extracted symbol line into symbol name and symbol address
7086lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7087$lt_c_name_hook\
7088" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7089" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7090
7091# Transform an extracted symbol line into symbol name with lib prefix and
7092# symbol address.
7093lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7094$lt_c_name_lib_hook\
7095" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7096" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7097" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7098
7099# Handle CRLF in mingw tool chain
7100opt_cr=
7101case $build_os in
7102mingw*)
7103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7104 ;;
7105esac
7106
7107# Try without a prefix underscore, then with it.
7108for ac_symprfx in "" "_"; do
7109
7110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7111 symxfrm="\\1 $ac_symprfx\\2 \\2"
7112
7113 # Write the raw and C identifiers.
7114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7115 # Fake it for dumpbin and say T for any non-static function,
7116 # D for any global variable and I for any imported variable.
7117 # Also find C++ and __fastcall symbols from MSVC++,
7118 # which start with @ or ?.
7119 lt_cv_sys_global_symbol_pipe="$AWK '"\
7120" {last_section=section; section=\$ 3};"\
7121" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7122" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7123" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7124" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7125" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7126" \$ 0!~/External *\|/{next};"\
7127" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7128" {if(hide[section]) next};"\
7129" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7130" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7131" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7132" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7133" ' prfx=^$ac_symprfx"
7134 else
7135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7136 fi
7137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7138
7139 # Check to see that the pipe works correctly.
7140 pipe_works=no
7141
7142 rm -f conftest*
7143 cat > conftest.$ac_ext <<_LT_EOF
7144#ifdef __cplusplus
7145extern "C" {
7146#endif
7147char nm_test_var;
7148void nm_test_func(void);
7149void nm_test_func(void){}
7150#ifdef __cplusplus
7151}
7152#endif
7153int main(){nm_test_var='a';nm_test_func();return(0);}
7154_LT_EOF
7155
7156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7157 (eval $ac_compile) 2>&5
7158 ac_status=$?
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; }; then
7161 # Now try to grab the symbols.
7162 nlist=conftest.nm
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; } && test -s "$nlist"; then
7168 # Try sorting and uniquifying the output.
7169 if sort "$nlist" | uniq > "$nlist"T; then
7170 mv -f "$nlist"T "$nlist"
7171 else
7172 rm -f "$nlist"T
7173 fi
7174
7175 # Make sure that we snagged all the symbols we need.
7176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7178 cat <<_LT_EOF > conftest.$ac_ext
7179/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7180#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7181/* DATA imports from DLLs on WIN32 can't be const, because runtime
7182 relocations are performed -- see ld's documentation on pseudo-relocs. */
7183# define LT_DLSYM_CONST
7184#elif defined __osf__
7185/* This system does not cope well with relocations in const data. */
7186# define LT_DLSYM_CONST
7187#else
7188# define LT_DLSYM_CONST const
7189#endif
7190
7191#ifdef __cplusplus
7192extern "C" {
7193#endif
7194
7195_LT_EOF
7196 # Now generate the symbol file.
7197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7198
7199 cat <<_LT_EOF >> conftest.$ac_ext
7200
7201/* The mapping between symbol names and symbols. */
7202LT_DLSYM_CONST struct {
7203 const char *name;
7204 void *address;
7205}
7206lt__PROGRAM__LTX_preloaded_symbols[] =
7207{
7208 { "@PROGRAM@", (void *) 0 },
7209_LT_EOF
7210 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7211 cat <<\_LT_EOF >> conftest.$ac_ext
7212 {0, (void *) 0}
7213};
7214
7215/* This works around a problem in FreeBSD linker */
7216#ifdef FREEBSD_WORKAROUND
7217static const void *lt_preloaded_setup() {
7218 return lt__PROGRAM__LTX_preloaded_symbols;
7219}
7220#endif
7221
7222#ifdef __cplusplus
7223}
7224#endif
7225_LT_EOF
7226 # Now try linking the two files.
7227 mv conftest.$ac_objext conftstm.$ac_objext
7228 lt_globsym_save_LIBS=$LIBS
7229 lt_globsym_save_CFLAGS=$CFLAGS
7230 LIBS=conftstm.$ac_objext
7231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7233 (eval $ac_link) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7237 pipe_works=yes
7238 fi
7239 LIBS=$lt_globsym_save_LIBS
7240 CFLAGS=$lt_globsym_save_CFLAGS
7241 else
7242 echo "cannot find nm_test_func in $nlist" >&5
7243 fi
7244 else
7245 echo "cannot find nm_test_var in $nlist" >&5
7246 fi
7247 else
7248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7249 fi
7250 else
7251 echo "$progname: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7253 fi
7254 rm -rf conftest* conftst*
7255
7256 # Do not use the global_symbol_pipe unless it works.
7257 if test yes = "$pipe_works"; then
7258 break
7259 else
7260 lt_cv_sys_global_symbol_pipe=
7261 fi
7262done
7263
7264fi
7265
7266if test -z "$lt_cv_sys_global_symbol_pipe"; then
7267 lt_cv_sys_global_symbol_to_cdecl=
7268fi
7269if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7271$as_echo "failed" >&6; }
7272else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7274$as_echo "ok" >&6; }
7275fi
7276
7277# Response file support.
7278if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7279 nm_file_list_spec='@'
7280elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7281 nm_file_list_spec='@'
7282fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7321$as_echo_n "checking for sysroot... " >&6; }
7322
7323# Check whether --with-sysroot was given.
7324if test "${with_sysroot+set}" = set; then :
7325 withval=$with_sysroot;
7326else
7327 with_sysroot=no
7328fi
7329
7330
7331lt_sysroot=
7332case $with_sysroot in #(
7333 yes)
7334 if test yes = "$GCC"; then
7335 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7336 fi
7337 ;; #(
7338 /*)
7339 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7340 ;; #(
7341 no|'')
7342 ;; #(
7343 *)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7345$as_echo "$with_sysroot" >&6; }
7346 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7347 ;;
7348esac
7349
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7351$as_echo "${lt_sysroot:-no}" >&6; }
7352
7353
7354
7355
7356
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7358$as_echo_n "checking for a working dd... " >&6; }
7359if ${ac_cv_path_lt_DD+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 printf 0123456789abcdef0123456789abcdef >conftest.i
7363cat conftest.i conftest.i >conftest2.i
7364: ${lt_DD:=$DD}
7365if test -z "$lt_DD"; then
7366 ac_path_lt_DD_found=false
7367 # Loop through the user's path and test for each of PROGNAME-LIST
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_prog in dd; do
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7376 as_fn_executable_p "$ac_path_lt_DD" || continue
7377if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7378 cmp -s conftest.i conftest.out \
7379 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7380fi
7381 $ac_path_lt_DD_found && break 3
7382 done
7383 done
7384 done
7385IFS=$as_save_IFS
7386 if test -z "$ac_cv_path_lt_DD"; then
7387 :
7388 fi
7389else
7390 ac_cv_path_lt_DD=$lt_DD
7391fi
7392
7393rm -f conftest.i conftest2.i conftest.out
7394fi
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7396$as_echo "$ac_cv_path_lt_DD" >&6; }
7397
7398
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7400$as_echo_n "checking how to truncate binary pipes... " >&6; }
7401if ${lt_cv_truncate_bin+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 printf 0123456789abcdef0123456789abcdef >conftest.i
7405cat conftest.i conftest.i >conftest2.i
7406lt_cv_truncate_bin=
7407if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7408 cmp -s conftest.i conftest.out \
7409 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7410fi
7411rm -f conftest.i conftest2.i conftest.out
7412test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7415$as_echo "$lt_cv_truncate_bin" >&6; }
7416
7417
7418
7419
7420
7421
7422
7423# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7424func_cc_basename ()
7425{
7426 for cc_temp in $*""; do
7427 case $cc_temp in
7428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7430 \-*) ;;
7431 *) break;;
7432 esac
7433 done
7434 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7435}
7436
7437# Check whether --enable-libtool-lock was given.
7438if test "${enable_libtool_lock+set}" = set; then :
7439 enableval=$enable_libtool_lock;
7440fi
7441
7442test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7443
7444# Some flags need to be propagated to the compiler or linker for good
7445# libtool support.
7446case $host in
7447ia64-*-hpux*)
7448 # Find out what ABI is being produced by ac_compile, and set mode
7449 # options accordingly.
7450 echo 'int i;' > conftest.$ac_ext
7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452 (eval $ac_compile) 2>&5
7453 ac_status=$?
7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455 test $ac_status = 0; }; then
7456 case `/usr/bin/file conftest.$ac_objext` in
7457 *ELF-32*)
7458 HPUX_IA64_MODE=32
7459 ;;
7460 *ELF-64*)
7461 HPUX_IA64_MODE=64
7462 ;;
7463 esac
7464 fi
7465 rm -rf conftest*
7466 ;;
7467*-*-irix6*)
7468 # Find out what ABI is being produced by ac_compile, and set linker
7469 # options accordingly.
7470 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7472 (eval $ac_compile) 2>&5
7473 ac_status=$?
7474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475 test $ac_status = 0; }; then
7476 if test yes = "$lt_cv_prog_gnu_ld"; then
7477 case `/usr/bin/file conftest.$ac_objext` in
7478 *32-bit*)
7479 LD="${LD-ld} -melf32bsmip"
7480 ;;
7481 *N32*)
7482 LD="${LD-ld} -melf32bmipn32"
7483 ;;
7484 *64-bit*)
7485 LD="${LD-ld} -melf64bmip"
7486 ;;
7487 esac
7488 else
7489 case `/usr/bin/file conftest.$ac_objext` in
7490 *32-bit*)
7491 LD="${LD-ld} -32"
7492 ;;
7493 *N32*)
7494 LD="${LD-ld} -n32"
7495 ;;
7496 *64-bit*)
7497 LD="${LD-ld} -64"
7498 ;;
7499 esac
7500 fi
7501 fi
7502 rm -rf conftest*
7503 ;;
7504
7505mips64*-*linux*)
7506 # Find out what ABI is being produced by ac_compile, and set linker
7507 # options accordingly.
7508 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 emul=elf
7515 case `/usr/bin/file conftest.$ac_objext` in
7516 *32-bit*)
7517 emul="${emul}32"
7518 ;;
7519 *64-bit*)
7520 emul="${emul}64"
7521 ;;
7522 esac
7523 case `/usr/bin/file conftest.$ac_objext` in
7524 *MSB*)
7525 emul="${emul}btsmip"
7526 ;;
7527 *LSB*)
7528 emul="${emul}ltsmip"
7529 ;;
7530 esac
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *N32*)
7533 emul="${emul}n32"
7534 ;;
7535 esac
7536 LD="${LD-ld} -m $emul"
7537 fi
7538 rm -rf conftest*
7539 ;;
7540
7541x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7542s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7543 # Find out what ABI is being produced by ac_compile, and set linker
7544 # options accordingly. Note that the listed cases only cover the
7545 # situations where additional linker options are needed (such as when
7546 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7547 # vice versa); the common cases where no linker options are needed do
7548 # not appear in the list.
7549 echo 'int i;' > conftest.$ac_ext
7550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7551 (eval $ac_compile) 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; }; then
7555 case `/usr/bin/file conftest.o` in
7556 *32-bit*)
7557 case $host in
7558 x86_64-*kfreebsd*-gnu)
7559 LD="${LD-ld} -m elf_i386_fbsd"
7560 ;;
7561 x86_64-*linux*)
7562 case `/usr/bin/file conftest.o` in
7563 *x86-64*)
7564 LD="${LD-ld} -m elf32_x86_64"
7565 ;;
7566 *)
7567 LD="${LD-ld} -m elf_i386"
7568 ;;
7569 esac
7570 ;;
7571 powerpc64le-*linux*)
7572 LD="${LD-ld} -m elf32lppclinux"
7573 ;;
7574 powerpc64-*linux*)
7575 LD="${LD-ld} -m elf32ppclinux"
7576 ;;
7577 s390x-*linux*)
7578 LD="${LD-ld} -m elf_s390"
7579 ;;
7580 sparc64-*linux*)
7581 LD="${LD-ld} -m elf32_sparc"
7582 ;;
7583 esac
7584 ;;
7585 *64-bit*)
7586 case $host in
7587 x86_64-*kfreebsd*-gnu)
7588 LD="${LD-ld} -m elf_x86_64_fbsd"
7589 ;;
7590 x86_64-*linux*)
7591 LD="${LD-ld} -m elf_x86_64"
7592 ;;
7593 powerpcle-*linux*)
7594 LD="${LD-ld} -m elf64lppc"
7595 ;;
7596 powerpc-*linux*)
7597 LD="${LD-ld} -m elf64ppc"
7598 ;;
7599 s390*-*linux*|s390*-*tpf*)
7600 LD="${LD-ld} -m elf64_s390"
7601 ;;
7602 sparc*-*linux*)
7603 LD="${LD-ld} -m elf64_sparc"
7604 ;;
7605 esac
7606 ;;
7607 esac
7608 fi
7609 rm -rf conftest*
7610 ;;
7611
7612*-*-sco3.2v5*)
7613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7614 SAVE_CFLAGS=$CFLAGS
7615 CFLAGS="$CFLAGS -belf"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7617$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7618if ${lt_cv_cc_needs_belf+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620else
7621 ac_ext=c
7622ac_cpp='$CPP $CPPFLAGS'
7623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629
7630int
7631main ()
7632{
7633
7634 ;
7635 return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_link "$LINENO"; then :
7639 lt_cv_cc_needs_belf=yes
7640else
7641 lt_cv_cc_needs_belf=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 ac_ext=c
7646ac_cpp='$CPP $CPPFLAGS'
7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651fi
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7653$as_echo "$lt_cv_cc_needs_belf" >&6; }
7654 if test yes != "$lt_cv_cc_needs_belf"; then
7655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7656 CFLAGS=$SAVE_CFLAGS
7657 fi
7658 ;;
7659*-*solaris*)
7660 # Find out what ABI is being produced by ac_compile, and set linker
7661 # options accordingly.
7662 echo 'int i;' > conftest.$ac_ext
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 case `/usr/bin/file conftest.o` in
7669 *64-bit*)
7670 case $lt_cv_prog_gnu_ld in
7671 yes*)
7672 case $host in
7673 i?86-*-solaris*|x86_64-*-solaris*)
7674 LD="${LD-ld} -m elf_x86_64"
7675 ;;
7676 sparc*-*-solaris*)
7677 LD="${LD-ld} -m elf64_sparc"
7678 ;;
7679 esac
7680 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7681 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7682 LD=${LD-ld}_sol2
7683 fi
7684 ;;
7685 *)
7686 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7687 LD="${LD-ld} -64"
7688 fi
7689 ;;
7690 esac
7691 ;;
7692 esac
7693 fi
7694 rm -rf conftest*
7695 ;;
7696esac
7697
7698need_locks=$enable_libtool_lock
7699
7700if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7702set dummy ${ac_tool_prefix}mt; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707else
7708 if test -n "$MANIFEST_TOOL"; then
7709 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722done
7723 done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7729if test -n "$MANIFEST_TOOL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7731$as_echo "$MANIFEST_TOOL" >&6; }
7732else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737
7738fi
7739if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7741 # Extract the first word of "mt", so it can be a program name with args.
7742set dummy mt; ac_word=$2
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744$as_echo_n "checking for $ac_word... " >&6; }
7745if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747else
7748 if test -n "$ac_ct_MANIFEST_TOOL"; then
7749 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763 done
7764IFS=$as_save_IFS
7765
7766fi
7767fi
7768ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7769if test -n "$ac_ct_MANIFEST_TOOL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7771$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7772else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775fi
7776
7777 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7778 MANIFEST_TOOL=":"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781yes:)
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784ac_tool_warned=yes ;;
7785esac
7786 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7787 fi
7788else
7789 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7790fi
7791
7792test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7794$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7795if ${lt_cv_path_mainfest_tool+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 lt_cv_path_mainfest_tool=no
7799 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7800 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7801 cat conftest.err >&5
7802 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7803 lt_cv_path_mainfest_tool=yes
7804 fi
7805 rm -f conftest*
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7808$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7809if test yes != "$lt_cv_path_mainfest_tool"; then
7810 MANIFEST_TOOL=:
7811fi
7812
7813
7814
7815
7816
7817
7818 case $host_os in
7819 rhapsody* | darwin*)
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7822set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if ${ac_cv_prog_DSYMUTIL+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827else
7828 if test -n "$DSYMUTIL"; then
7829 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7841 fi
7842done
7843 done
7844IFS=$as_save_IFS
7845
7846fi
7847fi
7848DSYMUTIL=$ac_cv_prog_DSYMUTIL
7849if test -n "$DSYMUTIL"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7851$as_echo "$DSYMUTIL" >&6; }
7852else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855fi
7856
7857
7858fi
7859if test -z "$ac_cv_prog_DSYMUTIL"; then
7860 ac_ct_DSYMUTIL=$DSYMUTIL
7861 # Extract the first word of "dsymutil", so it can be a program name with args.
7862set dummy dsymutil; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867else
7868 if test -n "$ac_ct_DSYMUTIL"; then
7869 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883 done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7889if test -n "$ac_ct_DSYMUTIL"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7891$as_echo "$ac_ct_DSYMUTIL" >&6; }
7892else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
7896
7897 if test "x$ac_ct_DSYMUTIL" = x; then
7898 DSYMUTIL=":"
7899 else
7900 case $cross_compiling:$ac_tool_warned in
7901yes:)
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904ac_tool_warned=yes ;;
7905esac
7906 DSYMUTIL=$ac_ct_DSYMUTIL
7907 fi
7908else
7909 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7910fi
7911
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7914set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916$as_echo_n "checking for $ac_word... " >&6; }
7917if ${ac_cv_prog_NMEDIT+:} false; then :
7918 $as_echo_n "(cached) " >&6
7919else
7920 if test -n "$NMEDIT"; then
7921 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926 IFS=$as_save_IFS
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932 break 2
7933 fi
7934done
7935 done
7936IFS=$as_save_IFS
7937
7938fi
7939fi
7940NMEDIT=$ac_cv_prog_NMEDIT
7941if test -n "$NMEDIT"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7943$as_echo "$NMEDIT" >&6; }
7944else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946$as_echo "no" >&6; }
7947fi
7948
7949
7950fi
7951if test -z "$ac_cv_prog_NMEDIT"; then
7952 ac_ct_NMEDIT=$NMEDIT
7953 # Extract the first word of "nmedit", so it can be a program name with args.
7954set dummy nmedit; ac_word=$2
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959else
7960 if test -n "$ac_ct_NMEDIT"; then
7961 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7962else
7963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974done
7975 done
7976IFS=$as_save_IFS
7977
7978fi
7979fi
7980ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7981if test -n "$ac_ct_NMEDIT"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7983$as_echo "$ac_ct_NMEDIT" >&6; }
7984else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989 if test "x$ac_ct_NMEDIT" = x; then
7990 NMEDIT=":"
7991 else
7992 case $cross_compiling:$ac_tool_warned in
7993yes:)
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996ac_tool_warned=yes ;;
7997esac
7998 NMEDIT=$ac_ct_NMEDIT
7999 fi
8000else
8001 NMEDIT="$ac_cv_prog_NMEDIT"
8002fi
8003
8004 if test -n "$ac_tool_prefix"; then
8005 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8006set dummy ${ac_tool_prefix}lipo; ac_word=$2
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008$as_echo_n "checking for $ac_word... " >&6; }
8009if ${ac_cv_prog_LIPO+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011else
8012 if test -n "$LIPO"; then
8013 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8014else
8015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026done
8027 done
8028IFS=$as_save_IFS
8029
8030fi
8031fi
8032LIPO=$ac_cv_prog_LIPO
8033if test -n "$LIPO"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8035$as_echo "$LIPO" >&6; }
8036else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038$as_echo "no" >&6; }
8039fi
8040
8041
8042fi
8043if test -z "$ac_cv_prog_LIPO"; then
8044 ac_ct_LIPO=$LIPO
8045 # Extract the first word of "lipo", so it can be a program name with args.
8046set dummy lipo; ac_word=$2
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 if test -n "$ac_ct_LIPO"; then
8053 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8054else
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_ac_ct_LIPO="lipo"
8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 break 2
8065 fi
8066done
8067 done
8068IFS=$as_save_IFS
8069
8070fi
8071fi
8072ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8073if test -n "$ac_ct_LIPO"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8075$as_echo "$ac_ct_LIPO" >&6; }
8076else
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
8079fi
8080
8081 if test "x$ac_ct_LIPO" = x; then
8082 LIPO=":"
8083 else
8084 case $cross_compiling:$ac_tool_warned in
8085yes:)
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088ac_tool_warned=yes ;;
8089esac
8090 LIPO=$ac_ct_LIPO
8091 fi
8092else
8093 LIPO="$ac_cv_prog_LIPO"
8094fi
8095
8096 if test -n "$ac_tool_prefix"; then
8097 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8098set dummy ${ac_tool_prefix}otool; ac_word=$2
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100$as_echo_n "checking for $ac_word... " >&6; }
8101if ${ac_cv_prog_OTOOL+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 if test -n "$OTOOL"; then
8105 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119 done
8120IFS=$as_save_IFS
8121
8122fi
8123fi
8124OTOOL=$ac_cv_prog_OTOOL
8125if test -n "$OTOOL"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8127$as_echo "$OTOOL" >&6; }
8128else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130$as_echo "no" >&6; }
8131fi
8132
8133
8134fi
8135if test -z "$ac_cv_prog_OTOOL"; then
8136 ac_ct_OTOOL=$OTOOL
8137 # Extract the first word of "otool", so it can be a program name with args.
8138set dummy otool; ac_word=$2
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140$as_echo_n "checking for $ac_word... " >&6; }
8141if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143else
8144 if test -n "$ac_ct_OTOOL"; then
8145 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8146else
8147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_ac_ct_OTOOL="otool"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158done
8159 done
8160IFS=$as_save_IFS
8161
8162fi
8163fi
8164ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8165if test -n "$ac_ct_OTOOL"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8167$as_echo "$ac_ct_OTOOL" >&6; }
8168else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170$as_echo "no" >&6; }
8171fi
8172
8173 if test "x$ac_ct_OTOOL" = x; then
8174 OTOOL=":"
8175 else
8176 case $cross_compiling:$ac_tool_warned in
8177yes:)
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8180ac_tool_warned=yes ;;
8181esac
8182 OTOOL=$ac_ct_OTOOL
8183 fi
8184else
8185 OTOOL="$ac_cv_prog_OTOOL"
8186fi
8187
8188 if test -n "$ac_tool_prefix"; then
8189 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8190set dummy ${ac_tool_prefix}otool64; ac_word=$2
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192$as_echo_n "checking for $ac_word... " >&6; }
8193if ${ac_cv_prog_OTOOL64+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195else
8196 if test -n "$OTOOL64"; then
8197 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210done
8211 done
8212IFS=$as_save_IFS
8213
8214fi
8215fi
8216OTOOL64=$ac_cv_prog_OTOOL64
8217if test -n "$OTOOL64"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8219$as_echo "$OTOOL64" >&6; }
8220else
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
8223fi
8224
8225
8226fi
8227if test -z "$ac_cv_prog_OTOOL64"; then
8228 ac_ct_OTOOL64=$OTOOL64
8229 # Extract the first word of "otool64", so it can be a program name with args.
8230set dummy otool64; ac_word=$2
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232$as_echo_n "checking for $ac_word... " >&6; }
8233if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235else
8236 if test -n "$ac_ct_OTOOL64"; then
8237 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8238else
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246 ac_cv_prog_ac_ct_OTOOL64="otool64"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8249 fi
8250done
8251 done
8252IFS=$as_save_IFS
8253
8254fi
8255fi
8256ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8257if test -n "$ac_ct_OTOOL64"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8259$as_echo "$ac_ct_OTOOL64" >&6; }
8260else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264
8265 if test "x$ac_ct_OTOOL64" = x; then
8266 OTOOL64=":"
8267 else
8268 case $cross_compiling:$ac_tool_warned in
8269yes:)
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8272ac_tool_warned=yes ;;
8273esac
8274 OTOOL64=$ac_ct_OTOOL64
8275 fi
8276else
8277 OTOOL64="$ac_cv_prog_OTOOL64"
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8307$as_echo_n "checking for -single_module linker flag... " >&6; }
8308if ${lt_cv_apple_cc_single_mod+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310else
8311 lt_cv_apple_cc_single_mod=no
8312 if test -z "$LT_MULTI_MODULE"; then
8313 # By default we will add the -single_module flag. You can override
8314 # by either setting the environment variable LT_MULTI_MODULE
8315 # non-empty at configure time, or by adding -multi_module to the
8316 # link flags.
8317 rm -rf libconftest.dylib*
8318 echo "int foo(void){return 1;}" > conftest.c
8319 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8320-dynamiclib -Wl,-single_module conftest.c" >&5
8321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8322 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8323 _lt_result=$?
8324 # If there is a non-empty error log, and "single_module"
8325 # appears in it, assume the flag caused a linker warning
8326 if test -s conftest.err && $GREP single_module conftest.err; then
8327 cat conftest.err >&5
8328 # Otherwise, if the output was created with a 0 exit code from
8329 # the compiler, it worked.
8330 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8331 lt_cv_apple_cc_single_mod=yes
8332 else
8333 cat conftest.err >&5
8334 fi
8335 rm -rf libconftest.dylib*
8336 rm -f conftest.*
8337 fi
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8340$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8343$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8344if ${lt_cv_ld_exported_symbols_list+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346else
8347 lt_cv_ld_exported_symbols_list=no
8348 save_LDFLAGS=$LDFLAGS
8349 echo "_main" > conftest.sym
8350 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353
8354int
8355main ()
8356{
8357
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_link "$LINENO"; then :
8363 lt_cv_ld_exported_symbols_list=yes
8364else
8365 lt_cv_ld_exported_symbols_list=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 LDFLAGS=$save_LDFLAGS
8370
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8373$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8376$as_echo_n "checking for -force_load linker flag... " >&6; }
8377if ${lt_cv_ld_force_load+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379else
8380 lt_cv_ld_force_load=no
8381 cat > conftest.c << _LT_EOF
8382int forced_loaded() { return 2;}
8383_LT_EOF
8384 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8385 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8386 echo "$AR cru libconftest.a conftest.o" >&5
8387 $AR cru libconftest.a conftest.o 2>&5
8388 echo "$RANLIB libconftest.a" >&5
8389 $RANLIB libconftest.a 2>&5
8390 cat > conftest.c << _LT_EOF
8391int main() { return 0;}
8392_LT_EOF
8393 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8394 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8395 _lt_result=$?
8396 if test -s conftest.err && $GREP force_load conftest.err; then
8397 cat conftest.err >&5
8398 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8399 lt_cv_ld_force_load=yes
8400 else
8401 cat conftest.err >&5
8402 fi
8403 rm -f conftest.err libconftest.a conftest conftest.c
8404 rm -rf conftest.dSYM
8405
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8408$as_echo "$lt_cv_ld_force_load" >&6; }
8409 case $host_os in
8410 rhapsody* | darwin1.[012])
8411 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8412 darwin1.*)
8413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8414 darwin*) # darwin 5.x on
8415 # if running on 10.5 or later, the deployment target defaults
8416 # to the OS version, if on x86, and 10.4, the deployment
8417 # target defaults to 10.4. Don't you love it?
8418 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8419 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8420 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8421 10.[012][,.]*)
8422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8423 10.*)
8424 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8425 esac
8426 ;;
8427 esac
8428 if test yes = "$lt_cv_apple_cc_single_mod"; then
8429 _lt_dar_single_mod='$single_module'
8430 fi
8431 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8432 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8433 else
8434 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8435 fi
8436 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8437 _lt_dsymutil='~$DSYMUTIL $lib || :'
8438 else
8439 _lt_dsymutil=
8440 fi
8441 ;;
8442 esac
8443
8444# func_munge_path_list VARIABLE PATH
8445# -----------------------------------
8446# VARIABLE is name of variable containing _space_ separated list of
8447# directories to be munged by the contents of PATH, which is string
8448# having a format:
8449# "DIR[:DIR]:"
8450# string "DIR[ DIR]" will be prepended to VARIABLE
8451# ":DIR[:DIR]"
8452# string "DIR[ DIR]" will be appended to VARIABLE
8453# "DIRP[:DIRP]::[DIRA:]DIRA"
8454# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8455# "DIRA[ DIRA]" will be appended to VARIABLE
8456# "DIR[:DIR]"
8457# VARIABLE will be replaced by "DIR[ DIR]"
8458func_munge_path_list ()
8459{
8460 case x$2 in
8461 x)
8462 ;;
8463 *:)
8464 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8465 ;;
8466 x:*)
8467 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8468 ;;
8469 *::*)
8470 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8471 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8472 ;;
8473 *)
8474 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8475 ;;
8476 esac
8477}
8478
8479for ac_header in dlfcn.h
8480do :
8481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8482"
8483if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485#define HAVE_DLFCN_H 1
8486_ACEOF
8487
8488fi
8489
8490done
8491
8492
8493
8494
8495
8496# Set options
8497
8498
8499
8500 enable_dlopen=no
8501
8502
8503 enable_win32_dll=no
8504
8505
8506 # Check whether --enable-shared was given.
8507if test "${enable_shared+set}" = set; then :
8508 enableval=$enable_shared; p=${PACKAGE-default}
8509 case $enableval in
8510 yes) enable_shared=yes ;;
8511 no) enable_shared=no ;;
8512 *)
8513 enable_shared=no
8514 # Look at the argument we got. We use all the common list separators.
8515 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8516 for pkg in $enableval; do
8517 IFS=$lt_save_ifs
8518 if test "X$pkg" = "X$p"; then
8519 enable_shared=yes
8520 fi
8521 done
8522 IFS=$lt_save_ifs
8523 ;;
8524 esac
8525else
8526 enable_shared=yes
8527fi
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537 # Check whether --enable-static was given.
8538if test "${enable_static+set}" = set; then :
8539 enableval=$enable_static; p=${PACKAGE-default}
8540 case $enableval in
8541 yes) enable_static=yes ;;
8542 no) enable_static=no ;;
8543 *)
8544 enable_static=no
8545 # Look at the argument we got. We use all the common list separators.
8546 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8547 for pkg in $enableval; do
8548 IFS=$lt_save_ifs
8549 if test "X$pkg" = "X$p"; then
8550 enable_static=yes
8551 fi
8552 done
8553 IFS=$lt_save_ifs
8554 ;;
8555 esac
8556else
8557 enable_static=yes
8558fi
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569# Check whether --with-pic was given.
8570if test "${with_pic+set}" = set; then :
8571 withval=$with_pic; lt_p=${PACKAGE-default}
8572 case $withval in
8573 yes|no) pic_mode=$withval ;;
8574 *)
8575 pic_mode=default
8576 # Look at the argument we got. We use all the common list separators.
8577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8578 for lt_pkg in $withval; do
8579 IFS=$lt_save_ifs
8580 if test "X$lt_pkg" = "X$lt_p"; then
8581 pic_mode=yes
8582 fi
8583 done
8584 IFS=$lt_save_ifs
8585 ;;
8586 esac
8587else
8588 pic_mode=default
8589fi
8590
8591
8592
8593
8594
8595
8596
8597
8598 # Check whether --enable-fast-install was given.
8599if test "${enable_fast_install+set}" = set; then :
8600 enableval=$enable_fast_install; p=${PACKAGE-default}
8601 case $enableval in
8602 yes) enable_fast_install=yes ;;
8603 no) enable_fast_install=no ;;
8604 *)
8605 enable_fast_install=no
8606 # Look at the argument we got. We use all the common list separators.
8607 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8608 for pkg in $enableval; do
8609 IFS=$lt_save_ifs
8610 if test "X$pkg" = "X$p"; then
8611 enable_fast_install=yes
8612 fi
8613 done
8614 IFS=$lt_save_ifs
8615 ;;
8616 esac
8617else
8618 enable_fast_install=yes
8619fi
8620
8621
8622
8623
8624
8625
8626
8627
8628 shared_archive_member_spec=
8629case $host,$enable_shared in
8630power*-*-aix[5-9]*,yes)
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8632$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8633
8634# Check whether --with-aix-soname was given.
8635if test "${with_aix_soname+set}" = set; then :
8636 withval=$with_aix_soname; case $withval in
8637 aix|svr4|both)
8638 ;;
8639 *)
8640 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8641 ;;
8642 esac
8643 lt_cv_with_aix_soname=$with_aix_soname
8644else
8645 if ${lt_cv_with_aix_soname+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647else
8648 lt_cv_with_aix_soname=aix
8649fi
8650
8651 with_aix_soname=$lt_cv_with_aix_soname
8652fi
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8655$as_echo "$with_aix_soname" >&6; }
8656 if test aix != "$with_aix_soname"; then
8657 # For the AIX way of multilib, we name the shared archive member
8658 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8659 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8660 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8661 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8662 if test 64 = "${OBJECT_MODE-32}"; then
8663 shared_archive_member_spec=shr_64
8664 else
8665 shared_archive_member_spec=shr
8666 fi
8667 fi
8668 ;;
8669*)
8670 with_aix_soname=aix
8671 ;;
8672esac
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683# This can be used to rebuild libtool when needed
8684LIBTOOL_DEPS=$ltmain
8685
8686# Always use our own libtool.
8687LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718test -z "$LN_S" && LN_S="ln -s"
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733if test -n "${ZSH_VERSION+set}"; then
8734 setopt NO_GLOB_SUBST
8735fi
8736
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8738$as_echo_n "checking for objdir... " >&6; }
8739if ${lt_cv_objdir+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741else
8742 rm -f .libs 2>/dev/null
8743mkdir .libs 2>/dev/null
8744if test -d .libs; then
8745 lt_cv_objdir=.libs
8746else
8747 # MS-DOS does not allow filenames that begin with a dot.
8748 lt_cv_objdir=_libs
8749fi
8750rmdir .libs 2>/dev/null
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8753$as_echo "$lt_cv_objdir" >&6; }
8754objdir=$lt_cv_objdir
8755
8756
8757
8758
8759
8760cat >>confdefs.h <<_ACEOF
8761#define LT_OBJDIR "$lt_cv_objdir/"
8762_ACEOF
8763
8764
8765
8766
8767case $host_os in
8768aix3*)
8769 # AIX sometimes has problems with the GCC collect2 program. For some
8770 # reason, if we set the COLLECT_NAMES environment variable, the problems
8771 # vanish in a puff of smoke.
8772 if test set != "${COLLECT_NAMES+set}"; then
8773 COLLECT_NAMES=
8774 export COLLECT_NAMES
8775 fi
8776 ;;
8777esac
8778
8779# Global variables:
8780ofile=libtool
8781can_build_shared=yes
8782
8783# All known linkers require a '.a' archive for static linking (except MSVC,
8784# which needs '.lib').
8785libext=a
8786
8787with_gnu_ld=$lt_cv_prog_gnu_ld
8788
8789old_CC=$CC
8790old_CFLAGS=$CFLAGS
8791
8792# Set sane defaults for various variables
8793test -z "$CC" && CC=cc
8794test -z "$LTCC" && LTCC=$CC
8795test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8796test -z "$LD" && LD=ld
8797test -z "$ac_objext" && ac_objext=o
8798
8799func_cc_basename $compiler
8800cc_basename=$func_cc_basename_result
8801
8802
8803# Only perform the check for file, if the check method requires it
8804test -z "$MAGIC_CMD" && MAGIC_CMD=file
8805case $deplibs_check_method in
8806file_magic*)
8807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8809$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8810if ${lt_cv_path_MAGIC_CMD+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812else
8813 case $MAGIC_CMD in
8814[\\/*] | ?:[\\/]*)
8815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8816 ;;
8817*)
8818 lt_save_MAGIC_CMD=$MAGIC_CMD
8819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8821 for ac_dir in $ac_dummy; do
8822 IFS=$lt_save_ifs
8823 test -z "$ac_dir" && ac_dir=.
8824 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8825 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8826 if test -n "$file_magic_test_file"; then
8827 case $deplibs_check_method in
8828 "file_magic "*)
8829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8832 $EGREP "$file_magic_regex" > /dev/null; then
8833 :
8834 else
8835 cat <<_LT_EOF 1>&2
8836
8837*** Warning: the command libtool uses to detect shared libraries,
8838*** $file_magic_cmd, produces output that libtool cannot recognize.
8839*** The result is that libtool may fail to recognize shared libraries
8840*** as such. This will affect the creation of libtool libraries that
8841*** depend on shared libraries, but programs linked with such libtool
8842*** libraries will work regardless of this problem. Nevertheless, you
8843*** may want to report the problem to your system manager and/or to
8844*** bug-libtool@gnu.org
8845
8846_LT_EOF
8847 fi ;;
8848 esac
8849 fi
8850 break
8851 fi
8852 done
8853 IFS=$lt_save_ifs
8854 MAGIC_CMD=$lt_save_MAGIC_CMD
8855 ;;
8856esac
8857fi
8858
8859MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8860if test -n "$MAGIC_CMD"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8862$as_echo "$MAGIC_CMD" >&6; }
8863else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866fi
8867
8868
8869
8870
8871
8872if test -z "$lt_cv_path_MAGIC_CMD"; then
8873 if test -n "$ac_tool_prefix"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8875$as_echo_n "checking for file... " >&6; }
8876if ${lt_cv_path_MAGIC_CMD+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878else
8879 case $MAGIC_CMD in
8880[\\/*] | ?:[\\/]*)
8881 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8882 ;;
8883*)
8884 lt_save_MAGIC_CMD=$MAGIC_CMD
8885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8887 for ac_dir in $ac_dummy; do
8888 IFS=$lt_save_ifs
8889 test -z "$ac_dir" && ac_dir=.
8890 if test -f "$ac_dir/file"; then
8891 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8892 if test -n "$file_magic_test_file"; then
8893 case $deplibs_check_method in
8894 "file_magic "*)
8895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8898 $EGREP "$file_magic_regex" > /dev/null; then
8899 :
8900 else
8901 cat <<_LT_EOF 1>&2
8902
8903*** Warning: the command libtool uses to detect shared libraries,
8904*** $file_magic_cmd, produces output that libtool cannot recognize.
8905*** The result is that libtool may fail to recognize shared libraries
8906*** as such. This will affect the creation of libtool libraries that
8907*** depend on shared libraries, but programs linked with such libtool
8908*** libraries will work regardless of this problem. Nevertheless, you
8909*** may want to report the problem to your system manager and/or to
8910*** bug-libtool@gnu.org
8911
8912_LT_EOF
8913 fi ;;
8914 esac
8915 fi
8916 break
8917 fi
8918 done
8919 IFS=$lt_save_ifs
8920 MAGIC_CMD=$lt_save_MAGIC_CMD
8921 ;;
8922esac
8923fi
8924
8925MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8926if test -n "$MAGIC_CMD"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8928$as_echo "$MAGIC_CMD" >&6; }
8929else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931$as_echo "no" >&6; }
8932fi
8933
8934
8935 else
8936 MAGIC_CMD=:
8937 fi
8938fi
8939
8940 fi
8941 ;;
8942esac
8943
8944# Use C for the default configuration in the libtool script
8945
8946lt_save_CC=$CC
8947ac_ext=c
8948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953
8954# Source file extension for C test sources.
8955ac_ext=c
8956
8957# Object file extension for compiled C test sources.
8958objext=o
8959objext=$objext
8960
8961# Code to be used in simple compile tests
8962lt_simple_compile_test_code="int some_variable = 0;"
8963
8964# Code to be used in simple link tests
8965lt_simple_link_test_code='int main(){return(0);}'
8966
8967
8968
8969
8970
8971
8972
8973# If no C compiler was specified, use CC.
8974LTCC=${LTCC-"$CC"}
8975
8976# If no C compiler flags were specified, use CFLAGS.
8977LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8978
8979# Allow CC to be a program name with arguments.
8980compiler=$CC
8981
8982# Save the default compiler, since it gets overwritten when the other
8983# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8984compiler_DEFAULT=$CC
8985
8986# save warnings/boilerplate of simple test code
8987ac_outfile=conftest.$ac_objext
8988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8990_lt_compiler_boilerplate=`cat conftest.err`
8991$RM conftest*
8992
8993ac_outfile=conftest.$ac_objext
8994echo "$lt_simple_link_test_code" >conftest.$ac_ext
8995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8996_lt_linker_boilerplate=`cat conftest.err`
8997$RM -r conftest*
8998
8999
9000if test -n "$compiler"; then
9001
9002lt_prog_compiler_no_builtin_flag=
9003
9004if test yes = "$GCC"; then
9005 case $cc_basename in
9006 nvcc*)
9007 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9008 *)
9009 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9010 esac
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9013$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9014if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016else
9017 lt_cv_prog_compiler_rtti_exceptions=no
9018 ac_outfile=conftest.$ac_objext
9019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 # The option is referenced via a variable to avoid confusing sed.
9026 lt_compile=`echo "$ac_compile" | $SED \
9027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9029 -e 's:$: $lt_compiler_flag:'`
9030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9031 (eval "$lt_compile" 2>conftest.err)
9032 ac_status=$?
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 if (exit $ac_status) && test -s "$ac_outfile"; then
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings other than the usual output.
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_rtti_exceptions=yes
9042 fi
9043 fi
9044 $RM conftest*
9045
9046fi
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9048$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9049
9050if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9052else
9053 :
9054fi
9055
9056fi
9057
9058
9059
9060
9061
9062
9063 lt_prog_compiler_wl=
9064lt_prog_compiler_pic=
9065lt_prog_compiler_static=
9066
9067
9068 if test yes = "$GCC"; then
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_static='-static'
9071
9072 case $host_os in
9073 aix*)
9074 # All AIX code is PIC.
9075 if test ia64 = "$host_cpu"; then
9076 # AIX 5 now supports IA64 processor
9077 lt_prog_compiler_static='-Bstatic'
9078 fi
9079 lt_prog_compiler_pic='-fPIC'
9080 ;;
9081
9082 amigaos*)
9083 case $host_cpu in
9084 powerpc)
9085 # see comment about AmigaOS4 .so support
9086 lt_prog_compiler_pic='-fPIC'
9087 ;;
9088 m68k)
9089 # FIXME: we need at least 68020 code to build shared libraries, but
9090 # adding the '-m68020' flag to GCC prevents building anything better,
9091 # like '-m68040'.
9092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9093 ;;
9094 esac
9095 ;;
9096
9097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9098 # PIC is the default for these OSes.
9099 ;;
9100
9101 mingw* | cygwin* | pw32* | os2* | cegcc*)
9102 # This hack is so that the source file can tell whether it is being
9103 # built for inclusion in a dll (and should export symbols for example).
9104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9105 # (--disable-auto-import) libraries
9106 lt_prog_compiler_pic='-DDLL_EXPORT'
9107 case $host_os in
9108 os2*)
9109 lt_prog_compiler_static='$wl-static'
9110 ;;
9111 esac
9112 ;;
9113
9114 darwin* | rhapsody*)
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 lt_prog_compiler_pic='-fno-common'
9118 ;;
9119
9120 haiku*)
9121 # PIC is the default for Haiku.
9122 # The "-static" flag exists, but is broken.
9123 lt_prog_compiler_static=
9124 ;;
9125
9126 hpux*)
9127 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9128 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9129 # sets the default TLS model and affects inlining.
9130 case $host_cpu in
9131 hppa*64*)
9132 # +Z the default
9133 ;;
9134 *)
9135 lt_prog_compiler_pic='-fPIC'
9136 ;;
9137 esac
9138 ;;
9139
9140 interix[3-9]*)
9141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9142 # Instead, we relocate shared libraries at runtime.
9143 ;;
9144
9145 msdosdjgpp*)
9146 # Just because we use GCC doesn't mean we suddenly get shared libraries
9147 # on systems that don't support them.
9148 lt_prog_compiler_can_build_shared=no
9149 enable_shared=no
9150 ;;
9151
9152 *nto* | *qnx*)
9153 # QNX uses GNU C++, but need to define -shared option too, otherwise
9154 # it will coredump.
9155 lt_prog_compiler_pic='-fPIC -shared'
9156 ;;
9157
9158 sysv4*MP*)
9159 if test -d /usr/nec; then
9160 lt_prog_compiler_pic=-Kconform_pic
9161 fi
9162 ;;
9163
9164 *)
9165 lt_prog_compiler_pic='-fPIC'
9166 ;;
9167 esac
9168
9169 case $cc_basename in
9170 nvcc*) # Cuda Compiler Driver 2.2
9171 lt_prog_compiler_wl='-Xlinker '
9172 if test -n "$lt_prog_compiler_pic"; then
9173 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9174 fi
9175 ;;
9176 esac
9177 else
9178 # PORTME Check for flag to pass linker flags through the system compiler.
9179 case $host_os in
9180 aix*)
9181 lt_prog_compiler_wl='-Wl,'
9182 if test ia64 = "$host_cpu"; then
9183 # AIX 5 now supports IA64 processor
9184 lt_prog_compiler_static='-Bstatic'
9185 else
9186 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9187 fi
9188 ;;
9189
9190 darwin* | rhapsody*)
9191 # PIC is the default on this platform
9192 # Common symbols not allowed in MH_DYLIB files
9193 lt_prog_compiler_pic='-fno-common'
9194 case $cc_basename in
9195 nagfor*)
9196 # NAG Fortran compiler
9197 lt_prog_compiler_wl='-Wl,-Wl,,'
9198 lt_prog_compiler_pic='-PIC'
9199 lt_prog_compiler_static='-Bstatic'
9200 ;;
9201 esac
9202 ;;
9203
9204 mingw* | cygwin* | pw32* | os2* | cegcc*)
9205 # This hack is so that the source file can tell whether it is being
9206 # built for inclusion in a dll (and should export symbols for example).
9207 lt_prog_compiler_pic='-DDLL_EXPORT'
9208 case $host_os in
9209 os2*)
9210 lt_prog_compiler_static='$wl-static'
9211 ;;
9212 esac
9213 ;;
9214
9215 hpux9* | hpux10* | hpux11*)
9216 lt_prog_compiler_wl='-Wl,'
9217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9218 # not for PA HP-UX.
9219 case $host_cpu in
9220 hppa*64*|ia64*)
9221 # +Z the default
9222 ;;
9223 *)
9224 lt_prog_compiler_pic='+Z'
9225 ;;
9226 esac
9227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9228 lt_prog_compiler_static='$wl-a ${wl}archive'
9229 ;;
9230
9231 irix5* | irix6* | nonstopux*)
9232 lt_prog_compiler_wl='-Wl,'
9233 # PIC (with -KPIC) is the default.
9234 lt_prog_compiler_static='-non_shared'
9235 ;;
9236
9237 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9238 case $cc_basename in
9239 # old Intel for x86_64, which still supported -KPIC.
9240 ecc*)
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-static'
9244 ;;
9245 # icc used to be incompatible with GCC.
9246 # ICC 10 doesn't accept -KPIC any more.
9247 icc* | ifort*)
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-fPIC'
9250 lt_prog_compiler_static='-static'
9251 ;;
9252 # Lahey Fortran 8.1.
9253 lf95*)
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='--shared'
9256 lt_prog_compiler_static='--static'
9257 ;;
9258 nagfor*)
9259 # NAG Fortran compiler
9260 lt_prog_compiler_wl='-Wl,-Wl,,'
9261 lt_prog_compiler_pic='-PIC'
9262 lt_prog_compiler_static='-Bstatic'
9263 ;;
9264 tcc*)
9265 # Fabrice Bellard et al's Tiny C Compiler
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-fPIC'
9268 lt_prog_compiler_static='-static'
9269 ;;
9270 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9271 # Portland Group compilers (*not* the Pentium gcc compiler,
9272 # which looks to be a dead project)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='-fpic'
9275 lt_prog_compiler_static='-Bstatic'
9276 ;;
9277 ccc*)
9278 lt_prog_compiler_wl='-Wl,'
9279 # All Alpha code is PIC.
9280 lt_prog_compiler_static='-non_shared'
9281 ;;
9282 xl* | bgxl* | bgf* | mpixl*)
9283 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-qpic'
9286 lt_prog_compiler_static='-qstaticlink'
9287 ;;
9288 *)
9289 case `$CC -V 2>&1 | sed 5q` in
9290 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9291 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 lt_prog_compiler_wl=''
9295 ;;
9296 *Sun\ F* | *Sun*Fortran*)
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 lt_prog_compiler_wl='-Qoption ld '
9300 ;;
9301 *Sun\ C*)
9302 # Sun C 5.9
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 lt_prog_compiler_wl='-Wl,'
9306 ;;
9307 *Intel*\ [CF]*Compiler*)
9308 lt_prog_compiler_wl='-Wl,'
9309 lt_prog_compiler_pic='-fPIC'
9310 lt_prog_compiler_static='-static'
9311 ;;
9312 *Portland\ Group*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-fpic'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317 esac
9318 ;;
9319 esac
9320 ;;
9321
9322 newsos6)
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 ;;
9326
9327 *nto* | *qnx*)
9328 # QNX uses GNU C++, but need to define -shared option too, otherwise
9329 # it will coredump.
9330 lt_prog_compiler_pic='-fPIC -shared'
9331 ;;
9332
9333 osf3* | osf4* | osf5*)
9334 lt_prog_compiler_wl='-Wl,'
9335 # All OSF/1 code is PIC.
9336 lt_prog_compiler_static='-non_shared'
9337 ;;
9338
9339 rdos*)
9340 lt_prog_compiler_static='-non_shared'
9341 ;;
9342
9343 solaris*)
9344 lt_prog_compiler_pic='-KPIC'
9345 lt_prog_compiler_static='-Bstatic'
9346 case $cc_basename in
9347 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9348 lt_prog_compiler_wl='-Qoption ld ';;
9349 *)
9350 lt_prog_compiler_wl='-Wl,';;
9351 esac
9352 ;;
9353
9354 sunos4*)
9355 lt_prog_compiler_wl='-Qoption ld '
9356 lt_prog_compiler_pic='-PIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359
9360 sysv4 | sysv4.2uw2* | sysv4.3*)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 ;;
9365
9366 sysv4*MP*)
9367 if test -d /usr/nec; then
9368 lt_prog_compiler_pic='-Kconform_pic'
9369 lt_prog_compiler_static='-Bstatic'
9370 fi
9371 ;;
9372
9373 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 ;;
9378
9379 unicos*)
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_can_build_shared=no
9382 ;;
9383
9384 uts4*)
9385 lt_prog_compiler_pic='-pic'
9386 lt_prog_compiler_static='-Bstatic'
9387 ;;
9388
9389 *)
9390 lt_prog_compiler_can_build_shared=no
9391 ;;
9392 esac
9393 fi
9394
9395case $host_os in
9396 # For platforms that do not support PIC, -DPIC is meaningless:
9397 *djgpp*)
9398 lt_prog_compiler_pic=
9399 ;;
9400 *)
9401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9402 ;;
9403esac
9404
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9406$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9407if ${lt_cv_prog_compiler_pic+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409else
9410 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9411fi
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9413$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9414lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9415
9416#
9417# Check to make sure the PIC flag actually works.
9418#
9419if test -n "$lt_prog_compiler_pic"; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9421$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9422if ${lt_cv_prog_compiler_pic_works+:} false; then :
9423 $as_echo_n "(cached) " >&6
9424else
9425 lt_cv_prog_compiler_pic_works=no
9426 ac_outfile=conftest.$ac_objext
9427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9429 # Insert the option either (1) after the last *FLAGS variable, or
9430 # (2) before a word containing "conftest.", or (3) at the end.
9431 # Note that $ac_compile itself does not contain backslashes and begins
9432 # with a dollar sign (not a hyphen), so the echo should work correctly.
9433 # The option is referenced via a variable to avoid confusing sed.
9434 lt_compile=`echo "$ac_compile" | $SED \
9435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9437 -e 's:$: $lt_compiler_flag:'`
9438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9439 (eval "$lt_compile" 2>conftest.err)
9440 ac_status=$?
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 if (exit $ac_status) && test -s "$ac_outfile"; then
9444 # The compiler can only warn and ignore the option if not recognized
9445 # So say no if there are warnings other than the usual output.
9446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler_pic_works=yes
9450 fi
9451 fi
9452 $RM conftest*
9453
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9456$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9457
9458if test yes = "$lt_cv_prog_compiler_pic_works"; then
9459 case $lt_prog_compiler_pic in
9460 "" | " "*) ;;
9461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9462 esac
9463else
9464 lt_prog_compiler_pic=
9465 lt_prog_compiler_can_build_shared=no
9466fi
9467
9468fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480#
9481# Check to make sure the static flag actually works.
9482#
9483wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9485$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9486if ${lt_cv_prog_compiler_static_works+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488else
9489 lt_cv_prog_compiler_static_works=no
9490 save_LDFLAGS=$LDFLAGS
9491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9494 # The linker can only warn and ignore the option if not recognized
9495 # So say no if there are warnings
9496 if test -s conftest.err; then
9497 # Append any errors to the config.log.
9498 cat conftest.err 1>&5
9499 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501 if diff conftest.exp conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_static_works=yes
9503 fi
9504 else
9505 lt_cv_prog_compiler_static_works=yes
9506 fi
9507 fi
9508 $RM -r conftest*
9509 LDFLAGS=$save_LDFLAGS
9510
9511fi
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9513$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9514
9515if test yes = "$lt_cv_prog_compiler_static_works"; then
9516 :
9517else
9518 lt_prog_compiler_static=
9519fi
9520
9521
9522
9523
9524
9525
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9529if ${lt_cv_prog_compiler_c_o+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531else
9532 lt_cv_prog_compiler_c_o=no
9533 $RM -r conftest 2>/dev/null
9534 mkdir conftest
9535 cd conftest
9536 mkdir out
9537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538
9539 lt_compiler_flag="-o out/conftest2.$ac_objext"
9540 # Insert the option either (1) after the last *FLAGS variable, or
9541 # (2) before a word containing "conftest.", or (3) at the end.
9542 # Note that $ac_compile itself does not contain backslashes and begins
9543 # with a dollar sign (not a hyphen), so the echo should work correctly.
9544 lt_compile=`echo "$ac_compile" | $SED \
9545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9547 -e 's:$: $lt_compiler_flag:'`
9548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9549 (eval "$lt_compile" 2>out/conftest.err)
9550 ac_status=$?
9551 cat out/conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9554 then
9555 # The compiler can only warn and ignore the option if not recognized
9556 # So say no if there are warnings
9557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9560 lt_cv_prog_compiler_c_o=yes
9561 fi
9562 fi
9563 chmod u+w . 2>&5
9564 $RM conftest*
9565 # SGI C++ compiler will create directory out/ii_files/ for
9566 # template instantiation
9567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9568 $RM out/* && rmdir out
9569 cd ..
9570 $RM -r conftest
9571 $RM conftest*
9572
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9575$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9576
9577
9578
9579
9580
9581
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9583$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9584if ${lt_cv_prog_compiler_c_o+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586else
9587 lt_cv_prog_compiler_c_o=no
9588 $RM -r conftest 2>/dev/null
9589 mkdir conftest
9590 cd conftest
9591 mkdir out
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594 lt_compiler_flag="-o out/conftest2.$ac_objext"
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 lt_compile=`echo "$ac_compile" | $SED \
9600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602 -e 's:$: $lt_compiler_flag:'`
9603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9604 (eval "$lt_compile" 2>out/conftest.err)
9605 ac_status=$?
9606 cat out/conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609 then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings
9612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_c_o=yes
9616 fi
9617 fi
9618 chmod u+w . 2>&5
9619 $RM conftest*
9620 # SGI C++ compiler will create directory out/ii_files/ for
9621 # template instantiation
9622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9623 $RM out/* && rmdir out
9624 cd ..
9625 $RM -r conftest
9626 $RM conftest*
9627
9628fi
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9630$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9631
9632
9633
9634
9635hard_links=nottested
9636if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9637 # do not overwrite the value of need_locks provided by the user
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9639$as_echo_n "checking if we can lock with hard links... " >&6; }
9640 hard_links=yes
9641 $RM conftest*
9642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9643 touch conftest.a
9644 ln conftest.a conftest.b 2>&5 || hard_links=no
9645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9647$as_echo "$hard_links" >&6; }
9648 if test no = "$hard_links"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9650$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9651 need_locks=warn
9652 fi
9653else
9654 need_locks=no
9655fi
9656
9657
9658
9659
9660
9661
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9663$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9664
9665 runpath_var=
9666 allow_undefined_flag=
9667 always_export_symbols=no
9668 archive_cmds=
9669 archive_expsym_cmds=
9670 compiler_needs_object=no
9671 enable_shared_with_static_runtimes=no
9672 export_dynamic_flag_spec=
9673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9674 hardcode_automatic=no
9675 hardcode_direct=no
9676 hardcode_direct_absolute=no
9677 hardcode_libdir_flag_spec=
9678 hardcode_libdir_separator=
9679 hardcode_minus_L=no
9680 hardcode_shlibpath_var=unsupported
9681 inherit_rpath=no
9682 link_all_deplibs=unknown
9683 module_cmds=
9684 module_expsym_cmds=
9685 old_archive_from_new_cmds=
9686 old_archive_from_expsyms_cmds=
9687 thread_safe_flag_spec=
9688 whole_archive_flag_spec=
9689 # include_expsyms should be a list of space-separated symbols to be *always*
9690 # included in the symbol list
9691 include_expsyms=
9692 # exclude_expsyms can be an extended regexp of symbols to exclude
9693 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9694 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9695 # as well as any symbol that contains 'd'.
9696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9698 # platforms (ab)use it in PIC code, but their linkers get confused if
9699 # the symbol is explicitly referenced. Since portable code cannot
9700 # rely on this symbol name, it's probably fine to never include it in
9701 # preloaded symbol tables.
9702 # Exclude shared library initialization/finalization symbols.
9703 extract_expsyms_cmds=
9704
9705 case $host_os in
9706 cygwin* | mingw* | pw32* | cegcc*)
9707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9708 # When not using gcc, we currently assume that we are using
9709 # Microsoft Visual C++.
9710 if test yes != "$GCC"; then
9711 with_gnu_ld=no
9712 fi
9713 ;;
9714 interix*)
9715 # we just hope/assume this is gcc and not c89 (= MSVC++)
9716 with_gnu_ld=yes
9717 ;;
9718 openbsd* | bitrig*)
9719 with_gnu_ld=no
9720 ;;
9721 esac
9722
9723 ld_shlibs=yes
9724
9725 # On some targets, GNU ld is compatible enough with the native linker
9726 # that we're better off using the native interface for both.
9727 lt_use_gnu_ld_interface=no
9728 if test yes = "$with_gnu_ld"; then
9729 case $host_os in
9730 aix*)
9731 # The AIX port of GNU ld has always aspired to compatibility
9732 # with the native linker. However, as the warning in the GNU ld
9733 # block says, versions before 2.19.5* couldn't really create working
9734 # shared libraries, regardless of the interface used.
9735 case `$LD -v 2>&1` in
9736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9738 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9739 *)
9740 lt_use_gnu_ld_interface=yes
9741 ;;
9742 esac
9743 ;;
9744 *)
9745 lt_use_gnu_ld_interface=yes
9746 ;;
9747 esac
9748 fi
9749
9750 if test yes = "$lt_use_gnu_ld_interface"; then
9751 # If archive_cmds runs LD, not CC, wlarc should be empty
9752 wlarc='$wl'
9753
9754 # Set some defaults for GNU ld with shared library support. These
9755 # are reset later if shared libraries are not supported. Putting them
9756 # here allows them to be overridden if necessary.
9757 runpath_var=LD_RUN_PATH
9758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9759 export_dynamic_flag_spec='$wl--export-dynamic'
9760 # ancient GNU ld didn't support --whole-archive et. al.
9761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9762 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9763 else
9764 whole_archive_flag_spec=
9765 fi
9766 supports_anon_versioning=no
9767 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9768 *GNU\ gold*) supports_anon_versioning=yes ;;
9769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9772 *\ 2.11.*) ;; # other 2.11 versions
9773 *) supports_anon_versioning=yes ;;
9774 esac
9775
9776 # See if GNU ld supports shared libraries.
9777 case $host_os in
9778 aix[3-9]*)
9779 # On AIX/PPC, the GNU linker is very broken
9780 if test ia64 != "$host_cpu"; then
9781 ld_shlibs=no
9782 cat <<_LT_EOF 1>&2
9783
9784*** Warning: the GNU linker, at least up to release 2.19, is reported
9785*** to be unable to reliably create shared libraries on AIX.
9786*** Therefore, libtool is disabling shared libraries support. If you
9787*** really care for shared libraries, you may want to install binutils
9788*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9789*** You will then need to restart the configuration process.
9790
9791_LT_EOF
9792 fi
9793 ;;
9794
9795 amigaos*)
9796 case $host_cpu in
9797 powerpc)
9798 # see comment about AmigaOS4 .so support
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 archive_expsym_cmds=''
9801 ;;
9802 m68k)
9803 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)'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_minus_L=yes
9806 ;;
9807 esac
9808 ;;
9809
9810 beos*)
9811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9812 allow_undefined_flag=unsupported
9813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9814 # support --undefined. This deserves some investigation. FIXME
9815 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9816 else
9817 ld_shlibs=no
9818 fi
9819 ;;
9820
9821 cygwin* | mingw* | pw32* | cegcc*)
9822 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9823 # as there is no search path for DLLs.
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 export_dynamic_flag_spec='$wl--export-all-symbols'
9826 allow_undefined_flag=unsupported
9827 always_export_symbols=no
9828 enable_shared_with_static_runtimes=yes
9829 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'
9830 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9831
9832 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9834 # If the export-symbols file already is a .def file, use it as
9835 # is; otherwise, prepend EXPORTS...
9836 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9837 cp $export_symbols $output_objdir/$soname.def;
9838 else
9839 echo EXPORTS > $output_objdir/$soname.def;
9840 cat $export_symbols >> $output_objdir/$soname.def;
9841 fi~
9842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9843 else
9844 ld_shlibs=no
9845 fi
9846 ;;
9847
9848 haiku*)
9849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9850 link_all_deplibs=yes
9851 ;;
9852
9853 os2*)
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_minus_L=yes
9856 allow_undefined_flag=unsupported
9857 shrext_cmds=.dll
9858 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9861 $ECHO EXPORTS >> $output_objdir/$libname.def~
9862 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9864 emximp -o $lib $output_objdir/$libname.def'
9865 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9868 $ECHO EXPORTS >> $output_objdir/$libname.def~
9869 prefix_cmds="$SED"~
9870 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9871 prefix_cmds="$prefix_cmds -e 1d";
9872 fi~
9873 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9874 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9876 emximp -o $lib $output_objdir/$libname.def'
9877 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9878 enable_shared_with_static_runtimes=yes
9879 ;;
9880
9881 interix[3-9]*)
9882 hardcode_direct=no
9883 hardcode_shlibpath_var=no
9884 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9885 export_dynamic_flag_spec='$wl-E'
9886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9887 # Instead, shared libraries are loaded at an image base (0x10000000 by
9888 # default) and relocated if they conflict, which is a slow very memory
9889 # consuming and fragmenting process. To avoid this, we pick a random,
9890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9893 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'
9894 ;;
9895
9896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9897 tmp_diet=no
9898 if test linux-dietlibc = "$host_os"; then
9899 case $cc_basename in
9900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9901 esac
9902 fi
9903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9904 && test no = "$tmp_diet"
9905 then
9906 tmp_addflag=' $pic_flag'
9907 tmp_sharedflag='-shared'
9908 case $cc_basename,$host_cpu in
9909 pgcc*) # Portland Group C compiler
9910 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'
9911 tmp_addflag=' $pic_flag'
9912 ;;
9913 pgf77* | pgf90* | pgf95* | pgfortran*)
9914 # Portland Group f77 and f90 compilers
9915 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'
9916 tmp_addflag=' $pic_flag -Mnomain' ;;
9917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9918 tmp_addflag=' -i_dynamic' ;;
9919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9920 tmp_addflag=' -i_dynamic -nofor_main' ;;
9921 ifc* | ifort*) # Intel Fortran compiler
9922 tmp_addflag=' -nofor_main' ;;
9923 lf95*) # Lahey Fortran 8.1
9924 whole_archive_flag_spec=
9925 tmp_sharedflag='--shared' ;;
9926 nagfor*) # NAGFOR 5.3
9927 tmp_sharedflag='-Wl,-shared' ;;
9928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9929 tmp_sharedflag='-qmkshrobj'
9930 tmp_addflag= ;;
9931 nvcc*) # Cuda Compiler Driver 2.2
9932 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'
9933 compiler_needs_object=yes
9934 ;;
9935 esac
9936 case `$CC -V 2>&1 | sed 5q` in
9937 *Sun\ C*) # Sun C 5.9
9938 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'
9939 compiler_needs_object=yes
9940 tmp_sharedflag='-G' ;;
9941 *Sun\ F*) # Sun Fortran 8.3
9942 tmp_sharedflag='-G' ;;
9943 esac
9944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9945
9946 if test yes = "$supports_anon_versioning"; then
9947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9949 echo "local: *; };" >> $output_objdir/$libname.ver~
9950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9951 fi
9952
9953 case $cc_basename in
9954 tcc*)
9955 export_dynamic_flag_spec='-rdynamic'
9956 ;;
9957 xlf* | bgf* | bgxlf* | mpixlf*)
9958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9961 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9962 if test yes = "$supports_anon_versioning"; then
9963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9965 echo "local: *; };" >> $output_objdir/$libname.ver~
9966 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9967 fi
9968 ;;
9969 esac
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974
9975 netbsd*)
9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9978 wlarc=
9979 else
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9982 fi
9983 ;;
9984
9985 solaris*)
9986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9987 ld_shlibs=no
9988 cat <<_LT_EOF 1>&2
9989
9990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9991*** create shared libraries on Solaris systems. Therefore, libtool
9992*** is disabling shared libraries support. We urge you to upgrade GNU
9993*** binutils to release 2.9.1 or newer. Another option is to modify
9994*** your PATH or compiler configuration so that the native linker is
9995*** used, and then restart.
9996
9997_LT_EOF
9998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005
10006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10007 case `$LD -v 2>&1` in
10008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10009 ld_shlibs=no
10010 cat <<_LT_EOF 1>&2
10011
10012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10013*** reliably create shared libraries on SCO systems. Therefore, libtool
10014*** is disabling shared libraries support. We urge you to upgrade GNU
10015*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10016*** your PATH or compiler configuration so that the native linker is
10017*** used, and then restart.
10018
10019_LT_EOF
10020 ;;
10021 *)
10022 # For security reasons, it is highly recommended that you always
10023 # use absolute paths for naming shared libraries, and exclude the
10024 # DT_RUNPATH tag from executables and libraries. But doing so
10025 # requires that you compile everything twice, which is a pain.
10026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034 esac
10035 ;;
10036
10037 sunos4*)
10038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 wlarc=
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 *)
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10047 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10048 else
10049 ld_shlibs=no
10050 fi
10051 ;;
10052 esac
10053
10054 if test no = "$ld_shlibs"; then
10055 runpath_var=
10056 hardcode_libdir_flag_spec=
10057 export_dynamic_flag_spec=
10058 whole_archive_flag_spec=
10059 fi
10060 else
10061 # PORTME fill in a description of your system's linker (not GNU ld)
10062 case $host_os in
10063 aix3*)
10064 allow_undefined_flag=unsupported
10065 always_export_symbols=yes
10066 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'
10067 # Note: this linker hardcodes the directories in LIBPATH if there
10068 # are no directories specified by -L.
10069 hardcode_minus_L=yes
10070 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10071 # Neither direct hardcoding nor static linking is supported with a
10072 # broken collect2.
10073 hardcode_direct=unsupported
10074 fi
10075 ;;
10076
10077 aix[4-9]*)
10078 if test ia64 = "$host_cpu"; then
10079 # On IA64, the linker does run time linking by default, so we don't
10080 # have to do anything special.
10081 aix_use_runtimelinking=no
10082 exp_sym_flag='-Bexport'
10083 no_entry_flag=
10084 else
10085 # If we're using GNU nm, then we don't want the "-C" option.
10086 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10087 # Without the "-l" option, or with the "-B" option, AIX nm treats
10088 # weak defined symbols like other global defined symbols, whereas
10089 # GNU nm marks them as "W".
10090 # While the 'weak' keyword is ignored in the Export File, we need
10091 # it in the Import File for the 'aix-soname' feature, so we have
10092 # to replace the "-B" option with "-P" for AIX nm.
10093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10094 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10095 else
10096 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10097 fi
10098 aix_use_runtimelinking=no
10099
10100 # Test if we are trying to use run time linking or normal
10101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10102 # have runtime linking enabled, and use it for executables.
10103 # For shared libraries, we enable/disable runtime linking
10104 # depending on the kind of the shared library created -
10105 # when "with_aix_soname,aix_use_runtimelinking" is:
10106 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10107 # "aix,yes" lib.so shared, rtl:yes, for executables
10108 # lib.a static archive
10109 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10110 # lib.a(lib.so.V) shared, rtl:no, for executables
10111 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10112 # lib.a(lib.so.V) shared, rtl:no
10113 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10114 # lib.a static archive
10115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10116 for ld_flag in $LDFLAGS; do
10117 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10118 aix_use_runtimelinking=yes
10119 break
10120 fi
10121 done
10122 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10123 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10124 # so we don't have lib.a shared libs to link our executables.
10125 # We have to force runtime linking in this case.
10126 aix_use_runtimelinking=yes
10127 LDFLAGS="$LDFLAGS -Wl,-brtl"
10128 fi
10129 ;;
10130 esac
10131
10132 exp_sym_flag='-bexport'
10133 no_entry_flag='-bnoentry'
10134 fi
10135
10136 # When large executables or shared objects are built, AIX ld can
10137 # have problems creating the table of contents. If linking a library
10138 # or program results in "error TOC overflow" add -mminimal-toc to
10139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10141
10142 archive_cmds=''
10143 hardcode_direct=yes
10144 hardcode_direct_absolute=yes
10145 hardcode_libdir_separator=':'
10146 link_all_deplibs=yes
10147 file_list_spec='$wl-f,'
10148 case $with_aix_soname,$aix_use_runtimelinking in
10149 aix,*) ;; # traditional, no import file
10150 svr4,* | *,yes) # use import file
10151 # The Import File defines what to hardcode.
10152 hardcode_direct=no
10153 hardcode_direct_absolute=no
10154 ;;
10155 esac
10156
10157 if test yes = "$GCC"; then
10158 case $host_os in aix4.[012]|aix4.[012].*)
10159 # We only want to do this on AIX 4.2 and lower, the check
10160 # below for broken collect2 doesn't work under 4.3+
10161 collect2name=`$CC -print-prog-name=collect2`
10162 if test -f "$collect2name" &&
10163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10164 then
10165 # We have reworked collect2
10166 :
10167 else
10168 # We have old collect2
10169 hardcode_direct=unsupported
10170 # It fails to find uninstalled libraries when the uninstalled
10171 # path is not listed in the libpath. Setting hardcode_minus_L
10172 # to unsupported forces relinking
10173 hardcode_minus_L=yes
10174 hardcode_libdir_flag_spec='-L$libdir'
10175 hardcode_libdir_separator=
10176 fi
10177 ;;
10178 esac
10179 shared_flag='-shared'
10180 if test yes = "$aix_use_runtimelinking"; then
10181 shared_flag="$shared_flag "'$wl-G'
10182 fi
10183 # Need to ensure runtime linking is disabled for the traditional
10184 # shared library, or the linker may eventually find shared libraries
10185 # /with/ Import File - we do not want to mix them.
10186 shared_flag_aix='-shared'
10187 shared_flag_svr4='-shared $wl-G'
10188 else
10189 # not using gcc
10190 if test ia64 = "$host_cpu"; then
10191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10192 # chokes on -Wl,-G. The following line is correct:
10193 shared_flag='-G'
10194 else
10195 if test yes = "$aix_use_runtimelinking"; then
10196 shared_flag='$wl-G'
10197 else
10198 shared_flag='$wl-bM:SRE'
10199 fi
10200 shared_flag_aix='$wl-bM:SRE'
10201 shared_flag_svr4='$wl-G'
10202 fi
10203 fi
10204
10205 export_dynamic_flag_spec='$wl-bexpall'
10206 # It seems that -bexpall does not export symbols beginning with
10207 # underscore (_), so it is better to generate a list of symbols to export.
10208 always_export_symbols=yes
10209 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10210 # Warning - without using the other runtime loading flags (-brtl),
10211 # -berok will link without error, but may produce a broken library.
10212 allow_undefined_flag='-berok'
10213 # Determine the default libpath from the value encoded in an
10214 # empty executable.
10215 if test set = "${lt_cv_aix_libpath+set}"; then
10216 aix_libpath=$lt_cv_aix_libpath
10217else
10218 if ${lt_cv_aix_libpath_+:} false; then :
10219 $as_echo_n "(cached) " >&6
10220else
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h. */
10223
10224int
10225main ()
10226{
10227
10228 ;
10229 return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233
10234 lt_aix_libpath_sed='
10235 /Import File Strings/,/^$/ {
10236 /^0/ {
10237 s/^0 *\([^ ]*\) *$/\1/
10238 p
10239 }
10240 }'
10241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10242 # Check for a 64-bit object if we didn't find anything.
10243 if test -z "$lt_cv_aix_libpath_"; then
10244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10245 fi
10246fi
10247rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10249 if test -z "$lt_cv_aix_libpath_"; then
10250 lt_cv_aix_libpath_=/usr/lib:/lib
10251 fi
10252
10253fi
10254
10255 aix_libpath=$lt_cv_aix_libpath_
10256fi
10257
10258 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10259 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10260 else
10261 if test ia64 = "$host_cpu"; then
10262 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10263 allow_undefined_flag="-z nodefs"
10264 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"
10265 else
10266 # Determine the default libpath from the value encoded in an
10267 # empty executable.
10268 if test set = "${lt_cv_aix_libpath+set}"; then
10269 aix_libpath=$lt_cv_aix_libpath
10270else
10271 if ${lt_cv_aix_libpath_+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273else
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h. */
10276
10277int
10278main ()
10279{
10280
10281 ;
10282 return 0;
10283}
10284_ACEOF
10285if ac_fn_c_try_link "$LINENO"; then :
10286
10287 lt_aix_libpath_sed='
10288 /Import File Strings/,/^$/ {
10289 /^0/ {
10290 s/^0 *\([^ ]*\) *$/\1/
10291 p
10292 }
10293 }'
10294 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10295 # Check for a 64-bit object if we didn't find anything.
10296 if test -z "$lt_cv_aix_libpath_"; then
10297 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10298 fi
10299fi
10300rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 if test -z "$lt_cv_aix_libpath_"; then
10303 lt_cv_aix_libpath_=/usr/lib:/lib
10304 fi
10305
10306fi
10307
10308 aix_libpath=$lt_cv_aix_libpath_
10309fi
10310
10311 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10312 # Warning - without using the other run time loading flags,
10313 # -berok will link without error, but may produce a broken library.
10314 no_undefined_flag=' $wl-bernotok'
10315 allow_undefined_flag=' $wl-berok'
10316 if test yes = "$with_gnu_ld"; then
10317 # We only use this code for GNU lds that support --whole-archive.
10318 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10319 else
10320 # Exported symbols can be pulled into shared objects from archives
10321 whole_archive_flag_spec='$convenience'
10322 fi
10323 archive_cmds_need_lc=yes
10324 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10325 # -brtl affects multiple linker settings, -berok does not and is overridden later
10326 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10327 if test svr4 != "$with_aix_soname"; then
10328 # This is similar to how AIX traditionally builds its shared libraries.
10329 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10330 fi
10331 if test aix != "$with_aix_soname"; then
10332 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10333 else
10334 # used by -dlpreopen to get the symbols
10335 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10336 fi
10337 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10338 fi
10339 fi
10340 ;;
10341
10342 amigaos*)
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 bsdi[45]*)
10358 export_dynamic_flag_spec=-rdynamic
10359 ;;
10360
10361 cygwin* | mingw* | pw32* | cegcc*)
10362 # When not using gcc, we currently assume that we are using
10363 # Microsoft Visual C++.
10364 # hardcode_libdir_flag_spec is actually meaningless, as there is
10365 # no search path for DLLs.
10366 case $cc_basename in
10367 cl*)
10368 # Native MSVC
10369 hardcode_libdir_flag_spec=' '
10370 allow_undefined_flag=unsupported
10371 always_export_symbols=yes
10372 file_list_spec='@'
10373 # Tell ltmain to make .lib files, not .a files.
10374 libext=lib
10375 # Tell ltmain to make .dll files, not .so files.
10376 shrext_cmds=.dll
10377 # FIXME: Setting linknames here is a bad hack.
10378 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10380 cp "$export_symbols" "$output_objdir/$soname.def";
10381 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10382 else
10383 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10384 fi~
10385 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10386 linknames='
10387 # The linker will not automatically build a static lib if we build a DLL.
10388 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10389 enable_shared_with_static_runtimes=yes
10390 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10392 # Don't use ranlib
10393 old_postinstall_cmds='chmod 644 $oldlib'
10394 postlink_cmds='lt_outputfile="@OUTPUT@"~
10395 lt_tool_outputfile="@TOOL_OUTPUT@"~
10396 case $lt_outputfile in
10397 *.exe|*.EXE) ;;
10398 *)
10399 lt_outputfile=$lt_outputfile.exe
10400 lt_tool_outputfile=$lt_tool_outputfile.exe
10401 ;;
10402 esac~
10403 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10404 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10405 $RM "$lt_outputfile.manifest";
10406 fi'
10407 ;;
10408 *)
10409 # Assume MSVC wrapper
10410 hardcode_libdir_flag_spec=' '
10411 allow_undefined_flag=unsupported
10412 # Tell ltmain to make .lib files, not .a files.
10413 libext=lib
10414 # Tell ltmain to make .dll files, not .so files.
10415 shrext_cmds=.dll
10416 # FIXME: Setting linknames here is a bad hack.
10417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10418 # The linker will automatically build a .lib file if we build a DLL.
10419 old_archive_from_new_cmds='true'
10420 # FIXME: Should let the user specify the lib program.
10421 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10422 enable_shared_with_static_runtimes=yes
10423 ;;
10424 esac
10425 ;;
10426
10427 darwin* | rhapsody*)
10428
10429
10430 archive_cmds_need_lc=no
10431 hardcode_direct=no
10432 hardcode_automatic=yes
10433 hardcode_shlibpath_var=unsupported
10434 if test yes = "$lt_cv_ld_force_load"; then
10435 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\"`'
10436
10437 else
10438 whole_archive_flag_spec=''
10439 fi
10440 link_all_deplibs=yes
10441 allow_undefined_flag=$_lt_dar_allow_undefined
10442 case $cc_basename in
10443 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10444 *) _lt_dar_can_shared=$GCC ;;
10445 esac
10446 if test yes = "$_lt_dar_can_shared"; then
10447 output_verbose_link_cmd=func_echo_all
10448 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10449 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10450 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"
10451 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"
10452
10453 else
10454 ld_shlibs=no
10455 fi
10456
10457 ;;
10458
10459 dgux*)
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_shlibpath_var=no
10463 ;;
10464
10465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10466 # support. Future versions do this automatically, but an explicit c++rt0.o
10467 # does not break anything, and helps significantly (at the cost of a little
10468 # extra space).
10469 freebsd2.2*)
10470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10471 hardcode_libdir_flag_spec='-R$libdir'
10472 hardcode_direct=yes
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10477 freebsd2.*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_minus_L=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10485 freebsd* | dragonfly*)
10486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 hpux9*)
10493 if test yes = "$GCC"; then
10494 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10495 else
10496 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10497 fi
10498 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10499 hardcode_libdir_separator=:
10500 hardcode_direct=yes
10501
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L=yes
10505 export_dynamic_flag_spec='$wl-E'
10506 ;;
10507
10508 hpux10*)
10509 if test yes,no = "$GCC,$with_gnu_ld"; then
10510 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10511 else
10512 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10513 fi
10514 if test no = "$with_gnu_ld"; then
10515 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_direct=yes
10518 hardcode_direct_absolute=yes
10519 export_dynamic_flag_spec='$wl-E'
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10523 fi
10524 ;;
10525
10526 hpux11*)
10527 if test yes,no = "$GCC,$with_gnu_ld"; then
10528 case $host_cpu in
10529 hppa*64*)
10530 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 ;;
10532 ia64*)
10533 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10534 ;;
10535 *)
10536 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10537 ;;
10538 esac
10539 else
10540 case $host_cpu in
10541 hppa*64*)
10542 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 ;;
10544 ia64*)
10545 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10546 ;;
10547 *)
10548
10549 # Older versions of the 11.00 compiler do not understand -b yet
10550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10552$as_echo_n "checking if $CC understands -b... " >&6; }
10553if ${lt_cv_prog_compiler__b+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555else
10556 lt_cv_prog_compiler__b=no
10557 save_LDFLAGS=$LDFLAGS
10558 LDFLAGS="$LDFLAGS -b"
10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10561 # The linker can only warn and ignore the option if not recognized
10562 # So say no if there are warnings
10563 if test -s conftest.err; then
10564 # Append any errors to the config.log.
10565 cat conftest.err 1>&5
10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10568 if diff conftest.exp conftest.er2 >/dev/null; then
10569 lt_cv_prog_compiler__b=yes
10570 fi
10571 else
10572 lt_cv_prog_compiler__b=yes
10573 fi
10574 fi
10575 $RM -r conftest*
10576 LDFLAGS=$save_LDFLAGS
10577
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10580$as_echo "$lt_cv_prog_compiler__b" >&6; }
10581
10582if test yes = "$lt_cv_prog_compiler__b"; then
10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10584else
10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10586fi
10587
10588 ;;
10589 esac
10590 fi
10591 if test no = "$with_gnu_ld"; then
10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10593 hardcode_libdir_separator=:
10594
10595 case $host_cpu in
10596 hppa*64*|ia64*)
10597 hardcode_direct=no
10598 hardcode_shlibpath_var=no
10599 ;;
10600 *)
10601 hardcode_direct=yes
10602 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='$wl-E'
10604
10605 # hardcode_minus_L: Not really in the search PATH,
10606 # but as the default location of the library.
10607 hardcode_minus_L=yes
10608 ;;
10609 esac
10610 fi
10611 ;;
10612
10613 irix5* | irix6* | nonstopux*)
10614 if test yes = "$GCC"; then
10615 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'
10616 # Try to use the -exported_symbol ld option, if it does not
10617 # work, assume that -exports_file does not work either and
10618 # implicitly export all symbols.
10619 # This should be the same for all languages, so no per-tag cache variable.
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10621$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10622if ${lt_cv_irix_exported_symbol+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624else
10625 save_LDFLAGS=$LDFLAGS
10626 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h. */
10629int foo (void) { return 0; }
10630_ACEOF
10631if ac_fn_c_try_link "$LINENO"; then :
10632 lt_cv_irix_exported_symbol=yes
10633else
10634 lt_cv_irix_exported_symbol=no
10635fi
10636rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LDFLAGS=$save_LDFLAGS
10639fi
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10641$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10642 if test yes = "$lt_cv_irix_exported_symbol"; then
10643 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'
10644 fi
10645 else
10646 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'
10647 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'
10648 fi
10649 archive_cmds_need_lc='no'
10650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10651 hardcode_libdir_separator=:
10652 inherit_rpath=yes
10653 link_all_deplibs=yes
10654 ;;
10655
10656 linux*)
10657 case $cc_basename in
10658 tcc*)
10659 # Fabrice Bellard et al's Tiny C Compiler
10660 ld_shlibs=yes
10661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10662 ;;
10663 esac
10664 ;;
10665
10666 netbsd*)
10667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10669 else
10670 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10671 fi
10672 hardcode_libdir_flag_spec='-R$libdir'
10673 hardcode_direct=yes
10674 hardcode_shlibpath_var=no
10675 ;;
10676
10677 newsos6)
10678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_direct=yes
10680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681 hardcode_libdir_separator=:
10682 hardcode_shlibpath_var=no
10683 ;;
10684
10685 *nto* | *qnx*)
10686 ;;
10687
10688 openbsd* | bitrig*)
10689 if test -f /usr/libexec/ld.so; then
10690 hardcode_direct=yes
10691 hardcode_shlibpath_var=no
10692 hardcode_direct_absolute=yes
10693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10696 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10697 export_dynamic_flag_spec='$wl-E'
10698 else
10699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10701 fi
10702 else
10703 ld_shlibs=no
10704 fi
10705 ;;
10706
10707 os2*)
10708 hardcode_libdir_flag_spec='-L$libdir'
10709 hardcode_minus_L=yes
10710 allow_undefined_flag=unsupported
10711 shrext_cmds=.dll
10712 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10715 $ECHO EXPORTS >> $output_objdir/$libname.def~
10716 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10718 emximp -o $lib $output_objdir/$libname.def'
10719 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10722 $ECHO EXPORTS >> $output_objdir/$libname.def~
10723 prefix_cmds="$SED"~
10724 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10725 prefix_cmds="$prefix_cmds -e 1d";
10726 fi~
10727 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10728 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10730 emximp -o $lib $output_objdir/$libname.def'
10731 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10732 enable_shared_with_static_runtimes=yes
10733 ;;
10734
10735 osf3*)
10736 if test yes = "$GCC"; then
10737 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10738 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'
10739 else
10740 allow_undefined_flag=' -expect_unresolved \*'
10741 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'
10742 fi
10743 archive_cmds_need_lc='no'
10744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10745 hardcode_libdir_separator=:
10746 ;;
10747
10748 osf4* | osf5*) # as osf3* with the addition of -msym flag
10749 if test yes = "$GCC"; then
10750 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10751 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'
10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753 else
10754 allow_undefined_flag=' -expect_unresolved \*'
10755 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'
10756 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~
10757 $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'
10758
10759 # Both c and cxx compiler support -rpath directly
10760 hardcode_libdir_flag_spec='-rpath $libdir'
10761 fi
10762 archive_cmds_need_lc='no'
10763 hardcode_libdir_separator=:
10764 ;;
10765
10766 solaris*)
10767 no_undefined_flag=' -z defs'
10768 if test yes = "$GCC"; then
10769 wlarc='$wl'
10770 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10772 $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'
10773 else
10774 case `$CC -V 2>&1` in
10775 *"Compilers 5.0"*)
10776 wlarc=''
10777 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10779 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10780 ;;
10781 *)
10782 wlarc='$wl'
10783 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10785 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10786 ;;
10787 esac
10788 fi
10789 hardcode_libdir_flag_spec='-R$libdir'
10790 hardcode_shlibpath_var=no
10791 case $host_os in
10792 solaris2.[0-5] | solaris2.[0-5].*) ;;
10793 *)
10794 # The compiler driver will combine and reorder linker options,
10795 # but understands '-z linker_flag'. GCC discards it without '$wl',
10796 # but is careful enough not to reorder.
10797 # Supported since Solaris 2.6 (maybe 2.5.1?)
10798 if test yes = "$GCC"; then
10799 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10800 else
10801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10802 fi
10803 ;;
10804 esac
10805 link_all_deplibs=yes
10806 ;;
10807
10808 sunos4*)
10809 if test sequent = "$host_vendor"; then
10810 # Use $CC to link under sequent, because it throws in some extra .o
10811 # files that make .init and .fini sections work.
10812 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10813 else
10814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10815 fi
10816 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_direct=yes
10818 hardcode_minus_L=yes
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 sysv4)
10823 case $host_vendor in
10824 sni)
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=yes # is this really true???
10827 ;;
10828 siemens)
10829 ## LD is ld it makes a PLAMLIB
10830 ## CC just makes a GrossModule.
10831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10832 reload_cmds='$CC -r -o $output$reload_objs'
10833 hardcode_direct=no
10834 ;;
10835 motorola)
10836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10838 ;;
10839 esac
10840 runpath_var='LD_RUN_PATH'
10841 hardcode_shlibpath_var=no
10842 ;;
10843
10844 sysv4.3*)
10845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846 hardcode_shlibpath_var=no
10847 export_dynamic_flag_spec='-Bexport'
10848 ;;
10849
10850 sysv4*MP*)
10851 if test -d /usr/nec; then
10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 hardcode_shlibpath_var=no
10854 runpath_var=LD_RUN_PATH
10855 hardcode_runpath_var=yes
10856 ld_shlibs=yes
10857 fi
10858 ;;
10859
10860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10861 no_undefined_flag='$wl-z,text'
10862 archive_cmds_need_lc=no
10863 hardcode_shlibpath_var=no
10864 runpath_var='LD_RUN_PATH'
10865
10866 if test yes = "$GCC"; then
10867 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10868 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 else
10870 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 fi
10873 ;;
10874
10875 sysv5* | sco3.2v5* | sco5v6*)
10876 # Note: We CANNOT use -z defs as we might desire, because we do not
10877 # link with -lc, and that would cause any symbols used from libc to
10878 # always be unresolved, which means just about no library would
10879 # ever link correctly. If we're not using GNU ld we use -z text
10880 # though, which does catch some bad symbols but isn't as heavy-handed
10881 # as -z defs.
10882 no_undefined_flag='$wl-z,text'
10883 allow_undefined_flag='$wl-z,nodefs'
10884 archive_cmds_need_lc=no
10885 hardcode_shlibpath_var=no
10886 hardcode_libdir_flag_spec='$wl-R,$libdir'
10887 hardcode_libdir_separator=':'
10888 link_all_deplibs=yes
10889 export_dynamic_flag_spec='$wl-Bexport'
10890 runpath_var='LD_RUN_PATH'
10891
10892 if test yes = "$GCC"; then
10893 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 else
10896 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 fi
10899 ;;
10900
10901 uts4*)
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_shlibpath_var=no
10905 ;;
10906
10907 *)
10908 ld_shlibs=no
10909 ;;
10910 esac
10911
10912 if test sni = "$host_vendor"; then
10913 case $host in
10914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10915 export_dynamic_flag_spec='$wl-Blargedynsym'
10916 ;;
10917 esac
10918 fi
10919 fi
10920
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10922$as_echo "$ld_shlibs" >&6; }
10923test no = "$ld_shlibs" && can_build_shared=no
10924
10925with_gnu_ld=$with_gnu_ld
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941#
10942# Do we need to explicitly link libc?
10943#
10944case "x$archive_cmds_need_lc" in
10945x|xyes)
10946 # Assume -lc should be added
10947 archive_cmds_need_lc=yes
10948
10949 if test yes,yes = "$GCC,$enable_shared"; then
10950 case $archive_cmds in
10951 *'~'*)
10952 # FIXME: we may have to deal with multi-command sequences.
10953 ;;
10954 '$CC '*)
10955 # Test whether the compiler implicitly links with -lc since on some
10956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10957 # to ld, don't add -lc before -lgcc.
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10959$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10960if ${lt_cv_archive_cmds_need_lc+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 $RM conftest*
10964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965
10966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10967 (eval $ac_compile) 2>&5
10968 ac_status=$?
10969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10970 test $ac_status = 0; } 2>conftest.err; then
10971 soname=conftest
10972 lib=conftest
10973 libobjs=conftest.$ac_objext
10974 deplibs=
10975 wl=$lt_prog_compiler_wl
10976 pic_flag=$lt_prog_compiler_pic
10977 compiler_flags=-v
10978 linker_flags=-v
10979 verstring=
10980 output_objdir=.
10981 libname=conftest
10982 lt_save_allow_undefined_flag=$allow_undefined_flag
10983 allow_undefined_flag=
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10985 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986 ac_status=$?
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; }
10989 then
10990 lt_cv_archive_cmds_need_lc=no
10991 else
10992 lt_cv_archive_cmds_need_lc=yes
10993 fi
10994 allow_undefined_flag=$lt_save_allow_undefined_flag
10995 else
10996 cat conftest.err 1>&5
10997 fi
10998 $RM conftest*
10999
11000fi
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11002$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11003 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11004 ;;
11005 esac
11006 fi
11007 ;;
11008esac
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11162$as_echo_n "checking dynamic linker characteristics... " >&6; }
11163
11164if test yes = "$GCC"; then
11165 case $host_os in
11166 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11167 *) lt_awk_arg='/^libraries:/' ;;
11168 esac
11169 case $host_os in
11170 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11171 *) lt_sed_strip_eq='s|=/|/|g' ;;
11172 esac
11173 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11174 case $lt_search_path_spec in
11175 *\;*)
11176 # if the path contains ";" then we assume it to be the separator
11177 # otherwise default to the standard path separator (i.e. ":") - it is
11178 # assumed that no part of a normal pathname contains ";" but that should
11179 # okay in the real world where ";" in dirpaths is itself problematic.
11180 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11181 ;;
11182 *)
11183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11184 ;;
11185 esac
11186 # Ok, now we have the path, separated by spaces, we can step through it
11187 # and add multilib dir if necessary...
11188 lt_tmp_lt_search_path_spec=
11189 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11190 # ...but if some path component already ends with the multilib dir we assume
11191 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11192 case "$lt_multi_os_dir; $lt_search_path_spec " in
11193 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11194 lt_multi_os_dir=
11195 ;;
11196 esac
11197 for lt_sys_path in $lt_search_path_spec; do
11198 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11199 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11200 elif test -n "$lt_multi_os_dir"; then
11201 test -d "$lt_sys_path" && \
11202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11203 fi
11204 done
11205 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11206BEGIN {RS = " "; FS = "/|\n";} {
11207 lt_foo = "";
11208 lt_count = 0;
11209 for (lt_i = NF; lt_i > 0; lt_i--) {
11210 if ($lt_i != "" && $lt_i != ".") {
11211 if ($lt_i == "..") {
11212 lt_count++;
11213 } else {
11214 if (lt_count == 0) {
11215 lt_foo = "/" $lt_i lt_foo;
11216 } else {
11217 lt_count--;
11218 }
11219 }
11220 }
11221 }
11222 if (lt_foo != "") { lt_freq[lt_foo]++; }
11223 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11224}'`
11225 # AWK program above erroneously prepends '/' to C:/dos/paths
11226 # for these hosts.
11227 case $host_os in
11228 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11229 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11230 esac
11231 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11232else
11233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11234fi
11235library_names_spec=
11236libname_spec='lib$name'
11237soname_spec=
11238shrext_cmds=.so
11239postinstall_cmds=
11240postuninstall_cmds=
11241finish_cmds=
11242finish_eval=
11243shlibpath_var=
11244shlibpath_overrides_runpath=unknown
11245version_type=none
11246dynamic_linker="$host_os ld.so"
11247sys_lib_dlsearch_path_spec="/lib /usr/lib"
11248need_lib_prefix=unknown
11249hardcode_into_libs=no
11250
11251# when you set need_version to no, make sure it does not cause -set_version
11252# flags to be left without arguments
11253need_version=unknown
11254
11255
11256
11257case $host_os in
11258aix3*)
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11261 shlibpath_var=LIBPATH
11262
11263 # AIX 3 has no versioning support, so we append a major version to the name.
11264 soname_spec='$libname$release$shared_ext$major'
11265 ;;
11266
11267aix[4-9]*)
11268 version_type=linux # correct to gnu/linux during the next big refactor
11269 need_lib_prefix=no
11270 need_version=no
11271 hardcode_into_libs=yes
11272 if test ia64 = "$host_cpu"; then
11273 # AIX 5 supports IA64
11274 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 else
11277 # With GCC up to 2.95.x, collect2 would create an import file
11278 # for dependence libraries. The import file would start with
11279 # the line '#! .'. This would cause the generated library to
11280 # depend on '.', always an invalid library. This was fixed in
11281 # development snapshots of GCC prior to 3.0.
11282 case $host_os in
11283 aix4 | aix4.[01] | aix4.[01].*)
11284 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11285 echo ' yes '
11286 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11287 :
11288 else
11289 can_build_shared=no
11290 fi
11291 ;;
11292 esac
11293 # Using Import Files as archive members, it is possible to support
11294 # filename-based versioning of shared library archives on AIX. While
11295 # this would work for both with and without runtime linking, it will
11296 # prevent static linking of such archives. So we do filename-based
11297 # shared library versioning with .so extension only, which is used
11298 # when both runtime linking and shared linking is enabled.
11299 # Unfortunately, runtime linking may impact performance, so we do
11300 # not want this to be the default eventually. Also, we use the
11301 # versioned .so libs for executables only if there is the -brtl
11302 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11303 # To allow for filename-based versioning support, we need to create
11304 # libNAME.so.V as an archive file, containing:
11305 # *) an Import File, referring to the versioned filename of the
11306 # archive as well as the shared archive member, telling the
11307 # bitwidth (32 or 64) of that shared object, and providing the
11308 # list of exported symbols of that shared object, eventually
11309 # decorated with the 'weak' keyword
11310 # *) the shared object with the F_LOADONLY flag set, to really avoid
11311 # it being seen by the linker.
11312 # At run time we better use the real file rather than another symlink,
11313 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11314
11315 case $with_aix_soname,$aix_use_runtimelinking in
11316 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 aix,yes) # traditional libtool
11320 dynamic_linker='AIX unversionable lib.so'
11321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322 # instead of lib<name>.a to let people know that these are not
11323 # typical AIX shared libraries.
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 ;;
11326 aix,no) # traditional AIX only
11327 dynamic_linker='AIX lib.a(lib.so.V)'
11328 # We preserve .a as extension for shared libraries through AIX4.2
11329 # and later when we are not doing run time linking.
11330 library_names_spec='$libname$release.a $libname.a'
11331 soname_spec='$libname$release$shared_ext$major'
11332 ;;
11333 svr4,*) # full svr4 only
11334 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11335 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11336 # We do not specify a path in Import Files, so LIBPATH fires.
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 *,yes) # both, prefer svr4
11340 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11341 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11342 # unpreferred sharedlib libNAME.a needs extra handling
11343 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11344 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11345 # We do not specify a path in Import Files, so LIBPATH fires.
11346 shlibpath_overrides_runpath=yes
11347 ;;
11348 *,no) # both, prefer aix
11349 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11350 library_names_spec='$libname$release.a $libname.a'
11351 soname_spec='$libname$release$shared_ext$major'
11352 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11353 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11354 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11355 ;;
11356 esac
11357 shlibpath_var=LIBPATH
11358 fi
11359 ;;
11360
11361amigaos*)
11362 case $host_cpu in
11363 powerpc)
11364 # Since July 2007 AmigaOS4 officially supports .so libraries.
11365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 ;;
11368 m68k)
11369 library_names_spec='$libname.ixlibrary $libname.a'
11370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11371 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11372 ;;
11373 esac
11374 ;;
11375
11376beos*)
11377 library_names_spec='$libname$shared_ext'
11378 dynamic_linker="$host_os ld.so"
11379 shlibpath_var=LIBRARY_PATH
11380 ;;
11381
11382bsdi[45]*)
11383 version_type=linux # correct to gnu/linux during the next big refactor
11384 need_version=no
11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386 soname_spec='$libname$release$shared_ext$major'
11387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391 # the default ld.so.conf also contains /usr/contrib/lib and
11392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393 # libtool to hard-code these into programs
11394 ;;
11395
11396cygwin* | mingw* | pw32* | cegcc*)
11397 version_type=windows
11398 shrext_cmds=.dll
11399 need_version=no
11400 need_lib_prefix=no
11401
11402 case $GCC,$cc_basename in
11403 yes,*)
11404 # gcc
11405 library_names_spec='$libname.dll.a'
11406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11407 postinstall_cmds='base_file=`basename \$file`~
11408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11409 dldir=$destdir/`dirname \$dlpath`~
11410 test -d \$dldir || mkdir -p \$dldir~
11411 $install_prog $dir/$dlname \$dldir/$dlname~
11412 chmod a+x \$dldir/$dlname~
11413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11415 fi'
11416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11417 dlpath=$dir/\$dldll~
11418 $RM \$dlpath'
11419 shlibpath_overrides_runpath=yes
11420
11421 case $host_os in
11422 cygwin*)
11423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11424 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11425
11426 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11427 ;;
11428 mingw* | cegcc*)
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11431 ;;
11432 pw32*)
11433 # pw32 DLLs use 'pw' prefix rather than 'lib'
11434 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11435 ;;
11436 esac
11437 dynamic_linker='Win32 ld.exe'
11438 ;;
11439
11440 *,cl*)
11441 # Native MSVC
11442 libname_spec='$name'
11443 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11444 library_names_spec='$libname.dll.lib'
11445
11446 case $build_os in
11447 mingw*)
11448 sys_lib_search_path_spec=
11449 lt_save_ifs=$IFS
11450 IFS=';'
11451 for lt_path in $LIB
11452 do
11453 IFS=$lt_save_ifs
11454 # Let DOS variable expansion print the short 8.3 style file name.
11455 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11456 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11457 done
11458 IFS=$lt_save_ifs
11459 # Convert to MSYS style.
11460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11461 ;;
11462 cygwin*)
11463 # Convert to unix form, then to dos form, then back to unix form
11464 # but this time dos style (no spaces!) so that the unix form looks
11465 # like /cygdrive/c/PROGRA~1:/cygdr...
11466 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11467 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11468 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11469 ;;
11470 *)
11471 sys_lib_search_path_spec=$LIB
11472 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11473 # It is most probably a Windows format PATH.
11474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11475 else
11476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11477 fi
11478 # FIXME: find the short name or the path components, as spaces are
11479 # common. (e.g. "Program Files" -> "PROGRA~1")
11480 ;;
11481 esac
11482
11483 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11484 postinstall_cmds='base_file=`basename \$file`~
11485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11486 dldir=$destdir/`dirname \$dlpath`~
11487 test -d \$dldir || mkdir -p \$dldir~
11488 $install_prog $dir/$dlname \$dldir/$dlname'
11489 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11490 dlpath=$dir/\$dldll~
11491 $RM \$dlpath'
11492 shlibpath_overrides_runpath=yes
11493 dynamic_linker='Win32 link.exe'
11494 ;;
11495
11496 *)
11497 # Assume MSVC wrapper
11498 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11499 dynamic_linker='Win32 ld.exe'
11500 ;;
11501 esac
11502 # FIXME: first we should search . and the directory the executable is in
11503 shlibpath_var=PATH
11504 ;;
11505
11506darwin* | rhapsody*)
11507 dynamic_linker="$host_os dyld"
11508 version_type=darwin
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11512 soname_spec='$libname$release$major$shared_ext'
11513 shlibpath_overrides_runpath=yes
11514 shlibpath_var=DYLD_LIBRARY_PATH
11515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11516
11517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11519 ;;
11520
11521dgux*)
11522 version_type=linux # correct to gnu/linux during the next big refactor
11523 need_lib_prefix=no
11524 need_version=no
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 ;;
11529
11530freebsd* | dragonfly*)
11531 # DragonFly does not have aout. When/if they implement a new
11532 # versioning mechanism, adjust this.
11533 if test -x /usr/bin/objformat; then
11534 objformat=`/usr/bin/objformat`
11535 else
11536 case $host_os in
11537 freebsd[23].*) objformat=aout ;;
11538 *) objformat=elf ;;
11539 esac
11540 fi
11541 version_type=freebsd-$objformat
11542 case $version_type in
11543 freebsd-elf*)
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11545 soname_spec='$libname$release$shared_ext$major'
11546 need_version=no
11547 need_lib_prefix=no
11548 ;;
11549 freebsd-*)
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11551 need_version=yes
11552 ;;
11553 esac
11554 shlibpath_var=LD_LIBRARY_PATH
11555 case $host_os in
11556 freebsd2.*)
11557 shlibpath_overrides_runpath=yes
11558 ;;
11559 freebsd3.[01]* | freebsdelf3.[01]*)
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11562 ;;
11563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11565 shlibpath_overrides_runpath=no
11566 hardcode_into_libs=yes
11567 ;;
11568 *) # from 4.6 on, and DragonFly
11569 shlibpath_overrides_runpath=yes
11570 hardcode_into_libs=yes
11571 ;;
11572 esac
11573 ;;
11574
11575haiku*)
11576 version_type=linux # correct to gnu/linux during the next big refactor
11577 need_lib_prefix=no
11578 need_version=no
11579 dynamic_linker="$host_os runtime_loader"
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 soname_spec='$libname$release$shared_ext$major'
11582 shlibpath_var=LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11585 hardcode_into_libs=yes
11586 ;;
11587
11588hpux9* | hpux10* | hpux11*)
11589 # Give a soname corresponding to the major version so that dld.sl refuses to
11590 # link against other versions.
11591 version_type=sunos
11592 need_lib_prefix=no
11593 need_version=no
11594 case $host_cpu in
11595 ia64*)
11596 shrext_cmds='.so'
11597 hardcode_into_libs=yes
11598 dynamic_linker="$host_os dld.so"
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11602 soname_spec='$libname$release$shared_ext$major'
11603 if test 32 = "$HPUX_IA64_MODE"; then
11604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11605 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11606 else
11607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11608 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11609 fi
11610 ;;
11611 hppa*64*)
11612 shrext_cmds='.sl'
11613 hardcode_into_libs=yes
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11618 soname_spec='$libname$release$shared_ext$major'
11619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 ;;
11622 *)
11623 shrext_cmds='.sl'
11624 dynamic_linker="$host_os dld.sl"
11625 shlibpath_var=SHLIB_PATH
11626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11628 soname_spec='$libname$release$shared_ext$major'
11629 ;;
11630 esac
11631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11632 postinstall_cmds='chmod 555 $lib'
11633 # or fails outright, so override atomically:
11634 install_override_mode=555
11635 ;;
11636
11637interix[3-9]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_lib_prefix=no
11640 need_version=no
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 soname_spec='$libname$release$shared_ext$major'
11643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=no
11646 hardcode_into_libs=yes
11647 ;;
11648
11649irix5* | irix6* | nonstopux*)
11650 case $host_os in
11651 nonstopux*) version_type=nonstopux ;;
11652 *)
11653 if test yes = "$lt_cv_prog_gnu_ld"; then
11654 version_type=linux # correct to gnu/linux during the next big refactor
11655 else
11656 version_type=irix
11657 fi ;;
11658 esac
11659 need_lib_prefix=no
11660 need_version=no
11661 soname_spec='$libname$release$shared_ext$major'
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11663 case $host_os in
11664 irix5* | nonstopux*)
11665 libsuff= shlibsuff=
11666 ;;
11667 *)
11668 case $LD in # libtool.m4 will add one of these switches to LD
11669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11670 libsuff= shlibsuff= libmagic=32-bit;;
11671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11672 libsuff=32 shlibsuff=N32 libmagic=N32;;
11673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11675 *) libsuff= shlibsuff= libmagic=never-match;;
11676 esac
11677 ;;
11678 esac
11679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11680 shlibpath_overrides_runpath=no
11681 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11682 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11683 hardcode_into_libs=yes
11684 ;;
11685
11686# No shared lib support for Linux oldld, aout, or coff.
11687linux*oldld* | linux*aout* | linux*coff*)
11688 dynamic_linker=no
11689 ;;
11690
11691linux*android*)
11692 version_type=none # Android doesn't support versioned libraries.
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='$libname$release$shared_ext'
11696 soname_spec='$libname$release$shared_ext'
11697 finish_cmds=
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11700
11701 # This implies no fast_install, which is unacceptable.
11702 # Some rework will be needed to allow for fast_install
11703 # before this can be enabled.
11704 hardcode_into_libs=yes
11705
11706 dynamic_linker='Android linker'
11707 # Don't embed -rpath directories since the linker doesn't support them.
11708 hardcode_libdir_flag_spec='-L$libdir'
11709 ;;
11710
11711# This must be glibc/ELF.
11712linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11713 version_type=linux # correct to gnu/linux during the next big refactor
11714 need_lib_prefix=no
11715 need_version=no
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717 soname_spec='$libname$release$shared_ext$major'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721
11722 # Some binutils ld are patched to set DT_RUNPATH
11723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11724 $as_echo_n "(cached) " >&6
11725else
11726 lt_cv_shlibpath_overrides_runpath=no
11727 save_LDFLAGS=$LDFLAGS
11728 save_libdir=$libdir
11729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h. */
11733
11734int
11735main ()
11736{
11737
11738 ;
11739 return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_link "$LINENO"; then :
11743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11744 lt_cv_shlibpath_overrides_runpath=yes
11745fi
11746fi
11747rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LDFLAGS=$save_LDFLAGS
11750 libdir=$save_libdir
11751
11752fi
11753
11754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11755
11756 # This implies no fast_install, which is unacceptable.
11757 # Some rework will be needed to allow for fast_install
11758 # before this can be enabled.
11759 hardcode_into_libs=yes
11760
11761 # Add ABI-specific directories to the system library path.
11762 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11763
11764 # Ideally, we could use ldconfig to report *all* directores which are
11765 # searched for libraries, however this is still not possible. Aside from not
11766 # being certain /sbin/ldconfig is available, command
11767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11768 # even though it is searched at run-time. Try to do the best guess by
11769 # appending ld.so.conf contents (and includes) to the search path.
11770 if test -f /etc/ld.so.conf; then
11771 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' ' '`
11772 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11773 fi
11774
11775 # We used to test for /lib/ld.so.1 and disable shared libraries on
11776 # powerpc, because MkLinux only supported shared libraries with the
11777 # GNU dynamic linker. Since this was broken with cross compilers,
11778 # most powerpc-linux boxes support dynamic linking these days and
11779 # people can always --disable-shared, the test was removed, and we
11780 # assume the GNU/Linux dynamic linker is in use.
11781 dynamic_linker='GNU/Linux ld.so'
11782 ;;
11783
11784netbsd*)
11785 version_type=sunos
11786 need_lib_prefix=no
11787 need_version=no
11788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791 dynamic_linker='NetBSD (a.out) ld.so'
11792 else
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11795 dynamic_linker='NetBSD ld.elf_so'
11796 fi
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 ;;
11801
11802newsos6)
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 ;;
11808
11809*nto* | *qnx*)
11810 version_type=qnx
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11814 soname_spec='$libname$release$shared_ext$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=no
11817 hardcode_into_libs=yes
11818 dynamic_linker='ldqnx.so'
11819 ;;
11820
11821openbsd* | bitrig*)
11822 version_type=sunos
11823 sys_lib_dlsearch_path_spec=/usr/lib
11824 need_lib_prefix=no
11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11826 need_version=no
11827 else
11828 need_version=yes
11829 fi
11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 ;;
11835
11836os2*)
11837 libname_spec='$name'
11838 version_type=windows
11839 shrext_cmds=.dll
11840 need_version=no
11841 need_lib_prefix=no
11842 # OS/2 can only load a DLL with a base name of 8 characters or less.
11843 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11844 v=$($ECHO $release$versuffix | tr -d .-);
11845 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11846 $ECHO $n$v`$shared_ext'
11847 library_names_spec='${libname}_dll.$libext'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=BEGINLIBPATH
11850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11852 postinstall_cmds='base_file=`basename \$file`~
11853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11854 dldir=$destdir/`dirname \$dlpath`~
11855 test -d \$dldir || mkdir -p \$dldir~
11856 $install_prog $dir/$dlname \$dldir/$dlname~
11857 chmod a+x \$dldir/$dlname~
11858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11859 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11860 fi'
11861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11862 dlpath=$dir/\$dldll~
11863 $RM \$dlpath'
11864 ;;
11865
11866osf3* | osf4* | osf5*)
11867 version_type=osf
11868 need_lib_prefix=no
11869 need_version=no
11870 soname_spec='$libname$release$shared_ext$major'
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11875 ;;
11876
11877rdos*)
11878 dynamic_linker=no
11879 ;;
11880
11881solaris*)
11882 version_type=linux # correct to gnu/linux during the next big refactor
11883 need_lib_prefix=no
11884 need_version=no
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11890 # ldd complains unless libraries are executable
11891 postinstall_cmds='chmod +x $lib'
11892 ;;
11893
11894sunos4*)
11895 version_type=sunos
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=yes
11900 if test yes = "$with_gnu_ld"; then
11901 need_lib_prefix=no
11902 fi
11903 need_version=yes
11904 ;;
11905
11906sysv4 | sysv4.3*)
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909 soname_spec='$libname$release$shared_ext$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 case $host_vendor in
11912 sni)
11913 shlibpath_overrides_runpath=no
11914 need_lib_prefix=no
11915 runpath_var=LD_RUN_PATH
11916 ;;
11917 siemens)
11918 need_lib_prefix=no
11919 ;;
11920 motorola)
11921 need_lib_prefix=no
11922 need_version=no
11923 shlibpath_overrides_runpath=no
11924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 ;;
11926 esac
11927 ;;
11928
11929sysv4*MP*)
11930 if test -d /usr/nec; then
11931 version_type=linux # correct to gnu/linux during the next big refactor
11932 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11933 soname_spec='$libname$shared_ext.$major'
11934 shlibpath_var=LD_LIBRARY_PATH
11935 fi
11936 ;;
11937
11938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11939 version_type=sco
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11943 soname_spec='$libname$release$shared_ext$major'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=yes
11946 hardcode_into_libs=yes
11947 if test yes = "$with_gnu_ld"; then
11948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11949 else
11950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11951 case $host_os in
11952 sco3.2v5*)
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11954 ;;
11955 esac
11956 fi
11957 sys_lib_dlsearch_path_spec='/usr/lib'
11958 ;;
11959
11960tpf*)
11961 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11962 version_type=linux # correct to gnu/linux during the next big refactor
11963 need_lib_prefix=no
11964 need_version=no
11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 shlibpath_overrides_runpath=no
11968 hardcode_into_libs=yes
11969 ;;
11970
11971uts4*)
11972 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11974 soname_spec='$libname$release$shared_ext$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 ;;
11977
11978*)
11979 dynamic_linker=no
11980 ;;
11981esac
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11983$as_echo "$dynamic_linker" >&6; }
11984test no = "$dynamic_linker" && can_build_shared=no
11985
11986variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11987if test yes = "$GCC"; then
11988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11989fi
11990
11991if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11992 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11993fi
11994
11995if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11996 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11997fi
11998
11999# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12000configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12001
12002# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12003func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12004
12005# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12006configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12105$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12106hardcode_action=
12107if test -n "$hardcode_libdir_flag_spec" ||
12108 test -n "$runpath_var" ||
12109 test yes = "$hardcode_automatic"; then
12110
12111 # We can hardcode non-existent directories.
12112 if test no != "$hardcode_direct" &&
12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12114 # have to relink, otherwise we might link with an installed library
12115 # when we should be linking with a yet-to-be-installed one
12116 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12117 test no != "$hardcode_minus_L"; then
12118 # Linking always hardcodes the temporary library directory.
12119 hardcode_action=relink
12120 else
12121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12122 hardcode_action=immediate
12123 fi
12124else
12125 # We cannot hardcode anything, or else we can only hardcode existing
12126 # directories.
12127 hardcode_action=unsupported
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12130$as_echo "$hardcode_action" >&6; }
12131
12132if test relink = "$hardcode_action" ||
12133 test yes = "$inherit_rpath"; then
12134 # Fast installation is not supported
12135 enable_fast_install=no
12136elif test yes = "$shlibpath_overrides_runpath" ||
12137 test no = "$enable_shared"; then
12138 # Fast installation is not necessary
12139 enable_fast_install=needless
12140fi
12141
12142
12143
12144
12145
12146
12147 if test yes != "$enable_dlopen"; then
12148 enable_dlopen=unknown
12149 enable_dlopen_self=unknown
12150 enable_dlopen_self_static=unknown
12151else
12152 lt_cv_dlopen=no
12153 lt_cv_dlopen_libs=
12154
12155 case $host_os in
12156 beos*)
12157 lt_cv_dlopen=load_add_on
12158 lt_cv_dlopen_libs=
12159 lt_cv_dlopen_self=yes
12160 ;;
12161
12162 mingw* | pw32* | cegcc*)
12163 lt_cv_dlopen=LoadLibrary
12164 lt_cv_dlopen_libs=
12165 ;;
12166
12167 cygwin*)
12168 lt_cv_dlopen=dlopen
12169 lt_cv_dlopen_libs=
12170 ;;
12171
12172 darwin*)
12173 # if libdl is installed we need to link against it
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12175$as_echo_n "checking for dlopen in -ldl... " >&6; }
12176if ${ac_cv_lib_dl_dlopen+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 ac_check_lib_save_LIBS=$LIBS
12180LIBS="-ldl $LIBS"
12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h. */
12183
12184/* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char dlopen ();
12191int
12192main ()
12193{
12194return dlopen ();
12195 ;
12196 return 0;
12197}
12198_ACEOF
12199if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dl_dlopen=yes
12201else
12202 ac_cv_lib_dl_dlopen=no
12203fi
12204rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206LIBS=$ac_check_lib_save_LIBS
12207fi
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12210if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12212else
12213
12214 lt_cv_dlopen=dyld
12215 lt_cv_dlopen_libs=
12216 lt_cv_dlopen_self=yes
12217
12218fi
12219
12220 ;;
12221
12222 tpf*)
12223 # Don't try to run any link tests for TPF. We know it's impossible
12224 # because TPF is a cross-compiler, and we know how we open DSOs.
12225 lt_cv_dlopen=dlopen
12226 lt_cv_dlopen_libs=
12227 lt_cv_dlopen_self=no
12228 ;;
12229
12230 *)
12231 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12232if test "x$ac_cv_func_shl_load" = xyes; then :
12233 lt_cv_dlopen=shl_load
12234else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12236$as_echo_n "checking for shl_load in -ldld... " >&6; }
12237if ${ac_cv_lib_dld_shl_load+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239else
12240 ac_check_lib_save_LIBS=$LIBS
12241LIBS="-ldld $LIBS"
12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243/* end confdefs.h. */
12244
12245/* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248#ifdef __cplusplus
12249extern "C"
12250#endif
12251char shl_load ();
12252int
12253main ()
12254{
12255return shl_load ();
12256 ;
12257 return 0;
12258}
12259_ACEOF
12260if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_lib_dld_shl_load=yes
12262else
12263 ac_cv_lib_dld_shl_load=no
12264fi
12265rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267LIBS=$ac_check_lib_save_LIBS
12268fi
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12270$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12271if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12272 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12273else
12274 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12275if test "x$ac_cv_func_dlopen" = xyes; then :
12276 lt_cv_dlopen=dlopen
12277else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12279$as_echo_n "checking for dlopen in -ldl... " >&6; }
12280if ${ac_cv_lib_dl_dlopen+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282else
12283 ac_check_lib_save_LIBS=$LIBS
12284LIBS="-ldl $LIBS"
12285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286/* end confdefs.h. */
12287
12288/* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291#ifdef __cplusplus
12292extern "C"
12293#endif
12294char dlopen ();
12295int
12296main ()
12297{
12298return dlopen ();
12299 ;
12300 return 0;
12301}
12302_ACEOF
12303if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_dl_dlopen=yes
12305else
12306 ac_cv_lib_dl_dlopen=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310LIBS=$ac_check_lib_save_LIBS
12311fi
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12313$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12314if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12315 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12316else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12318$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12319if ${ac_cv_lib_svld_dlopen+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321else
12322 ac_check_lib_save_LIBS=$LIBS
12323LIBS="-lsvld $LIBS"
12324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325/* end confdefs.h. */
12326
12327/* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12330#ifdef __cplusplus
12331extern "C"
12332#endif
12333char dlopen ();
12334int
12335main ()
12336{
12337return dlopen ();
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342if ac_fn_c_try_link "$LINENO"; then :
12343 ac_cv_lib_svld_dlopen=yes
12344else
12345 ac_cv_lib_svld_dlopen=no
12346fi
12347rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349LIBS=$ac_check_lib_save_LIBS
12350fi
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12352$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12353if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12354 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12355else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12357$as_echo_n "checking for dld_link in -ldld... " >&6; }
12358if ${ac_cv_lib_dld_dld_link+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 ac_check_lib_save_LIBS=$LIBS
12362LIBS="-ldld $LIBS"
12363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364/* end confdefs.h. */
12365
12366/* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369#ifdef __cplusplus
12370extern "C"
12371#endif
12372char dld_link ();
12373int
12374main ()
12375{
12376return dld_link ();
12377 ;
12378 return 0;
12379}
12380_ACEOF
12381if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_dld_dld_link=yes
12383else
12384 ac_cv_lib_dld_dld_link=no
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388LIBS=$ac_check_lib_save_LIBS
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12391$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12392if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12393 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12394fi
12395
12396
12397fi
12398
12399
12400fi
12401
12402
12403fi
12404
12405
12406fi
12407
12408
12409fi
12410
12411 ;;
12412 esac
12413
12414 if test no = "$lt_cv_dlopen"; then
12415 enable_dlopen=no
12416 else
12417 enable_dlopen=yes
12418 fi
12419
12420 case $lt_cv_dlopen in
12421 dlopen)
12422 save_CPPFLAGS=$CPPFLAGS
12423 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12424
12425 save_LDFLAGS=$LDFLAGS
12426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12427
12428 save_LIBS=$LIBS
12429 LIBS="$lt_cv_dlopen_libs $LIBS"
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12432$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12433if ${lt_cv_dlopen_self+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435else
12436 if test yes = "$cross_compiling"; then :
12437 lt_cv_dlopen_self=cross
12438else
12439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12440 lt_status=$lt_dlunknown
12441 cat > conftest.$ac_ext <<_LT_EOF
12442#line $LINENO "configure"
12443#include "confdefs.h"
12444
12445#if HAVE_DLFCN_H
12446#include <dlfcn.h>
12447#endif
12448
12449#include <stdio.h>
12450
12451#ifdef RTLD_GLOBAL
12452# define LT_DLGLOBAL RTLD_GLOBAL
12453#else
12454# ifdef DL_GLOBAL
12455# define LT_DLGLOBAL DL_GLOBAL
12456# else
12457# define LT_DLGLOBAL 0
12458# endif
12459#endif
12460
12461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12462 find out it does not work in some platform. */
12463#ifndef LT_DLLAZY_OR_NOW
12464# ifdef RTLD_LAZY
12465# define LT_DLLAZY_OR_NOW RTLD_LAZY
12466# else
12467# ifdef DL_LAZY
12468# define LT_DLLAZY_OR_NOW DL_LAZY
12469# else
12470# ifdef RTLD_NOW
12471# define LT_DLLAZY_OR_NOW RTLD_NOW
12472# else
12473# ifdef DL_NOW
12474# define LT_DLLAZY_OR_NOW DL_NOW
12475# else
12476# define LT_DLLAZY_OR_NOW 0
12477# endif
12478# endif
12479# endif
12480# endif
12481#endif
12482
12483/* When -fvisibility=hidden is used, assume the code has been annotated
12484 correspondingly for the symbols needed. */
12485#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12486int fnord () __attribute__((visibility("default")));
12487#endif
12488
12489int fnord () { return 42; }
12490int main ()
12491{
12492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12493 int status = $lt_dlunknown;
12494
12495 if (self)
12496 {
12497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12498 else
12499 {
12500 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12501 else puts (dlerror ());
12502 }
12503 /* dlclose (self); */
12504 }
12505 else
12506 puts (dlerror ());
12507
12508 return status;
12509}
12510_LT_EOF
12511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12512 (eval $ac_link) 2>&5
12513 ac_status=$?
12514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12516 (./conftest; exit; ) >&5 2>/dev/null
12517 lt_status=$?
12518 case x$lt_status in
12519 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12520 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12521 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12522 esac
12523 else :
12524 # compilation failed
12525 lt_cv_dlopen_self=no
12526 fi
12527fi
12528rm -fr conftest*
12529
12530
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12533$as_echo "$lt_cv_dlopen_self" >&6; }
12534
12535 if test yes = "$lt_cv_dlopen_self"; then
12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12538$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12539if ${lt_cv_dlopen_self_static+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541else
12542 if test yes = "$cross_compiling"; then :
12543 lt_cv_dlopen_self_static=cross
12544else
12545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12546 lt_status=$lt_dlunknown
12547 cat > conftest.$ac_ext <<_LT_EOF
12548#line $LINENO "configure"
12549#include "confdefs.h"
12550
12551#if HAVE_DLFCN_H
12552#include <dlfcn.h>
12553#endif
12554
12555#include <stdio.h>
12556
12557#ifdef RTLD_GLOBAL
12558# define LT_DLGLOBAL RTLD_GLOBAL
12559#else
12560# ifdef DL_GLOBAL
12561# define LT_DLGLOBAL DL_GLOBAL
12562# else
12563# define LT_DLGLOBAL 0
12564# endif
12565#endif
12566
12567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12568 find out it does not work in some platform. */
12569#ifndef LT_DLLAZY_OR_NOW
12570# ifdef RTLD_LAZY
12571# define LT_DLLAZY_OR_NOW RTLD_LAZY
12572# else
12573# ifdef DL_LAZY
12574# define LT_DLLAZY_OR_NOW DL_LAZY
12575# else
12576# ifdef RTLD_NOW
12577# define LT_DLLAZY_OR_NOW RTLD_NOW
12578# else
12579# ifdef DL_NOW
12580# define LT_DLLAZY_OR_NOW DL_NOW
12581# else
12582# define LT_DLLAZY_OR_NOW 0
12583# endif
12584# endif
12585# endif
12586# endif
12587#endif
12588
12589/* When -fvisibility=hidden is used, assume the code has been annotated
12590 correspondingly for the symbols needed. */
12591#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12592int fnord () __attribute__((visibility("default")));
12593#endif
12594
12595int fnord () { return 42; }
12596int main ()
12597{
12598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12599 int status = $lt_dlunknown;
12600
12601 if (self)
12602 {
12603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12604 else
12605 {
12606 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12607 else puts (dlerror ());
12608 }
12609 /* dlclose (self); */
12610 }
12611 else
12612 puts (dlerror ());
12613
12614 return status;
12615}
12616_LT_EOF
12617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12622 (./conftest; exit; ) >&5 2>/dev/null
12623 lt_status=$?
12624 case x$lt_status in
12625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12628 esac
12629 else :
12630 # compilation failed
12631 lt_cv_dlopen_self_static=no
12632 fi
12633fi
12634rm -fr conftest*
12635
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12639$as_echo "$lt_cv_dlopen_self_static" >&6; }
12640 fi
12641
12642 CPPFLAGS=$save_CPPFLAGS
12643 LDFLAGS=$save_LDFLAGS
12644 LIBS=$save_LIBS
12645 ;;
12646 esac
12647
12648 case $lt_cv_dlopen_self in
12649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12650 *) enable_dlopen_self=unknown ;;
12651 esac
12652
12653 case $lt_cv_dlopen_self_static in
12654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12655 *) enable_dlopen_self_static=unknown ;;
12656 esac
12657fi
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675striplib=
12676old_striplib=
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12678$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12679if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12681 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12683$as_echo "yes" >&6; }
12684else
12685# FIXME - insert some real tests, host_os isn't really good enough
12686 case $host_os in
12687 darwin*)
12688 if test -n "$STRIP"; then
12689 striplib="$STRIP -x"
12690 old_striplib="$STRIP -S"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692$as_echo "yes" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695$as_echo "no" >&6; }
12696 fi
12697 ;;
12698 *)
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
12701 ;;
12702 esac
12703fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 # Report what library types will actually be built
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12718$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12720$as_echo "$can_build_shared" >&6; }
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12723$as_echo_n "checking whether to build shared libraries... " >&6; }
12724 test no = "$can_build_shared" && enable_shared=no
12725
12726 # On AIX, shared libraries and static libraries use the same namespace, and
12727 # are all built from PIC.
12728 case $host_os in
12729 aix3*)
12730 test yes = "$enable_shared" && enable_static=no
12731 if test -n "$RANLIB"; then
12732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12733 postinstall_cmds='$RANLIB $lib'
12734 fi
12735 ;;
12736
12737 aix[4-9]*)
12738 if test ia64 != "$host_cpu"; then
12739 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12740 yes,aix,yes) ;; # shared object as lib.so file only
12741 yes,svr4,*) ;; # shared object as lib.so archive member only
12742 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12743 esac
12744 fi
12745 ;;
12746 esac
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12748$as_echo "$enable_shared" >&6; }
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12751$as_echo_n "checking whether to build static libraries... " >&6; }
12752 # Make sure either enable_shared or enable_static is yes.
12753 test yes = "$enable_shared" || enable_static=yes
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12755$as_echo "$enable_static" >&6; }
12756
12757
12758
12759
12760fi
12761ac_ext=c
12762ac_cpp='$CPP $CPPFLAGS'
12763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766
12767CC=$lt_save_CC
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 ac_config_commands="$ac_config_commands libtool"
12784
12785
12786
12787
12788# Only expand once:
12789
12790
12791
12792if test "$GCC" = yes ; then
12793 CXXFLAGS="$CXXFLAGS -Wall"
12794 CFLAGS="$CFLAGS -Wall"
12795fi
12796
12797CFLAGS="$CFLAGS -I.. -I$srcdir/.."
12798
12799
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12801$as_echo_n "checking for ANSI C header files... " >&6; }
12802if ${ac_cv_header_stdc+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h. */
12807#include <stdlib.h>
12808#include <stdarg.h>
12809#include <string.h>
12810#include <float.h>
12811
12812int
12813main ()
12814{
12815
12816 ;
12817 return 0;
12818}
12819_ACEOF
12820if ac_fn_c_try_compile "$LINENO"; then :
12821 ac_cv_header_stdc=yes
12822else
12823 ac_cv_header_stdc=no
12824fi
12825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826
12827if test $ac_cv_header_stdc = yes; then
12828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830/* end confdefs.h. */
12831#include <string.h>
12832
12833_ACEOF
12834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12835 $EGREP "memchr" >/dev/null 2>&1; then :
12836
12837else
12838 ac_cv_header_stdc=no
12839fi
12840rm -f conftest*
12841
12842fi
12843
12844if test $ac_cv_header_stdc = yes; then
12845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h. */
12848#include <stdlib.h>
12849
12850_ACEOF
12851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12852 $EGREP "free" >/dev/null 2>&1; then :
12853
12854else
12855 ac_cv_header_stdc=no
12856fi
12857rm -f conftest*
12858
12859fi
12860
12861if test $ac_cv_header_stdc = yes; then
12862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12863 if test "$cross_compiling" = yes; then :
12864 :
12865else
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867/* end confdefs.h. */
12868#include <ctype.h>
12869#include <stdlib.h>
12870#if ((' ' & 0x0FF) == 0x020)
12871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12873#else
12874# define ISLOWER(c) \
12875 (('a' <= (c) && (c) <= 'i') \
12876 || ('j' <= (c) && (c) <= 'r') \
12877 || ('s' <= (c) && (c) <= 'z'))
12878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12879#endif
12880
12881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12882int
12883main ()
12884{
12885 int i;
12886 for (i = 0; i < 256; i++)
12887 if (XOR (islower (i), ISLOWER (i))
12888 || toupper (i) != TOUPPER (i))
12889 return 2;
12890 return 0;
12891}
12892_ACEOF
12893if ac_fn_c_try_run "$LINENO"; then :
12894
12895else
12896 ac_cv_header_stdc=no
12897fi
12898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12899 conftest.$ac_objext conftest.beam conftest.$ac_ext
12900fi
12901
12902fi
12903fi
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12905$as_echo "$ac_cv_header_stdc" >&6; }
12906if test $ac_cv_header_stdc = yes; then
12907
12908$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12909
12910fi
12911
12912for ac_header in locale.h
12913do :
12914 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12915if test "x$ac_cv_header_locale_h" = xyes; then :
12916 cat >>confdefs.h <<_ACEOF
12917#define HAVE_LOCALE_H 1
12918_ACEOF
12919
12920fi
12921
12922done
12923
12924
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12926$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12927if ${ac_cv_c_const+:} false; then :
12928 $as_echo_n "(cached) " >&6
12929else
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931/* end confdefs.h. */
12932
12933int
12934main ()
12935{
12936
12937#ifndef __cplusplus
12938 /* Ultrix mips cc rejects this sort of thing. */
12939 typedef int charset[2];
12940 const charset cs = { 0, 0 };
12941 /* SunOS 4.1.1 cc rejects this. */
12942 char const *const *pcpcc;
12943 char **ppc;
12944 /* NEC SVR4.0.2 mips cc rejects this. */
12945 struct point {int x, y;};
12946 static struct point const zero = {0,0};
12947 /* AIX XL C 1.02.0.0 rejects this.
12948 It does not let you subtract one const X* pointer from another in
12949 an arm of an if-expression whose if-part is not a constant
12950 expression */
12951 const char *g = "string";
12952 pcpcc = &g + (g ? g-g : 0);
12953 /* HPUX 7.0 cc rejects these. */
12954 ++pcpcc;
12955 ppc = (char**) pcpcc;
12956 pcpcc = (char const *const *) ppc;
12957 { /* SCO 3.2v4 cc rejects this sort of thing. */
12958 char tx;
12959 char *t = &tx;
12960 char const *s = 0 ? (char *) 0 : (char const *) 0;
12961
12962 *t++ = 0;
12963 if (s) return 0;
12964 }
12965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12966 int x[] = {25, 17};
12967 const int *foo = &x[0];
12968 ++foo;
12969 }
12970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12971 typedef const int *iptr;
12972 iptr p = 0;
12973 ++p;
12974 }
12975 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12977 struct s { int j; const int *ap[3]; } bx;
12978 struct s *b = &bx; b->j = 5;
12979 }
12980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12981 const int foo = 10;
12982 if (!foo) return 0;
12983 }
12984 return !cs[0] && !zero.x;
12985#endif
12986
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991if ac_fn_c_try_compile "$LINENO"; then :
12992 ac_cv_c_const=yes
12993else
12994 ac_cv_c_const=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997fi
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12999$as_echo "$ac_cv_c_const" >&6; }
13000if test $ac_cv_c_const = no; then
13001
13002$as_echo "#define const /**/" >>confdefs.h
13003
13004fi
13005
13006ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13007if test "x$ac_cv_type_size_t" = xyes; then :
13008
13009else
13010
13011cat >>confdefs.h <<_ACEOF
13012#define size_t unsigned int
13013_ACEOF
13014
13015fi
13016
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13018$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13019if ${ac_cv_struct_tm+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023/* end confdefs.h. */
13024#include <sys/types.h>
13025#include <time.h>
13026
13027int
13028main ()
13029{
13030struct tm tm;
13031 int *p = &tm.tm_sec;
13032 return !p;
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_compile "$LINENO"; then :
13038 ac_cv_struct_tm=time.h
13039else
13040 ac_cv_struct_tm=sys/time.h
13041fi
13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043fi
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13045$as_echo "$ac_cv_struct_tm" >&6; }
13046if test $ac_cv_struct_tm = sys/time.h; then
13047
13048$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13049
13050fi
13051
13052# Check whether --enable-largefile was given.
13053if test "${enable_largefile+set}" = set; then :
13054 enableval=$enable_largefile;
13055fi
13056
13057if test "$enable_largefile" != no; then
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13060$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13061if ${ac_cv_sys_largefile_CC+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063else
13064 ac_cv_sys_largefile_CC=no
13065 if test "$GCC" != yes; then
13066 ac_save_CC=$CC
13067 while :; do
13068 # IRIX 6.2 and later do not support large files by default,
13069 # so use the C compiler's -n32 option if that helps.
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h. */
13072#include <sys/types.h>
13073 /* Check that off_t can represent 2**63 - 1 correctly.
13074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13075 since some C++ compilers masquerading as C compilers
13076 incorrectly reject 9223372036854775807. */
13077#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13079 && LARGE_OFF_T % 2147483647 == 1)
13080 ? 1 : -1];
13081int
13082main ()
13083{
13084
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089 if ac_fn_c_try_compile "$LINENO"; then :
13090 break
13091fi
13092rm -f core conftest.err conftest.$ac_objext
13093 CC="$CC -n32"
13094 if ac_fn_c_try_compile "$LINENO"; then :
13095 ac_cv_sys_largefile_CC=' -n32'; break
13096fi
13097rm -f core conftest.err conftest.$ac_objext
13098 break
13099 done
13100 CC=$ac_save_CC
13101 rm -f conftest.$ac_ext
13102 fi
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13105$as_echo "$ac_cv_sys_largefile_CC" >&6; }
13106 if test "$ac_cv_sys_largefile_CC" != no; then
13107 CC=$CC$ac_cv_sys_largefile_CC
13108 fi
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13111$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13112if ${ac_cv_sys_file_offset_bits+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114else
13115 while :; do
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h. */
13118#include <sys/types.h>
13119 /* Check that off_t can represent 2**63 - 1 correctly.
13120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13121 since some C++ compilers masquerading as C compilers
13122 incorrectly reject 9223372036854775807. */
13123#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13125 && LARGE_OFF_T % 2147483647 == 1)
13126 ? 1 : -1];
13127int
13128main ()
13129{
13130
13131 ;
13132 return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_compile "$LINENO"; then :
13136 ac_cv_sys_file_offset_bits=no; break
13137fi
13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h. */
13141#define _FILE_OFFSET_BITS 64
13142#include <sys/types.h>
13143 /* Check that off_t can represent 2**63 - 1 correctly.
13144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13145 since some C++ compilers masquerading as C compilers
13146 incorrectly reject 9223372036854775807. */
13147#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13149 && LARGE_OFF_T % 2147483647 == 1)
13150 ? 1 : -1];
13151int
13152main ()
13153{
13154
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"; then :
13160 ac_cv_sys_file_offset_bits=64; break
13161fi
13162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 ac_cv_sys_file_offset_bits=unknown
13164 break
13165done
13166fi
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13168$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13169case $ac_cv_sys_file_offset_bits in #(
13170 no | unknown) ;;
13171 *)
13172cat >>confdefs.h <<_ACEOF
13173#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13174_ACEOF
13175;;
13176esac
13177rm -rf conftest*
13178 if test $ac_cv_sys_file_offset_bits = unknown; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13180$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13181if ${ac_cv_sys_large_files+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183else
13184 while :; do
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186/* end confdefs.h. */
13187#include <sys/types.h>
13188 /* Check that off_t can represent 2**63 - 1 correctly.
13189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13190 since some C++ compilers masquerading as C compilers
13191 incorrectly reject 9223372036854775807. */
13192#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13194 && LARGE_OFF_T % 2147483647 == 1)
13195 ? 1 : -1];
13196int
13197main ()
13198{
13199
13200 ;
13201 return 0;
13202}
13203_ACEOF
13204if ac_fn_c_try_compile "$LINENO"; then :
13205 ac_cv_sys_large_files=no; break
13206fi
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209/* end confdefs.h. */
13210#define _LARGE_FILES 1
13211#include <sys/types.h>
13212 /* Check that off_t can represent 2**63 - 1 correctly.
13213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13214 since some C++ compilers masquerading as C compilers
13215 incorrectly reject 9223372036854775807. */
13216#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13218 && LARGE_OFF_T % 2147483647 == 1)
13219 ? 1 : -1];
13220int
13221main ()
13222{
13223
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228if ac_fn_c_try_compile "$LINENO"; then :
13229 ac_cv_sys_large_files=1; break
13230fi
13231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 ac_cv_sys_large_files=unknown
13233 break
13234done
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13237$as_echo "$ac_cv_sys_large_files" >&6; }
13238case $ac_cv_sys_large_files in #(
13239 no | unknown) ;;
13240 *)
13241cat >>confdefs.h <<_ACEOF
13242#define _LARGE_FILES $ac_cv_sys_large_files
13243_ACEOF
13244;;
13245esac
13246rm -rf conftest*
13247 fi
13248
13249
13250fi
13251
13252
13253
13254
13255# Check whether --with-libidn was given.
13256if test "${with_libidn+set}" = set; then :
13257 withval=$with_libidn; libidn=$withval
13258else
13259 libidn=yes
13260fi
13261
13262
13263if test "$libidn" != "no"
13264then
13265
13266
13267
13268
13269
13270
13271
13272if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13273 if test -n "$ac_tool_prefix"; then
13274 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13275set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
13278if ${ac_cv_path_PKG_CONFIG+:} false; then :
13279 $as_echo_n "(cached) " >&6
13280else
13281 case $PKG_CONFIG in
13282 [\\/]* | ?:[\\/]*)
13283 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13284 ;;
13285 *)
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287for as_dir in $PATH
13288do
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13296 fi
13297done
13298 done
13299IFS=$as_save_IFS
13300
13301 ;;
13302esac
13303fi
13304PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13305if test -n "$PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13307$as_echo "$PKG_CONFIG" >&6; }
13308else
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
13311fi
13312
13313
13314fi
13315if test -z "$ac_cv_path_PKG_CONFIG"; then
13316 ac_pt_PKG_CONFIG=$PKG_CONFIG
13317 # Extract the first word of "pkg-config", so it can be a program name with args.
13318set dummy pkg-config; ac_word=$2
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320$as_echo_n "checking for $ac_word... " >&6; }
13321if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323else
13324 case $ac_pt_PKG_CONFIG in
13325 [\\/]* | ?:[\\/]*)
13326 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13327 ;;
13328 *)
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $PATH
13331do
13332 IFS=$as_save_IFS
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338 break 2
13339 fi
13340done
13341 done
13342IFS=$as_save_IFS
13343
13344 ;;
13345esac
13346fi
13347ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13348if test -n "$ac_pt_PKG_CONFIG"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13350$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13351else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353$as_echo "no" >&6; }
13354fi
13355
13356 if test "x$ac_pt_PKG_CONFIG" = x; then
13357 PKG_CONFIG=""
13358 else
13359 case $cross_compiling:$ac_tool_warned in
13360yes:)
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13363ac_tool_warned=yes ;;
13364esac
13365 PKG_CONFIG=$ac_pt_PKG_CONFIG
13366 fi
13367else
13368 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13369fi
13370
13371fi
13372if test -n "$PKG_CONFIG"; then
13373 _pkg_min_version=0.9.0
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13375$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13376 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378$as_echo "yes" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382 PKG_CONFIG=""
13383 fi
13384fi
13385
13386pkg_failed=no
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
13388$as_echo_n "checking for LIBIDN... " >&6; }
13389
13390if test -n "$LIBIDN_CFLAGS"; then
13391 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
13392 elif test -n "$PKG_CONFIG"; then
13393 if test -n "$PKG_CONFIG" && \
13394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
13395 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
13396 ac_status=$?
13397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13398 test $ac_status = 0; }; then
13399 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
13400 test "x$?" != "x0" && pkg_failed=yes
13401else
13402 pkg_failed=yes
13403fi
13404 else
13405 pkg_failed=untried
13406fi
13407if test -n "$LIBIDN_LIBS"; then
13408 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
13409 elif test -n "$PKG_CONFIG"; then
13410 if test -n "$PKG_CONFIG" && \
13411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
13412 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
13413 ac_status=$?
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13415 test $ac_status = 0; }; then
13416 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
13417 test "x$?" != "x0" && pkg_failed=yes
13418else
13419 pkg_failed=yes
13420fi
13421 else
13422 pkg_failed=untried
13423fi
13424
13425
13426
13427if test $pkg_failed = yes; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
13430
13431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13432 _pkg_short_errors_supported=yes
13433else
13434 _pkg_short_errors_supported=no
13435fi
13436 if test $_pkg_short_errors_supported = yes; then
13437 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
13438 else
13439 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
13440 fi
13441 # Put the nasty error message in config.log where it belongs
13442 echo "$LIBIDN_PKG_ERRORS" >&5
13443
13444 libidn=no
13445elif test $pkg_failed = untried; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
13448 libidn=no
13449else
13450 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
13451 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13453$as_echo "yes" >&6; }
13454 libidn=yes
13455fi
13456 if test "$libidn" != "yes"
13457 then
13458 libidn=no
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found" >&5
13460$as_echo "$as_me: WARNING: Libidn not found" >&2;}
13461 else
13462 libidn=yes
13463
13464$as_echo "#define LIBIDN 1" >>confdefs.h
13465
13466 fi
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Libidn should be used" >&5
13469$as_echo_n "checking if Libidn should be used... " >&6; }
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libidn" >&5
13471$as_echo "$libidn" >&6; }
13472
13473for ac_func in strcasecmp strncasecmp setlocale
13474do :
13475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13476ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13477if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13478 cat >>confdefs.h <<_ACEOF
13479#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480_ACEOF
13481
13482fi
13483done
13484
13485
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to calculate alternate timezone" >&5
13487$as_echo_n "checking how to calculate alternate timezone... " >&6; }
13488if ${librfc822_cv_SYS_TIMEZONE+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h. */
13493
13494#include <time.h>
13495
13496int
13497main ()
13498{
13499
13500time_t t=altzone;
13501
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_compile "$LINENO"; then :
13507 librfc822_cv_SYS_TIMEZONE=altzone
13508else
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510/* end confdefs.h. */
13511
13512#include <time.h>
13513
13514int
13515main ()
13516{
13517
13518int n=daylight;
13519
13520 ;
13521 return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_compile "$LINENO"; then :
13525 librfc822_cv_SYS_TIMEZONE=daylight
13526else
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h. */
13529
13530#include <time.h>
13531
13532extern struct tm dummy;
13533
13534int
13535main ()
13536{
13537
13538long n=dummy.tm_gmtoff;
13539
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_compile "$LINENO"; then :
13545 librfc822_cv_SYS_TIMEZONE=tm_gmtoff
13546else
13547 librfc822_cv_SYS_TIMEZONE=unknown
13548
13549fi
13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551
13552fi
13553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554
13555fi
13556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $librfc822_cv_SYS_TIMEZONE" >&5
13560$as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; }
13561
13562case $librfc822_cv_SYS_TIMEZONE in
13563tm_gmtoff)
13564
13565cat >>confdefs.h <<_ACEOF
13566#define USE_TIME_GMTOFF 1
13567_ACEOF
13568
13569 ;;
13570altzone)
13571
13572cat >>confdefs.h <<_ACEOF
13573#define USE_TIME_ALTZONE 1
13574_ACEOF
13575
13576 ;;
13577daylight)
13578
13579cat >>confdefs.h <<_ACEOF
13580#define USE_TIME_DAYLIGHT 1
13581_ACEOF
13582
13583 ;;
13584*)
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5
13586$as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;}
13587 ;;
13588esac
13589
13590 if test -d ${srcdir}/../docbook; then
13591 HAVE_SGML_TRUE=
13592 HAVE_SGML_FALSE='#'
13593else
13594 HAVE_SGML_TRUE='#'
13595 HAVE_SGML_FALSE=
13596fi
13597
13598
13599echo "libidn=$libidn" >rfc822.config
13600ac_config_files="$ac_config_files Makefile"
13601
13602cat >confcache <<\_ACEOF
13603# This file is a shell script that caches the results of configure
13604# tests run on this system so they can be shared between configure
13605# scripts and configure runs, see configure's option --config-cache.
13606# It is not useful on other systems. If it contains results you don't
13607# want to keep, you may remove or edit it.
13608#
13609# config.status only pays attention to the cache file if you give it
13610# the --recheck option to rerun configure.
13611#
13612# `ac_cv_env_foo' variables (set or unset) will be overridden when
13613# loading this file, other *unset* `ac_cv_foo' will be assigned the
13614# following values.
13615
13616_ACEOF
13617
13618# The following way of writing the cache mishandles newlines in values,
13619# but we know of no workaround that is simple, portable, and efficient.
13620# So, we kill variables containing newlines.
13621# Ultrix sh set writes to stderr and can't be redirected directly,
13622# and sets the high bit in the cache file unless we assign to the vars.
13623(
13624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13625 eval ac_val=\$$ac_var
13626 case $ac_val in #(
13627 *${as_nl}*)
13628 case $ac_var in #(
13629 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13630$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13631 esac
13632 case $ac_var in #(
13633 _ | IFS | as_nl) ;; #(
13634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13635 *) { eval $ac_var=; unset $ac_var;} ;;
13636 esac ;;
13637 esac
13638 done
13639
13640 (set) 2>&1 |
13641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13642 *${as_nl}ac_space=\ *)
13643 # `set' does not quote correctly, so add quotes: double-quote
13644 # substitution turns \\\\ into \\, and sed turns \\ into \.
13645 sed -n \
13646 "s/'/'\\\\''/g;
13647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13648 ;; #(
13649 *)
13650 # `set' quotes correctly as required by POSIX, so do not add quotes.
13651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13652 ;;
13653 esac |
13654 sort
13655) |
13656 sed '
13657 /^ac_cv_env_/b end
13658 t clear
13659 :clear
13660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13661 t end
13662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13663 :end' >>confcache
13664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13665 if test -w "$cache_file"; then
13666 if test "x$cache_file" != "x/dev/null"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13668$as_echo "$as_me: updating cache $cache_file" >&6;}
13669 if test ! -f "$cache_file" || test -h "$cache_file"; then
13670 cat confcache >"$cache_file"
13671 else
13672 case $cache_file in #(
13673 */* | ?:*)
13674 mv -f confcache "$cache_file"$$ &&
13675 mv -f "$cache_file"$$ "$cache_file" ;; #(
13676 *)
13677 mv -f confcache "$cache_file" ;;
13678 esac
13679 fi
13680 fi
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13683$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13684 fi
13685fi
13686rm -f confcache
13687
13688test "x$prefix" = xNONE && prefix=$ac_default_prefix
13689# Let make expand exec_prefix.
13690test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13691
13692DEFS=-DHAVE_CONFIG_H
13693
13694ac_libobjs=
13695ac_ltlibobjs=
13696U=
13697for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13698 # 1. Remove the extension, and $U if already installed.
13699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13700 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13702 # will be set to the directory where LIBOBJS objects are built.
13703 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13704 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13705done
13706LIBOBJS=$ac_libobjs
13707
13708LTLIBOBJS=$ac_ltlibobjs
13709
13710
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13712$as_echo_n "checking that generated files are newer than configure... " >&6; }
13713 if test -n "$am_sleep_pid"; then
13714 # Hide warnings about reused PIDs.
13715 wait $am_sleep_pid 2>/dev/null
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13718$as_echo "done" >&6; }
13719 if test -n "$EXEEXT"; then
13720 am__EXEEXT_TRUE=
13721 am__EXEEXT_FALSE='#'
13722else
13723 am__EXEEXT_TRUE='#'
13724 am__EXEEXT_FALSE=
13725fi
13726
13727if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13728 as_fn_error $? "conditional \"AMDEP\" was never defined.
13729Usually this means the macro was only invoked conditionally." "$LINENO" 5
13730fi
13731if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13733Usually this means the macro was only invoked conditionally." "$LINENO" 5
13734fi
13735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13737Usually this means the macro was only invoked conditionally." "$LINENO" 5
13738fi
13739if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13740 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
13741Usually this means the macro was only invoked conditionally." "$LINENO" 5
13742fi
13743
13744: "${CONFIG_STATUS=./config.status}"
13745ac_write_fail=0
13746ac_clean_files_save=$ac_clean_files
13747ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13749$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13750as_write_fail=0
13751cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13752#! $SHELL
13753# Generated by $as_me.
13754# Run this file to recreate the current configuration.
13755# Compiler output produced by configure, useful for debugging
13756# configure, is in config.log if it exists.
13757
13758debug=false
13759ac_cs_recheck=false
13760ac_cs_silent=false
13761
13762SHELL=\${CONFIG_SHELL-$SHELL}
13763export SHELL
13764_ASEOF
13765cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13766## -------------------- ##
13767## M4sh Initialization. ##
13768## -------------------- ##
13769
13770# Be more Bourne compatible
13771DUALCASE=1; export DUALCASE # for MKS sh
13772if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13773 emulate sh
13774 NULLCMD=:
13775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13776 # is contrary to our usage. Disable this feature.
13777 alias -g '${1+"$@"}'='"$@"'
13778 setopt NO_GLOB_SUBST
13779else
13780 case `(set -o) 2>/dev/null` in #(
13781 *posix*) :
13782 set -o posix ;; #(
13783 *) :
13784 ;;
13785esac
13786fi
13787
13788
13789as_nl='
13790'
13791export as_nl
13792# Printing a long string crashes Solaris 7 /usr/bin/printf.
13793as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13796# Prefer a ksh shell builtin over an external printf program on Solaris,
13797# but without wasting forks for bash or zsh.
13798if test -z "$BASH_VERSION$ZSH_VERSION" \
13799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13800 as_echo='print -r --'
13801 as_echo_n='print -rn --'
13802elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13803 as_echo='printf %s\n'
13804 as_echo_n='printf %s'
13805else
13806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13808 as_echo_n='/usr/ucb/echo -n'
13809 else
13810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13811 as_echo_n_body='eval
13812 arg=$1;
13813 case $arg in #(
13814 *"$as_nl"*)
13815 expr "X$arg" : "X\\(.*\\)$as_nl";
13816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13817 esac;
13818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13819 '
13820 export as_echo_n_body
13821 as_echo_n='sh -c $as_echo_n_body as_echo'
13822 fi
13823 export as_echo_body
13824 as_echo='sh -c $as_echo_body as_echo'
13825fi
13826
13827# The user is always right.
13828if test "${PATH_SEPARATOR+set}" != set; then
13829 PATH_SEPARATOR=:
13830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13832 PATH_SEPARATOR=';'
13833 }
13834fi
13835
13836
13837# IFS
13838# We need space, tab and new line, in precisely that order. Quoting is
13839# there to prevent editors from complaining about space-tab.
13840# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13841# splitting by setting IFS to empty value.)
13842IFS=" "" $as_nl"
13843
13844# Find who we are. Look in the path if we contain no directory separator.
13845as_myself=
13846case $0 in #((
13847 *[\\/]* ) as_myself=$0 ;;
13848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849for as_dir in $PATH
13850do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
13853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13854 done
13855IFS=$as_save_IFS
13856
13857 ;;
13858esac
13859# We did not find ourselves, most probably we were run as `sh COMMAND'
13860# in which case we are not to be found in the path.
13861if test "x$as_myself" = x; then
13862 as_myself=$0
13863fi
13864if test ! -f "$as_myself"; then
13865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13866 exit 1
13867fi
13868
13869# Unset variables that we do not need and which cause bugs (e.g. in
13870# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13871# suppresses any "Segmentation fault" message there. '((' could
13872# trigger a bug in pdksh 5.2.14.
13873for as_var in BASH_ENV ENV MAIL MAILPATH
13874do eval test x\${$as_var+set} = xset \
13875 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13876done
13877PS1='$ '
13878PS2='> '
13879PS4='+ '
13880
13881# NLS nuisances.
13882LC_ALL=C
13883export LC_ALL
13884LANGUAGE=C
13885export LANGUAGE
13886
13887# CDPATH.
13888(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13889
13890
13891# as_fn_error STATUS ERROR [LINENO LOG_FD]
13892# ----------------------------------------
13893# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13894# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13895# script with STATUS, using 1 if that was 0.
13896as_fn_error ()
13897{
13898 as_status=$1; test $as_status -eq 0 && as_status=1
13899 if test "$4"; then
13900 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13901 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13902 fi
13903 $as_echo "$as_me: error: $2" >&2
13904 as_fn_exit $as_status
13905} # as_fn_error
13906
13907
13908# as_fn_set_status STATUS
13909# -----------------------
13910# Set $? to STATUS, without forking.
13911as_fn_set_status ()
13912{
13913 return $1
13914} # as_fn_set_status
13915
13916# as_fn_exit STATUS
13917# -----------------
13918# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13919as_fn_exit ()
13920{
13921 set +e
13922 as_fn_set_status $1
13923 exit $1
13924} # as_fn_exit
13925
13926# as_fn_unset VAR
13927# ---------------
13928# Portably unset VAR.
13929as_fn_unset ()
13930{
13931 { eval $1=; unset $1;}
13932}
13933as_unset=as_fn_unset
13934# as_fn_append VAR VALUE
13935# ----------------------
13936# Append the text in VALUE to the end of the definition contained in VAR. Take
13937# advantage of any shell optimizations that allow amortized linear growth over
13938# repeated appends, instead of the typical quadratic growth present in naive
13939# implementations.
13940if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13941 eval 'as_fn_append ()
13942 {
13943 eval $1+=\$2
13944 }'
13945else
13946 as_fn_append ()
13947 {
13948 eval $1=\$$1\$2
13949 }
13950fi # as_fn_append
13951
13952# as_fn_arith ARG...
13953# ------------------
13954# Perform arithmetic evaluation on the ARGs, and store the result in the
13955# global $as_val. Take advantage of shells that can avoid forks. The arguments
13956# must be portable across $(()) and expr.
13957if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13958 eval 'as_fn_arith ()
13959 {
13960 as_val=$(( $* ))
13961 }'
13962else
13963 as_fn_arith ()
13964 {
13965 as_val=`expr "$@" || test $? -eq 1`
13966 }
13967fi # as_fn_arith
13968
13969
13970if expr a : '\(a\)' >/dev/null 2>&1 &&
13971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13972 as_expr=expr
13973else
13974 as_expr=false
13975fi
13976
13977if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13978 as_basename=basename
13979else
13980 as_basename=false
13981fi
13982
13983if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13984 as_dirname=dirname
13985else
13986 as_dirname=false
13987fi
13988
13989as_me=`$as_basename -- "$0" ||
13990$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13991 X"$0" : 'X\(//\)$' \| \
13992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13993$as_echo X/"$0" |
13994 sed '/^.*\/\([^/][^/]*\)\/*$/{
13995 s//\1/
13996 q
13997 }
13998 /^X\/\(\/\/\)$/{
13999 s//\1/
14000 q
14001 }
14002 /^X\/\(\/\).*/{
14003 s//\1/
14004 q
14005 }
14006 s/.*/./; q'`
14007
14008# Avoid depending upon Character Ranges.
14009as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14010as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14011as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14012as_cr_digits='0123456789'
14013as_cr_alnum=$as_cr_Letters$as_cr_digits
14014
14015ECHO_C= ECHO_N= ECHO_T=
14016case `echo -n x` in #(((((
14017-n*)
14018 case `echo 'xy\c'` in
14019 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14020 xy) ECHO_C='\c';;
14021 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14022 ECHO_T=' ';;
14023 esac;;
14024*)
14025 ECHO_N='-n';;
14026esac
14027
14028rm -f conf$$ conf$$.exe conf$$.file
14029if test -d conf$$.dir; then
14030 rm -f conf$$.dir/conf$$.file
14031else
14032 rm -f conf$$.dir
14033 mkdir conf$$.dir 2>/dev/null
14034fi
14035if (echo >conf$$.file) 2>/dev/null; then
14036 if ln -s conf$$.file conf$$ 2>/dev/null; then
14037 as_ln_s='ln -s'
14038 # ... but there are two gotchas:
14039 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14040 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14041 # In both cases, we have to default to `cp -pR'.
14042 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14043 as_ln_s='cp -pR'
14044 elif ln conf$$.file conf$$ 2>/dev/null; then
14045 as_ln_s=ln
14046 else
14047 as_ln_s='cp -pR'
14048 fi
14049else
14050 as_ln_s='cp -pR'
14051fi
14052rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14053rmdir conf$$.dir 2>/dev/null
14054
14055
14056# as_fn_mkdir_p
14057# -------------
14058# Create "$as_dir" as a directory, including parents if necessary.
14059as_fn_mkdir_p ()
14060{
14061
14062 case $as_dir in #(
14063 -*) as_dir=./$as_dir;;
14064 esac
14065 test -d "$as_dir" || eval $as_mkdir_p || {
14066 as_dirs=
14067 while :; do
14068 case $as_dir in #(
14069 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14070 *) as_qdir=$as_dir;;
14071 esac
14072 as_dirs="'$as_qdir' $as_dirs"
14073 as_dir=`$as_dirname -- "$as_dir" ||
14074$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$as_dir" : 'X\(//\)[^/]' \| \
14076 X"$as_dir" : 'X\(//\)$' \| \
14077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14078$as_echo X"$as_dir" |
14079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)[^/].*/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\/\)$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\).*/{
14092 s//\1/
14093 q
14094 }
14095 s/.*/./; q'`
14096 test -d "$as_dir" && break
14097 done
14098 test -z "$as_dirs" || eval "mkdir $as_dirs"
14099 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14100
14101
14102} # as_fn_mkdir_p
14103if mkdir -p . 2>/dev/null; then
14104 as_mkdir_p='mkdir -p "$as_dir"'
14105else
14106 test -d ./-p && rmdir ./-p
14107 as_mkdir_p=false
14108fi
14109
14110
14111# as_fn_executable_p FILE
14112# -----------------------
14113# Test if FILE is an executable regular file.
14114as_fn_executable_p ()
14115{
14116 test -f "$1" && test -x "$1"
14117} # as_fn_executable_p
14118as_test_x='test -x'
14119as_executable_p=as_fn_executable_p
14120
14121# Sed expression to map a string onto a valid CPP name.
14122as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14123
14124# Sed expression to map a string onto a valid variable name.
14125as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14126
14127
14128exec 6>&1
14129## ----------------------------------- ##
14130## Main body of $CONFIG_STATUS script. ##
14131## ----------------------------------- ##
14132_ASEOF
14133test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14134
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136# Save the log message, to keep $0 and so on meaningful, and to
14137# report actual input values of CONFIG_FILES etc. instead of their
14138# values after options handling.
14139ac_log="
14140This file was extended by rfc822lib $as_me 0.13, which was
14141generated by GNU Autoconf 2.69. Invocation command line was
14142
14143 CONFIG_FILES = $CONFIG_FILES
14144 CONFIG_HEADERS = $CONFIG_HEADERS
14145 CONFIG_LINKS = $CONFIG_LINKS
14146 CONFIG_COMMANDS = $CONFIG_COMMANDS
14147 $ $0 $@
14148
14149on `(hostname || uname -n) 2>/dev/null | sed 1q`
14150"
14151
14152_ACEOF
14153
14154case $ac_config_files in *"
14155"*) set x $ac_config_files; shift; ac_config_files=$*;;
14156esac
14157
14158case $ac_config_headers in *"
14159"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14160esac
14161
14162
14163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164# Files that config.status was made for.
14165config_files="$ac_config_files"
14166config_headers="$ac_config_headers"
14167config_commands="$ac_config_commands"
14168
14169_ACEOF
14170
14171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14172ac_cs_usage="\
14173\`$as_me' instantiates files and other configuration actions
14174from templates according to the current configuration. Unless the files
14175and actions are specified as TAGs, all are instantiated by default.
14176
14177Usage: $0 [OPTION]... [TAG]...
14178
14179 -h, --help print this help, then exit
14180 -V, --version print version number and configuration settings, then exit
14181 --config print configuration, then exit
14182 -q, --quiet, --silent
14183 do not print progress messages
14184 -d, --debug don't remove temporary files
14185 --recheck update $as_me by reconfiguring in the same conditions
14186 --file=FILE[:TEMPLATE]
14187 instantiate the configuration file FILE
14188 --header=FILE[:TEMPLATE]
14189 instantiate the configuration header FILE
14190
14191Configuration files:
14192$config_files
14193
14194Configuration headers:
14195$config_headers
14196
14197Configuration commands:
14198$config_commands
14199
14200Report bugs to <courier-users@lists.sourceforge.net>."
14201
14202_ACEOF
14203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14205ac_cs_version="\\
14206rfc822lib config.status 0.13
14207configured by $0, generated by GNU Autoconf 2.69,
14208 with options \\"\$ac_cs_config\\"
14209
14210Copyright (C) 2012 Free Software Foundation, Inc.
14211This config.status script is free software; the Free Software Foundation
14212gives unlimited permission to copy, distribute and modify it."
14213
14214ac_pwd='$ac_pwd'
14215srcdir='$srcdir'
14216INSTALL='$INSTALL'
14217MKDIR_P='$MKDIR_P'
14218AWK='$AWK'
14219test -n "\$AWK" || AWK=awk
14220_ACEOF
14221
14222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14223# The default lists apply if the user does not specify any file.
14224ac_need_defaults=:
14225while test $# != 0
14226do
14227 case $1 in
14228 --*=?*)
14229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14231 ac_shift=:
14232 ;;
14233 --*=)
14234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14235 ac_optarg=
14236 ac_shift=:
14237 ;;
14238 *)
14239 ac_option=$1
14240 ac_optarg=$2
14241 ac_shift=shift
14242 ;;
14243 esac
14244
14245 case $ac_option in
14246 # Handling of the options.
14247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14248 ac_cs_recheck=: ;;
14249 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14250 $as_echo "$ac_cs_version"; exit ;;
14251 --config | --confi | --conf | --con | --co | --c )
14252 $as_echo "$ac_cs_config"; exit ;;
14253 --debug | --debu | --deb | --de | --d | -d )
14254 debug=: ;;
14255 --file | --fil | --fi | --f )
14256 $ac_shift
14257 case $ac_optarg in
14258 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14259 '') as_fn_error $? "missing file argument" ;;
14260 esac
14261 as_fn_append CONFIG_FILES " '$ac_optarg'"
14262 ac_need_defaults=false;;
14263 --header | --heade | --head | --hea )
14264 $ac_shift
14265 case $ac_optarg in
14266 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14267 esac
14268 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14269 ac_need_defaults=false;;
14270 --he | --h)
14271 # Conflict between --help and --header
14272 as_fn_error $? "ambiguous option: \`$1'
14273Try \`$0 --help' for more information.";;
14274 --help | --hel | -h )
14275 $as_echo "$ac_cs_usage"; exit ;;
14276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14278 ac_cs_silent=: ;;
14279
14280 # This is an error.
14281 -*) as_fn_error $? "unrecognized option: \`$1'
14282Try \`$0 --help' for more information." ;;
14283
14284 *) as_fn_append ac_config_targets " $1"
14285 ac_need_defaults=false ;;
14286
14287 esac
14288 shift
14289done
14290
14291ac_configure_extra_args=
14292
14293if $ac_cs_silent; then
14294 exec 6>/dev/null
14295 ac_configure_extra_args="$ac_configure_extra_args --silent"
14296fi
14297
14298_ACEOF
14299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300if \$ac_cs_recheck; then
14301 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14302 shift
14303 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14304 CONFIG_SHELL='$SHELL'
14305 export CONFIG_SHELL
14306 exec "\$@"
14307fi
14308
14309_ACEOF
14310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311exec 5>>config.log
14312{
14313 echo
14314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14315## Running $as_me. ##
14316_ASBOX
14317 $as_echo "$ac_log"
14318} >&5
14319
14320_ACEOF
14321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14322#
14323# INIT-COMMANDS
14324#
14325AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14326
14327
14328# The HP-UX ksh and POSIX shell print the target directory to stdout
14329# if CDPATH is set.
14330(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14331
14332sed_quote_subst='$sed_quote_subst'
14333double_quote_subst='$double_quote_subst'
14334delay_variable_subst='$delay_variable_subst'
14335macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14336macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14337enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14338enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14339pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14340enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14341shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14342SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14343ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14344PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14345host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14346host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14347host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14348build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14349build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14350build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14351SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14352Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14353GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14354EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14355FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14356LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14357NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14358LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14359max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14360ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14361exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14362lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14363lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14364lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14365lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14366lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14367reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14368reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14369OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14370deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14371file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14372file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14373want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14374DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14375sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14376AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14377AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14378archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14379STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14380RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14381old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14382old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14383old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14384lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14385CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14386CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14387compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14388GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14389lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14390lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14391lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14392lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14393lt_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"`'
14394lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14395nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14396lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14397lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14398objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14399MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14400lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14401lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14402lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14403lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14404lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14405need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14406MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14407DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14408NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14409LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14410OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14411OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14412libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14413shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14414extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14415archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14416enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14417export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14418whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14419compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14420old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14421old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14422archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14423archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14424module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14425module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14426with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14427allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14428no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14429hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14430hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14431hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14432hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14433hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14434hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14435hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14436inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14437link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14438always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14439export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14440exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14441include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14442prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14443postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14444file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14445variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14446need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14447need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14448version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14449runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14450shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14451shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14452libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14453library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14454soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14455install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14456postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14457postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14458finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14459finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14460hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14461sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14462configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14463configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14464hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14465enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14466enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14467enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14468old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14469striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14470
14471LTCC='$LTCC'
14472LTCFLAGS='$LTCFLAGS'
14473compiler='$compiler_DEFAULT'
14474
14475# A function that is used when there is no print builtin or printf.
14476func_fallback_echo ()
14477{
14478 eval 'cat <<_LTECHO_EOF
14479\$1
14480_LTECHO_EOF'
14481}
14482
14483# Quote evaled strings.
14484for var in SHELL \
14485ECHO \
14486PATH_SEPARATOR \
14487SED \
14488GREP \
14489EGREP \
14490FGREP \
14491LD \
14492NM \
14493LN_S \
14494lt_SP2NL \
14495lt_NL2SP \
14496reload_flag \
14497OBJDUMP \
14498deplibs_check_method \
14499file_magic_cmd \
14500file_magic_glob \
14501want_nocaseglob \
14502DLLTOOL \
14503sharedlib_from_linklib_cmd \
14504AR \
14505AR_FLAGS \
14506archiver_list_spec \
14507STRIP \
14508RANLIB \
14509CC \
14510CFLAGS \
14511compiler \
14512lt_cv_sys_global_symbol_pipe \
14513lt_cv_sys_global_symbol_to_cdecl \
14514lt_cv_sys_global_symbol_to_import \
14515lt_cv_sys_global_symbol_to_c_name_address \
14516lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14517lt_cv_nm_interface \
14518nm_file_list_spec \
14519lt_cv_truncate_bin \
14520lt_prog_compiler_no_builtin_flag \
14521lt_prog_compiler_pic \
14522lt_prog_compiler_wl \
14523lt_prog_compiler_static \
14524lt_cv_prog_compiler_c_o \
14525need_locks \
14526MANIFEST_TOOL \
14527DSYMUTIL \
14528NMEDIT \
14529LIPO \
14530OTOOL \
14531OTOOL64 \
14532shrext_cmds \
14533export_dynamic_flag_spec \
14534whole_archive_flag_spec \
14535compiler_needs_object \
14536with_gnu_ld \
14537allow_undefined_flag \
14538no_undefined_flag \
14539hardcode_libdir_flag_spec \
14540hardcode_libdir_separator \
14541exclude_expsyms \
14542include_expsyms \
14543file_list_spec \
14544variables_saved_for_relink \
14545libname_spec \
14546library_names_spec \
14547soname_spec \
14548install_override_mode \
14549finish_eval \
14550old_striplib \
14551striplib; do
14552 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14553 *[\\\\\\\`\\"\\\$]*)
14554 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14555 ;;
14556 *)
14557 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14558 ;;
14559 esac
14560done
14561
14562# Double-quote double-evaled strings.
14563for var in reload_cmds \
14564old_postinstall_cmds \
14565old_postuninstall_cmds \
14566old_archive_cmds \
14567extract_expsyms_cmds \
14568old_archive_from_new_cmds \
14569old_archive_from_expsyms_cmds \
14570archive_cmds \
14571archive_expsym_cmds \
14572module_cmds \
14573module_expsym_cmds \
14574export_symbols_cmds \
14575prelink_cmds \
14576postlink_cmds \
14577postinstall_cmds \
14578postuninstall_cmds \
14579finish_cmds \
14580sys_lib_search_path_spec \
14581configure_time_dlsearch_path \
14582configure_time_lt_sys_library_path; do
14583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14584 *[\\\\\\\`\\"\\\$]*)
14585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14586 ;;
14587 *)
14588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14589 ;;
14590 esac
14591done
14592
14593ac_aux_dir='$ac_aux_dir'
14594
14595# See if we are running on zsh, and set the options that allow our
14596# commands through without removal of \ escapes INIT.
14597if test -n "\${ZSH_VERSION+set}"; then
14598 setopt NO_GLOB_SUBST
14599fi
14600
14601
14602 PACKAGE='$PACKAGE'
14603 VERSION='$VERSION'
14604 RM='$RM'
14605 ofile='$ofile'
14606
14607
14608
14609
14610_ACEOF
14611
14612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14613
14614# Handling of arguments.
14615for ac_config_target in $ac_config_targets
14616do
14617 case $ac_config_target in
14618 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14622
14623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14624 esac
14625done
14626
14627
14628# If the user did not use the arguments to specify the items to instantiate,
14629# then the envvar interface is used. Set only those that are not.
14630# We use the long form for the default assignment because of an extremely
14631# bizarre bug on SunOS 4.1.3.
14632if $ac_need_defaults; then
14633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14636fi
14637
14638# Have a temporary directory for convenience. Make it in the build tree
14639# simply because there is no reason against having it here, and in addition,
14640# creating and moving files from /tmp can sometimes cause problems.
14641# Hook for its removal unless debugging.
14642# Note that there is a small window in which the directory will not be cleaned:
14643# after its creation but before its name has been assigned to `$tmp'.
14644$debug ||
14645{
14646 tmp= ac_tmp=
14647 trap 'exit_status=$?
14648 : "${ac_tmp:=$tmp}"
14649 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14650' 0
14651 trap 'as_fn_exit 1' 1 2 13 15
14652}
14653# Create a (secure) tmp directory for tmp files.
14654
14655{
14656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14657 test -d "$tmp"
14658} ||
14659{
14660 tmp=./conf$$-$RANDOM
14661 (umask 077 && mkdir "$tmp")
14662} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14663ac_tmp=$tmp
14664
14665# Set up the scripts for CONFIG_FILES section.
14666# No need to generate them if there are no CONFIG_FILES.
14667# This happens for instance with `./config.status config.h'.
14668if test -n "$CONFIG_FILES"; then
14669
14670
14671ac_cr=`echo X | tr X '\015'`
14672# On cygwin, bash can eat \r inside `` if the user requested igncr.
14673# But we know of no other shell where ac_cr would be empty at this
14674# point, so we can use a bashism as a fallback.
14675if test "x$ac_cr" = x; then
14676 eval ac_cr=\$\'\\r\'
14677fi
14678ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14679if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14680 ac_cs_awk_cr='\\r'
14681else
14682 ac_cs_awk_cr=$ac_cr
14683fi
14684
14685echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14686_ACEOF
14687
14688
14689{
14690 echo "cat >conf$$subs.awk <<_ACEOF" &&
14691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14692 echo "_ACEOF"
14693} >conf$$subs.sh ||
14694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14695ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14696ac_delim='%!_!# '
14697for ac_last_try in false false false false false :; do
14698 . ./conf$$subs.sh ||
14699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14700
14701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14702 if test $ac_delim_n = $ac_delim_num; then
14703 break
14704 elif $ac_last_try; then
14705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14706 else
14707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708 fi
14709done
14710rm -f conf$$subs.sh
14711
14712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14713cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14714_ACEOF
14715sed -n '
14716h
14717s/^/S["/; s/!.*/"]=/
14718p
14719g
14720s/^[^!]*!//
14721:repl
14722t repl
14723s/'"$ac_delim"'$//
14724t delim
14725:nl
14726h
14727s/\(.\{148\}\)..*/\1/
14728t more1
14729s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14730p
14731n
14732b repl
14733:more1
14734s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14735p
14736g
14737s/.\{148\}//
14738t nl
14739:delim
14740h
14741s/\(.\{148\}\)..*/\1/
14742t more2
14743s/["\\]/\\&/g; s/^/"/; s/$/"/
14744p
14745b
14746:more2
14747s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14748p
14749g
14750s/.\{148\}//
14751t delim
14752' <conf$$subs.awk | sed '
14753/^[^""]/{
14754 N
14755 s/\n//
14756}
14757' >>$CONFIG_STATUS || ac_write_fail=1
14758rm -f conf$$subs.awk
14759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14760_ACAWK
14761cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14762 for (key in S) S_is_set[key] = 1
14763 FS = "\a"
14764
14765}
14766{
14767 line = $ 0
14768 nfields = split(line, field, "@")
14769 substed = 0
14770 len = length(field[1])
14771 for (i = 2; i < nfields; i++) {
14772 key = field[i]
14773 keylen = length(key)
14774 if (S_is_set[key]) {
14775 value = S[key]
14776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14777 len += length(value) + length(field[++i])
14778 substed = 1
14779 } else
14780 len += 1 + keylen
14781 }
14782
14783 print line
14784}
14785
14786_ACAWK
14787_ACEOF
14788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14789if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14791else
14792 cat
14793fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14794 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14795_ACEOF
14796
14797# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14798# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14799# trailing colons and then remove the whole line if VPATH becomes empty
14800# (actually we leave an empty line to preserve line numbers).
14801if test "x$srcdir" = x.; then
14802 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14803h
14804s///
14805s/^/:/
14806s/[ ]*$/:/
14807s/:\$(srcdir):/:/g
14808s/:\${srcdir}:/:/g
14809s/:@srcdir@:/:/g
14810s/^:*//
14811s/:*$//
14812x
14813s/\(=[ ]*\).*/\1/
14814G
14815s/\n//
14816s/^[^=]*=[ ]*$//
14817}'
14818fi
14819
14820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14821fi # test -n "$CONFIG_FILES"
14822
14823# Set up the scripts for CONFIG_HEADERS section.
14824# No need to generate them if there are no CONFIG_HEADERS.
14825# This happens for instance with `./config.status Makefile'.
14826if test -n "$CONFIG_HEADERS"; then
14827cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14828BEGIN {
14829_ACEOF
14830
14831# Transform confdefs.h into an awk script `defines.awk', embedded as
14832# here-document in config.status, that substitutes the proper values into
14833# config.h.in to produce config.h.
14834
14835# Create a delimiter string that does not exist in confdefs.h, to ease
14836# handling of long lines.
14837ac_delim='%!_!# '
14838for ac_last_try in false false :; do
14839 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14840 if test -z "$ac_tt"; then
14841 break
14842 elif $ac_last_try; then
14843 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14844 else
14845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14846 fi
14847done
14848
14849# For the awk script, D is an array of macro values keyed by name,
14850# likewise P contains macro parameters if any. Preserve backslash
14851# newline sequences.
14852
14853ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14854sed -n '
14855s/.\{148\}/&'"$ac_delim"'/g
14856t rset
14857:rset
14858s/^[ ]*#[ ]*define[ ][ ]*/ /
14859t def
14860d
14861:def
14862s/\\$//
14863t bsnl
14864s/["\\]/\\&/g
14865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14866D["\1"]=" \3"/p
14867s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14868d
14869:bsnl
14870s/["\\]/\\&/g
14871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14872D["\1"]=" \3\\\\\\n"\\/p
14873t cont
14874s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14875t cont
14876d
14877:cont
14878n
14879s/.\{148\}/&'"$ac_delim"'/g
14880t clear
14881:clear
14882s/\\$//
14883t bsnlc
14884s/["\\]/\\&/g; s/^/"/; s/$/"/p
14885d
14886:bsnlc
14887s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14888b cont
14889' <confdefs.h | sed '
14890s/'"$ac_delim"'/"\\\
14891"/g' >>$CONFIG_STATUS || ac_write_fail=1
14892
14893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14894 for (key in D) D_is_set[key] = 1
14895 FS = "\a"
14896}
14897/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14898 line = \$ 0
14899 split(line, arg, " ")
14900 if (arg[1] == "#") {
14901 defundef = arg[2]
14902 mac1 = arg[3]
14903 } else {
14904 defundef = substr(arg[1], 2)
14905 mac1 = arg[2]
14906 }
14907 split(mac1, mac2, "(") #)
14908 macro = mac2[1]
14909 prefix = substr(line, 1, index(line, defundef) - 1)
14910 if (D_is_set[macro]) {
14911 # Preserve the white space surrounding the "#".
14912 print prefix "define", macro P[macro] D[macro]
14913 next
14914 } else {
14915 # Replace #undef with comments. This is necessary, for example,
14916 # in the case of _POSIX_SOURCE, which is predefined and required
14917 # on some systems where configure will not decide to define it.
14918 if (defundef == "undef") {
14919 print "/*", prefix defundef, macro, "*/"
14920 next
14921 }
14922 }
14923}
14924{ print }
14925_ACAWK
14926_ACEOF
14927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14928 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14929fi # test -n "$CONFIG_HEADERS"
14930
14931
14932eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14933shift
14934for ac_tag
14935do
14936 case $ac_tag in
14937 :[FHLC]) ac_mode=$ac_tag; continue;;
14938 esac
14939 case $ac_mode$ac_tag in
14940 :[FHL]*:*);;
14941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14942 :[FH]-) ac_tag=-:-;;
14943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14944 esac
14945 ac_save_IFS=$IFS
14946 IFS=:
14947 set x $ac_tag
14948 IFS=$ac_save_IFS
14949 shift
14950 ac_file=$1
14951 shift
14952
14953 case $ac_mode in
14954 :L) ac_source=$1;;
14955 :[FH])
14956 ac_file_inputs=
14957 for ac_f
14958 do
14959 case $ac_f in
14960 -) ac_f="$ac_tmp/stdin";;
14961 *) # Look for the file first in the build tree, then in the source tree
14962 # (if the path is not absolute). The absolute path cannot be DOS-style,
14963 # because $ac_f cannot contain `:'.
14964 test -f "$ac_f" ||
14965 case $ac_f in
14966 [\\/$]*) false;;
14967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14968 esac ||
14969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14970 esac
14971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14972 as_fn_append ac_file_inputs " '$ac_f'"
14973 done
14974
14975 # Let's still pretend it is `configure' which instantiates (i.e., don't
14976 # use $as_me), people would be surprised to read:
14977 # /* config.h. Generated by config.status. */
14978 configure_input='Generated from '`
14979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14980 `' by configure.'
14981 if test x"$ac_file" != x-; then
14982 configure_input="$ac_file. $configure_input"
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14984$as_echo "$as_me: creating $ac_file" >&6;}
14985 fi
14986 # Neutralize special characters interpreted by sed in replacement strings.
14987 case $configure_input in #(
14988 *\&* | *\|* | *\\* )
14989 ac_sed_conf_input=`$as_echo "$configure_input" |
14990 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14991 *) ac_sed_conf_input=$configure_input;;
14992 esac
14993
14994 case $ac_tag in
14995 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14997 esac
14998 ;;
14999 esac
15000
15001 ac_dir=`$as_dirname -- "$ac_file" ||
15002$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15003 X"$ac_file" : 'X\(//\)[^/]' \| \
15004 X"$ac_file" : 'X\(//\)$' \| \
15005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15006$as_echo X"$ac_file" |
15007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15008 s//\1/
15009 q
15010 }
15011 /^X\(\/\/\)[^/].*/{
15012 s//\1/
15013 q
15014 }
15015 /^X\(\/\/\)$/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\).*/{
15020 s//\1/
15021 q
15022 }
15023 s/.*/./; q'`
15024 as_dir="$ac_dir"; as_fn_mkdir_p
15025 ac_builddir=.
15026
15027case "$ac_dir" in
15028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15029*)
15030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15031 # A ".." for each directory in $ac_dir_suffix.
15032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15033 case $ac_top_builddir_sub in
15034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15036 esac ;;
15037esac
15038ac_abs_top_builddir=$ac_pwd
15039ac_abs_builddir=$ac_pwd$ac_dir_suffix
15040# for backward compatibility:
15041ac_top_builddir=$ac_top_build_prefix
15042
15043case $srcdir in
15044 .) # We are building in place.
15045 ac_srcdir=.
15046 ac_top_srcdir=$ac_top_builddir_sub
15047 ac_abs_top_srcdir=$ac_pwd ;;
15048 [\\/]* | ?:[\\/]* ) # Absolute name.
15049 ac_srcdir=$srcdir$ac_dir_suffix;
15050 ac_top_srcdir=$srcdir
15051 ac_abs_top_srcdir=$srcdir ;;
15052 *) # Relative name.
15053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15054 ac_top_srcdir=$ac_top_build_prefix$srcdir
15055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15056esac
15057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15058
15059
15060 case $ac_mode in
15061 :F)
15062 #
15063 # CONFIG_FILE
15064 #
15065
15066 case $INSTALL in
15067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15069 esac
15070 ac_MKDIR_P=$MKDIR_P
15071 case $MKDIR_P in
15072 [\\/$]* | ?:[\\/]* ) ;;
15073 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15074 esac
15075_ACEOF
15076
15077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15078# If the template does not know about datarootdir, expand it.
15079# FIXME: This hack should be removed a few years after 2.60.
15080ac_datarootdir_hack=; ac_datarootdir_seen=
15081ac_sed_dataroot='
15082/datarootdir/ {
15083 p
15084 q
15085}
15086/@datadir@/p
15087/@docdir@/p
15088/@infodir@/p
15089/@localedir@/p
15090/@mandir@/p'
15091case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15092*datarootdir*) ac_datarootdir_seen=yes;;
15093*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15095$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15096_ACEOF
15097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098 ac_datarootdir_hack='
15099 s&@datadir@&$datadir&g
15100 s&@docdir@&$docdir&g
15101 s&@infodir@&$infodir&g
15102 s&@localedir@&$localedir&g
15103 s&@mandir@&$mandir&g
15104 s&\\\${datarootdir}&$datarootdir&g' ;;
15105esac
15106_ACEOF
15107
15108# Neutralize VPATH when `$srcdir' = `.'.
15109# Shell code in configure.ac might set extrasub.
15110# FIXME: do we really want to maintain this feature?
15111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112ac_sed_extra="$ac_vpsub
15113$extrasub
15114_ACEOF
15115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15116:t
15117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15118s|@configure_input@|$ac_sed_conf_input|;t t
15119s&@top_builddir@&$ac_top_builddir_sub&;t t
15120s&@top_build_prefix@&$ac_top_build_prefix&;t t
15121s&@srcdir@&$ac_srcdir&;t t
15122s&@abs_srcdir@&$ac_abs_srcdir&;t t
15123s&@top_srcdir@&$ac_top_srcdir&;t t
15124s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15125s&@builddir@&$ac_builddir&;t t
15126s&@abs_builddir@&$ac_abs_builddir&;t t
15127s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15128s&@INSTALL@&$ac_INSTALL&;t t
15129s&@MKDIR_P@&$ac_MKDIR_P&;t t
15130$ac_datarootdir_hack
15131"
15132eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15133 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15134
15135test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15136 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15138 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15140which seems to be undefined. Please make sure it is defined" >&5
15141$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15142which seems to be undefined. Please make sure it is defined" >&2;}
15143
15144 rm -f "$ac_tmp/stdin"
15145 case $ac_file in
15146 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15147 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15148 esac \
15149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15150 ;;
15151 :H)
15152 #
15153 # CONFIG_HEADER
15154 #
15155 if test x"$ac_file" != x-; then
15156 {
15157 $as_echo "/* $configure_input */" \
15158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15159 } >"$ac_tmp/config.h" \
15160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15161 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15163$as_echo "$as_me: $ac_file is unchanged" >&6;}
15164 else
15165 rm -f "$ac_file"
15166 mv "$ac_tmp/config.h" "$ac_file" \
15167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15168 fi
15169 else
15170 $as_echo "/* $configure_input */" \
15171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15172 || as_fn_error $? "could not create -" "$LINENO" 5
15173 fi
15174# Compute "$ac_file"'s index in $config_headers.
15175_am_arg="$ac_file"
15176_am_stamp_count=1
15177for _am_header in $config_headers :; do
15178 case $_am_header in
15179 $_am_arg | $_am_arg:* )
15180 break ;;
15181 * )
15182 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15183 esac
15184done
15185echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15186$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15187 X"$_am_arg" : 'X\(//\)[^/]' \| \
15188 X"$_am_arg" : 'X\(//\)$' \| \
15189 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15190$as_echo X"$_am_arg" |
15191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15192 s//\1/
15193 q
15194 }
15195 /^X\(\/\/\)[^/].*/{
15196 s//\1/
15197 q
15198 }
15199 /^X\(\/\/\)$/{
15200 s//\1/
15201 q
15202 }
15203 /^X\(\/\).*/{
15204 s//\1/
15205 q
15206 }
15207 s/.*/./; q'`/stamp-h$_am_stamp_count
15208 ;;
15209
15210 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15211$as_echo "$as_me: executing $ac_file commands" >&6;}
15212 ;;
15213 esac
15214
15215
15216 case $ac_file$ac_mode in
15217 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15218 # Older Autoconf quotes --file arguments for eval, but not when files
15219 # are listed without --file. Let's play safe and only enable the eval
15220 # if we detect the quoting.
15221 case $CONFIG_FILES in
15222 *\'*) eval set x "$CONFIG_FILES" ;;
15223 *) set x $CONFIG_FILES ;;
15224 esac
15225 shift
15226 for mf
15227 do
15228 # Strip MF so we end up with the name of the file.
15229 mf=`echo "$mf" | sed -e 's/:.*$//'`
15230 # Check whether this is an Automake generated Makefile or not.
15231 # We used to match only the files named 'Makefile.in', but
15232 # some people rename them; so instead we look at the file content.
15233 # Grep'ing the first line is not enough: some people post-process
15234 # each Makefile.in and add a new line on top of each file to say so.
15235 # Grep'ing the whole file is not good either: AIX grep has a line
15236 # limit of 2048, but all sed's we know have understand at least 4000.
15237 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15238 dirpart=`$as_dirname -- "$mf" ||
15239$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15240 X"$mf" : 'X\(//\)[^/]' \| \
15241 X"$mf" : 'X\(//\)$' \| \
15242 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15243$as_echo X"$mf" |
15244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\/\)[^/].*/{
15249 s//\1/
15250 q
15251 }
15252 /^X\(\/\/\)$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\(\/\).*/{
15257 s//\1/
15258 q
15259 }
15260 s/.*/./; q'`
15261 else
15262 continue
15263 fi
15264 # Extract the definition of DEPDIR, am__include, and am__quote
15265 # from the Makefile without running 'make'.
15266 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15267 test -z "$DEPDIR" && continue
15268 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15269 test -z "$am__include" && continue
15270 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15271 # Find all dependency output files, they are included files with
15272 # $(DEPDIR) in their names. We invoke sed twice because it is the
15273 # simplest approach to changing $(DEPDIR) to its actual value in the
15274 # expansion.
15275 for file in `sed -n "
15276 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15277 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15278 # Make sure the directory exists.
15279 test -f "$dirpart/$file" && continue
15280 fdir=`$as_dirname -- "$file" ||
15281$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15282 X"$file" : 'X\(//\)[^/]' \| \
15283 X"$file" : 'X\(//\)$' \| \
15284 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15285$as_echo X"$file" |
15286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15287 s//\1/
15288 q
15289 }
15290 /^X\(\/\/\)[^/].*/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\/\)$/{
15295 s//\1/
15296 q
15297 }
15298 /^X\(\/\).*/{
15299 s//\1/
15300 q
15301 }
15302 s/.*/./; q'`
15303 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15304 # echo "creating $dirpart/$file"
15305 echo '# dummy' > "$dirpart/$file"
15306 done
15307 done
15308}
15309 ;;
15310 "libtool":C)
15311
15312 # See if we are running on zsh, and set the options that allow our
15313 # commands through without removal of \ escapes.
15314 if test -n "${ZSH_VERSION+set}"; then
15315 setopt NO_GLOB_SUBST
15316 fi
15317
15318 cfgfile=${ofile}T
15319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15320 $RM "$cfgfile"
15321
15322 cat <<_LT_EOF >> "$cfgfile"
15323#! $SHELL
15324# Generated automatically by $as_me ($PACKAGE) $VERSION
15325# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15326# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15327
15328# Provide generalized library-building support services.
15329# Written by Gordon Matzigkeit, 1996
15330
15331# Copyright (C) 2014 Free Software Foundation, Inc.
15332# This is free software; see the source for copying conditions. There is NO
15333# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15334
15335# GNU Libtool is free software; you can redistribute it and/or modify
15336# it under the terms of the GNU General Public License as published by
15337# the Free Software Foundation; either version 2 of of the License, or
15338# (at your option) any later version.
15339#
15340# As a special exception to the GNU General Public License, if you
15341# distribute this file as part of a program or library that is built
15342# using GNU Libtool, you may include this file under the same
15343# distribution terms that you use for the rest of that program.
15344#
15345# GNU Libtool is distributed in the hope that it will be useful, but
15346# WITHOUT ANY WARRANTY; without even the implied warranty of
15347# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15348# GNU General Public License for more details.
15349#
15350# You should have received a copy of the GNU General Public License
15351# along with this program. If not, see <http://www.gnu.org/licenses/>.
15352
15353
15354# The names of the tagged configurations supported by this script.
15355available_tags=''
15356
15357# Configured defaults for sys_lib_dlsearch_path munging.
15358: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15359
15360# ### BEGIN LIBTOOL CONFIG
15361
15362# Which release of libtool.m4 was used?
15363macro_version=$macro_version
15364macro_revision=$macro_revision
15365
15366# Whether or not to build shared libraries.
15367build_libtool_libs=$enable_shared
15368
15369# Whether or not to build static libraries.
15370build_old_libs=$enable_static
15371
15372# What type of objects to build.
15373pic_mode=$pic_mode
15374
15375# Whether or not to optimize for fast installation.
15376fast_install=$enable_fast_install
15377
15378# Shared archive member basename,for filename based shared library versioning on AIX.
15379shared_archive_member_spec=$shared_archive_member_spec
15380
15381# Shell to use when invoking shell scripts.
15382SHELL=$lt_SHELL
15383
15384# An echo program that protects backslashes.
15385ECHO=$lt_ECHO
15386
15387# The PATH separator for the build system.
15388PATH_SEPARATOR=$lt_PATH_SEPARATOR
15389
15390# The host system.
15391host_alias=$host_alias
15392host=$host
15393host_os=$host_os
15394
15395# The build system.
15396build_alias=$build_alias
15397build=$build
15398build_os=$build_os
15399
15400# A sed program that does not truncate output.
15401SED=$lt_SED
15402
15403# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15404Xsed="\$SED -e 1s/^X//"
15405
15406# A grep program that handles long lines.
15407GREP=$lt_GREP
15408
15409# An ERE matcher.
15410EGREP=$lt_EGREP
15411
15412# A literal string matcher.
15413FGREP=$lt_FGREP
15414
15415# A BSD- or MS-compatible name lister.
15416NM=$lt_NM
15417
15418# Whether we need soft or hard links.
15419LN_S=$lt_LN_S
15420
15421# What is the maximum length of a command?
15422max_cmd_len=$max_cmd_len
15423
15424# Object file suffix (normally "o").
15425objext=$ac_objext
15426
15427# Executable file suffix (normally "").
15428exeext=$exeext
15429
15430# whether the shell understands "unset".
15431lt_unset=$lt_unset
15432
15433# turn spaces into newlines.
15434SP2NL=$lt_lt_SP2NL
15435
15436# turn newlines into spaces.
15437NL2SP=$lt_lt_NL2SP
15438
15439# convert \$build file names to \$host format.
15440to_host_file_cmd=$lt_cv_to_host_file_cmd
15441
15442# convert \$build files to toolchain format.
15443to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15444
15445# An object symbol dumper.
15446OBJDUMP=$lt_OBJDUMP
15447
15448# Method to check whether dependent libraries are shared objects.
15449deplibs_check_method=$lt_deplibs_check_method
15450
15451# Command to use when deplibs_check_method = "file_magic".
15452file_magic_cmd=$lt_file_magic_cmd
15453
15454# How to find potential files when deplibs_check_method = "file_magic".
15455file_magic_glob=$lt_file_magic_glob
15456
15457# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15458want_nocaseglob=$lt_want_nocaseglob
15459
15460# DLL creation program.
15461DLLTOOL=$lt_DLLTOOL
15462
15463# Command to associate shared and link libraries.
15464sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15465
15466# The archiver.
15467AR=$lt_AR
15468
15469# Flags to create an archive.
15470AR_FLAGS=$lt_AR_FLAGS
15471
15472# How to feed a file listing to the archiver.
15473archiver_list_spec=$lt_archiver_list_spec
15474
15475# A symbol stripping program.
15476STRIP=$lt_STRIP
15477
15478# Commands used to install an old-style archive.
15479RANLIB=$lt_RANLIB
15480old_postinstall_cmds=$lt_old_postinstall_cmds
15481old_postuninstall_cmds=$lt_old_postuninstall_cmds
15482
15483# Whether to use a lock for old archive extraction.
15484lock_old_archive_extraction=$lock_old_archive_extraction
15485
15486# A C compiler.
15487LTCC=$lt_CC
15488
15489# LTCC compiler flags.
15490LTCFLAGS=$lt_CFLAGS
15491
15492# Take the output of nm and produce a listing of raw symbols and C names.
15493global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15494
15495# Transform the output of nm in a proper C declaration.
15496global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15497
15498# Transform the output of nm into a list of symbols to manually relocate.
15499global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15500
15501# Transform the output of nm in a C name address pair.
15502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15503
15504# Transform the output of nm in a C name address pair when lib prefix is needed.
15505global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15506
15507# The name lister interface.
15508nm_interface=$lt_lt_cv_nm_interface
15509
15510# Specify filename containing input files for \$NM.
15511nm_file_list_spec=$lt_nm_file_list_spec
15512
15513# The root where to search for dependent libraries,and where our libraries should be installed.
15514lt_sysroot=$lt_sysroot
15515
15516# Command to truncate a binary pipe.
15517lt_truncate_bin=$lt_lt_cv_truncate_bin
15518
15519# The name of the directory that contains temporary libtool files.
15520objdir=$objdir
15521
15522# Used to examine libraries when file_magic_cmd begins with "file".
15523MAGIC_CMD=$MAGIC_CMD
15524
15525# Must we lock files when doing compilation?
15526need_locks=$lt_need_locks
15527
15528# Manifest tool.
15529MANIFEST_TOOL=$lt_MANIFEST_TOOL
15530
15531# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15532DSYMUTIL=$lt_DSYMUTIL
15533
15534# Tool to change global to local symbols on Mac OS X.
15535NMEDIT=$lt_NMEDIT
15536
15537# Tool to manipulate fat objects and archives on Mac OS X.
15538LIPO=$lt_LIPO
15539
15540# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15541OTOOL=$lt_OTOOL
15542
15543# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15544OTOOL64=$lt_OTOOL64
15545
15546# Old archive suffix (normally "a").
15547libext=$libext
15548
15549# Shared library suffix (normally ".so").
15550shrext_cmds=$lt_shrext_cmds
15551
15552# The commands to extract the exported symbol list from a shared archive.
15553extract_expsyms_cmds=$lt_extract_expsyms_cmds
15554
15555# Variables whose values should be saved in libtool wrapper scripts and
15556# restored at link time.
15557variables_saved_for_relink=$lt_variables_saved_for_relink
15558
15559# Do we need the "lib" prefix for modules?
15560need_lib_prefix=$need_lib_prefix
15561
15562# Do we need a version for libraries?
15563need_version=$need_version
15564
15565# Library versioning type.
15566version_type=$version_type
15567
15568# Shared library runtime path variable.
15569runpath_var=$runpath_var
15570
15571# Shared library path variable.
15572shlibpath_var=$shlibpath_var
15573
15574# Is shlibpath searched before the hard-coded library search path?
15575shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15576
15577# Format of library name prefix.
15578libname_spec=$lt_libname_spec
15579
15580# List of archive names. First name is the real one, the rest are links.
15581# The last name is the one that the linker finds with -lNAME
15582library_names_spec=$lt_library_names_spec
15583
15584# The coded name of the library, if different from the real name.
15585soname_spec=$lt_soname_spec
15586
15587# Permission mode override for installation of shared libraries.
15588install_override_mode=$lt_install_override_mode
15589
15590# Command to use after installation of a shared archive.
15591postinstall_cmds=$lt_postinstall_cmds
15592
15593# Command to use after uninstallation of a shared archive.
15594postuninstall_cmds=$lt_postuninstall_cmds
15595
15596# Commands used to finish a libtool library installation in a directory.
15597finish_cmds=$lt_finish_cmds
15598
15599# As "finish_cmds", except a single script fragment to be evaled but
15600# not shown.
15601finish_eval=$lt_finish_eval
15602
15603# Whether we should hardcode library paths into libraries.
15604hardcode_into_libs=$hardcode_into_libs
15605
15606# Compile-time system search path for libraries.
15607sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15608
15609# Detected run-time system search path for libraries.
15610sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15611
15612# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15613configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15614
15615# Whether dlopen is supported.
15616dlopen_support=$enable_dlopen
15617
15618# Whether dlopen of programs is supported.
15619dlopen_self=$enable_dlopen_self
15620
15621# Whether dlopen of statically linked programs is supported.
15622dlopen_self_static=$enable_dlopen_self_static
15623
15624# Commands to strip libraries.
15625old_striplib=$lt_old_striplib
15626striplib=$lt_striplib
15627
15628
15629# The linker used to build libraries.
15630LD=$lt_LD
15631
15632# How to create reloadable object files.
15633reload_flag=$lt_reload_flag
15634reload_cmds=$lt_reload_cmds
15635
15636# Commands used to build an old-style archive.
15637old_archive_cmds=$lt_old_archive_cmds
15638
15639# A language specific compiler.
15640CC=$lt_compiler
15641
15642# Is the compiler the GNU compiler?
15643with_gcc=$GCC
15644
15645# Compiler flag to turn off builtin functions.
15646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15647
15648# Additional compiler flags for building library objects.
15649pic_flag=$lt_lt_prog_compiler_pic
15650
15651# How to pass a linker flag through the compiler.
15652wl=$lt_lt_prog_compiler_wl
15653
15654# Compiler flag to prevent dynamic linking.
15655link_static_flag=$lt_lt_prog_compiler_static
15656
15657# Does compiler simultaneously support -c and -o options?
15658compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15659
15660# Whether or not to add -lc for building shared libraries.
15661build_libtool_need_lc=$archive_cmds_need_lc
15662
15663# Whether or not to disallow shared libs when runtime libs are static.
15664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15665
15666# Compiler flag to allow reflexive dlopens.
15667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15668
15669# Compiler flag to generate shared objects directly from archives.
15670whole_archive_flag_spec=$lt_whole_archive_flag_spec
15671
15672# Whether the compiler copes with passing no objects directly.
15673compiler_needs_object=$lt_compiler_needs_object
15674
15675# Create an old-style archive from a shared archive.
15676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15677
15678# Create a temporary old-style archive to link instead of a shared archive.
15679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15680
15681# Commands used to build a shared archive.
15682archive_cmds=$lt_archive_cmds
15683archive_expsym_cmds=$lt_archive_expsym_cmds
15684
15685# Commands used to build a loadable module if different from building
15686# a shared archive.
15687module_cmds=$lt_module_cmds
15688module_expsym_cmds=$lt_module_expsym_cmds
15689
15690# Whether we are building with GNU ld or not.
15691with_gnu_ld=$lt_with_gnu_ld
15692
15693# Flag that allows shared libraries with undefined symbols to be built.
15694allow_undefined_flag=$lt_allow_undefined_flag
15695
15696# Flag that enforces no undefined symbols.
15697no_undefined_flag=$lt_no_undefined_flag
15698
15699# Flag to hardcode \$libdir into a binary during linking.
15700# This must work even if \$libdir does not exist
15701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15702
15703# Whether we need a single "-rpath" flag with a separated argument.
15704hardcode_libdir_separator=$lt_hardcode_libdir_separator
15705
15706# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15707# DIR into the resulting binary.
15708hardcode_direct=$hardcode_direct
15709
15710# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15711# DIR into the resulting binary and the resulting library dependency is
15712# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15713# library is relocated.
15714hardcode_direct_absolute=$hardcode_direct_absolute
15715
15716# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15717# into the resulting binary.
15718hardcode_minus_L=$hardcode_minus_L
15719
15720# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15721# into the resulting binary.
15722hardcode_shlibpath_var=$hardcode_shlibpath_var
15723
15724# Set to "yes" if building a shared library automatically hardcodes DIR
15725# into the library and all subsequent libraries and executables linked
15726# against it.
15727hardcode_automatic=$hardcode_automatic
15728
15729# Set to yes if linker adds runtime paths of dependent libraries
15730# to runtime path list.
15731inherit_rpath=$inherit_rpath
15732
15733# Whether libtool must link a program against all its dependency libraries.
15734link_all_deplibs=$link_all_deplibs
15735
15736# Set to "yes" if exported symbols are required.
15737always_export_symbols=$always_export_symbols
15738
15739# The commands to list exported symbols.
15740export_symbols_cmds=$lt_export_symbols_cmds
15741
15742# Symbols that should not be listed in the preloaded symbols.
15743exclude_expsyms=$lt_exclude_expsyms
15744
15745# Symbols that must always be exported.
15746include_expsyms=$lt_include_expsyms
15747
15748# Commands necessary for linking programs (against libraries) with templates.
15749prelink_cmds=$lt_prelink_cmds
15750
15751# Commands necessary for finishing linking programs.
15752postlink_cmds=$lt_postlink_cmds
15753
15754# Specify filename containing input files.
15755file_list_spec=$lt_file_list_spec
15756
15757# How to hardcode a shared library path into an executable.
15758hardcode_action=$hardcode_action
15759
15760# ### END LIBTOOL CONFIG
15761
15762_LT_EOF
15763
15764 cat <<'_LT_EOF' >> "$cfgfile"
15765
15766# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15767
15768# func_munge_path_list VARIABLE PATH
15769# -----------------------------------
15770# VARIABLE is name of variable containing _space_ separated list of
15771# directories to be munged by the contents of PATH, which is string
15772# having a format:
15773# "DIR[:DIR]:"
15774# string "DIR[ DIR]" will be prepended to VARIABLE
15775# ":DIR[:DIR]"
15776# string "DIR[ DIR]" will be appended to VARIABLE
15777# "DIRP[:DIRP]::[DIRA:]DIRA"
15778# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15779# "DIRA[ DIRA]" will be appended to VARIABLE
15780# "DIR[:DIR]"
15781# VARIABLE will be replaced by "DIR[ DIR]"
15782func_munge_path_list ()
15783{
15784 case x$2 in
15785 x)
15786 ;;
15787 *:)
15788 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15789 ;;
15790 x:*)
15791 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15792 ;;
15793 *::*)
15794 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15795 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15796 ;;
15797 *)
15798 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15799 ;;
15800 esac
15801}
15802
15803
15804# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15805func_cc_basename ()
15806{
15807 for cc_temp in $*""; do
15808 case $cc_temp in
15809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15811 \-*) ;;
15812 *) break;;
15813 esac
15814 done
15815 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15816}
15817
15818
15819# ### END FUNCTIONS SHARED WITH CONFIGURE
15820
15821_LT_EOF
15822
15823 case $host_os in
15824 aix3*)
15825 cat <<\_LT_EOF >> "$cfgfile"
15826# AIX sometimes has problems with the GCC collect2 program. For some
15827# reason, if we set the COLLECT_NAMES environment variable, the problems
15828# vanish in a puff of smoke.
15829if test set != "${COLLECT_NAMES+set}"; then
15830 COLLECT_NAMES=
15831 export COLLECT_NAMES
15832fi
15833_LT_EOF
15834 ;;
15835 esac
15836
15837
15838ltmain=$ac_aux_dir/ltmain.sh
15839
15840
15841 # We use sed instead of cat because bash on DJGPP gets confused if
15842 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15843 # text mode, it properly converts lines to CR/LF. This bash problem
15844 # is reportedly fixed, but why not run on old versions too?
15845 sed '$q' "$ltmain" >> "$cfgfile" \
15846 || (rm -f "$cfgfile"; exit 1)
15847
15848 mv -f "$cfgfile" "$ofile" ||
15849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15850 chmod +x "$ofile"
15851
15852 ;;
15853
15854 esac
15855done # for ac_tag
15856
15857
15858as_fn_exit 0
15859_ACEOF
15860ac_clean_files=$ac_clean_files_save
15861
15862test $ac_write_fail = 0 ||
15863 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15864
15865
15866# configure is writing to config.log, and then calls config.status.
15867# config.status does its own redirection, appending to config.log.
15868# Unfortunately, on DOS this fails, as config.log is still kept open
15869# by configure, so config.status won't be able to write to it; its
15870# output is simply discarded. So we exec the FD to /dev/null,
15871# effectively closing config.log, so it can be properly (re)opened and
15872# appended to by config.status. When coming back to configure, we
15873# need to make the FD available again.
15874if test "$no_create" != yes; then
15875 ac_cs_success=:
15876 ac_config_status_args=
15877 test "$silent" = yes &&
15878 ac_config_status_args="$ac_config_status_args --quiet"
15879 exec 5>/dev/null
15880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15881 exec 5>>config.log
15882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15883 # would make configure fail if this is the last instruction.
15884 $ac_cs_success || as_fn_exit 1
15885fi
15886if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15888$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15889fi
15890