blob: 2cca180222edcecbf8544ecb550871f79bc7c0aa [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ucommon 6.0.7.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='ucommon'
589PACKAGE_TARNAME='ucommon'
590PACKAGE_VERSION='6.0.7'
591PACKAGE_STRING='ucommon 6.0.7'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="inc/ucommon/ucommon.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636LT_GENERIC
637LT_VERSION
638COMPAT
639SECURE
640SECURE_LIBS
641SECURE_LOCAL
642UCOMMON_LIBS
643UCOMMON_LIBC
644UCOMMON_CLINK
645UCOMMON_FLAGS
646UCOMMON_MODEL
647UCOMMON_LINKED
648UCOMMON_VISIBILITY
649CHECKFLAGS
650DOXYGEN
651UCOMMON_PREFIX
652UCOMMON_VARPATH
653UCOMMON_CFGPATH
654UCOMMON_LOCALE
655UCOMMON_INCLUDES
656GNUTLS_LIBS
657GNUTLS_CFLAGS
658OPENSSL_LIBS
659OPENSSL_CFLAGS
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663libs
664includes
665AM_BACKSLASH
666AM_DEFAULT_VERBOSITY
667AM_DEFAULT_V
668AM_V
669am__fastdepCXX_FALSE
670am__fastdepCXX_TRUE
671CXXDEPMODE
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682am__untar
683am__tar
684AMTAR
685am__leading_dot
686SET_MAKE
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709AWK
710RANLIB
711STRIP
712ac_ct_AR
713AR
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720EGREP
721GREP
722SED
723LIBTOOL
724OBJDUMP
725DLLTOOL
726AS
727CXXCPP
728ac_ct_CXX
729CXXFLAGS
730CXX
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739target_os
740target_vendor
741target_cpu
742target
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_shared
793enable_static
794with_pic
795enable_fast_install
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_dependency_tracking
800enable_silent_rules
801enable_posix_timers
802enable_stdcpp
803with_sslstack
804with_libc
805enable_debug
806enable_socks
807enable_atomics
808enable_pth
809with_pkg_config
810'
811 ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820CXX
821CXXFLAGS
822CCC
823CXXCPP
824PKG_CONFIG
825PKG_CONFIG_PATH
826PKG_CONFIG_LIBDIR
827OPENSSL_CFLAGS
828OPENSSL_LIBS
829GNUTLS_CFLAGS
830GNUTLS_LIBS'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
880
881ac_prev=
882ac_dashdash=
883for ac_option
884do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239done
1240
1241if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244fi
1245
1246if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252fi
1253
1254# Check all directory arguments for consistency.
1255for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
1296
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
1363
1364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371\`configure' configures ucommon 6.0.7 to adapt to many kinds of systems.
1372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ucommon]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424_ACEOF
1425
1426 cat <<\_ACEOF
1427
1428Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of ucommon 6.0.7:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-static[=PKGS] build static libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-posix-timers enable posix timers
1462 --disable-stdcpp compile without stdc++ runtime overhead
1463 --enable-debug compile for debugging
1464 --enable-socks compile with socks proxy support
1465
1466 --enable-atomics enable gcc atomic support
1467
1468 --enable-pth always use GNU pth for threading
1469
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot=DIR Search for dependent libraries within DIR
1478 (or the compiler's sysroot if not specified).
1479 --with-sslstack=lib specify which ssl stack to build
1480 --with-libc=path specify path to alternate libc
1481 --with-pkg-config enable support for pkg-config
1482
1483Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 OPENSSL_CFLAGS
1501 C compiler flags for OPENSSL, overriding pkg-config
1502 OPENSSL_LIBS
1503 linker flags for OPENSSL, overriding pkg-config
1504 GNUTLS_CFLAGS
1505 C compiler flags for GNUTLS, overriding pkg-config
1506 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to the package provider.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
1522 ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1564 else
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1568 done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573 cat <<\_ACEOF
1574ucommon configure 6.0.7
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581 exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_c_try_compile LINENO
1589# --------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_compile ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624} # ac_fn_c_try_compile
1625
1626# ac_fn_c_try_cpp LINENO
1627# ----------------------
1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_cpp ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_cpp
1662
1663# ac_fn_cxx_try_compile LINENO
1664# ----------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_cxx_try_compile ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_cxx_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_cxx_try_compile
1700
1701# ac_fn_cxx_try_cpp LINENO
1702# ------------------------
1703# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_cxx_try_cpp ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736} # ac_fn_cxx_try_cpp
1737
1738# ac_fn_c_try_link LINENO
1739# -----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 test -x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_link
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803else
1804 eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911else
1912 eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_cxx_try_link LINENO
1925# -------------------------
1926# Try to link conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_link ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1944 fi
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_cxx_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 test -x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954else
1955 $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958 ac_retval=1
1959fi
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968} # ac_fn_cxx_try_link
1969
1970# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971# -------------------------------------------------------
1972# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973# the include files in INCLUDES and setting the cache variable VAR
1974# accordingly.
1975ac_fn_c_check_header_mongrel ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if eval \${$3+:} false; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987else
1988 # Is the header compilable?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990$as_echo_n "checking $2 usability... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993$4
1994#include <$2>
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1998else
1999 ac_header_compiler=no
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003$as_echo "$ac_header_compiler" >&6; }
2004
2005# Is the header present?
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007$as_echo_n "checking $2 presence... " >&6; }
2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010#include <$2>
2011_ACEOF
2012if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2014else
2015 ac_header_preproc=no
2016fi
2017rm -f conftest.err conftest.i conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019$as_echo "$ac_header_preproc" >&6; }
2020
2021# So? What about this header?
2022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 yes:no: )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ;;
2029 no:yes:* )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 ;;
2041esac
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
2044if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046else
2047 eval "$3=\$ac_header_compiler"
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052fi
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055} # ac_fn_c_check_header_mongrel
2056
2057# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2058# ---------------------------------------------------------
2059# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060# the include files in INCLUDES and setting the cache variable VAR
2061# accordingly.
2062ac_fn_cxx_check_header_mongrel ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if eval \${$3+:} false; then :
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070fi
2071eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074else
2075 # Is the header compilable?
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077$as_echo_n "checking $2 usability... " >&6; }
2078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081#include <$2>
2082_ACEOF
2083if ac_fn_cxx_try_compile "$LINENO"; then :
2084 ac_header_compiler=yes
2085else
2086 ac_header_compiler=no
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090$as_echo "$ac_header_compiler" >&6; }
2091
2092# Is the header present?
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094$as_echo_n "checking $2 presence... " >&6; }
2095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h. */
2097#include <$2>
2098_ACEOF
2099if ac_fn_cxx_try_cpp "$LINENO"; then :
2100 ac_header_preproc=yes
2101else
2102 ac_header_preproc=no
2103fi
2104rm -f conftest.err conftest.i conftest.$ac_ext
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106$as_echo "$ac_header_preproc" >&6; }
2107
2108# So? What about this header?
2109case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2110 yes:no: )
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 ;;
2116 no:yes:* )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2120$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2124$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ;;
2128esac
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2133else
2134 eval "$3=\$ac_header_compiler"
2135fi
2136eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139fi
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} # ac_fn_cxx_check_header_mongrel
2143cat >config.log <<_ACEOF
2144This file contains any messages produced by compilers while
2145running configure, to aid debugging if configure makes a mistake.
2146
2147It was created by ucommon $as_me 6.0.7, which was
2148generated by GNU Autoconf 2.69. Invocation command line was
2149
2150 $ $0 $@
2151
2152_ACEOF
2153exec 5>>config.log
2154{
2155cat <<_ASUNAME
2156## --------- ##
2157## Platform. ##
2158## --------- ##
2159
2160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2161uname -m = `(uname -m) 2>/dev/null || echo unknown`
2162uname -r = `(uname -r) 2>/dev/null || echo unknown`
2163uname -s = `(uname -s) 2>/dev/null || echo unknown`
2164uname -v = `(uname -v) 2>/dev/null || echo unknown`
2165
2166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2168
2169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2172/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2176
2177_ASUNAME
2178
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 $as_echo "PATH: $as_dir"
2185 done
2186IFS=$as_save_IFS
2187
2188} >&5
2189
2190cat >&5 <<_ACEOF
2191
2192
2193## ----------- ##
2194## Core tests. ##
2195## ----------- ##
2196
2197_ACEOF
2198
2199
2200# Keep a trace of the command line.
2201# Strip out --no-create and --no-recursion so they do not pile up.
2202# Strip out --silent because we don't want to record it for future runs.
2203# Also quote any args containing shell meta-characters.
2204# Make two passes to allow for proper duplicate-argument suppression.
2205ac_configure_args=
2206ac_configure_args0=
2207ac_configure_args1=
2208ac_must_keep_next=false
2209for ac_pass in 1 2
2210do
2211 for ac_arg
2212 do
2213 case $ac_arg in
2214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2216 | -silent | --silent | --silen | --sile | --sil)
2217 continue ;;
2218 *\'*)
2219 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2220 esac
2221 case $ac_pass in
2222 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2223 2)
2224 as_fn_append ac_configure_args1 " '$ac_arg'"
2225 if test $ac_must_keep_next = true; then
2226 ac_must_keep_next=false # Got value, back to normal.
2227 else
2228 case $ac_arg in
2229 *=* | --config-cache | -C | -disable-* | --disable-* \
2230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2232 | -with-* | --with-* | -without-* | --without-* | --x)
2233 case "$ac_configure_args0 " in
2234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235 esac
2236 ;;
2237 -* ) ac_must_keep_next=true ;;
2238 esac
2239 fi
2240 as_fn_append ac_configure_args " '$ac_arg'"
2241 ;;
2242 esac
2243 done
2244done
2245{ ac_configure_args0=; unset ac_configure_args0;}
2246{ ac_configure_args1=; unset ac_configure_args1;}
2247
2248# When interrupted or exit'd, cleanup temporary files, and complete
2249# config.log. We remove comments because anyway the quotes in there
2250# would cause problems or look ugly.
2251# WARNING: Use '\'' to represent an apostrophe within the trap.
2252# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2253trap 'exit_status=$?
2254 # Save into config.log some information that might help in debugging.
2255 {
2256 echo
2257
2258 $as_echo "## ---------------- ##
2259## Cache variables. ##
2260## ---------------- ##"
2261 echo
2262 # The following way of writing the cache mishandles newlines in values,
2263(
2264 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in #(
2267 *${as_nl}*)
2268 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 esac
2272 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2276 esac ;;
2277 esac
2278 done
2279 (set) 2>&1 |
2280 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2282 sed -n \
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 ;; #(
2286 *)
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288 ;;
2289 esac |
2290 sort
2291)
2292 echo
2293
2294 $as_echo "## ----------------- ##
2295## Output variables. ##
2296## ----------------- ##"
2297 echo
2298 for ac_var in $ac_subst_vars
2299 do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2307
2308 if test -n "$ac_subst_files"; then
2309 $as_echo "## ------------------- ##
2310## File substitutions. ##
2311## ------------------- ##"
2312 echo
2313 for ac_var in $ac_subst_files
2314 do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2322 fi
2323
2324 if test -s confdefs.h; then
2325 $as_echo "## ----------- ##
2326## confdefs.h. ##
2327## ----------- ##"
2328 echo
2329 cat confdefs.h
2330 echo
2331 fi
2332 test "$ac_signal" != 0 &&
2333 $as_echo "$as_me: caught signal $ac_signal"
2334 $as_echo "$as_me: exit $exit_status"
2335 } >&5
2336 rm -f core *.core core.conftest.* &&
2337 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338 exit $exit_status
2339' 0
2340for ac_signal in 1 2 13 15; do
2341 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342done
2343ac_signal=0
2344
2345# confdefs.h avoids OS command line length limits that DEFS can exceed.
2346rm -f -r conftest* confdefs.h
2347
2348$as_echo "/* confdefs.h */" > confdefs.h
2349
2350# Predefined preprocessor variables.
2351
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_NAME "$PACKAGE_NAME"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_VERSION "$PACKAGE_VERSION"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_STRING "$PACKAGE_STRING"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_URL "$PACKAGE_URL"
2374_ACEOF
2375
2376
2377# Let the site file select an alternate cache file if it wants to.
2378# Prefer an explicitly selected file to automatically selected ones.
2379ac_site_file1=NONE
2380ac_site_file2=NONE
2381if test -n "$CONFIG_SITE"; then
2382 # We do not want a PATH search for config.site.
2383 case $CONFIG_SITE in #((
2384 -*) ac_site_file1=./$CONFIG_SITE;;
2385 */*) ac_site_file1=$CONFIG_SITE;;
2386 *) ac_site_file1=./$CONFIG_SITE;;
2387 esac
2388elif test "x$prefix" != xNONE; then
2389 ac_site_file1=$prefix/share/config.site
2390 ac_site_file2=$prefix/etc/config.site
2391else
2392 ac_site_file1=$ac_default_prefix/share/config.site
2393 ac_site_file2=$ac_default_prefix/etc/config.site
2394fi
2395for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396do
2397 test "x$ac_site_file" = xNONE && continue
2398 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2400$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2401 sed 's/^/| /' "$ac_site_file" >&5
2402 . "$ac_site_file" \
2403 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405as_fn_error $? "failed to load site script $ac_site_file
2406See \`config.log' for more details" "$LINENO" 5; }
2407 fi
2408done
2409
2410if test -r "$cache_file"; then
2411 # Some versions of bash will fail to source /dev/null (special files
2412 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2413 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2415$as_echo "$as_me: loading cache $cache_file" >&6;}
2416 case $cache_file in
2417 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2418 *) . "./$cache_file";;
2419 esac
2420 fi
2421else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2423$as_echo "$as_me: creating cache $cache_file" >&6;}
2424 >$cache_file
2425fi
2426
2427# Check that the precious variables saved in the cache have kept the same
2428# value.
2429ac_cache_corrupted=false
2430for ac_var in $ac_precious_vars; do
2431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432 eval ac_new_set=\$ac_env_${ac_var}_set
2433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434 eval ac_new_val=\$ac_env_${ac_var}_value
2435 case $ac_old_set,$ac_new_set in
2436 set,)
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2440 ,set)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2444 ,);;
2445 *)
2446 if test "x$ac_old_val" != "x$ac_new_val"; then
2447 # differences in whitespace do not lead to failure.
2448 ac_old_val_w=`echo x $ac_old_val`
2449 ac_new_val_w=`echo x $ac_new_val`
2450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453 ac_cache_corrupted=:
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457 eval $ac_var=\$ac_old_val
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2460$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2462$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2463 fi;;
2464 esac
2465 # Pass precious variables to config.status.
2466 if test "$ac_new_set" = set; then
2467 case $ac_new_val in
2468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 *) ac_arg=$ac_var=$ac_new_val ;;
2470 esac
2471 case " $ac_configure_args " in
2472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474 esac
2475 fi
2476done
2477if $ac_cache_corrupted; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483fi
2484## -------------------- ##
2485## Main body of script. ##
2486## -------------------- ##
2487
2488ac_ext=c
2489ac_cpp='$CPP $CPPFLAGS'
2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493
2494
2495
2496
2497LT_VERSION="6:3:0"
2498OPENSSL_REQUIRES="0.9.7"
2499
2500ac_aux_dir=
2501for ac_dir in autoconf "$srcdir"/autoconf; do
2502 if test -f "$ac_dir/install-sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install-sh -c"
2505 break
2506 elif test -f "$ac_dir/install.sh"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/install.sh -c"
2509 break
2510 elif test -f "$ac_dir/shtool"; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/shtool install -c"
2513 break
2514 fi
2515done
2516if test -z "$ac_aux_dir"; then
2517 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2518fi
2519
2520# These three variables are undocumented and unsupported,
2521# and are intended to be withdrawn in a future Autoconf release.
2522# They can cause serious problems if a builder's source tree is in a directory
2523# whose full name contains unusual characters.
2524ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2525ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2526ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2527
2528
2529# Make sure we can run config.sub.
2530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2534$as_echo_n "checking build system type... " >&6; }
2535if ${ac_cv_build+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537else
2538 ac_build_alias=$build_alias
2539test "x$ac_build_alias" = x &&
2540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2541test "x$ac_build_alias" = x &&
2542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2545
2546fi
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2548$as_echo "$ac_cv_build" >&6; }
2549case $ac_cv_build in
2550*-*-*) ;;
2551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2552esac
2553build=$ac_cv_build
2554ac_save_IFS=$IFS; IFS='-'
2555set x $ac_cv_build
2556shift
2557build_cpu=$1
2558build_vendor=$2
2559shift; shift
2560# Remember, the first character of IFS is used to create $*,
2561# except with old shells:
2562build_os=$*
2563IFS=$ac_save_IFS
2564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2565
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2568$as_echo_n "checking host system type... " >&6; }
2569if ${ac_cv_host+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 if test "x$host_alias" = x; then
2573 ac_cv_host=$ac_cv_build
2574else
2575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2577fi
2578
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2581$as_echo "$ac_cv_host" >&6; }
2582case $ac_cv_host in
2583*-*-*) ;;
2584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2585esac
2586host=$ac_cv_host
2587ac_save_IFS=$IFS; IFS='-'
2588set x $ac_cv_host
2589shift
2590host_cpu=$1
2591host_vendor=$2
2592shift; shift
2593# Remember, the first character of IFS is used to create $*,
2594# except with old shells:
2595host_os=$*
2596IFS=$ac_save_IFS
2597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2601$as_echo_n "checking target system type... " >&6; }
2602if ${ac_cv_target+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 if test "x$target_alias" = x; then
2606 ac_cv_target=$ac_cv_host
2607else
2608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2610fi
2611
2612fi
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2614$as_echo "$ac_cv_target" >&6; }
2615case $ac_cv_target in
2616*-*-*) ;;
2617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2618esac
2619target=$ac_cv_target
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_target
2622shift
2623target_cpu=$1
2624target_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628target_os=$*
2629IFS=$ac_save_IFS
2630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2631
2632
2633# The aliases save the names the user supplied, while $host etc.
2634# will get canonicalized.
2635test -n "$target_alias" &&
2636 test "$program_prefix$program_suffix$program_transform_name" = \
2637 NONENONEs,x,x, &&
2638 program_prefix=${target_alias}-
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
2650if ${ac_cv_prog_CC+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667done
2668 done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676$as_echo "$CC" >&6; }
2677else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$ac_cv_prog_CC"; then
2685 ac_ct_CC=$CC
2686 # Extract the first word of "gcc", so it can be a program name with args.
2687set dummy gcc; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_ac_ct_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_ac_ct_CC="gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708 done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716$as_echo "$ac_ct_CC" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
2733else
2734 CC="$ac_cv_prog_CC"
2735fi
2736
2737if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}cc; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761 done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776 fi
2777fi
2778if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780set dummy cc; ac_word=$2
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789 ac_prog_rejected=no
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
2808
2809if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819 fi
2820fi
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826$as_echo "$CC" >&6; }
2827else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833fi
2834if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 for ac_prog in cl.exe
2837 do
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860 done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865CC=$ac_cv_prog_CC
2866if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868$as_echo "$CC" >&6; }
2869else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875 test -n "$CC" && break
2876 done
2877fi
2878if test -z "$CC"; then
2879 ac_ct_CC=$CC
2880 for ac_prog in cl.exe
2881do
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883set dummy $ac_prog; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_ac_ct_CC="$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904 done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912$as_echo "$ac_ct_CC" >&6; }
2913else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919 test -n "$ac_ct_CC" && break
2920done
2921
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926yes:)
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929ac_tool_warned=yes ;;
2930esac
2931 CC=$ac_ct_CC
2932 fi
2933fi
2934
2935fi
2936
2937
2938test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error $? "no acceptable C compiler found in \$PATH
2941See \`config.log' for more details" "$LINENO" 5; }
2942
2943# Provide some information about the compiler.
2944$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945set X $ac_compile
2946ac_compiler=$2
2947for ac_option in --version -v -V -qversion; do
2948 { { ac_try="$ac_compiler $ac_option >&5"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 ac_status=$?
2957 if test -s conftest.err; then
2958 sed '10a\
2959... rest of stderr output deleted ...
2960 10q' conftest.err >conftest.er1
2961 cat conftest.er1 >&5
2962 fi
2963 rm -f conftest.er1 conftest.err
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }
2966done
2967
2968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970
2971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979ac_clean_files_save=$ac_clean_files
2980ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2981# Try to create an executable without -o first, disregard a.out.
2982# It will help us diagnose broken compilers, and finding out an intuition
2983# of exeext.
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2985$as_echo_n "checking whether the C compiler works... " >&6; }
2986ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2987
2988# The possible output files:
2989ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990
2991ac_rmfiles=
2992for ac_file in $ac_files
2993do
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997 esac
2998done
2999rm -f $ac_rmfiles
3000
3001if { { ac_try="$ac_link_default"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link_default") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014# in a Makefile. We should not override ac_cv_exeext if it was cached,
3015# so that the user can short-circuit this test for compilers unknown to
3016# Autoconf.
3017for ac_file in $ac_files ''
3018do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 ;;
3023 [ab].out )
3024 # We found the default executable, but exeext='' is most
3025 # certainly right.
3026 break;;
3027 *.* )
3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 then :; else
3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 fi
3032 # We set ac_cv_exeext here because the later test for it is not
3033 # safe: cross compilers may not add the suffix if given an `-o'
3034 # argument, so we may need to know it at that point already.
3035 # Even if this section looks crufty: it has the advantage of
3036 # actually working.
3037 break;;
3038 * )
3039 break;;
3040 esac
3041done
3042test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044else
3045 ac_file=''
3046fi
3047if test -z "$ac_file"; then :
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
3050$as_echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error 77 "C compiler cannot create executables
3056See \`config.log' for more details" "$LINENO" 5; }
3057else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059$as_echo "yes" >&6; }
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3062$as_echo_n "checking for C compiler default output file name... " >&6; }
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3064$as_echo "$ac_file" >&6; }
3065ac_exeext=$ac_cv_exeext
3066
3067rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3068ac_clean_files=$ac_clean_files_save
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3070$as_echo_n "checking for suffix of executables... " >&6; }
3071if { { ac_try="$ac_link"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084# work properly (i.e., refer to `conftest.exe'), while it won't with
3085# `rm'.
3086for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094done
3095else
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3099See \`config.log' for more details" "$LINENO" 5; }
3100fi
3101rm -f conftest conftest$ac_cv_exeext
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3103$as_echo "$ac_cv_exeext" >&6; }
3104
3105rm -f conftest.$ac_ext
3106EXEEXT=$ac_cv_exeext
3107ac_exeext=$EXEEXT
3108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110#include <stdio.h>
3111int
3112main ()
3113{
3114FILE *f = fopen ("conftest.out", "w");
3115 return ferror (f) || fclose (f) != 0;
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121ac_clean_files="$ac_clean_files conftest.out"
3122# Check that the compiler produces executables we can run. If not, either
3123# the compiler is broken, or we cross compile.
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125$as_echo_n "checking whether we are cross compiling... " >&6; }
3126if test "$cross_compiling" != yes; then
3127 { { ac_try="$ac_link"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133$as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }
3138 if { ac_try='./conftest$ac_cv_exeext'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156as_fn_error $? "cannot run C compiled programs.
3157If you meant to cross compile, use \`--host'.
3158See \`config.log' for more details" "$LINENO" 5; }
3159 fi
3160 fi
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3163$as_echo "$cross_compiling" >&6; }
3164
3165rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3166ac_clean_files=$ac_clean_files_save
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3168$as_echo_n "checking for suffix of object files... " >&6; }
3169if ${ac_cv_objext+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171else
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.o conftest.obj
3184if { { ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compile") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 for ac_file in conftest.o conftest.obj conftest.*; do
3196 test -f "$ac_file" || continue;
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200 break;;
3201 esac
3202done
3203else
3204 $as_echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209as_fn_error $? "cannot compute suffix of object files: cannot compile
3210See \`config.log' for more details" "$LINENO" 5; }
3211fi
3212rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3215$as_echo "$ac_cv_objext" >&6; }
3216OBJEXT=$ac_cv_objext
3217ac_objext=$OBJEXT
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3219$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3220if ${ac_cv_c_compiler_gnu+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229#ifndef __GNUC__
3230 choke me
3231#endif
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_compiler_gnu=yes
3239else
3240 ac_compiler_gnu=no
3241fi
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3247$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3248if test $ac_compiler_gnu = yes; then
3249 GCC=yes
3250else
3251 GCC=
3252fi
3253ac_test_CFLAGS=${CFLAGS+set}
3254ac_save_CFLAGS=$CFLAGS
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3256$as_echo_n "checking whether $CC accepts -g... " >&6; }
3257if ${ac_cv_prog_cc_g+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259else
3260 ac_save_c_werror_flag=$ac_c_werror_flag
3261 ac_c_werror_flag=yes
3262 ac_cv_prog_cc_g=no
3263 CFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_g=yes
3277else
3278 CFLAGS=""
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291
3292else
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3294 CFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_g=yes
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312fi
3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3317$as_echo "$ac_cv_prog_cc_g" >&6; }
3318if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3322 CFLAGS="-g -O2"
3323 else
3324 CFLAGS="-g"
3325 fi
3326else
3327 if test "$GCC" = yes; then
3328 CFLAGS="-O2"
3329 else
3330 CFLAGS=
3331 fi
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3334$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3335if ${ac_cv_prog_cc_c89+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337else
3338 ac_cv_prog_cc_c89=no
3339ac_save_CC=$CC
3340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342#include <stdarg.h>
3343#include <stdio.h>
3344struct stat;
3345/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346struct buf { int x; };
3347FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348static char *e (p, i)
3349 char **p;
3350 int i;
3351{
3352 return p[i];
3353}
3354static char *f (char * (*g) (char **, int), char **p, ...)
3355{
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3362}
3363
3364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372
3373/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375#define FOO(x) 'x'
3376int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377
3378int test (int i, double x);
3379struct s1 {int (*f) (int a);};
3380struct s2 {int (*f) (double a);};
3381int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382int argc;
3383char **argv;
3384int
3385main ()
3386{
3387return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394do
3395 CC="$ac_save_CC $ac_arg"
3396 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_cv_prog_cc_c89=$ac_arg
3398fi
3399rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401done
3402rm -f conftest.$ac_ext
3403CC=$ac_save_CC
3404
3405fi
3406# AC_CACHE_VAL
3407case "x$ac_cv_prog_cc_c89" in
3408 x)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3410$as_echo "none needed" >&6; } ;;
3411 xno)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3413$as_echo "unsupported" >&6; } ;;
3414 *)
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3417$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418esac
3419if test "x$ac_cv_prog_cc_c89" != xno; then :
3420
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3435$as_echo_n "checking how to run the C preprocessor... " >&6; }
3436# On Suns, sometimes $CPP names a directory.
3437if test -n "$CPP" && test -d "$CPP"; then
3438 CPP=
3439fi
3440if test -z "$CPP"; then
3441 if ${ac_cv_prog_CPP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 # Double quotes because CPP needs to be expanded
3445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 do
3447 ac_preproc_ok=false
3448for ac_c_preproc_warn_flag in '' yes
3449do
3450 # Use a header file that comes with gcc, so configuring glibc
3451 # with a fresh cross-compiler works.
3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453 # <limits.h> exists even on freestanding compilers.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h. */
3458#ifdef __STDC__
3459# include <limits.h>
3460#else
3461# include <assert.h>
3462#endif
3463 Syntax error
3464_ACEOF
3465if ac_fn_c_try_cpp "$LINENO"; then :
3466
3467else
3468 # Broken: fails on valid input.
3469continue
3470fi
3471rm -f conftest.err conftest.i conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
3477#include <ac_nonexistent.h>
3478_ACEOF
3479if ac_fn_c_try_cpp "$LINENO"; then :
3480 # Broken: success on invalid input.
3481continue
3482else
3483 # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
3487rm -f conftest.err conftest.i conftest.$ac_ext
3488
3489done
3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491rm -f conftest.i conftest.err conftest.$ac_ext
3492if $ac_preproc_ok; then :
3493 break
3494fi
3495
3496 done
3497 ac_cv_prog_CPP=$CPP
3498
3499fi
3500 CPP=$ac_cv_prog_CPP
3501else
3502 ac_cv_prog_CPP=$CPP
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3505$as_echo "$CPP" >&6; }
3506ac_preproc_ok=false
3507for ac_c_preproc_warn_flag in '' yes
3508do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517#ifdef __STDC__
3518# include <limits.h>
3519#else
3520# include <assert.h>
3521#endif
3522 Syntax error
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
3525
3526else
3527 # Broken: fails on valid input.
3528continue
3529fi
3530rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h. */
3536#include <ac_nonexistent.h>
3537_ACEOF
3538if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540continue
3541else
3542 # Passes both tests.
3543ac_preproc_ok=:
3544break
3545fi
3546rm -f conftest.err conftest.i conftest.$ac_ext
3547
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.i conftest.err conftest.$ac_ext
3551if $ac_preproc_ok; then :
3552
3553else
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3557See \`config.log' for more details" "$LINENO" 5; }
3558fi
3559
3560ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573set dummy ${ac_tool_prefix}gcc; ac_word=$2
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581else
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593done
3594 done
3595IFS=$as_save_IFS
3596
3597fi
3598fi
3599CC=$ac_cv_prog_CC
3600if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
3603else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
3606fi
3607
3608
3609fi
3610if test -z "$ac_cv_prog_CC"; then
3611 ac_ct_CC=$CC
3612 # Extract the first word of "gcc", so it can be a program name with args.
3613set dummy gcc; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if ${ac_cv_prog_ac_ct_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618else
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633done
3634 done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642$as_echo "$ac_ct_CC" >&6; }
3643else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
3646fi
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652yes:)
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655ac_tool_warned=yes ;;
3656esac
3657 CC=$ac_ct_CC
3658 fi
3659else
3660 CC="$ac_cv_prog_CC"
3661fi
3662
3663if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666set dummy ${ac_tool_prefix}cc; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if ${ac_cv_prog_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="${ac_tool_prefix}cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695$as_echo "$CC" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702 fi
3703fi
3704if test -z "$CC"; then
3705 # Extract the first word of "cc", so it can be a program name with args.
3706set dummy cc; ac_word=$2
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708$as_echo_n "checking for $ac_word... " >&6; }
3709if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714else
3715 ac_prog_rejected=no
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3724 ac_prog_rejected=yes
3725 continue
3726 fi
3727 ac_cv_prog_CC="cc"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731done
3732 done
3733IFS=$as_save_IFS
3734
3735if test $ac_prog_rejected = yes; then
3736 # We found a bogon in the path, so make sure we never use it.
3737 set dummy $ac_cv_prog_CC
3738 shift
3739 if test $# != 0; then
3740 # We chose a different compiler from the bogus one.
3741 # However, it has the same basename, so the bogon will be chosen
3742 # first if we set CC to just the basename; use the full file name.
3743 shift
3744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3745 fi
3746fi
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
3753else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759fi
3760if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 for ac_prog in cl.exe
3763 do
3764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767$as_echo_n "checking for $ac_word... " >&6; }
3768if ${ac_cv_prog_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770else
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3773else
3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785done
3786 done
3787IFS=$as_save_IFS
3788
3789fi
3790fi
3791CC=$ac_cv_prog_CC
3792if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794$as_echo "$CC" >&6; }
3795else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798fi
3799
3800
3801 test -n "$CC" && break
3802 done
3803fi
3804if test -z "$CC"; then
3805 ac_ct_CC=$CC
3806 for ac_prog in cl.exe
3807do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_ac_ct_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829done
3830 done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836if test -n "$ac_ct_CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838$as_echo "$ac_ct_CC" >&6; }
3839else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842fi
3843
3844
3845 test -n "$ac_ct_CC" && break
3846done
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852yes:)
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855ac_tool_warned=yes ;;
3856esac
3857 CC=$ac_ct_CC
3858 fi
3859fi
3860
3861fi
3862
3863
3864test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error $? "no acceptable C compiler found in \$PATH
3867See \`config.log' for more details" "$LINENO" 5; }
3868
3869# Provide some information about the compiler.
3870$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3871set X $ac_compile
3872ac_compiler=$2
3873for ac_option in --version -v -V -qversion; do
3874 { { ac_try="$ac_compiler $ac_option >&5"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882 ac_status=$?
3883 if test -s conftest.err; then
3884 sed '10a\
3885... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
3888 fi
3889 rm -f conftest.er1 conftest.err
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892done
3893
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3895$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3896if ${ac_cv_c_compiler_gnu+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898else
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h. */
3901
3902int
3903main ()
3904{
3905#ifndef __GNUC__
3906 choke me
3907#endif
3908
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_compiler_gnu=yes
3915else
3916 ac_compiler_gnu=no
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919ac_cv_c_compiler_gnu=$ac_compiler_gnu
3920
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3923$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3924if test $ac_compiler_gnu = yes; then
3925 GCC=yes
3926else
3927 GCC=
3928fi
3929ac_test_CFLAGS=${CFLAGS+set}
3930ac_save_CFLAGS=$CFLAGS
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3932$as_echo_n "checking whether $CC accepts -g... " >&6; }
3933if ${ac_cv_prog_cc_g+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 ac_save_c_werror_flag=$ac_c_werror_flag
3937 ac_c_werror_flag=yes
3938 ac_cv_prog_cc_g=no
3939 CFLAGS="-g"
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h. */
3942
3943int
3944main ()
3945{
3946
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_cv_prog_cc_g=yes
3953else
3954 CFLAGS=""
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957
3958int
3959main ()
3960{
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967
3968else
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970 CFLAGS="-g"
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h. */
3973
3974int
3975main ()
3976{
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_g=yes
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_c_werror_flag=$ac_save_c_werror_flag
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3993$as_echo "$ac_cv_prog_cc_g" >&6; }
3994if test "$ac_test_CFLAGS" = set; then
3995 CFLAGS=$ac_save_CFLAGS
3996elif test $ac_cv_prog_cc_g = yes; then
3997 if test "$GCC" = yes; then
3998 CFLAGS="-g -O2"
3999 else
4000 CFLAGS="-g"
4001 fi
4002else
4003 if test "$GCC" = yes; then
4004 CFLAGS="-O2"
4005 else
4006 CFLAGS=
4007 fi
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4010$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4011if ${ac_cv_prog_cc_c89+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 ac_cv_prog_cc_c89=no
4015ac_save_CC=$CC
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <stdarg.h>
4019#include <stdio.h>
4020struct stat;
4021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4022struct buf { int x; };
4023FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024static char *e (p, i)
4025 char **p;
4026 int i;
4027{
4028 return p[i];
4029}
4030static char *f (char * (*g) (char **, int), char **p, ...)
4031{
4032 char *s;
4033 va_list v;
4034 va_start (v,p);
4035 s = g (p, va_arg (v,int));
4036 va_end (v);
4037 return s;
4038}
4039
4040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4041 function prototypes and stuff, but not '\xHH' hex character constants.
4042 These don't provoke an error unfortunately, instead are silently treated
4043 as 'x'. The following induces an error, until -std is added to get
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4045 array size at least. It's necessary to write '\x00'==0 to get something
4046 that's true only with -std. */
4047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050 inside strings and character constants. */
4051#define FOO(x) 'x'
4052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054int test (int i, double x);
4055struct s1 {int (*f) (int a);};
4056struct s2 {int (*f) (double a);};
4057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058int argc;
4059char **argv;
4060int
4061main ()
4062{
4063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070do
4071 CC="$ac_save_CC $ac_arg"
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_prog_cc_c89=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076 test "x$ac_cv_prog_cc_c89" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080
4081fi
4082# AC_CACHE_VAL
4083case "x$ac_cv_prog_cc_c89" in
4084 x)
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086$as_echo "none needed" >&6; } ;;
4087 xno)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089$as_echo "unsupported" >&6; } ;;
4090 *)
4091 CC="$CC $ac_cv_prog_cc_c89"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4094esac
4095if test "x$ac_cv_prog_cc_c89" != xno; then :
4096
4097fi
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105ac_ext=cpp
4106ac_cpp='$CXXCPP $CPPFLAGS'
4107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4110if test -z "$CXX"; then
4111 if test -n "$CCC"; then
4112 CXX=$CCC
4113 else
4114 if test -n "$ac_tool_prefix"; then
4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4116 do
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if ${ac_cv_prog_CXX+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123else
4124 if test -n "$CXX"; then
4125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
4139 done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144CXX=$ac_cv_prog_CXX
4145if test -n "$CXX"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4147$as_echo "$CXX" >&6; }
4148else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152
4153
4154 test -n "$CXX" && break
4155 done
4156fi
4157if test -z "$CXX"; then
4158 ac_ct_CXX=$CXX
4159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4160do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162set dummy $ac_prog; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 if test -n "$ac_ct_CXX"; then
4169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CXX="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189if test -n "$ac_ct_CXX"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191$as_echo "$ac_ct_CXX" >&6; }
4192else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
4197
4198 test -n "$ac_ct_CXX" && break
4199done
4200
4201 if test "x$ac_ct_CXX" = x; then
4202 CXX="g++"
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205yes:)
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208ac_tool_warned=yes ;;
4209esac
4210 CXX=$ac_ct_CXX
4211 fi
4212fi
4213
4214 fi
4215fi
4216# Provide some information about the compiler.
4217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4218set X $ac_compile
4219ac_compiler=$2
4220for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229 ac_status=$?
4230 if test -s conftest.err; then
4231 sed '10a\
4232... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4235 fi
4236 rm -f conftest.er1 conftest.err
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4239done
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4242$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4243if ${ac_cv_cxx_compiler_gnu+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h. */
4248
4249int
4250main ()
4251{
4252#ifndef __GNUC__
4253 choke me
4254#endif
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
4260if ac_fn_cxx_try_compile "$LINENO"; then :
4261 ac_compiler_gnu=yes
4262else
4263 ac_compiler_gnu=no
4264fi
4265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4267
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4270$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4271if test $ac_compiler_gnu = yes; then
4272 GXX=yes
4273else
4274 GXX=
4275fi
4276ac_test_CXXFLAGS=${CXXFLAGS+set}
4277ac_save_CXXFLAGS=$CXXFLAGS
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4279$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4280if ${ac_cv_prog_cxx_g+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282else
4283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4284 ac_cxx_werror_flag=yes
4285 ac_cv_prog_cxx_g=no
4286 CXXFLAGS="-g"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_cxx_try_compile "$LINENO"; then :
4299 ac_cv_prog_cxx_g=yes
4300else
4301 CXXFLAGS=""
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h. */
4304
4305int
4306main ()
4307{
4308
4309 ;
4310 return 0;
4311}
4312_ACEOF
4313if ac_fn_cxx_try_compile "$LINENO"; then :
4314
4315else
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 CXXFLAGS="-g"
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h. */
4320
4321int
4322main ()
4323{
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329if ac_fn_cxx_try_compile "$LINENO"; then :
4330 ac_cv_prog_cxx_g=yes
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4340$as_echo "$ac_cv_prog_cxx_g" >&6; }
4341if test "$ac_test_CXXFLAGS" = set; then
4342 CXXFLAGS=$ac_save_CXXFLAGS
4343elif test $ac_cv_prog_cxx_g = yes; then
4344 if test "$GXX" = yes; then
4345 CXXFLAGS="-g -O2"
4346 else
4347 CXXFLAGS="-g"
4348 fi
4349else
4350 if test "$GXX" = yes; then
4351 CXXFLAGS="-O2"
4352 else
4353 CXXFLAGS=
4354 fi
4355fi
4356ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362ac_ext=cpp
4363ac_cpp='$CXXCPP $CPPFLAGS'
4364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4368$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4369if test -z "$CXXCPP"; then
4370 if ${ac_cv_prog_CXXCPP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 # Double quotes because CXXCPP needs to be expanded
4374 for CXXCPP in "$CXX -E" "/lib/cpp"
4375 do
4376 ac_preproc_ok=false
4377for ac_cxx_preproc_warn_flag in '' yes
4378do
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h. */
4387#ifdef __STDC__
4388# include <limits.h>
4389#else
4390# include <assert.h>
4391#endif
4392 Syntax error
4393_ACEOF
4394if ac_fn_cxx_try_cpp "$LINENO"; then :
4395
4396else
4397 # Broken: fails on valid input.
4398continue
4399fi
4400rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402 # OK, works on sane cases. Now check whether nonexistent headers
4403 # can be detected and how.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406#include <ac_nonexistent.h>
4407_ACEOF
4408if ac_fn_cxx_try_cpp "$LINENO"; then :
4409 # Broken: success on invalid input.
4410continue
4411else
4412 # Passes both tests.
4413ac_preproc_ok=:
4414break
4415fi
4416rm -f conftest.err conftest.i conftest.$ac_ext
4417
4418done
4419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420rm -f conftest.i conftest.err conftest.$ac_ext
4421if $ac_preproc_ok; then :
4422 break
4423fi
4424
4425 done
4426 ac_cv_prog_CXXCPP=$CXXCPP
4427
4428fi
4429 CXXCPP=$ac_cv_prog_CXXCPP
4430else
4431 ac_cv_prog_CXXCPP=$CXXCPP
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4434$as_echo "$CXXCPP" >&6; }
4435ac_preproc_ok=false
4436for ac_cxx_preproc_warn_flag in '' yes
4437do
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h. */
4446#ifdef __STDC__
4447# include <limits.h>
4448#else
4449# include <assert.h>
4450#endif
4451 Syntax error
4452_ACEOF
4453if ac_fn_cxx_try_cpp "$LINENO"; then :
4454
4455else
4456 # Broken: fails on valid input.
4457continue
4458fi
4459rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h. */
4465#include <ac_nonexistent.h>
4466_ACEOF
4467if ac_fn_cxx_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4469continue
4470else
4471 # Passes both tests.
4472ac_preproc_ok=:
4473break
4474fi
4475rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477done
4478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479rm -f conftest.i conftest.err conftest.$ac_ext
4480if $ac_preproc_ok; then :
4481
4482else
4483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4486See \`config.log' for more details" "$LINENO" 5; }
4487fi
4488
4489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495ac_ext=cpp
4496ac_cpp='$CXXCPP $CPPFLAGS'
4497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500if test -z "$CXX"; then
4501 if test -n "$CCC"; then
4502 CXX=$CCC
4503 else
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_prog_CXX+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 if test -n "$CXX"; then
4515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528done
4529 done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534CXX=$ac_cv_prog_CXX
4535if test -n "$CXX"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4537$as_echo "$CXX" >&6; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544 test -n "$CXX" && break
4545 done
4546fi
4547if test -z "$CXX"; then
4548 ac_ct_CXX=$CXX
4549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4550do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552set dummy $ac_prog; ac_word=$2
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$ac_ct_CXX"; then
4559 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_CXX="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573 done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4579if test -n "$ac_ct_CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4581$as_echo "$ac_ct_CXX" >&6; }
4582else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587
4588 test -n "$ac_ct_CXX" && break
4589done
4590
4591 if test "x$ac_ct_CXX" = x; then
4592 CXX="g++"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595yes:)
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600 CXX=$ac_ct_CXX
4601 fi
4602fi
4603
4604 fi
4605fi
4606# Provide some information about the compiler.
4607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4608set X $ac_compile
4609ac_compiler=$2
4610for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619 ac_status=$?
4620 if test -s conftest.err; then
4621 sed '10a\
4622... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4625 fi
4626 rm -f conftest.er1 conftest.err
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629done
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4632$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4633if ${ac_cv_cxx_compiler_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643 choke me
4644#endif
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
4650if ac_fn_cxx_try_compile "$LINENO"; then :
4651 ac_compiler_gnu=yes
4652else
4653 ac_compiler_gnu=no
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4660$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4661if test $ac_compiler_gnu = yes; then
4662 GXX=yes
4663else
4664 GXX=
4665fi
4666ac_test_CXXFLAGS=${CXXFLAGS+set}
4667ac_save_CXXFLAGS=$CXXFLAGS
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4669$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4670if ${ac_cv_prog_cxx_g+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672else
4673 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4674 ac_cxx_werror_flag=yes
4675 ac_cv_prog_cxx_g=no
4676 CXXFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688if ac_fn_cxx_try_compile "$LINENO"; then :
4689 ac_cv_prog_cxx_g=yes
4690else
4691 CXXFLAGS=""
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h. */
4694
4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_cxx_try_compile "$LINENO"; then :
4704
4705else
4706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 CXXFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h. */
4710
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719if ac_fn_cxx_try_compile "$LINENO"; then :
4720 ac_cv_prog_cxx_g=yes
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723fi
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725fi
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4730$as_echo "$ac_cv_prog_cxx_g" >&6; }
4731if test "$ac_test_CXXFLAGS" = set; then
4732 CXXFLAGS=$ac_save_CXXFLAGS
4733elif test $ac_cv_prog_cxx_g = yes; then
4734 if test "$GXX" = yes; then
4735 CXXFLAGS="-g -O2"
4736 else
4737 CXXFLAGS="-g"
4738 fi
4739else
4740 if test "$GXX" = yes; then
4741 CXXFLAGS="-O2"
4742 else
4743 CXXFLAGS=
4744 fi
4745fi
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752enable_win32_dll=yes
4753
4754case $host in
4755*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4756 if test -n "$ac_tool_prefix"; then
4757 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}as; ac_word=$2
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if ${ac_cv_prog_AS+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 if test -n "$AS"; then
4765 ac_cv_prog_AS="$AS" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_AS="${ac_tool_prefix}as"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778done
4779 done
4780IFS=$as_save_IFS
4781
4782fi
4783fi
4784AS=$ac_cv_prog_AS
4785if test -n "$AS"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4787$as_echo "$AS" >&6; }
4788else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791fi
4792
4793
4794fi
4795if test -z "$ac_cv_prog_AS"; then
4796 ac_ct_AS=$AS
4797 # Extract the first word of "as", so it can be a program name with args.
4798set dummy as; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_ac_ct_AS+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 if test -n "$ac_ct_AS"; then
4805 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_ac_ct_AS="as"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
4819 done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824ac_ct_AS=$ac_cv_prog_ac_ct_AS
4825if test -n "$ac_ct_AS"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4827$as_echo "$ac_ct_AS" >&6; }
4828else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833 if test "x$ac_ct_AS" = x; then
4834 AS="false"
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837yes:)
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840ac_tool_warned=yes ;;
4841esac
4842 AS=$ac_ct_AS
4843 fi
4844else
4845 AS="$ac_cv_prog_AS"
4846fi
4847
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
4853if ${ac_cv_prog_DLLTOOL+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if test -n "$DLLTOOL"; then
4857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871 done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876DLLTOOL=$ac_cv_prog_DLLTOOL
4877if test -n "$DLLTOOL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4879$as_echo "$DLLTOOL" >&6; }
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885
4886fi
4887if test -z "$ac_cv_prog_DLLTOOL"; then
4888 ac_ct_DLLTOOL=$DLLTOOL
4889 # Extract the first word of "dlltool", so it can be a program name with args.
4890set dummy dlltool; ac_word=$2
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892$as_echo_n "checking for $ac_word... " >&6; }
4893if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 if test -n "$ac_ct_DLLTOOL"; then
4897 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911 done
4912IFS=$as_save_IFS
4913
4914fi
4915fi
4916ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4917if test -n "$ac_ct_DLLTOOL"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4919$as_echo "$ac_ct_DLLTOOL" >&6; }
4920else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925 if test "x$ac_ct_DLLTOOL" = x; then
4926 DLLTOOL="false"
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929yes:)
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932ac_tool_warned=yes ;;
4933esac
4934 DLLTOOL=$ac_ct_DLLTOOL
4935 fi
4936else
4937 DLLTOOL="$ac_cv_prog_DLLTOOL"
4938fi
4939
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4942set dummy ${ac_tool_prefix}objdump; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if ${ac_cv_prog_OBJDUMP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 if test -n "$OBJDUMP"; then
4949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963 done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968OBJDUMP=$ac_cv_prog_OBJDUMP
4969if test -n "$OBJDUMP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4971$as_echo "$OBJDUMP" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978fi
4979if test -z "$ac_cv_prog_OBJDUMP"; then
4980 ac_ct_OBJDUMP=$OBJDUMP
4981 # Extract the first word of "objdump", so it can be a program name with args.
4982set dummy objdump; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$ac_ct_OBJDUMP"; then
4989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5009if test -n "$ac_ct_OBJDUMP"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5011$as_echo "$ac_ct_OBJDUMP" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017 if test "x$ac_ct_OBJDUMP" = x; then
5018 OBJDUMP="false"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021yes:)
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024ac_tool_warned=yes ;;
5025esac
5026 OBJDUMP=$ac_ct_OBJDUMP
5027 fi
5028else
5029 OBJDUMP="$ac_cv_prog_OBJDUMP"
5030fi
5031
5032 ;;
5033esac
5034
5035test -z "$AS" && AS=as
5036
5037
5038
5039
5040
5041test -z "$DLLTOOL" && DLLTOOL=dlltool
5042
5043
5044
5045
5046
5047test -z "$OBJDUMP" && OBJDUMP=objdump
5048
5049
5050
5051
5052
5053
5054
5055case `pwd` in
5056 *\ * | *\ *)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5058$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5059esac
5060
5061
5062
5063macro_version='2.4.2'
5064macro_revision='1.3337'
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078ltmain="$ac_aux_dir/ltmain.sh"
5079
5080# Backslashify metacharacters that are still active within
5081# double-quoted strings.
5082sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5083
5084# Same as above, but do not quote variable references.
5085double_quote_subst='s/\(["`\\]\)/\\\1/g'
5086
5087# Sed substitution to delay expansion of an escaped shell variable in a
5088# double_quote_subst'ed string.
5089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5090
5091# Sed substitution to delay expansion of an escaped single quote.
5092delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5093
5094# Sed substitution to avoid accidental globbing in evaled expressions
5095no_glob_subst='s/\*/\\\*/g'
5096
5097ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5098ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5099ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5100
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5102$as_echo_n "checking how to print strings... " >&6; }
5103# Test print first, because it will be a builtin if present.
5104if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5105 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5106 ECHO='print -r --'
5107elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5108 ECHO='printf %s\n'
5109else
5110 # Use this function as a fallback that always works.
5111 func_fallback_echo ()
5112 {
5113 eval 'cat <<_LTECHO_EOF
5114$1
5115_LTECHO_EOF'
5116 }
5117 ECHO='func_fallback_echo'
5118fi
5119
5120# func_echo_all arg...
5121# Invoke $ECHO with all args, space-separated.
5122func_echo_all ()
5123{
5124 $ECHO ""
5125}
5126
5127case "$ECHO" in
5128 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5129$as_echo "printf" >&6; } ;;
5130 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5131$as_echo "print -r" >&6; } ;;
5132 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5133$as_echo "cat" >&6; } ;;
5134esac
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5150$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5151if ${ac_cv_path_SED+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5155 for ac_i in 1 2 3 4 5 6 7; do
5156 ac_script="$ac_script$as_nl$ac_script"
5157 done
5158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5159 { ac_script=; unset ac_script;}
5160 if test -z "$SED"; then
5161 ac_path_SED_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in sed gsed; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_SED" || continue
5172# Check for GNU ac_path_SED and select it if it is found.
5173 # Check for GNU $ac_path_SED
5174case `"$ac_path_SED" --version 2>&1` in
5175*GNU*)
5176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5177*)
5178 ac_count=0
5179 $as_echo_n 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 $as_echo '' >> "conftest.nl"
5186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_SED_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_SED="$ac_path_SED"
5192 ac_path_SED_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198esac
5199
5200 $ac_path_SED_found && break 3
5201 done
5202 done
5203 done
5204IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_SED"; then
5206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5207 fi
5208else
5209 ac_cv_path_SED=$SED
5210fi
5211
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5214$as_echo "$ac_cv_path_SED" >&6; }
5215 SED="$ac_cv_path_SED"
5216 rm -f conftest.sed
5217
5218test -z "$SED" && SED=sed
5219Xsed="$SED -e 1s/^X//"
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5232$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5233if ${ac_cv_path_GREP+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235else
5236 if test -z "$GREP"; then
5237 ac_path_GREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_GREP" || continue
5248# Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250case `"$ac_path_GREP" --version 2>&1` in
5251*GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253*)
5254 ac_count=0
5255 $as_echo_n 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276 $ac_path_GREP_found && break 3
5277 done
5278 done
5279 done
5280IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_GREP"; then
5282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 fi
5284else
5285 ac_cv_path_GREP=$GREP
5286fi
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5290$as_echo "$ac_cv_path_GREP" >&6; }
5291 GREP="$ac_cv_path_GREP"
5292
5293
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5295$as_echo_n "checking for egrep... " >&6; }
5296if ${ac_cv_path_EGREP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5300 then ac_cv_path_EGREP="$GREP -E"
5301 else
5302 if test -z "$EGREP"; then
5303 ac_path_EGREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in egrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_EGREP" || continue
5314# Check for GNU ac_path_EGREP and select it if it is found.
5315 # Check for GNU $ac_path_EGREP
5316case `"$ac_path_EGREP" --version 2>&1` in
5317*GNU*)
5318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5319*)
5320 ac_count=0
5321 $as_echo_n 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'EGREP' >> "conftest.nl"
5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_EGREP="$ac_path_EGREP"
5334 ac_path_EGREP_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340esac
5341
5342 $ac_path_EGREP_found && break 3
5343 done
5344 done
5345 done
5346IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_EGREP"; then
5348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 fi
5350else
5351 ac_cv_path_EGREP=$EGREP
5352fi
5353
5354 fi
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5357$as_echo "$ac_cv_path_EGREP" >&6; }
5358 EGREP="$ac_cv_path_EGREP"
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5362$as_echo_n "checking for fgrep... " >&6; }
5363if ${ac_cv_path_FGREP+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5367 then ac_cv_path_FGREP="$GREP -F"
5368 else
5369 if test -z "$FGREP"; then
5370 ac_path_FGREP_found=false
5371 # Loop through the user's path and test for each of PROGNAME-LIST
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_prog in fgrep; do
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5380 as_fn_executable_p "$ac_path_FGREP" || continue
5381# Check for GNU ac_path_FGREP and select it if it is found.
5382 # Check for GNU $ac_path_FGREP
5383case `"$ac_path_FGREP" --version 2>&1` in
5384*GNU*)
5385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5386*)
5387 ac_count=0
5388 $as_echo_n 0123456789 >"conftest.in"
5389 while :
5390 do
5391 cat "conftest.in" "conftest.in" >"conftest.tmp"
5392 mv "conftest.tmp" "conftest.in"
5393 cp "conftest.in" "conftest.nl"
5394 $as_echo 'FGREP' >> "conftest.nl"
5395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5397 as_fn_arith $ac_count + 1 && ac_count=$as_val
5398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5399 # Best one so far, save it but keep looking for a better one
5400 ac_cv_path_FGREP="$ac_path_FGREP"
5401 ac_path_FGREP_max=$ac_count
5402 fi
5403 # 10*(2^10) chars as input seems more than enough
5404 test $ac_count -gt 10 && break
5405 done
5406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5407esac
5408
5409 $ac_path_FGREP_found && break 3
5410 done
5411 done
5412 done
5413IFS=$as_save_IFS
5414 if test -z "$ac_cv_path_FGREP"; then
5415 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5416 fi
5417else
5418 ac_cv_path_FGREP=$FGREP
5419fi
5420
5421 fi
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5424$as_echo "$ac_cv_path_FGREP" >&6; }
5425 FGREP="$ac_cv_path_FGREP"
5426
5427
5428test -z "$GREP" && GREP=grep
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448# Check whether --with-gnu-ld was given.
5449if test "${with_gnu_ld+set}" = set; then :
5450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5451else
5452 with_gnu_ld=no
5453fi
5454
5455ac_prog=ld
5456if test "$GCC" = yes; then
5457 # Check if gcc -print-prog-name=ld gives a path.
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5459$as_echo_n "checking for ld used by $CC... " >&6; }
5460 case $host in
5461 *-*-mingw*)
5462 # gcc leaves a trailing carriage return which upsets mingw
5463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5464 *)
5465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5466 esac
5467 case $ac_prog in
5468 # Accept absolute paths.
5469 [\\/]* | ?:[\\/]*)
5470 re_direlt='/[^/][^/]*/\.\./'
5471 # Canonicalize the pathname of ld
5472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5475 done
5476 test -z "$LD" && LD="$ac_prog"
5477 ;;
5478 "")
5479 # If it fails, then pretend we aren't using GCC.
5480 ac_prog=ld
5481 ;;
5482 *)
5483 # If it is relative, then search for the first ld in PATH.
5484 with_gnu_ld=unknown
5485 ;;
5486 esac
5487elif test "$with_gnu_ld" = yes; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5489$as_echo_n "checking for GNU ld... " >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5492$as_echo_n "checking for non-GNU ld... " >&6; }
5493fi
5494if ${lt_cv_path_LD+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 if test -z "$LD"; then
5498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5499 for ac_dir in $PATH; do
5500 IFS="$lt_save_ifs"
5501 test -z "$ac_dir" && ac_dir=.
5502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5503 lt_cv_path_LD="$ac_dir/$ac_prog"
5504 # Check to see if the program is GNU ld. I'd rather use --version,
5505 # but apparently some variants of GNU ld only accept -v.
5506 # Break only if it was the GNU/non-GNU ld that we prefer.
5507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 test "$with_gnu_ld" != no && break
5510 ;;
5511 *)
5512 test "$with_gnu_ld" != yes && break
5513 ;;
5514 esac
5515 fi
5516 done
5517 IFS="$lt_save_ifs"
5518else
5519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5520fi
5521fi
5522
5523LD="$lt_cv_path_LD"
5524if test -n "$LD"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5526$as_echo "$LD" >&6; }
5527else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5533$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5534if ${lt_cv_prog_gnu_ld+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5538case `$LD -v 2>&1 </dev/null` in
5539*GNU* | *'with BFD'*)
5540 lt_cv_prog_gnu_ld=yes
5541 ;;
5542*)
5543 lt_cv_prog_gnu_ld=no
5544 ;;
5545esac
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5548$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5549with_gnu_ld=$lt_cv_prog_gnu_ld
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5560$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5561if ${lt_cv_path_NM+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563else
5564 if test -n "$NM"; then
5565 # Let the user override the test.
5566 lt_cv_path_NM="$NM"
5567else
5568 lt_nm_to_check="${ac_tool_prefix}nm"
5569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5570 lt_nm_to_check="$lt_nm_to_check nm"
5571 fi
5572 for lt_tmp_nm in $lt_nm_to_check; do
5573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5575 IFS="$lt_save_ifs"
5576 test -z "$ac_dir" && ac_dir=.
5577 tmp_nm="$ac_dir/$lt_tmp_nm"
5578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5579 # Check to see if the nm accepts a BSD-compat flag.
5580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5581 # nm: unknown option "B" ignored
5582 # Tru64's nm complains that /dev/null is an invalid object file
5583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5584 */dev/null* | *'Invalid file or object type'*)
5585 lt_cv_path_NM="$tmp_nm -B"
5586 break
5587 ;;
5588 *)
5589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5590 */dev/null*)
5591 lt_cv_path_NM="$tmp_nm -p"
5592 break
5593 ;;
5594 *)
5595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5596 continue # so that we can try to find one that supports BSD flags
5597 ;;
5598 esac
5599 ;;
5600 esac
5601 fi
5602 done
5603 IFS="$lt_save_ifs"
5604 done
5605 : ${lt_cv_path_NM=no}
5606fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5609$as_echo "$lt_cv_path_NM" >&6; }
5610if test "$lt_cv_path_NM" != "no"; then
5611 NM="$lt_cv_path_NM"
5612else
5613 # Didn't find any BSD compatible name lister, look for dumpbin.
5614 if test -n "$DUMPBIN"; then :
5615 # Let the user override the test.
5616 else
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in dumpbin "link -dump"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_DUMPBIN+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647DUMPBIN=$ac_cv_prog_DUMPBIN
5648if test -n "$DUMPBIN"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5650$as_echo "$DUMPBIN" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656
5657 test -n "$DUMPBIN" && break
5658 done
5659fi
5660if test -z "$DUMPBIN"; then
5661 ac_ct_DUMPBIN=$DUMPBIN
5662 for ac_prog in dumpbin "link -dump"
5663do
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665set dummy $ac_prog; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 if test -n "$ac_ct_DUMPBIN"; then
5672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685done
5686 done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5692if test -n "$ac_ct_DUMPBIN"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5694$as_echo "$ac_ct_DUMPBIN" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700
5701 test -n "$ac_ct_DUMPBIN" && break
5702done
5703
5704 if test "x$ac_ct_DUMPBIN" = x; then
5705 DUMPBIN=":"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708yes:)
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711ac_tool_warned=yes ;;
5712esac
5713 DUMPBIN=$ac_ct_DUMPBIN
5714 fi
5715fi
5716
5717 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5718 *COFF*)
5719 DUMPBIN="$DUMPBIN -symbols"
5720 ;;
5721 *)
5722 DUMPBIN=:
5723 ;;
5724 esac
5725 fi
5726
5727 if test "$DUMPBIN" != ":"; then
5728 NM="$DUMPBIN"
5729 fi
5730fi
5731test -z "$NM" && NM=nm
5732
5733
5734
5735
5736
5737
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5739$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5740if ${lt_cv_nm_interface+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742else
5743 lt_cv_nm_interface="BSD nm"
5744 echo "int some_variable = 0;" > conftest.$ac_ext
5745 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5746 (eval "$ac_compile" 2>conftest.err)
5747 cat conftest.err >&5
5748 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5750 cat conftest.err >&5
5751 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5752 cat conftest.out >&5
5753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5754 lt_cv_nm_interface="MS dumpbin"
5755 fi
5756 rm -f conftest*
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5759$as_echo "$lt_cv_nm_interface" >&6; }
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5762$as_echo_n "checking whether ln -s works... " >&6; }
5763LN_S=$as_ln_s
5764if test "$LN_S" = "ln -s"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766$as_echo "yes" >&6; }
5767else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5769$as_echo "no, using $LN_S" >&6; }
5770fi
5771
5772# find the maximum length of command line arguments
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5774$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5775if ${lt_cv_sys_max_cmd_len+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777else
5778 i=0
5779 teststring="ABCD"
5780
5781 case $build_os in
5782 msdosdjgpp*)
5783 # On DJGPP, this test can blow up pretty badly due to problems in libc
5784 # (any single argument exceeding 2000 bytes causes a buffer overrun
5785 # during glob expansion). Even if it were fixed, the result of this
5786 # check would be larger than it should be.
5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5788 ;;
5789
5790 gnu*)
5791 # Under GNU Hurd, this test is not required because there is
5792 # no limit to the length of command line arguments.
5793 # Libtool will interpret -1 as no limit whatsoever
5794 lt_cv_sys_max_cmd_len=-1;
5795 ;;
5796
5797 cygwin* | mingw* | cegcc*)
5798 # On Win9x/ME, this test blows up -- it succeeds, but takes
5799 # about 5 minutes as the teststring grows exponentially.
5800 # Worse, since 9x/ME are not pre-emptively multitasking,
5801 # you end up with a "frozen" computer, even though with patience
5802 # the test eventually succeeds (with a max line length of 256k).
5803 # Instead, let's just punt: use the minimum linelength reported by
5804 # all of the supported platforms: 8192 (on NT/2K/XP).
5805 lt_cv_sys_max_cmd_len=8192;
5806 ;;
5807
5808 mint*)
5809 # On MiNT this can take a long time and run out of memory.
5810 lt_cv_sys_max_cmd_len=8192;
5811 ;;
5812
5813 amigaos*)
5814 # On AmigaOS with pdksh, this test takes hours, literally.
5815 # So we just punt and use a minimum line length of 8192.
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
5818
5819 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5820 # This has been around since 386BSD, at least. Likely further.
5821 if test -x /sbin/sysctl; then
5822 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5823 elif test -x /usr/sbin/sysctl; then
5824 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5825 else
5826 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5827 fi
5828 # And add a safety zone
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5831 ;;
5832
5833 interix*)
5834 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5835 lt_cv_sys_max_cmd_len=196608
5836 ;;
5837
5838 os2*)
5839 # The test takes a long time on OS/2.
5840 lt_cv_sys_max_cmd_len=8192
5841 ;;
5842
5843 osf*)
5844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5846 # nice to cause kernel panics so lets avoid the loop below.
5847 # First set a reasonable default.
5848 lt_cv_sys_max_cmd_len=16384
5849 #
5850 if test -x /sbin/sysconfig; then
5851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5852 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5853 esac
5854 fi
5855 ;;
5856 sco3.2v5*)
5857 lt_cv_sys_max_cmd_len=102400
5858 ;;
5859 sysv5* | sco5v6* | sysv4.2uw2*)
5860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5861 if test -n "$kargmax"; then
5862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5863 else
5864 lt_cv_sys_max_cmd_len=32768
5865 fi
5866 ;;
5867 *)
5868 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5869 if test -n "$lt_cv_sys_max_cmd_len"; then
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872 else
5873 # Make teststring a little bigger before we do anything with it.
5874 # a 1K string should be a reasonable start.
5875 for i in 1 2 3 4 5 6 7 8 ; do
5876 teststring=$teststring$teststring
5877 done
5878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5879 # If test is not a shell built-in, we'll probably end up computing a
5880 # maximum length that is only half of the actual maximum length, but
5881 # we can't tell.
5882 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5883 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5884 test $i != 17 # 1/2 MB should be enough
5885 do
5886 i=`expr $i + 1`
5887 teststring=$teststring$teststring
5888 done
5889 # Only check the string length outside the loop.
5890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5891 teststring=
5892 # Add a significant safety factor because C++ compilers can tack on
5893 # massive amounts of additional arguments before passing them to the
5894 # linker. It appears as though 1/2 is a usable value.
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5896 fi
5897 ;;
5898 esac
5899
5900fi
5901
5902if test -n $lt_cv_sys_max_cmd_len ; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5904$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5907$as_echo "none" >&6; }
5908fi
5909max_cmd_len=$lt_cv_sys_max_cmd_len
5910
5911
5912
5913
5914
5915
5916: ${CP="cp -f"}
5917: ${MV="mv -f"}
5918: ${RM="rm -f"}
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5921$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5922# Try some XSI features
5923xsi_shell=no
5924( _lt_dummy="a/b/c"
5925 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5926 = c,a/b,b/c, \
5927 && eval 'test $(( 1 + 1 )) -eq 2 \
5928 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5929 && xsi_shell=yes
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5931$as_echo "$xsi_shell" >&6; }
5932
5933
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5935$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5936lt_shell_append=no
5937( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5938 >/dev/null 2>&1 \
5939 && lt_shell_append=yes
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5941$as_echo "$lt_shell_append" >&6; }
5942
5943
5944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5945 lt_unset=unset
5946else
5947 lt_unset=false
5948fi
5949
5950
5951
5952
5953
5954# test EBCDIC or ASCII
5955case `echo X|tr X '\101'` in
5956 A) # ASCII based system
5957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5958 lt_SP2NL='tr \040 \012'
5959 lt_NL2SP='tr \015\012 \040\040'
5960 ;;
5961 *) # EBCDIC based system
5962 lt_SP2NL='tr \100 \n'
5963 lt_NL2SP='tr \r\n \100\100'
5964 ;;
5965esac
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5976$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5977if ${lt_cv_to_host_file_cmd+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979else
5980 case $host in
5981 *-*-mingw* )
5982 case $build in
5983 *-*-mingw* ) # actually msys
5984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5985 ;;
5986 *-*-cygwin* )
5987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5988 ;;
5989 * ) # otherwise, assume *nix
5990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5991 ;;
5992 esac
5993 ;;
5994 *-*-cygwin* )
5995 case $build in
5996 *-*-mingw* ) # actually msys
5997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5998 ;;
5999 *-*-cygwin* )
6000 lt_cv_to_host_file_cmd=func_convert_file_noop
6001 ;;
6002 * ) # otherwise, assume *nix
6003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6004 ;;
6005 esac
6006 ;;
6007 * ) # unhandled hosts (and "normal" native builds)
6008 lt_cv_to_host_file_cmd=func_convert_file_noop
6009 ;;
6010esac
6011
6012fi
6013
6014to_host_file_cmd=$lt_cv_to_host_file_cmd
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6016$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6017
6018
6019
6020
6021
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6023$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6024if ${lt_cv_to_tool_file_cmd+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026else
6027 #assume ordinary cross tools, or native build.
6028lt_cv_to_tool_file_cmd=func_convert_file_noop
6029case $host in
6030 *-*-mingw* )
6031 case $build in
6032 *-*-mingw* ) # actually msys
6033 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6034 ;;
6035 esac
6036 ;;
6037esac
6038
6039fi
6040
6041to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6043$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6044
6045
6046
6047
6048
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6050$as_echo_n "checking for $LD option to reload object files... " >&6; }
6051if ${lt_cv_ld_reload_flag+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 lt_cv_ld_reload_flag='-r'
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6057$as_echo "$lt_cv_ld_reload_flag" >&6; }
6058reload_flag=$lt_cv_ld_reload_flag
6059case $reload_flag in
6060"" | " "*) ;;
6061*) reload_flag=" $reload_flag" ;;
6062esac
6063reload_cmds='$LD$reload_flag -o $output$reload_objs'
6064case $host_os in
6065 cygwin* | mingw* | pw32* | cegcc*)
6066 if test "$GCC" != yes; then
6067 reload_cmds=false
6068 fi
6069 ;;
6070 darwin*)
6071 if test "$GCC" = yes; then
6072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6073 else
6074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075 fi
6076 ;;
6077esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089set dummy ${ac_tool_prefix}objdump; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if ${ac_cv_prog_OBJDUMP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094else
6095 if test -n "$OBJDUMP"; then
6096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109done
6110 done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115OBJDUMP=$ac_cv_prog_OBJDUMP
6116if test -n "$OBJDUMP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6118$as_echo "$OBJDUMP" >&6; }
6119else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124
6125fi
6126if test -z "$ac_cv_prog_OBJDUMP"; then
6127 ac_ct_OBJDUMP=$OBJDUMP
6128 # Extract the first word of "objdump", so it can be a program name with args.
6129set dummy objdump; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134else
6135 if test -n "$ac_ct_OBJDUMP"; then
6136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150 done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6156if test -n "$ac_ct_OBJDUMP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6158$as_echo "$ac_ct_OBJDUMP" >&6; }
6159else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164 if test "x$ac_ct_OBJDUMP" = x; then
6165 OBJDUMP="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 OBJDUMP=$ac_ct_OBJDUMP
6174 fi
6175else
6176 OBJDUMP="$ac_cv_prog_OBJDUMP"
6177fi
6178
6179test -z "$OBJDUMP" && OBJDUMP=objdump
6180
6181
6182
6183
6184
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6187$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6188if ${lt_cv_deplibs_check_method+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 lt_cv_file_magic_cmd='$MAGIC_CMD'
6192lt_cv_file_magic_test_file=
6193lt_cv_deplibs_check_method='unknown'
6194# Need to set the preceding variable on all platforms that support
6195# interlibrary dependencies.
6196# 'none' -- dependencies not supported.
6197# `unknown' -- same as none, but documents that we really don't know.
6198# 'pass_all' -- all dependencies passed with no checks.
6199# 'test_compile' -- check by making test program.
6200# 'file_magic [[regex]]' -- check by looking for files in library path
6201# which responds to the $file_magic_cmd with a given extended regex.
6202# If you have `file' or equivalent on your system and you're not sure
6203# whether `pass_all' will *always* work, you probably want this one.
6204
6205case $host_os in
6206aix[4-9]*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210beos*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214bsdi[45]*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6216 lt_cv_file_magic_cmd='/usr/bin/file -L'
6217 lt_cv_file_magic_test_file=/shlib/libc.so
6218 ;;
6219
6220cygwin*)
6221 # func_win32_libid is a shell function defined in ltmain.sh
6222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6223 lt_cv_file_magic_cmd='func_win32_libid'
6224 ;;
6225
6226mingw* | pw32*)
6227 # Base MSYS/MinGW do not provide the 'file' command needed by
6228 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6229 # unless we find 'file', for example because we are cross-compiling.
6230 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6231 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6233 lt_cv_file_magic_cmd='func_win32_libid'
6234 else
6235 # Keep this pattern in sync with the one in func_win32_libid.
6236 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6237 lt_cv_file_magic_cmd='$OBJDUMP -f'
6238 fi
6239 ;;
6240
6241cegcc*)
6242 # use the weaker test based on 'objdump'. See mingw*.
6243 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6244 lt_cv_file_magic_cmd='$OBJDUMP -f'
6245 ;;
6246
6247darwin* | rhapsody*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251freebsd* | dragonfly*)
6252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253 case $host_cpu in
6254 i*86 )
6255 # Not sure whether the presence of OpenBSD here was a mistake.
6256 # Let's accept both of them until this is cleared up.
6257 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6258 lt_cv_file_magic_cmd=/usr/bin/file
6259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6260 ;;
6261 esac
6262 else
6263 lt_cv_deplibs_check_method=pass_all
6264 fi
6265 ;;
6266
6267gnu*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271haiku*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274
6275hpux10.20* | hpux11*)
6276 lt_cv_file_magic_cmd=/usr/bin/file
6277 case $host_cpu in
6278 ia64*)
6279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6281 ;;
6282 hppa*64*)
6283 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]'
6284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6285 ;;
6286 *)
6287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6289 ;;
6290 esac
6291 ;;
6292
6293interix[3-9]*)
6294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6296 ;;
6297
6298irix5* | irix6* | nonstopux*)
6299 case $LD in
6300 *-32|*"-32 ") libmagic=32-bit;;
6301 *-n32|*"-n32 ") libmagic=N32;;
6302 *-64|*"-64 ") libmagic=64-bit;;
6303 *) libmagic=never-match;;
6304 esac
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
6307
6308# This must be glibc/ELF.
6309linux* | k*bsd*-gnu | kopensolaris*-gnu)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313netbsd*)
6314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316 else
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318 fi
6319 ;;
6320
6321newos6*)
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6323 lt_cv_file_magic_cmd=/usr/bin/file
6324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325 ;;
6326
6327*nto* | *qnx*)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330
6331openbsd*)
6332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6334 else
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336 fi
6337 ;;
6338
6339osf3* | osf4* | osf5*)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343rdos*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346
6347solaris*)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350
6351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6352 lt_cv_deplibs_check_method=pass_all
6353 ;;
6354
6355sysv4 | sysv4.3*)
6356 case $host_vendor in
6357 motorola)
6358 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]'
6359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6360 ;;
6361 ncr)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364 sequent)
6365 lt_cv_file_magic_cmd='/bin/file'
6366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6367 ;;
6368 sni)
6369 lt_cv_file_magic_cmd='/bin/file'
6370 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6371 lt_cv_file_magic_test_file=/lib/libc.so
6372 ;;
6373 siemens)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376 pc)
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
6379 esac
6380 ;;
6381
6382tpf*)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385esac
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6389$as_echo "$lt_cv_deplibs_check_method" >&6; }
6390
6391file_magic_glob=
6392want_nocaseglob=no
6393if test "$build" = "$host"; then
6394 case $host_os in
6395 mingw* | pw32*)
6396 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6397 want_nocaseglob=yes
6398 else
6399 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6400 fi
6401 ;;
6402 esac
6403fi
6404
6405file_magic_cmd=$lt_cv_file_magic_cmd
6406deplibs_check_method=$lt_cv_deplibs_check_method
6407test -z "$deplibs_check_method" && deplibs_check_method=unknown
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_DLLTOOL+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437else
6438 if test -n "$DLLTOOL"; then
6439 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453 done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458DLLTOOL=$ac_cv_prog_DLLTOOL
6459if test -n "$DLLTOOL"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6461$as_echo "$DLLTOOL" >&6; }
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_DLLTOOL"; then
6470 ac_ct_DLLTOOL=$DLLTOOL
6471 # Extract the first word of "dlltool", so it can be a program name with args.
6472set dummy dlltool; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477else
6478 if test -n "$ac_ct_DLLTOOL"; then
6479 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493 done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6499if test -n "$ac_ct_DLLTOOL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6501$as_echo "$ac_ct_DLLTOOL" >&6; }
6502else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507 if test "x$ac_ct_DLLTOOL" = x; then
6508 DLLTOOL="false"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516 DLLTOOL=$ac_ct_DLLTOOL
6517 fi
6518else
6519 DLLTOOL="$ac_cv_prog_DLLTOOL"
6520fi
6521
6522test -z "$DLLTOOL" && DLLTOOL=dlltool
6523
6524
6525
6526
6527
6528
6529
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6531$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6532if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 lt_cv_sharedlib_from_linklib_cmd='unknown'
6536
6537case $host_os in
6538cygwin* | mingw* | pw32* | cegcc*)
6539 # two different shell functions defined in ltmain.sh
6540 # decide which to use based on capabilities of $DLLTOOL
6541 case `$DLLTOOL --help 2>&1` in
6542 *--identify-strict*)
6543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6544 ;;
6545 *)
6546 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6547 ;;
6548 esac
6549 ;;
6550*)
6551 # fallback: assume linklib IS sharedlib
6552 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6553 ;;
6554esac
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6558$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6559sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6560test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6561
6562
6563
6564
6565
6566
6567
6568
6569if test -n "$ac_tool_prefix"; then
6570 for ac_prog in ar
6571 do
6572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_AR+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 if test -n "$AR"; then
6580 ac_cv_prog_AR="$AR" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594 done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599AR=$ac_cv_prog_AR
6600if test -n "$AR"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602$as_echo "$AR" >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609 test -n "$AR" && break
6610 done
6611fi
6612if test -z "$AR"; then
6613 ac_ct_AR=$AR
6614 for ac_prog in ar
6615do
6616 # Extract the first word of "$ac_prog", so it can be a program name with args.
6617set dummy $ac_prog; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_ac_ct_AR+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623 if test -n "$ac_ct_AR"; then
6624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_AR="$ac_prog"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643ac_ct_AR=$ac_cv_prog_ac_ct_AR
6644if test -n "$ac_ct_AR"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6646$as_echo "$ac_ct_AR" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652
6653 test -n "$ac_ct_AR" && break
6654done
6655
6656 if test "x$ac_ct_AR" = x; then
6657 AR="false"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665 AR=$ac_ct_AR
6666 fi
6667fi
6668
6669: ${AR=ar}
6670: ${AR_FLAGS=cru}
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6683$as_echo_n "checking for archiver @FILE support... " >&6; }
6684if ${lt_cv_ar_at_file+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 lt_cv_ar_at_file=no
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"; then :
6700 echo conftest.$ac_objext > conftest.lst
6701 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
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 "$ac_status" -eq 0; then
6708 # Ensure the archiver fails upon bogus file names.
6709 rm -f conftest.$ac_objext libconftest.a
6710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6711 (eval $lt_ar_try) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }
6715 if test "$ac_status" -ne 0; then
6716 lt_cv_ar_at_file=@
6717 fi
6718 fi
6719 rm -f conftest.* libconftest.a
6720
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6726$as_echo "$lt_cv_ar_at_file" >&6; }
6727
6728if test "x$lt_cv_ar_at_file" = xno; then
6729 archiver_list_spec=
6730else
6731 archiver_list_spec=$lt_cv_ar_at_file
6732fi
6733
6734
6735
6736
6737
6738
6739
6740if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}strip; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_STRIP+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747else
6748 if test -n "$STRIP"; then
6749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763 done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768STRIP=$ac_cv_prog_STRIP
6769if test -n "$STRIP"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6771$as_echo "$STRIP" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_STRIP"; then
6780 ac_ct_STRIP=$STRIP
6781 # Extract the first word of "strip", so it can be a program name with args.
6782set dummy strip; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788 if test -n "$ac_ct_STRIP"; then
6789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_ac_ct_STRIP="strip"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803 done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6809if test -n "$ac_ct_STRIP"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6811$as_echo "$ac_ct_STRIP" >&6; }
6812else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817 if test "x$ac_ct_STRIP" = x; then
6818 STRIP=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826 STRIP=$ac_ct_STRIP
6827 fi
6828else
6829 STRIP="$ac_cv_prog_STRIP"
6830fi
6831
6832test -z "$STRIP" && STRIP=:
6833
6834
6835
6836
6837
6838
6839if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if ${ac_cv_prog_RANLIB+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$RANLIB"; then
6848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867RANLIB=$ac_cv_prog_RANLIB
6868if test -n "$RANLIB"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6870$as_echo "$RANLIB" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_RANLIB"; then
6879 ac_ct_RANLIB=$RANLIB
6880 # Extract the first word of "ranlib", so it can be a program name with args.
6881set dummy ranlib; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$ac_ct_RANLIB"; then
6888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_RANLIB="ranlib"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902 done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6908if test -n "$ac_ct_RANLIB"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6910$as_echo "$ac_ct_RANLIB" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_ct_RANLIB" = x; then
6917 RANLIB=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 RANLIB=$ac_ct_RANLIB
6926 fi
6927else
6928 RANLIB="$ac_cv_prog_RANLIB"
6929fi
6930
6931test -z "$RANLIB" && RANLIB=:
6932
6933
6934
6935
6936
6937
6938# Determine commands to create old-style static archives.
6939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940old_postinstall_cmds='chmod 644 $oldlib'
6941old_postuninstall_cmds=
6942
6943if test -n "$RANLIB"; then
6944 case $host_os in
6945 openbsd*)
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6947 ;;
6948 *)
6949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6950 ;;
6951 esac
6952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6953fi
6954
6955case $host_os in
6956 darwin*)
6957 lock_old_archive_extraction=yes ;;
6958 *)
6959 lock_old_archive_extraction=no ;;
6960esac
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982for ac_prog in gawk mawk nawk awk
6983do
6984 # Extract the first word of "$ac_prog", so it can be a program name with args.
6985set dummy $ac_prog; ac_word=$2
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if ${ac_cv_prog_AWK+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990else
6991 if test -n "$AWK"; then
6992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_AWK="$ac_prog"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006 done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011AWK=$ac_cv_prog_AWK
7012if test -n "$AWK"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7014$as_echo "$AWK" >&6; }
7015else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019
7020
7021 test -n "$AWK" && break
7022done
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042# If no C compiler was specified, use CC.
7043LTCC=${LTCC-"$CC"}
7044
7045# If no C compiler flags were specified, use CFLAGS.
7046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7047
7048# Allow CC to be a program name with arguments.
7049compiler=$CC
7050
7051
7052# Check for command to grab the raw symbol name followed by C symbol from nm.
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7054$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7055if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057else
7058
7059# These are sane defaults that work on at least a few old systems.
7060# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7061
7062# Character class describing NM global symbol codes.
7063symcode='[BCDEGRST]'
7064
7065# Regexp to match symbols that can be accessed directly from C.
7066sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7067
7068# Define system-specific variables.
7069case $host_os in
7070aix*)
7071 symcode='[BCDT]'
7072 ;;
7073cygwin* | mingw* | pw32* | cegcc*)
7074 symcode='[ABCDGISTW]'
7075 ;;
7076hpux*)
7077 if test "$host_cpu" = ia64; then
7078 symcode='[ABCDEGRST]'
7079 fi
7080 ;;
7081irix* | nonstopux*)
7082 symcode='[BCDEGRST]'
7083 ;;
7084osf*)
7085 symcode='[BCDEGQRST]'
7086 ;;
7087solaris*)
7088 symcode='[BDRT]'
7089 ;;
7090sco3.2v5*)
7091 symcode='[DT]'
7092 ;;
7093sysv4.2uw2*)
7094 symcode='[DT]'
7095 ;;
7096sysv5* | sco5v6* | unixware* | OpenUNIX*)
7097 symcode='[ABDT]'
7098 ;;
7099sysv4)
7100 symcode='[DFNSTU]'
7101 ;;
7102esac
7103
7104# If we're using GNU nm, then use its standard symbol codes.
7105case `$NM -V 2>&1` in
7106*GNU* | *'with BFD'*)
7107 symcode='[ABCDGIRSTW]' ;;
7108esac
7109
7110# Transform an extracted symbol line into a proper C declaration.
7111# Some systems (esp. on ia64) link data and code symbols differently,
7112# so use this general approach.
7113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7114
7115# Transform an extracted symbol line into symbol name and symbol address
7116lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7118
7119# Handle CRLF in mingw tool chain
7120opt_cr=
7121case $build_os in
7122mingw*)
7123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7124 ;;
7125esac
7126
7127# Try without a prefix underscore, then with it.
7128for ac_symprfx in "" "_"; do
7129
7130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7131 symxfrm="\\1 $ac_symprfx\\2 \\2"
7132
7133 # Write the raw and C identifiers.
7134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7135 # Fake it for dumpbin and say T for any non-static function
7136 # and D for any global variable.
7137 # Also find C++ and __fastcall symbols from MSVC++,
7138 # which start with @ or ?.
7139 lt_cv_sys_global_symbol_pipe="$AWK '"\
7140" {last_section=section; section=\$ 3};"\
7141" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7142" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7143" \$ 0!~/External *\|/{next};"\
7144" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7145" {if(hide[section]) next};"\
7146" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7147" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7148" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7149" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7150" ' prfx=^$ac_symprfx"
7151 else
7152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7153 fi
7154 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7155
7156 # Check to see that the pipe works correctly.
7157 pipe_works=no
7158
7159 rm -f conftest*
7160 cat > conftest.$ac_ext <<_LT_EOF
7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164char nm_test_var;
7165void nm_test_func(void);
7166void nm_test_func(void){}
7167#ifdef __cplusplus
7168}
7169#endif
7170int main(){nm_test_var='a';nm_test_func();return(0);}
7171_LT_EOF
7172
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }; then
7178 # Now try to grab the symbols.
7179 nlist=conftest.nm
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7181 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7182 ac_status=$?
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; } && test -s "$nlist"; then
7185 # Try sorting and uniquifying the output.
7186 if sort "$nlist" | uniq > "$nlist"T; then
7187 mv -f "$nlist"T "$nlist"
7188 else
7189 rm -f "$nlist"T
7190 fi
7191
7192 # Make sure that we snagged all the symbols we need.
7193 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7194 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7195 cat <<_LT_EOF > conftest.$ac_ext
7196/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7197#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7198/* DATA imports from DLLs on WIN32 con't be const, because runtime
7199 relocations are performed -- see ld's documentation on pseudo-relocs. */
7200# define LT_DLSYM_CONST
7201#elif defined(__osf__)
7202/* This system does not cope well with relocations in const data. */
7203# define LT_DLSYM_CONST
7204#else
7205# define LT_DLSYM_CONST const
7206#endif
7207
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212_LT_EOF
7213 # Now generate the symbol file.
7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216 cat <<_LT_EOF >> conftest.$ac_ext
7217
7218/* The mapping between symbol names and symbols. */
7219LT_DLSYM_CONST struct {
7220 const char *name;
7221 void *address;
7222}
7223lt__PROGRAM__LTX_preloaded_symbols[] =
7224{
7225 { "@PROGRAM@", (void *) 0 },
7226_LT_EOF
7227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228 cat <<\_LT_EOF >> conftest.$ac_ext
7229 {0, (void *) 0}
7230};
7231
7232/* This works around a problem in FreeBSD linker */
7233#ifdef FREEBSD_WORKAROUND
7234static const void *lt_preloaded_setup() {
7235 return lt__PROGRAM__LTX_preloaded_symbols;
7236}
7237#endif
7238
7239#ifdef __cplusplus
7240}
7241#endif
7242_LT_EOF
7243 # Now try linking the two files.
7244 mv conftest.$ac_objext conftstm.$ac_objext
7245 lt_globsym_save_LIBS=$LIBS
7246 lt_globsym_save_CFLAGS=$CFLAGS
7247 LIBS="conftstm.$ac_objext"
7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254 pipe_works=yes
7255 fi
7256 LIBS=$lt_globsym_save_LIBS
7257 CFLAGS=$lt_globsym_save_CFLAGS
7258 else
7259 echo "cannot find nm_test_func in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot find nm_test_var in $nlist" >&5
7263 fi
7264 else
7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266 fi
7267 else
7268 echo "$progname: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 fi
7271 rm -rf conftest* conftst*
7272
7273 # Do not use the global_symbol_pipe unless it works.
7274 if test "$pipe_works" = yes; then
7275 break
7276 else
7277 lt_cv_sys_global_symbol_pipe=
7278 fi
7279done
7280
7281fi
7282
7283if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7285fi
7286if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288$as_echo "failed" >&6; }
7289else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291$as_echo "ok" >&6; }
7292fi
7293
7294# Response file support.
7295if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 nm_file_list_spec='@'
7297elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7298 nm_file_list_spec='@'
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7328$as_echo_n "checking for sysroot... " >&6; }
7329
7330# Check whether --with-sysroot was given.
7331if test "${with_sysroot+set}" = set; then :
7332 withval=$with_sysroot;
7333else
7334 with_sysroot=no
7335fi
7336
7337
7338lt_sysroot=
7339case ${with_sysroot} in #(
7340 yes)
7341 if test "$GCC" = yes; then
7342 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7343 fi
7344 ;; #(
7345 /*)
7346 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7347 ;; #(
7348 no|'')
7349 ;; #(
7350 *)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7352$as_echo "${with_sysroot}" >&6; }
7353 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7354 ;;
7355esac
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7358$as_echo "${lt_sysroot:-no}" >&6; }
7359
7360
7361
7362
7363
7364# Check whether --enable-libtool-lock was given.
7365if test "${enable_libtool_lock+set}" = set; then :
7366 enableval=$enable_libtool_lock;
7367fi
7368
7369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
7371# Some flags need to be propagated to the compiler or linker for good
7372# libtool support.
7373case $host in
7374ia64-*-hpux*)
7375 # Find out which ABI we are using.
7376 echo 'int i;' > conftest.$ac_ext
7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378 (eval $ac_compile) 2>&5
7379 ac_status=$?
7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7383 *ELF-32*)
7384 HPUX_IA64_MODE="32"
7385 ;;
7386 *ELF-64*)
7387 HPUX_IA64_MODE="64"
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393*-*-irix6*)
7394 # Find out which ABI we are using.
7395 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397 (eval $ac_compile) 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; }; then
7401 if test "$lt_cv_prog_gnu_ld" = yes; then
7402 case `/usr/bin/file conftest.$ac_objext` in
7403 *32-bit*)
7404 LD="${LD-ld} -melf32bsmip"
7405 ;;
7406 *N32*)
7407 LD="${LD-ld} -melf32bmipn32"
7408 ;;
7409 *64-bit*)
7410 LD="${LD-ld} -melf64bmip"
7411 ;;
7412 esac
7413 else
7414 case `/usr/bin/file conftest.$ac_objext` in
7415 *32-bit*)
7416 LD="${LD-ld} -32"
7417 ;;
7418 *N32*)
7419 LD="${LD-ld} -n32"
7420 ;;
7421 *64-bit*)
7422 LD="${LD-ld} -64"
7423 ;;
7424 esac
7425 fi
7426 fi
7427 rm -rf conftest*
7428 ;;
7429
7430x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7431s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432 # Find out which ABI we are using.
7433 echo 'int i;' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 case `/usr/bin/file conftest.o` in
7440 *32-bit*)
7441 case $host in
7442 x86_64-*kfreebsd*-gnu)
7443 LD="${LD-ld} -m elf_i386_fbsd"
7444 ;;
7445 x86_64-*linux*)
7446 LD="${LD-ld} -m elf_i386"
7447 ;;
7448 powerpc64le-*linux*)
7449 LD="${LD-ld} -m elf32lppclinux"
7450 ;;
7451 powerpc64-*linux*)
7452 LD="${LD-ld} -m elf32ppclinux"
7453 ;;
7454 s390x-*linux*)
7455 LD="${LD-ld} -m elf_s390"
7456 ;;
7457 sparc64-*linux*)
7458 LD="${LD-ld} -m elf32_sparc"
7459 ;;
7460 esac
7461 ;;
7462 *64-bit*)
7463 case $host in
7464 x86_64-*kfreebsd*-gnu)
7465 LD="${LD-ld} -m elf_x86_64_fbsd"
7466 ;;
7467 x86_64-*linux*)
7468 LD="${LD-ld} -m elf_x86_64"
7469 ;;
7470 powerpcle-*linux*)
7471 LD="${LD-ld} -m elf64lppc"
7472 ;;
7473 powerpc-*linux*)
7474 LD="${LD-ld} -m elf64ppc"
7475 ;;
7476 s390*-*linux*|s390*-*tpf*)
7477 LD="${LD-ld} -m elf64_s390"
7478 ;;
7479 sparc*-*linux*)
7480 LD="${LD-ld} -m elf64_sparc"
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 fi
7486 rm -rf conftest*
7487 ;;
7488
7489*-*-sco3.2v5*)
7490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7491 SAVE_CFLAGS="$CFLAGS"
7492 CFLAGS="$CFLAGS -belf"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7494$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7495if ${lt_cv_cc_needs_belf+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497else
7498 ac_ext=c
7499ac_cpp='$CPP $CPPFLAGS'
7500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506
7507int
7508main ()
7509{
7510
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"; then :
7516 lt_cv_cc_needs_belf=yes
7517else
7518 lt_cv_cc_needs_belf=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7530$as_echo "$lt_cv_cc_needs_belf" >&6; }
7531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7533 CFLAGS="$SAVE_CFLAGS"
7534 fi
7535 ;;
7536*-*solaris*)
7537 # Find out which ABI we are using.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.o` in
7545 *64-bit*)
7546 case $lt_cv_prog_gnu_ld in
7547 yes*)
7548 case $host in
7549 i?86-*-solaris*)
7550 LD="${LD-ld} -m elf_x86_64"
7551 ;;
7552 sparc*-*-solaris*)
7553 LD="${LD-ld} -m elf64_sparc"
7554 ;;
7555 esac
7556 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7557 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7558 LD="${LD-ld}_sol2"
7559 fi
7560 ;;
7561 *)
7562 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7563 LD="${LD-ld} -64"
7564 fi
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 fi
7570 rm -rf conftest*
7571 ;;
7572esac
7573
7574need_locks="$enable_libtool_lock"
7575
7576if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7578set dummy ${ac_tool_prefix}mt; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583else
7584 if test -n "$MANIFEST_TOOL"; then
7585 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599 done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7605if test -n "$MANIFEST_TOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7607$as_echo "$MANIFEST_TOOL" >&6; }
7608else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614fi
7615if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7617 # Extract the first word of "mt", so it can be a program name with args.
7618set dummy mt; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$ac_ct_MANIFEST_TOOL"; then
7625 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639 done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7645if test -n "$ac_ct_MANIFEST_TOOL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7647$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7654 MANIFEST_TOOL=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657yes:)
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660ac_tool_warned=yes ;;
7661esac
7662 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7663 fi
7664else
7665 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7666fi
7667
7668test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7670$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7671if ${lt_cv_path_mainfest_tool+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 lt_cv_path_mainfest_tool=no
7675 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7676 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7677 cat conftest.err >&5
7678 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7679 lt_cv_path_mainfest_tool=yes
7680 fi
7681 rm -f conftest*
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7684$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7685if test "x$lt_cv_path_mainfest_tool" != xyes; then
7686 MANIFEST_TOOL=:
7687fi
7688
7689
7690
7691
7692
7693
7694 case $host_os in
7695 rhapsody* | darwin*)
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7698set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703else
7704 if test -n "$DSYMUTIL"; then
7705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719 done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724DSYMUTIL=$ac_cv_prog_DSYMUTIL
7725if test -n "$DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7727$as_echo "$DSYMUTIL" >&6; }
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_DSYMUTIL"; then
7736 ac_ct_DSYMUTIL=$DSYMUTIL
7737 # Extract the first word of "dsymutil", so it can be a program name with args.
7738set dummy dsymutil; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 if test -n "$ac_ct_DSYMUTIL"; then
7745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759 done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7765if test -n "$ac_ct_DSYMUTIL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7767$as_echo "$ac_ct_DSYMUTIL" >&6; }
7768else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773 if test "x$ac_ct_DSYMUTIL" = x; then
7774 DSYMUTIL=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777yes:)
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780ac_tool_warned=yes ;;
7781esac
7782 DSYMUTIL=$ac_ct_DSYMUTIL
7783 fi
7784else
7785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795else
7796 if test -n "$NMEDIT"; then
7797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811 done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816NMEDIT=$ac_cv_prog_NMEDIT
7817if test -n "$NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7819$as_echo "$NMEDIT" >&6; }
7820else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_prog_NMEDIT"; then
7828 ac_ct_NMEDIT=$NMEDIT
7829 # Extract the first word of "nmedit", so it can be a program name with args.
7830set dummy nmedit; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 if test -n "$ac_ct_NMEDIT"; then
7837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851 done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7857if test -n "$ac_ct_NMEDIT"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7859$as_echo "$ac_ct_NMEDIT" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865 if test "x$ac_ct_NMEDIT" = x; then
7866 NMEDIT=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869yes:)
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872ac_tool_warned=yes ;;
7873esac
7874 NMEDIT=$ac_ct_NMEDIT
7875 fi
7876else
7877 NMEDIT="$ac_cv_prog_NMEDIT"
7878fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}lipo; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 if test -n "$LIPO"; then
7889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902done
7903 done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908LIPO=$ac_cv_prog_LIPO
7909if test -n "$LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7911$as_echo "$LIPO" >&6; }
7912else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_LIPO"; then
7920 ac_ct_LIPO=$LIPO
7921 # Extract the first word of "lipo", so it can be a program name with args.
7922set dummy lipo; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927else
7928 if test -n "$ac_ct_LIPO"; then
7929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_LIPO="lipo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942done
7943 done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7949if test -n "$ac_ct_LIPO"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7951$as_echo "$ac_ct_LIPO" >&6; }
7952else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957 if test "x$ac_ct_LIPO" = x; then
7958 LIPO=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966 LIPO=$ac_ct_LIPO
7967 fi
7968else
7969 LIPO="$ac_cv_prog_LIPO"
7970fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}otool; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 if test -n "$OTOOL"; then
7981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994done
7995 done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000OTOOL=$ac_cv_prog_OTOOL
8001if test -n "$OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8003$as_echo "$OTOOL" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_OTOOL"; then
8012 ac_ct_OTOOL=$OTOOL
8013 # Extract the first word of "otool", so it can be a program name with args.
8014set dummy otool; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$ac_ct_OTOOL"; then
8021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL="otool"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041if test -n "$ac_ct_OTOOL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043$as_echo "$ac_ct_OTOOL" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049 if test "x$ac_ct_OTOOL" = x; then
8050 OTOOL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058 OTOOL=$ac_ct_OTOOL
8059 fi
8060else
8061 OTOOL="$ac_cv_prog_OTOOL"
8062fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 if test -n "$OTOOL64"; then
8073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087 done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092OTOOL64=$ac_cv_prog_OTOOL64
8093if test -n "$OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8095$as_echo "$OTOOL64" >&6; }
8096else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102fi
8103if test -z "$ac_cv_prog_OTOOL64"; then
8104 ac_ct_OTOOL64=$OTOOL64
8105 # Extract the first word of "otool64", so it can be a program name with args.
8106set dummy otool64; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 if test -n "$ac_ct_OTOOL64"; then
8113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_OTOOL64="otool64"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127 done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8133if test -n "$ac_ct_OTOOL64"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8135$as_echo "$ac_ct_OTOOL64" >&6; }
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141 if test "x$ac_ct_OTOOL64" = x; then
8142 OTOOL64=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150 OTOOL64=$ac_ct_OTOOL64
8151 fi
8152else
8153 OTOOL64="$ac_cv_prog_OTOOL64"
8154fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8183$as_echo_n "checking for -single_module linker flag... " >&6; }
8184if ${lt_cv_apple_cc_single_mod+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186else
8187 lt_cv_apple_cc_single_mod=no
8188 if test -z "${LT_MULTI_MODULE}"; then
8189 # By default we will add the -single_module flag. You can override
8190 # by either setting the environment variable LT_MULTI_MODULE
8191 # non-empty at configure time, or by adding -multi_module to the
8192 # link flags.
8193 rm -rf libconftest.dylib*
8194 echo "int foo(void){return 1;}" > conftest.c
8195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196-dynamiclib -Wl,-single_module conftest.c" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8199 _lt_result=$?
8200 # If there is a non-empty error log, and "single_module"
8201 # appears in it, assume the flag caused a linker warning
8202 if test -s conftest.err && $GREP single_module conftest.err; then
8203 cat conftest.err >&5
8204 # Otherwise, if the output was created with a 0 exit code from
8205 # the compiler, it worked.
8206 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8207 lt_cv_apple_cc_single_mod=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -rf libconftest.dylib*
8212 rm -f conftest.*
8213 fi
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8219$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8220if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 lt_cv_ld_exported_symbols_list=no
8224 save_LDFLAGS=$LDFLAGS
8225 echo "_main" > conftest.sym
8226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_ld_exported_symbols_list=yes
8240else
8241 lt_cv_ld_exported_symbols_list=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS="$save_LDFLAGS"
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8249$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8252$as_echo_n "checking for -force_load linker flag... " >&6; }
8253if ${lt_cv_ld_force_load+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255else
8256 lt_cv_ld_force_load=no
8257 cat > conftest.c << _LT_EOF
8258int forced_loaded() { return 2;}
8259_LT_EOF
8260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8262 echo "$AR cru libconftest.a conftest.o" >&5
8263 $AR cru libconftest.a conftest.o 2>&5
8264 echo "$RANLIB libconftest.a" >&5
8265 $RANLIB libconftest.a 2>&5
8266 cat > conftest.c << _LT_EOF
8267int main() { return 0;}
8268_LT_EOF
8269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271 _lt_result=$?
8272 if test -s conftest.err && $GREP force_load conftest.err; then
8273 cat conftest.err >&5
8274 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8275 lt_cv_ld_force_load=yes
8276 else
8277 cat conftest.err >&5
8278 fi
8279 rm -f conftest.err libconftest.a conftest conftest.c
8280 rm -rf conftest.dSYM
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284$as_echo "$lt_cv_ld_force_load" >&6; }
8285 case $host_os in
8286 rhapsody* | darwin1.[012])
8287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8288 darwin1.*)
8289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8290 darwin*) # darwin 5.x on
8291 # if running on 10.5 or later, the deployment target defaults
8292 # to the OS version, if on x86, and 10.4, the deployment
8293 # target defaults to 10.4. Don't you love it?
8294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8297 10.[012]*)
8298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8299 10.*)
8300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8301 esac
8302 ;;
8303 esac
8304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8305 _lt_dar_single_mod='$single_module'
8306 fi
8307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8309 else
8310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 fi
8312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8313 _lt_dsymutil='~$DSYMUTIL $lib || :'
8314 else
8315 _lt_dsymutil=
8316 fi
8317 ;;
8318 esac
8319
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8322$as_echo_n "checking for ANSI C header files... " >&6; }
8323if ${ac_cv_header_stdc+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#include <stdlib.h>
8329#include <stdarg.h>
8330#include <string.h>
8331#include <float.h>
8332
8333int
8334main ()
8335{
8336
8337 ;
8338 return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_compile "$LINENO"; then :
8342 ac_cv_header_stdc=yes
8343else
8344 ac_cv_header_stdc=no
8345fi
8346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347
8348if test $ac_cv_header_stdc = yes; then
8349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h. */
8352#include <string.h>
8353
8354_ACEOF
8355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356 $EGREP "memchr" >/dev/null 2>&1; then :
8357
8358else
8359 ac_cv_header_stdc=no
8360fi
8361rm -f conftest*
8362
8363fi
8364
8365if test $ac_cv_header_stdc = yes; then
8366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h. */
8369#include <stdlib.h>
8370
8371_ACEOF
8372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8373 $EGREP "free" >/dev/null 2>&1; then :
8374
8375else
8376 ac_cv_header_stdc=no
8377fi
8378rm -f conftest*
8379
8380fi
8381
8382if test $ac_cv_header_stdc = yes; then
8383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8384 if test "$cross_compiling" = yes; then :
8385 :
8386else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
8389#include <ctype.h>
8390#include <stdlib.h>
8391#if ((' ' & 0x0FF) == 0x020)
8392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8394#else
8395# define ISLOWER(c) \
8396 (('a' <= (c) && (c) <= 'i') \
8397 || ('j' <= (c) && (c) <= 'r') \
8398 || ('s' <= (c) && (c) <= 'z'))
8399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8400#endif
8401
8402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8403int
8404main ()
8405{
8406 int i;
8407 for (i = 0; i < 256; i++)
8408 if (XOR (islower (i), ISLOWER (i))
8409 || toupper (i) != TOUPPER (i))
8410 return 2;
8411 return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_run "$LINENO"; then :
8415
8416else
8417 ac_cv_header_stdc=no
8418fi
8419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8420 conftest.$ac_objext conftest.beam conftest.$ac_ext
8421fi
8422
8423fi
8424fi
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8426$as_echo "$ac_cv_header_stdc" >&6; }
8427if test $ac_cv_header_stdc = yes; then
8428
8429$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8430
8431fi
8432
8433# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8435 inttypes.h stdint.h unistd.h
8436do :
8437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8439"
8440if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8441 cat >>confdefs.h <<_ACEOF
8442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443_ACEOF
8444
8445fi
8446
8447done
8448
8449
8450for ac_header in dlfcn.h
8451do :
8452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8453"
8454if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8455 cat >>confdefs.h <<_ACEOF
8456#define HAVE_DLFCN_H 1
8457_ACEOF
8458
8459fi
8460
8461done
8462
8463
8464
8465
8466func_stripname_cnf ()
8467{
8468 case ${2} in
8469 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8470 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8471 esac
8472} # func_stripname_cnf
8473
8474
8475
8476
8477
8478# Set options
8479
8480
8481
8482 enable_dlopen=no
8483
8484
8485
8486 # Check whether --enable-shared was given.
8487if test "${enable_shared+set}" = set; then :
8488 enableval=$enable_shared; p=${PACKAGE-default}
8489 case $enableval in
8490 yes) enable_shared=yes ;;
8491 no) enable_shared=no ;;
8492 *)
8493 enable_shared=no
8494 # Look at the argument we got. We use all the common list separators.
8495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8496 for pkg in $enableval; do
8497 IFS="$lt_save_ifs"
8498 if test "X$pkg" = "X$p"; then
8499 enable_shared=yes
8500 fi
8501 done
8502 IFS="$lt_save_ifs"
8503 ;;
8504 esac
8505else
8506 enable_shared=yes
8507fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 # Check whether --enable-static was given.
8518if test "${enable_static+set}" = set; then :
8519 enableval=$enable_static; p=${PACKAGE-default}
8520 case $enableval in
8521 yes) enable_static=yes ;;
8522 no) enable_static=no ;;
8523 *)
8524 enable_static=no
8525 # Look at the argument we got. We use all the common list separators.
8526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8527 for pkg in $enableval; do
8528 IFS="$lt_save_ifs"
8529 if test "X$pkg" = "X$p"; then
8530 enable_static=yes
8531 fi
8532 done
8533 IFS="$lt_save_ifs"
8534 ;;
8535 esac
8536else
8537 enable_static=yes
8538fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549# Check whether --with-pic was given.
8550if test "${with_pic+set}" = set; then :
8551 withval=$with_pic; lt_p=${PACKAGE-default}
8552 case $withval in
8553 yes|no) pic_mode=$withval ;;
8554 *)
8555 pic_mode=default
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558 for lt_pkg in $withval; do
8559 IFS="$lt_save_ifs"
8560 if test "X$lt_pkg" = "X$lt_p"; then
8561 pic_mode=yes
8562 fi
8563 done
8564 IFS="$lt_save_ifs"
8565 ;;
8566 esac
8567else
8568 pic_mode=default
8569fi
8570
8571
8572test -z "$pic_mode" && pic_mode=default
8573
8574
8575
8576
8577
8578
8579
8580 # Check whether --enable-fast-install was given.
8581if test "${enable_fast_install+set}" = set; then :
8582 enableval=$enable_fast_install; p=${PACKAGE-default}
8583 case $enableval in
8584 yes) enable_fast_install=yes ;;
8585 no) enable_fast_install=no ;;
8586 *)
8587 enable_fast_install=no
8588 # Look at the argument we got. We use all the common list separators.
8589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590 for pkg in $enableval; do
8591 IFS="$lt_save_ifs"
8592 if test "X$pkg" = "X$p"; then
8593 enable_fast_install=yes
8594 fi
8595 done
8596 IFS="$lt_save_ifs"
8597 ;;
8598 esac
8599else
8600 enable_fast_install=yes
8601fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613# This can be used to rebuild libtool when needed
8614LIBTOOL_DEPS="$ltmain"
8615
8616# Always use our own libtool.
8617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648test -z "$LN_S" && LN_S="ln -s"
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663if test -n "${ZSH_VERSION+set}" ; then
8664 setopt NO_GLOB_SUBST
8665fi
8666
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8668$as_echo_n "checking for objdir... " >&6; }
8669if ${lt_cv_objdir+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 rm -f .libs 2>/dev/null
8673mkdir .libs 2>/dev/null
8674if test -d .libs; then
8675 lt_cv_objdir=.libs
8676else
8677 # MS-DOS does not allow filenames that begin with a dot.
8678 lt_cv_objdir=_libs
8679fi
8680rmdir .libs 2>/dev/null
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8683$as_echo "$lt_cv_objdir" >&6; }
8684objdir=$lt_cv_objdir
8685
8686
8687
8688
8689
8690cat >>confdefs.h <<_ACEOF
8691#define LT_OBJDIR "$lt_cv_objdir/"
8692_ACEOF
8693
8694
8695
8696
8697case $host_os in
8698aix3*)
8699 # AIX sometimes has problems with the GCC collect2 program. For some
8700 # reason, if we set the COLLECT_NAMES environment variable, the problems
8701 # vanish in a puff of smoke.
8702 if test "X${COLLECT_NAMES+set}" != Xset; then
8703 COLLECT_NAMES=
8704 export COLLECT_NAMES
8705 fi
8706 ;;
8707esac
8708
8709# Global variables:
8710ofile=libtool
8711can_build_shared=yes
8712
8713# All known linkers require a `.a' archive for static linking (except MSVC,
8714# which needs '.lib').
8715libext=a
8716
8717with_gnu_ld="$lt_cv_prog_gnu_ld"
8718
8719old_CC="$CC"
8720old_CFLAGS="$CFLAGS"
8721
8722# Set sane defaults for various variables
8723test -z "$CC" && CC=cc
8724test -z "$LTCC" && LTCC=$CC
8725test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8726test -z "$LD" && LD=ld
8727test -z "$ac_objext" && ac_objext=o
8728
8729for cc_temp in $compiler""; do
8730 case $cc_temp in
8731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8733 \-*) ;;
8734 *) break;;
8735 esac
8736done
8737cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8738
8739
8740# Only perform the check for file, if the check method requires it
8741test -z "$MAGIC_CMD" && MAGIC_CMD=file
8742case $deplibs_check_method in
8743file_magic*)
8744 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8746$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8747if ${lt_cv_path_MAGIC_CMD+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749else
8750 case $MAGIC_CMD in
8751[\\/*] | ?:[\\/]*)
8752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8753 ;;
8754*)
8755 lt_save_MAGIC_CMD="$MAGIC_CMD"
8756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8758 for ac_dir in $ac_dummy; do
8759 IFS="$lt_save_ifs"
8760 test -z "$ac_dir" && ac_dir=.
8761 if test -f $ac_dir/${ac_tool_prefix}file; then
8762 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8763 if test -n "$file_magic_test_file"; then
8764 case $deplibs_check_method in
8765 "file_magic "*)
8766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8769 $EGREP "$file_magic_regex" > /dev/null; then
8770 :
8771 else
8772 cat <<_LT_EOF 1>&2
8773
8774*** Warning: the command libtool uses to detect shared libraries,
8775*** $file_magic_cmd, produces output that libtool cannot recognize.
8776*** The result is that libtool may fail to recognize shared libraries
8777*** as such. This will affect the creation of libtool libraries that
8778*** depend on shared libraries, but programs linked with such libtool
8779*** libraries will work regardless of this problem. Nevertheless, you
8780*** may want to report the problem to your system manager and/or to
8781*** bug-libtool@gnu.org
8782
8783_LT_EOF
8784 fi ;;
8785 esac
8786 fi
8787 break
8788 fi
8789 done
8790 IFS="$lt_save_ifs"
8791 MAGIC_CMD="$lt_save_MAGIC_CMD"
8792 ;;
8793esac
8794fi
8795
8796MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797if test -n "$MAGIC_CMD"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8799$as_echo "$MAGIC_CMD" >&6; }
8800else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804
8805
8806
8807
8808
8809if test -z "$lt_cv_path_MAGIC_CMD"; then
8810 if test -n "$ac_tool_prefix"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8812$as_echo_n "checking for file... " >&6; }
8813if ${lt_cv_path_MAGIC_CMD+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 case $MAGIC_CMD in
8817[\\/*] | ?:[\\/]*)
8818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8819 ;;
8820*)
8821 lt_save_MAGIC_CMD="$MAGIC_CMD"
8822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824 for ac_dir in $ac_dummy; do
8825 IFS="$lt_save_ifs"
8826 test -z "$ac_dir" && ac_dir=.
8827 if test -f $ac_dir/file; then
8828 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8829 if test -n "$file_magic_test_file"; then
8830 case $deplibs_check_method in
8831 "file_magic "*)
8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835 $EGREP "$file_magic_regex" > /dev/null; then
8836 :
8837 else
8838 cat <<_LT_EOF 1>&2
8839
8840*** Warning: the command libtool uses to detect shared libraries,
8841*** $file_magic_cmd, produces output that libtool cannot recognize.
8842*** The result is that libtool may fail to recognize shared libraries
8843*** as such. This will affect the creation of libtool libraries that
8844*** depend on shared libraries, but programs linked with such libtool
8845*** libraries will work regardless of this problem. Nevertheless, you
8846*** may want to report the problem to your system manager and/or to
8847*** bug-libtool@gnu.org
8848
8849_LT_EOF
8850 fi ;;
8851 esac
8852 fi
8853 break
8854 fi
8855 done
8856 IFS="$lt_save_ifs"
8857 MAGIC_CMD="$lt_save_MAGIC_CMD"
8858 ;;
8859esac
8860fi
8861
8862MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863if test -n "$MAGIC_CMD"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8865$as_echo "$MAGIC_CMD" >&6; }
8866else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
8869fi
8870
8871
8872 else
8873 MAGIC_CMD=:
8874 fi
8875fi
8876
8877 fi
8878 ;;
8879esac
8880
8881# Use C for the default configuration in the libtool script
8882
8883lt_save_CC="$CC"
8884ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890
8891# Source file extension for C test sources.
8892ac_ext=c
8893
8894# Object file extension for compiled C test sources.
8895objext=o
8896objext=$objext
8897
8898# Code to be used in simple compile tests
8899lt_simple_compile_test_code="int some_variable = 0;"
8900
8901# Code to be used in simple link tests
8902lt_simple_link_test_code='int main(){return(0);}'
8903
8904
8905
8906
8907
8908
8909
8910# If no C compiler was specified, use CC.
8911LTCC=${LTCC-"$CC"}
8912
8913# If no C compiler flags were specified, use CFLAGS.
8914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8915
8916# Allow CC to be a program name with arguments.
8917compiler=$CC
8918
8919# Save the default compiler, since it gets overwritten when the other
8920# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8921compiler_DEFAULT=$CC
8922
8923# save warnings/boilerplate of simple test code
8924ac_outfile=conftest.$ac_objext
8925echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8926eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8927_lt_compiler_boilerplate=`cat conftest.err`
8928$RM conftest*
8929
8930ac_outfile=conftest.$ac_objext
8931echo "$lt_simple_link_test_code" >conftest.$ac_ext
8932eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8933_lt_linker_boilerplate=`cat conftest.err`
8934$RM -r conftest*
8935
8936
8937if test -n "$compiler"; then
8938
8939lt_prog_compiler_no_builtin_flag=
8940
8941if test "$GCC" = yes; then
8942 case $cc_basename in
8943 nvcc*)
8944 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8945 *)
8946 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8947 esac
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8950$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8951if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953else
8954 lt_cv_prog_compiler_rtti_exceptions=no
8955 ac_outfile=conftest.$ac_objext
8956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8957 lt_compiler_flag="-fno-rtti -fno-exceptions"
8958 # Insert the option either (1) after the last *FLAGS variable, or
8959 # (2) before a word containing "conftest.", or (3) at the end.
8960 # Note that $ac_compile itself does not contain backslashes and begins
8961 # with a dollar sign (not a hyphen), so the echo should work correctly.
8962 # The option is referenced via a variable to avoid confusing sed.
8963 lt_compile=`echo "$ac_compile" | $SED \
8964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8966 -e 's:$: $lt_compiler_flag:'`
8967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8968 (eval "$lt_compile" 2>conftest.err)
8969 ac_status=$?
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 if (exit $ac_status) && test -s "$ac_outfile"; then
8973 # The compiler can only warn and ignore the option if not recognized
8974 # So say no if there are warnings other than the usual output.
8975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8978 lt_cv_prog_compiler_rtti_exceptions=yes
8979 fi
8980 fi
8981 $RM conftest*
8982
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8985$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8986
8987if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8988 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8989else
8990 :
8991fi
8992
8993fi
8994
8995
8996
8997
8998
8999
9000 lt_prog_compiler_wl=
9001lt_prog_compiler_pic=
9002lt_prog_compiler_static=
9003
9004
9005 if test "$GCC" = yes; then
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_static='-static'
9008
9009 case $host_os in
9010 aix*)
9011 # All AIX code is PIC.
9012 if test "$host_cpu" = ia64; then
9013 # AIX 5 now supports IA64 processor
9014 lt_prog_compiler_static='-Bstatic'
9015 fi
9016 ;;
9017
9018 amigaos*)
9019 case $host_cpu in
9020 powerpc)
9021 # see comment about AmigaOS4 .so support
9022 lt_prog_compiler_pic='-fPIC'
9023 ;;
9024 m68k)
9025 # FIXME: we need at least 68020 code to build shared libraries, but
9026 # adding the `-m68020' flag to GCC prevents building anything better,
9027 # like `-m68040'.
9028 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9029 ;;
9030 esac
9031 ;;
9032
9033 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9034 # PIC is the default for these OSes.
9035 ;;
9036
9037 mingw* | cygwin* | pw32* | os2* | cegcc*)
9038 # This hack is so that the source file can tell whether it is being
9039 # built for inclusion in a dll (and should export symbols for example).
9040 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9041 # (--disable-auto-import) libraries
9042 lt_prog_compiler_pic='-DDLL_EXPORT'
9043 ;;
9044
9045 darwin* | rhapsody*)
9046 # PIC is the default on this platform
9047 # Common symbols not allowed in MH_DYLIB files
9048 lt_prog_compiler_pic='-fno-common'
9049 ;;
9050
9051 haiku*)
9052 # PIC is the default for Haiku.
9053 # The "-static" flag exists, but is broken.
9054 lt_prog_compiler_static=
9055 ;;
9056
9057 hpux*)
9058 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9059 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9060 # sets the default TLS model and affects inlining.
9061 case $host_cpu in
9062 hppa*64*)
9063 # +Z the default
9064 ;;
9065 *)
9066 lt_prog_compiler_pic='-fPIC'
9067 ;;
9068 esac
9069 ;;
9070
9071 interix[3-9]*)
9072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9073 # Instead, we relocate shared libraries at runtime.
9074 ;;
9075
9076 msdosdjgpp*)
9077 # Just because we use GCC doesn't mean we suddenly get shared libraries
9078 # on systems that don't support them.
9079 lt_prog_compiler_can_build_shared=no
9080 enable_shared=no
9081 ;;
9082
9083 *nto* | *qnx*)
9084 # QNX uses GNU C++, but need to define -shared option too, otherwise
9085 # it will coredump.
9086 lt_prog_compiler_pic='-fPIC -shared'
9087 ;;
9088
9089 sysv4*MP*)
9090 if test -d /usr/nec; then
9091 lt_prog_compiler_pic=-Kconform_pic
9092 fi
9093 ;;
9094
9095 *)
9096 lt_prog_compiler_pic='-fPIC'
9097 ;;
9098 esac
9099
9100 case $cc_basename in
9101 nvcc*) # Cuda Compiler Driver 2.2
9102 lt_prog_compiler_wl='-Xlinker '
9103 if test -n "$lt_prog_compiler_pic"; then
9104 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9105 fi
9106 ;;
9107 esac
9108 else
9109 # PORTME Check for flag to pass linker flags through the system compiler.
9110 case $host_os in
9111 aix*)
9112 lt_prog_compiler_wl='-Wl,'
9113 if test "$host_cpu" = ia64; then
9114 # AIX 5 now supports IA64 processor
9115 lt_prog_compiler_static='-Bstatic'
9116 else
9117 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9118 fi
9119 ;;
9120
9121 mingw* | cygwin* | pw32* | os2* | cegcc*)
9122 # This hack is so that the source file can tell whether it is being
9123 # built for inclusion in a dll (and should export symbols for example).
9124 lt_prog_compiler_pic='-DDLL_EXPORT'
9125 ;;
9126
9127 hpux9* | hpux10* | hpux11*)
9128 lt_prog_compiler_wl='-Wl,'
9129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9130 # not for PA HP-UX.
9131 case $host_cpu in
9132 hppa*64*|ia64*)
9133 # +Z the default
9134 ;;
9135 *)
9136 lt_prog_compiler_pic='+Z'
9137 ;;
9138 esac
9139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9140 lt_prog_compiler_static='${wl}-a ${wl}archive'
9141 ;;
9142
9143 irix5* | irix6* | nonstopux*)
9144 lt_prog_compiler_wl='-Wl,'
9145 # PIC (with -KPIC) is the default.
9146 lt_prog_compiler_static='-non_shared'
9147 ;;
9148
9149 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9150 case $cc_basename in
9151 # old Intel for x86_64 which still supported -KPIC.
9152 ecc*)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-static'
9156 ;;
9157 # icc used to be incompatible with GCC.
9158 # ICC 10 doesn't accept -KPIC any more.
9159 icc* | ifort*)
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-fPIC'
9162 lt_prog_compiler_static='-static'
9163 ;;
9164 # Lahey Fortran 8.1.
9165 lf95*)
9166 lt_prog_compiler_wl='-Wl,'
9167 lt_prog_compiler_pic='--shared'
9168 lt_prog_compiler_static='--static'
9169 ;;
9170 nagfor*)
9171 # NAG Fortran compiler
9172 lt_prog_compiler_wl='-Wl,-Wl,,'
9173 lt_prog_compiler_pic='-PIC'
9174 lt_prog_compiler_static='-Bstatic'
9175 ;;
9176 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9177 # Portland Group compilers (*not* the Pentium gcc compiler,
9178 # which looks to be a dead project)
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-fpic'
9181 lt_prog_compiler_static='-Bstatic'
9182 ;;
9183 ccc*)
9184 lt_prog_compiler_wl='-Wl,'
9185 # All Alpha code is PIC.
9186 lt_prog_compiler_static='-non_shared'
9187 ;;
9188 xl* | bgxl* | bgf* | mpixl*)
9189 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_pic='-qpic'
9192 lt_prog_compiler_static='-qstaticlink'
9193 ;;
9194 *)
9195 case `$CC -V 2>&1 | sed 5q` in
9196 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9197 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9198 lt_prog_compiler_pic='-KPIC'
9199 lt_prog_compiler_static='-Bstatic'
9200 lt_prog_compiler_wl=''
9201 ;;
9202 *Sun\ F* | *Sun*Fortran*)
9203 lt_prog_compiler_pic='-KPIC'
9204 lt_prog_compiler_static='-Bstatic'
9205 lt_prog_compiler_wl='-Qoption ld '
9206 ;;
9207 *Sun\ C*)
9208 # Sun C 5.9
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 lt_prog_compiler_wl='-Wl,'
9212 ;;
9213 *Intel*\ [CF]*Compiler*)
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-fPIC'
9216 lt_prog_compiler_static='-static'
9217 ;;
9218 *Portland\ Group*)
9219 lt_prog_compiler_wl='-Wl,'
9220 lt_prog_compiler_pic='-fpic'
9221 lt_prog_compiler_static='-Bstatic'
9222 ;;
9223 esac
9224 ;;
9225 esac
9226 ;;
9227
9228 newsos6)
9229 lt_prog_compiler_pic='-KPIC'
9230 lt_prog_compiler_static='-Bstatic'
9231 ;;
9232
9233 *nto* | *qnx*)
9234 # QNX uses GNU C++, but need to define -shared option too, otherwise
9235 # it will coredump.
9236 lt_prog_compiler_pic='-fPIC -shared'
9237 ;;
9238
9239 osf3* | osf4* | osf5*)
9240 lt_prog_compiler_wl='-Wl,'
9241 # All OSF/1 code is PIC.
9242 lt_prog_compiler_static='-non_shared'
9243 ;;
9244
9245 rdos*)
9246 lt_prog_compiler_static='-non_shared'
9247 ;;
9248
9249 solaris*)
9250 lt_prog_compiler_pic='-KPIC'
9251 lt_prog_compiler_static='-Bstatic'
9252 case $cc_basename in
9253 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9254 lt_prog_compiler_wl='-Qoption ld ';;
9255 *)
9256 lt_prog_compiler_wl='-Wl,';;
9257 esac
9258 ;;
9259
9260 sunos4*)
9261 lt_prog_compiler_wl='-Qoption ld '
9262 lt_prog_compiler_pic='-PIC'
9263 lt_prog_compiler_static='-Bstatic'
9264 ;;
9265
9266 sysv4 | sysv4.2uw2* | sysv4.3*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-Bstatic'
9270 ;;
9271
9272 sysv4*MP*)
9273 if test -d /usr/nec ;then
9274 lt_prog_compiler_pic='-Kconform_pic'
9275 lt_prog_compiler_static='-Bstatic'
9276 fi
9277 ;;
9278
9279 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='-KPIC'
9282 lt_prog_compiler_static='-Bstatic'
9283 ;;
9284
9285 unicos*)
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_can_build_shared=no
9288 ;;
9289
9290 uts4*)
9291 lt_prog_compiler_pic='-pic'
9292 lt_prog_compiler_static='-Bstatic'
9293 ;;
9294
9295 *)
9296 lt_prog_compiler_can_build_shared=no
9297 ;;
9298 esac
9299 fi
9300
9301case $host_os in
9302 # For platforms which do not support PIC, -DPIC is meaningless:
9303 *djgpp*)
9304 lt_prog_compiler_pic=
9305 ;;
9306 *)
9307 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9308 ;;
9309esac
9310
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9312$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9313if ${lt_cv_prog_compiler_pic+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315else
9316 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9319$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9320lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9321
9322#
9323# Check to make sure the PIC flag actually works.
9324#
9325if test -n "$lt_prog_compiler_pic"; then
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9327$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9328if ${lt_cv_prog_compiler_pic_works+:} false; then :
9329 $as_echo_n "(cached) " >&6
9330else
9331 lt_cv_prog_compiler_pic_works=no
9332 ac_outfile=conftest.$ac_objext
9333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9334 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9335 # Insert the option either (1) after the last *FLAGS variable, or
9336 # (2) before a word containing "conftest.", or (3) at the end.
9337 # Note that $ac_compile itself does not contain backslashes and begins
9338 # with a dollar sign (not a hyphen), so the echo should work correctly.
9339 # The option is referenced via a variable to avoid confusing sed.
9340 lt_compile=`echo "$ac_compile" | $SED \
9341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9343 -e 's:$: $lt_compiler_flag:'`
9344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9345 (eval "$lt_compile" 2>conftest.err)
9346 ac_status=$?
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 if (exit $ac_status) && test -s "$ac_outfile"; then
9350 # The compiler can only warn and ignore the option if not recognized
9351 # So say no if there are warnings other than the usual output.
9352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9355 lt_cv_prog_compiler_pic_works=yes
9356 fi
9357 fi
9358 $RM conftest*
9359
9360fi
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9362$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9363
9364if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9365 case $lt_prog_compiler_pic in
9366 "" | " "*) ;;
9367 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9368 esac
9369else
9370 lt_prog_compiler_pic=
9371 lt_prog_compiler_can_build_shared=no
9372fi
9373
9374fi
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386#
9387# Check to make sure the static flag actually works.
9388#
9389wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9391$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9392if ${lt_cv_prog_compiler_static_works+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394else
9395 lt_cv_prog_compiler_static_works=no
9396 save_LDFLAGS="$LDFLAGS"
9397 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9398 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9399 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9400 # The linker can only warn and ignore the option if not recognized
9401 # So say no if there are warnings
9402 if test -s conftest.err; then
9403 # Append any errors to the config.log.
9404 cat conftest.err 1>&5
9405 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407 if diff conftest.exp conftest.er2 >/dev/null; then
9408 lt_cv_prog_compiler_static_works=yes
9409 fi
9410 else
9411 lt_cv_prog_compiler_static_works=yes
9412 fi
9413 fi
9414 $RM -r conftest*
9415 LDFLAGS="$save_LDFLAGS"
9416
9417fi
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9419$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9420
9421if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9422 :
9423else
9424 lt_prog_compiler_static=
9425fi
9426
9427
9428
9429
9430
9431
9432
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9434$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9435if ${lt_cv_prog_compiler_c_o+:} false; then :
9436 $as_echo_n "(cached) " >&6
9437else
9438 lt_cv_prog_compiler_c_o=no
9439 $RM -r conftest 2>/dev/null
9440 mkdir conftest
9441 cd conftest
9442 mkdir out
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444
9445 lt_compiler_flag="-o out/conftest2.$ac_objext"
9446 # Insert the option either (1) after the last *FLAGS variable, or
9447 # (2) before a word containing "conftest.", or (3) at the end.
9448 # Note that $ac_compile itself does not contain backslashes and begins
9449 # with a dollar sign (not a hyphen), so the echo should work correctly.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>out/conftest.err)
9456 ac_status=$?
9457 cat out/conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9460 then
9461 # The compiler can only warn and ignore the option if not recognized
9462 # So say no if there are warnings
9463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9466 lt_cv_prog_compiler_c_o=yes
9467 fi
9468 fi
9469 chmod u+w . 2>&5
9470 $RM conftest*
9471 # SGI C++ compiler will create directory out/ii_files/ for
9472 # template instantiation
9473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9474 $RM out/* && rmdir out
9475 cd ..
9476 $RM -r conftest
9477 $RM conftest*
9478
9479fi
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9481$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9482
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9489$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9490if ${lt_cv_prog_compiler_c_o+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492else
9493 lt_cv_prog_compiler_c_o=no
9494 $RM -r conftest 2>/dev/null
9495 mkdir conftest
9496 cd conftest
9497 mkdir out
9498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9499
9500 lt_compiler_flag="-o out/conftest2.$ac_objext"
9501 # Insert the option either (1) after the last *FLAGS variable, or
9502 # (2) before a word containing "conftest.", or (3) at the end.
9503 # Note that $ac_compile itself does not contain backslashes and begins
9504 # with a dollar sign (not a hyphen), so the echo should work correctly.
9505 lt_compile=`echo "$ac_compile" | $SED \
9506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9508 -e 's:$: $lt_compiler_flag:'`
9509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9510 (eval "$lt_compile" 2>out/conftest.err)
9511 ac_status=$?
9512 cat out/conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9515 then
9516 # The compiler can only warn and ignore the option if not recognized
9517 # So say no if there are warnings
9518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler_c_o=yes
9522 fi
9523 fi
9524 chmod u+w . 2>&5
9525 $RM conftest*
9526 # SGI C++ compiler will create directory out/ii_files/ for
9527 # template instantiation
9528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9529 $RM out/* && rmdir out
9530 cd ..
9531 $RM -r conftest
9532 $RM conftest*
9533
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9536$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9537
9538
9539
9540
9541hard_links="nottested"
9542if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9543 # do not overwrite the value of need_locks provided by the user
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9545$as_echo_n "checking if we can lock with hard links... " >&6; }
9546 hard_links=yes
9547 $RM conftest*
9548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9549 touch conftest.a
9550 ln conftest.a conftest.b 2>&5 || hard_links=no
9551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9553$as_echo "$hard_links" >&6; }
9554 if test "$hard_links" = no; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9556$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9557 need_locks=warn
9558 fi
9559else
9560 need_locks=no
9561fi
9562
9563
9564
9565
9566
9567
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9569$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9570
9571 runpath_var=
9572 allow_undefined_flag=
9573 always_export_symbols=no
9574 archive_cmds=
9575 archive_expsym_cmds=
9576 compiler_needs_object=no
9577 enable_shared_with_static_runtimes=no
9578 export_dynamic_flag_spec=
9579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9580 hardcode_automatic=no
9581 hardcode_direct=no
9582 hardcode_direct_absolute=no
9583 hardcode_libdir_flag_spec=
9584 hardcode_libdir_separator=
9585 hardcode_minus_L=no
9586 hardcode_shlibpath_var=unsupported
9587 inherit_rpath=no
9588 link_all_deplibs=unknown
9589 module_cmds=
9590 module_expsym_cmds=
9591 old_archive_from_new_cmds=
9592 old_archive_from_expsyms_cmds=
9593 thread_safe_flag_spec=
9594 whole_archive_flag_spec=
9595 # include_expsyms should be a list of space-separated symbols to be *always*
9596 # included in the symbol list
9597 include_expsyms=
9598 # exclude_expsyms can be an extended regexp of symbols to exclude
9599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9601 # as well as any symbol that contains `d'.
9602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9604 # platforms (ab)use it in PIC code, but their linkers get confused if
9605 # the symbol is explicitly referenced. Since portable code cannot
9606 # rely on this symbol name, it's probably fine to never include it in
9607 # preloaded symbol tables.
9608 # Exclude shared library initialization/finalization symbols.
9609 extract_expsyms_cmds=
9610
9611 case $host_os in
9612 cygwin* | mingw* | pw32* | cegcc*)
9613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9614 # When not using gcc, we currently assume that we are using
9615 # Microsoft Visual C++.
9616 if test "$GCC" != yes; then
9617 with_gnu_ld=no
9618 fi
9619 ;;
9620 interix*)
9621 # we just hope/assume this is gcc and not c89 (= MSVC++)
9622 with_gnu_ld=yes
9623 ;;
9624 openbsd*)
9625 with_gnu_ld=no
9626 ;;
9627 esac
9628
9629 ld_shlibs=yes
9630
9631 # On some targets, GNU ld is compatible enough with the native linker
9632 # that we're better off using the native interface for both.
9633 lt_use_gnu_ld_interface=no
9634 if test "$with_gnu_ld" = yes; then
9635 case $host_os in
9636 aix*)
9637 # The AIX port of GNU ld has always aspired to compatibility
9638 # with the native linker. However, as the warning in the GNU ld
9639 # block says, versions before 2.19.5* couldn't really create working
9640 # shared libraries, regardless of the interface used.
9641 case `$LD -v 2>&1` in
9642 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9643 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9644 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9645 *)
9646 lt_use_gnu_ld_interface=yes
9647 ;;
9648 esac
9649 ;;
9650 *)
9651 lt_use_gnu_ld_interface=yes
9652 ;;
9653 esac
9654 fi
9655
9656 if test "$lt_use_gnu_ld_interface" = yes; then
9657 # If archive_cmds runs LD, not CC, wlarc should be empty
9658 wlarc='${wl}'
9659
9660 # Set some defaults for GNU ld with shared library support. These
9661 # are reset later if shared libraries are not supported. Putting them
9662 # here allows them to be overridden if necessary.
9663 runpath_var=LD_RUN_PATH
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 export_dynamic_flag_spec='${wl}--export-dynamic'
9666 # ancient GNU ld didn't support --whole-archive et. al.
9667 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9669 else
9670 whole_archive_flag_spec=
9671 fi
9672 supports_anon_versioning=no
9673 case `$LD -v 2>&1` in
9674 *GNU\ gold*) supports_anon_versioning=yes ;;
9675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9678 *\ 2.11.*) ;; # other 2.11 versions
9679 *) supports_anon_versioning=yes ;;
9680 esac
9681
9682 # See if GNU ld supports shared libraries.
9683 case $host_os in
9684 aix[3-9]*)
9685 # On AIX/PPC, the GNU linker is very broken
9686 if test "$host_cpu" != ia64; then
9687 ld_shlibs=no
9688 cat <<_LT_EOF 1>&2
9689
9690*** Warning: the GNU linker, at least up to release 2.19, is reported
9691*** to be unable to reliably create shared libraries on AIX.
9692*** Therefore, libtool is disabling shared libraries support. If you
9693*** really care for shared libraries, you may want to install binutils
9694*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9695*** You will then need to restart the configuration process.
9696
9697_LT_EOF
9698 fi
9699 ;;
9700
9701 amigaos*)
9702 case $host_cpu in
9703 powerpc)
9704 # see comment about AmigaOS4 .so support
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 archive_expsym_cmds=''
9707 ;;
9708 m68k)
9709 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)'
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_minus_L=yes
9712 ;;
9713 esac
9714 ;;
9715
9716 beos*)
9717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9718 allow_undefined_flag=unsupported
9719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9720 # support --undefined. This deserves some investigation. FIXME
9721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722 else
9723 ld_shlibs=no
9724 fi
9725 ;;
9726
9727 cygwin* | mingw* | pw32* | cegcc*)
9728 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9729 # as there is no search path for DLLs.
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 export_dynamic_flag_spec='${wl}--export-all-symbols'
9732 allow_undefined_flag=unsupported
9733 always_export_symbols=no
9734 enable_shared_with_static_runtimes=yes
9735 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'
9736 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9737
9738 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9740 # If the export-symbols file already is a .def file (1st line
9741 # is EXPORTS), use it as is; otherwise, prepend...
9742 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9743 cp $export_symbols $output_objdir/$soname.def;
9744 else
9745 echo EXPORTS > $output_objdir/$soname.def;
9746 cat $export_symbols >> $output_objdir/$soname.def;
9747 fi~
9748 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9749 else
9750 ld_shlibs=no
9751 fi
9752 ;;
9753
9754 haiku*)
9755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9756 link_all_deplibs=yes
9757 ;;
9758
9759 interix[3-9]*)
9760 hardcode_direct=no
9761 hardcode_shlibpath_var=no
9762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9763 export_dynamic_flag_spec='${wl}-E'
9764 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9765 # Instead, shared libraries are loaded at an image base (0x10000000 by
9766 # default) and relocated if they conflict, which is a slow very memory
9767 # consuming and fragmenting process. To avoid this, we pick a random,
9768 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9769 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9771 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'
9772 ;;
9773
9774 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9775 tmp_diet=no
9776 if test "$host_os" = linux-dietlibc; then
9777 case $cc_basename in
9778 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9779 esac
9780 fi
9781 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9782 && test "$tmp_diet" = no
9783 then
9784 tmp_addflag=' $pic_flag'
9785 tmp_sharedflag='-shared'
9786 case $cc_basename,$host_cpu in
9787 pgcc*) # Portland Group C compiler
9788 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'
9789 tmp_addflag=' $pic_flag'
9790 ;;
9791 pgf77* | pgf90* | pgf95* | pgfortran*)
9792 # Portland Group f77 and f90 compilers
9793 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'
9794 tmp_addflag=' $pic_flag -Mnomain' ;;
9795 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9796 tmp_addflag=' -i_dynamic' ;;
9797 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9798 tmp_addflag=' -i_dynamic -nofor_main' ;;
9799 ifc* | ifort*) # Intel Fortran compiler
9800 tmp_addflag=' -nofor_main' ;;
9801 lf95*) # Lahey Fortran 8.1
9802 whole_archive_flag_spec=
9803 tmp_sharedflag='--shared' ;;
9804 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9805 tmp_sharedflag='-qmkshrobj'
9806 tmp_addflag= ;;
9807 nvcc*) # Cuda Compiler Driver 2.2
9808 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'
9809 compiler_needs_object=yes
9810 ;;
9811 esac
9812 case `$CC -V 2>&1 | sed 5q` in
9813 *Sun\ C*) # Sun C 5.9
9814 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'
9815 compiler_needs_object=yes
9816 tmp_sharedflag='-G' ;;
9817 *Sun\ F*) # Sun Fortran 8.3
9818 tmp_sharedflag='-G' ;;
9819 esac
9820 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821
9822 if test "x$supports_anon_versioning" = xyes; then
9823 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9825 echo "local: *; };" >> $output_objdir/$libname.ver~
9826 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9827 fi
9828
9829 case $cc_basename in
9830 xlf* | bgf* | bgxlf* | mpixlf*)
9831 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9832 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9834 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9835 if test "x$supports_anon_versioning" = xyes; then
9836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9838 echo "local: *; };" >> $output_objdir/$libname.ver~
9839 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9840 fi
9841 ;;
9842 esac
9843 else
9844 ld_shlibs=no
9845 fi
9846 ;;
9847
9848 netbsd*)
9849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9850 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9851 wlarc=
9852 else
9853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9855 fi
9856 ;;
9857
9858 solaris*)
9859 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9860 ld_shlibs=no
9861 cat <<_LT_EOF 1>&2
9862
9863*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9864*** create shared libraries on Solaris systems. Therefore, libtool
9865*** is disabling shared libraries support. We urge you to upgrade GNU
9866*** binutils to release 2.9.1 or newer. Another option is to modify
9867*** your PATH or compiler configuration so that the native linker is
9868*** used, and then restart.
9869
9870_LT_EOF
9871 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878
9879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9880 case `$LD -v 2>&1` in
9881 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9882 ld_shlibs=no
9883 cat <<_LT_EOF 1>&2
9884
9885*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9886*** reliably create shared libraries on SCO systems. Therefore, libtool
9887*** is disabling shared libraries support. We urge you to upgrade GNU
9888*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9889*** your PATH or compiler configuration so that the native linker is
9890*** used, and then restart.
9891
9892_LT_EOF
9893 ;;
9894 *)
9895 # For security reasons, it is highly recommended that you always
9896 # use absolute paths for naming shared libraries, and exclude the
9897 # DT_RUNPATH tag from executables and libraries. But doing so
9898 # requires that you compile everything twice, which is a pain.
9899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9903 else
9904 ld_shlibs=no
9905 fi
9906 ;;
9907 esac
9908 ;;
9909
9910 sunos4*)
9911 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912 wlarc=
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 *)
9918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925 esac
9926
9927 if test "$ld_shlibs" = no; then
9928 runpath_var=
9929 hardcode_libdir_flag_spec=
9930 export_dynamic_flag_spec=
9931 whole_archive_flag_spec=
9932 fi
9933 else
9934 # PORTME fill in a description of your system's linker (not GNU ld)
9935 case $host_os in
9936 aix3*)
9937 allow_undefined_flag=unsupported
9938 always_export_symbols=yes
9939 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'
9940 # Note: this linker hardcodes the directories in LIBPATH if there
9941 # are no directories specified by -L.
9942 hardcode_minus_L=yes
9943 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9944 # Neither direct hardcoding nor static linking is supported with a
9945 # broken collect2.
9946 hardcode_direct=unsupported
9947 fi
9948 ;;
9949
9950 aix[4-9]*)
9951 if test "$host_cpu" = ia64; then
9952 # On IA64, the linker does run time linking by default, so we don't
9953 # have to do anything special.
9954 aix_use_runtimelinking=no
9955 exp_sym_flag='-Bexport'
9956 no_entry_flag=""
9957 else
9958 # If we're using GNU nm, then we don't want the "-C" option.
9959 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9960 # Also, AIX nm treats weak defined symbols like other global
9961 # defined symbols, whereas GNU nm marks them as "W".
9962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9963 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9964 else
9965 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9966 fi
9967 aix_use_runtimelinking=no
9968
9969 # Test if we are trying to use run time linking or normal
9970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9971 # need to do runtime linking.
9972 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9973 for ld_flag in $LDFLAGS; do
9974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9975 aix_use_runtimelinking=yes
9976 break
9977 fi
9978 done
9979 ;;
9980 esac
9981
9982 exp_sym_flag='-bexport'
9983 no_entry_flag='-bnoentry'
9984 fi
9985
9986 # When large executables or shared objects are built, AIX ld can
9987 # have problems creating the table of contents. If linking a library
9988 # or program results in "error TOC overflow" add -mminimal-toc to
9989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9991
9992 archive_cmds=''
9993 hardcode_direct=yes
9994 hardcode_direct_absolute=yes
9995 hardcode_libdir_separator=':'
9996 link_all_deplibs=yes
9997 file_list_spec='${wl}-f,'
9998
9999 if test "$GCC" = yes; then
10000 case $host_os in aix4.[012]|aix4.[012].*)
10001 # We only want to do this on AIX 4.2 and lower, the check
10002 # below for broken collect2 doesn't work under 4.3+
10003 collect2name=`${CC} -print-prog-name=collect2`
10004 if test -f "$collect2name" &&
10005 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10006 then
10007 # We have reworked collect2
10008 :
10009 else
10010 # We have old collect2
10011 hardcode_direct=unsupported
10012 # It fails to find uninstalled libraries when the uninstalled
10013 # path is not listed in the libpath. Setting hardcode_minus_L
10014 # to unsupported forces relinking
10015 hardcode_minus_L=yes
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_libdir_separator=
10018 fi
10019 ;;
10020 esac
10021 shared_flag='-shared'
10022 if test "$aix_use_runtimelinking" = yes; then
10023 shared_flag="$shared_flag "'${wl}-G'
10024 fi
10025 else
10026 # not using gcc
10027 if test "$host_cpu" = ia64; then
10028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10029 # chokes on -Wl,-G. The following line is correct:
10030 shared_flag='-G'
10031 else
10032 if test "$aix_use_runtimelinking" = yes; then
10033 shared_flag='${wl}-G'
10034 else
10035 shared_flag='${wl}-bM:SRE'
10036 fi
10037 fi
10038 fi
10039
10040 export_dynamic_flag_spec='${wl}-bexpall'
10041 # It seems that -bexpall does not export symbols beginning with
10042 # underscore (_), so it is better to generate a list of symbols to export.
10043 always_export_symbols=yes
10044 if test "$aix_use_runtimelinking" = yes; then
10045 # Warning - without using the other runtime loading flags (-brtl),
10046 # -berok will link without error, but may produce a broken library.
10047 allow_undefined_flag='-berok'
10048 # Determine the default libpath from the value encoded in an
10049 # empty executable.
10050 if test "${lt_cv_aix_libpath+set}" = set; then
10051 aix_libpath=$lt_cv_aix_libpath
10052else
10053 if ${lt_cv_aix_libpath_+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055else
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057/* end confdefs.h. */
10058
10059int
10060main ()
10061{
10062
10063 ;
10064 return 0;
10065}
10066_ACEOF
10067if ac_fn_c_try_link "$LINENO"; then :
10068
10069 lt_aix_libpath_sed='
10070 /Import File Strings/,/^$/ {
10071 /^0/ {
10072 s/^0 *\([^ ]*\) *$/\1/
10073 p
10074 }
10075 }'
10076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10077 # Check for a 64-bit object if we didn't find anything.
10078 if test -z "$lt_cv_aix_libpath_"; then
10079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10080 fi
10081fi
10082rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 if test -z "$lt_cv_aix_libpath_"; then
10085 lt_cv_aix_libpath_="/usr/lib:/lib"
10086 fi
10087
10088fi
10089
10090 aix_libpath=$lt_cv_aix_libpath_
10091fi
10092
10093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10094 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10095 else
10096 if test "$host_cpu" = ia64; then
10097 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10098 allow_undefined_flag="-z nodefs"
10099 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"
10100 else
10101 # Determine the default libpath from the value encoded in an
10102 # empty executable.
10103 if test "${lt_cv_aix_libpath+set}" = set; then
10104 aix_libpath=$lt_cv_aix_libpath
10105else
10106 if ${lt_cv_aix_libpath_+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108else
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h. */
10111
10112int
10113main ()
10114{
10115
10116 ;
10117 return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"; then :
10121
10122 lt_aix_libpath_sed='
10123 /Import File Strings/,/^$/ {
10124 /^0/ {
10125 s/^0 *\([^ ]*\) *$/\1/
10126 p
10127 }
10128 }'
10129 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 # Check for a 64-bit object if we didn't find anything.
10131 if test -z "$lt_cv_aix_libpath_"; then
10132 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133 fi
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 if test -z "$lt_cv_aix_libpath_"; then
10138 lt_cv_aix_libpath_="/usr/lib:/lib"
10139 fi
10140
10141fi
10142
10143 aix_libpath=$lt_cv_aix_libpath_
10144fi
10145
10146 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10147 # Warning - without using the other run time loading flags,
10148 # -berok will link without error, but may produce a broken library.
10149 no_undefined_flag=' ${wl}-bernotok'
10150 allow_undefined_flag=' ${wl}-berok'
10151 if test "$with_gnu_ld" = yes; then
10152 # We only use this code for GNU lds that support --whole-archive.
10153 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10154 else
10155 # Exported symbols can be pulled into shared objects from archives
10156 whole_archive_flag_spec='$convenience'
10157 fi
10158 archive_cmds_need_lc=yes
10159 # This is similar to how AIX traditionally builds its shared libraries.
10160 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10161 fi
10162 fi
10163 ;;
10164
10165 amigaos*)
10166 case $host_cpu in
10167 powerpc)
10168 # see comment about AmigaOS4 .so support
10169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170 archive_expsym_cmds=''
10171 ;;
10172 m68k)
10173 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)'
10174 hardcode_libdir_flag_spec='-L$libdir'
10175 hardcode_minus_L=yes
10176 ;;
10177 esac
10178 ;;
10179
10180 bsdi[45]*)
10181 export_dynamic_flag_spec=-rdynamic
10182 ;;
10183
10184 cygwin* | mingw* | pw32* | cegcc*)
10185 # When not using gcc, we currently assume that we are using
10186 # Microsoft Visual C++.
10187 # hardcode_libdir_flag_spec is actually meaningless, as there is
10188 # no search path for DLLs.
10189 case $cc_basename in
10190 cl*)
10191 # Native MSVC
10192 hardcode_libdir_flag_spec=' '
10193 allow_undefined_flag=unsupported
10194 always_export_symbols=yes
10195 file_list_spec='@'
10196 # Tell ltmain to make .lib files, not .a files.
10197 libext=lib
10198 # Tell ltmain to make .dll files, not .so files.
10199 shrext_cmds=".dll"
10200 # FIXME: Setting linknames here is a bad hack.
10201 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10203 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10204 else
10205 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10206 fi~
10207 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10208 linknames='
10209 # The linker will not automatically build a static lib if we build a DLL.
10210 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10211 enable_shared_with_static_runtimes=yes
10212 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10214 # Don't use ranlib
10215 old_postinstall_cmds='chmod 644 $oldlib'
10216 postlink_cmds='lt_outputfile="@OUTPUT@"~
10217 lt_tool_outputfile="@TOOL_OUTPUT@"~
10218 case $lt_outputfile in
10219 *.exe|*.EXE) ;;
10220 *)
10221 lt_outputfile="$lt_outputfile.exe"
10222 lt_tool_outputfile="$lt_tool_outputfile.exe"
10223 ;;
10224 esac~
10225 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10226 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10227 $RM "$lt_outputfile.manifest";
10228 fi'
10229 ;;
10230 *)
10231 # Assume MSVC wrapper
10232 hardcode_libdir_flag_spec=' '
10233 allow_undefined_flag=unsupported
10234 # Tell ltmain to make .lib files, not .a files.
10235 libext=lib
10236 # Tell ltmain to make .dll files, not .so files.
10237 shrext_cmds=".dll"
10238 # FIXME: Setting linknames here is a bad hack.
10239 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10240 # The linker will automatically build a .lib file if we build a DLL.
10241 old_archive_from_new_cmds='true'
10242 # FIXME: Should let the user specify the lib program.
10243 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10244 enable_shared_with_static_runtimes=yes
10245 ;;
10246 esac
10247 ;;
10248
10249 darwin* | rhapsody*)
10250
10251
10252 archive_cmds_need_lc=no
10253 hardcode_direct=no
10254 hardcode_automatic=yes
10255 hardcode_shlibpath_var=unsupported
10256 if test "$lt_cv_ld_force_load" = "yes"; then
10257 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\"`'
10258
10259 else
10260 whole_archive_flag_spec=''
10261 fi
10262 link_all_deplibs=yes
10263 allow_undefined_flag="$_lt_dar_allow_undefined"
10264 case $cc_basename in
10265 ifort*) _lt_dar_can_shared=yes ;;
10266 *) _lt_dar_can_shared=$GCC ;;
10267 esac
10268 if test "$_lt_dar_can_shared" = "yes"; then
10269 output_verbose_link_cmd=func_echo_all
10270 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10271 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10272 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}"
10273 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}"
10274
10275 else
10276 ld_shlibs=no
10277 fi
10278
10279 ;;
10280
10281 dgux*)
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_shlibpath_var=no
10285 ;;
10286
10287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10288 # support. Future versions do this automatically, but an explicit c++rt0.o
10289 # does not break anything, and helps significantly (at the cost of a little
10290 # extra space).
10291 freebsd2.2*)
10292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10293 hardcode_libdir_flag_spec='-R$libdir'
10294 hardcode_direct=yes
10295 hardcode_shlibpath_var=no
10296 ;;
10297
10298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10299 freebsd2.*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_direct=yes
10302 hardcode_minus_L=yes
10303 hardcode_shlibpath_var=no
10304 ;;
10305
10306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10307 freebsd* | dragonfly*)
10308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309 hardcode_libdir_flag_spec='-R$libdir'
10310 hardcode_direct=yes
10311 hardcode_shlibpath_var=no
10312 ;;
10313
10314 hpux9*)
10315 if test "$GCC" = yes; then
10316 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10317 else
10318 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10319 fi
10320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10321 hardcode_libdir_separator=:
10322 hardcode_direct=yes
10323
10324 # hardcode_minus_L: Not really in the search PATH,
10325 # but as the default location of the library.
10326 hardcode_minus_L=yes
10327 export_dynamic_flag_spec='${wl}-E'
10328 ;;
10329
10330 hpux10*)
10331 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10332 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10333 else
10334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10335 fi
10336 if test "$with_gnu_ld" = no; then
10337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10338 hardcode_libdir_separator=:
10339 hardcode_direct=yes
10340 hardcode_direct_absolute=yes
10341 export_dynamic_flag_spec='${wl}-E'
10342 # hardcode_minus_L: Not really in the search PATH,
10343 # but as the default location of the library.
10344 hardcode_minus_L=yes
10345 fi
10346 ;;
10347
10348 hpux11*)
10349 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10350 case $host_cpu in
10351 hppa*64*)
10352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 ;;
10354 ia64*)
10355 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 *)
10358 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10359 ;;
10360 esac
10361 else
10362 case $host_cpu in
10363 hppa*64*)
10364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 ;;
10366 ia64*)
10367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10368 ;;
10369 *)
10370
10371 # Older versions of the 11.00 compiler do not understand -b yet
10372 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10374$as_echo_n "checking if $CC understands -b... " >&6; }
10375if ${lt_cv_prog_compiler__b+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377else
10378 lt_cv_prog_compiler__b=no
10379 save_LDFLAGS="$LDFLAGS"
10380 LDFLAGS="$LDFLAGS -b"
10381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10383 # The linker can only warn and ignore the option if not recognized
10384 # So say no if there are warnings
10385 if test -s conftest.err; then
10386 # Append any errors to the config.log.
10387 cat conftest.err 1>&5
10388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10390 if diff conftest.exp conftest.er2 >/dev/null; then
10391 lt_cv_prog_compiler__b=yes
10392 fi
10393 else
10394 lt_cv_prog_compiler__b=yes
10395 fi
10396 fi
10397 $RM -r conftest*
10398 LDFLAGS="$save_LDFLAGS"
10399
10400fi
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10402$as_echo "$lt_cv_prog_compiler__b" >&6; }
10403
10404if test x"$lt_cv_prog_compiler__b" = xyes; then
10405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10406else
10407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10408fi
10409
10410 ;;
10411 esac
10412 fi
10413 if test "$with_gnu_ld" = no; then
10414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10415 hardcode_libdir_separator=:
10416
10417 case $host_cpu in
10418 hppa*64*|ia64*)
10419 hardcode_direct=no
10420 hardcode_shlibpath_var=no
10421 ;;
10422 *)
10423 hardcode_direct=yes
10424 hardcode_direct_absolute=yes
10425 export_dynamic_flag_spec='${wl}-E'
10426
10427 # hardcode_minus_L: Not really in the search PATH,
10428 # but as the default location of the library.
10429 hardcode_minus_L=yes
10430 ;;
10431 esac
10432 fi
10433 ;;
10434
10435 irix5* | irix6* | nonstopux*)
10436 if test "$GCC" = yes; then
10437 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'
10438 # Try to use the -exported_symbol ld option, if it does not
10439 # work, assume that -exports_file does not work either and
10440 # implicitly export all symbols.
10441 # This should be the same for all languages, so no per-tag cache variable.
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10443$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10444if ${lt_cv_irix_exported_symbol+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446else
10447 save_LDFLAGS="$LDFLAGS"
10448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h. */
10451int foo (void) { return 0; }
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454 lt_cv_irix_exported_symbol=yes
10455else
10456 lt_cv_irix_exported_symbol=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460 LDFLAGS="$save_LDFLAGS"
10461fi
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10463$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10464 if test "$lt_cv_irix_exported_symbol" = yes; then
10465 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'
10466 fi
10467 else
10468 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'
10469 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'
10470 fi
10471 archive_cmds_need_lc='no'
10472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10473 hardcode_libdir_separator=:
10474 inherit_rpath=yes
10475 link_all_deplibs=yes
10476 ;;
10477
10478 netbsd*)
10479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10481 else
10482 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10483 fi
10484 hardcode_libdir_flag_spec='-R$libdir'
10485 hardcode_direct=yes
10486 hardcode_shlibpath_var=no
10487 ;;
10488
10489 newsos6)
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_direct=yes
10492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator=:
10494 hardcode_shlibpath_var=no
10495 ;;
10496
10497 *nto* | *qnx*)
10498 ;;
10499
10500 openbsd*)
10501 if test -f /usr/libexec/ld.so; then
10502 hardcode_direct=yes
10503 hardcode_shlibpath_var=no
10504 hardcode_direct_absolute=yes
10505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10509 export_dynamic_flag_spec='${wl}-E'
10510 else
10511 case $host_os in
10512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_libdir_flag_spec='-R$libdir'
10515 ;;
10516 *)
10517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10519 ;;
10520 esac
10521 fi
10522 else
10523 ld_shlibs=no
10524 fi
10525 ;;
10526
10527 os2*)
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_minus_L=yes
10530 allow_undefined_flag=unsupported
10531 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10532 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10533 ;;
10534
10535 osf3*)
10536 if test "$GCC" = yes; then
10537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10538 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'
10539 else
10540 allow_undefined_flag=' -expect_unresolved \*'
10541 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'
10542 fi
10543 archive_cmds_need_lc='no'
10544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10545 hardcode_libdir_separator=:
10546 ;;
10547
10548 osf4* | osf5*) # as osf3* with the addition of -msym flag
10549 if test "$GCC" = yes; then
10550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10551 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'
10552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10553 else
10554 allow_undefined_flag=' -expect_unresolved \*'
10555 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'
10556 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~
10557 $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'
10558
10559 # Both c and cxx compiler support -rpath directly
10560 hardcode_libdir_flag_spec='-rpath $libdir'
10561 fi
10562 archive_cmds_need_lc='no'
10563 hardcode_libdir_separator=:
10564 ;;
10565
10566 solaris*)
10567 no_undefined_flag=' -z defs'
10568 if test "$GCC" = yes; then
10569 wlarc='${wl}'
10570 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10572 $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'
10573 else
10574 case `$CC -V 2>&1` in
10575 *"Compilers 5.0"*)
10576 wlarc=''
10577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10580 ;;
10581 *)
10582 wlarc='${wl}'
10583 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10585 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10586 ;;
10587 esac
10588 fi
10589 hardcode_libdir_flag_spec='-R$libdir'
10590 hardcode_shlibpath_var=no
10591 case $host_os in
10592 solaris2.[0-5] | solaris2.[0-5].*) ;;
10593 *)
10594 # The compiler driver will combine and reorder linker options,
10595 # but understands `-z linker_flag'. GCC discards it without `$wl',
10596 # but is careful enough not to reorder.
10597 # Supported since Solaris 2.6 (maybe 2.5.1?)
10598 if test "$GCC" = yes; then
10599 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10600 else
10601 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10602 fi
10603 ;;
10604 esac
10605 link_all_deplibs=yes
10606 ;;
10607
10608 sunos4*)
10609 if test "x$host_vendor" = xsequent; then
10610 # Use $CC to link under sequent, because it throws in some extra .o
10611 # files that make .init and .fini sections work.
10612 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10613 else
10614 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10615 fi
10616 hardcode_libdir_flag_spec='-L$libdir'
10617 hardcode_direct=yes
10618 hardcode_minus_L=yes
10619 hardcode_shlibpath_var=no
10620 ;;
10621
10622 sysv4)
10623 case $host_vendor in
10624 sni)
10625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_direct=yes # is this really true???
10627 ;;
10628 siemens)
10629 ## LD is ld it makes a PLAMLIB
10630 ## CC just makes a GrossModule.
10631 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10632 reload_cmds='$CC -r -o $output$reload_objs'
10633 hardcode_direct=no
10634 ;;
10635 motorola)
10636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10638 ;;
10639 esac
10640 runpath_var='LD_RUN_PATH'
10641 hardcode_shlibpath_var=no
10642 ;;
10643
10644 sysv4.3*)
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_shlibpath_var=no
10647 export_dynamic_flag_spec='-Bexport'
10648 ;;
10649
10650 sysv4*MP*)
10651 if test -d /usr/nec; then
10652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 hardcode_shlibpath_var=no
10654 runpath_var=LD_RUN_PATH
10655 hardcode_runpath_var=yes
10656 ld_shlibs=yes
10657 fi
10658 ;;
10659
10660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10661 no_undefined_flag='${wl}-z,text'
10662 archive_cmds_need_lc=no
10663 hardcode_shlibpath_var=no
10664 runpath_var='LD_RUN_PATH'
10665
10666 if test "$GCC" = yes; then
10667 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 else
10670 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 fi
10673 ;;
10674
10675 sysv5* | sco3.2v5* | sco5v6*)
10676 # Note: We can NOT use -z defs as we might desire, because we do not
10677 # link with -lc, and that would cause any symbols used from libc to
10678 # always be unresolved, which means just about no library would
10679 # ever link correctly. If we're not using GNU ld we use -z text
10680 # though, which does catch some bad symbols but isn't as heavy-handed
10681 # as -z defs.
10682 no_undefined_flag='${wl}-z,text'
10683 allow_undefined_flag='${wl}-z,nodefs'
10684 archive_cmds_need_lc=no
10685 hardcode_shlibpath_var=no
10686 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10687 hardcode_libdir_separator=':'
10688 link_all_deplibs=yes
10689 export_dynamic_flag_spec='${wl}-Bexport'
10690 runpath_var='LD_RUN_PATH'
10691
10692 if test "$GCC" = yes; then
10693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 else
10696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 fi
10699 ;;
10700
10701 uts4*)
10702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_shlibpath_var=no
10705 ;;
10706
10707 *)
10708 ld_shlibs=no
10709 ;;
10710 esac
10711
10712 if test x$host_vendor = xsni; then
10713 case $host in
10714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10715 export_dynamic_flag_spec='${wl}-Blargedynsym'
10716 ;;
10717 esac
10718 fi
10719 fi
10720
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10722$as_echo "$ld_shlibs" >&6; }
10723test "$ld_shlibs" = no && can_build_shared=no
10724
10725with_gnu_ld=$with_gnu_ld
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741#
10742# Do we need to explicitly link libc?
10743#
10744case "x$archive_cmds_need_lc" in
10745x|xyes)
10746 # Assume -lc should be added
10747 archive_cmds_need_lc=yes
10748
10749 if test "$enable_shared" = yes && test "$GCC" = yes; then
10750 case $archive_cmds in
10751 *'~'*)
10752 # FIXME: we may have to deal with multi-command sequences.
10753 ;;
10754 '$CC '*)
10755 # Test whether the compiler implicitly links with -lc since on some
10756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10757 # to ld, don't add -lc before -lgcc.
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10760if ${lt_cv_archive_cmds_need_lc+:} false; then :
10761 $as_echo_n "(cached) " >&6
10762else
10763 $RM conftest*
10764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10765
10766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10767 (eval $ac_compile) 2>&5
10768 ac_status=$?
10769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10770 test $ac_status = 0; } 2>conftest.err; then
10771 soname=conftest
10772 lib=conftest
10773 libobjs=conftest.$ac_objext
10774 deplibs=
10775 wl=$lt_prog_compiler_wl
10776 pic_flag=$lt_prog_compiler_pic
10777 compiler_flags=-v
10778 linker_flags=-v
10779 verstring=
10780 output_objdir=.
10781 libname=conftest
10782 lt_save_allow_undefined_flag=$allow_undefined_flag
10783 allow_undefined_flag=
10784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10785 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10786 ac_status=$?
10787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10788 test $ac_status = 0; }
10789 then
10790 lt_cv_archive_cmds_need_lc=no
10791 else
10792 lt_cv_archive_cmds_need_lc=yes
10793 fi
10794 allow_undefined_flag=$lt_save_allow_undefined_flag
10795 else
10796 cat conftest.err 1>&5
10797 fi
10798 $RM conftest*
10799
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10802$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10804 ;;
10805 esac
10806 fi
10807 ;;
10808esac
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10962$as_echo_n "checking dynamic linker characteristics... " >&6; }
10963
10964if test "$GCC" = yes; then
10965 case $host_os in
10966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10967 *) lt_awk_arg="/^libraries:/" ;;
10968 esac
10969 case $host_os in
10970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10971 *) lt_sed_strip_eq="s,=/,/,g" ;;
10972 esac
10973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10974 case $lt_search_path_spec in
10975 *\;*)
10976 # if the path contains ";" then we assume it to be the separator
10977 # otherwise default to the standard path separator (i.e. ":") - it is
10978 # assumed that no part of a normal pathname contains ";" but that should
10979 # okay in the real world where ";" in dirpaths is itself problematic.
10980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10981 ;;
10982 *)
10983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10984 ;;
10985 esac
10986 # Ok, now we have the path, separated by spaces, we can step through it
10987 # and add multilib dir if necessary.
10988 lt_tmp_lt_search_path_spec=
10989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10990 for lt_sys_path in $lt_search_path_spec; do
10991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10993 else
10994 test -d "$lt_sys_path" && \
10995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10996 fi
10997 done
10998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10999BEGIN {RS=" "; FS="/|\n";} {
11000 lt_foo="";
11001 lt_count=0;
11002 for (lt_i = NF; lt_i > 0; lt_i--) {
11003 if ($lt_i != "" && $lt_i != ".") {
11004 if ($lt_i == "..") {
11005 lt_count++;
11006 } else {
11007 if (lt_count == 0) {
11008 lt_foo="/" $lt_i lt_foo;
11009 } else {
11010 lt_count--;
11011 }
11012 }
11013 }
11014 }
11015 if (lt_foo != "") { lt_freq[lt_foo]++; }
11016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11017}'`
11018 # AWK program above erroneously prepends '/' to C:/dos/paths
11019 # for these hosts.
11020 case $host_os in
11021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11023 esac
11024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11025else
11026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11027fi
11028library_names_spec=
11029libname_spec='lib$name'
11030soname_spec=
11031shrext_cmds=".so"
11032postinstall_cmds=
11033postuninstall_cmds=
11034finish_cmds=
11035finish_eval=
11036shlibpath_var=
11037shlibpath_overrides_runpath=unknown
11038version_type=none
11039dynamic_linker="$host_os ld.so"
11040sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041need_lib_prefix=unknown
11042hardcode_into_libs=no
11043
11044# when you set need_version to no, make sure it does not cause -set_version
11045# flags to be left without arguments
11046need_version=unknown
11047
11048case $host_os in
11049aix3*)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052 shlibpath_var=LIBPATH
11053
11054 # AIX 3 has no versioning support, so we append a major version to the name.
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 ;;
11057
11058aix[4-9]*)
11059 version_type=linux # correct to gnu/linux during the next big refactor
11060 need_lib_prefix=no
11061 need_version=no
11062 hardcode_into_libs=yes
11063 if test "$host_cpu" = ia64; then
11064 # AIX 5 supports IA64
11065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 else
11068 # With GCC up to 2.95.x, collect2 would create an import file
11069 # for dependence libraries. The import file would start with
11070 # the line `#! .'. This would cause the generated library to
11071 # depend on `.', always an invalid library. This was fixed in
11072 # development snapshots of GCC prior to 3.0.
11073 case $host_os in
11074 aix4 | aix4.[01] | aix4.[01].*)
11075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11076 echo ' yes '
11077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11078 :
11079 else
11080 can_build_shared=no
11081 fi
11082 ;;
11083 esac
11084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085 # soname into executable. Probably we can add versioning support to
11086 # collect2, so additional links can be useful in future.
11087 if test "$aix_use_runtimelinking" = yes; then
11088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089 # instead of lib<name>.a to let people know that these are not
11090 # typical AIX shared libraries.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 else
11093 # We preserve .a as extension for shared libraries through AIX4.2
11094 # and later when we are not doing run time linking.
11095 library_names_spec='${libname}${release}.a $libname.a'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 fi
11098 shlibpath_var=LIBPATH
11099 fi
11100 ;;
11101
11102amigaos*)
11103 case $host_cpu in
11104 powerpc)
11105 # Since July 2007 AmigaOS4 officially supports .so libraries.
11106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 ;;
11109 m68k)
11110 library_names_spec='$libname.ixlibrary $libname.a'
11111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11113 ;;
11114 esac
11115 ;;
11116
11117beos*)
11118 library_names_spec='${libname}${shared_ext}'
11119 dynamic_linker="$host_os ld.so"
11120 shlibpath_var=LIBRARY_PATH
11121 ;;
11122
11123bsdi[45]*)
11124 version_type=linux # correct to gnu/linux during the next big refactor
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132 # the default ld.so.conf also contains /usr/contrib/lib and
11133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134 # libtool to hard-code these into programs
11135 ;;
11136
11137cygwin* | mingw* | pw32* | cegcc*)
11138 version_type=windows
11139 shrext_cmds=".dll"
11140 need_version=no
11141 need_lib_prefix=no
11142
11143 case $GCC,$cc_basename in
11144 yes,*)
11145 # gcc
11146 library_names_spec='$libname.dll.a'
11147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11148 postinstall_cmds='base_file=`basename \${file}`~
11149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11150 dldir=$destdir/`dirname \$dlpath`~
11151 test -d \$dldir || mkdir -p \$dldir~
11152 $install_prog $dir/$dlname \$dldir/$dlname~
11153 chmod a+x \$dldir/$dlname~
11154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11156 fi'
11157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11158 dlpath=$dir/\$dldll~
11159 $RM \$dlpath'
11160 shlibpath_overrides_runpath=yes
11161
11162 case $host_os in
11163 cygwin*)
11164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11166
11167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11168 ;;
11169 mingw* | cegcc*)
11170 # MinGW DLLs use traditional 'lib' prefix
11171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172 ;;
11173 pw32*)
11174 # pw32 DLLs use 'pw' prefix rather than 'lib'
11175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 ;;
11177 esac
11178 dynamic_linker='Win32 ld.exe'
11179 ;;
11180
11181 *,cl*)
11182 # Native MSVC
11183 libname_spec='$name'
11184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11185 library_names_spec='${libname}.dll.lib'
11186
11187 case $build_os in
11188 mingw*)
11189 sys_lib_search_path_spec=
11190 lt_save_ifs=$IFS
11191 IFS=';'
11192 for lt_path in $LIB
11193 do
11194 IFS=$lt_save_ifs
11195 # Let DOS variable expansion print the short 8.3 style file name.
11196 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11197 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11198 done
11199 IFS=$lt_save_ifs
11200 # Convert to MSYS style.
11201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11202 ;;
11203 cygwin*)
11204 # Convert to unix form, then to dos form, then back to unix form
11205 # but this time dos style (no spaces!) so that the unix form looks
11206 # like /cygdrive/c/PROGRA~1:/cygdr...
11207 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11208 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11209 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11210 ;;
11211 *)
11212 sys_lib_search_path_spec="$LIB"
11213 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11214 # It is most probably a Windows format PATH.
11215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11216 else
11217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11218 fi
11219 # FIXME: find the short name or the path components, as spaces are
11220 # common. (e.g. "Program Files" -> "PROGRA~1")
11221 ;;
11222 esac
11223
11224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11225 postinstall_cmds='base_file=`basename \${file}`~
11226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11227 dldir=$destdir/`dirname \$dlpath`~
11228 test -d \$dldir || mkdir -p \$dldir~
11229 $install_prog $dir/$dlname \$dldir/$dlname'
11230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11231 dlpath=$dir/\$dldll~
11232 $RM \$dlpath'
11233 shlibpath_overrides_runpath=yes
11234 dynamic_linker='Win32 link.exe'
11235 ;;
11236
11237 *)
11238 # Assume MSVC wrapper
11239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11240 dynamic_linker='Win32 ld.exe'
11241 ;;
11242 esac
11243 # FIXME: first we should search . and the directory the executable is in
11244 shlibpath_var=PATH
11245 ;;
11246
11247darwin* | rhapsody*)
11248 dynamic_linker="$host_os dyld"
11249 version_type=darwin
11250 need_lib_prefix=no
11251 need_version=no
11252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11253 soname_spec='${libname}${release}${major}$shared_ext'
11254 shlibpath_overrides_runpath=yes
11255 shlibpath_var=DYLD_LIBRARY_PATH
11256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11257
11258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11260 ;;
11261
11262dgux*)
11263 version_type=linux # correct to gnu/linux during the next big refactor
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 ;;
11270
11271freebsd* | dragonfly*)
11272 # DragonFly does not have aout. When/if they implement a new
11273 # versioning mechanism, adjust this.
11274 if test -x /usr/bin/objformat; then
11275 objformat=`/usr/bin/objformat`
11276 else
11277 case $host_os in
11278 freebsd[23].*) objformat=aout ;;
11279 *) objformat=elf ;;
11280 esac
11281 fi
11282 version_type=freebsd-$objformat
11283 case $version_type in
11284 freebsd-elf*)
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11286 need_version=no
11287 need_lib_prefix=no
11288 ;;
11289 freebsd-*)
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11291 need_version=yes
11292 ;;
11293 esac
11294 shlibpath_var=LD_LIBRARY_PATH
11295 case $host_os in
11296 freebsd2.*)
11297 shlibpath_overrides_runpath=yes
11298 ;;
11299 freebsd3.[01]* | freebsdelf3.[01]*)
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11302 ;;
11303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11305 shlibpath_overrides_runpath=no
11306 hardcode_into_libs=yes
11307 ;;
11308 *) # from 4.6 on, and DragonFly
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11311 ;;
11312 esac
11313 ;;
11314
11315gnu*)
11316 version_type=linux # correct to gnu/linux during the next big refactor
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11324 ;;
11325
11326haiku*)
11327 version_type=linux # correct to gnu/linux during the next big refactor
11328 need_lib_prefix=no
11329 need_version=no
11330 dynamic_linker="$host_os runtime_loader"
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11335 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11336 hardcode_into_libs=yes
11337 ;;
11338
11339hpux9* | hpux10* | hpux11*)
11340 # Give a soname corresponding to the major version so that dld.sl refuses to
11341 # link against other versions.
11342 version_type=sunos
11343 need_lib_prefix=no
11344 need_version=no
11345 case $host_cpu in
11346 ia64*)
11347 shrext_cmds='.so'
11348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.so"
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 if test "X$HPUX_IA64_MODE" = X32; then
11355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356 else
11357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358 fi
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360 ;;
11361 hppa*64*)
11362 shrext_cmds='.sl'
11363 hardcode_into_libs=yes
11364 dynamic_linker="$host_os dld.sl"
11365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 ;;
11372 *)
11373 shrext_cmds='.sl'
11374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=SHLIB_PATH
11376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 ;;
11380 esac
11381 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11382 postinstall_cmds='chmod 555 $lib'
11383 # or fails outright, so override atomically:
11384 install_override_mode=555
11385 ;;
11386
11387interix[3-9]*)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 need_lib_prefix=no
11390 need_version=no
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath=no
11396 hardcode_into_libs=yes
11397 ;;
11398
11399irix5* | irix6* | nonstopux*)
11400 case $host_os in
11401 nonstopux*) version_type=nonstopux ;;
11402 *)
11403 if test "$lt_cv_prog_gnu_ld" = yes; then
11404 version_type=linux # correct to gnu/linux during the next big refactor
11405 else
11406 version_type=irix
11407 fi ;;
11408 esac
11409 need_lib_prefix=no
11410 need_version=no
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11413 case $host_os in
11414 irix5* | nonstopux*)
11415 libsuff= shlibsuff=
11416 ;;
11417 *)
11418 case $LD in # libtool.m4 will add one of these switches to LD
11419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11420 libsuff= shlibsuff= libmagic=32-bit;;
11421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11422 libsuff=32 shlibsuff=N32 libmagic=N32;;
11423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11425 *) libsuff= shlibsuff= libmagic=never-match;;
11426 esac
11427 ;;
11428 esac
11429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11430 shlibpath_overrides_runpath=no
11431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11433 hardcode_into_libs=yes
11434 ;;
11435
11436# No shared lib support for Linux oldld, aout, or coff.
11437linux*oldld* | linux*aout* | linux*coff*)
11438 dynamic_linker=no
11439 ;;
11440
11441# This must be glibc/ELF.
11442linux* | k*bsd*-gnu | kopensolaris*-gnu)
11443 version_type=linux # correct to gnu/linux during the next big refactor
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=no
11451
11452 # Some binutils ld are patched to set DT_RUNPATH
11453 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455else
11456 lt_cv_shlibpath_overrides_runpath=no
11457 save_LDFLAGS=$LDFLAGS
11458 save_libdir=$libdir
11459 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11460 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463
11464int
11465main ()
11466{
11467
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_link "$LINENO"; then :
11473 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11474 lt_cv_shlibpath_overrides_runpath=yes
11475fi
11476fi
11477rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LDFLAGS=$save_LDFLAGS
11480 libdir=$save_libdir
11481
11482fi
11483
11484 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11485
11486 # This implies no fast_install, which is unacceptable.
11487 # Some rework will be needed to allow for fast_install
11488 # before this can be enabled.
11489 hardcode_into_libs=yes
11490
11491 # Add ABI-specific directories to the system library path.
11492 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11493
11494 # Append ld.so.conf contents to the search path
11495 if test -f /etc/ld.so.conf; then
11496 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' ' '`
11497 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11498
11499 fi
11500
11501 # We used to test for /lib/ld.so.1 and disable shared libraries on
11502 # powerpc, because MkLinux only supported shared libraries with the
11503 # GNU dynamic linker. Since this was broken with cross compilers,
11504 # most powerpc-linux boxes support dynamic linking these days and
11505 # people can always --disable-shared, the test was removed, and we
11506 # assume the GNU/Linux dynamic linker is in use.
11507 dynamic_linker='GNU/Linux ld.so'
11508 ;;
11509
11510netbsd*)
11511 version_type=sunos
11512 need_lib_prefix=no
11513 need_version=no
11514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11517 dynamic_linker='NetBSD (a.out) ld.so'
11518 else
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 dynamic_linker='NetBSD ld.elf_so'
11522 fi
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 hardcode_into_libs=yes
11526 ;;
11527
11528newsos6)
11529 version_type=linux # correct to gnu/linux during the next big refactor
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=yes
11533 ;;
11534
11535*nto* | *qnx*)
11536 version_type=qnx
11537 need_lib_prefix=no
11538 need_version=no
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=no
11543 hardcode_into_libs=yes
11544 dynamic_linker='ldqnx.so'
11545 ;;
11546
11547openbsd*)
11548 version_type=sunos
11549 sys_lib_dlsearch_path_spec="/usr/lib"
11550 need_lib_prefix=no
11551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11552 case $host_os in
11553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11554 *) need_version=no ;;
11555 esac
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11560 case $host_os in
11561 openbsd2.[89] | openbsd2.[89].*)
11562 shlibpath_overrides_runpath=no
11563 ;;
11564 *)
11565 shlibpath_overrides_runpath=yes
11566 ;;
11567 esac
11568 else
11569 shlibpath_overrides_runpath=yes
11570 fi
11571 ;;
11572
11573os2*)
11574 libname_spec='$name'
11575 shrext_cmds=".dll"
11576 need_lib_prefix=no
11577 library_names_spec='$libname${shared_ext} $libname.a'
11578 dynamic_linker='OS/2 ld.exe'
11579 shlibpath_var=LIBPATH
11580 ;;
11581
11582osf3* | osf4* | osf5*)
11583 version_type=osf
11584 need_lib_prefix=no
11585 need_version=no
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11591 ;;
11592
11593rdos*)
11594 dynamic_linker=no
11595 ;;
11596
11597solaris*)
11598 version_type=linux # correct to gnu/linux during the next big refactor
11599 need_lib_prefix=no
11600 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=yes
11605 hardcode_into_libs=yes
11606 # ldd complains unless libraries are executable
11607 postinstall_cmds='chmod +x $lib'
11608 ;;
11609
11610sunos4*)
11611 version_type=sunos
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes
11616 if test "$with_gnu_ld" = yes; then
11617 need_lib_prefix=no
11618 fi
11619 need_version=yes
11620 ;;
11621
11622sysv4 | sysv4.3*)
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 case $host_vendor in
11628 sni)
11629 shlibpath_overrides_runpath=no
11630 need_lib_prefix=no
11631 runpath_var=LD_RUN_PATH
11632 ;;
11633 siemens)
11634 need_lib_prefix=no
11635 ;;
11636 motorola)
11637 need_lib_prefix=no
11638 need_version=no
11639 shlibpath_overrides_runpath=no
11640 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11641 ;;
11642 esac
11643 ;;
11644
11645sysv4*MP*)
11646 if test -d /usr/nec ;then
11647 version_type=linux # correct to gnu/linux during the next big refactor
11648 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11649 soname_spec='$libname${shared_ext}.$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 fi
11652 ;;
11653
11654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11655 version_type=freebsd-elf
11656 need_lib_prefix=no
11657 need_version=no
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11663 if test "$with_gnu_ld" = yes; then
11664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11665 else
11666 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11667 case $host_os in
11668 sco3.2v5*)
11669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11670 ;;
11671 esac
11672 fi
11673 sys_lib_dlsearch_path_spec='/usr/lib'
11674 ;;
11675
11676tpf*)
11677 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11678 version_type=linux # correct to gnu/linux during the next big refactor
11679 need_lib_prefix=no
11680 need_version=no
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=no
11684 hardcode_into_libs=yes
11685 ;;
11686
11687uts4*)
11688 version_type=linux # correct to gnu/linux during the next big refactor
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 ;;
11693
11694*)
11695 dynamic_linker=no
11696 ;;
11697esac
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11699$as_echo "$dynamic_linker" >&6; }
11700test "$dynamic_linker" = no && can_build_shared=no
11701
11702variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11703if test "$GCC" = yes; then
11704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11705fi
11706
11707if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11709fi
11710if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11712fi
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11806$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11807hardcode_action=
11808if test -n "$hardcode_libdir_flag_spec" ||
11809 test -n "$runpath_var" ||
11810 test "X$hardcode_automatic" = "Xyes" ; then
11811
11812 # We can hardcode non-existent directories.
11813 if test "$hardcode_direct" != no &&
11814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11815 # have to relink, otherwise we might link with an installed library
11816 # when we should be linking with a yet-to-be-installed one
11817 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11818 test "$hardcode_minus_L" != no; then
11819 # Linking always hardcodes the temporary library directory.
11820 hardcode_action=relink
11821 else
11822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11823 hardcode_action=immediate
11824 fi
11825else
11826 # We cannot hardcode anything, or else we can only hardcode existing
11827 # directories.
11828 hardcode_action=unsupported
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11831$as_echo "$hardcode_action" >&6; }
11832
11833if test "$hardcode_action" = relink ||
11834 test "$inherit_rpath" = yes; then
11835 # Fast installation is not supported
11836 enable_fast_install=no
11837elif test "$shlibpath_overrides_runpath" = yes ||
11838 test "$enable_shared" = no; then
11839 # Fast installation is not necessary
11840 enable_fast_install=needless
11841fi
11842
11843
11844
11845
11846
11847
11848 if test "x$enable_dlopen" != xyes; then
11849 enable_dlopen=unknown
11850 enable_dlopen_self=unknown
11851 enable_dlopen_self_static=unknown
11852else
11853 lt_cv_dlopen=no
11854 lt_cv_dlopen_libs=
11855
11856 case $host_os in
11857 beos*)
11858 lt_cv_dlopen="load_add_on"
11859 lt_cv_dlopen_libs=
11860 lt_cv_dlopen_self=yes
11861 ;;
11862
11863 mingw* | pw32* | cegcc*)
11864 lt_cv_dlopen="LoadLibrary"
11865 lt_cv_dlopen_libs=
11866 ;;
11867
11868 cygwin*)
11869 lt_cv_dlopen="dlopen"
11870 lt_cv_dlopen_libs=
11871 ;;
11872
11873 darwin*)
11874 # if libdl is installed we need to link against it
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11876$as_echo_n "checking for dlopen in -ldl... " >&6; }
11877if ${ac_cv_lib_dl_dlopen+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879else
11880 ac_check_lib_save_LIBS=$LIBS
11881LIBS="-ldl $LIBS"
11882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883/* end confdefs.h. */
11884
11885/* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888#ifdef __cplusplus
11889extern "C"
11890#endif
11891char dlopen ();
11892int
11893main ()
11894{
11895return dlopen ();
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_lib_dl_dlopen=yes
11902else
11903 ac_cv_lib_dl_dlopen=no
11904fi
11905rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11910$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11911if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11913else
11914
11915 lt_cv_dlopen="dyld"
11916 lt_cv_dlopen_libs=
11917 lt_cv_dlopen_self=yes
11918
11919fi
11920
11921 ;;
11922
11923 *)
11924 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11925if test "x$ac_cv_func_shl_load" = xyes; then :
11926 lt_cv_dlopen="shl_load"
11927else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11929$as_echo_n "checking for shl_load in -ldld... " >&6; }
11930if ${ac_cv_lib_dld_shl_load+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 ac_check_lib_save_LIBS=$LIBS
11934LIBS="-ldld $LIBS"
11935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h. */
11937
11938/* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11941#ifdef __cplusplus
11942extern "C"
11943#endif
11944char shl_load ();
11945int
11946main ()
11947{
11948return shl_load ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953if ac_fn_c_try_link "$LINENO"; then :
11954 ac_cv_lib_dld_shl_load=yes
11955else
11956 ac_cv_lib_dld_shl_load=no
11957fi
11958rm -f core conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960LIBS=$ac_check_lib_save_LIBS
11961fi
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11963$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11964if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11965 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11966else
11967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11968if test "x$ac_cv_func_dlopen" = xyes; then :
11969 lt_cv_dlopen="dlopen"
11970else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11972$as_echo_n "checking for dlopen in -ldl... " >&6; }
11973if ${ac_cv_lib_dl_dlopen+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975else
11976 ac_check_lib_save_LIBS=$LIBS
11977LIBS="-ldl $LIBS"
11978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980
11981/* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984#ifdef __cplusplus
11985extern "C"
11986#endif
11987char dlopen ();
11988int
11989main ()
11990{
11991return dlopen ();
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dl_dlopen=yes
11998else
11999 ac_cv_lib_dl_dlopen=no
12000fi
12001rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12006$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12007if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12009else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12011$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12012if ${ac_cv_lib_svld_dlopen+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014else
12015 ac_check_lib_save_LIBS=$LIBS
12016LIBS="-lsvld $LIBS"
12017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018/* end confdefs.h. */
12019
12020/* Override any GCC internal prototype to avoid an error.
12021 Use char because int might match the return type of a GCC
12022 builtin and then its argument prototype would still apply. */
12023#ifdef __cplusplus
12024extern "C"
12025#endif
12026char dlopen ();
12027int
12028main ()
12029{
12030return dlopen ();
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035if ac_fn_c_try_link "$LINENO"; then :
12036 ac_cv_lib_svld_dlopen=yes
12037else
12038 ac_cv_lib_svld_dlopen=no
12039fi
12040rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042LIBS=$ac_check_lib_save_LIBS
12043fi
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12045$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12046if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12048else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12050$as_echo_n "checking for dld_link in -ldld... " >&6; }
12051if ${ac_cv_lib_dld_dld_link+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053else
12054 ac_check_lib_save_LIBS=$LIBS
12055LIBS="-ldld $LIBS"
12056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h. */
12058
12059/* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char dld_link ();
12066int
12067main ()
12068{
12069return dld_link ();
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_dld_dld_link=yes
12076else
12077 ac_cv_lib_dld_dld_link=no
12078fi
12079rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081LIBS=$ac_check_lib_save_LIBS
12082fi
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12084$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12085if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12086 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12087fi
12088
12089
12090fi
12091
12092
12093fi
12094
12095
12096fi
12097
12098
12099fi
12100
12101
12102fi
12103
12104 ;;
12105 esac
12106
12107 if test "x$lt_cv_dlopen" != xno; then
12108 enable_dlopen=yes
12109 else
12110 enable_dlopen=no
12111 fi
12112
12113 case $lt_cv_dlopen in
12114 dlopen)
12115 save_CPPFLAGS="$CPPFLAGS"
12116 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12117
12118 save_LDFLAGS="$LDFLAGS"
12119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12120
12121 save_LIBS="$LIBS"
12122 LIBS="$lt_cv_dlopen_libs $LIBS"
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12125$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12126if ${lt_cv_dlopen_self+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128else
12129 if test "$cross_compiling" = yes; then :
12130 lt_cv_dlopen_self=cross
12131else
12132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12133 lt_status=$lt_dlunknown
12134 cat > conftest.$ac_ext <<_LT_EOF
12135#line $LINENO "configure"
12136#include "confdefs.h"
12137
12138#if HAVE_DLFCN_H
12139#include <dlfcn.h>
12140#endif
12141
12142#include <stdio.h>
12143
12144#ifdef RTLD_GLOBAL
12145# define LT_DLGLOBAL RTLD_GLOBAL
12146#else
12147# ifdef DL_GLOBAL
12148# define LT_DLGLOBAL DL_GLOBAL
12149# else
12150# define LT_DLGLOBAL 0
12151# endif
12152#endif
12153
12154/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12155 find out it does not work in some platform. */
12156#ifndef LT_DLLAZY_OR_NOW
12157# ifdef RTLD_LAZY
12158# define LT_DLLAZY_OR_NOW RTLD_LAZY
12159# else
12160# ifdef DL_LAZY
12161# define LT_DLLAZY_OR_NOW DL_LAZY
12162# else
12163# ifdef RTLD_NOW
12164# define LT_DLLAZY_OR_NOW RTLD_NOW
12165# else
12166# ifdef DL_NOW
12167# define LT_DLLAZY_OR_NOW DL_NOW
12168# else
12169# define LT_DLLAZY_OR_NOW 0
12170# endif
12171# endif
12172# endif
12173# endif
12174#endif
12175
12176/* When -fvisbility=hidden is used, assume the code has been annotated
12177 correspondingly for the symbols needed. */
12178#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12179int fnord () __attribute__((visibility("default")));
12180#endif
12181
12182int fnord () { return 42; }
12183int main ()
12184{
12185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186 int status = $lt_dlunknown;
12187
12188 if (self)
12189 {
12190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12191 else
12192 {
12193 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194 else puts (dlerror ());
12195 }
12196 /* dlclose (self); */
12197 }
12198 else
12199 puts (dlerror ());
12200
12201 return status;
12202}
12203_LT_EOF
12204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12205 (eval $ac_link) 2>&5
12206 ac_status=$?
12207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12208 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12209 (./conftest; exit; ) >&5 2>/dev/null
12210 lt_status=$?
12211 case x$lt_status in
12212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12215 esac
12216 else :
12217 # compilation failed
12218 lt_cv_dlopen_self=no
12219 fi
12220fi
12221rm -fr conftest*
12222
12223
12224fi
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12226$as_echo "$lt_cv_dlopen_self" >&6; }
12227
12228 if test "x$lt_cv_dlopen_self" = xyes; then
12229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12231$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12232if ${lt_cv_dlopen_self_static+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234else
12235 if test "$cross_compiling" = yes; then :
12236 lt_cv_dlopen_self_static=cross
12237else
12238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12239 lt_status=$lt_dlunknown
12240 cat > conftest.$ac_ext <<_LT_EOF
12241#line $LINENO "configure"
12242#include "confdefs.h"
12243
12244#if HAVE_DLFCN_H
12245#include <dlfcn.h>
12246#endif
12247
12248#include <stdio.h>
12249
12250#ifdef RTLD_GLOBAL
12251# define LT_DLGLOBAL RTLD_GLOBAL
12252#else
12253# ifdef DL_GLOBAL
12254# define LT_DLGLOBAL DL_GLOBAL
12255# else
12256# define LT_DLGLOBAL 0
12257# endif
12258#endif
12259
12260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12261 find out it does not work in some platform. */
12262#ifndef LT_DLLAZY_OR_NOW
12263# ifdef RTLD_LAZY
12264# define LT_DLLAZY_OR_NOW RTLD_LAZY
12265# else
12266# ifdef DL_LAZY
12267# define LT_DLLAZY_OR_NOW DL_LAZY
12268# else
12269# ifdef RTLD_NOW
12270# define LT_DLLAZY_OR_NOW RTLD_NOW
12271# else
12272# ifdef DL_NOW
12273# define LT_DLLAZY_OR_NOW DL_NOW
12274# else
12275# define LT_DLLAZY_OR_NOW 0
12276# endif
12277# endif
12278# endif
12279# endif
12280#endif
12281
12282/* When -fvisbility=hidden is used, assume the code has been annotated
12283 correspondingly for the symbols needed. */
12284#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12285int fnord () __attribute__((visibility("default")));
12286#endif
12287
12288int fnord () { return 42; }
12289int main ()
12290{
12291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12292 int status = $lt_dlunknown;
12293
12294 if (self)
12295 {
12296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12297 else
12298 {
12299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12300 else puts (dlerror ());
12301 }
12302 /* dlclose (self); */
12303 }
12304 else
12305 puts (dlerror ());
12306
12307 return status;
12308}
12309_LT_EOF
12310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12311 (eval $ac_link) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12315 (./conftest; exit; ) >&5 2>/dev/null
12316 lt_status=$?
12317 case x$lt_status in
12318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12321 esac
12322 else :
12323 # compilation failed
12324 lt_cv_dlopen_self_static=no
12325 fi
12326fi
12327rm -fr conftest*
12328
12329
12330fi
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12332$as_echo "$lt_cv_dlopen_self_static" >&6; }
12333 fi
12334
12335 CPPFLAGS="$save_CPPFLAGS"
12336 LDFLAGS="$save_LDFLAGS"
12337 LIBS="$save_LIBS"
12338 ;;
12339 esac
12340
12341 case $lt_cv_dlopen_self in
12342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12343 *) enable_dlopen_self=unknown ;;
12344 esac
12345
12346 case $lt_cv_dlopen_self_static in
12347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12348 *) enable_dlopen_self_static=unknown ;;
12349 esac
12350fi
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368striplib=
12369old_striplib=
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12371$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12372if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376$as_echo "yes" >&6; }
12377else
12378# FIXME - insert some real tests, host_os isn't really good enough
12379 case $host_os in
12380 darwin*)
12381 if test -n "$STRIP" ; then
12382 striplib="$STRIP -x"
12383 old_striplib="$STRIP -S"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12385$as_echo "yes" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389 fi
12390 ;;
12391 *)
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
12394 ;;
12395 esac
12396fi
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409 # Report which library types will actually be built
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12411$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12413$as_echo "$can_build_shared" >&6; }
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12416$as_echo_n "checking whether to build shared libraries... " >&6; }
12417 test "$can_build_shared" = "no" && enable_shared=no
12418
12419 # On AIX, shared libraries and static libraries use the same namespace, and
12420 # are all built from PIC.
12421 case $host_os in
12422 aix3*)
12423 test "$enable_shared" = yes && enable_static=no
12424 if test -n "$RANLIB"; then
12425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12426 postinstall_cmds='$RANLIB $lib'
12427 fi
12428 ;;
12429
12430 aix[4-9]*)
12431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12432 test "$enable_shared" = yes && enable_static=no
12433 fi
12434 ;;
12435 esac
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12437$as_echo "$enable_shared" >&6; }
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12440$as_echo_n "checking whether to build static libraries... " >&6; }
12441 # Make sure either enable_shared or enable_static is yes.
12442 test "$enable_shared" = yes || enable_static=yes
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12444$as_echo "$enable_static" >&6; }
12445
12446
12447
12448
12449fi
12450ac_ext=c
12451ac_cpp='$CPP $CPPFLAGS'
12452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12454ac_compiler_gnu=$ac_cv_c_compiler_gnu
12455
12456CC="$lt_save_CC"
12457
12458 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12459 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12460 (test "X$CXX" != "Xg++"))) ; then
12461 ac_ext=cpp
12462ac_cpp='$CXXCPP $CPPFLAGS'
12463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12467$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12468if test -z "$CXXCPP"; then
12469 if ${ac_cv_prog_CXXCPP+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471else
12472 # Double quotes because CXXCPP needs to be expanded
12473 for CXXCPP in "$CXX -E" "/lib/cpp"
12474 do
12475 ac_preproc_ok=false
12476for ac_cxx_preproc_warn_flag in '' yes
12477do
12478 # Use a header file that comes with gcc, so configuring glibc
12479 # with a fresh cross-compiler works.
12480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 # <limits.h> exists even on freestanding compilers.
12482 # On the NeXT, cc -E runs the code through the compiler's parser,
12483 # not just through cpp. "Syntax error" is here to catch this case.
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h. */
12486#ifdef __STDC__
12487# include <limits.h>
12488#else
12489# include <assert.h>
12490#endif
12491 Syntax error
12492_ACEOF
12493if ac_fn_cxx_try_cpp "$LINENO"; then :
12494
12495else
12496 # Broken: fails on valid input.
12497continue
12498fi
12499rm -f conftest.err conftest.i conftest.$ac_ext
12500
12501 # OK, works on sane cases. Now check whether nonexistent headers
12502 # can be detected and how.
12503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h. */
12505#include <ac_nonexistent.h>
12506_ACEOF
12507if ac_fn_cxx_try_cpp "$LINENO"; then :
12508 # Broken: success on invalid input.
12509continue
12510else
12511 # Passes both tests.
12512ac_preproc_ok=:
12513break
12514fi
12515rm -f conftest.err conftest.i conftest.$ac_ext
12516
12517done
12518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12519rm -f conftest.i conftest.err conftest.$ac_ext
12520if $ac_preproc_ok; then :
12521 break
12522fi
12523
12524 done
12525 ac_cv_prog_CXXCPP=$CXXCPP
12526
12527fi
12528 CXXCPP=$ac_cv_prog_CXXCPP
12529else
12530 ac_cv_prog_CXXCPP=$CXXCPP
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12533$as_echo "$CXXCPP" >&6; }
12534ac_preproc_ok=false
12535for ac_cxx_preproc_warn_flag in '' yes
12536do
12537 # Use a header file that comes with gcc, so configuring glibc
12538 # with a fresh cross-compiler works.
12539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12540 # <limits.h> exists even on freestanding compilers.
12541 # On the NeXT, cc -E runs the code through the compiler's parser,
12542 # not just through cpp. "Syntax error" is here to catch this case.
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544/* end confdefs.h. */
12545#ifdef __STDC__
12546# include <limits.h>
12547#else
12548# include <assert.h>
12549#endif
12550 Syntax error
12551_ACEOF
12552if ac_fn_cxx_try_cpp "$LINENO"; then :
12553
12554else
12555 # Broken: fails on valid input.
12556continue
12557fi
12558rm -f conftest.err conftest.i conftest.$ac_ext
12559
12560 # OK, works on sane cases. Now check whether nonexistent headers
12561 # can be detected and how.
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h. */
12564#include <ac_nonexistent.h>
12565_ACEOF
12566if ac_fn_cxx_try_cpp "$LINENO"; then :
12567 # Broken: success on invalid input.
12568continue
12569else
12570 # Passes both tests.
12571ac_preproc_ok=:
12572break
12573fi
12574rm -f conftest.err conftest.i conftest.$ac_ext
12575
12576done
12577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12578rm -f conftest.i conftest.err conftest.$ac_ext
12579if $ac_preproc_ok; then :
12580
12581else
12582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12584as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12585See \`config.log' for more details" "$LINENO" 5; }
12586fi
12587
12588ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
12594else
12595 _lt_caught_CXX_error=yes
12596fi
12597
12598ac_ext=cpp
12599ac_cpp='$CXXCPP $CPPFLAGS'
12600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603
12604archive_cmds_need_lc_CXX=no
12605allow_undefined_flag_CXX=
12606always_export_symbols_CXX=no
12607archive_expsym_cmds_CXX=
12608compiler_needs_object_CXX=no
12609export_dynamic_flag_spec_CXX=
12610hardcode_direct_CXX=no
12611hardcode_direct_absolute_CXX=no
12612hardcode_libdir_flag_spec_CXX=
12613hardcode_libdir_separator_CXX=
12614hardcode_minus_L_CXX=no
12615hardcode_shlibpath_var_CXX=unsupported
12616hardcode_automatic_CXX=no
12617inherit_rpath_CXX=no
12618module_cmds_CXX=
12619module_expsym_cmds_CXX=
12620link_all_deplibs_CXX=unknown
12621old_archive_cmds_CXX=$old_archive_cmds
12622reload_flag_CXX=$reload_flag
12623reload_cmds_CXX=$reload_cmds
12624no_undefined_flag_CXX=
12625whole_archive_flag_spec_CXX=
12626enable_shared_with_static_runtimes_CXX=no
12627
12628# Source file extension for C++ test sources.
12629ac_ext=cpp
12630
12631# Object file extension for compiled C++ test sources.
12632objext=o
12633objext_CXX=$objext
12634
12635# No sense in running all these tests if we already determined that
12636# the CXX compiler isn't working. Some variables (like enable_shared)
12637# are currently assumed to apply to all compilers on this platform,
12638# and will be corrupted by setting them based on a non-working compiler.
12639if test "$_lt_caught_CXX_error" != yes; then
12640 # Code to be used in simple compile tests
12641 lt_simple_compile_test_code="int some_variable = 0;"
12642
12643 # Code to be used in simple link tests
12644 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12645
12646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12647
12648
12649
12650
12651
12652
12653# If no C compiler was specified, use CC.
12654LTCC=${LTCC-"$CC"}
12655
12656# If no C compiler flags were specified, use CFLAGS.
12657LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12658
12659# Allow CC to be a program name with arguments.
12660compiler=$CC
12661
12662
12663 # save warnings/boilerplate of simple test code
12664 ac_outfile=conftest.$ac_objext
12665echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667_lt_compiler_boilerplate=`cat conftest.err`
12668$RM conftest*
12669
12670 ac_outfile=conftest.$ac_objext
12671echo "$lt_simple_link_test_code" >conftest.$ac_ext
12672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12673_lt_linker_boilerplate=`cat conftest.err`
12674$RM -r conftest*
12675
12676
12677 # Allow CC to be a program name with arguments.
12678 lt_save_CC=$CC
12679 lt_save_CFLAGS=$CFLAGS
12680 lt_save_LD=$LD
12681 lt_save_GCC=$GCC
12682 GCC=$GXX
12683 lt_save_with_gnu_ld=$with_gnu_ld
12684 lt_save_path_LD=$lt_cv_path_LD
12685 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12686 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12687 else
12688 $as_unset lt_cv_prog_gnu_ld
12689 fi
12690 if test -n "${lt_cv_path_LDCXX+set}"; then
12691 lt_cv_path_LD=$lt_cv_path_LDCXX
12692 else
12693 $as_unset lt_cv_path_LD
12694 fi
12695 test -z "${LDCXX+set}" || LD=$LDCXX
12696 CC=${CXX-"c++"}
12697 CFLAGS=$CXXFLAGS
12698 compiler=$CC
12699 compiler_CXX=$CC
12700 for cc_temp in $compiler""; do
12701 case $cc_temp in
12702 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12703 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12704 \-*) ;;
12705 *) break;;
12706 esac
12707done
12708cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12709
12710
12711 if test -n "$compiler"; then
12712 # We don't want -fno-exception when compiling C++ code, so set the
12713 # no_builtin_flag separately
12714 if test "$GXX" = yes; then
12715 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12716 else
12717 lt_prog_compiler_no_builtin_flag_CXX=
12718 fi
12719
12720 if test "$GXX" = yes; then
12721 # Set up default GNU C++ configuration
12722
12723
12724
12725# Check whether --with-gnu-ld was given.
12726if test "${with_gnu_ld+set}" = set; then :
12727 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12728else
12729 with_gnu_ld=no
12730fi
12731
12732ac_prog=ld
12733if test "$GCC" = yes; then
12734 # Check if gcc -print-prog-name=ld gives a path.
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12736$as_echo_n "checking for ld used by $CC... " >&6; }
12737 case $host in
12738 *-*-mingw*)
12739 # gcc leaves a trailing carriage return which upsets mingw
12740 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12741 *)
12742 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12743 esac
12744 case $ac_prog in
12745 # Accept absolute paths.
12746 [\\/]* | ?:[\\/]*)
12747 re_direlt='/[^/][^/]*/\.\./'
12748 # Canonicalize the pathname of ld
12749 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12750 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12751 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12752 done
12753 test -z "$LD" && LD="$ac_prog"
12754 ;;
12755 "")
12756 # If it fails, then pretend we aren't using GCC.
12757 ac_prog=ld
12758 ;;
12759 *)
12760 # If it is relative, then search for the first ld in PATH.
12761 with_gnu_ld=unknown
12762 ;;
12763 esac
12764elif test "$with_gnu_ld" = yes; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12766$as_echo_n "checking for GNU ld... " >&6; }
12767else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12769$as_echo_n "checking for non-GNU ld... " >&6; }
12770fi
12771if ${lt_cv_path_LD+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773else
12774 if test -z "$LD"; then
12775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12776 for ac_dir in $PATH; do
12777 IFS="$lt_save_ifs"
12778 test -z "$ac_dir" && ac_dir=.
12779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12780 lt_cv_path_LD="$ac_dir/$ac_prog"
12781 # Check to see if the program is GNU ld. I'd rather use --version,
12782 # but apparently some variants of GNU ld only accept -v.
12783 # Break only if it was the GNU/non-GNU ld that we prefer.
12784 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12785 *GNU* | *'with BFD'*)
12786 test "$with_gnu_ld" != no && break
12787 ;;
12788 *)
12789 test "$with_gnu_ld" != yes && break
12790 ;;
12791 esac
12792 fi
12793 done
12794 IFS="$lt_save_ifs"
12795else
12796 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12797fi
12798fi
12799
12800LD="$lt_cv_path_LD"
12801if test -n "$LD"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12803$as_echo "$LD" >&6; }
12804else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806$as_echo "no" >&6; }
12807fi
12808test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12810$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12811if ${lt_cv_prog_gnu_ld+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813else
12814 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12815case `$LD -v 2>&1 </dev/null` in
12816*GNU* | *'with BFD'*)
12817 lt_cv_prog_gnu_ld=yes
12818 ;;
12819*)
12820 lt_cv_prog_gnu_ld=no
12821 ;;
12822esac
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12825$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12826with_gnu_ld=$lt_cv_prog_gnu_ld
12827
12828
12829
12830
12831
12832
12833
12834 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12835 # archiving commands below assume that GNU ld is being used.
12836 if test "$with_gnu_ld" = yes; then
12837 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12839
12840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12842
12843 # If archive_cmds runs LD, not CC, wlarc should be empty
12844 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12845 # investigate it a little bit more. (MM)
12846 wlarc='${wl}'
12847
12848 # ancient GNU ld didn't support --whole-archive et. al.
12849 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12850 $GREP 'no-whole-archive' > /dev/null; then
12851 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12852 else
12853 whole_archive_flag_spec_CXX=
12854 fi
12855 else
12856 with_gnu_ld=no
12857 wlarc=
12858
12859 # A generic and very simple default shared library creation
12860 # command for GNU C++ for the case where it uses the native
12861 # linker, instead of GNU ld. If possible, this setting should
12862 # overridden to take advantage of the native linker features on
12863 # the platform it is being used on.
12864 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12865 fi
12866
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12871
12872 else
12873 GXX=no
12874 with_gnu_ld=no
12875 wlarc=
12876 fi
12877
12878 # PORTME: fill in a description of your system's C++ link characteristics
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12880$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12881 ld_shlibs_CXX=yes
12882 case $host_os in
12883 aix3*)
12884 # FIXME: insert proper C++ library support
12885 ld_shlibs_CXX=no
12886 ;;
12887 aix[4-9]*)
12888 if test "$host_cpu" = ia64; then
12889 # On IA64, the linker does run time linking by default, so we don't
12890 # have to do anything special.
12891 aix_use_runtimelinking=no
12892 exp_sym_flag='-Bexport'
12893 no_entry_flag=""
12894 else
12895 aix_use_runtimelinking=no
12896
12897 # Test if we are trying to use run time linking or normal
12898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12899 # need to do runtime linking.
12900 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12901 for ld_flag in $LDFLAGS; do
12902 case $ld_flag in
12903 *-brtl*)
12904 aix_use_runtimelinking=yes
12905 break
12906 ;;
12907 esac
12908 done
12909 ;;
12910 esac
12911
12912 exp_sym_flag='-bexport'
12913 no_entry_flag='-bnoentry'
12914 fi
12915
12916 # When large executables or shared objects are built, AIX ld can
12917 # have problems creating the table of contents. If linking a library
12918 # or program results in "error TOC overflow" add -mminimal-toc to
12919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12921
12922 archive_cmds_CXX=''
12923 hardcode_direct_CXX=yes
12924 hardcode_direct_absolute_CXX=yes
12925 hardcode_libdir_separator_CXX=':'
12926 link_all_deplibs_CXX=yes
12927 file_list_spec_CXX='${wl}-f,'
12928
12929 if test "$GXX" = yes; then
12930 case $host_os in aix4.[012]|aix4.[012].*)
12931 # We only want to do this on AIX 4.2 and lower, the check
12932 # below for broken collect2 doesn't work under 4.3+
12933 collect2name=`${CC} -print-prog-name=collect2`
12934 if test -f "$collect2name" &&
12935 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12936 then
12937 # We have reworked collect2
12938 :
12939 else
12940 # We have old collect2
12941 hardcode_direct_CXX=unsupported
12942 # It fails to find uninstalled libraries when the uninstalled
12943 # path is not listed in the libpath. Setting hardcode_minus_L
12944 # to unsupported forces relinking
12945 hardcode_minus_L_CXX=yes
12946 hardcode_libdir_flag_spec_CXX='-L$libdir'
12947 hardcode_libdir_separator_CXX=
12948 fi
12949 esac
12950 shared_flag='-shared'
12951 if test "$aix_use_runtimelinking" = yes; then
12952 shared_flag="$shared_flag "'${wl}-G'
12953 fi
12954 else
12955 # not using gcc
12956 if test "$host_cpu" = ia64; then
12957 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12958 # chokes on -Wl,-G. The following line is correct:
12959 shared_flag='-G'
12960 else
12961 if test "$aix_use_runtimelinking" = yes; then
12962 shared_flag='${wl}-G'
12963 else
12964 shared_flag='${wl}-bM:SRE'
12965 fi
12966 fi
12967 fi
12968
12969 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12970 # It seems that -bexpall does not export symbols beginning with
12971 # underscore (_), so it is better to generate a list of symbols to
12972 # export.
12973 always_export_symbols_CXX=yes
12974 if test "$aix_use_runtimelinking" = yes; then
12975 # Warning - without using the other runtime loading flags (-brtl),
12976 # -berok will link without error, but may produce a broken library.
12977 allow_undefined_flag_CXX='-berok'
12978 # Determine the default libpath from the value encoded in an empty
12979 # executable.
12980 if test "${lt_cv_aix_libpath+set}" = set; then
12981 aix_libpath=$lt_cv_aix_libpath
12982else
12983 if ${lt_cv_aix_libpath__CXX+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985else
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987/* end confdefs.h. */
12988
12989int
12990main ()
12991{
12992
12993 ;
12994 return 0;
12995}
12996_ACEOF
12997if ac_fn_cxx_try_link "$LINENO"; then :
12998
12999 lt_aix_libpath_sed='
13000 /Import File Strings/,/^$/ {
13001 /^0/ {
13002 s/^0 *\([^ ]*\) *$/\1/
13003 p
13004 }
13005 }'
13006 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13007 # Check for a 64-bit object if we didn't find anything.
13008 if test -z "$lt_cv_aix_libpath__CXX"; then
13009 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010 fi
13011fi
13012rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014 if test -z "$lt_cv_aix_libpath__CXX"; then
13015 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13016 fi
13017
13018fi
13019
13020 aix_libpath=$lt_cv_aix_libpath__CXX
13021fi
13022
13023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13024
13025 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13026 else
13027 if test "$host_cpu" = ia64; then
13028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13029 allow_undefined_flag_CXX="-z nodefs"
13030 archive_expsym_cmds_CXX="\$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"
13031 else
13032 # Determine the default libpath from the value encoded in an
13033 # empty executable.
13034 if test "${lt_cv_aix_libpath+set}" = set; then
13035 aix_libpath=$lt_cv_aix_libpath
13036else
13037 if ${lt_cv_aix_libpath__CXX+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h. */
13042
13043int
13044main ()
13045{
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051if ac_fn_cxx_try_link "$LINENO"; then :
13052
13053 lt_aix_libpath_sed='
13054 /Import File Strings/,/^$/ {
13055 /^0/ {
13056 s/^0 *\([^ ]*\) *$/\1/
13057 p
13058 }
13059 }'
13060 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13061 # Check for a 64-bit object if we didn't find anything.
13062 if test -z "$lt_cv_aix_libpath__CXX"; then
13063 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13064 fi
13065fi
13066rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 if test -z "$lt_cv_aix_libpath__CXX"; then
13069 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13070 fi
13071
13072fi
13073
13074 aix_libpath=$lt_cv_aix_libpath__CXX
13075fi
13076
13077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13078 # Warning - without using the other run time loading flags,
13079 # -berok will link without error, but may produce a broken library.
13080 no_undefined_flag_CXX=' ${wl}-bernotok'
13081 allow_undefined_flag_CXX=' ${wl}-berok'
13082 if test "$with_gnu_ld" = yes; then
13083 # We only use this code for GNU lds that support --whole-archive.
13084 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13085 else
13086 # Exported symbols can be pulled into shared objects from archives
13087 whole_archive_flag_spec_CXX='$convenience'
13088 fi
13089 archive_cmds_need_lc_CXX=yes
13090 # This is similar to how AIX traditionally builds its shared
13091 # libraries.
13092 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13093 fi
13094 fi
13095 ;;
13096
13097 beos*)
13098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13099 allow_undefined_flag_CXX=unsupported
13100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13101 # support --undefined. This deserves some investigation. FIXME
13102 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103 else
13104 ld_shlibs_CXX=no
13105 fi
13106 ;;
13107
13108 chorus*)
13109 case $cc_basename in
13110 *)
13111 # FIXME: insert proper C++ library support
13112 ld_shlibs_CXX=no
13113 ;;
13114 esac
13115 ;;
13116
13117 cygwin* | mingw* | pw32* | cegcc*)
13118 case $GXX,$cc_basename in
13119 ,cl* | no,cl*)
13120 # Native MSVC
13121 # hardcode_libdir_flag_spec is actually meaningless, as there is
13122 # no search path for DLLs.
13123 hardcode_libdir_flag_spec_CXX=' '
13124 allow_undefined_flag_CXX=unsupported
13125 always_export_symbols_CXX=yes
13126 file_list_spec_CXX='@'
13127 # Tell ltmain to make .lib files, not .a files.
13128 libext=lib
13129 # Tell ltmain to make .dll files, not .so files.
13130 shrext_cmds=".dll"
13131 # FIXME: Setting linknames here is a bad hack.
13132 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13133 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13134 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13135 else
13136 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13137 fi~
13138 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13139 linknames='
13140 # The linker will not automatically build a static lib if we build a DLL.
13141 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13142 enable_shared_with_static_runtimes_CXX=yes
13143 # Don't use ranlib
13144 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13145 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13146 lt_tool_outputfile="@TOOL_OUTPUT@"~
13147 case $lt_outputfile in
13148 *.exe|*.EXE) ;;
13149 *)
13150 lt_outputfile="$lt_outputfile.exe"
13151 lt_tool_outputfile="$lt_tool_outputfile.exe"
13152 ;;
13153 esac~
13154 func_to_tool_file "$lt_outputfile"~
13155 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13156 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13157 $RM "$lt_outputfile.manifest";
13158 fi'
13159 ;;
13160 *)
13161 # g++
13162 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13163 # as there is no search path for DLLs.
13164 hardcode_libdir_flag_spec_CXX='-L$libdir'
13165 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13166 allow_undefined_flag_CXX=unsupported
13167 always_export_symbols_CXX=no
13168 enable_shared_with_static_runtimes_CXX=yes
13169
13170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13172 # If the export-symbols file already is a .def file (1st line
13173 # is EXPORTS), use it as is; otherwise, prepend...
13174 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13175 cp $export_symbols $output_objdir/$soname.def;
13176 else
13177 echo EXPORTS > $output_objdir/$soname.def;
13178 cat $export_symbols >> $output_objdir/$soname.def;
13179 fi~
13180 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13181 else
13182 ld_shlibs_CXX=no
13183 fi
13184 ;;
13185 esac
13186 ;;
13187 darwin* | rhapsody*)
13188
13189
13190 archive_cmds_need_lc_CXX=no
13191 hardcode_direct_CXX=no
13192 hardcode_automatic_CXX=yes
13193 hardcode_shlibpath_var_CXX=unsupported
13194 if test "$lt_cv_ld_force_load" = "yes"; then
13195 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13196
13197 else
13198 whole_archive_flag_spec_CXX=''
13199 fi
13200 link_all_deplibs_CXX=yes
13201 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13202 case $cc_basename in
13203 ifort*) _lt_dar_can_shared=yes ;;
13204 *) _lt_dar_can_shared=$GCC ;;
13205 esac
13206 if test "$_lt_dar_can_shared" = "yes"; then
13207 output_verbose_link_cmd=func_echo_all
13208 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13209 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13210 archive_expsym_cmds_CXX="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}"
13211 module_expsym_cmds_CXX="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}"
13212 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13213 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13214 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13215 fi
13216
13217 else
13218 ld_shlibs_CXX=no
13219 fi
13220
13221 ;;
13222
13223 dgux*)
13224 case $cc_basename in
13225 ec++*)
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13228 ;;
13229 ghcx*)
13230 # Green Hills C++ Compiler
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13233 ;;
13234 *)
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13237 ;;
13238 esac
13239 ;;
13240
13241 freebsd2.*)
13242 # C++ shared libraries reported to be fairly broken before
13243 # switch to ELF
13244 ld_shlibs_CXX=no
13245 ;;
13246
13247 freebsd-elf*)
13248 archive_cmds_need_lc_CXX=no
13249 ;;
13250
13251 freebsd* | dragonfly*)
13252 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13253 # conventions
13254 ld_shlibs_CXX=yes
13255 ;;
13256
13257 gnu*)
13258 ;;
13259
13260 haiku*)
13261 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262 link_all_deplibs_CXX=yes
13263 ;;
13264
13265 hpux9*)
13266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13267 hardcode_libdir_separator_CXX=:
13268 export_dynamic_flag_spec_CXX='${wl}-E'
13269 hardcode_direct_CXX=yes
13270 hardcode_minus_L_CXX=yes # Not in the search PATH,
13271 # but as the default
13272 # location of the library.
13273
13274 case $cc_basename in
13275 CC*)
13276 # FIXME: insert proper C++ library support
13277 ld_shlibs_CXX=no
13278 ;;
13279 aCC*)
13280 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13284 #
13285 # There doesn't appear to be a way to prevent this compiler from
13286 # explicitly linking system object files so we need to strip them
13287 # from the output so that they don't get included in the library
13288 # dependencies.
13289 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13290 ;;
13291 *)
13292 if test "$GXX" = yes; then
13293 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13294 else
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13297 fi
13298 ;;
13299 esac
13300 ;;
13301
13302 hpux10*|hpux11*)
13303 if test $with_gnu_ld = no; then
13304 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13305 hardcode_libdir_separator_CXX=:
13306
13307 case $host_cpu in
13308 hppa*64*|ia64*)
13309 ;;
13310 *)
13311 export_dynamic_flag_spec_CXX='${wl}-E'
13312 ;;
13313 esac
13314 fi
13315 case $host_cpu in
13316 hppa*64*|ia64*)
13317 hardcode_direct_CXX=no
13318 hardcode_shlibpath_var_CXX=no
13319 ;;
13320 *)
13321 hardcode_direct_CXX=yes
13322 hardcode_direct_absolute_CXX=yes
13323 hardcode_minus_L_CXX=yes # Not in the search PATH,
13324 # but as the default
13325 # location of the library.
13326 ;;
13327 esac
13328
13329 case $cc_basename in
13330 CC*)
13331 # FIXME: insert proper C++ library support
13332 ld_shlibs_CXX=no
13333 ;;
13334 aCC*)
13335 case $host_cpu in
13336 hppa*64*)
13337 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13338 ;;
13339 ia64*)
13340 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341 ;;
13342 *)
13343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344 ;;
13345 esac
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13349 #
13350 # There doesn't appear to be a way to prevent this compiler from
13351 # explicitly linking system object files so we need to strip them
13352 # from the output so that they don't get included in the library
13353 # dependencies.
13354 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13355 ;;
13356 *)
13357 if test "$GXX" = yes; then
13358 if test $with_gnu_ld = no; then
13359 case $host_cpu in
13360 hppa*64*)
13361 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13362 ;;
13363 ia64*)
13364 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13365 ;;
13366 *)
13367 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 ;;
13369 esac
13370 fi
13371 else
13372 # FIXME: insert proper C++ library support
13373 ld_shlibs_CXX=no
13374 fi
13375 ;;
13376 esac
13377 ;;
13378
13379 interix[3-9]*)
13380 hardcode_direct_CXX=no
13381 hardcode_shlibpath_var_CXX=no
13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13383 export_dynamic_flag_spec_CXX='${wl}-E'
13384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13385 # Instead, shared libraries are loaded at an image base (0x10000000 by
13386 # default) and relocated if they conflict, which is a slow very memory
13387 # consuming and fragmenting process. To avoid this, we pick a random,
13388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13390 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13391 archive_expsym_cmds_CXX='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'
13392 ;;
13393 irix5* | irix6*)
13394 case $cc_basename in
13395 CC*)
13396 # SGI C++
13397 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13398
13399 # Archives containing C++ object files must be created using
13400 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13401 # necessary to make sure instantiated templates are included
13402 # in the archive.
13403 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13404 ;;
13405 *)
13406 if test "$GXX" = yes; then
13407 if test "$with_gnu_ld" = no; then
13408 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13409 else
13410 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13411 fi
13412 fi
13413 link_all_deplibs_CXX=yes
13414 ;;
13415 esac
13416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_CXX=:
13418 inherit_rpath_CXX=yes
13419 ;;
13420
13421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13422 case $cc_basename in
13423 KCC*)
13424 # Kuck and Associates, Inc. (KAI) C++ Compiler
13425
13426 # KCC will only create a shared library if the output file
13427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13428 # to its proper name (with version) after linking.
13429 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13430 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13431 # Commands to make compiler produce verbose output that lists
13432 # what "hidden" libraries, object files and flags are used when
13433 # linking a shared library.
13434 #
13435 # There doesn't appear to be a way to prevent this compiler from
13436 # explicitly linking system object files so we need to strip them
13437 # from the output so that they don't get included in the library
13438 # dependencies.
13439 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13440
13441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443
13444 # Archives containing C++ object files must be created using
13445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13446 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13447 ;;
13448 icpc* | ecpc* )
13449 # Intel C++
13450 with_gnu_ld=yes
13451 # version 8.0 and above of icpc choke on multiply defined symbols
13452 # if we add $predep_objects and $postdep_objects, however 7.1 and
13453 # earlier do not add the objects themselves.
13454 case `$CC -V 2>&1` in
13455 *"Version 7."*)
13456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13457 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13458 ;;
13459 *) # Version 8.0 or newer
13460 tmp_idyn=
13461 case $host_cpu in
13462 ia64*) tmp_idyn=' -i_dynamic';;
13463 esac
13464 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13466 ;;
13467 esac
13468 archive_cmds_need_lc_CXX=no
13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13471 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13472 ;;
13473 pgCC* | pgcpp*)
13474 # Portland Group C++ compiler
13475 case `$CC -V` in
13476 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13477 prelink_cmds_CXX='tpldir=Template.dir~
13478 rm -rf $tpldir~
13479 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13480 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13481 old_archive_cmds_CXX='tpldir=Template.dir~
13482 rm -rf $tpldir~
13483 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13484 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13485 $RANLIB $oldlib'
13486 archive_cmds_CXX='tpldir=Template.dir~
13487 rm -rf $tpldir~
13488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13490 archive_expsym_cmds_CXX='tpldir=Template.dir~
13491 rm -rf $tpldir~
13492 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13493 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13494 ;;
13495 *) # Version 6 and above use weak symbols
13496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13497 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13498 ;;
13499 esac
13500
13501 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13503 whole_archive_flag_spec_CXX='${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'
13504 ;;
13505 cxx*)
13506 # Compaq C++
13507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13509
13510 runpath_var=LD_RUN_PATH
13511 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13512 hardcode_libdir_separator_CXX=:
13513
13514 # Commands to make compiler produce verbose output that lists
13515 # what "hidden" libraries, object files and flags are used when
13516 # linking a shared library.
13517 #
13518 # There doesn't appear to be a way to prevent this compiler from
13519 # explicitly linking system object files so we need to strip them
13520 # from the output so that they don't get included in the library
13521 # dependencies.
13522 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13523 ;;
13524 xl* | mpixl* | bgxl*)
13525 # IBM XL 8.0 on PPC, with GNU ld
13526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13528 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13529 if test "x$supports_anon_versioning" = xyes; then
13530 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13532 echo "local: *; };" >> $output_objdir/$libname.ver~
13533 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13534 fi
13535 ;;
13536 *)
13537 case `$CC -V 2>&1 | sed 5q` in
13538 *Sun\ C*)
13539 # Sun C++ 5.9
13540 no_undefined_flag_CXX=' -zdefs'
13541 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13542 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13543 hardcode_libdir_flag_spec_CXX='-R$libdir'
13544 whole_archive_flag_spec_CXX='${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'
13545 compiler_needs_object_CXX=yes
13546
13547 # Not sure whether something based on
13548 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13549 # would be better.
13550 output_verbose_link_cmd='func_echo_all'
13551
13552 # Archives containing C++ object files must be created using
13553 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13554 # necessary to make sure instantiated templates are included
13555 # in the archive.
13556 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13557 ;;
13558 esac
13559 ;;
13560 esac
13561 ;;
13562
13563 lynxos*)
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 ;;
13567
13568 m88k*)
13569 # FIXME: insert proper C++ library support
13570 ld_shlibs_CXX=no
13571 ;;
13572
13573 mvs*)
13574 case $cc_basename in
13575 cxx*)
13576 # FIXME: insert proper C++ library support
13577 ld_shlibs_CXX=no
13578 ;;
13579 *)
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 esac
13584 ;;
13585
13586 netbsd*)
13587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13588 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13589 wlarc=
13590 hardcode_libdir_flag_spec_CXX='-R$libdir'
13591 hardcode_direct_CXX=yes
13592 hardcode_shlibpath_var_CXX=no
13593 fi
13594 # Workaround some broken pre-1.5 toolchains
13595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13596 ;;
13597
13598 *nto* | *qnx*)
13599 ld_shlibs_CXX=yes
13600 ;;
13601
13602 openbsd2*)
13603 # C++ shared libraries are fairly broken
13604 ld_shlibs_CXX=no
13605 ;;
13606
13607 openbsd*)
13608 if test -f /usr/libexec/ld.so; then
13609 hardcode_direct_CXX=yes
13610 hardcode_shlibpath_var_CXX=no
13611 hardcode_direct_absolute_CXX=yes
13612 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13615 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13616 export_dynamic_flag_spec_CXX='${wl}-E'
13617 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13618 fi
13619 output_verbose_link_cmd=func_echo_all
13620 else
13621 ld_shlibs_CXX=no
13622 fi
13623 ;;
13624
13625 osf3* | osf4* | osf5*)
13626 case $cc_basename in
13627 KCC*)
13628 # Kuck and Associates, Inc. (KAI) C++ Compiler
13629
13630 # KCC will only create a shared library if the output file
13631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13632 # to its proper name (with version) after linking.
13633 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13634
13635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13636 hardcode_libdir_separator_CXX=:
13637
13638 # Archives containing C++ object files must be created using
13639 # the KAI C++ compiler.
13640 case $host in
13641 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13642 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13643 esac
13644 ;;
13645 RCC*)
13646 # Rational C++ 2.4.1
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13649 ;;
13650 cxx*)
13651 case $host in
13652 osf3*)
13653 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13654 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13656 ;;
13657 *)
13658 allow_undefined_flag_CXX=' -expect_unresolved \*'
13659 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13660 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13661 echo "-hidden">> $lib.exp~
13662 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13663 $RM $lib.exp'
13664 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13665 ;;
13666 esac
13667
13668 hardcode_libdir_separator_CXX=:
13669
13670 # Commands to make compiler produce verbose output that lists
13671 # what "hidden" libraries, object files and flags are used when
13672 # linking a shared library.
13673 #
13674 # There doesn't appear to be a way to prevent this compiler from
13675 # explicitly linking system object files so we need to strip them
13676 # from the output so that they don't get included in the library
13677 # dependencies.
13678 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13679 ;;
13680 *)
13681 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13682 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13683 case $host in
13684 osf3*)
13685 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13686 ;;
13687 *)
13688 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13689 ;;
13690 esac
13691
13692 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13693 hardcode_libdir_separator_CXX=:
13694
13695 # Commands to make compiler produce verbose output that lists
13696 # what "hidden" libraries, object files and flags are used when
13697 # linking a shared library.
13698 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13699
13700 else
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 fi
13704 ;;
13705 esac
13706 ;;
13707
13708 psos*)
13709 # FIXME: insert proper C++ library support
13710 ld_shlibs_CXX=no
13711 ;;
13712
13713 sunos4*)
13714 case $cc_basename in
13715 CC*)
13716 # Sun C++ 4.x
13717 # FIXME: insert proper C++ library support
13718 ld_shlibs_CXX=no
13719 ;;
13720 lcc*)
13721 # Lucid
13722 # FIXME: insert proper C++ library support
13723 ld_shlibs_CXX=no
13724 ;;
13725 *)
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13728 ;;
13729 esac
13730 ;;
13731
13732 solaris*)
13733 case $cc_basename in
13734 CC* | sunCC*)
13735 # Sun C++ 4.2, 5.x and Centerline C++
13736 archive_cmds_need_lc_CXX=yes
13737 no_undefined_flag_CXX=' -zdefs'
13738 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13739 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13740 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13741
13742 hardcode_libdir_flag_spec_CXX='-R$libdir'
13743 hardcode_shlibpath_var_CXX=no
13744 case $host_os in
13745 solaris2.[0-5] | solaris2.[0-5].*) ;;
13746 *)
13747 # The compiler driver will combine and reorder linker options,
13748 # but understands `-z linker_flag'.
13749 # Supported since Solaris 2.6 (maybe 2.5.1?)
13750 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13751 ;;
13752 esac
13753 link_all_deplibs_CXX=yes
13754
13755 output_verbose_link_cmd='func_echo_all'
13756
13757 # Archives containing C++ object files must be created using
13758 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13759 # necessary to make sure instantiated templates are included
13760 # in the archive.
13761 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13762 ;;
13763 gcx*)
13764 # Green Hills C++ Compiler
13765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13766
13767 # The C++ compiler must be used to create the archive.
13768 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13769 ;;
13770 *)
13771 # GNU C++ compiler with Solaris linker
13772 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13773 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13774 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13775 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13776 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13777 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13778
13779 # Commands to make compiler produce verbose output that lists
13780 # what "hidden" libraries, object files and flags are used when
13781 # linking a shared library.
13782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13783 else
13784 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13785 # platform.
13786 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13787 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13788 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13789
13790 # Commands to make compiler produce verbose output that lists
13791 # what "hidden" libraries, object files and flags are used when
13792 # linking a shared library.
13793 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13794 fi
13795
13796 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13797 case $host_os in
13798 solaris2.[0-5] | solaris2.[0-5].*) ;;
13799 *)
13800 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13801 ;;
13802 esac
13803 fi
13804 ;;
13805 esac
13806 ;;
13807
13808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13809 no_undefined_flag_CXX='${wl}-z,text'
13810 archive_cmds_need_lc_CXX=no
13811 hardcode_shlibpath_var_CXX=no
13812 runpath_var='LD_RUN_PATH'
13813
13814 case $cc_basename in
13815 CC*)
13816 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13818 ;;
13819 *)
13820 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 ;;
13823 esac
13824 ;;
13825
13826 sysv5* | sco3.2v5* | sco5v6*)
13827 # Note: We can NOT use -z defs as we might desire, because we do not
13828 # link with -lc, and that would cause any symbols used from libc to
13829 # always be unresolved, which means just about no library would
13830 # ever link correctly. If we're not using GNU ld we use -z text
13831 # though, which does catch some bad symbols but isn't as heavy-handed
13832 # as -z defs.
13833 no_undefined_flag_CXX='${wl}-z,text'
13834 allow_undefined_flag_CXX='${wl}-z,nodefs'
13835 archive_cmds_need_lc_CXX=no
13836 hardcode_shlibpath_var_CXX=no
13837 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13838 hardcode_libdir_separator_CXX=':'
13839 link_all_deplibs_CXX=yes
13840 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13841 runpath_var='LD_RUN_PATH'
13842
13843 case $cc_basename in
13844 CC*)
13845 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13847 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13848 '"$old_archive_cmds_CXX"
13849 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13850 '"$reload_cmds_CXX"
13851 ;;
13852 *)
13853 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13854 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 ;;
13856 esac
13857 ;;
13858
13859 tandem*)
13860 case $cc_basename in
13861 NCC*)
13862 # NonStop-UX NCC 3.20
13863 # FIXME: insert proper C++ library support
13864 ld_shlibs_CXX=no
13865 ;;
13866 *)
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13869 ;;
13870 esac
13871 ;;
13872
13873 vxworks*)
13874 # FIXME: insert proper C++ library support
13875 ld_shlibs_CXX=no
13876 ;;
13877
13878 *)
13879 # FIXME: insert proper C++ library support
13880 ld_shlibs_CXX=no
13881 ;;
13882 esac
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13885$as_echo "$ld_shlibs_CXX" >&6; }
13886 test "$ld_shlibs_CXX" = no && can_build_shared=no
13887
13888 GCC_CXX="$GXX"
13889 LD_CXX="$LD"
13890
13891 ## CAVEAT EMPTOR:
13892 ## There is no encapsulation within the following macros, do not change
13893 ## the running order or otherwise move them around unless you know exactly
13894 ## what you are doing...
13895 # Dependencies to place before and after the object being linked:
13896predep_objects_CXX=
13897postdep_objects_CXX=
13898predeps_CXX=
13899postdeps_CXX=
13900compiler_lib_search_path_CXX=
13901
13902cat > conftest.$ac_ext <<_LT_EOF
13903class Foo
13904{
13905public:
13906 Foo (void) { a = 0; }
13907private:
13908 int a;
13909};
13910_LT_EOF
13911
13912
13913_lt_libdeps_save_CFLAGS=$CFLAGS
13914case "$CC $CFLAGS " in #(
13915*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13916*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13917*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13918esac
13919
13920if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13921 (eval $ac_compile) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 # Parse the compiler output and extract the necessary
13926 # objects, libraries and library flags.
13927
13928 # Sentinel used to keep track of whether or not we are before
13929 # the conftest object file.
13930 pre_test_object_deps_done=no
13931
13932 for p in `eval "$output_verbose_link_cmd"`; do
13933 case ${prev}${p} in
13934
13935 -L* | -R* | -l*)
13936 # Some compilers place space between "-{L,R}" and the path.
13937 # Remove the space.
13938 if test $p = "-L" ||
13939 test $p = "-R"; then
13940 prev=$p
13941 continue
13942 fi
13943
13944 # Expand the sysroot to ease extracting the directories later.
13945 if test -z "$prev"; then
13946 case $p in
13947 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13948 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13949 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13950 esac
13951 fi
13952 case $p in
13953 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13954 esac
13955 if test "$pre_test_object_deps_done" = no; then
13956 case ${prev} in
13957 -L | -R)
13958 # Internal compiler library paths should come after those
13959 # provided the user. The postdeps already come after the
13960 # user supplied libs so there is no need to process them.
13961 if test -z "$compiler_lib_search_path_CXX"; then
13962 compiler_lib_search_path_CXX="${prev}${p}"
13963 else
13964 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13965 fi
13966 ;;
13967 # The "-l" case would never come before the object being
13968 # linked, so don't bother handling this case.
13969 esac
13970 else
13971 if test -z "$postdeps_CXX"; then
13972 postdeps_CXX="${prev}${p}"
13973 else
13974 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13975 fi
13976 fi
13977 prev=
13978 ;;
13979
13980 *.lto.$objext) ;; # Ignore GCC LTO objects
13981 *.$objext)
13982 # This assumes that the test object file only shows up
13983 # once in the compiler output.
13984 if test "$p" = "conftest.$objext"; then
13985 pre_test_object_deps_done=yes
13986 continue
13987 fi
13988
13989 if test "$pre_test_object_deps_done" = no; then
13990 if test -z "$predep_objects_CXX"; then
13991 predep_objects_CXX="$p"
13992 else
13993 predep_objects_CXX="$predep_objects_CXX $p"
13994 fi
13995 else
13996 if test -z "$postdep_objects_CXX"; then
13997 postdep_objects_CXX="$p"
13998 else
13999 postdep_objects_CXX="$postdep_objects_CXX $p"
14000 fi
14001 fi
14002 ;;
14003
14004 *) ;; # Ignore the rest.
14005
14006 esac
14007 done
14008
14009 # Clean up.
14010 rm -f a.out a.exe
14011else
14012 echo "libtool.m4: error: problem compiling CXX test program"
14013fi
14014
14015$RM -f confest.$objext
14016CFLAGS=$_lt_libdeps_save_CFLAGS
14017
14018# PORTME: override above test on systems where it is broken
14019case $host_os in
14020interix[3-9]*)
14021 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14022 # hack all around it, let's just trust "g++" to DTRT.
14023 predep_objects_CXX=
14024 postdep_objects_CXX=
14025 postdeps_CXX=
14026 ;;
14027
14028linux*)
14029 case `$CC -V 2>&1 | sed 5q` in
14030 *Sun\ C*)
14031 # Sun C++ 5.9
14032
14033 # The more standards-conforming stlport4 library is
14034 # incompatible with the Cstd library. Avoid specifying
14035 # it if it's in CXXFLAGS. Ignore libCrun as
14036 # -library=stlport4 depends on it.
14037 case " $CXX $CXXFLAGS " in
14038 *" -library=stlport4 "*)
14039 solaris_use_stlport4=yes
14040 ;;
14041 esac
14042
14043 if test "$solaris_use_stlport4" != yes; then
14044 postdeps_CXX='-library=Cstd -library=Crun'
14045 fi
14046 ;;
14047 esac
14048 ;;
14049
14050solaris*)
14051 case $cc_basename in
14052 CC* | sunCC*)
14053 # The more standards-conforming stlport4 library is
14054 # incompatible with the Cstd library. Avoid specifying
14055 # it if it's in CXXFLAGS. Ignore libCrun as
14056 # -library=stlport4 depends on it.
14057 case " $CXX $CXXFLAGS " in
14058 *" -library=stlport4 "*)
14059 solaris_use_stlport4=yes
14060 ;;
14061 esac
14062
14063 # Adding this requires a known-good setup of shared libraries for
14064 # Sun compiler versions before 5.6, else PIC objects from an old
14065 # archive will be linked into the output, leading to subtle bugs.
14066 if test "$solaris_use_stlport4" != yes; then
14067 postdeps_CXX='-library=Cstd -library=Crun'
14068 fi
14069 ;;
14070 esac
14071 ;;
14072esac
14073
14074
14075case " $postdeps_CXX " in
14076*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14077esac
14078 compiler_lib_search_dirs_CXX=
14079if test -n "${compiler_lib_search_path_CXX}"; then
14080 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14081fi
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113 lt_prog_compiler_wl_CXX=
14114lt_prog_compiler_pic_CXX=
14115lt_prog_compiler_static_CXX=
14116
14117
14118 # C++ specific cases for pic, static, wl, etc.
14119 if test "$GXX" = yes; then
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_static_CXX='-static'
14122
14123 case $host_os in
14124 aix*)
14125 # All AIX code is PIC.
14126 if test "$host_cpu" = ia64; then
14127 # AIX 5 now supports IA64 processor
14128 lt_prog_compiler_static_CXX='-Bstatic'
14129 fi
14130 ;;
14131
14132 amigaos*)
14133 case $host_cpu in
14134 powerpc)
14135 # see comment about AmigaOS4 .so support
14136 lt_prog_compiler_pic_CXX='-fPIC'
14137 ;;
14138 m68k)
14139 # FIXME: we need at least 68020 code to build shared libraries, but
14140 # adding the `-m68020' flag to GCC prevents building anything better,
14141 # like `-m68040'.
14142 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14143 ;;
14144 esac
14145 ;;
14146
14147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14148 # PIC is the default for these OSes.
14149 ;;
14150 mingw* | cygwin* | os2* | pw32* | cegcc*)
14151 # This hack is so that the source file can tell whether it is being
14152 # built for inclusion in a dll (and should export symbols for example).
14153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14154 # (--disable-auto-import) libraries
14155 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14156 ;;
14157 darwin* | rhapsody*)
14158 # PIC is the default on this platform
14159 # Common symbols not allowed in MH_DYLIB files
14160 lt_prog_compiler_pic_CXX='-fno-common'
14161 ;;
14162 *djgpp*)
14163 # DJGPP does not support shared libraries at all
14164 lt_prog_compiler_pic_CXX=
14165 ;;
14166 haiku*)
14167 # PIC is the default for Haiku.
14168 # The "-static" flag exists, but is broken.
14169 lt_prog_compiler_static_CXX=
14170 ;;
14171 interix[3-9]*)
14172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14173 # Instead, we relocate shared libraries at runtime.
14174 ;;
14175 sysv4*MP*)
14176 if test -d /usr/nec; then
14177 lt_prog_compiler_pic_CXX=-Kconform_pic
14178 fi
14179 ;;
14180 hpux*)
14181 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14182 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14183 # sets the default TLS model and affects inlining.
14184 case $host_cpu in
14185 hppa*64*)
14186 ;;
14187 *)
14188 lt_prog_compiler_pic_CXX='-fPIC'
14189 ;;
14190 esac
14191 ;;
14192 *qnx* | *nto*)
14193 # QNX uses GNU C++, but need to define -shared option too, otherwise
14194 # it will coredump.
14195 lt_prog_compiler_pic_CXX='-fPIC -shared'
14196 ;;
14197 *)
14198 lt_prog_compiler_pic_CXX='-fPIC'
14199 ;;
14200 esac
14201 else
14202 case $host_os in
14203 aix[4-9]*)
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static_CXX='-Bstatic'
14208 else
14209 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14210 fi
14211 ;;
14212 chorus*)
14213 case $cc_basename in
14214 cxch68*)
14215 # Green Hills C++ Compiler
14216 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14217 ;;
14218 esac
14219 ;;
14220 mingw* | cygwin* | os2* | pw32* | cegcc*)
14221 # This hack is so that the source file can tell whether it is being
14222 # built for inclusion in a dll (and should export symbols for example).
14223 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14224 ;;
14225 dgux*)
14226 case $cc_basename in
14227 ec++*)
14228 lt_prog_compiler_pic_CXX='-KPIC'
14229 ;;
14230 ghcx*)
14231 # Green Hills C++ Compiler
14232 lt_prog_compiler_pic_CXX='-pic'
14233 ;;
14234 *)
14235 ;;
14236 esac
14237 ;;
14238 freebsd* | dragonfly*)
14239 # FreeBSD uses GNU C++
14240 ;;
14241 hpux9* | hpux10* | hpux11*)
14242 case $cc_basename in
14243 CC*)
14244 lt_prog_compiler_wl_CXX='-Wl,'
14245 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14246 if test "$host_cpu" != ia64; then
14247 lt_prog_compiler_pic_CXX='+Z'
14248 fi
14249 ;;
14250 aCC*)
14251 lt_prog_compiler_wl_CXX='-Wl,'
14252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14253 case $host_cpu in
14254 hppa*64*|ia64*)
14255 # +Z the default
14256 ;;
14257 *)
14258 lt_prog_compiler_pic_CXX='+Z'
14259 ;;
14260 esac
14261 ;;
14262 *)
14263 ;;
14264 esac
14265 ;;
14266 interix*)
14267 # This is c89, which is MS Visual C++ (no shared libs)
14268 # Anyone wants to do a port?
14269 ;;
14270 irix5* | irix6* | nonstopux*)
14271 case $cc_basename in
14272 CC*)
14273 lt_prog_compiler_wl_CXX='-Wl,'
14274 lt_prog_compiler_static_CXX='-non_shared'
14275 # CC pic flag -KPIC is the default.
14276 ;;
14277 *)
14278 ;;
14279 esac
14280 ;;
14281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14282 case $cc_basename in
14283 KCC*)
14284 # KAI C++ Compiler
14285 lt_prog_compiler_wl_CXX='--backend -Wl,'
14286 lt_prog_compiler_pic_CXX='-fPIC'
14287 ;;
14288 ecpc* )
14289 # old Intel C++ for x86_64 which still supported -KPIC.
14290 lt_prog_compiler_wl_CXX='-Wl,'
14291 lt_prog_compiler_pic_CXX='-KPIC'
14292 lt_prog_compiler_static_CXX='-static'
14293 ;;
14294 icpc* )
14295 # Intel C++, used to be incompatible with GCC.
14296 # ICC 10 doesn't accept -KPIC any more.
14297 lt_prog_compiler_wl_CXX='-Wl,'
14298 lt_prog_compiler_pic_CXX='-fPIC'
14299 lt_prog_compiler_static_CXX='-static'
14300 ;;
14301 pgCC* | pgcpp*)
14302 # Portland Group C++ compiler
14303 lt_prog_compiler_wl_CXX='-Wl,'
14304 lt_prog_compiler_pic_CXX='-fpic'
14305 lt_prog_compiler_static_CXX='-Bstatic'
14306 ;;
14307 cxx*)
14308 # Compaq C++
14309 # Make sure the PIC flag is empty. It appears that all Alpha
14310 # Linux and Compaq Tru64 Unix objects are PIC.
14311 lt_prog_compiler_pic_CXX=
14312 lt_prog_compiler_static_CXX='-non_shared'
14313 ;;
14314 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14315 # IBM XL 8.0, 9.0 on PPC and BlueGene
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_pic_CXX='-qpic'
14318 lt_prog_compiler_static_CXX='-qstaticlink'
14319 ;;
14320 *)
14321 case `$CC -V 2>&1 | sed 5q` in
14322 *Sun\ C*)
14323 # Sun C++ 5.9
14324 lt_prog_compiler_pic_CXX='-KPIC'
14325 lt_prog_compiler_static_CXX='-Bstatic'
14326 lt_prog_compiler_wl_CXX='-Qoption ld '
14327 ;;
14328 esac
14329 ;;
14330 esac
14331 ;;
14332 lynxos*)
14333 ;;
14334 m88k*)
14335 ;;
14336 mvs*)
14337 case $cc_basename in
14338 cxx*)
14339 lt_prog_compiler_pic_CXX='-W c,exportall'
14340 ;;
14341 *)
14342 ;;
14343 esac
14344 ;;
14345 netbsd*)
14346 ;;
14347 *qnx* | *nto*)
14348 # QNX uses GNU C++, but need to define -shared option too, otherwise
14349 # it will coredump.
14350 lt_prog_compiler_pic_CXX='-fPIC -shared'
14351 ;;
14352 osf3* | osf4* | osf5*)
14353 case $cc_basename in
14354 KCC*)
14355 lt_prog_compiler_wl_CXX='--backend -Wl,'
14356 ;;
14357 RCC*)
14358 # Rational C++ 2.4.1
14359 lt_prog_compiler_pic_CXX='-pic'
14360 ;;
14361 cxx*)
14362 # Digital/Compaq C++
14363 lt_prog_compiler_wl_CXX='-Wl,'
14364 # Make sure the PIC flag is empty. It appears that all Alpha
14365 # Linux and Compaq Tru64 Unix objects are PIC.
14366 lt_prog_compiler_pic_CXX=
14367 lt_prog_compiler_static_CXX='-non_shared'
14368 ;;
14369 *)
14370 ;;
14371 esac
14372 ;;
14373 psos*)
14374 ;;
14375 solaris*)
14376 case $cc_basename in
14377 CC* | sunCC*)
14378 # Sun C++ 4.2, 5.x and Centerline C++
14379 lt_prog_compiler_pic_CXX='-KPIC'
14380 lt_prog_compiler_static_CXX='-Bstatic'
14381 lt_prog_compiler_wl_CXX='-Qoption ld '
14382 ;;
14383 gcx*)
14384 # Green Hills C++ Compiler
14385 lt_prog_compiler_pic_CXX='-PIC'
14386 ;;
14387 *)
14388 ;;
14389 esac
14390 ;;
14391 sunos4*)
14392 case $cc_basename in
14393 CC*)
14394 # Sun C++ 4.x
14395 lt_prog_compiler_pic_CXX='-pic'
14396 lt_prog_compiler_static_CXX='-Bstatic'
14397 ;;
14398 lcc*)
14399 # Lucid
14400 lt_prog_compiler_pic_CXX='-pic'
14401 ;;
14402 *)
14403 ;;
14404 esac
14405 ;;
14406 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14407 case $cc_basename in
14408 CC*)
14409 lt_prog_compiler_wl_CXX='-Wl,'
14410 lt_prog_compiler_pic_CXX='-KPIC'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14412 ;;
14413 esac
14414 ;;
14415 tandem*)
14416 case $cc_basename in
14417 NCC*)
14418 # NonStop-UX NCC 3.20
14419 lt_prog_compiler_pic_CXX='-KPIC'
14420 ;;
14421 *)
14422 ;;
14423 esac
14424 ;;
14425 vxworks*)
14426 ;;
14427 *)
14428 lt_prog_compiler_can_build_shared_CXX=no
14429 ;;
14430 esac
14431 fi
14432
14433case $host_os in
14434 # For platforms which do not support PIC, -DPIC is meaningless:
14435 *djgpp*)
14436 lt_prog_compiler_pic_CXX=
14437 ;;
14438 *)
14439 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14440 ;;
14441esac
14442
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14444$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14445if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14446 $as_echo_n "(cached) " >&6
14447else
14448 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14451$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14452lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14453
14454#
14455# Check to make sure the PIC flag actually works.
14456#
14457if test -n "$lt_prog_compiler_pic_CXX"; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14459$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14460if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462else
14463 lt_cv_prog_compiler_pic_works_CXX=no
14464 ac_outfile=conftest.$ac_objext
14465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 # The option is referenced via a variable to avoid confusing sed.
14472 lt_compile=`echo "$ac_compile" | $SED \
14473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
14476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14477 (eval "$lt_compile" 2>conftest.err)
14478 ac_status=$?
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 if (exit $ac_status) && test -s "$ac_outfile"; then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings other than the usual output.
14484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_pic_works_CXX=yes
14488 fi
14489 fi
14490 $RM conftest*
14491
14492fi
14493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14494$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14495
14496if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14497 case $lt_prog_compiler_pic_CXX in
14498 "" | " "*) ;;
14499 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14500 esac
14501else
14502 lt_prog_compiler_pic_CXX=
14503 lt_prog_compiler_can_build_shared_CXX=no
14504fi
14505
14506fi
14507
14508
14509
14510
14511
14512#
14513# Check to make sure the static flag actually works.
14514#
14515wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14517$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14518if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520else
14521 lt_cv_prog_compiler_static_works_CXX=no
14522 save_LDFLAGS="$LDFLAGS"
14523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14526 # The linker can only warn and ignore the option if not recognized
14527 # So say no if there are warnings
14528 if test -s conftest.err; then
14529 # Append any errors to the config.log.
14530 cat conftest.err 1>&5
14531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14533 if diff conftest.exp conftest.er2 >/dev/null; then
14534 lt_cv_prog_compiler_static_works_CXX=yes
14535 fi
14536 else
14537 lt_cv_prog_compiler_static_works_CXX=yes
14538 fi
14539 fi
14540 $RM -r conftest*
14541 LDFLAGS="$save_LDFLAGS"
14542
14543fi
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14545$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14546
14547if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14548 :
14549else
14550 lt_prog_compiler_static_CXX=
14551fi
14552
14553
14554
14555
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14557$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14558if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560else
14561 lt_cv_prog_compiler_c_o_CXX=no
14562 $RM -r conftest 2>/dev/null
14563 mkdir conftest
14564 cd conftest
14565 mkdir out
14566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14567
14568 lt_compiler_flag="-o out/conftest2.$ac_objext"
14569 # Insert the option either (1) after the last *FLAGS variable, or
14570 # (2) before a word containing "conftest.", or (3) at the end.
14571 # Note that $ac_compile itself does not contain backslashes and begins
14572 # with a dollar sign (not a hyphen), so the echo should work correctly.
14573 lt_compile=`echo "$ac_compile" | $SED \
14574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576 -e 's:$: $lt_compiler_flag:'`
14577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14578 (eval "$lt_compile" 2>out/conftest.err)
14579 ac_status=$?
14580 cat out/conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14583 then
14584 # The compiler can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
14586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14589 lt_cv_prog_compiler_c_o_CXX=yes
14590 fi
14591 fi
14592 chmod u+w . 2>&5
14593 $RM conftest*
14594 # SGI C++ compiler will create directory out/ii_files/ for
14595 # template instantiation
14596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14597 $RM out/* && rmdir out
14598 cd ..
14599 $RM -r conftest
14600 $RM conftest*
14601
14602fi
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14604$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14605
14606
14607
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14609$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14610if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612else
14613 lt_cv_prog_compiler_c_o_CXX=no
14614 $RM -r conftest 2>/dev/null
14615 mkdir conftest
14616 cd conftest
14617 mkdir out
14618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14619
14620 lt_compiler_flag="-o out/conftest2.$ac_objext"
14621 # Insert the option either (1) after the last *FLAGS variable, or
14622 # (2) before a word containing "conftest.", or (3) at the end.
14623 # Note that $ac_compile itself does not contain backslashes and begins
14624 # with a dollar sign (not a hyphen), so the echo should work correctly.
14625 lt_compile=`echo "$ac_compile" | $SED \
14626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14628 -e 's:$: $lt_compiler_flag:'`
14629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14630 (eval "$lt_compile" 2>out/conftest.err)
14631 ac_status=$?
14632 cat out/conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14635 then
14636 # The compiler can only warn and ignore the option if not recognized
14637 # So say no if there are warnings
14638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14641 lt_cv_prog_compiler_c_o_CXX=yes
14642 fi
14643 fi
14644 chmod u+w . 2>&5
14645 $RM conftest*
14646 # SGI C++ compiler will create directory out/ii_files/ for
14647 # template instantiation
14648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14649 $RM out/* && rmdir out
14650 cd ..
14651 $RM -r conftest
14652 $RM conftest*
14653
14654fi
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14656$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14657
14658
14659
14660
14661hard_links="nottested"
14662if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14663 # do not overwrite the value of need_locks provided by the user
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14665$as_echo_n "checking if we can lock with hard links... " >&6; }
14666 hard_links=yes
14667 $RM conftest*
14668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14669 touch conftest.a
14670 ln conftest.a conftest.b 2>&5 || hard_links=no
14671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14673$as_echo "$hard_links" >&6; }
14674 if test "$hard_links" = no; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14676$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14677 need_locks=warn
14678 fi
14679else
14680 need_locks=no
14681fi
14682
14683
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14686$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14687
14688 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14689 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14690 case $host_os in
14691 aix[4-9]*)
14692 # If we're using GNU nm, then we don't want the "-C" option.
14693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14694 # Also, AIX nm treats weak defined symbols like other global defined
14695 # symbols, whereas GNU nm marks them as "W".
14696 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14697 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14698 else
14699 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14700 fi
14701 ;;
14702 pw32*)
14703 export_symbols_cmds_CXX="$ltdll_cmds"
14704 ;;
14705 cygwin* | mingw* | cegcc*)
14706 case $cc_basename in
14707 cl*)
14708 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14709 ;;
14710 *)
14711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14712 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14713 ;;
14714 esac
14715 ;;
14716 *)
14717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14718 ;;
14719 esac
14720
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14722$as_echo "$ld_shlibs_CXX" >&6; }
14723test "$ld_shlibs_CXX" = no && can_build_shared=no
14724
14725with_gnu_ld_CXX=$with_gnu_ld
14726
14727
14728
14729
14730
14731
14732#
14733# Do we need to explicitly link libc?
14734#
14735case "x$archive_cmds_need_lc_CXX" in
14736x|xyes)
14737 # Assume -lc should be added
14738 archive_cmds_need_lc_CXX=yes
14739
14740 if test "$enable_shared" = yes && test "$GCC" = yes; then
14741 case $archive_cmds_CXX in
14742 *'~'*)
14743 # FIXME: we may have to deal with multi-command sequences.
14744 ;;
14745 '$CC '*)
14746 # Test whether the compiler implicitly links with -lc since on some
14747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14748 # to ld, don't add -lc before -lgcc.
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14750$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14751if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753else
14754 $RM conftest*
14755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14756
14757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14758 (eval $ac_compile) 2>&5
14759 ac_status=$?
14760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761 test $ac_status = 0; } 2>conftest.err; then
14762 soname=conftest
14763 lib=conftest
14764 libobjs=conftest.$ac_objext
14765 deplibs=
14766 wl=$lt_prog_compiler_wl_CXX
14767 pic_flag=$lt_prog_compiler_pic_CXX
14768 compiler_flags=-v
14769 linker_flags=-v
14770 verstring=
14771 output_objdir=.
14772 libname=conftest
14773 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14774 allow_undefined_flag_CXX=
14775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14776 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14777 ac_status=$?
14778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14779 test $ac_status = 0; }
14780 then
14781 lt_cv_archive_cmds_need_lc_CXX=no
14782 else
14783 lt_cv_archive_cmds_need_lc_CXX=yes
14784 fi
14785 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14786 else
14787 cat conftest.err 1>&5
14788 fi
14789 $RM conftest*
14790
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14793$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14794 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14795 ;;
14796 esac
14797 fi
14798 ;;
14799esac
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14863$as_echo_n "checking dynamic linker characteristics... " >&6; }
14864
14865library_names_spec=
14866libname_spec='lib$name'
14867soname_spec=
14868shrext_cmds=".so"
14869postinstall_cmds=
14870postuninstall_cmds=
14871finish_cmds=
14872finish_eval=
14873shlibpath_var=
14874shlibpath_overrides_runpath=unknown
14875version_type=none
14876dynamic_linker="$host_os ld.so"
14877sys_lib_dlsearch_path_spec="/lib /usr/lib"
14878need_lib_prefix=unknown
14879hardcode_into_libs=no
14880
14881# when you set need_version to no, make sure it does not cause -set_version
14882# flags to be left without arguments
14883need_version=unknown
14884
14885case $host_os in
14886aix3*)
14887 version_type=linux # correct to gnu/linux during the next big refactor
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14889 shlibpath_var=LIBPATH
14890
14891 # AIX 3 has no versioning support, so we append a major version to the name.
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 ;;
14894
14895aix[4-9]*)
14896 version_type=linux # correct to gnu/linux during the next big refactor
14897 need_lib_prefix=no
14898 need_version=no
14899 hardcode_into_libs=yes
14900 if test "$host_cpu" = ia64; then
14901 # AIX 5 supports IA64
14902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 else
14905 # With GCC up to 2.95.x, collect2 would create an import file
14906 # for dependence libraries. The import file would start with
14907 # the line `#! .'. This would cause the generated library to
14908 # depend on `.', always an invalid library. This was fixed in
14909 # development snapshots of GCC prior to 3.0.
14910 case $host_os in
14911 aix4 | aix4.[01] | aix4.[01].*)
14912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14913 echo ' yes '
14914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14915 :
14916 else
14917 can_build_shared=no
14918 fi
14919 ;;
14920 esac
14921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14922 # soname into executable. Probably we can add versioning support to
14923 # collect2, so additional links can be useful in future.
14924 if test "$aix_use_runtimelinking" = yes; then
14925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14926 # instead of lib<name>.a to let people know that these are not
14927 # typical AIX shared libraries.
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 else
14930 # We preserve .a as extension for shared libraries through AIX4.2
14931 # and later when we are not doing run time linking.
14932 library_names_spec='${libname}${release}.a $libname.a'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 fi
14935 shlibpath_var=LIBPATH
14936 fi
14937 ;;
14938
14939amigaos*)
14940 case $host_cpu in
14941 powerpc)
14942 # Since July 2007 AmigaOS4 officially supports .so libraries.
14943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 ;;
14946 m68k)
14947 library_names_spec='$libname.ixlibrary $libname.a'
14948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14950 ;;
14951 esac
14952 ;;
14953
14954beos*)
14955 library_names_spec='${libname}${shared_ext}'
14956 dynamic_linker="$host_os ld.so"
14957 shlibpath_var=LIBRARY_PATH
14958 ;;
14959
14960bsdi[45]*)
14961 version_type=linux # correct to gnu/linux during the next big refactor
14962 need_version=no
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14969 # the default ld.so.conf also contains /usr/contrib/lib and
14970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14971 # libtool to hard-code these into programs
14972 ;;
14973
14974cygwin* | mingw* | pw32* | cegcc*)
14975 version_type=windows
14976 shrext_cmds=".dll"
14977 need_version=no
14978 need_lib_prefix=no
14979
14980 case $GCC,$cc_basename in
14981 yes,*)
14982 # gcc
14983 library_names_spec='$libname.dll.a'
14984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14985 postinstall_cmds='base_file=`basename \${file}`~
14986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14987 dldir=$destdir/`dirname \$dlpath`~
14988 test -d \$dldir || mkdir -p \$dldir~
14989 $install_prog $dir/$dlname \$dldir/$dlname~
14990 chmod a+x \$dldir/$dlname~
14991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14993 fi'
14994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14995 dlpath=$dir/\$dldll~
14996 $RM \$dlpath'
14997 shlibpath_overrides_runpath=yes
14998
14999 case $host_os in
15000 cygwin*)
15001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003
15004 ;;
15005 mingw* | cegcc*)
15006 # MinGW DLLs use traditional 'lib' prefix
15007 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15008 ;;
15009 pw32*)
15010 # pw32 DLLs use 'pw' prefix rather than 'lib'
15011 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15012 ;;
15013 esac
15014 dynamic_linker='Win32 ld.exe'
15015 ;;
15016
15017 *,cl*)
15018 # Native MSVC
15019 libname_spec='$name'
15020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15021 library_names_spec='${libname}.dll.lib'
15022
15023 case $build_os in
15024 mingw*)
15025 sys_lib_search_path_spec=
15026 lt_save_ifs=$IFS
15027 IFS=';'
15028 for lt_path in $LIB
15029 do
15030 IFS=$lt_save_ifs
15031 # Let DOS variable expansion print the short 8.3 style file name.
15032 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15033 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15034 done
15035 IFS=$lt_save_ifs
15036 # Convert to MSYS style.
15037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15038 ;;
15039 cygwin*)
15040 # Convert to unix form, then to dos form, then back to unix form
15041 # but this time dos style (no spaces!) so that the unix form looks
15042 # like /cygdrive/c/PROGRA~1:/cygdr...
15043 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15044 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15045 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15046 ;;
15047 *)
15048 sys_lib_search_path_spec="$LIB"
15049 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15050 # It is most probably a Windows format PATH.
15051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15052 else
15053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15054 fi
15055 # FIXME: find the short name or the path components, as spaces are
15056 # common. (e.g. "Program Files" -> "PROGRA~1")
15057 ;;
15058 esac
15059
15060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15061 postinstall_cmds='base_file=`basename \${file}`~
15062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15063 dldir=$destdir/`dirname \$dlpath`~
15064 test -d \$dldir || mkdir -p \$dldir~
15065 $install_prog $dir/$dlname \$dldir/$dlname'
15066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15067 dlpath=$dir/\$dldll~
15068 $RM \$dlpath'
15069 shlibpath_overrides_runpath=yes
15070 dynamic_linker='Win32 link.exe'
15071 ;;
15072
15073 *)
15074 # Assume MSVC wrapper
15075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15076 dynamic_linker='Win32 ld.exe'
15077 ;;
15078 esac
15079 # FIXME: first we should search . and the directory the executable is in
15080 shlibpath_var=PATH
15081 ;;
15082
15083darwin* | rhapsody*)
15084 dynamic_linker="$host_os dyld"
15085 version_type=darwin
15086 need_lib_prefix=no
15087 need_version=no
15088 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15089 soname_spec='${libname}${release}${major}$shared_ext'
15090 shlibpath_overrides_runpath=yes
15091 shlibpath_var=DYLD_LIBRARY_PATH
15092 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15093
15094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15095 ;;
15096
15097dgux*)
15098 version_type=linux # correct to gnu/linux during the next big refactor
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 ;;
15105
15106freebsd* | dragonfly*)
15107 # DragonFly does not have aout. When/if they implement a new
15108 # versioning mechanism, adjust this.
15109 if test -x /usr/bin/objformat; then
15110 objformat=`/usr/bin/objformat`
15111 else
15112 case $host_os in
15113 freebsd[23].*) objformat=aout ;;
15114 *) objformat=elf ;;
15115 esac
15116 fi
15117 version_type=freebsd-$objformat
15118 case $version_type in
15119 freebsd-elf*)
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15121 need_version=no
15122 need_lib_prefix=no
15123 ;;
15124 freebsd-*)
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15126 need_version=yes
15127 ;;
15128 esac
15129 shlibpath_var=LD_LIBRARY_PATH
15130 case $host_os in
15131 freebsd2.*)
15132 shlibpath_overrides_runpath=yes
15133 ;;
15134 freebsd3.[01]* | freebsdelf3.[01]*)
15135 shlibpath_overrides_runpath=yes
15136 hardcode_into_libs=yes
15137 ;;
15138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15140 shlibpath_overrides_runpath=no
15141 hardcode_into_libs=yes
15142 ;;
15143 *) # from 4.6 on, and DragonFly
15144 shlibpath_overrides_runpath=yes
15145 hardcode_into_libs=yes
15146 ;;
15147 esac
15148 ;;
15149
15150gnu*)
15151 version_type=linux # correct to gnu/linux during the next big refactor
15152 need_lib_prefix=no
15153 need_version=no
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15155 soname_spec='${libname}${release}${shared_ext}$major'
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=no
15158 hardcode_into_libs=yes
15159 ;;
15160
15161haiku*)
15162 version_type=linux # correct to gnu/linux during the next big refactor
15163 need_lib_prefix=no
15164 need_version=no
15165 dynamic_linker="$host_os runtime_loader"
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 shlibpath_var=LIBRARY_PATH
15169 shlibpath_overrides_runpath=yes
15170 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15171 hardcode_into_libs=yes
15172 ;;
15173
15174hpux9* | hpux10* | hpux11*)
15175 # Give a soname corresponding to the major version so that dld.sl refuses to
15176 # link against other versions.
15177 version_type=sunos
15178 need_lib_prefix=no
15179 need_version=no
15180 case $host_cpu in
15181 ia64*)
15182 shrext_cmds='.so'
15183 hardcode_into_libs=yes
15184 dynamic_linker="$host_os dld.so"
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 if test "X$HPUX_IA64_MODE" = X32; then
15190 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15191 else
15192 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15193 fi
15194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15195 ;;
15196 hppa*64*)
15197 shrext_cmds='.sl'
15198 hardcode_into_libs=yes
15199 dynamic_linker="$host_os dld.sl"
15200 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15206 ;;
15207 *)
15208 shrext_cmds='.sl'
15209 dynamic_linker="$host_os dld.sl"
15210 shlibpath_var=SHLIB_PATH
15211 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 ;;
15215 esac
15216 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15217 postinstall_cmds='chmod 555 $lib'
15218 # or fails outright, so override atomically:
15219 install_override_mode=555
15220 ;;
15221
15222interix[3-9]*)
15223 version_type=linux # correct to gnu/linux during the next big refactor
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=no
15231 hardcode_into_libs=yes
15232 ;;
15233
15234irix5* | irix6* | nonstopux*)
15235 case $host_os in
15236 nonstopux*) version_type=nonstopux ;;
15237 *)
15238 if test "$lt_cv_prog_gnu_ld" = yes; then
15239 version_type=linux # correct to gnu/linux during the next big refactor
15240 else
15241 version_type=irix
15242 fi ;;
15243 esac
15244 need_lib_prefix=no
15245 need_version=no
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15248 case $host_os in
15249 irix5* | nonstopux*)
15250 libsuff= shlibsuff=
15251 ;;
15252 *)
15253 case $LD in # libtool.m4 will add one of these switches to LD
15254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15255 libsuff= shlibsuff= libmagic=32-bit;;
15256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15257 libsuff=32 shlibsuff=N32 libmagic=N32;;
15258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15260 *) libsuff= shlibsuff= libmagic=never-match;;
15261 esac
15262 ;;
15263 esac
15264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15265 shlibpath_overrides_runpath=no
15266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15268 hardcode_into_libs=yes
15269 ;;
15270
15271# No shared lib support for Linux oldld, aout, or coff.
15272linux*oldld* | linux*aout* | linux*coff*)
15273 dynamic_linker=no
15274 ;;
15275
15276# This must be glibc/ELF.
15277linux* | k*bsd*-gnu | kopensolaris*-gnu)
15278 version_type=linux # correct to gnu/linux during the next big refactor
15279 need_lib_prefix=no
15280 need_version=no
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=no
15286
15287 # Some binutils ld are patched to set DT_RUNPATH
15288 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15289 $as_echo_n "(cached) " >&6
15290else
15291 lt_cv_shlibpath_overrides_runpath=no
15292 save_LDFLAGS=$LDFLAGS
15293 save_libdir=$libdir
15294 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15295 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h. */
15298
15299int
15300main ()
15301{
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307if ac_fn_cxx_try_link "$LINENO"; then :
15308 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15309 lt_cv_shlibpath_overrides_runpath=yes
15310fi
15311fi
15312rm -f core conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15314 LDFLAGS=$save_LDFLAGS
15315 libdir=$save_libdir
15316
15317fi
15318
15319 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15320
15321 # This implies no fast_install, which is unacceptable.
15322 # Some rework will be needed to allow for fast_install
15323 # before this can be enabled.
15324 hardcode_into_libs=yes
15325
15326 # Add ABI-specific directories to the system library path.
15327 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15328
15329 # Append ld.so.conf contents to the search path
15330 if test -f /etc/ld.so.conf; then
15331 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' ' '`
15332 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15333
15334 fi
15335
15336 # We used to test for /lib/ld.so.1 and disable shared libraries on
15337 # powerpc, because MkLinux only supported shared libraries with the
15338 # GNU dynamic linker. Since this was broken with cross compilers,
15339 # most powerpc-linux boxes support dynamic linking these days and
15340 # people can always --disable-shared, the test was removed, and we
15341 # assume the GNU/Linux dynamic linker is in use.
15342 dynamic_linker='GNU/Linux ld.so'
15343 ;;
15344
15345netbsd*)
15346 version_type=sunos
15347 need_lib_prefix=no
15348 need_version=no
15349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15352 dynamic_linker='NetBSD (a.out) ld.so'
15353 else
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 dynamic_linker='NetBSD ld.elf_so'
15357 fi
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15361 ;;
15362
15363newsos6)
15364 version_type=linux # correct to gnu/linux during the next big refactor
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 ;;
15369
15370*nto* | *qnx*)
15371 version_type=qnx
15372 need_lib_prefix=no
15373 need_version=no
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375 soname_spec='${libname}${release}${shared_ext}$major'
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=no
15378 hardcode_into_libs=yes
15379 dynamic_linker='ldqnx.so'
15380 ;;
15381
15382openbsd*)
15383 version_type=sunos
15384 sys_lib_dlsearch_path_spec="/usr/lib"
15385 need_lib_prefix=no
15386 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15387 case $host_os in
15388 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15389 *) need_version=no ;;
15390 esac
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15395 case $host_os in
15396 openbsd2.[89] | openbsd2.[89].*)
15397 shlibpath_overrides_runpath=no
15398 ;;
15399 *)
15400 shlibpath_overrides_runpath=yes
15401 ;;
15402 esac
15403 else
15404 shlibpath_overrides_runpath=yes
15405 fi
15406 ;;
15407
15408os2*)
15409 libname_spec='$name'
15410 shrext_cmds=".dll"
15411 need_lib_prefix=no
15412 library_names_spec='$libname${shared_ext} $libname.a'
15413 dynamic_linker='OS/2 ld.exe'
15414 shlibpath_var=LIBPATH
15415 ;;
15416
15417osf3* | osf4* | osf5*)
15418 version_type=osf
15419 need_lib_prefix=no
15420 need_version=no
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15426 ;;
15427
15428rdos*)
15429 dynamic_linker=no
15430 ;;
15431
15432solaris*)
15433 version_type=linux # correct to gnu/linux during the next big refactor
15434 need_lib_prefix=no
15435 need_version=no
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes
15440 hardcode_into_libs=yes
15441 # ldd complains unless libraries are executable
15442 postinstall_cmds='chmod +x $lib'
15443 ;;
15444
15445sunos4*)
15446 version_type=sunos
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=yes
15451 if test "$with_gnu_ld" = yes; then
15452 need_lib_prefix=no
15453 fi
15454 need_version=yes
15455 ;;
15456
15457sysv4 | sysv4.3*)
15458 version_type=linux # correct to gnu/linux during the next big refactor
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 case $host_vendor in
15463 sni)
15464 shlibpath_overrides_runpath=no
15465 need_lib_prefix=no
15466 runpath_var=LD_RUN_PATH
15467 ;;
15468 siemens)
15469 need_lib_prefix=no
15470 ;;
15471 motorola)
15472 need_lib_prefix=no
15473 need_version=no
15474 shlibpath_overrides_runpath=no
15475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15476 ;;
15477 esac
15478 ;;
15479
15480sysv4*MP*)
15481 if test -d /usr/nec ;then
15482 version_type=linux # correct to gnu/linux during the next big refactor
15483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15484 soname_spec='$libname${shared_ext}.$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 fi
15487 ;;
15488
15489sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15490 version_type=freebsd-elf
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15497 hardcode_into_libs=yes
15498 if test "$with_gnu_ld" = yes; then
15499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15500 else
15501 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15502 case $host_os in
15503 sco3.2v5*)
15504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15505 ;;
15506 esac
15507 fi
15508 sys_lib_dlsearch_path_spec='/usr/lib'
15509 ;;
15510
15511tpf*)
15512 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15513 version_type=linux # correct to gnu/linux during the next big refactor
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=no
15519 hardcode_into_libs=yes
15520 ;;
15521
15522uts4*)
15523 version_type=linux # correct to gnu/linux during the next big refactor
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 shlibpath_var=LD_LIBRARY_PATH
15527 ;;
15528
15529*)
15530 dynamic_linker=no
15531 ;;
15532esac
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15534$as_echo "$dynamic_linker" >&6; }
15535test "$dynamic_linker" = no && can_build_shared=no
15536
15537variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15538if test "$GCC" = yes; then
15539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15540fi
15541
15542if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15543 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15544fi
15545if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15546 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15547fi
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15587$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15588hardcode_action_CXX=
15589if test -n "$hardcode_libdir_flag_spec_CXX" ||
15590 test -n "$runpath_var_CXX" ||
15591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15592
15593 # We can hardcode non-existent directories.
15594 if test "$hardcode_direct_CXX" != no &&
15595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15596 # have to relink, otherwise we might link with an installed library
15597 # when we should be linking with a yet-to-be-installed one
15598 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15599 test "$hardcode_minus_L_CXX" != no; then
15600 # Linking always hardcodes the temporary library directory.
15601 hardcode_action_CXX=relink
15602 else
15603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15604 hardcode_action_CXX=immediate
15605 fi
15606else
15607 # We cannot hardcode anything, or else we can only hardcode existing
15608 # directories.
15609 hardcode_action_CXX=unsupported
15610fi
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15612$as_echo "$hardcode_action_CXX" >&6; }
15613
15614if test "$hardcode_action_CXX" = relink ||
15615 test "$inherit_rpath_CXX" = yes; then
15616 # Fast installation is not supported
15617 enable_fast_install=no
15618elif test "$shlibpath_overrides_runpath" = yes ||
15619 test "$enable_shared" = no; then
15620 # Fast installation is not necessary
15621 enable_fast_install=needless
15622fi
15623
15624
15625
15626
15627
15628
15629
15630 fi # test -n "$compiler"
15631
15632 CC=$lt_save_CC
15633 CFLAGS=$lt_save_CFLAGS
15634 LDCXX=$LD
15635 LD=$lt_save_LD
15636 GCC=$lt_save_GCC
15637 with_gnu_ld=$lt_save_with_gnu_ld
15638 lt_cv_path_LDCXX=$lt_cv_path_LD
15639 lt_cv_path_LD=$lt_save_path_LD
15640 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15641 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15642fi # test "$_lt_caught_CXX_error" != yes
15643
15644ac_ext=c
15645ac_cpp='$CPP $CPPFLAGS'
15646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15648ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664 ac_config_commands="$ac_config_commands libtool"
15665
15666
15667
15668
15669# Only expand once:
15670
15671
15672am__api_version='1.13'
15673
15674# Find a good install program. We prefer a C program (faster),
15675# so one script is as good as another. But avoid the broken or
15676# incompatible versions:
15677# SysV /etc/install, /usr/sbin/install
15678# SunOS /usr/etc/install
15679# IRIX /sbin/install
15680# AIX /bin/install
15681# AmigaOS /C/install, which installs bootblocks on floppy discs
15682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15685# OS/2's system install, which has a completely different semantic
15686# ./install, which can be erroneously created by make from ./install.sh.
15687# Reject install programs that cannot install multiple files.
15688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15689$as_echo_n "checking for a BSD-compatible install... " >&6; }
15690if test -z "$INSTALL"; then
15691if ${ac_cv_path_install+:} false; then :
15692 $as_echo_n "(cached) " >&6
15693else
15694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695for as_dir in $PATH
15696do
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 # Account for people who put trailing slashes in PATH elements.
15700case $as_dir/ in #((
15701 ./ | .// | /[cC]/* | \
15702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15704 /usr/ucb/* ) ;;
15705 *)
15706 # OSF1 and SCO ODT 3.0 have their own names for install.
15707 # Don't use installbsd from OSF since it installs stuff as root
15708 # by default.
15709 for ac_prog in ginstall scoinst install; do
15710 for ac_exec_ext in '' $ac_executable_extensions; do
15711 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15712 if test $ac_prog = install &&
15713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15714 # AIX install. It has an incompatible calling convention.
15715 :
15716 elif test $ac_prog = install &&
15717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15718 # program-specific install script used by HP pwplus--don't use.
15719 :
15720 else
15721 rm -rf conftest.one conftest.two conftest.dir
15722 echo one > conftest.one
15723 echo two > conftest.two
15724 mkdir conftest.dir
15725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15726 test -s conftest.one && test -s conftest.two &&
15727 test -s conftest.dir/conftest.one &&
15728 test -s conftest.dir/conftest.two
15729 then
15730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15731 break 3
15732 fi
15733 fi
15734 fi
15735 done
15736 done
15737 ;;
15738esac
15739
15740 done
15741IFS=$as_save_IFS
15742
15743rm -rf conftest.one conftest.two conftest.dir
15744
15745fi
15746 if test "${ac_cv_path_install+set}" = set; then
15747 INSTALL=$ac_cv_path_install
15748 else
15749 # As a last resort, use the slow shell script. Don't cache a
15750 # value for INSTALL within a source directory, because that will
15751 # break other packages using the cache if that directory is
15752 # removed, or if the value is a relative name.
15753 INSTALL=$ac_install_sh
15754 fi
15755fi
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15757$as_echo "$INSTALL" >&6; }
15758
15759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15760# It thinks the first close brace ends the variable substitution.
15761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15762
15763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15764
15765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15766
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15768$as_echo_n "checking whether build environment is sane... " >&6; }
15769# Reject unsafe characters in $srcdir or the absolute working directory
15770# name. Accept space and tab only in the latter.
15771am_lf='
15772'
15773case `pwd` in
15774 *[\\\"\#\$\&\'\`$am_lf]*)
15775 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
15776esac
15777case $srcdir in
15778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15779 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
15780esac
15781
15782# Do 'set' in a subshell so we don't clobber the current shell's
15783# arguments. Must try -L first in case configure is actually a
15784# symlink; some systems play weird games with the mod time of symlinks
15785# (eg FreeBSD returns the mod time of the symlink's containing
15786# directory).
15787if (
15788 am_has_slept=no
15789 for am_try in 1 2; do
15790 echo "timestamp, slept: $am_has_slept" > conftest.file
15791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15792 if test "$*" = "X"; then
15793 # -L didn't work.
15794 set X `ls -t "$srcdir/configure" conftest.file`
15795 fi
15796 if test "$*" != "X $srcdir/configure conftest.file" \
15797 && test "$*" != "X conftest.file $srcdir/configure"; then
15798
15799 # If neither matched, then we have a broken ls. This can happen
15800 # if, for instance, CONFIG_SHELL is bash and it inherits a
15801 # broken ls alias from the environment. This has actually
15802 # happened. Such a system could not be considered "sane".
15803 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
15804 alias in your environment" "$LINENO" 5
15805 fi
15806 if test "$2" = conftest.file || test $am_try -eq 2; then
15807 break
15808 fi
15809 # Just in case.
15810 sleep 1
15811 am_has_slept=yes
15812 done
15813 test "$2" = conftest.file
15814 )
15815then
15816 # Ok.
15817 :
15818else
15819 as_fn_error $? "newly created file is older than distributed files!
15820Check your system clock" "$LINENO" 5
15821fi
15822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15823$as_echo "yes" >&6; }
15824# If we didn't sleep, we still need to ensure time stamps of config.status and
15825# generated files are strictly newer.
15826am_sleep_pid=
15827if grep 'slept: no' conftest.file >/dev/null 2>&1; then
15828 ( sleep 1 ) &
15829 am_sleep_pid=$!
15830fi
15831
15832rm -f conftest.file
15833
15834test "$program_prefix" != NONE &&
15835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15836# Use a double $ so make ignores it.
15837test "$program_suffix" != NONE &&
15838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15839# Double any \ or $.
15840# By default was `s,x,x', remove it if useless.
15841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15842program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15843
15844# expand $ac_aux_dir to an absolute path
15845am_aux_dir=`cd $ac_aux_dir && pwd`
15846
15847if test x"${MISSING+set}" != xset; then
15848 case $am_aux_dir in
15849 *\ * | *\ *)
15850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15851 *)
15852 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15853 esac
15854fi
15855# Use eval to expand $SHELL
15856if eval "$MISSING --is-lightweight"; then
15857 am_missing_run="$MISSING "
15858else
15859 am_missing_run=
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
15861$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
15862fi
15863
15864if test x"${install_sh}" != xset; then
15865 case $am_aux_dir in
15866 *\ * | *\ *)
15867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15868 *)
15869 install_sh="\${SHELL} $am_aux_dir/install-sh"
15870 esac
15871fi
15872
15873# Installed binaries are usually stripped using 'strip' when the user
15874# run "make install-strip". However 'strip' might not be the right
15875# tool to use in cross-compilation environments, therefore Automake
15876# will honor the 'STRIP' environment variable to overrule this program.
15877if test "$cross_compiling" != no; then
15878 if test -n "$ac_tool_prefix"; then
15879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15880set dummy ${ac_tool_prefix}strip; ac_word=$2
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882$as_echo_n "checking for $ac_word... " >&6; }
15883if ${ac_cv_prog_STRIP+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885else
15886 if test -n "$STRIP"; then
15887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15888else
15889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890for as_dir in $PATH
15891do
15892 IFS=$as_save_IFS
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 break 2
15899 fi
15900done
15901 done
15902IFS=$as_save_IFS
15903
15904fi
15905fi
15906STRIP=$ac_cv_prog_STRIP
15907if test -n "$STRIP"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15909$as_echo "$STRIP" >&6; }
15910else
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912$as_echo "no" >&6; }
15913fi
15914
15915
15916fi
15917if test -z "$ac_cv_prog_STRIP"; then
15918 ac_ct_STRIP=$STRIP
15919 # Extract the first word of "strip", so it can be a program name with args.
15920set dummy strip; ac_word=$2
15921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15922$as_echo_n "checking for $ac_word... " >&6; }
15923if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15924 $as_echo_n "(cached) " >&6
15925else
15926 if test -n "$ac_ct_STRIP"; then
15927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15928else
15929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15930for as_dir in $PATH
15931do
15932 IFS=$as_save_IFS
15933 test -z "$as_dir" && as_dir=.
15934 for ac_exec_ext in '' $ac_executable_extensions; do
15935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15936 ac_cv_prog_ac_ct_STRIP="strip"
15937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15938 break 2
15939 fi
15940done
15941 done
15942IFS=$as_save_IFS
15943
15944fi
15945fi
15946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15947if test -n "$ac_ct_STRIP"; then
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15949$as_echo "$ac_ct_STRIP" >&6; }
15950else
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15952$as_echo "no" >&6; }
15953fi
15954
15955 if test "x$ac_ct_STRIP" = x; then
15956 STRIP=":"
15957 else
15958 case $cross_compiling:$ac_tool_warned in
15959yes:)
15960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15962ac_tool_warned=yes ;;
15963esac
15964 STRIP=$ac_ct_STRIP
15965 fi
15966else
15967 STRIP="$ac_cv_prog_STRIP"
15968fi
15969
15970fi
15971INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15972
15973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15974$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15975if test -z "$MKDIR_P"; then
15976 if ${ac_cv_path_mkdir+:} false; then :
15977 $as_echo_n "(cached) " >&6
15978else
15979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15981do
15982 IFS=$as_save_IFS
15983 test -z "$as_dir" && as_dir=.
15984 for ac_prog in mkdir gmkdir; do
15985 for ac_exec_ext in '' $ac_executable_extensions; do
15986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
15987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15988 'mkdir (GNU coreutils) '* | \
15989 'mkdir (coreutils) '* | \
15990 'mkdir (fileutils) '4.1*)
15991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15992 break 3;;
15993 esac
15994 done
15995 done
15996 done
15997IFS=$as_save_IFS
15998
15999fi
16000
16001 test -d ./--version && rmdir ./--version
16002 if test "${ac_cv_path_mkdir+set}" = set; then
16003 MKDIR_P="$ac_cv_path_mkdir -p"
16004 else
16005 # As a last resort, use the slow shell script. Don't cache a
16006 # value for MKDIR_P within a source directory, because that will
16007 # break other packages using the cache if that directory is
16008 # removed, or if the value is a relative name.
16009 MKDIR_P="$ac_install_sh -d"
16010 fi
16011fi
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16013$as_echo "$MKDIR_P" >&6; }
16014
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16016$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16017set x ${MAKE-make}
16018ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16019if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16020 $as_echo_n "(cached) " >&6
16021else
16022 cat >conftest.make <<\_ACEOF
16023SHELL = /bin/sh
16024all:
16025 @echo '@@@%%%=$(MAKE)=@@@%%%'
16026_ACEOF
16027# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16028case `${MAKE-make} -f conftest.make 2>/dev/null` in
16029 *@@@%%%=?*=@@@%%%*)
16030 eval ac_cv_prog_make_${ac_make}_set=yes;;
16031 *)
16032 eval ac_cv_prog_make_${ac_make}_set=no;;
16033esac
16034rm -f conftest.make
16035fi
16036if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038$as_echo "yes" >&6; }
16039 SET_MAKE=
16040else
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042$as_echo "no" >&6; }
16043 SET_MAKE="MAKE=${MAKE-make}"
16044fi
16045
16046rm -rf .tst 2>/dev/null
16047mkdir .tst 2>/dev/null
16048if test -d .tst; then
16049 am__leading_dot=.
16050else
16051 am__leading_dot=_
16052fi
16053rmdir .tst 2>/dev/null
16054
16055DEPDIR="${am__leading_dot}deps"
16056
16057ac_config_commands="$ac_config_commands depfiles"
16058
16059
16060am_make=${MAKE-make}
16061cat > confinc << 'END'
16062am__doit:
16063 @echo this is the am__doit target
16064.PHONY: am__doit
16065END
16066# If we don't find an include directive, just comment out the code.
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16068$as_echo_n "checking for style of include used by $am_make... " >&6; }
16069am__include="#"
16070am__quote=
16071_am_result=none
16072# First try GNU make style include.
16073echo "include confinc" > confmf
16074# Ignore all kinds of additional output from 'make'.
16075case `$am_make -s -f confmf 2> /dev/null` in #(
16076*the\ am__doit\ target*)
16077 am__include=include
16078 am__quote=
16079 _am_result=GNU
16080 ;;
16081esac
16082# Now try BSD make style include.
16083if test "$am__include" = "#"; then
16084 echo '.include "confinc"' > confmf
16085 case `$am_make -s -f confmf 2> /dev/null` in #(
16086 *the\ am__doit\ target*)
16087 am__include=.include
16088 am__quote="\""
16089 _am_result=BSD
16090 ;;
16091 esac
16092fi
16093
16094
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
16096$as_echo "$_am_result" >&6; }
16097rm -f confinc confmf
16098
16099# Check whether --enable-dependency-tracking was given.
16100if test "${enable_dependency_tracking+set}" = set; then :
16101 enableval=$enable_dependency_tracking;
16102fi
16103
16104if test "x$enable_dependency_tracking" != xno; then
16105 am_depcomp="$ac_aux_dir/depcomp"
16106 AMDEPBACKSLASH='\'
16107 am__nodep='_no'
16108fi
16109 if test "x$enable_dependency_tracking" != xno; then
16110 AMDEP_TRUE=
16111 AMDEP_FALSE='#'
16112else
16113 AMDEP_TRUE='#'
16114 AMDEP_FALSE=
16115fi
16116
16117
16118# Check whether --enable-silent-rules was given.
16119if test "${enable_silent_rules+set}" = set; then :
16120 enableval=$enable_silent_rules;
16121fi
16122
16123case $enable_silent_rules in # (((
16124 yes) AM_DEFAULT_VERBOSITY=0;;
16125 no) AM_DEFAULT_VERBOSITY=1;;
16126 *) AM_DEFAULT_VERBOSITY=1;;
16127esac
16128am_make=${MAKE-make}
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16130$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16131if ${am_cv_make_support_nested_variables+:} false; then :
16132 $as_echo_n "(cached) " >&6
16133else
16134 if $as_echo 'TRUE=$(BAR$(V))
16135BAR0=false
16136BAR1=true
16137V=1
16138am__doit:
16139 @$(TRUE)
16140.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16141 am_cv_make_support_nested_variables=yes
16142else
16143 am_cv_make_support_nested_variables=no
16144fi
16145fi
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16147$as_echo "$am_cv_make_support_nested_variables" >&6; }
16148if test $am_cv_make_support_nested_variables = yes; then
16149 AM_V='$(V)'
16150 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16151else
16152 AM_V=$AM_DEFAULT_VERBOSITY
16153 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16154fi
16155AM_BACKSLASH='\'
16156
16157if test "`cd $srcdir && pwd`" != "`pwd`"; then
16158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16159 # is not polluted with repeated "-I."
16160 am__isrc=' -I$(srcdir)'
16161 # test to see if srcdir already configured
16162 if test -f $srcdir/config.status; then
16163 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16164 fi
16165fi
16166
16167# test whether we have cygpath
16168if test -z "$CYGPATH_W"; then
16169 if (cygpath --version) >/dev/null 2>/dev/null; then
16170 CYGPATH_W='cygpath -w'
16171 else
16172 CYGPATH_W=echo
16173 fi
16174fi
16175
16176
16177# Define the identity of the package.
16178 PACKAGE='ucommon'
16179 VERSION='6.0.7'
16180
16181
16182cat >>confdefs.h <<_ACEOF
16183#define PACKAGE "$PACKAGE"
16184_ACEOF
16185
16186
16187cat >>confdefs.h <<_ACEOF
16188#define VERSION "$VERSION"
16189_ACEOF
16190
16191# Some tools Automake needs.
16192
16193ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16194
16195
16196AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16197
16198
16199AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16200
16201
16202AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16203
16204
16205MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16206
16207# For better backward compatibility. To be removed once Automake 1.9.x
16208# dies out for good. For more background, see:
16209# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16211mkdir_p='$(MKDIR_P)'
16212
16213# We need awk for the "check" target. The system "awk" is bad on
16214# some platforms.
16215# Always define AMTAR for backward compatibility. Yes, it's still used
16216# in the wild :-( We should find a proper way to deprecate it ...
16217AMTAR='$${TAR-tar}'
16218
16219
16220# We'll loop over all known methods to create a tar archive until one works.
16221_am_tools='gnutar pax cpio none'
16222
16223am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16224
16225
16226
16227
16228
16229depcc="$CC" am_compiler_list=
16230
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16232$as_echo_n "checking dependency style of $depcc... " >&6; }
16233if ${am_cv_CC_dependencies_compiler_type+:} false; then :
16234 $as_echo_n "(cached) " >&6
16235else
16236 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16237 # We make a subdir and do the tests there. Otherwise we can end up
16238 # making bogus files that we don't know about and never remove. For
16239 # instance it was reported that on HP-UX the gcc test will end up
16240 # making a dummy file named 'D' -- because '-MD' means "put the output
16241 # in D".
16242 rm -rf conftest.dir
16243 mkdir conftest.dir
16244 # Copy depcomp to subdir because otherwise we won't find it if we're
16245 # using a relative directory.
16246 cp "$am_depcomp" conftest.dir
16247 cd conftest.dir
16248 # We will build objects and dependencies in a subdirectory because
16249 # it helps to detect inapplicable dependency modes. For instance
16250 # both Tru64's cc and ICC support -MD to output dependencies as a
16251 # side effect of compilation, but ICC will put the dependencies in
16252 # the current directory while Tru64 will put them in the object
16253 # directory.
16254 mkdir sub
16255
16256 am_cv_CC_dependencies_compiler_type=none
16257 if test "$am_compiler_list" = ""; then
16258 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16259 fi
16260 am__universal=false
16261 case " $depcc " in #(
16262 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16263 esac
16264
16265 for depmode in $am_compiler_list; do
16266 # Setup a source with many dependencies, because some compilers
16267 # like to wrap large dependency lists on column 80 (with \), and
16268 # we should not choose a depcomp mode which is confused by this.
16269 #
16270 # We need to recreate these files for each test, as the compiler may
16271 # overwrite some of them when testing with obscure command lines.
16272 # This happens at least with the AIX C compiler.
16273 : > sub/conftest.c
16274 for i in 1 2 3 4 5 6; do
16275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16276 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16277 # Solaris 10 /bin/sh.
16278 echo '/* dummy */' > sub/conftst$i.h
16279 done
16280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16281
16282 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16283 # mode. It turns out that the SunPro C++ compiler does not properly
16284 # handle '-M -o', and we need to detect this. Also, some Intel
16285 # versions had trouble with output in subdirs.
16286 am__obj=sub/conftest.${OBJEXT-o}
16287 am__minus_obj="-o $am__obj"
16288 case $depmode in
16289 gcc)
16290 # This depmode causes a compiler race in universal mode.
16291 test "$am__universal" = false || continue
16292 ;;
16293 nosideeffect)
16294 # After this tag, mechanisms are not by side-effect, so they'll
16295 # only be used when explicitly requested.
16296 if test "x$enable_dependency_tracking" = xyes; then
16297 continue
16298 else
16299 break
16300 fi
16301 ;;
16302 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16303 # This compiler won't grok '-c -o', but also, the minuso test has
16304 # not run yet. These depmodes are late enough in the game, and
16305 # so weak that their functioning should not be impacted.
16306 am__obj=conftest.${OBJEXT-o}
16307 am__minus_obj=
16308 ;;
16309 none) break ;;
16310 esac
16311 if depmode=$depmode \
16312 source=sub/conftest.c object=$am__obj \
16313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16314 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16315 >/dev/null 2>conftest.err &&
16316 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16317 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16318 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16319 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16320 # icc doesn't choke on unknown options, it will just issue warnings
16321 # or remarks (even with -Werror). So we grep stderr for any message
16322 # that says an option was ignored or not supported.
16323 # When given -MP, icc 7.0 and 7.1 complain thusly:
16324 # icc: Command line warning: ignoring option '-M'; no argument required
16325 # The diagnosis changed in icc 8.0:
16326 # icc: Command line remark: option '-MP' not supported
16327 if (grep 'ignoring option' conftest.err ||
16328 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16329 am_cv_CC_dependencies_compiler_type=$depmode
16330 break
16331 fi
16332 fi
16333 done
16334
16335 cd ..
16336 rm -rf conftest.dir
16337else
16338 am_cv_CC_dependencies_compiler_type=none
16339fi
16340
16341fi
16342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16343$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16344CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16345
16346 if
16347 test "x$enable_dependency_tracking" != xno \
16348 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16349 am__fastdepCC_TRUE=
16350 am__fastdepCC_FALSE='#'
16351else
16352 am__fastdepCC_TRUE='#'
16353 am__fastdepCC_FALSE=
16354fi
16355
16356
16357depcc="$CXX" am_compiler_list=
16358
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16360$as_echo_n "checking dependency style of $depcc... " >&6; }
16361if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16362 $as_echo_n "(cached) " >&6
16363else
16364 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16365 # We make a subdir and do the tests there. Otherwise we can end up
16366 # making bogus files that we don't know about and never remove. For
16367 # instance it was reported that on HP-UX the gcc test will end up
16368 # making a dummy file named 'D' -- because '-MD' means "put the output
16369 # in D".
16370 rm -rf conftest.dir
16371 mkdir conftest.dir
16372 # Copy depcomp to subdir because otherwise we won't find it if we're
16373 # using a relative directory.
16374 cp "$am_depcomp" conftest.dir
16375 cd conftest.dir
16376 # We will build objects and dependencies in a subdirectory because
16377 # it helps to detect inapplicable dependency modes. For instance
16378 # both Tru64's cc and ICC support -MD to output dependencies as a
16379 # side effect of compilation, but ICC will put the dependencies in
16380 # the current directory while Tru64 will put them in the object
16381 # directory.
16382 mkdir sub
16383
16384 am_cv_CXX_dependencies_compiler_type=none
16385 if test "$am_compiler_list" = ""; then
16386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16387 fi
16388 am__universal=false
16389 case " $depcc " in #(
16390 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16391 esac
16392
16393 for depmode in $am_compiler_list; do
16394 # Setup a source with many dependencies, because some compilers
16395 # like to wrap large dependency lists on column 80 (with \), and
16396 # we should not choose a depcomp mode which is confused by this.
16397 #
16398 # We need to recreate these files for each test, as the compiler may
16399 # overwrite some of them when testing with obscure command lines.
16400 # This happens at least with the AIX C compiler.
16401 : > sub/conftest.c
16402 for i in 1 2 3 4 5 6; do
16403 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16404 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16405 # Solaris 10 /bin/sh.
16406 echo '/* dummy */' > sub/conftst$i.h
16407 done
16408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16409
16410 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16411 # mode. It turns out that the SunPro C++ compiler does not properly
16412 # handle '-M -o', and we need to detect this. Also, some Intel
16413 # versions had trouble with output in subdirs.
16414 am__obj=sub/conftest.${OBJEXT-o}
16415 am__minus_obj="-o $am__obj"
16416 case $depmode in
16417 gcc)
16418 # This depmode causes a compiler race in universal mode.
16419 test "$am__universal" = false || continue
16420 ;;
16421 nosideeffect)
16422 # After this tag, mechanisms are not by side-effect, so they'll
16423 # only be used when explicitly requested.
16424 if test "x$enable_dependency_tracking" = xyes; then
16425 continue
16426 else
16427 break
16428 fi
16429 ;;
16430 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16431 # This compiler won't grok '-c -o', but also, the minuso test has
16432 # not run yet. These depmodes are late enough in the game, and
16433 # so weak that their functioning should not be impacted.
16434 am__obj=conftest.${OBJEXT-o}
16435 am__minus_obj=
16436 ;;
16437 none) break ;;
16438 esac
16439 if depmode=$depmode \
16440 source=sub/conftest.c object=$am__obj \
16441 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16442 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16443 >/dev/null 2>conftest.err &&
16444 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16445 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16446 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16447 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16448 # icc doesn't choke on unknown options, it will just issue warnings
16449 # or remarks (even with -Werror). So we grep stderr for any message
16450 # that says an option was ignored or not supported.
16451 # When given -MP, icc 7.0 and 7.1 complain thusly:
16452 # icc: Command line warning: ignoring option '-M'; no argument required
16453 # The diagnosis changed in icc 8.0:
16454 # icc: Command line remark: option '-MP' not supported
16455 if (grep 'ignoring option' conftest.err ||
16456 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16457 am_cv_CXX_dependencies_compiler_type=$depmode
16458 break
16459 fi
16460 fi
16461 done
16462
16463 cd ..
16464 rm -rf conftest.dir
16465else
16466 am_cv_CXX_dependencies_compiler_type=none
16467fi
16468
16469fi
16470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16471$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16472CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16473
16474 if
16475 test "x$enable_dependency_tracking" != xno \
16476 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16477 am__fastdepCXX_TRUE=
16478 am__fastdepCXX_FALSE='#'
16479else
16480 am__fastdepCXX_TRUE='#'
16481 am__fastdepCXX_FALSE=
16482fi
16483
16484
16485
16486ac_config_headers="$ac_config_headers ucommon-config.h"
16487
16488
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16490$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16491if ${ac_cv_c_restrict+:} false; then :
16492 $as_echo_n "(cached) " >&6
16493else
16494 ac_cv_c_restrict=no
16495 # The order here caters to the fact that C++ does not require restrict.
16496 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h. */
16499typedef int * int_ptr;
16500 int foo (int_ptr $ac_kw ip) {
16501 return ip[0];
16502 }
16503int
16504main ()
16505{
16506int s[1];
16507 int * $ac_kw t = s;
16508 t[0] = 0;
16509 return foo(t)
16510 ;
16511 return 0;
16512}
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515 ac_cv_c_restrict=$ac_kw
16516fi
16517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 test "$ac_cv_c_restrict" != no && break
16519 done
16520
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16523$as_echo "$ac_cv_c_restrict" >&6; }
16524
16525 case $ac_cv_c_restrict in
16526 restrict) ;;
16527 no) $as_echo "#define restrict /**/" >>confdefs.h
16528 ;;
16529 *) cat >>confdefs.h <<_ACEOF
16530#define restrict $ac_cv_c_restrict
16531_ACEOF
16532 ;;
16533 esac
16534
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16536$as_echo_n "checking for working volatile... " >&6; }
16537if ${ac_cv_c_volatile+:} false; then :
16538 $as_echo_n "(cached) " >&6
16539else
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541/* end confdefs.h. */
16542
16543int
16544main ()
16545{
16546
16547volatile int x;
16548int * volatile y = (int *) 0;
16549return !x && !y;
16550 ;
16551 return 0;
16552}
16553_ACEOF
16554if ac_fn_c_try_compile "$LINENO"; then :
16555 ac_cv_c_volatile=yes
16556else
16557 ac_cv_c_volatile=no
16558fi
16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560fi
16561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16562$as_echo "$ac_cv_c_volatile" >&6; }
16563if test $ac_cv_c_volatile = no; then
16564
16565$as_echo "#define volatile /**/" >>confdefs.h
16566
16567fi
16568
16569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16570$as_echo_n "checking for inline... " >&6; }
16571if ${ac_cv_c_inline+:} false; then :
16572 $as_echo_n "(cached) " >&6
16573else
16574 ac_cv_c_inline=no
16575for ac_kw in inline __inline__ __inline; do
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h. */
16578#ifndef __cplusplus
16579typedef int foo_t;
16580static $ac_kw foo_t static_foo () {return 0; }
16581$ac_kw foo_t foo () {return 0; }
16582#endif
16583
16584_ACEOF
16585if ac_fn_c_try_compile "$LINENO"; then :
16586 ac_cv_c_inline=$ac_kw
16587fi
16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 test "$ac_cv_c_inline" != no && break
16590done
16591
16592fi
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16594$as_echo "$ac_cv_c_inline" >&6; }
16595
16596case $ac_cv_c_inline in
16597 inline | yes) ;;
16598 *)
16599 case $ac_cv_c_inline in
16600 no) ac_val=;;
16601 *) ac_val=$ac_cv_c_inline;;
16602 esac
16603 cat >>confdefs.h <<_ACEOF
16604#ifndef __cplusplus
16605#define inline $ac_val
16606#endif
16607_ACEOF
16608 ;;
16609esac
16610
16611
16612UCOMMON_VISIBILITY="0"
16613UCOMMON_FLAGS=""
16614UCOMMON_MODEL="CXX"
16615UCOMMON_CLINK=""
16616UCOMMON_LIBC="-lc"
16617UCOMMON_LIBS=""
16618OPENSSL_LINK=""
16619
16620CHECKFLAGS="$CHECKFLAGS"
16621
16622case "$with_crypto" in
16623ssl|openssl)
16624 ssl="openssl"
16625 ;;
16626gnutls|gnu)
16627 ssl="gnutls"
16628 ;;
16629none|nossl)
16630 ssl="nossl"
16631 ;;
16632*)
16633 ssl="detect"
16634 ;;
16635esac
16636
16637have_gettext="no"
16638socket_lib=""
16639posix4_lib=""
16640rt_lib=""
16641
16642test -z "$localedir" && localedir='${datadir}/locale'
16643
16644
16645
16646# for very old gcc and for minix we disable full ucommon build by default
16647# we also disable for mingw32 or when no "shared" library support because
16648# libstdc++ is not dll and really bloats in linkage of plugins. Any case,
16649# you can always override with --enable-stdcpp...
16650
16651if test -z "$enable_stdcpp" ; then
16652 if test "x$GCC" = "xyes" ; then
16653 gccver=`$CC -dumpversion | cut -f1 -d.`
16654 fi
16655 if test -z "$gccver" ; then
16656 gccver="3"
16657 fi
16658 if test "$gccver" -lt "3" ; then
16659 enable_stdcpp="no"
16660 fi
16661 if test "x$enable_shared" = "xno" ; then
16662 enable_stdcpp="no"
16663 fi
16664 case "$target_os" in
16665 *minix*|mingw*)
16666 enable_stdcpp="no"
16667 ;;
16668 esac
16669fi
16670
16671# Check whether --enable-posix-timers was given.
16672if test "${enable_posix_timers+set}" = set; then :
16673 enableval=$enable_posix_timers;
16674fi
16675
16676
16677if test "x$enable_posix_timers" = "xyes" ; then
16678 UCOMMON_FLAGS="$UCOMMON_FLAGS -DPOSIX_TIMERS"
16679fi
16680
16681# Check whether --enable-stdcpp was given.
16682if test "${enable_stdcpp+set}" = set; then :
16683 enableval=$enable_stdcpp;
16684fi
16685
16686
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full c++ support and linking model" >&5
16688$as_echo_n "checking full c++ support and linking model... " >&6; }
16689
16690if test "x$enable_stdcpp" = "xno" ; then
16691 UCOMMON_MODEL="CC"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16693$as_echo "no" >&6; }
16694 COMPAT=""
16695else
16696 COMPAT="commoncpp"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698$as_echo "yes" >&6; }
16699fi
16700
16701
16702# Check whether --with-sslstack was given.
16703if test "${with_sslstack+set}" = set; then :
16704 withval=$with_sslstack;
16705 if test x$with_sslstack != x ; then
16706 ssl="${with_sslstack}" ; fi
16707
16708fi
16709
16710
16711
16712# Check whether --with-libc was given.
16713if test "${with_libc+set}" = set; then :
16714 withval=$with_libc;
16715 if test x$with_libc != x ; then
16716 clib=`echo ${with_libc} | sed s/-l//`
16717 UCOMMON_LIBC=-l${clib} ; fi
16718
16719fi
16720
16721
16722# Check whether --enable-debug was given.
16723if test "${enable_debug+set}" = set; then :
16724 enableval=$enable_debug;
16725fi
16726
16727if test -z "$enable_debug" ; then
16728 enable_debug="no"
16729elif test $enable_debug = "yes" ; then
16730 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16731fi
16732
16733
16734
16735threading="none"
16736clib=`echo ${UCOMMON_LIBC} | sed s/-l//`
16737tlib=""
16738
16739for ac_header in stdint.h poll.h sys/mman.h sys/shm.h sys/poll.h sys/timeb.h endian.h sys/filio.h dirent.h sys/resource.h wchar.h netinet/in.h net/if.h
16740do :
16741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16744 cat >>confdefs.h <<_ACEOF
16745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746_ACEOF
16747
16748fi
16749
16750done
16751
16752for ac_header in mach/clock.h mach-o/dyld.h linux/version.h sys/inotify.h sys/event.h syslog.h sys/wait.h termios.h termio.h fcntl.h unistd.h
16753do :
16754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16757 cat >>confdefs.h <<_ACEOF
16758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16759_ACEOF
16760
16761fi
16762
16763done
16764
16765for ac_header in sys/param.h sys/lockf.h sys/file.h dlfcn.h
16766do :
16767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16768ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16770 cat >>confdefs.h <<_ACEOF
16771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772_ACEOF
16773
16774fi
16775
16776done
16777
16778
16779ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16780if test "x$ac_cv_header_regex_h" = xyes; then :
16781
16782
16783$as_echo "#define HAVE_REGEX_H 1" >>confdefs.h
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
16786$as_echo_n "checking for regfree in -lregex... " >&6; }
16787if ${ac_cv_lib_regex_regfree+:} false; then :
16788 $as_echo_n "(cached) " >&6
16789else
16790 ac_check_lib_save_LIBS=$LIBS
16791LIBS="-lregex $LIBS"
16792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h. */
16794
16795/* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16798#ifdef __cplusplus
16799extern "C"
16800#endif
16801char regfree ();
16802int
16803main ()
16804{
16805return regfree ();
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810if ac_fn_c_try_link "$LINENO"; then :
16811 ac_cv_lib_regex_regfree=yes
16812else
16813 ac_cv_lib_regex_regfree=no
16814fi
16815rm -f core conftest.err conftest.$ac_objext \
16816 conftest$ac_exeext conftest.$ac_ext
16817LIBS=$ac_check_lib_save_LIBS
16818fi
16819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
16820$as_echo "$ac_cv_lib_regex_regfree" >&6; }
16821if test "x$ac_cv_lib_regex_regfree" = xyes; then :
16822
16823 UCOMMON_LIBS="$UCOMMON_LIBS -lregex"
16824
16825fi
16826
16827
16828fi
16829
16830
16831
16832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fopen in -lmsvcrt" >&5
16833$as_echo_n "checking for fopen in -lmsvcrt... " >&6; }
16834if ${ac_cv_lib_msvcrt_fopen+:} false; then :
16835 $as_echo_n "(cached) " >&6
16836else
16837 ac_check_lib_save_LIBS=$LIBS
16838LIBS="-lmsvcrt $LIBS"
16839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840/* end confdefs.h. */
16841
16842/* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply. */
16845#ifdef __cplusplus
16846extern "C"
16847#endif
16848char fopen ();
16849int
16850main ()
16851{
16852return fopen ();
16853 ;
16854 return 0;
16855}
16856_ACEOF
16857if ac_fn_c_try_link "$LINENO"; then :
16858 ac_cv_lib_msvcrt_fopen=yes
16859else
16860 ac_cv_lib_msvcrt_fopen=no
16861fi
16862rm -f core conftest.err conftest.$ac_objext \
16863 conftest$ac_exeext conftest.$ac_ext
16864LIBS=$ac_check_lib_save_LIBS
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fopen" >&5
16867$as_echo "$ac_cv_lib_msvcrt_fopen" >&6; }
16868if test "x$ac_cv_lib_msvcrt_fopen" = xyes; then :
16869
16870 threading="msw"
16871 clib="msvcrt"
16872 UCOMMON_VISIBILITY="0"
16873 UCOMMON_LIBS="--enable-stdcall-fixup $UCOMMON_LIBS -lmingwex -lmingw32 -lcrypt32 -ladvapi32 -luser32 -lws2_32 -lwsock32 -lkernel32"
16874 UCOMMON_LIBC="-lmsvcrt -lgcc"
16875 OPENSSL_LINK="-lgdi32"
16876
16877$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
16878
16879
16880$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16881
16882
16883else
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __modsi3 in -lgcc" >&5
16886$as_echo_n "checking for __modsi3 in -lgcc... " >&6; }
16887if ${ac_cv_lib_gcc___modsi3+:} false; then :
16888 $as_echo_n "(cached) " >&6
16889else
16890 ac_check_lib_save_LIBS=$LIBS
16891LIBS="-lgcc $LIBS"
16892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893/* end confdefs.h. */
16894
16895/* Override any GCC internal prototype to avoid an error.
16896 Use char because int might match the return type of a GCC
16897 builtin and then its argument prototype would still apply. */
16898#ifdef __cplusplus
16899extern "C"
16900#endif
16901char __modsi3 ();
16902int
16903main ()
16904{
16905return __modsi3 ();
16906 ;
16907 return 0;
16908}
16909_ACEOF
16910if ac_fn_c_try_link "$LINENO"; then :
16911 ac_cv_lib_gcc___modsi3=yes
16912else
16913 ac_cv_lib_gcc___modsi3=no
16914fi
16915rm -f core conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917LIBS=$ac_check_lib_save_LIBS
16918fi
16919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___modsi3" >&5
16920$as_echo "$ac_cv_lib_gcc___modsi3" >&6; }
16921if test "x$ac_cv_lib_gcc___modsi3" = xyes; then :
16922
16923 UCOMMON_LIBC="$UCOMMON_LIBC -lgcc"
16924
16925fi
16926
16927 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_socketpair" | $as_tr_sh`
16928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -l$clib" >&5
16929$as_echo_n "checking for socketpair in -l$clib... " >&6; }
16930if eval \${$as_ac_Lib+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932else
16933 ac_check_lib_save_LIBS=$LIBS
16934LIBS="-l$clib $LIBS"
16935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936/* end confdefs.h. */
16937
16938/* Override any GCC internal prototype to avoid an error.
16939 Use char because int might match the return type of a GCC
16940 builtin and then its argument prototype would still apply. */
16941#ifdef __cplusplus
16942extern "C"
16943#endif
16944char socketpair ();
16945int
16946main ()
16947{
16948return socketpair ();
16949 ;
16950 return 0;
16951}
16952_ACEOF
16953if ac_fn_c_try_link "$LINENO"; then :
16954 eval "$as_ac_Lib=yes"
16955else
16956 eval "$as_ac_Lib=no"
16957fi
16958rm -f core conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16960LIBS=$ac_check_lib_save_LIBS
16961fi
16962eval ac_res=\$$as_ac_Lib
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16964$as_echo "$ac_res" >&6; }
16965if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16966
16967
16968$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16969
16970
16971else
16972
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
16974$as_echo_n "checking for socketpair in -lsocket... " >&6; }
16975if ${ac_cv_lib_socket_socketpair+:} false; then :
16976 $as_echo_n "(cached) " >&6
16977else
16978 ac_check_lib_save_LIBS=$LIBS
16979LIBS="-lsocket $LIBS"
16980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981/* end confdefs.h. */
16982
16983/* Override any GCC internal prototype to avoid an error.
16984 Use char because int might match the return type of a GCC
16985 builtin and then its argument prototype would still apply. */
16986#ifdef __cplusplus
16987extern "C"
16988#endif
16989char socketpair ();
16990int
16991main ()
16992{
16993return socketpair ();
16994 ;
16995 return 0;
16996}
16997_ACEOF
16998if ac_fn_c_try_link "$LINENO"; then :
16999 ac_cv_lib_socket_socketpair=yes
17000else
17001 ac_cv_lib_socket_socketpair=no
17002fi
17003rm -f core conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17005LIBS=$ac_check_lib_save_LIBS
17006fi
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
17008$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
17009if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
17010
17011$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
17012
17013fi
17014
17015
17016fi
17017
17018 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_getaddrinfo" | $as_tr_sh`
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$clib" >&5
17020$as_echo_n "checking for getaddrinfo in -l$clib... " >&6; }
17021if eval \${$as_ac_Lib+:} false; then :
17022 $as_echo_n "(cached) " >&6
17023else
17024 ac_check_lib_save_LIBS=$LIBS
17025LIBS="-l$clib $LIBS"
17026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027/* end confdefs.h. */
17028
17029/* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032#ifdef __cplusplus
17033extern "C"
17034#endif
17035char getaddrinfo ();
17036int
17037main ()
17038{
17039return getaddrinfo ();
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044if ac_fn_c_try_link "$LINENO"; then :
17045 eval "$as_ac_Lib=yes"
17046else
17047 eval "$as_ac_Lib=no"
17048fi
17049rm -f core conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17051LIBS=$ac_check_lib_save_LIBS
17052fi
17053eval ac_res=\$$as_ac_Lib
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17055$as_echo "$ac_res" >&6; }
17056if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17057
17058
17059$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17060
17061
17062else
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
17065$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
17066if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
17067 $as_echo_n "(cached) " >&6
17068else
17069 ac_check_lib_save_LIBS=$LIBS
17070LIBS="-lsocket $LIBS"
17071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072/* end confdefs.h. */
17073
17074/* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077#ifdef __cplusplus
17078extern "C"
17079#endif
17080char getaddrinfo ();
17081int
17082main ()
17083{
17084return getaddrinfo ();
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089if ac_fn_c_try_link "$LINENO"; then :
17090 ac_cv_lib_socket_getaddrinfo=yes
17091else
17092 ac_cv_lib_socket_getaddrinfo=no
17093fi
17094rm -f core conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096LIBS=$ac_check_lib_save_LIBS
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
17099$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
17100if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
17101
17102$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17103
17104fi
17105
17106
17107fi
17108
17109 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_gethostbyname2" | $as_tr_sh`
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -l$clib" >&5
17111$as_echo_n "checking for gethostbyname2 in -l$clib... " >&6; }
17112if eval \${$as_ac_Lib+:} false; then :
17113 $as_echo_n "(cached) " >&6
17114else
17115 ac_check_lib_save_LIBS=$LIBS
17116LIBS="-l$clib $LIBS"
17117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118/* end confdefs.h. */
17119
17120/* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17123#ifdef __cplusplus
17124extern "C"
17125#endif
17126char gethostbyname2 ();
17127int
17128main ()
17129{
17130return gethostbyname2 ();
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135if ac_fn_c_try_link "$LINENO"; then :
17136 eval "$as_ac_Lib=yes"
17137else
17138 eval "$as_ac_Lib=no"
17139fi
17140rm -f core conftest.err conftest.$ac_objext \
17141 conftest$ac_exeext conftest.$ac_ext
17142LIBS=$ac_check_lib_save_LIBS
17143fi
17144eval ac_res=\$$as_ac_Lib
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17146$as_echo "$ac_res" >&6; }
17147if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17148
17149
17150$as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
17151
17152
17153else
17154
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -lsocket" >&5
17156$as_echo_n "checking for gethostbyname2 in -lsocket... " >&6; }
17157if ${ac_cv_lib_socket_gethostbyname2+:} false; then :
17158 $as_echo_n "(cached) " >&6
17159else
17160 ac_check_lib_save_LIBS=$LIBS
17161LIBS="-lsocket $LIBS"
17162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h. */
17164
17165/* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
17168#ifdef __cplusplus
17169extern "C"
17170#endif
17171char gethostbyname2 ();
17172int
17173main ()
17174{
17175return gethostbyname2 ();
17176 ;
17177 return 0;
17178}
17179_ACEOF
17180if ac_fn_c_try_link "$LINENO"; then :
17181 ac_cv_lib_socket_gethostbyname2=yes
17182else
17183 ac_cv_lib_socket_gethostbyname2=no
17184fi
17185rm -f core conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17187LIBS=$ac_check_lib_save_LIBS
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname2" >&5
17190$as_echo "$ac_cv_lib_socket_gethostbyname2" >&6; }
17191if test "x$ac_cv_lib_socket_gethostbyname2" = xyes; then :
17192
17193$as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
17194
17195fi
17196
17197
17198fi
17199
17200
17201 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_inet_ntop" | $as_tr_sh`
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -l$clib" >&5
17203$as_echo_n "checking for inet_ntop in -l$clib... " >&6; }
17204if eval \${$as_ac_Lib+:} false; then :
17205 $as_echo_n "(cached) " >&6
17206else
17207 ac_check_lib_save_LIBS=$LIBS
17208LIBS="-l$clib $LIBS"
17209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h. */
17211
17212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char inet_ntop ();
17219int
17220main ()
17221{
17222return inet_ntop ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227if ac_fn_c_try_link "$LINENO"; then :
17228 eval "$as_ac_Lib=yes"
17229else
17230 eval "$as_ac_Lib=no"
17231fi
17232rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234LIBS=$ac_check_lib_save_LIBS
17235fi
17236eval ac_res=\$$as_ac_Lib
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17238$as_echo "$ac_res" >&6; }
17239if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17240
17241
17242$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17243
17244
17245else
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lsocket" >&5
17248$as_echo_n "checking for inet_ntop in -lsocket... " >&6; }
17249if ${ac_cv_lib_socket_inet_ntop+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251else
17252 ac_check_lib_save_LIBS=$LIBS
17253LIBS="-lsocket $LIBS"
17254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255/* end confdefs.h. */
17256
17257/* Override any GCC internal prototype to avoid an error.
17258 Use char because int might match the return type of a GCC
17259 builtin and then its argument prototype would still apply. */
17260#ifdef __cplusplus
17261extern "C"
17262#endif
17263char inet_ntop ();
17264int
17265main ()
17266{
17267return inet_ntop ();
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272if ac_fn_c_try_link "$LINENO"; then :
17273 ac_cv_lib_socket_inet_ntop=yes
17274else
17275 ac_cv_lib_socket_inet_ntop=no
17276fi
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279LIBS=$ac_check_lib_save_LIBS
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_ntop" >&5
17282$as_echo "$ac_cv_lib_socket_inet_ntop" >&6; }
17283if test "x$ac_cv_lib_socket_inet_ntop" = xyes; then :
17284
17285
17286$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17287
17288
17289else
17290
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnsl" >&5
17292$as_echo_n "checking for inet_ntop in -lnsl... " >&6; }
17293if ${ac_cv_lib_nsl_inet_ntop+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295else
17296 ac_check_lib_save_LIBS=$LIBS
17297LIBS="-lnsl $LIBS"
17298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299/* end confdefs.h. */
17300
17301/* Override any GCC internal prototype to avoid an error.
17302 Use char because int might match the return type of a GCC
17303 builtin and then its argument prototype would still apply. */
17304#ifdef __cplusplus
17305extern "C"
17306#endif
17307char inet_ntop ();
17308int
17309main ()
17310{
17311return inet_ntop ();
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317 ac_cv_lib_nsl_inet_ntop=yes
17318else
17319 ac_cv_lib_nsl_inet_ntop=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322 conftest$ac_exeext conftest.$ac_ext
17323LIBS=$ac_check_lib_save_LIBS
17324fi
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntop" >&5
17326$as_echo "$ac_cv_lib_nsl_inet_ntop" >&6; }
17327if test "x$ac_cv_lib_nsl_inet_ntop" = xyes; then :
17328
17329
17330$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17331
17332 socket_lib="$socket_lib -lnsl"
17333
17334fi
17335
17336
17337fi
17338
17339
17340fi
17341
17342
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17344$as_echo_n "checking for socket in -lsocket... " >&6; }
17345if ${ac_cv_lib_socket_socket+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347else
17348 ac_check_lib_save_LIBS=$LIBS
17349LIBS="-lsocket $LIBS"
17350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h. */
17352
17353/* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356#ifdef __cplusplus
17357extern "C"
17358#endif
17359char socket ();
17360int
17361main ()
17362{
17363return socket ();
17364 ;
17365 return 0;
17366}
17367_ACEOF
17368if ac_fn_c_try_link "$LINENO"; then :
17369 ac_cv_lib_socket_socket=yes
17370else
17371 ac_cv_lib_socket_socket=no
17372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
17375LIBS=$ac_check_lib_save_LIBS
17376fi
17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17378$as_echo "$ac_cv_lib_socket_socket" >&6; }
17379if test "x$ac_cv_lib_socket_socket" = xyes; then :
17380
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
17382$as_echo_n "checking for socketpair in -lsocket... " >&6; }
17383if ${ac_cv_lib_socket_socketpair+:} false; then :
17384 $as_echo_n "(cached) " >&6
17385else
17386 ac_check_lib_save_LIBS=$LIBS
17387LIBS="-lsocket $LIBS"
17388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h. */
17390
17391/* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17394#ifdef __cplusplus
17395extern "C"
17396#endif
17397char socketpair ();
17398int
17399main ()
17400{
17401return socketpair ();
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406if ac_fn_c_try_link "$LINENO"; then :
17407 ac_cv_lib_socket_socketpair=yes
17408else
17409 ac_cv_lib_socket_socketpair=no
17410fi
17411rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413LIBS=$ac_check_lib_save_LIBS
17414fi
17415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
17416$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
17417if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
17418
17419
17420$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
17421
17422
17423fi
17424
17425 socket_lib="-lsocket"
17426
17427fi
17428
17429
17430fi
17431
17432
17433# Check whether --enable-socks was given.
17434if test "${enable_socks+set}" = set; then :
17435 enableval=$enable_socks;
17436fi
17437
17438
17439if test "x$enable_socks" = "xyes" ; then
17440 enable_socks="no"
17441 for ac_header in socks.h
17442do :
17443 ac_fn_c_check_header_mongrel "$LINENO" "socks.h" "ac_cv_header_socks_h" "$ac_includes_default"
17444if test "x$ac_cv_header_socks_h" = xyes; then :
17445 cat >>confdefs.h <<_ACEOF
17446#define HAVE_SOCKS_H 1
17447_ACEOF
17448
17449 enable_socks="yes"
17450
17451fi
17452
17453done
17454
17455else
17456 enable_socks="no"
17457fi
17458
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socks proxy support" >&5
17460$as_echo_n "checking for socks proxy support... " >&6; }
17461
17462if test "x$enable_socks" = "xyes" ; then
17463 socket_lib="-lsocksd $socket_lib"
17464
17465$as_echo "#define HAVE_SOCKS 1" >>confdefs.h
17466
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17468$as_echo "yes" >&6; }
17469else
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471$as_echo "no" >&6; }
17472fi
17473
17474as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_lstat" | $as_tr_sh`
17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat in -l$clib" >&5
17476$as_echo_n "checking for lstat in -l$clib... " >&6; }
17477if eval \${$as_ac_Lib+:} false; then :
17478 $as_echo_n "(cached) " >&6
17479else
17480 ac_check_lib_save_LIBS=$LIBS
17481LIBS="-l$clib $LIBS"
17482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483/* end confdefs.h. */
17484
17485/* Override any GCC internal prototype to avoid an error.
17486 Use char because int might match the return type of a GCC
17487 builtin and then its argument prototype would still apply. */
17488#ifdef __cplusplus
17489extern "C"
17490#endif
17491char lstat ();
17492int
17493main ()
17494{
17495return lstat ();
17496 ;
17497 return 0;
17498}
17499_ACEOF
17500if ac_fn_c_try_link "$LINENO"; then :
17501 eval "$as_ac_Lib=yes"
17502else
17503 eval "$as_ac_Lib=no"
17504fi
17505rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17507LIBS=$ac_check_lib_save_LIBS
17508fi
17509eval ac_res=\$$as_ac_Lib
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17511$as_echo "$ac_res" >&6; }
17512if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17513
17514
17515$as_echo "#define HAVE_LSTAT 1" >>confdefs.h
17516
17517
17518fi
17519
17520
17521as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_strcoll" | $as_tr_sh`
17522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcoll in -l$clib" >&5
17523$as_echo_n "checking for strcoll in -l$clib... " >&6; }
17524if eval \${$as_ac_Lib+:} false; then :
17525 $as_echo_n "(cached) " >&6
17526else
17527 ac_check_lib_save_LIBS=$LIBS
17528LIBS="-l$clib $LIBS"
17529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530/* end confdefs.h. */
17531
17532/* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17535#ifdef __cplusplus
17536extern "C"
17537#endif
17538char strcoll ();
17539int
17540main ()
17541{
17542return strcoll ();
17543 ;
17544 return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_link "$LINENO"; then :
17548 eval "$as_ac_Lib=yes"
17549else
17550 eval "$as_ac_Lib=no"
17551fi
17552rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554LIBS=$ac_check_lib_save_LIBS
17555fi
17556eval ac_res=\$$as_ac_Lib
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17558$as_echo "$ac_res" >&6; }
17559if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17560
17561
17562$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
17563
17564
17565fi
17566
17567
17568as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_stricmp" | $as_tr_sh`
17569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stricmp in -l$clib" >&5
17570$as_echo_n "checking for stricmp in -l$clib... " >&6; }
17571if eval \${$as_ac_Lib+:} false; then :
17572 $as_echo_n "(cached) " >&6
17573else
17574 ac_check_lib_save_LIBS=$LIBS
17575LIBS="-l$clib $LIBS"
17576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577/* end confdefs.h. */
17578
17579/* Override any GCC internal prototype to avoid an error.
17580 Use char because int might match the return type of a GCC
17581 builtin and then its argument prototype would still apply. */
17582#ifdef __cplusplus
17583extern "C"
17584#endif
17585char stricmp ();
17586int
17587main ()
17588{
17589return stricmp ();
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594if ac_fn_c_try_link "$LINENO"; then :
17595 eval "$as_ac_Lib=yes"
17596else
17597 eval "$as_ac_Lib=no"
17598fi
17599rm -f core conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17601LIBS=$ac_check_lib_save_LIBS
17602fi
17603eval ac_res=\$$as_ac_Lib
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17605$as_echo "$ac_res" >&6; }
17606if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17607
17608
17609$as_echo "#define HAVE_STRICMP 1" >>confdefs.h
17610
17611
17612fi
17613
17614
17615as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_stristr" | $as_tr_sh`
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stristr in -l$clib" >&5
17617$as_echo_n "checking for stristr in -l$clib... " >&6; }
17618if eval \${$as_ac_Lib+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620else
17621 ac_check_lib_save_LIBS=$LIBS
17622LIBS="-l$clib $LIBS"
17623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624/* end confdefs.h. */
17625
17626/* Override any GCC internal prototype to avoid an error.
17627 Use char because int might match the return type of a GCC
17628 builtin and then its argument prototype would still apply. */
17629#ifdef __cplusplus
17630extern "C"
17631#endif
17632char stristr ();
17633int
17634main ()
17635{
17636return stristr ();
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641if ac_fn_c_try_link "$LINENO"; then :
17642 eval "$as_ac_Lib=yes"
17643else
17644 eval "$as_ac_Lib=no"
17645fi
17646rm -f core conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17648LIBS=$ac_check_lib_save_LIBS
17649fi
17650eval ac_res=\$$as_ac_Lib
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17652$as_echo "$ac_res" >&6; }
17653if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17654
17655
17656$as_echo "#define HAVE_STRISTR 1" >>confdefs.h
17657
17658
17659fi
17660
17661
17662as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_sysconf" | $as_tr_sh`
17663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf in -l$clib" >&5
17664$as_echo_n "checking for sysconf in -l$clib... " >&6; }
17665if eval \${$as_ac_Lib+:} false; then :
17666 $as_echo_n "(cached) " >&6
17667else
17668 ac_check_lib_save_LIBS=$LIBS
17669LIBS="-l$clib $LIBS"
17670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h. */
17672
17673/* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676#ifdef __cplusplus
17677extern "C"
17678#endif
17679char sysconf ();
17680int
17681main ()
17682{
17683return sysconf ();
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688if ac_fn_c_try_link "$LINENO"; then :
17689 eval "$as_ac_Lib=yes"
17690else
17691 eval "$as_ac_Lib=no"
17692fi
17693rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695LIBS=$ac_check_lib_save_LIBS
17696fi
17697eval ac_res=\$$as_ac_Lib
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17699$as_echo "$ac_res" >&6; }
17700if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17701
17702
17703$as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
17704
17705
17706fi
17707
17708
17709as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_posix_memalign" | $as_tr_sh`
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_memalign in -l$clib" >&5
17711$as_echo_n "checking for posix_memalign in -l$clib... " >&6; }
17712if eval \${$as_ac_Lib+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714else
17715 ac_check_lib_save_LIBS=$LIBS
17716LIBS="-l$clib $LIBS"
17717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718/* end confdefs.h. */
17719
17720/* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723#ifdef __cplusplus
17724extern "C"
17725#endif
17726char posix_memalign ();
17727int
17728main ()
17729{
17730return posix_memalign ();
17731 ;
17732 return 0;
17733}
17734_ACEOF
17735if ac_fn_c_try_link "$LINENO"; then :
17736 eval "$as_ac_Lib=yes"
17737else
17738 eval "$as_ac_Lib=no"
17739fi
17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742LIBS=$ac_check_lib_save_LIBS
17743fi
17744eval ac_res=\$$as_ac_Lib
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17746$as_echo "$ac_res" >&6; }
17747if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17748
17749
17750$as_echo "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
17751
17752
17753fi
17754
17755
17756as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_dlopen" | $as_tr_sh`
17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -l$clib" >&5
17758$as_echo_n "checking for dlopen in -l$clib... " >&6; }
17759if eval \${$as_ac_Lib+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761else
17762 ac_check_lib_save_LIBS=$LIBS
17763LIBS="-l$clib $LIBS"
17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765/* end confdefs.h. */
17766
17767/* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17770#ifdef __cplusplus
17771extern "C"
17772#endif
17773char dlopen ();
17774int
17775main ()
17776{
17777return dlopen ();
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782if ac_fn_c_try_link "$LINENO"; then :
17783 eval "$as_ac_Lib=yes"
17784else
17785 eval "$as_ac_Lib=no"
17786fi
17787rm -f core conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789LIBS=$ac_check_lib_save_LIBS
17790fi
17791eval ac_res=\$$as_ac_Lib
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17793$as_echo "$ac_res" >&6; }
17794if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17795 cat >>confdefs.h <<_ACEOF
17796#define `$as_echo "HAVE_LIB$clib" | $as_tr_cpp` 1
17797_ACEOF
17798
17799 LIBS="-l$clib $LIBS"
17800
17801else
17802
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17804$as_echo_n "checking for dlopen in -ldl... " >&6; }
17805if ${ac_cv_lib_dl_dlopen+:} false; then :
17806 $as_echo_n "(cached) " >&6
17807else
17808 ac_check_lib_save_LIBS=$LIBS
17809LIBS="-ldl $LIBS"
17810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811/* end confdefs.h. */
17812
17813/* Override any GCC internal prototype to avoid an error.
17814 Use char because int might match the return type of a GCC
17815 builtin and then its argument prototype would still apply. */
17816#ifdef __cplusplus
17817extern "C"
17818#endif
17819char dlopen ();
17820int
17821main ()
17822{
17823return dlopen ();
17824 ;
17825 return 0;
17826}
17827_ACEOF
17828if ac_fn_c_try_link "$LINENO"; then :
17829 ac_cv_lib_dl_dlopen=yes
17830else
17831 ac_cv_lib_dl_dlopen=no
17832fi
17833rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17835LIBS=$ac_check_lib_save_LIBS
17836fi
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17838$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17839if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17840 UCOMMON_LIBS="$UCOMMON_LIBS -ldl"
17841else
17842
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcompat" >&5
17844$as_echo_n "checking for dlopen in -lcompat... " >&6; }
17845if ${ac_cv_lib_compat_dlopen+:} false; then :
17846 $as_echo_n "(cached) " >&6
17847else
17848 ac_check_lib_save_LIBS=$LIBS
17849LIBS="-lcompat $LIBS"
17850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851/* end confdefs.h. */
17852
17853/* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17856#ifdef __cplusplus
17857extern "C"
17858#endif
17859char dlopen ();
17860int
17861main ()
17862{
17863return dlopen ();
17864 ;
17865 return 0;
17866}
17867_ACEOF
17868if ac_fn_c_try_link "$LINENO"; then :
17869 ac_cv_lib_compat_dlopen=yes
17870else
17871 ac_cv_lib_compat_dlopen=no
17872fi
17873rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875LIBS=$ac_check_lib_save_LIBS
17876fi
17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_compat_dlopen" >&5
17878$as_echo "$ac_cv_lib_compat_dlopen" >&6; }
17879if test "x$ac_cv_lib_compat_dlopen" = xyes; then :
17880 UCOMMON_LIBS="$UCOMMON_LIBS -lcompat"
17881fi
17882
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17884$as_echo_n "checking for shl_load in -ldld... " >&6; }
17885if ${ac_cv_lib_dld_shl_load+:} false; then :
17886 $as_echo_n "(cached) " >&6
17887else
17888 ac_check_lib_save_LIBS=$LIBS
17889LIBS="-ldld $LIBS"
17890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h. */
17892
17893/* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17896#ifdef __cplusplus
17897extern "C"
17898#endif
17899char shl_load ();
17900int
17901main ()
17902{
17903return shl_load ();
17904 ;
17905 return 0;
17906}
17907_ACEOF
17908if ac_fn_c_try_link "$LINENO"; then :
17909 ac_cv_lib_dld_shl_load=yes
17910else
17911 ac_cv_lib_dld_shl_load=no
17912fi
17913rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915LIBS=$ac_check_lib_save_LIBS
17916fi
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17918$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17919if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17920
17921
17922$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17923
17924 UCOMMON_LIBS="$UCOMMON_LIBS -ldld"
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934
17935PTHREAD_FLAGS=""
17936
17937if test "$enable_shared" = "no" ; then
17938 UCOMMON_FLAGS="$UCOMMON_FLAGS -DUCOMMON_STATIC" ; fi
17939
17940# Check whether --enable-atomics was given.
17941if test "${enable_atomics+set}" = set; then :
17942 enableval=$enable_atomics;
17943
17944$as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
17945
17946
17947fi
17948
17949
17950# Check whether --enable-pth was given.
17951if test "${enable_pth+set}" = set; then :
17952 enableval=$enable_pth;
17953fi
17954
17955
17956if test "$threading" = "none" ; then
17957 if test "$enable_pth" != "yes" ; then
17958 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17959if test "x$ac_cv_header_pthread_h" = xyes; then :
17960
17961 PTHREAD_FLAGS="-mt -pthread -pthreads"
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17963$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17964if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17965 $as_echo_n "(cached) " >&6
17966else
17967 ac_check_lib_save_LIBS=$LIBS
17968LIBS="-lpthread $LIBS"
17969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970/* end confdefs.h. */
17971
17972/* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17975#ifdef __cplusplus
17976extern "C"
17977#endif
17978char pthread_create ();
17979int
17980main ()
17981{
17982return pthread_create ();
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987if ac_fn_c_try_link "$LINENO"; then :
17988 ac_cv_lib_pthread_pthread_create=yes
17989else
17990 ac_cv_lib_pthread_pthread_create=no
17991fi
17992rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994LIBS=$ac_check_lib_save_LIBS
17995fi
17996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17997$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17998if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17999
18000 tlib="pthread"
18001 UCOMMON_LIBS="$UCOMMON_LIBS -lpthread"
18002
18003fi
18004
18005 if test -z "$tlib" ; then
18006 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_pthread_create" | $as_tr_sh`
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$clib" >&5
18008$as_echo_n "checking for pthread_create in -l$clib... " >&6; }
18009if eval \${$as_ac_Lib+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011else
18012 ac_check_lib_save_LIBS=$LIBS
18013LIBS="-l$clib $LIBS"
18014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18015/* end confdefs.h. */
18016
18017/* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18020#ifdef __cplusplus
18021extern "C"
18022#endif
18023char pthread_create ();
18024int
18025main ()
18026{
18027return pthread_create ();
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032if ac_fn_c_try_link "$LINENO"; then :
18033 eval "$as_ac_Lib=yes"
18034else
18035 eval "$as_ac_Lib=no"
18036fi
18037rm -f core conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
18039LIBS=$ac_check_lib_save_LIBS
18040fi
18041eval ac_res=\$$as_ac_Lib
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18043$as_echo "$ac_res" >&6; }
18044if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18045 tlib="$clib"
18046fi
18047
18048 fi
18049 if test -z "$tlib" ; then
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
18051$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
18052if ${ac_cv_lib_c_r_pthread_create+:} false; then :
18053 $as_echo_n "(cached) " >&6
18054else
18055 ac_check_lib_save_LIBS=$LIBS
18056LIBS="-lc_r $LIBS"
18057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h. */
18059
18060/* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18063#ifdef __cplusplus
18064extern "C"
18065#endif
18066char pthread_create ();
18067int
18068main ()
18069{
18070return pthread_create ();
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075if ac_fn_c_try_link "$LINENO"; then :
18076 ac_cv_lib_c_r_pthread_create=yes
18077else
18078 ac_cv_lib_c_r_pthread_create=no
18079fi
18080rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082LIBS=$ac_check_lib_save_LIBS
18083fi
18084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
18085$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
18086if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
18087
18088 tlib="c_r"
18089 if test "$clib" = "c" ; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lc_r" >&5
18091$as_echo_n "checking for malloc in -lc_r... " >&6; }
18092if ${ac_cv_lib_c_r_malloc+:} false; then :
18093 $as_echo_n "(cached) " >&6
18094else
18095 ac_check_lib_save_LIBS=$LIBS
18096LIBS="-lc_r $LIBS"
18097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098/* end confdefs.h. */
18099
18100/* Override any GCC internal prototype to avoid an error.
18101 Use char because int might match the return type of a GCC
18102 builtin and then its argument prototype would still apply. */
18103#ifdef __cplusplus
18104extern "C"
18105#endif
18106char malloc ();
18107int
18108main ()
18109{
18110return malloc ();
18111 ;
18112 return 0;
18113}
18114_ACEOF
18115if ac_fn_c_try_link "$LINENO"; then :
18116 ac_cv_lib_c_r_malloc=yes
18117else
18118 ac_cv_lib_c_r_malloc=no
18119fi
18120rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18122LIBS=$ac_check_lib_save_LIBS
18123fi
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_malloc" >&5
18125$as_echo "$ac_cv_lib_c_r_malloc" >&6; }
18126if test "x$ac_cv_lib_c_r_malloc" = xyes; then :
18127 clib="c_r"
18128fi
18129
18130 fi
18131
18132fi
18133
18134 fi
18135 if test ! -z "$tlib" ; then
18136 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_condattr_setclock" | $as_tr_sh`
18137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock in -l$tlib" >&5
18138$as_echo_n "checking for pthread_condattr_setclock in -l$tlib... " >&6; }
18139if eval \${$as_ac_Lib+:} false; then :
18140 $as_echo_n "(cached) " >&6
18141else
18142 ac_check_lib_save_LIBS=$LIBS
18143LIBS="-l$tlib $LIBS"
18144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145/* end confdefs.h. */
18146
18147/* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150#ifdef __cplusplus
18151extern "C"
18152#endif
18153char pthread_condattr_setclock ();
18154int
18155main ()
18156{
18157return pthread_condattr_setclock ();
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162if ac_fn_c_try_link "$LINENO"; then :
18163 eval "$as_ac_Lib=yes"
18164else
18165 eval "$as_ac_Lib=no"
18166fi
18167rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169LIBS=$ac_check_lib_save_LIBS
18170fi
18171eval ac_res=\$$as_ac_Lib
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18173$as_echo "$ac_res" >&6; }
18174if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18175
18176
18177$as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18178
18179
18180fi
18181
18182 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_setconcurrency" | $as_tr_sh`
18183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setconcurrency in -l$tlib" >&5
18184$as_echo_n "checking for pthread_setconcurrency in -l$tlib... " >&6; }
18185if eval \${$as_ac_Lib+:} false; then :
18186 $as_echo_n "(cached) " >&6
18187else
18188 ac_check_lib_save_LIBS=$LIBS
18189LIBS="-l$tlib $LIBS"
18190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191/* end confdefs.h. */
18192
18193/* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196#ifdef __cplusplus
18197extern "C"
18198#endif
18199char pthread_setconcurrency ();
18200int
18201main ()
18202{
18203return pthread_setconcurrency ();
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208if ac_fn_c_try_link "$LINENO"; then :
18209 eval "$as_ac_Lib=yes"
18210else
18211 eval "$as_ac_Lib=no"
18212fi
18213rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215LIBS=$ac_check_lib_save_LIBS
18216fi
18217eval ac_res=\$$as_ac_Lib
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18219$as_echo "$ac_res" >&6; }
18220if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18221
18222
18223$as_echo "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
18224
18225
18226fi
18227
18228
18229 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_yield" | $as_tr_sh`
18230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield in -l$tlib" >&5
18231$as_echo_n "checking for pthread_yield in -l$tlib... " >&6; }
18232if eval \${$as_ac_Lib+:} false; then :
18233 $as_echo_n "(cached) " >&6
18234else
18235 ac_check_lib_save_LIBS=$LIBS
18236LIBS="-l$tlib $LIBS"
18237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238/* end confdefs.h. */
18239
18240/* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18243#ifdef __cplusplus
18244extern "C"
18245#endif
18246char pthread_yield ();
18247int
18248main ()
18249{
18250return pthread_yield ();
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255if ac_fn_c_try_link "$LINENO"; then :
18256 eval "$as_ac_Lib=yes"
18257else
18258 eval "$as_ac_Lib=no"
18259fi
18260rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18262LIBS=$ac_check_lib_save_LIBS
18263fi
18264eval ac_res=\$$as_ac_Lib
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18266$as_echo "$ac_res" >&6; }
18267if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18268
18269
18270$as_echo "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
18271
18272
18273fi
18274
18275
18276 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_delay" | $as_tr_sh`
18277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay in -l$tlib" >&5
18278$as_echo_n "checking for pthread_delay in -l$tlib... " >&6; }
18279if eval \${$as_ac_Lib+:} false; then :
18280 $as_echo_n "(cached) " >&6
18281else
18282 ac_check_lib_save_LIBS=$LIBS
18283LIBS="-l$tlib $LIBS"
18284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285/* end confdefs.h. */
18286
18287/* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290#ifdef __cplusplus
18291extern "C"
18292#endif
18293char pthread_delay ();
18294int
18295main ()
18296{
18297return pthread_delay ();
18298 ;
18299 return 0;
18300}
18301_ACEOF
18302if ac_fn_c_try_link "$LINENO"; then :
18303 eval "$as_ac_Lib=yes"
18304else
18305 eval "$as_ac_Lib=no"
18306fi
18307rm -f core conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309LIBS=$ac_check_lib_save_LIBS
18310fi
18311eval ac_res=\$$as_ac_Lib
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18313$as_echo "$ac_res" >&6; }
18314if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18315
18316
18317$as_echo "#define HAVE_PTHREAD_DELAY 1" >>confdefs.h
18318
18319
18320fi
18321
18322 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_delay_np" | $as_tr_sh`
18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay_np in -l$tlib" >&5
18324$as_echo_n "checking for pthread_delay_np in -l$tlib... " >&6; }
18325if eval \${$as_ac_Lib+:} false; then :
18326 $as_echo_n "(cached) " >&6
18327else
18328 ac_check_lib_save_LIBS=$LIBS
18329LIBS="-l$tlib $LIBS"
18330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331/* end confdefs.h. */
18332
18333/* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
18336#ifdef __cplusplus
18337extern "C"
18338#endif
18339char pthread_delay_np ();
18340int
18341main ()
18342{
18343return pthread_delay_np ();
18344 ;
18345 return 0;
18346}
18347_ACEOF
18348if ac_fn_c_try_link "$LINENO"; then :
18349 eval "$as_ac_Lib=yes"
18350else
18351 eval "$as_ac_Lib=no"
18352fi
18353rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355LIBS=$ac_check_lib_save_LIBS
18356fi
18357eval ac_res=\$$as_ac_Lib
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18359$as_echo "$ac_res" >&6; }
18360if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18361
18362
18363$as_echo "#define HAVE_PTHREAD_DELAY_NP 1" >>confdefs.h
18364
18365
18366fi
18367
18368 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_setschedprio" | $as_tr_sh`
18369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setschedprio in -l$tlib" >&5
18370$as_echo_n "checking for pthread_setschedprio in -l$tlib... " >&6; }
18371if eval \${$as_ac_Lib+:} false; then :
18372 $as_echo_n "(cached) " >&6
18373else
18374 ac_check_lib_save_LIBS=$LIBS
18375LIBS="-l$tlib $LIBS"
18376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377/* end confdefs.h. */
18378
18379/* Override any GCC internal prototype to avoid an error.
18380 Use char because int might match the return type of a GCC
18381 builtin and then its argument prototype would still apply. */
18382#ifdef __cplusplus
18383extern "C"
18384#endif
18385char pthread_setschedprio ();
18386int
18387main ()
18388{
18389return pthread_setschedprio ();
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394if ac_fn_c_try_link "$LINENO"; then :
18395 eval "$as_ac_Lib=yes"
18396else
18397 eval "$as_ac_Lib=no"
18398fi
18399rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401LIBS=$ac_check_lib_save_LIBS
18402fi
18403eval ac_res=\$$as_ac_Lib
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18405$as_echo "$ac_res" >&6; }
18406if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18407
18408
18409$as_echo "#define HAVE_PTHREAD_SETSCHEDPRIO 1" >>confdefs.h
18410
18411
18412fi
18413
18414 fi
18415
18416else
18417
18418 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18419if test "x$ac_cv_header_windows_h" = xyes; then :
18420
18421else
18422
18423 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18424if test "x$ac_cv_header_pth_h" = xyes; then :
18425
18426 UCOMMON_LIBS="$UCOMMON_LIBS -lpth"
18427 UCOMMON_FLAGS="$UCOMMON_FLAGS -D__PTH__"
18428
18429else
18430
18431 as_fn_error $? "\"pthread or GNU pth support required\"" "$LINENO" 5
18432
18433fi
18434
18435
18436
18437fi
18438
18439
18440
18441fi
18442
18443
18444 else
18445 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18446if test "x$ac_cv_header_pth_h" = xyes; then :
18447
18448 UCOMMON_LIBS="$UCOMMON_LIBS -lpth"
18449 UCOMMON_FLAGS="$UCOMMON_FLAGS -D__PTH__"
18450
18451else
18452
18453 as_fn_error $? "\"GNU pth required\"" "$LINENO" 5
18454
18455fi
18456
18457
18458 fi
18459fi
18460
18461for func in ftok shm_open nanosleep clock_nanosleep clock_gettime strerror_r localtime_r gmtime_r posix_fadvise ftruncate pwrite setpgrp setlocale gettext execvp atexit realpath symlink readlink waitpid wait4 ; do
18462 found="no"
18463 as_ac_var=`$as_echo "ac_cv_func_$func" | $as_tr_sh`
18464ac_fn_c_check_func "$LINENO" "$func" "$as_ac_var"
18465if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18466
18467 found=$func
18468
18469else
18470
18471 as_ac_Lib=`$as_echo "ac_cv_lib_posix4_$func" | $as_tr_sh`
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -lposix4" >&5
18473$as_echo_n "checking for $func in -lposix4... " >&6; }
18474if eval \${$as_ac_Lib+:} false; then :
18475 $as_echo_n "(cached) " >&6
18476else
18477 ac_check_lib_save_LIBS=$LIBS
18478LIBS="-lposix4 $LIBS"
18479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h. */
18481
18482/* Override any GCC internal prototype to avoid an error.
18483 Use char because int might match the return type of a GCC
18484 builtin and then its argument prototype would still apply. */
18485#ifdef __cplusplus
18486extern "C"
18487#endif
18488char $func ();
18489int
18490main ()
18491{
18492return $func ();
18493 ;
18494 return 0;
18495}
18496_ACEOF
18497if ac_fn_c_try_link "$LINENO"; then :
18498 eval "$as_ac_Lib=yes"
18499else
18500 eval "$as_ac_Lib=no"
18501fi
18502rm -f core conftest.err conftest.$ac_objext \
18503 conftest$ac_exeext conftest.$ac_ext
18504LIBS=$ac_check_lib_save_LIBS
18505fi
18506eval ac_res=\$$as_ac_Lib
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18508$as_echo "$ac_res" >&6; }
18509if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18510
18511 found=$func
18512 posix4_lib="-lposix4"
18513
18514else
18515
18516 as_ac_Lib=`$as_echo "ac_cv_lib_rt_$func" | $as_tr_sh`
18517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -lrt" >&5
18518$as_echo_n "checking for $func in -lrt... " >&6; }
18519if eval \${$as_ac_Lib+:} false; then :
18520 $as_echo_n "(cached) " >&6
18521else
18522 ac_check_lib_save_LIBS=$LIBS
18523LIBS="-lrt $LIBS"
18524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525/* end confdefs.h. */
18526
18527/* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18530#ifdef __cplusplus
18531extern "C"
18532#endif
18533char $func ();
18534int
18535main ()
18536{
18537return $func ();
18538 ;
18539 return 0;
18540}
18541_ACEOF
18542if ac_fn_c_try_link "$LINENO"; then :
18543 eval "$as_ac_Lib=yes"
18544else
18545 eval "$as_ac_Lib=no"
18546fi
18547rm -f core conftest.err conftest.$ac_objext \
18548 conftest$ac_exeext conftest.$ac_ext
18549LIBS=$ac_check_lib_save_LIBS
18550fi
18551eval ac_res=\$$as_ac_Lib
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18553$as_echo "$ac_res" >&6; }
18554if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18555
18556 found=$func
18557 rt_lib="-lrt"
18558
18559else
18560
18561 if test ! -z "$tlib" ; then
18562 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_$func" | $as_tr_sh`
18563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -l$tlib" >&5
18564$as_echo_n "checking for $func in -l$tlib... " >&6; }
18565if eval \${$as_ac_Lib+:} false; then :
18566 $as_echo_n "(cached) " >&6
18567else
18568 ac_check_lib_save_LIBS=$LIBS
18569LIBS="-l$tlib $LIBS"
18570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571/* end confdefs.h. */
18572
18573/* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18576#ifdef __cplusplus
18577extern "C"
18578#endif
18579char $func ();
18580int
18581main ()
18582{
18583return $func ();
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588if ac_fn_c_try_link "$LINENO"; then :
18589 eval "$as_ac_Lib=yes"
18590else
18591 eval "$as_ac_Lib=no"
18592fi
18593rm -f core conftest.err conftest.$ac_objext \
18594 conftest$ac_exeext conftest.$ac_ext
18595LIBS=$ac_check_lib_save_LIBS
18596fi
18597eval ac_res=\$$as_ac_Lib
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18599$as_echo "$ac_res" >&6; }
18600if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18601
18602 found=$func
18603
18604fi
18605
18606 fi
18607
18608fi
18609
18610
18611fi
18612
18613
18614fi
18615
18616 case $found in
18617 shm_open)
18618
18619$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h
18620
18621 ;;
18622 setpgrp)
18623
18624$as_echo "#define HAVE_SETPGRP 1" >>confdefs.h
18625
18626 ;;
18627 realpath)
18628
18629$as_echo "#define HAVE_REALPATH 1" >>confdefs.h
18630
18631 ;;
18632 ftok)
18633
18634$as_echo "#define HAVE_FTOK 1" >>confdefs.h
18635
18636 ;;
18637 gmtime_r)
18638
18639$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18640
18641 ;;
18642 localtime_r)
18643
18644$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
18645
18646 ;;
18647 strerror_r)
18648
18649$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
18650
18651 ;;
18652 nanosleep)
18653
18654$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
18655
18656 ;;
18657 clock_nanosleep)
18658
18659$as_echo "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
18660
18661 ;;
18662 clock_gettime)
18663
18664$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18665
18666 ;;
18667 posix_fadvise)
18668
18669$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
18670
18671 ;;
18672 ftruncate)
18673
18674$as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
18675
18676 ;;
18677 pwrite)
18678
18679$as_echo "#define HAVE_PWRITE 1" >>confdefs.h
18680
18681 ;;
18682 setlocale)
18683
18684$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
18685
18686 ;;
18687 gettext)
18688
18689$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18690
18691 have_gettext="yes"
18692 ;;
18693 execvp)
18694
18695$as_echo "#define HAVE_EXECVP 1" >>confdefs.h
18696
18697 ;;
18698 symlink)
18699
18700$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
18701
18702 ;;
18703 readlink)
18704
18705$as_echo "#define HAVE_READLINK 1" >>confdefs.h
18706
18707 ;;
18708 waitpid)
18709
18710$as_echo "#define HAVE_WAITPID 1" >>confdefs.h
18711
18712 ;;
18713 wait4)
18714
18715$as_echo "#define HAVE_WAIT4 1" >>confdefs.h
18716
18717 ;;
18718 esac
18719done
18720
18721UCOMMON_LINKED="$socket_lib $posix4_lib $rt_lib $UCOMMON_LIBS"
18722UCOMMON_LIBS="$socket_lib $posix4_lib $rt_lib $UCOMMON_LIBS $UCOMMON_LIBC"
18723
18724if test "$UCOMMON_MODEL" = "CC" ; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lSystemstubs" >&5
18726$as_echo_n "checking for printf in -lSystemstubs... " >&6; }
18727if ${ac_cv_lib_Systemstubs_printf+:} false; then :
18728 $as_echo_n "(cached) " >&6
18729else
18730 ac_check_lib_save_LIBS=$LIBS
18731LIBS="-lSystemstubs $LIBS"
18732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733/* end confdefs.h. */
18734
18735/* Override any GCC internal prototype to avoid an error.
18736 Use char because int might match the return type of a GCC
18737 builtin and then its argument prototype would still apply. */
18738#ifdef __cplusplus
18739extern "C"
18740#endif
18741char printf ();
18742int
18743main ()
18744{
18745return printf ();
18746 ;
18747 return 0;
18748}
18749_ACEOF
18750if ac_fn_c_try_link "$LINENO"; then :
18751 ac_cv_lib_Systemstubs_printf=yes
18752else
18753 ac_cv_lib_Systemstubs_printf=no
18754fi
18755rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757LIBS=$ac_check_lib_save_LIBS
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Systemstubs_printf" >&5
18760$as_echo "$ac_cv_lib_Systemstubs_printf" >&6; }
18761if test "x$ac_cv_lib_Systemstubs_printf" = xyes; then :
18762
18763 UCOMMON_CLINK="$UCOMMON_CLINK -lSystemstubs"
18764 UCOMMON_LIBC="$UCOMMON_LIBC -lgcc"
18765
18766fi
18767
18768fi
18769
18770
18771ac_ext=cpp
18772ac_cpp='$CXXCPP $CPPFLAGS'
18773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776
18777COMPILER_FLAGS=""
18778
18779if test "x$GCC" = "xyes" ; then
18780 UCOMMON_FLAGS="$UCOMMON_FLAGS -Wno-long-long" ; fi
18781
18782for flag in $CXXFLAGS ; do
18783 case "$flag" in
18784 -f*exceptions|-f*rtti|-f*check-new|-f*enforce-eh-specs|-finline|-f*except)
18785 if test "$UCOMMON_MODEL" = "CXX" ; then
18786 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag" ; fi
18787 ;;
18788 -fvisibility=*)
18789 VISIBLE_FLAGS=""
18790 COMPILER_FLAGS="$COMPILER_FLAGS $flag"
18791 ;;
18792 *)
18793 COMPILER_FLAGS="$COMPILER_FLAGS $flag"
18794 ;;
18795 esac
18796done
18797export CXXFLAGS="$COMPILER_FLAGS"
18798
18799if test "$UCOMMON_MODEL" = "CC" ; then
18800 UCOMMON_FLAGS="$UCOMMON_FLAGS"
18801
18802 if test x"$GCC" = "xyes" ; then
18803 ucflags="-fno-exceptions -fno-rtti -fno-enforce-eh-specs"
18804 lcflags="-nodefaultlibs -nostdinc++"
18805 else
18806 ucflags="-library=no%Cstd -features=no%except -features=namespace -features=no%rtti"
18807 lcflags=""
18808 fi
18809
18810 for flag in $ucflags ; do
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18812$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18813 echo 'void f(){}' >conftest.cpp
18814 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18815 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817$as_echo "yes" >&6; }
18818 if test "$flag" = "-library=no%Cstd" ; then
18819 UCOMMON_MODEL="CXX" ; fi
18820 else
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18822$as_echo "no" >&6; }
18823 fi
18824 rm -f conftest*
18825 done
18826
18827 for flag in $lcflags ; do
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18829$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18830 echo 'void f(){}' >conftest.cpp
18831 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18832 UCOMMON_CLINK="$UCOMMON_CLINK $flag"
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18834$as_echo "yes" >&6; }
18835 else
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18837$as_echo "no" >&6; }
18838 fi
18839 rm -f conftest*
18840 done
18841else
18842 ac_save_CXXFLAGS="$CXXFLAGS"
18843 CXXFLAGS=""
18844
18845 ac_ext=cpp
18846ac_cpp='$CXXCPP $CPPFLAGS'
18847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18850
18851
18852for ac_header in stdexcept
18853do :
18854 ac_fn_cxx_check_header_mongrel "$LINENO" "stdexcept" "ac_cv_header_stdexcept" "$ac_includes_default"
18855if test "x$ac_cv_header_stdexcept" = xyes; then :
18856 cat >>confdefs.h <<_ACEOF
18857#define HAVE_STDEXCEPT 1
18858_ACEOF
18859
18860fi
18861
18862done
18863
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old style iostream" >&5
18865$as_echo_n "checking for old style iostream... " >&6; }
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867/* end confdefs.h. */
18868
18869 #include <iostream>
18870 using namespace std;
18871
18872 class mystr : public streambuf, public iostream
18873 {
18874 mystr();
18875 };
18876
18877 mystr::mystr() : streambuf(), iostream((streambuf *)this)
18878 {
18879 }
18880
18881int
18882main ()
18883{
18884return 0;
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889if ac_fn_cxx_try_compile "$LINENO"; then :
18890
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18892$as_echo "no" >&6; }
18893 UCOMMON_FLAGS="$UCOMMON_FLAGS -DNEW_STDCPP"
18894
18895else
18896
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898$as_echo "yes" >&6; }
18899 UCOMMON_FLAGS="$UCOMMON_FLAGS -DOLD_STDCPP"
18900
18901fi
18902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18903 ac_ext=cpp
18904ac_cpp='$CXXCPP $CPPFLAGS'
18905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908
18909 CXXFLAGS="$ac_save_CXXFLAGS"
18910fi
18911
18912if test ! -z "$PTHREAD_FLAGS" ; then
18913 for flag in $PTHREAD_FLAGS ; do
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18915$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18916 echo 'void f(){}' >conftest.cpp
18917 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18919$as_echo "yes" >&6; }
18920 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18921 break
18922 else
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924$as_echo "no" >&6; }
18925 fi
18926 done
18927fi
18928
18929export CXXFLAGS
18930
18931# libstdc++ on some targets broken badly if inlines hidden. Might be
18932# deeper issue with ansi c++ library model...
18933flags="-fno-check-new -finline"
18934if test "$UCOMMON_MODEL" = "CC" ; then
18935 if test "$enable_shared" != "no" ; then
18936 flags="$flags -fvisibility-inlines-hidden"
18937 fi
18938fi
18939
18940for flag in $flags ; do
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18942$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18943 echo 'void f(){}' >conftest.cpp
18944 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18945 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18947$as_echo "yes" >&6; }
18948 else
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18950$as_echo "no" >&6; }
18951 fi
18952 rm -f conftest*
18953done
18954
18955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports visibility" >&5
18956$as_echo_n "checking whether ${CXX} supports visibility... " >&6; }
18957echo 'void f(){}' >conftest.cpp
18958if test -z "`${CXX} -fvisibility=hidden -c conftest.cpp 2>&1`"; then
18959 UCOMMON_FLAGS="$UCOMMON_FLAGS -fvisibility=hidden -DUCOMMON_VISIBILITY=1"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18961$as_echo "yes" >&6; }
18962 UCOMMON_VISIBILITY="1"
18963else
18964 UCOMMON_FLAGS="$UCOMMON_FLAGS -DUCOMMON_VISIBILITY=0"
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966$as_echo "no" >&6; }
18967fi
18968rm -f conftest*
18969
18970ac_ext=c
18971ac_cpp='$CPP $CPPFLAGS'
18972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976
18977
18978 includes="$includedir"
18979 result="***"
18980 prior="A"
18981 while test "$prior" != "$result" ; do
18982 prior=`(echo "$includes")`
18983 includes=`(
18984 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
18985 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
18986 eval echo \""$includes"\"
18987 )`
18988 result=`(echo "$includes")`
18989 done
18990
18991
18992
18993 libs="$libdir"
18994 result="***"
18995 prior="A"
18996 while test "$prior" != "$result" ; do
18997 prior=`(echo "$libs")`
18998 libs=`(
18999 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19000 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19001 eval echo \""$libs"\"
19002 )`
19003 result=`(echo "$libs")`
19004 done
19005
19006
19007
19008case "$libs" in
19009/usr/*)
19010 ;;
19011*)
19012 UCOMMON_LINKED="-L$libs $UCOMMON_LINKED"
19013 ;;
19014esac
19015
19016case "$includes" in
19017/usr/*)
19018 ;;
19019*)
19020 UCOMMON_FLAGS="$UCOMMON_FLAGS -I$includes"
19021 ;;
19022esac
19023
19024case "$target_os" in
19025*bsd*)
19026 if test "$UCOMMON_MODEL" = "CC" ; then
19027 if test "$GCC" = "yes" -a "$UCOMMON_LIBC" = "-lc" ; then
19028 UCOMMON_LIBC="-Wl,-lc"
19029 elif test "$GCC" = "yes" -a "$UCOMMON_LIBC" = "-lc_r" ; then
19030 UCOMMON_LIBC="-Wl,-lc_r"
19031 fi
19032 fi
19033 ;;
19034osf*)
19035 UCOMMON_FLAGS="$UCOMMON_FLAGS -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1 -D__USE_STD_IOSTREAM"
19036 ;;
19037cygwin*|mingw*)
19038 UCOMMON_LINKED="$UCOMMON_LINKED -no-undefined"
19039 UCOMMON_LIBS="$UCOMMON_LIBS -no-undefined"
19040 ;;
19041esac
19042
19043UCOMMON_CLINK="$UCOMMON_CLINK $UCOMMON_LIBC"
19044
19045if test -z "$UCOMMON_SSLSTACK" ; then
19046 UCOMMON_SSLSTACK="$sslstack" ; fi
19047
19048OPENSSL_LIBS=""
19049GNUTLS_LIBS=""
19050
19051
19052
19053
19054
19055
19056
19057
19058if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19059 if test -n "$ac_tool_prefix"; then
19060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19063$as_echo_n "checking for $ac_word... " >&6; }
19064if ${ac_cv_path_PKG_CONFIG+:} false; then :
19065 $as_echo_n "(cached) " >&6
19066else
19067 case $PKG_CONFIG in
19068 [\\/]* | ?:[\\/]*)
19069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19070 ;;
19071 *)
19072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19073for as_dir in $PATH
19074do
19075 IFS=$as_save_IFS
19076 test -z "$as_dir" && as_dir=.
19077 for ac_exec_ext in '' $ac_executable_extensions; do
19078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19081 break 2
19082 fi
19083done
19084 done
19085IFS=$as_save_IFS
19086
19087 ;;
19088esac
19089fi
19090PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19091if test -n "$PKG_CONFIG"; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19093$as_echo "$PKG_CONFIG" >&6; }
19094else
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096$as_echo "no" >&6; }
19097fi
19098
19099
19100fi
19101if test -z "$ac_cv_path_PKG_CONFIG"; then
19102 ac_pt_PKG_CONFIG=$PKG_CONFIG
19103 # Extract the first word of "pkg-config", so it can be a program name with args.
19104set dummy pkg-config; ac_word=$2
19105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106$as_echo_n "checking for $ac_word... " >&6; }
19107if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19108 $as_echo_n "(cached) " >&6
19109else
19110 case $ac_pt_PKG_CONFIG in
19111 [\\/]* | ?:[\\/]*)
19112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19113 ;;
19114 *)
19115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116for as_dir in $PATH
19117do
19118 IFS=$as_save_IFS
19119 test -z "$as_dir" && as_dir=.
19120 for ac_exec_ext in '' $ac_executable_extensions; do
19121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124 break 2
19125 fi
19126done
19127 done
19128IFS=$as_save_IFS
19129
19130 ;;
19131esac
19132fi
19133ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19134if test -n "$ac_pt_PKG_CONFIG"; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19136$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19137else
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139$as_echo "no" >&6; }
19140fi
19141
19142 if test "x$ac_pt_PKG_CONFIG" = x; then
19143 PKG_CONFIG=""
19144 else
19145 case $cross_compiling:$ac_tool_warned in
19146yes:)
19147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19149ac_tool_warned=yes ;;
19150esac
19151 PKG_CONFIG=$ac_pt_PKG_CONFIG
19152 fi
19153else
19154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19155fi
19156
19157fi
19158if test -n "$PKG_CONFIG"; then
19159 _pkg_min_version=0.9.0
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19161$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19164$as_echo "yes" >&6; }
19165 else
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167$as_echo "no" >&6; }
19168 PKG_CONFIG=""
19169 fi
19170fi
19171
19172# Check whether --with-pkg-config was given.
19173if test "${with_pkg_config+set}" = set; then :
19174 withval=$with_pkg_config;
19175
19176pkg_failed=no
19177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
19178$as_echo_n "checking for OPENSSL... " >&6; }
19179
19180if test -n "$OPENSSL_CFLAGS"; then
19181 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19182 elif test -n "$PKG_CONFIG"; then
19183 if test -n "$PKG_CONFIG" && \
19184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_REQUIRES\""; } >&5
19185 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_REQUIRES") 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; }; then
19189 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_REQUIRES" 2>/dev/null`
19190 test "x$?" != "x0" && pkg_failed=yes
19191else
19192 pkg_failed=yes
19193fi
19194 else
19195 pkg_failed=untried
19196fi
19197if test -n "$OPENSSL_LIBS"; then
19198 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19199 elif test -n "$PKG_CONFIG"; then
19200 if test -n "$PKG_CONFIG" && \
19201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_REQUIRES\""; } >&5
19202 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_REQUIRES") 2>&5
19203 ac_status=$?
19204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19205 test $ac_status = 0; }; then
19206 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_REQUIRES" 2>/dev/null`
19207 test "x$?" != "x0" && pkg_failed=yes
19208else
19209 pkg_failed=yes
19210fi
19211 else
19212 pkg_failed=untried
19213fi
19214
19215
19216
19217if test $pkg_failed = yes; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19219$as_echo "no" >&6; }
19220
19221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19222 _pkg_short_errors_supported=yes
19223else
19224 _pkg_short_errors_supported=no
19225fi
19226 if test $_pkg_short_errors_supported = yes; then
19227 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= $OPENSSL_REQUIRES" 2>&1`
19228 else
19229 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= $OPENSSL_REQUIRES" 2>&1`
19230 fi
19231 # Put the nasty error message in config.log where it belongs
19232 echo "$OPENSSL_PKG_ERRORS" >&5
19233
19234
19235 OPENSSL_LIBS=""
19236 for ac_header in openssl/ssl.h
19237do :
19238 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19239if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19240 cat >>confdefs.h <<_ACEOF
19241#define HAVE_OPENSSL_SSL_H 1
19242_ACEOF
19243
19244 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19245
19246fi
19247
19248done
19249
19250 for ac_header in openssl/fips.h
19251do :
19252 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19253if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19254 cat >>confdefs.h <<_ACEOF
19255#define HAVE_OPENSSL_FIPS_H 1
19256_ACEOF
19257
19258fi
19259
19260done
19261
19262
19263elif test $pkg_failed = untried; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265$as_echo "no" >&6; }
19266
19267 OPENSSL_LIBS=""
19268 for ac_header in openssl/ssl.h
19269do :
19270 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19271if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19272 cat >>confdefs.h <<_ACEOF
19273#define HAVE_OPENSSL_SSL_H 1
19274_ACEOF
19275
19276 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19277
19278fi
19279
19280done
19281
19282 for ac_header in openssl/fips.h
19283do :
19284 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19285if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19286 cat >>confdefs.h <<_ACEOF
19287#define HAVE_OPENSSL_FIPS_H 1
19288_ACEOF
19289
19290fi
19291
19292done
19293
19294
19295else
19296 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19297 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299$as_echo "yes" >&6; }
19300
19301fi
19302
19303pkg_failed=no
19304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
19305$as_echo_n "checking for GNUTLS... " >&6; }
19306
19307if test -n "$GNUTLS_CFLAGS"; then
19308 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
19309 elif test -n "$PKG_CONFIG"; then
19310 if test -n "$PKG_CONFIG" && \
19311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.8.0\""; } >&5
19312 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.8.0") 2>&5
19313 ac_status=$?
19314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19315 test $ac_status = 0; }; then
19316 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.8.0" 2>/dev/null`
19317 test "x$?" != "x0" && pkg_failed=yes
19318else
19319 pkg_failed=yes
19320fi
19321 else
19322 pkg_failed=untried
19323fi
19324if test -n "$GNUTLS_LIBS"; then
19325 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
19326 elif test -n "$PKG_CONFIG"; then
19327 if test -n "$PKG_CONFIG" && \
19328 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.8.0\""; } >&5
19329 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.8.0") 2>&5
19330 ac_status=$?
19331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19332 test $ac_status = 0; }; then
19333 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.8.0" 2>/dev/null`
19334 test "x$?" != "x0" && pkg_failed=yes
19335else
19336 pkg_failed=yes
19337fi
19338 else
19339 pkg_failed=untried
19340fi
19341
19342
19343
19344if test $pkg_failed = yes; then
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346$as_echo "no" >&6; }
19347
19348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19349 _pkg_short_errors_supported=yes
19350else
19351 _pkg_short_errors_supported=no
19352fi
19353 if test $_pkg_short_errors_supported = yes; then
19354 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.8.0" 2>&1`
19355 else
19356 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.8.0" 2>&1`
19357 fi
19358 # Put the nasty error message in config.log where it belongs
19359 echo "$GNUTLS_PKG_ERRORS" >&5
19360
19361 GNUTLS_LIBS=""
19362elif test $pkg_failed = untried; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364$as_echo "no" >&6; }
19365 GNUTLS_LIBS=""
19366else
19367 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
19368 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19370$as_echo "yes" >&6; }
19371
19372fi
19373
19374else
19375
19376 for ac_header in openssl/ssl.h
19377do :
19378 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19379if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19380 cat >>confdefs.h <<_ACEOF
19381#define HAVE_OPENSSL_SSL_H 1
19382_ACEOF
19383
19384 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19385
19386fi
19387
19388done
19389
19390 for ac_header in openssl/fips.h
19391do :
19392 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19393if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19394 cat >>confdefs.h <<_ACEOF
19395#define HAVE_OPENSSL_FIPS_H 1
19396_ACEOF
19397
19398fi
19399
19400done
19401
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
19403$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
19404if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
19405 $as_echo_n "(cached) " >&6
19406else
19407 ac_check_lib_save_LIBS=$LIBS
19408LIBS="-lgnutls $LIBS"
19409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410/* end confdefs.h. */
19411
19412/* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415#ifdef __cplusplus
19416extern "C"
19417#endif
19418char gnutls_init ();
19419int
19420main ()
19421{
19422return gnutls_init ();
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427if ac_fn_c_try_link "$LINENO"; then :
19428 ac_cv_lib_gnutls_gnutls_init=yes
19429else
19430 ac_cv_lib_gnutls_gnutls_init=no
19431fi
19432rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434LIBS=$ac_check_lib_save_LIBS
19435fi
19436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19437$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
19438if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
19439
19440 GNUTLS_LIBS="-lgnutls"
19441
19442fi
19443
19444
19445fi
19446
19447
19448
19449SECURE=""
19450case "$ssl" in
19451secure|any|detect)
19452 if test ! -z "$GNUTLS_LIBS" ; then
19453 SECURE_LIBS="$GNUTLS_LIBS"
19454 SECURE="gnutls"
19455 fi
19456 if test -z "$SECURE" ; then
19457 if test ! -z "$OPENSSL_LIBS" ; then
19458 SECURE_LIBS="$OPENSSL_LIBS"
19459 SECURE="openssl"
19460 fi
19461 fi
19462 ;;
19463gnutls|gnu)
19464 if test ! -z "$GNUTLS_LIBS" ; then
19465 SECURE_LIBS="$GNUTLS_LIBS"
19466 SECURE="gnutls"
19467 fi
19468 ;;
19469openssl|ssl)
19470 if test ! -z "$OPENSSL_LIBS" ; then
19471 SECURE_LIBS="$OPENSSL_LIBS"
19472 SECURE="openssl"
19473 fi
19474 ;;
19475esac
19476
19477if test -z "$SECURE" ; then
19478 SECURE_LIBS=""
19479 SECURE="nossl"
19480fi
19481
19482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking secure library mode" >&5
19483$as_echo_n "checking secure library mode... " >&6; }
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE" >&5
19485$as_echo "$SECURE" >&6; }
19486
19487SECURE_LOCAL="../$SECURE/libusecure.la $SECURE_LIBS"
19488
19489LT_GENERIC="${LIBTOOL}"
19490if test "$UCOMMON_MODEL" = "CC" ; then
19491 LIBTOOL='$(SHELL) $(top_srcdir)/cmodel.sh'" ${LIBTOOL}" ; fi
19492
19493includes='${includedir}/ucommon'
19494
19495if test "$sysconfdir" = '${prefix}/etc' ; then
19496 sysconfdir="/etc" ; fi
19497
19498if test "$localstatedir" = '${prefix}/var' ; then
19499 localstatedir="/var" ; fi
19500
19501ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19502if test "x$ac_cv_header_libintl_h" = xyes; then :
19503
19504
19505$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
19506
19507 if test "$have_gettext" = "no" ; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19509$as_echo_n "checking for gettext in -lintl... " >&6; }
19510if ${ac_cv_lib_intl_gettext+:} false; then :
19511 $as_echo_n "(cached) " >&6
19512else
19513 ac_check_lib_save_LIBS=$LIBS
19514LIBS="-lintl $LIBS"
19515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516/* end confdefs.h. */
19517
19518/* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19521#ifdef __cplusplus
19522extern "C"
19523#endif
19524char gettext ();
19525int
19526main ()
19527{
19528return gettext ();
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533if ac_fn_c_try_link "$LINENO"; then :
19534 ac_cv_lib_intl_gettext=yes
19535else
19536 ac_cv_lib_intl_gettext=no
19537fi
19538rm -f core conftest.err conftest.$ac_objext \
19539 conftest$ac_exeext conftest.$ac_ext
19540LIBS=$ac_check_lib_save_LIBS
19541fi
19542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19543$as_echo "$ac_cv_lib_intl_gettext" >&6; }
19544if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19545
19546
19547$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19548
19549 UCOMMON_LIBS="$UCOMMON_LIBS -lintl"
19550
19551fi
19552
19553 fi
19554
19555fi
19556
19557
19558
19559if test "$prefix" = "NONE" ; then
19560 prefixdir="$ac_default_prefix"
19561else
19562 prefixdir="$prefix" ; fi
19563
19564
19565 UCOMMON_INCLUDES="$includes"
19566 result="***"
19567 prior="A"
19568 while test "$prior" != "$result" ; do
19569 prior=`(echo "$UCOMMON_INCLUDES")`
19570 UCOMMON_INCLUDES=`(
19571 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19572 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19573 eval echo \""$UCOMMON_INCLUDES"\"
19574 )`
19575 result=`(echo "$UCOMMON_INCLUDES")`
19576 done
19577
19578
19579
19580 UCOMMON_LOCALE="$localedir"
19581 result="***"
19582 prior="A"
19583 while test "$prior" != "$result" ; do
19584 prior=`(echo "$UCOMMON_LOCALE")`
19585 UCOMMON_LOCALE=`(
19586 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19587 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19588 eval echo \""$UCOMMON_LOCALE"\"
19589 )`
19590 result=`(echo "$UCOMMON_LOCALE")`
19591 done
19592
19593
19594
19595 UCOMMON_CFGPATH="$sysconfdir"
19596 result="***"
19597 prior="A"
19598 while test "$prior" != "$result" ; do
19599 prior=`(echo "$UCOMMON_CFGPATH")`
19600 UCOMMON_CFGPATH=`(
19601 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19602 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19603 eval echo \""$UCOMMON_CFGPATH"\"
19604 )`
19605 result=`(echo "$UCOMMON_CFGPATH")`
19606 done
19607
19608
19609
19610 UCOMMON_VARPATH="$localstatedir"
19611 result="***"
19612 prior="A"
19613 while test "$prior" != "$result" ; do
19614 prior=`(echo "$UCOMMON_VARPATH")`
19615 UCOMMON_VARPATH=`(
19616 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19617 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19618 eval echo \""$UCOMMON_VARPATH"\"
19619 )`
19620 result=`(echo "$UCOMMON_VARPATH")`
19621 done
19622
19623
19624
19625 UCOMMON_PREFIX="$prefixdir"
19626 result="***"
19627 prior="A"
19628 while test "$prior" != "$result" ; do
19629 prior=`(echo "$UCOMMON_PREFIX")`
19630 UCOMMON_PREFIX=`(
19631 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19632 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19633 eval echo \""$UCOMMON_PREFIX"\"
19634 )`
19635 result=`(echo "$UCOMMON_PREFIX")`
19636 done
19637
19638
19639
19640cat >>confdefs.h <<_ACEOF
19641#define UCOMMON_PREFIX "$UCOMMON_PREFIX"
19642_ACEOF
19643
19644
19645cat >>confdefs.h <<_ACEOF
19646#define UCOMMON_CFGPATH "$UCOMMON_CFGPATH"
19647_ACEOF
19648
19649
19650cat >>confdefs.h <<_ACEOF
19651#define UCOMMON_VARPATH "$UCOMMON_VARPATH"
19652_ACEOF
19653
19654
19655cat >>confdefs.h <<_ACEOF
19656#define UCOMMON_LOCALE "$UCOMMON_LOCALE"
19657_ACEOF
19658
19659
19660# Extract the first word of "doxygen", so it can be a program name with args.
19661set dummy doxygen; ac_word=$2
19662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19663$as_echo_n "checking for $ac_word... " >&6; }
19664if ${ac_cv_path_DOXYGEN+:} false; then :
19665 $as_echo_n "(cached) " >&6
19666else
19667 case $DOXYGEN in
19668 [\\/]* | ?:[\\/]*)
19669 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19670 ;;
19671 *)
19672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19673for as_dir in $PATH
19674do
19675 IFS=$as_save_IFS
19676 test -z "$as_dir" && as_dir=.
19677 for ac_exec_ext in '' $ac_executable_extensions; do
19678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19679 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19681 break 2
19682 fi
19683done
19684 done
19685IFS=$as_save_IFS
19686
19687 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
19688 ;;
19689esac
19690fi
19691DOXYGEN=$ac_cv_path_DOXYGEN
19692if test -n "$DOXYGEN"; then
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19694$as_echo "$DOXYGEN" >&6; }
19695else
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697$as_echo "no" >&6; }
19698fi
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723ac_config_files="$ac_config_files Makefile corelib/Makefile commoncpp/Makefile openssl/Makefile gnutls/Makefile nossl/Makefile utils/Makefile inc/Makefile inc/ucommon/Makefile inc/commoncpp/Makefile test/Makefile directive commoncpp.pc ucommon.pc ucommon.spec ucommon-config commoncpp-config"
19724
19725cat >confcache <<\_ACEOF
19726# This file is a shell script that caches the results of configure
19727# tests run on this system so they can be shared between configure
19728# scripts and configure runs, see configure's option --config-cache.
19729# It is not useful on other systems. If it contains results you don't
19730# want to keep, you may remove or edit it.
19731#
19732# config.status only pays attention to the cache file if you give it
19733# the --recheck option to rerun configure.
19734#
19735# `ac_cv_env_foo' variables (set or unset) will be overridden when
19736# loading this file, other *unset* `ac_cv_foo' will be assigned the
19737# following values.
19738
19739_ACEOF
19740
19741# The following way of writing the cache mishandles newlines in values,
19742# but we know of no workaround that is simple, portable, and efficient.
19743# So, we kill variables containing newlines.
19744# Ultrix sh set writes to stderr and can't be redirected directly,
19745# and sets the high bit in the cache file unless we assign to the vars.
19746(
19747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19748 eval ac_val=\$$ac_var
19749 case $ac_val in #(
19750 *${as_nl}*)
19751 case $ac_var in #(
19752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19753$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19754 esac
19755 case $ac_var in #(
19756 _ | IFS | as_nl) ;; #(
19757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19758 *) { eval $ac_var=; unset $ac_var;} ;;
19759 esac ;;
19760 esac
19761 done
19762
19763 (set) 2>&1 |
19764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19765 *${as_nl}ac_space=\ *)
19766 # `set' does not quote correctly, so add quotes: double-quote
19767 # substitution turns \\\\ into \\, and sed turns \\ into \.
19768 sed -n \
19769 "s/'/'\\\\''/g;
19770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19771 ;; #(
19772 *)
19773 # `set' quotes correctly as required by POSIX, so do not add quotes.
19774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19775 ;;
19776 esac |
19777 sort
19778) |
19779 sed '
19780 /^ac_cv_env_/b end
19781 t clear
19782 :clear
19783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19784 t end
19785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19786 :end' >>confcache
19787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19788 if test -w "$cache_file"; then
19789 if test "x$cache_file" != "x/dev/null"; then
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19791$as_echo "$as_me: updating cache $cache_file" >&6;}
19792 if test ! -f "$cache_file" || test -h "$cache_file"; then
19793 cat confcache >"$cache_file"
19794 else
19795 case $cache_file in #(
19796 */* | ?:*)
19797 mv -f confcache "$cache_file"$$ &&
19798 mv -f "$cache_file"$$ "$cache_file" ;; #(
19799 *)
19800 mv -f confcache "$cache_file" ;;
19801 esac
19802 fi
19803 fi
19804 else
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19806$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19807 fi
19808fi
19809rm -f confcache
19810
19811test "x$prefix" = xNONE && prefix=$ac_default_prefix
19812# Let make expand exec_prefix.
19813test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19814
19815DEFS=-DHAVE_CONFIG_H
19816
19817ac_libobjs=
19818ac_ltlibobjs=
19819for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19820 # 1. Remove the extension, and $U if already installed.
19821 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19822 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19823 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19824 # will be set to the directory where LIBOBJS objects are built.
19825 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19826 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19827done
19828LIBOBJS=$ac_libobjs
19829
19830LTLIBOBJS=$ac_ltlibobjs
19831
19832
19833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19834$as_echo_n "checking that generated files are newer than configure... " >&6; }
19835 if test -n "$am_sleep_pid"; then
19836 # Hide warnings about reused PIDs.
19837 wait $am_sleep_pid 2>/dev/null
19838 fi
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19840$as_echo "done" >&6; }
19841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19842 as_fn_error $? "conditional \"AMDEP\" was never defined.
19843Usually this means the macro was only invoked conditionally." "$LINENO" 5
19844fi
19845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19846 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19847Usually this means the macro was only invoked conditionally." "$LINENO" 5
19848fi
19849if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19850 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19851Usually this means the macro was only invoked conditionally." "$LINENO" 5
19852fi
19853 if test -n "$EXEEXT"; then
19854 am__EXEEXT_TRUE=
19855 am__EXEEXT_FALSE='#'
19856else
19857 am__EXEEXT_TRUE='#'
19858 am__EXEEXT_FALSE=
19859fi
19860
19861
19862: "${CONFIG_STATUS=./config.status}"
19863ac_write_fail=0
19864ac_clean_files_save=$ac_clean_files
19865ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19866{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19867$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19868as_write_fail=0
19869cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19870#! $SHELL
19871# Generated by $as_me.
19872# Run this file to recreate the current configuration.
19873# Compiler output produced by configure, useful for debugging
19874# configure, is in config.log if it exists.
19875
19876debug=false
19877ac_cs_recheck=false
19878ac_cs_silent=false
19879
19880SHELL=\${CONFIG_SHELL-$SHELL}
19881export SHELL
19882_ASEOF
19883cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19884## -------------------- ##
19885## M4sh Initialization. ##
19886## -------------------- ##
19887
19888# Be more Bourne compatible
19889DUALCASE=1; export DUALCASE # for MKS sh
19890if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19891 emulate sh
19892 NULLCMD=:
19893 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19894 # is contrary to our usage. Disable this feature.
19895 alias -g '${1+"$@"}'='"$@"'
19896 setopt NO_GLOB_SUBST
19897else
19898 case `(set -o) 2>/dev/null` in #(
19899 *posix*) :
19900 set -o posix ;; #(
19901 *) :
19902 ;;
19903esac
19904fi
19905
19906
19907as_nl='
19908'
19909export as_nl
19910# Printing a long string crashes Solaris 7 /usr/bin/printf.
19911as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19914# Prefer a ksh shell builtin over an external printf program on Solaris,
19915# but without wasting forks for bash or zsh.
19916if test -z "$BASH_VERSION$ZSH_VERSION" \
19917 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19918 as_echo='print -r --'
19919 as_echo_n='print -rn --'
19920elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19921 as_echo='printf %s\n'
19922 as_echo_n='printf %s'
19923else
19924 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19925 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19926 as_echo_n='/usr/ucb/echo -n'
19927 else
19928 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19929 as_echo_n_body='eval
19930 arg=$1;
19931 case $arg in #(
19932 *"$as_nl"*)
19933 expr "X$arg" : "X\\(.*\\)$as_nl";
19934 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19935 esac;
19936 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19937 '
19938 export as_echo_n_body
19939 as_echo_n='sh -c $as_echo_n_body as_echo'
19940 fi
19941 export as_echo_body
19942 as_echo='sh -c $as_echo_body as_echo'
19943fi
19944
19945# The user is always right.
19946if test "${PATH_SEPARATOR+set}" != set; then
19947 PATH_SEPARATOR=:
19948 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19949 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19950 PATH_SEPARATOR=';'
19951 }
19952fi
19953
19954
19955# IFS
19956# We need space, tab and new line, in precisely that order. Quoting is
19957# there to prevent editors from complaining about space-tab.
19958# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19959# splitting by setting IFS to empty value.)
19960IFS=" "" $as_nl"
19961
19962# Find who we are. Look in the path if we contain no directory separator.
19963as_myself=
19964case $0 in #((
19965 *[\\/]* ) as_myself=$0 ;;
19966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19967for as_dir in $PATH
19968do
19969 IFS=$as_save_IFS
19970 test -z "$as_dir" && as_dir=.
19971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19972 done
19973IFS=$as_save_IFS
19974
19975 ;;
19976esac
19977# We did not find ourselves, most probably we were run as `sh COMMAND'
19978# in which case we are not to be found in the path.
19979if test "x$as_myself" = x; then
19980 as_myself=$0
19981fi
19982if test ! -f "$as_myself"; then
19983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19984 exit 1
19985fi
19986
19987# Unset variables that we do not need and which cause bugs (e.g. in
19988# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19989# suppresses any "Segmentation fault" message there. '((' could
19990# trigger a bug in pdksh 5.2.14.
19991for as_var in BASH_ENV ENV MAIL MAILPATH
19992do eval test x\${$as_var+set} = xset \
19993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19994done
19995PS1='$ '
19996PS2='> '
19997PS4='+ '
19998
19999# NLS nuisances.
20000LC_ALL=C
20001export LC_ALL
20002LANGUAGE=C
20003export LANGUAGE
20004
20005# CDPATH.
20006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20007
20008
20009# as_fn_error STATUS ERROR [LINENO LOG_FD]
20010# ----------------------------------------
20011# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20012# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20013# script with STATUS, using 1 if that was 0.
20014as_fn_error ()
20015{
20016 as_status=$1; test $as_status -eq 0 && as_status=1
20017 if test "$4"; then
20018 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20020 fi
20021 $as_echo "$as_me: error: $2" >&2
20022 as_fn_exit $as_status
20023} # as_fn_error
20024
20025
20026# as_fn_set_status STATUS
20027# -----------------------
20028# Set $? to STATUS, without forking.
20029as_fn_set_status ()
20030{
20031 return $1
20032} # as_fn_set_status
20033
20034# as_fn_exit STATUS
20035# -----------------
20036# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20037as_fn_exit ()
20038{
20039 set +e
20040 as_fn_set_status $1
20041 exit $1
20042} # as_fn_exit
20043
20044# as_fn_unset VAR
20045# ---------------
20046# Portably unset VAR.
20047as_fn_unset ()
20048{
20049 { eval $1=; unset $1;}
20050}
20051as_unset=as_fn_unset
20052# as_fn_append VAR VALUE
20053# ----------------------
20054# Append the text in VALUE to the end of the definition contained in VAR. Take
20055# advantage of any shell optimizations that allow amortized linear growth over
20056# repeated appends, instead of the typical quadratic growth present in naive
20057# implementations.
20058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20059 eval 'as_fn_append ()
20060 {
20061 eval $1+=\$2
20062 }'
20063else
20064 as_fn_append ()
20065 {
20066 eval $1=\$$1\$2
20067 }
20068fi # as_fn_append
20069
20070# as_fn_arith ARG...
20071# ------------------
20072# Perform arithmetic evaluation on the ARGs, and store the result in the
20073# global $as_val. Take advantage of shells that can avoid forks. The arguments
20074# must be portable across $(()) and expr.
20075if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20076 eval 'as_fn_arith ()
20077 {
20078 as_val=$(( $* ))
20079 }'
20080else
20081 as_fn_arith ()
20082 {
20083 as_val=`expr "$@" || test $? -eq 1`
20084 }
20085fi # as_fn_arith
20086
20087
20088if expr a : '\(a\)' >/dev/null 2>&1 &&
20089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20090 as_expr=expr
20091else
20092 as_expr=false
20093fi
20094
20095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20096 as_basename=basename
20097else
20098 as_basename=false
20099fi
20100
20101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20102 as_dirname=dirname
20103else
20104 as_dirname=false
20105fi
20106
20107as_me=`$as_basename -- "$0" ||
20108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20109 X"$0" : 'X\(//\)$' \| \
20110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20111$as_echo X/"$0" |
20112 sed '/^.*\/\([^/][^/]*\)\/*$/{
20113 s//\1/
20114 q
20115 }
20116 /^X\/\(\/\/\)$/{
20117 s//\1/
20118 q
20119 }
20120 /^X\/\(\/\).*/{
20121 s//\1/
20122 q
20123 }
20124 s/.*/./; q'`
20125
20126# Avoid depending upon Character Ranges.
20127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20130as_cr_digits='0123456789'
20131as_cr_alnum=$as_cr_Letters$as_cr_digits
20132
20133ECHO_C= ECHO_N= ECHO_T=
20134case `echo -n x` in #(((((
20135-n*)
20136 case `echo 'xy\c'` in
20137 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20138 xy) ECHO_C='\c';;
20139 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20140 ECHO_T=' ';;
20141 esac;;
20142*)
20143 ECHO_N='-n';;
20144esac
20145
20146rm -f conf$$ conf$$.exe conf$$.file
20147if test -d conf$$.dir; then
20148 rm -f conf$$.dir/conf$$.file
20149else
20150 rm -f conf$$.dir
20151 mkdir conf$$.dir 2>/dev/null
20152fi
20153if (echo >conf$$.file) 2>/dev/null; then
20154 if ln -s conf$$.file conf$$ 2>/dev/null; then
20155 as_ln_s='ln -s'
20156 # ... but there are two gotchas:
20157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20159 # In both cases, we have to default to `cp -pR'.
20160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20161 as_ln_s='cp -pR'
20162 elif ln conf$$.file conf$$ 2>/dev/null; then
20163 as_ln_s=ln
20164 else
20165 as_ln_s='cp -pR'
20166 fi
20167else
20168 as_ln_s='cp -pR'
20169fi
20170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20171rmdir conf$$.dir 2>/dev/null
20172
20173
20174# as_fn_mkdir_p
20175# -------------
20176# Create "$as_dir" as a directory, including parents if necessary.
20177as_fn_mkdir_p ()
20178{
20179
20180 case $as_dir in #(
20181 -*) as_dir=./$as_dir;;
20182 esac
20183 test -d "$as_dir" || eval $as_mkdir_p || {
20184 as_dirs=
20185 while :; do
20186 case $as_dir in #(
20187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20188 *) as_qdir=$as_dir;;
20189 esac
20190 as_dirs="'$as_qdir' $as_dirs"
20191 as_dir=`$as_dirname -- "$as_dir" ||
20192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20193 X"$as_dir" : 'X\(//\)[^/]' \| \
20194 X"$as_dir" : 'X\(//\)$' \| \
20195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20196$as_echo X"$as_dir" |
20197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20198 s//\1/
20199 q
20200 }
20201 /^X\(\/\/\)[^/].*/{
20202 s//\1/
20203 q
20204 }
20205 /^X\(\/\/\)$/{
20206 s//\1/
20207 q
20208 }
20209 /^X\(\/\).*/{
20210 s//\1/
20211 q
20212 }
20213 s/.*/./; q'`
20214 test -d "$as_dir" && break
20215 done
20216 test -z "$as_dirs" || eval "mkdir $as_dirs"
20217 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20218
20219
20220} # as_fn_mkdir_p
20221if mkdir -p . 2>/dev/null; then
20222 as_mkdir_p='mkdir -p "$as_dir"'
20223else
20224 test -d ./-p && rmdir ./-p
20225 as_mkdir_p=false
20226fi
20227
20228
20229# as_fn_executable_p FILE
20230# -----------------------
20231# Test if FILE is an executable regular file.
20232as_fn_executable_p ()
20233{
20234 test -f "$1" && test -x "$1"
20235} # as_fn_executable_p
20236as_test_x='test -x'
20237as_executable_p=as_fn_executable_p
20238
20239# Sed expression to map a string onto a valid CPP name.
20240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20241
20242# Sed expression to map a string onto a valid variable name.
20243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20244
20245
20246exec 6>&1
20247## ----------------------------------- ##
20248## Main body of $CONFIG_STATUS script. ##
20249## ----------------------------------- ##
20250_ASEOF
20251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20252
20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254# Save the log message, to keep $0 and so on meaningful, and to
20255# report actual input values of CONFIG_FILES etc. instead of their
20256# values after options handling.
20257ac_log="
20258This file was extended by ucommon $as_me 6.0.7, which was
20259generated by GNU Autoconf 2.69. Invocation command line was
20260
20261 CONFIG_FILES = $CONFIG_FILES
20262 CONFIG_HEADERS = $CONFIG_HEADERS
20263 CONFIG_LINKS = $CONFIG_LINKS
20264 CONFIG_COMMANDS = $CONFIG_COMMANDS
20265 $ $0 $@
20266
20267on `(hostname || uname -n) 2>/dev/null | sed 1q`
20268"
20269
20270_ACEOF
20271
20272case $ac_config_files in *"
20273"*) set x $ac_config_files; shift; ac_config_files=$*;;
20274esac
20275
20276case $ac_config_headers in *"
20277"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20278esac
20279
20280
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282# Files that config.status was made for.
20283config_files="$ac_config_files"
20284config_headers="$ac_config_headers"
20285config_commands="$ac_config_commands"
20286
20287_ACEOF
20288
20289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20290ac_cs_usage="\
20291\`$as_me' instantiates files and other configuration actions
20292from templates according to the current configuration. Unless the files
20293and actions are specified as TAGs, all are instantiated by default.
20294
20295Usage: $0 [OPTION]... [TAG]...
20296
20297 -h, --help print this help, then exit
20298 -V, --version print version number and configuration settings, then exit
20299 --config print configuration, then exit
20300 -q, --quiet, --silent
20301 do not print progress messages
20302 -d, --debug don't remove temporary files
20303 --recheck update $as_me by reconfiguring in the same conditions
20304 --file=FILE[:TEMPLATE]
20305 instantiate the configuration file FILE
20306 --header=FILE[:TEMPLATE]
20307 instantiate the configuration header FILE
20308
20309Configuration files:
20310$config_files
20311
20312Configuration headers:
20313$config_headers
20314
20315Configuration commands:
20316$config_commands
20317
20318Report bugs to the package provider."
20319
20320_ACEOF
20321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20322ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20323ac_cs_version="\\
20324ucommon config.status 6.0.7
20325configured by $0, generated by GNU Autoconf 2.69,
20326 with options \\"\$ac_cs_config\\"
20327
20328Copyright (C) 2012 Free Software Foundation, Inc.
20329This config.status script is free software; the Free Software Foundation
20330gives unlimited permission to copy, distribute and modify it."
20331
20332ac_pwd='$ac_pwd'
20333srcdir='$srcdir'
20334INSTALL='$INSTALL'
20335MKDIR_P='$MKDIR_P'
20336AWK='$AWK'
20337test -n "\$AWK" || AWK=awk
20338_ACEOF
20339
20340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20341# The default lists apply if the user does not specify any file.
20342ac_need_defaults=:
20343while test $# != 0
20344do
20345 case $1 in
20346 --*=?*)
20347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20349 ac_shift=:
20350 ;;
20351 --*=)
20352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20353 ac_optarg=
20354 ac_shift=:
20355 ;;
20356 *)
20357 ac_option=$1
20358 ac_optarg=$2
20359 ac_shift=shift
20360 ;;
20361 esac
20362
20363 case $ac_option in
20364 # Handling of the options.
20365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20366 ac_cs_recheck=: ;;
20367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20368 $as_echo "$ac_cs_version"; exit ;;
20369 --config | --confi | --conf | --con | --co | --c )
20370 $as_echo "$ac_cs_config"; exit ;;
20371 --debug | --debu | --deb | --de | --d | -d )
20372 debug=: ;;
20373 --file | --fil | --fi | --f )
20374 $ac_shift
20375 case $ac_optarg in
20376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20377 '') as_fn_error $? "missing file argument" ;;
20378 esac
20379 as_fn_append CONFIG_FILES " '$ac_optarg'"
20380 ac_need_defaults=false;;
20381 --header | --heade | --head | --hea )
20382 $ac_shift
20383 case $ac_optarg in
20384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20385 esac
20386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20387 ac_need_defaults=false;;
20388 --he | --h)
20389 # Conflict between --help and --header
20390 as_fn_error $? "ambiguous option: \`$1'
20391Try \`$0 --help' for more information.";;
20392 --help | --hel | -h )
20393 $as_echo "$ac_cs_usage"; exit ;;
20394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20396 ac_cs_silent=: ;;
20397
20398 # This is an error.
20399 -*) as_fn_error $? "unrecognized option: \`$1'
20400Try \`$0 --help' for more information." ;;
20401
20402 *) as_fn_append ac_config_targets " $1"
20403 ac_need_defaults=false ;;
20404
20405 esac
20406 shift
20407done
20408
20409ac_configure_extra_args=
20410
20411if $ac_cs_silent; then
20412 exec 6>/dev/null
20413 ac_configure_extra_args="$ac_configure_extra_args --silent"
20414fi
20415
20416_ACEOF
20417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20418if \$ac_cs_recheck; then
20419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20420 shift
20421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20422 CONFIG_SHELL='$SHELL'
20423 export CONFIG_SHELL
20424 exec "\$@"
20425fi
20426
20427_ACEOF
20428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20429exec 5>>config.log
20430{
20431 echo
20432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20433## Running $as_me. ##
20434_ASBOX
20435 $as_echo "$ac_log"
20436} >&5
20437
20438_ACEOF
20439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20440#
20441# INIT-COMMANDS
20442#
20443
20444
20445# The HP-UX ksh and POSIX shell print the target directory to stdout
20446# if CDPATH is set.
20447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20448
20449sed_quote_subst='$sed_quote_subst'
20450double_quote_subst='$double_quote_subst'
20451delay_variable_subst='$delay_variable_subst'
20452AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20453DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20454OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20455macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20456macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20457enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20458enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20459pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20460enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20461SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20462ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20463PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20464host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20465host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20466host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20467build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20468build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20469build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20470SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20471Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20472GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20473EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20474FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20475LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20476NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20477LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20478max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20479ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20480exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20481lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20482lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20483lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20484lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20485lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20486reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20487reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20488deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20489file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20490file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20491want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20492sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20493AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20494AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20495archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20496STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20497RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20498old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20499old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20500old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20501lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20502CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20503CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20504compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20505GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20506lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20507lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20508lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20509lt_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"`'
20510nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20511lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20512objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20513MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20514lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20516lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20517lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20518lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20519need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20520MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20521DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20522NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20523LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20524OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20525OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20526libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20527shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20528extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20529archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20530enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20531export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20532whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20533compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20534old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20535old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20536archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20537archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20538module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20539module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20540with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20541allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20542no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20543hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20544hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20545hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20546hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20547hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20548hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20549hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20550inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20551link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20557postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20558file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20559variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20560need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20561need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20562version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20563runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20564shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20565shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20566libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20567library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20568soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20569install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20570postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20571postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20572finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20573finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20574hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20575sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20576sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20577hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20578enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20579enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20580enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20581old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20582striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20583compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20584predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20585postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20586predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20587postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20588compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20589LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20590reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20591reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20592old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20593compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20594GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20595lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20596lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20597lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20598lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20599lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20600archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20601enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20602export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20603whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20604compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20605old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20606old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20607archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20608archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20609module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20610module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20611with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20612allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20613no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20614hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20615hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20616hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20617hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20618hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20619hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20620hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20621inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20622link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20623always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20624export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20625exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20626include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20627prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20628postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20629file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20630hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20631compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20632predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20633postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20634predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20635postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20636compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20637
20638LTCC='$LTCC'
20639LTCFLAGS='$LTCFLAGS'
20640compiler='$compiler_DEFAULT'
20641
20642# A function that is used when there is no print builtin or printf.
20643func_fallback_echo ()
20644{
20645 eval 'cat <<_LTECHO_EOF
20646\$1
20647_LTECHO_EOF'
20648}
20649
20650# Quote evaled strings.
20651for var in AS \
20652DLLTOOL \
20653OBJDUMP \
20654SHELL \
20655ECHO \
20656PATH_SEPARATOR \
20657SED \
20658GREP \
20659EGREP \
20660FGREP \
20661LD \
20662NM \
20663LN_S \
20664lt_SP2NL \
20665lt_NL2SP \
20666reload_flag \
20667deplibs_check_method \
20668file_magic_cmd \
20669file_magic_glob \
20670want_nocaseglob \
20671sharedlib_from_linklib_cmd \
20672AR \
20673AR_FLAGS \
20674archiver_list_spec \
20675STRIP \
20676RANLIB \
20677CC \
20678CFLAGS \
20679compiler \
20680lt_cv_sys_global_symbol_pipe \
20681lt_cv_sys_global_symbol_to_cdecl \
20682lt_cv_sys_global_symbol_to_c_name_address \
20683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20684nm_file_list_spec \
20685lt_prog_compiler_no_builtin_flag \
20686lt_prog_compiler_pic \
20687lt_prog_compiler_wl \
20688lt_prog_compiler_static \
20689lt_cv_prog_compiler_c_o \
20690need_locks \
20691MANIFEST_TOOL \
20692DSYMUTIL \
20693NMEDIT \
20694LIPO \
20695OTOOL \
20696OTOOL64 \
20697shrext_cmds \
20698export_dynamic_flag_spec \
20699whole_archive_flag_spec \
20700compiler_needs_object \
20701with_gnu_ld \
20702allow_undefined_flag \
20703no_undefined_flag \
20704hardcode_libdir_flag_spec \
20705hardcode_libdir_separator \
20706exclude_expsyms \
20707include_expsyms \
20708file_list_spec \
20709variables_saved_for_relink \
20710libname_spec \
20711library_names_spec \
20712soname_spec \
20713install_override_mode \
20714finish_eval \
20715old_striplib \
20716striplib \
20717compiler_lib_search_dirs \
20718predep_objects \
20719postdep_objects \
20720predeps \
20721postdeps \
20722compiler_lib_search_path \
20723LD_CXX \
20724reload_flag_CXX \
20725compiler_CXX \
20726lt_prog_compiler_no_builtin_flag_CXX \
20727lt_prog_compiler_pic_CXX \
20728lt_prog_compiler_wl_CXX \
20729lt_prog_compiler_static_CXX \
20730lt_cv_prog_compiler_c_o_CXX \
20731export_dynamic_flag_spec_CXX \
20732whole_archive_flag_spec_CXX \
20733compiler_needs_object_CXX \
20734with_gnu_ld_CXX \
20735allow_undefined_flag_CXX \
20736no_undefined_flag_CXX \
20737hardcode_libdir_flag_spec_CXX \
20738hardcode_libdir_separator_CXX \
20739exclude_expsyms_CXX \
20740include_expsyms_CXX \
20741file_list_spec_CXX \
20742compiler_lib_search_dirs_CXX \
20743predep_objects_CXX \
20744postdep_objects_CXX \
20745predeps_CXX \
20746postdeps_CXX \
20747compiler_lib_search_path_CXX; do
20748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20749 *[\\\\\\\`\\"\\\$]*)
20750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20751 ;;
20752 *)
20753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20754 ;;
20755 esac
20756done
20757
20758# Double-quote double-evaled strings.
20759for var in reload_cmds \
20760old_postinstall_cmds \
20761old_postuninstall_cmds \
20762old_archive_cmds \
20763extract_expsyms_cmds \
20764old_archive_from_new_cmds \
20765old_archive_from_expsyms_cmds \
20766archive_cmds \
20767archive_expsym_cmds \
20768module_cmds \
20769module_expsym_cmds \
20770export_symbols_cmds \
20771prelink_cmds \
20772postlink_cmds \
20773postinstall_cmds \
20774postuninstall_cmds \
20775finish_cmds \
20776sys_lib_search_path_spec \
20777sys_lib_dlsearch_path_spec \
20778reload_cmds_CXX \
20779old_archive_cmds_CXX \
20780old_archive_from_new_cmds_CXX \
20781old_archive_from_expsyms_cmds_CXX \
20782archive_cmds_CXX \
20783archive_expsym_cmds_CXX \
20784module_cmds_CXX \
20785module_expsym_cmds_CXX \
20786export_symbols_cmds_CXX \
20787prelink_cmds_CXX \
20788postlink_cmds_CXX; do
20789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20790 *[\\\\\\\`\\"\\\$]*)
20791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20792 ;;
20793 *)
20794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20795 ;;
20796 esac
20797done
20798
20799ac_aux_dir='$ac_aux_dir'
20800xsi_shell='$xsi_shell'
20801lt_shell_append='$lt_shell_append'
20802
20803# See if we are running on zsh, and set the options which allow our
20804# commands through without removal of \ escapes INIT.
20805if test -n "\${ZSH_VERSION+set}" ; then
20806 setopt NO_GLOB_SUBST
20807fi
20808
20809
20810 PACKAGE='$PACKAGE'
20811 VERSION='$VERSION'
20812 TIMESTAMP='$TIMESTAMP'
20813 RM='$RM'
20814 ofile='$ofile'
20815
20816
20817
20818
20819
20820AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20821
20822_ACEOF
20823
20824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20825
20826# Handling of arguments.
20827for ac_config_target in $ac_config_targets
20828do
20829 case $ac_config_target in
20830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20832 "ucommon-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ucommon-config.h" ;;
20833 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20834 "corelib/Makefile") CONFIG_FILES="$CONFIG_FILES corelib/Makefile" ;;
20835 "commoncpp/Makefile") CONFIG_FILES="$CONFIG_FILES commoncpp/Makefile" ;;
20836 "openssl/Makefile") CONFIG_FILES="$CONFIG_FILES openssl/Makefile" ;;
20837 "gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES gnutls/Makefile" ;;
20838 "nossl/Makefile") CONFIG_FILES="$CONFIG_FILES nossl/Makefile" ;;
20839 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20840 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
20841 "inc/ucommon/Makefile") CONFIG_FILES="$CONFIG_FILES inc/ucommon/Makefile" ;;
20842 "inc/commoncpp/Makefile") CONFIG_FILES="$CONFIG_FILES inc/commoncpp/Makefile" ;;
20843 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20844 "directive") CONFIG_FILES="$CONFIG_FILES directive" ;;
20845 "commoncpp.pc") CONFIG_FILES="$CONFIG_FILES commoncpp.pc" ;;
20846 "ucommon.pc") CONFIG_FILES="$CONFIG_FILES ucommon.pc" ;;
20847 "ucommon.spec") CONFIG_FILES="$CONFIG_FILES ucommon.spec" ;;
20848 "ucommon-config") CONFIG_FILES="$CONFIG_FILES ucommon-config" ;;
20849 "commoncpp-config") CONFIG_FILES="$CONFIG_FILES commoncpp-config" ;;
20850
20851 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20852 esac
20853done
20854
20855
20856# If the user did not use the arguments to specify the items to instantiate,
20857# then the envvar interface is used. Set only those that are not.
20858# We use the long form for the default assignment because of an extremely
20859# bizarre bug on SunOS 4.1.3.
20860if $ac_need_defaults; then
20861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20864fi
20865
20866# Have a temporary directory for convenience. Make it in the build tree
20867# simply because there is no reason against having it here, and in addition,
20868# creating and moving files from /tmp can sometimes cause problems.
20869# Hook for its removal unless debugging.
20870# Note that there is a small window in which the directory will not be cleaned:
20871# after its creation but before its name has been assigned to `$tmp'.
20872$debug ||
20873{
20874 tmp= ac_tmp=
20875 trap 'exit_status=$?
20876 : "${ac_tmp:=$tmp}"
20877 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20878' 0
20879 trap 'as_fn_exit 1' 1 2 13 15
20880}
20881# Create a (secure) tmp directory for tmp files.
20882
20883{
20884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20885 test -d "$tmp"
20886} ||
20887{
20888 tmp=./conf$$-$RANDOM
20889 (umask 077 && mkdir "$tmp")
20890} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20891ac_tmp=$tmp
20892
20893# Set up the scripts for CONFIG_FILES section.
20894# No need to generate them if there are no CONFIG_FILES.
20895# This happens for instance with `./config.status config.h'.
20896if test -n "$CONFIG_FILES"; then
20897
20898
20899ac_cr=`echo X | tr X '\015'`
20900# On cygwin, bash can eat \r inside `` if the user requested igncr.
20901# But we know of no other shell where ac_cr would be empty at this
20902# point, so we can use a bashism as a fallback.
20903if test "x$ac_cr" = x; then
20904 eval ac_cr=\$\'\\r\'
20905fi
20906ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20907if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20908 ac_cs_awk_cr='\\r'
20909else
20910 ac_cs_awk_cr=$ac_cr
20911fi
20912
20913echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20914_ACEOF
20915
20916
20917{
20918 echo "cat >conf$$subs.awk <<_ACEOF" &&
20919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20920 echo "_ACEOF"
20921} >conf$$subs.sh ||
20922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20923ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20924ac_delim='%!_!# '
20925for ac_last_try in false false false false false :; do
20926 . ./conf$$subs.sh ||
20927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20928
20929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20930 if test $ac_delim_n = $ac_delim_num; then
20931 break
20932 elif $ac_last_try; then
20933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20934 else
20935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20936 fi
20937done
20938rm -f conf$$subs.sh
20939
20940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20941cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20942_ACEOF
20943sed -n '
20944h
20945s/^/S["/; s/!.*/"]=/
20946p
20947g
20948s/^[^!]*!//
20949:repl
20950t repl
20951s/'"$ac_delim"'$//
20952t delim
20953:nl
20954h
20955s/\(.\{148\}\)..*/\1/
20956t more1
20957s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20958p
20959n
20960b repl
20961:more1
20962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20963p
20964g
20965s/.\{148\}//
20966t nl
20967:delim
20968h
20969s/\(.\{148\}\)..*/\1/
20970t more2
20971s/["\\]/\\&/g; s/^/"/; s/$/"/
20972p
20973b
20974:more2
20975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20976p
20977g
20978s/.\{148\}//
20979t delim
20980' <conf$$subs.awk | sed '
20981/^[^""]/{
20982 N
20983 s/\n//
20984}
20985' >>$CONFIG_STATUS || ac_write_fail=1
20986rm -f conf$$subs.awk
20987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20988_ACAWK
20989cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20990 for (key in S) S_is_set[key] = 1
20991 FS = ""
20992
20993}
20994{
20995 line = $ 0
20996 nfields = split(line, field, "@")
20997 substed = 0
20998 len = length(field[1])
20999 for (i = 2; i < nfields; i++) {
21000 key = field[i]
21001 keylen = length(key)
21002 if (S_is_set[key]) {
21003 value = S[key]
21004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21005 len += length(value) + length(field[++i])
21006 substed = 1
21007 } else
21008 len += 1 + keylen
21009 }
21010
21011 print line
21012}
21013
21014_ACAWK
21015_ACEOF
21016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21017if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21019else
21020 cat
21021fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21022 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21023_ACEOF
21024
21025# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21026# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21027# trailing colons and then remove the whole line if VPATH becomes empty
21028# (actually we leave an empty line to preserve line numbers).
21029if test "x$srcdir" = x.; then
21030 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21031h
21032s///
21033s/^/:/
21034s/[ ]*$/:/
21035s/:\$(srcdir):/:/g
21036s/:\${srcdir}:/:/g
21037s/:@srcdir@:/:/g
21038s/^:*//
21039s/:*$//
21040x
21041s/\(=[ ]*\).*/\1/
21042G
21043s/\n//
21044s/^[^=]*=[ ]*$//
21045}'
21046fi
21047
21048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21049fi # test -n "$CONFIG_FILES"
21050
21051# Set up the scripts for CONFIG_HEADERS section.
21052# No need to generate them if there are no CONFIG_HEADERS.
21053# This happens for instance with `./config.status Makefile'.
21054if test -n "$CONFIG_HEADERS"; then
21055cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21056BEGIN {
21057_ACEOF
21058
21059# Transform confdefs.h into an awk script `defines.awk', embedded as
21060# here-document in config.status, that substitutes the proper values into
21061# config.h.in to produce config.h.
21062
21063# Create a delimiter string that does not exist in confdefs.h, to ease
21064# handling of long lines.
21065ac_delim='%!_!# '
21066for ac_last_try in false false :; do
21067 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21068 if test -z "$ac_tt"; then
21069 break
21070 elif $ac_last_try; then
21071 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21072 else
21073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21074 fi
21075done
21076
21077# For the awk script, D is an array of macro values keyed by name,
21078# likewise P contains macro parameters if any. Preserve backslash
21079# newline sequences.
21080
21081ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21082sed -n '
21083s/.\{148\}/&'"$ac_delim"'/g
21084t rset
21085:rset
21086s/^[ ]*#[ ]*define[ ][ ]*/ /
21087t def
21088d
21089:def
21090s/\\$//
21091t bsnl
21092s/["\\]/\\&/g
21093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21094D["\1"]=" \3"/p
21095s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21096d
21097:bsnl
21098s/["\\]/\\&/g
21099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21100D["\1"]=" \3\\\\\\n"\\/p
21101t cont
21102s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21103t cont
21104d
21105:cont
21106n
21107s/.\{148\}/&'"$ac_delim"'/g
21108t clear
21109:clear
21110s/\\$//
21111t bsnlc
21112s/["\\]/\\&/g; s/^/"/; s/$/"/p
21113d
21114:bsnlc
21115s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21116b cont
21117' <confdefs.h | sed '
21118s/'"$ac_delim"'/"\\\
21119"/g' >>$CONFIG_STATUS || ac_write_fail=1
21120
21121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21122 for (key in D) D_is_set[key] = 1
21123 FS = ""
21124}
21125/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21126 line = \$ 0
21127 split(line, arg, " ")
21128 if (arg[1] == "#") {
21129 defundef = arg[2]
21130 mac1 = arg[3]
21131 } else {
21132 defundef = substr(arg[1], 2)
21133 mac1 = arg[2]
21134 }
21135 split(mac1, mac2, "(") #)
21136 macro = mac2[1]
21137 prefix = substr(line, 1, index(line, defundef) - 1)
21138 if (D_is_set[macro]) {
21139 # Preserve the white space surrounding the "#".
21140 print prefix "define", macro P[macro] D[macro]
21141 next
21142 } else {
21143 # Replace #undef with comments. This is necessary, for example,
21144 # in the case of _POSIX_SOURCE, which is predefined and required
21145 # on some systems where configure will not decide to define it.
21146 if (defundef == "undef") {
21147 print "/*", prefix defundef, macro, "*/"
21148 next
21149 }
21150 }
21151}
21152{ print }
21153_ACAWK
21154_ACEOF
21155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21156 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21157fi # test -n "$CONFIG_HEADERS"
21158
21159
21160eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21161shift
21162for ac_tag
21163do
21164 case $ac_tag in
21165 :[FHLC]) ac_mode=$ac_tag; continue;;
21166 esac
21167 case $ac_mode$ac_tag in
21168 :[FHL]*:*);;
21169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21170 :[FH]-) ac_tag=-:-;;
21171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21172 esac
21173 ac_save_IFS=$IFS
21174 IFS=:
21175 set x $ac_tag
21176 IFS=$ac_save_IFS
21177 shift
21178 ac_file=$1
21179 shift
21180
21181 case $ac_mode in
21182 :L) ac_source=$1;;
21183 :[FH])
21184 ac_file_inputs=
21185 for ac_f
21186 do
21187 case $ac_f in
21188 -) ac_f="$ac_tmp/stdin";;
21189 *) # Look for the file first in the build tree, then in the source tree
21190 # (if the path is not absolute). The absolute path cannot be DOS-style,
21191 # because $ac_f cannot contain `:'.
21192 test -f "$ac_f" ||
21193 case $ac_f in
21194 [\\/$]*) false;;
21195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21196 esac ||
21197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21198 esac
21199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21200 as_fn_append ac_file_inputs " '$ac_f'"
21201 done
21202
21203 # Let's still pretend it is `configure' which instantiates (i.e., don't
21204 # use $as_me), people would be surprised to read:
21205 # /* config.h. Generated by config.status. */
21206 configure_input='Generated from '`
21207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21208 `' by configure.'
21209 if test x"$ac_file" != x-; then
21210 configure_input="$ac_file. $configure_input"
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21212$as_echo "$as_me: creating $ac_file" >&6;}
21213 fi
21214 # Neutralize special characters interpreted by sed in replacement strings.
21215 case $configure_input in #(
21216 *\&* | *\|* | *\\* )
21217 ac_sed_conf_input=`$as_echo "$configure_input" |
21218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21219 *) ac_sed_conf_input=$configure_input;;
21220 esac
21221
21222 case $ac_tag in
21223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21225 esac
21226 ;;
21227 esac
21228
21229 ac_dir=`$as_dirname -- "$ac_file" ||
21230$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21231 X"$ac_file" : 'X\(//\)[^/]' \| \
21232 X"$ac_file" : 'X\(//\)$' \| \
21233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21234$as_echo X"$ac_file" |
21235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21236 s//\1/
21237 q
21238 }
21239 /^X\(\/\/\)[^/].*/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\/\)$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\).*/{
21248 s//\1/
21249 q
21250 }
21251 s/.*/./; q'`
21252 as_dir="$ac_dir"; as_fn_mkdir_p
21253 ac_builddir=.
21254
21255case "$ac_dir" in
21256.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21257*)
21258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21259 # A ".." for each directory in $ac_dir_suffix.
21260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21261 case $ac_top_builddir_sub in
21262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21264 esac ;;
21265esac
21266ac_abs_top_builddir=$ac_pwd
21267ac_abs_builddir=$ac_pwd$ac_dir_suffix
21268# for backward compatibility:
21269ac_top_builddir=$ac_top_build_prefix
21270
21271case $srcdir in
21272 .) # We are building in place.
21273 ac_srcdir=.
21274 ac_top_srcdir=$ac_top_builddir_sub
21275 ac_abs_top_srcdir=$ac_pwd ;;
21276 [\\/]* | ?:[\\/]* ) # Absolute name.
21277 ac_srcdir=$srcdir$ac_dir_suffix;
21278 ac_top_srcdir=$srcdir
21279 ac_abs_top_srcdir=$srcdir ;;
21280 *) # Relative name.
21281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21282 ac_top_srcdir=$ac_top_build_prefix$srcdir
21283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21284esac
21285ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21286
21287
21288 case $ac_mode in
21289 :F)
21290 #
21291 # CONFIG_FILE
21292 #
21293
21294 case $INSTALL in
21295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21297 esac
21298 ac_MKDIR_P=$MKDIR_P
21299 case $MKDIR_P in
21300 [\\/$]* | ?:[\\/]* ) ;;
21301 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21302 esac
21303_ACEOF
21304
21305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21306# If the template does not know about datarootdir, expand it.
21307# FIXME: This hack should be removed a few years after 2.60.
21308ac_datarootdir_hack=; ac_datarootdir_seen=
21309ac_sed_dataroot='
21310/datarootdir/ {
21311 p
21312 q
21313}
21314/@datadir@/p
21315/@docdir@/p
21316/@infodir@/p
21317/@localedir@/p
21318/@mandir@/p'
21319case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21320*datarootdir*) ac_datarootdir_seen=yes;;
21321*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21323$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21324_ACEOF
21325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21326 ac_datarootdir_hack='
21327 s&@datadir@&$datadir&g
21328 s&@docdir@&$docdir&g
21329 s&@infodir@&$infodir&g
21330 s&@localedir@&$localedir&g
21331 s&@mandir@&$mandir&g
21332 s&\\\${datarootdir}&$datarootdir&g' ;;
21333esac
21334_ACEOF
21335
21336# Neutralize VPATH when `$srcdir' = `.'.
21337# Shell code in configure.ac might set extrasub.
21338# FIXME: do we really want to maintain this feature?
21339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21340ac_sed_extra="$ac_vpsub
21341$extrasub
21342_ACEOF
21343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21344:t
21345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21346s|@configure_input@|$ac_sed_conf_input|;t t
21347s&@top_builddir@&$ac_top_builddir_sub&;t t
21348s&@top_build_prefix@&$ac_top_build_prefix&;t t
21349s&@srcdir@&$ac_srcdir&;t t
21350s&@abs_srcdir@&$ac_abs_srcdir&;t t
21351s&@top_srcdir@&$ac_top_srcdir&;t t
21352s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21353s&@builddir@&$ac_builddir&;t t
21354s&@abs_builddir@&$ac_abs_builddir&;t t
21355s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21356s&@INSTALL@&$ac_INSTALL&;t t
21357s&@MKDIR_P@&$ac_MKDIR_P&;t t
21358$ac_datarootdir_hack
21359"
21360eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21361 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21362
21363test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21364 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21366 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21368which seems to be undefined. Please make sure it is defined" >&5
21369$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21370which seems to be undefined. Please make sure it is defined" >&2;}
21371
21372 rm -f "$ac_tmp/stdin"
21373 case $ac_file in
21374 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21375 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21376 esac \
21377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21378 ;;
21379 :H)
21380 #
21381 # CONFIG_HEADER
21382 #
21383 if test x"$ac_file" != x-; then
21384 {
21385 $as_echo "/* $configure_input */" \
21386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21387 } >"$ac_tmp/config.h" \
21388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21389 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21391$as_echo "$as_me: $ac_file is unchanged" >&6;}
21392 else
21393 rm -f "$ac_file"
21394 mv "$ac_tmp/config.h" "$ac_file" \
21395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21396 fi
21397 else
21398 $as_echo "/* $configure_input */" \
21399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21400 || as_fn_error $? "could not create -" "$LINENO" 5
21401 fi
21402# Compute "$ac_file"'s index in $config_headers.
21403_am_arg="$ac_file"
21404_am_stamp_count=1
21405for _am_header in $config_headers :; do
21406 case $_am_header in
21407 $_am_arg | $_am_arg:* )
21408 break ;;
21409 * )
21410 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21411 esac
21412done
21413echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21414$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21415 X"$_am_arg" : 'X\(//\)[^/]' \| \
21416 X"$_am_arg" : 'X\(//\)$' \| \
21417 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21418$as_echo X"$_am_arg" |
21419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21420 s//\1/
21421 q
21422 }
21423 /^X\(\/\/\)[^/].*/{
21424 s//\1/
21425 q
21426 }
21427 /^X\(\/\/\)$/{
21428 s//\1/
21429 q
21430 }
21431 /^X\(\/\).*/{
21432 s//\1/
21433 q
21434 }
21435 s/.*/./; q'`/stamp-h$_am_stamp_count
21436 ;;
21437
21438 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21439$as_echo "$as_me: executing $ac_file commands" >&6;}
21440 ;;
21441 esac
21442
21443
21444 case $ac_file$ac_mode in
21445 "libtool":C)
21446
21447 # See if we are running on zsh, and set the options which allow our
21448 # commands through without removal of \ escapes.
21449 if test -n "${ZSH_VERSION+set}" ; then
21450 setopt NO_GLOB_SUBST
21451 fi
21452
21453 cfgfile="${ofile}T"
21454 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21455 $RM "$cfgfile"
21456
21457 cat <<_LT_EOF >> "$cfgfile"
21458#! $SHELL
21459
21460# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21461# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21462# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21463# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21464#
21465# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21466# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21467# Foundation, Inc.
21468# Written by Gordon Matzigkeit, 1996
21469#
21470# This file is part of GNU Libtool.
21471#
21472# GNU Libtool is free software; you can redistribute it and/or
21473# modify it under the terms of the GNU General Public License as
21474# published by the Free Software Foundation; either version 2 of
21475# the License, or (at your option) any later version.
21476#
21477# As a special exception to the GNU General Public License,
21478# if you distribute this file as part of a program or library that
21479# is built using GNU Libtool, you may include this file under the
21480# same distribution terms that you use for the rest of that program.
21481#
21482# GNU Libtool is distributed in the hope that it will be useful,
21483# but WITHOUT ANY WARRANTY; without even the implied warranty of
21484# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21485# GNU General Public License for more details.
21486#
21487# You should have received a copy of the GNU General Public License
21488# along with GNU Libtool; see the file COPYING. If not, a copy
21489# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21490# obtained by writing to the Free Software Foundation, Inc.,
21491# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21492
21493
21494# The names of the tagged configurations supported by this script.
21495available_tags="CXX "
21496
21497# ### BEGIN LIBTOOL CONFIG
21498
21499# Assembler program.
21500AS=$lt_AS
21501
21502# DLL creation program.
21503DLLTOOL=$lt_DLLTOOL
21504
21505# Object dumper program.
21506OBJDUMP=$lt_OBJDUMP
21507
21508# Which release of libtool.m4 was used?
21509macro_version=$macro_version
21510macro_revision=$macro_revision
21511
21512# Whether or not to build shared libraries.
21513build_libtool_libs=$enable_shared
21514
21515# Whether or not to build static libraries.
21516build_old_libs=$enable_static
21517
21518# What type of objects to build.
21519pic_mode=$pic_mode
21520
21521# Whether or not to optimize for fast installation.
21522fast_install=$enable_fast_install
21523
21524# Shell to use when invoking shell scripts.
21525SHELL=$lt_SHELL
21526
21527# An echo program that protects backslashes.
21528ECHO=$lt_ECHO
21529
21530# The PATH separator for the build system.
21531PATH_SEPARATOR=$lt_PATH_SEPARATOR
21532
21533# The host system.
21534host_alias=$host_alias
21535host=$host
21536host_os=$host_os
21537
21538# The build system.
21539build_alias=$build_alias
21540build=$build
21541build_os=$build_os
21542
21543# A sed program that does not truncate output.
21544SED=$lt_SED
21545
21546# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21547Xsed="\$SED -e 1s/^X//"
21548
21549# A grep program that handles long lines.
21550GREP=$lt_GREP
21551
21552# An ERE matcher.
21553EGREP=$lt_EGREP
21554
21555# A literal string matcher.
21556FGREP=$lt_FGREP
21557
21558# A BSD- or MS-compatible name lister.
21559NM=$lt_NM
21560
21561# Whether we need soft or hard links.
21562LN_S=$lt_LN_S
21563
21564# What is the maximum length of a command?
21565max_cmd_len=$max_cmd_len
21566
21567# Object file suffix (normally "o").
21568objext=$ac_objext
21569
21570# Executable file suffix (normally "").
21571exeext=$exeext
21572
21573# whether the shell understands "unset".
21574lt_unset=$lt_unset
21575
21576# turn spaces into newlines.
21577SP2NL=$lt_lt_SP2NL
21578
21579# turn newlines into spaces.
21580NL2SP=$lt_lt_NL2SP
21581
21582# convert \$build file names to \$host format.
21583to_host_file_cmd=$lt_cv_to_host_file_cmd
21584
21585# convert \$build files to toolchain format.
21586to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21587
21588# Method to check whether dependent libraries are shared objects.
21589deplibs_check_method=$lt_deplibs_check_method
21590
21591# Command to use when deplibs_check_method = "file_magic".
21592file_magic_cmd=$lt_file_magic_cmd
21593
21594# How to find potential files when deplibs_check_method = "file_magic".
21595file_magic_glob=$lt_file_magic_glob
21596
21597# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21598want_nocaseglob=$lt_want_nocaseglob
21599
21600# Command to associate shared and link libraries.
21601sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21602
21603# The archiver.
21604AR=$lt_AR
21605
21606# Flags to create an archive.
21607AR_FLAGS=$lt_AR_FLAGS
21608
21609# How to feed a file listing to the archiver.
21610archiver_list_spec=$lt_archiver_list_spec
21611
21612# A symbol stripping program.
21613STRIP=$lt_STRIP
21614
21615# Commands used to install an old-style archive.
21616RANLIB=$lt_RANLIB
21617old_postinstall_cmds=$lt_old_postinstall_cmds
21618old_postuninstall_cmds=$lt_old_postuninstall_cmds
21619
21620# Whether to use a lock for old archive extraction.
21621lock_old_archive_extraction=$lock_old_archive_extraction
21622
21623# A C compiler.
21624LTCC=$lt_CC
21625
21626# LTCC compiler flags.
21627LTCFLAGS=$lt_CFLAGS
21628
21629# Take the output of nm and produce a listing of raw symbols and C names.
21630global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21631
21632# Transform the output of nm in a proper C declaration.
21633global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21634
21635# Transform the output of nm in a C name address pair.
21636global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21637
21638# Transform the output of nm in a C name address pair when lib prefix is needed.
21639global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21640
21641# Specify filename containing input files for \$NM.
21642nm_file_list_spec=$lt_nm_file_list_spec
21643
21644# The root where to search for dependent libraries,and in which our libraries should be installed.
21645lt_sysroot=$lt_sysroot
21646
21647# The name of the directory that contains temporary libtool files.
21648objdir=$objdir
21649
21650# Used to examine libraries when file_magic_cmd begins with "file".
21651MAGIC_CMD=$MAGIC_CMD
21652
21653# Must we lock files when doing compilation?
21654need_locks=$lt_need_locks
21655
21656# Manifest tool.
21657MANIFEST_TOOL=$lt_MANIFEST_TOOL
21658
21659# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21660DSYMUTIL=$lt_DSYMUTIL
21661
21662# Tool to change global to local symbols on Mac OS X.
21663NMEDIT=$lt_NMEDIT
21664
21665# Tool to manipulate fat objects and archives on Mac OS X.
21666LIPO=$lt_LIPO
21667
21668# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21669OTOOL=$lt_OTOOL
21670
21671# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21672OTOOL64=$lt_OTOOL64
21673
21674# Old archive suffix (normally "a").
21675libext=$libext
21676
21677# Shared library suffix (normally ".so").
21678shrext_cmds=$lt_shrext_cmds
21679
21680# The commands to extract the exported symbol list from a shared archive.
21681extract_expsyms_cmds=$lt_extract_expsyms_cmds
21682
21683# Variables whose values should be saved in libtool wrapper scripts and
21684# restored at link time.
21685variables_saved_for_relink=$lt_variables_saved_for_relink
21686
21687# Do we need the "lib" prefix for modules?
21688need_lib_prefix=$need_lib_prefix
21689
21690# Do we need a version for libraries?
21691need_version=$need_version
21692
21693# Library versioning type.
21694version_type=$version_type
21695
21696# Shared library runtime path variable.
21697runpath_var=$runpath_var
21698
21699# Shared library path variable.
21700shlibpath_var=$shlibpath_var
21701
21702# Is shlibpath searched before the hard-coded library search path?
21703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21704
21705# Format of library name prefix.
21706libname_spec=$lt_libname_spec
21707
21708# List of archive names. First name is the real one, the rest are links.
21709# The last name is the one that the linker finds with -lNAME
21710library_names_spec=$lt_library_names_spec
21711
21712# The coded name of the library, if different from the real name.
21713soname_spec=$lt_soname_spec
21714
21715# Permission mode override for installation of shared libraries.
21716install_override_mode=$lt_install_override_mode
21717
21718# Command to use after installation of a shared archive.
21719postinstall_cmds=$lt_postinstall_cmds
21720
21721# Command to use after uninstallation of a shared archive.
21722postuninstall_cmds=$lt_postuninstall_cmds
21723
21724# Commands used to finish a libtool library installation in a directory.
21725finish_cmds=$lt_finish_cmds
21726
21727# As "finish_cmds", except a single script fragment to be evaled but
21728# not shown.
21729finish_eval=$lt_finish_eval
21730
21731# Whether we should hardcode library paths into libraries.
21732hardcode_into_libs=$hardcode_into_libs
21733
21734# Compile-time system search path for libraries.
21735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21736
21737# Run-time system search path for libraries.
21738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21739
21740# Whether dlopen is supported.
21741dlopen_support=$enable_dlopen
21742
21743# Whether dlopen of programs is supported.
21744dlopen_self=$enable_dlopen_self
21745
21746# Whether dlopen of statically linked programs is supported.
21747dlopen_self_static=$enable_dlopen_self_static
21748
21749# Commands to strip libraries.
21750old_striplib=$lt_old_striplib
21751striplib=$lt_striplib
21752
21753
21754# The linker used to build libraries.
21755LD=$lt_LD
21756
21757# How to create reloadable object files.
21758reload_flag=$lt_reload_flag
21759reload_cmds=$lt_reload_cmds
21760
21761# Commands used to build an old-style archive.
21762old_archive_cmds=$lt_old_archive_cmds
21763
21764# A language specific compiler.
21765CC=$lt_compiler
21766
21767# Is the compiler the GNU compiler?
21768with_gcc=$GCC
21769
21770# Compiler flag to turn off builtin functions.
21771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21772
21773# Additional compiler flags for building library objects.
21774pic_flag=$lt_lt_prog_compiler_pic
21775
21776# How to pass a linker flag through the compiler.
21777wl=$lt_lt_prog_compiler_wl
21778
21779# Compiler flag to prevent dynamic linking.
21780link_static_flag=$lt_lt_prog_compiler_static
21781
21782# Does compiler simultaneously support -c and -o options?
21783compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21784
21785# Whether or not to add -lc for building shared libraries.
21786build_libtool_need_lc=$archive_cmds_need_lc
21787
21788# Whether or not to disallow shared libs when runtime libs are static.
21789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21790
21791# Compiler flag to allow reflexive dlopens.
21792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21793
21794# Compiler flag to generate shared objects directly from archives.
21795whole_archive_flag_spec=$lt_whole_archive_flag_spec
21796
21797# Whether the compiler copes with passing no objects directly.
21798compiler_needs_object=$lt_compiler_needs_object
21799
21800# Create an old-style archive from a shared archive.
21801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21802
21803# Create a temporary old-style archive to link instead of a shared archive.
21804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21805
21806# Commands used to build a shared archive.
21807archive_cmds=$lt_archive_cmds
21808archive_expsym_cmds=$lt_archive_expsym_cmds
21809
21810# Commands used to build a loadable module if different from building
21811# a shared archive.
21812module_cmds=$lt_module_cmds
21813module_expsym_cmds=$lt_module_expsym_cmds
21814
21815# Whether we are building with GNU ld or not.
21816with_gnu_ld=$lt_with_gnu_ld
21817
21818# Flag that allows shared libraries with undefined symbols to be built.
21819allow_undefined_flag=$lt_allow_undefined_flag
21820
21821# Flag that enforces no undefined symbols.
21822no_undefined_flag=$lt_no_undefined_flag
21823
21824# Flag to hardcode \$libdir into a binary during linking.
21825# This must work even if \$libdir does not exist
21826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21827
21828# Whether we need a single "-rpath" flag with a separated argument.
21829hardcode_libdir_separator=$lt_hardcode_libdir_separator
21830
21831# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21832# DIR into the resulting binary.
21833hardcode_direct=$hardcode_direct
21834
21835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21836# DIR into the resulting binary and the resulting library dependency is
21837# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21838# library is relocated.
21839hardcode_direct_absolute=$hardcode_direct_absolute
21840
21841# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21842# into the resulting binary.
21843hardcode_minus_L=$hardcode_minus_L
21844
21845# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21846# into the resulting binary.
21847hardcode_shlibpath_var=$hardcode_shlibpath_var
21848
21849# Set to "yes" if building a shared library automatically hardcodes DIR
21850# into the library and all subsequent libraries and executables linked
21851# against it.
21852hardcode_automatic=$hardcode_automatic
21853
21854# Set to yes if linker adds runtime paths of dependent libraries
21855# to runtime path list.
21856inherit_rpath=$inherit_rpath
21857
21858# Whether libtool must link a program against all its dependency libraries.
21859link_all_deplibs=$link_all_deplibs
21860
21861# Set to "yes" if exported symbols are required.
21862always_export_symbols=$always_export_symbols
21863
21864# The commands to list exported symbols.
21865export_symbols_cmds=$lt_export_symbols_cmds
21866
21867# Symbols that should not be listed in the preloaded symbols.
21868exclude_expsyms=$lt_exclude_expsyms
21869
21870# Symbols that must always be exported.
21871include_expsyms=$lt_include_expsyms
21872
21873# Commands necessary for linking programs (against libraries) with templates.
21874prelink_cmds=$lt_prelink_cmds
21875
21876# Commands necessary for finishing linking programs.
21877postlink_cmds=$lt_postlink_cmds
21878
21879# Specify filename containing input files.
21880file_list_spec=$lt_file_list_spec
21881
21882# How to hardcode a shared library path into an executable.
21883hardcode_action=$hardcode_action
21884
21885# The directories searched by this compiler when creating a shared library.
21886compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21887
21888# Dependencies to place before and after the objects being linked to
21889# create a shared library.
21890predep_objects=$lt_predep_objects
21891postdep_objects=$lt_postdep_objects
21892predeps=$lt_predeps
21893postdeps=$lt_postdeps
21894
21895# The library search path used internally by the compiler when linking
21896# a shared library.
21897compiler_lib_search_path=$lt_compiler_lib_search_path
21898
21899# ### END LIBTOOL CONFIG
21900
21901_LT_EOF
21902
21903 case $host_os in
21904 aix3*)
21905 cat <<\_LT_EOF >> "$cfgfile"
21906# AIX sometimes has problems with the GCC collect2 program. For some
21907# reason, if we set the COLLECT_NAMES environment variable, the problems
21908# vanish in a puff of smoke.
21909if test "X${COLLECT_NAMES+set}" != Xset; then
21910 COLLECT_NAMES=
21911 export COLLECT_NAMES
21912fi
21913_LT_EOF
21914 ;;
21915 esac
21916
21917
21918ltmain="$ac_aux_dir/ltmain.sh"
21919
21920
21921 # We use sed instead of cat because bash on DJGPP gets confused if
21922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21923 # text mode, it properly converts lines to CR/LF. This bash problem
21924 # is reportedly fixed, but why not run on old versions too?
21925 sed '$q' "$ltmain" >> "$cfgfile" \
21926 || (rm -f "$cfgfile"; exit 1)
21927
21928 if test x"$xsi_shell" = xyes; then
21929 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21930func_dirname ()\
21931{\
21932\ case ${1} in\
21933\ */*) func_dirname_result="${1%/*}${2}" ;;\
21934\ * ) func_dirname_result="${3}" ;;\
21935\ esac\
21936} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21937 && mv -f "$cfgfile.tmp" "$cfgfile" \
21938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21939test 0 -eq $? || _lt_function_replace_fail=:
21940
21941
21942 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21943func_basename ()\
21944{\
21945\ func_basename_result="${1##*/}"\
21946} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21947 && mv -f "$cfgfile.tmp" "$cfgfile" \
21948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21949test 0 -eq $? || _lt_function_replace_fail=:
21950
21951
21952 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21953func_dirname_and_basename ()\
21954{\
21955\ case ${1} in\
21956\ */*) func_dirname_result="${1%/*}${2}" ;;\
21957\ * ) func_dirname_result="${3}" ;;\
21958\ esac\
21959\ func_basename_result="${1##*/}"\
21960} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21961 && mv -f "$cfgfile.tmp" "$cfgfile" \
21962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21963test 0 -eq $? || _lt_function_replace_fail=:
21964
21965
21966 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21967func_stripname ()\
21968{\
21969\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21970\ # positional parameters, so assign one to ordinary parameter first.\
21971\ func_stripname_result=${3}\
21972\ func_stripname_result=${func_stripname_result#"${1}"}\
21973\ func_stripname_result=${func_stripname_result%"${2}"}\
21974} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21975 && mv -f "$cfgfile.tmp" "$cfgfile" \
21976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21977test 0 -eq $? || _lt_function_replace_fail=:
21978
21979
21980 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21981func_split_long_opt ()\
21982{\
21983\ func_split_long_opt_name=${1%%=*}\
21984\ func_split_long_opt_arg=${1#*=}\
21985} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21986 && mv -f "$cfgfile.tmp" "$cfgfile" \
21987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21988test 0 -eq $? || _lt_function_replace_fail=:
21989
21990
21991 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21992func_split_short_opt ()\
21993{\
21994\ func_split_short_opt_arg=${1#??}\
21995\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21996} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21997 && mv -f "$cfgfile.tmp" "$cfgfile" \
21998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21999test 0 -eq $? || _lt_function_replace_fail=:
22000
22001
22002 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22003func_lo2o ()\
22004{\
22005\ case ${1} in\
22006\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22007\ *) func_lo2o_result=${1} ;;\
22008\ esac\
22009} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22010 && mv -f "$cfgfile.tmp" "$cfgfile" \
22011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22012test 0 -eq $? || _lt_function_replace_fail=:
22013
22014
22015 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22016func_xform ()\
22017{\
22018 func_xform_result=${1%.*}.lo\
22019} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22020 && mv -f "$cfgfile.tmp" "$cfgfile" \
22021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22022test 0 -eq $? || _lt_function_replace_fail=:
22023
22024
22025 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22026func_arith ()\
22027{\
22028 func_arith_result=$(( $* ))\
22029} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22030 && mv -f "$cfgfile.tmp" "$cfgfile" \
22031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22032test 0 -eq $? || _lt_function_replace_fail=:
22033
22034
22035 sed -e '/^func_len ()$/,/^} # func_len /c\
22036func_len ()\
22037{\
22038 func_len_result=${#1}\
22039} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22040 && mv -f "$cfgfile.tmp" "$cfgfile" \
22041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22042test 0 -eq $? || _lt_function_replace_fail=:
22043
22044fi
22045
22046if test x"$lt_shell_append" = xyes; then
22047 sed -e '/^func_append ()$/,/^} # func_append /c\
22048func_append ()\
22049{\
22050 eval "${1}+=\\${2}"\
22051} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22052 && mv -f "$cfgfile.tmp" "$cfgfile" \
22053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22054test 0 -eq $? || _lt_function_replace_fail=:
22055
22056
22057 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22058func_append_quoted ()\
22059{\
22060\ func_quote_for_eval "${2}"\
22061\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22062} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22063 && mv -f "$cfgfile.tmp" "$cfgfile" \
22064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22065test 0 -eq $? || _lt_function_replace_fail=:
22066
22067
22068 # Save a `func_append' function call where possible by direct use of '+='
22069 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22070 && mv -f "$cfgfile.tmp" "$cfgfile" \
22071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22072 test 0 -eq $? || _lt_function_replace_fail=:
22073else
22074 # Save a `func_append' function call even when '+=' is not available
22075 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22076 && mv -f "$cfgfile.tmp" "$cfgfile" \
22077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22078 test 0 -eq $? || _lt_function_replace_fail=:
22079fi
22080
22081if test x"$_lt_function_replace_fail" = x":"; then
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22083$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22084fi
22085
22086
22087 mv -f "$cfgfile" "$ofile" ||
22088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22089 chmod +x "$ofile"
22090
22091
22092 cat <<_LT_EOF >> "$ofile"
22093
22094# ### BEGIN LIBTOOL TAG CONFIG: CXX
22095
22096# The linker used to build libraries.
22097LD=$lt_LD_CXX
22098
22099# How to create reloadable object files.
22100reload_flag=$lt_reload_flag_CXX
22101reload_cmds=$lt_reload_cmds_CXX
22102
22103# Commands used to build an old-style archive.
22104old_archive_cmds=$lt_old_archive_cmds_CXX
22105
22106# A language specific compiler.
22107CC=$lt_compiler_CXX
22108
22109# Is the compiler the GNU compiler?
22110with_gcc=$GCC_CXX
22111
22112# Compiler flag to turn off builtin functions.
22113no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22114
22115# Additional compiler flags for building library objects.
22116pic_flag=$lt_lt_prog_compiler_pic_CXX
22117
22118# How to pass a linker flag through the compiler.
22119wl=$lt_lt_prog_compiler_wl_CXX
22120
22121# Compiler flag to prevent dynamic linking.
22122link_static_flag=$lt_lt_prog_compiler_static_CXX
22123
22124# Does compiler simultaneously support -c and -o options?
22125compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22126
22127# Whether or not to add -lc for building shared libraries.
22128build_libtool_need_lc=$archive_cmds_need_lc_CXX
22129
22130# Whether or not to disallow shared libs when runtime libs are static.
22131allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22132
22133# Compiler flag to allow reflexive dlopens.
22134export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22135
22136# Compiler flag to generate shared objects directly from archives.
22137whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22138
22139# Whether the compiler copes with passing no objects directly.
22140compiler_needs_object=$lt_compiler_needs_object_CXX
22141
22142# Create an old-style archive from a shared archive.
22143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22144
22145# Create a temporary old-style archive to link instead of a shared archive.
22146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22147
22148# Commands used to build a shared archive.
22149archive_cmds=$lt_archive_cmds_CXX
22150archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22151
22152# Commands used to build a loadable module if different from building
22153# a shared archive.
22154module_cmds=$lt_module_cmds_CXX
22155module_expsym_cmds=$lt_module_expsym_cmds_CXX
22156
22157# Whether we are building with GNU ld or not.
22158with_gnu_ld=$lt_with_gnu_ld_CXX
22159
22160# Flag that allows shared libraries with undefined symbols to be built.
22161allow_undefined_flag=$lt_allow_undefined_flag_CXX
22162
22163# Flag that enforces no undefined symbols.
22164no_undefined_flag=$lt_no_undefined_flag_CXX
22165
22166# Flag to hardcode \$libdir into a binary during linking.
22167# This must work even if \$libdir does not exist
22168hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22169
22170# Whether we need a single "-rpath" flag with a separated argument.
22171hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22172
22173# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22174# DIR into the resulting binary.
22175hardcode_direct=$hardcode_direct_CXX
22176
22177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22178# DIR into the resulting binary and the resulting library dependency is
22179# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22180# library is relocated.
22181hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22182
22183# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22184# into the resulting binary.
22185hardcode_minus_L=$hardcode_minus_L_CXX
22186
22187# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22188# into the resulting binary.
22189hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22190
22191# Set to "yes" if building a shared library automatically hardcodes DIR
22192# into the library and all subsequent libraries and executables linked
22193# against it.
22194hardcode_automatic=$hardcode_automatic_CXX
22195
22196# Set to yes if linker adds runtime paths of dependent libraries
22197# to runtime path list.
22198inherit_rpath=$inherit_rpath_CXX
22199
22200# Whether libtool must link a program against all its dependency libraries.
22201link_all_deplibs=$link_all_deplibs_CXX
22202
22203# Set to "yes" if exported symbols are required.
22204always_export_symbols=$always_export_symbols_CXX
22205
22206# The commands to list exported symbols.
22207export_symbols_cmds=$lt_export_symbols_cmds_CXX
22208
22209# Symbols that should not be listed in the preloaded symbols.
22210exclude_expsyms=$lt_exclude_expsyms_CXX
22211
22212# Symbols that must always be exported.
22213include_expsyms=$lt_include_expsyms_CXX
22214
22215# Commands necessary for linking programs (against libraries) with templates.
22216prelink_cmds=$lt_prelink_cmds_CXX
22217
22218# Commands necessary for finishing linking programs.
22219postlink_cmds=$lt_postlink_cmds_CXX
22220
22221# Specify filename containing input files.
22222file_list_spec=$lt_file_list_spec_CXX
22223
22224# How to hardcode a shared library path into an executable.
22225hardcode_action=$hardcode_action_CXX
22226
22227# The directories searched by this compiler when creating a shared library.
22228compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22229
22230# Dependencies to place before and after the objects being linked to
22231# create a shared library.
22232predep_objects=$lt_predep_objects_CXX
22233postdep_objects=$lt_postdep_objects_CXX
22234predeps=$lt_predeps_CXX
22235postdeps=$lt_postdeps_CXX
22236
22237# The library search path used internally by the compiler when linking
22238# a shared library.
22239compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22240
22241# ### END LIBTOOL TAG CONFIG: CXX
22242_LT_EOF
22243
22244 ;;
22245 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22246 # Older Autoconf quotes --file arguments for eval, but not when files
22247 # are listed without --file. Let's play safe and only enable the eval
22248 # if we detect the quoting.
22249 case $CONFIG_FILES in
22250 *\'*) eval set x "$CONFIG_FILES" ;;
22251 *) set x $CONFIG_FILES ;;
22252 esac
22253 shift
22254 for mf
22255 do
22256 # Strip MF so we end up with the name of the file.
22257 mf=`echo "$mf" | sed -e 's/:.*$//'`
22258 # Check whether this is an Automake generated Makefile or not.
22259 # We used to match only the files named 'Makefile.in', but
22260 # some people rename them; so instead we look at the file content.
22261 # Grep'ing the first line is not enough: some people post-process
22262 # each Makefile.in and add a new line on top of each file to say so.
22263 # Grep'ing the whole file is not good either: AIX grep has a line
22264 # limit of 2048, but all sed's we know have understand at least 4000.
22265 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22266 dirpart=`$as_dirname -- "$mf" ||
22267$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268 X"$mf" : 'X\(//\)[^/]' \| \
22269 X"$mf" : 'X\(//\)$' \| \
22270 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22271$as_echo X"$mf" |
22272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22273 s//\1/
22274 q
22275 }
22276 /^X\(\/\/\)[^/].*/{
22277 s//\1/
22278 q
22279 }
22280 /^X\(\/\/\)$/{
22281 s//\1/
22282 q
22283 }
22284 /^X\(\/\).*/{
22285 s//\1/
22286 q
22287 }
22288 s/.*/./; q'`
22289 else
22290 continue
22291 fi
22292 # Extract the definition of DEPDIR, am__include, and am__quote
22293 # from the Makefile without running 'make'.
22294 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22295 test -z "$DEPDIR" && continue
22296 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22297 test -z "$am__include" && continue
22298 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22299 # Find all dependency output files, they are included files with
22300 # $(DEPDIR) in their names. We invoke sed twice because it is the
22301 # simplest approach to changing $(DEPDIR) to its actual value in the
22302 # expansion.
22303 for file in `sed -n "
22304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22306 # Make sure the directory exists.
22307 test -f "$dirpart/$file" && continue
22308 fdir=`$as_dirname -- "$file" ||
22309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310 X"$file" : 'X\(//\)[^/]' \| \
22311 X"$file" : 'X\(//\)$' \| \
22312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22313$as_echo X"$file" |
22314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22315 s//\1/
22316 q
22317 }
22318 /^X\(\/\/\)[^/].*/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\/\)$/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\).*/{
22327 s//\1/
22328 q
22329 }
22330 s/.*/./; q'`
22331 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22332 # echo "creating $dirpart/$file"
22333 echo '# dummy' > "$dirpart/$file"
22334 done
22335 done
22336}
22337 ;;
22338
22339 esac
22340done # for ac_tag
22341
22342
22343as_fn_exit 0
22344_ACEOF
22345ac_clean_files=$ac_clean_files_save
22346
22347test $ac_write_fail = 0 ||
22348 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22349
22350
22351# configure is writing to config.log, and then calls config.status.
22352# config.status does its own redirection, appending to config.log.
22353# Unfortunately, on DOS this fails, as config.log is still kept open
22354# by configure, so config.status won't be able to write to it; its
22355# output is simply discarded. So we exec the FD to /dev/null,
22356# effectively closing config.log, so it can be properly (re)opened and
22357# appended to by config.status. When coming back to configure, we
22358# need to make the FD available again.
22359if test "$no_create" != yes; then
22360 ac_cs_success=:
22361 ac_config_status_args=
22362 test "$silent" = yes &&
22363 ac_config_status_args="$ac_config_status_args --quiet"
22364 exec 5>/dev/null
22365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22366 exec 5>>config.log
22367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22368 # would make configure fail if this is the last instruction.
22369 $ac_cs_success || as_fn_exit 1
22370fi
22371if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22373$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22374fi
22375
22376