Increase ParseScript cache from 30 to 90 seconds
[xy_vsfilter.git] / src / log4cplus / configure
blobaf556f359c4acb4ec8ecf9d086e19950e03eb4f8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for log4cplus 1.0.4.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
252 exit 1
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
270 { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
279 return $1
280 } # as_fn_set_status
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
323 /^X\(\/\/\)$/{
324 s//\1/
327 /^X\(\/\).*/{
328 s//\1/
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
348 eval $1+=\$2
350 else
351 as_fn_append ()
353 eval $1=\$$1\$2
355 fi # as_fn_append
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
365 as_val=$(( $* ))
367 else
368 as_fn_arith ()
370 as_val=`expr "$@" || test $? -eq 1`
372 fi # as_fn_arith
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
419 /^X\/\(\/\/\)$/{
420 s//\1/
423 /^X\/\(\/\).*/{
424 s//\1/
427 s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME='log4cplus'
569 PACKAGE_TARNAME='log4cplus'
570 PACKAGE_VERSION='1.0.4'
571 PACKAGE_STRING='log4cplus 1.0.4'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
575 ac_unique_file="src/logger.cxx"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 MULTI_THREADED_FALSE
617 MULTI_THREADED_TRUE
618 PTHREAD_CFLAGS
619 PTHREAD_LIBS
620 PTHREAD_CC
621 ax_pthread_config
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 RANLIB
630 LN_S
632 ac_ct_DUMPBIN
633 DUMPBIN
635 FGREP
636 EGREP
637 GREP
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 ac_ct_CC
643 CFLAGS
645 LIBTOOL
646 OBJDUMP
647 DLLTOOL
649 WINSOCK_SOCKETS_FALSE
650 WINSOCK_SOCKETS_TRUE
651 CXXCPP
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 OBJEXT
662 EXEEXT
663 ac_ct_CXX
664 CPPFLAGS
665 LDFLAGS
666 CXXFLAGS
668 LOG4CPLUS_NDEBUG
669 LT_VERSION
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_os
694 target_vendor
695 target_cpu
696 target
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 with_working_locale
747 enable_debugging
748 enable_warnings
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 enable_libtool_lock
756 with_gnu_ld
757 enable_threads
759 ac_precious_vars='build_alias
760 host_alias
761 target_alias
763 CXXFLAGS
764 LDFLAGS
765 LIBS
766 CPPFLAGS
768 CXXCPP
769 CPPFLAGS
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPP'
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
825 ac_prev=
826 ac_dashdash=
827 for ac_option
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
836 case $ac_option in
837 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *=) ac_optarg= ;;
839 *) ac_optarg=yes ;;
840 esac
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
846 ac_dashdash=yes ;;
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
865 --config-cache | -C)
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 esac
1183 done
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $? "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used" >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error $? "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error $? "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1269 /^X\(\/\/\)$/{
1270 s//\1/
1273 /^X\(\/\).*/{
1274 s//\1/
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1282 else
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures log4cplus 1.0.4 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking ...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/log4cplus]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1372 cat <<\_ACEOF
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383 _ACEOF
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of log4cplus 1.0.4:";;
1389 esac
1390 cat <<\_ACEOF
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-debugging Turns off optimization and adds switches that
1397 generate debugging information.
1398 --enable-warnings Use compiler warnings option, e.g. -Wall. Enabled by
1399 default.
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-threads=yes/no Use this option to create a singled-threaded version
1408 of this library
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-working-locale Use std::locale for char->wchar_t conversion.
1414 --with-pic try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 Some influential environment variables:
1419 CXX C++ compiler command
1420 CXXFLAGS C++ compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CXXCPP C++ preprocessor
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 CPP C preprocessor
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to the package provider.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 log4cplus configure 1.0.4
1498 generated by GNU Autoconf 2.68
1500 Copyright (C) 2010 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_cxx_try_compile LINENO
1512 # ----------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_cxx_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_cxx_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 as_fn_set_status $ac_retval
1547 } # ac_fn_cxx_try_compile
1549 # ac_fn_cxx_try_cpp LINENO
1550 # ------------------------
1551 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_cxx_try_cpp ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if { { ac_try="$ac_cpp conftest.$ac_ext"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } > conftest.i && {
1571 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1572 test ! -s conftest.err
1573 }; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=1
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_cxx_try_cpp
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1617 ac_retval=1
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_compile
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 $as_test_x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_link
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 eval "$3=yes"
1689 else
1690 eval "$3=no"
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 } # ac_fn_c_check_header_compile
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval 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
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=1
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_cpp
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741 # that executables *can* be run.
1742 ac_fn_c_try_run ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=$ac_status
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1778 } # ac_fn_c_try_run
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below.
1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800 <limits.h> exists even on freestanding compilers. */
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1808 #undef $2
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1825 main ()
1827 return $2 ();
1829 return 0;
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1837 rm -f core conftest.err conftest.$ac_objext \
1838 conftest$ac_exeext conftest.$ac_ext
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_func
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 $as_test_x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_cxx_try_link
1893 # ac_fn_cxx_try_run LINENO
1894 # ------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1896 # that executables *can* be run.
1897 ac_fn_cxx_try_run ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>&5
1908 ac_status=$?
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1911 { { case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_try") 2>&5
1918 ac_status=$?
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; }; }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: program exited with status $ac_status" >&5
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=$ac_status
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_cxx_try_run
1935 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1936 # ---------------------------------------------------------
1937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938 # the include files in INCLUDES and setting the cache variable VAR
1939 # accordingly.
1940 ac_fn_cxx_check_header_mongrel ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if eval \${$3+:} false; then :
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 else
1953 # Is the header compilable?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955 $as_echo_n "checking $2 usability... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_cxx_try_compile "$LINENO"; then :
1962 ac_header_compiler=yes
1963 else
1964 ac_header_compiler=no
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968 $as_echo "$ac_header_compiler" >&6; }
1970 # Is the header present?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972 $as_echo_n "checking $2 presence... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 #include <$2>
1976 _ACEOF
1977 if ac_fn_cxx_try_cpp "$LINENO"; then :
1978 ac_header_preproc=yes
1979 else
1980 ac_header_preproc=no
1982 rm -f conftest.err conftest.i conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984 $as_echo "$ac_header_preproc" >&6; }
1986 # So? What about this header?
1987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1988 yes:no: )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 no:yes:* )
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1998 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2002 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 esac
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 eval "$3=\$ac_header_compiler"
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_cxx_check_header_mongrel
2022 # ac_fn_cxx_check_func LINENO FUNC VAR
2023 # ------------------------------------
2024 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2025 ac_fn_cxx_check_func ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031 $as_echo_n "(cached) " >&6
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037 #define $2 innocuous_$2
2039 /* System header to define __stub macros and hopefully few prototypes,
2040 which can conflict with char $2 (); below.
2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042 <limits.h> exists even on freestanding compilers. */
2044 #ifdef __STDC__
2045 # include <limits.h>
2046 #else
2047 # include <assert.h>
2048 #endif
2050 #undef $2
2052 /* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055 #ifdef __cplusplus
2056 extern "C"
2057 #endif
2058 char $2 ();
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined __stub_$2 || defined __stub___$2
2063 choke me
2064 #endif
2067 main ()
2069 return $2 ();
2071 return 0;
2073 _ACEOF
2074 if ac_fn_cxx_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2082 eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 } # ac_fn_cxx_check_func
2088 cat >config.log <<_ACEOF
2089 This file contains any messages produced by compilers while
2090 running configure, to aid debugging if configure makes a mistake.
2092 It was created by log4cplus $as_me 1.0.4, which was
2093 generated by GNU Autoconf 2.68. Invocation command line was
2095 $ $0 $@
2097 _ACEOF
2098 exec 5>>config.log
2100 cat <<_ASUNAME
2101 ## --------- ##
2102 ## Platform. ##
2103 ## --------- ##
2105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2122 _ASUNAME
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 $as_echo "PATH: $as_dir"
2130 done
2131 IFS=$as_save_IFS
2133 } >&5
2135 cat >&5 <<_ACEOF
2138 ## ----------- ##
2139 ## Core tests. ##
2140 ## ----------- ##
2142 _ACEOF
2145 # Keep a trace of the command line.
2146 # Strip out --no-create and --no-recursion so they do not pile up.
2147 # Strip out --silent because we don't want to record it for future runs.
2148 # Also quote any args containing shell meta-characters.
2149 # Make two passes to allow for proper duplicate-argument suppression.
2150 ac_configure_args=
2151 ac_configure_args0=
2152 ac_configure_args1=
2153 ac_must_keep_next=false
2154 for ac_pass in 1 2
2156 for ac_arg
2158 case $ac_arg in
2159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2161 | -silent | --silent | --silen | --sile | --sil)
2162 continue ;;
2163 *\'*)
2164 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165 esac
2166 case $ac_pass in
2167 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169 as_fn_append ac_configure_args1 " '$ac_arg'"
2170 if test $ac_must_keep_next = true; then
2171 ac_must_keep_next=false # Got value, back to normal.
2172 else
2173 case $ac_arg in
2174 *=* | --config-cache | -C | -disable-* | --disable-* \
2175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2177 | -with-* | --with-* | -without-* | --without-* | --x)
2178 case "$ac_configure_args0 " in
2179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2180 esac
2182 -* ) ac_must_keep_next=true ;;
2183 esac
2185 as_fn_append ac_configure_args " '$ac_arg'"
2187 esac
2188 done
2189 done
2190 { ac_configure_args0=; unset ac_configure_args0;}
2191 { ac_configure_args1=; unset ac_configure_args1;}
2193 # When interrupted or exit'd, cleanup temporary files, and complete
2194 # config.log. We remove comments because anyway the quotes in there
2195 # would cause problems or look ugly.
2196 # WARNING: Use '\'' to represent an apostrophe within the trap.
2197 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2198 trap 'exit_status=$?
2199 # Save into config.log some information that might help in debugging.
2201 echo
2203 $as_echo "## ---------------- ##
2204 ## Cache variables. ##
2205 ## ---------------- ##"
2206 echo
2207 # The following way of writing the cache mishandles newlines in values,
2209 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210 eval ac_val=\$$ac_var
2211 case $ac_val in #(
2212 *${as_nl}*)
2213 case $ac_var in #(
2214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216 esac
2217 case $ac_var in #(
2218 _ | IFS | as_nl) ;; #(
2219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220 *) { eval $ac_var=; unset $ac_var;} ;;
2221 esac ;;
2222 esac
2223 done
2224 (set) 2>&1 |
2225 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226 *${as_nl}ac_space=\ *)
2227 sed -n \
2228 "s/'\''/'\''\\\\'\'''\''/g;
2229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230 ;; #(
2232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234 esac |
2235 sort
2237 echo
2239 $as_echo "## ----------------- ##
2240 ## Output variables. ##
2241 ## ----------------- ##"
2242 echo
2243 for ac_var in $ac_subst_vars
2245 eval ac_val=\$$ac_var
2246 case $ac_val in
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 esac
2249 $as_echo "$ac_var='\''$ac_val'\''"
2250 done | sort
2251 echo
2253 if test -n "$ac_subst_files"; then
2254 $as_echo "## ------------------- ##
2255 ## File substitutions. ##
2256 ## ------------------- ##"
2257 echo
2258 for ac_var in $ac_subst_files
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2269 if test -s confdefs.h; then
2270 $as_echo "## ----------- ##
2271 ## confdefs.h. ##
2272 ## ----------- ##"
2273 echo
2274 cat confdefs.h
2275 echo
2277 test "$ac_signal" != 0 &&
2278 $as_echo "$as_me: caught signal $ac_signal"
2279 $as_echo "$as_me: exit $exit_status"
2280 } >&5
2281 rm -f core *.core core.conftest.* &&
2282 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2283 exit $exit_status
2285 for ac_signal in 1 2 13 15; do
2286 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2287 done
2288 ac_signal=0
2290 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2291 rm -f -r conftest* confdefs.h
2293 $as_echo "/* confdefs.h */" > confdefs.h
2295 # Predefined preprocessor variables.
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_NAME "$PACKAGE_NAME"
2299 _ACEOF
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2303 _ACEOF
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2307 _ACEOF
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_STRING "$PACKAGE_STRING"
2311 _ACEOF
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2315 _ACEOF
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_URL "$PACKAGE_URL"
2319 _ACEOF
2322 # Let the site file select an alternate cache file if it wants to.
2323 # Prefer an explicitly selected file to automatically selected ones.
2324 ac_site_file1=NONE
2325 ac_site_file2=NONE
2326 if test -n "$CONFIG_SITE"; then
2327 # We do not want a PATH search for config.site.
2328 case $CONFIG_SITE in #((
2329 -*) ac_site_file1=./$CONFIG_SITE;;
2330 */*) ac_site_file1=$CONFIG_SITE;;
2331 *) ac_site_file1=./$CONFIG_SITE;;
2332 esac
2333 elif test "x$prefix" != xNONE; then
2334 ac_site_file1=$prefix/share/config.site
2335 ac_site_file2=$prefix/etc/config.site
2336 else
2337 ac_site_file1=$ac_default_prefix/share/config.site
2338 ac_site_file2=$ac_default_prefix/etc/config.site
2340 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342 test "x$ac_site_file" = xNONE && continue
2343 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2346 sed 's/^/| /' "$ac_site_file" >&5
2347 . "$ac_site_file" \
2348 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 as_fn_error $? "failed to load site script $ac_site_file
2351 See \`config.log' for more details" "$LINENO" 5; }
2353 done
2355 if test -r "$cache_file"; then
2356 # Some versions of bash will fail to source /dev/null (special files
2357 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360 $as_echo "$as_me: loading cache $cache_file" >&6;}
2361 case $cache_file in
2362 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363 *) . "./$cache_file";;
2364 esac
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368 $as_echo "$as_me: creating cache $cache_file" >&6;}
2369 >$cache_file
2372 # Check that the precious variables saved in the cache have kept the same
2373 # value.
2374 ac_cache_corrupted=false
2375 for ac_var in $ac_precious_vars; do
2376 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2377 eval ac_new_set=\$ac_env_${ac_var}_set
2378 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2379 eval ac_new_val=\$ac_env_${ac_var}_value
2380 case $ac_old_set,$ac_new_set in
2381 set,)
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2383 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2384 ac_cache_corrupted=: ;;
2385 ,set)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,);;
2391 if test "x$ac_old_val" != "x$ac_new_val"; then
2392 # differences in whitespace do not lead to failure.
2393 ac_old_val_w=`echo x $ac_old_val`
2394 ac_new_val_w=`echo x $ac_new_val`
2395 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2397 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2398 ac_cache_corrupted=:
2399 else
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2401 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2402 eval $ac_var=\$ac_old_val
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2405 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2407 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2408 fi;;
2409 esac
2410 # Pass precious variables to config.status.
2411 if test "$ac_new_set" = set; then
2412 case $ac_new_val in
2413 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2414 *) ac_arg=$ac_var=$ac_new_val ;;
2415 esac
2416 case " $ac_configure_args " in
2417 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2418 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2419 esac
2421 done
2422 if $ac_cache_corrupted; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2426 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2427 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429 ## -------------------- ##
2430 ## Main body of script. ##
2431 ## -------------------- ##
2433 ac_ext=c
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440 ac_aux_dir=
2441 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2442 if test -f "$ac_dir/install-sh"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/install-sh -c"
2445 break
2446 elif test -f "$ac_dir/install.sh"; then
2447 ac_aux_dir=$ac_dir
2448 ac_install_sh="$ac_aux_dir/install.sh -c"
2449 break
2450 elif test -f "$ac_dir/shtool"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/shtool install -c"
2453 break
2455 done
2456 if test -z "$ac_aux_dir"; then
2457 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2460 # These three variables are undocumented and unsupported,
2461 # and are intended to be withdrawn in a future Autoconf release.
2462 # They can cause serious problems if a builder's source tree is in a directory
2463 # whose full name contains unusual characters.
2464 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2465 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2466 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2469 # Make sure we can run config.sub.
2470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2474 $as_echo_n "checking build system type... " >&6; }
2475 if ${ac_cv_build+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 ac_build_alias=$build_alias
2479 test "x$ac_build_alias" = x &&
2480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2481 test "x$ac_build_alias" = x &&
2482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2488 $as_echo "$ac_cv_build" >&6; }
2489 case $ac_cv_build in
2490 *-*-*) ;;
2491 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2492 esac
2493 build=$ac_cv_build
2494 ac_save_IFS=$IFS; IFS='-'
2495 set x $ac_cv_build
2496 shift
2497 build_cpu=$1
2498 build_vendor=$2
2499 shift; shift
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2502 build_os=$*
2503 IFS=$ac_save_IFS
2504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2508 $as_echo_n "checking host system type... " >&6; }
2509 if ${ac_cv_host+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test "x$host_alias" = x; then
2513 ac_cv_host=$ac_cv_build
2514 else
2515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2521 $as_echo "$ac_cv_host" >&6; }
2522 case $ac_cv_host in
2523 *-*-*) ;;
2524 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2525 esac
2526 host=$ac_cv_host
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_host
2529 shift
2530 host_cpu=$1
2531 host_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 host_os=$*
2536 IFS=$ac_save_IFS
2537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2541 $as_echo_n "checking target system type... " >&6; }
2542 if ${ac_cv_target+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test "x$target_alias" = x; then
2546 ac_cv_target=$ac_cv_host
2547 else
2548 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2549 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2554 $as_echo "$ac_cv_target" >&6; }
2555 case $ac_cv_target in
2556 *-*-*) ;;
2557 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2558 esac
2559 target=$ac_cv_target
2560 ac_save_IFS=$IFS; IFS='-'
2561 set x $ac_cv_target
2562 shift
2563 target_cpu=$1
2564 target_vendor=$2
2565 shift; shift
2566 # Remember, the first character of IFS is used to create $*,
2567 # except with old shells:
2568 target_os=$*
2569 IFS=$ac_save_IFS
2570 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2573 # The aliases save the names the user supplied, while $host etc.
2574 # will get canonicalized.
2575 test -n "$target_alias" &&
2576 test "$program_prefix$program_suffix$program_transform_name" = \
2577 NONENONEs,x,x, &&
2578 program_prefix=${target_alias}-
2581 am__api_version='1.11'
2583 # Find a good install program. We prefer a C program (faster),
2584 # so one script is as good as another. But avoid the broken or
2585 # incompatible versions:
2586 # SysV /etc/install, /usr/sbin/install
2587 # SunOS /usr/etc/install
2588 # IRIX /sbin/install
2589 # AIX /bin/install
2590 # AmigaOS /C/install, which installs bootblocks on floppy discs
2591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2594 # OS/2's system install, which has a completely different semantic
2595 # ./install, which can be erroneously created by make from ./install.sh.
2596 # Reject install programs that cannot install multiple files.
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2598 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2599 if test -z "$INSTALL"; then
2600 if ${ac_cv_path_install+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 # Account for people who put trailing slashes in PATH elements.
2609 case $as_dir/ in #((
2610 ./ | .// | /[cC]/* | \
2611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2613 /usr/ucb/* ) ;;
2615 # OSF1 and SCO ODT 3.0 have their own names for install.
2616 # Don't use installbsd from OSF since it installs stuff as root
2617 # by default.
2618 for ac_prog in ginstall scoinst install; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2621 if test $ac_prog = install &&
2622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2623 # AIX install. It has an incompatible calling convention.
2625 elif test $ac_prog = install &&
2626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2627 # program-specific install script used by HP pwplus--don't use.
2629 else
2630 rm -rf conftest.one conftest.two conftest.dir
2631 echo one > conftest.one
2632 echo two > conftest.two
2633 mkdir conftest.dir
2634 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2635 test -s conftest.one && test -s conftest.two &&
2636 test -s conftest.dir/conftest.one &&
2637 test -s conftest.dir/conftest.two
2638 then
2639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2640 break 3
2644 done
2645 done
2647 esac
2649 done
2650 IFS=$as_save_IFS
2652 rm -rf conftest.one conftest.two conftest.dir
2655 if test "${ac_cv_path_install+set}" = set; then
2656 INSTALL=$ac_cv_path_install
2657 else
2658 # As a last resort, use the slow shell script. Don't cache a
2659 # value for INSTALL within a source directory, because that will
2660 # break other packages using the cache if that directory is
2661 # removed, or if the value is a relative name.
2662 INSTALL=$ac_install_sh
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2666 $as_echo "$INSTALL" >&6; }
2668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2669 # It thinks the first close brace ends the variable substitution.
2670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2677 $as_echo_n "checking whether build environment is sane... " >&6; }
2678 # Just in case
2679 sleep 1
2680 echo timestamp > conftest.file
2681 # Reject unsafe characters in $srcdir or the absolute working directory
2682 # name. Accept space and tab only in the latter.
2683 am_lf='
2685 case `pwd` in
2686 *[\\\"\#\$\&\'\`$am_lf]*)
2687 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2688 esac
2689 case $srcdir in
2690 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2691 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2692 esac
2694 # Do `set' in a subshell so we don't clobber the current shell's
2695 # arguments. Must try -L first in case configure is actually a
2696 # symlink; some systems play weird games with the mod time of symlinks
2697 # (eg FreeBSD returns the mod time of the symlink's containing
2698 # directory).
2699 if (
2700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2701 if test "$*" = "X"; then
2702 # -L didn't work.
2703 set X `ls -t "$srcdir/configure" conftest.file`
2705 rm -f conftest.file
2706 if test "$*" != "X $srcdir/configure conftest.file" \
2707 && test "$*" != "X conftest.file $srcdir/configure"; then
2709 # If neither matched, then we have a broken ls. This can happen
2710 # if, for instance, CONFIG_SHELL is bash and it inherits a
2711 # broken ls alias from the environment. This has actually
2712 # happened. Such a system could not be considered "sane".
2713 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2714 alias in your environment" "$LINENO" 5
2717 test "$2" = conftest.file
2719 then
2720 # Ok.
2722 else
2723 as_fn_error $? "newly created file is older than distributed files!
2724 Check your system clock" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728 test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733 # Double any \ or $.
2734 # By default was `s,x,x', remove it if useless.
2735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738 # expand $ac_aux_dir to an absolute path
2739 am_aux_dir=`cd $ac_aux_dir && pwd`
2741 if test x"${MISSING+set}" != xset; then
2742 case $am_aux_dir in
2743 *\ * | *\ *)
2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2747 esac
2749 # Use eval to expand $SHELL
2750 if eval "$MISSING --run true"; then
2751 am_missing_run="$MISSING --run "
2752 else
2753 am_missing_run=
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2755 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2758 if test x"${install_sh}" != xset; then
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 esac
2767 # Installed binaries are usually stripped using `strip' when the user
2768 # run `make install-strip'. However `strip' might not be the right
2769 # tool to use in cross-compilation environments, therefore Automake
2770 # will honor the `STRIP' environment variable to overrule this program.
2771 if test "$cross_compiling" != no; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}strip; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_STRIP+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 STRIP=$ac_cv_prog_STRIP
2801 if test -n "$STRIP"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2803 $as_echo "$STRIP" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$ac_cv_prog_STRIP"; then
2812 ac_ct_STRIP=$STRIP
2813 # Extract the first word of "strip", so it can be a program name with args.
2814 set dummy strip; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_STRIP="strip"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2834 done
2835 done
2836 IFS=$as_save_IFS
2840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841 if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2843 $as_echo "$ac_ct_STRIP" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 STRIP=$ac_ct_STRIP
2860 else
2861 STRIP="$ac_cv_prog_STRIP"
2865 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2868 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if ${ac_cv_path_mkdir+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_prog in mkdir gmkdir; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2886 break 3;;
2887 esac
2888 done
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 test -d ./--version && rmdir ./--version
2896 if test "${ac_cv_path_mkdir+set}" = set; then
2897 MKDIR_P="$ac_cv_path_mkdir -p"
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for MKDIR_P within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 MKDIR_P="$ac_install_sh -d"
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2907 $as_echo "$MKDIR_P" >&6; }
2909 mkdir_p="$MKDIR_P"
2910 case $mkdir_p in
2911 [\\/$]* | ?:[\\/]*) ;;
2912 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2913 esac
2915 for ac_prog in gawk mawk nawk awk
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_AWK+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$AWK"; then
2925 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_AWK="$ac_prog"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 AWK=$ac_cv_prog_AWK
2945 if test -n "$AWK"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2947 $as_echo "$AWK" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2954 test -n "$AWK" && break
2955 done
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2958 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2959 set x ${MAKE-make}
2960 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2961 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 cat >conftest.make <<\_ACEOF
2965 SHELL = /bin/sh
2966 all:
2967 @echo '@@@%%%=$(MAKE)=@@@%%%'
2968 _ACEOF
2969 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2970 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2971 *@@@%%%=?*=@@@%%%*)
2972 eval ac_cv_prog_make_${ac_make}_set=yes;;
2974 eval ac_cv_prog_make_${ac_make}_set=no;;
2975 esac
2976 rm -f conftest.make
2978 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981 SET_MAKE=
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 SET_MAKE="MAKE=${MAKE-make}"
2988 rm -rf .tst 2>/dev/null
2989 mkdir .tst 2>/dev/null
2990 if test -d .tst; then
2991 am__leading_dot=.
2992 else
2993 am__leading_dot=_
2995 rmdir .tst 2>/dev/null
2997 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2998 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2999 # is not polluted with repeated "-I."
3000 am__isrc=' -I$(srcdir)'
3001 # test to see if srcdir already configured
3002 if test -f $srcdir/config.status; then
3003 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3007 # test whether we have cygpath
3008 if test -z "$CYGPATH_W"; then
3009 if (cygpath --version) >/dev/null 2>/dev/null; then
3010 CYGPATH_W='cygpath -w'
3011 else
3012 CYGPATH_W=echo
3017 # Define the identity of the package.
3018 PACKAGE='log4cplus'
3019 VERSION='1.0.4'
3022 # Some tools Automake needs.
3024 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038 # We need awk for the "check" target. The system "awk" is bad on
3039 # some platforms.
3040 # Always define AMTAR for backward compatibility.
3042 AMTAR=${AMTAR-"${am_missing_run}tar"}
3044 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3052 # +1 : ? : +1 == new interface that does not break old one
3053 # +1 : ? : 0 == new interfac that breaks old one
3054 # ? : ? : 0 == no new interfaces, but breaks apps
3055 # ? :+1 : ? == just some internal changes, nothing breaks but might work
3056 # better
3057 # CURRENT : REVISION : AGE
3058 LT_VERSION=4:0:0
3065 # Check whether --with-working-locale was given.
3066 if test "${with_working_locale+set}" = set; then :
3067 withval=$with_working_locale;
3068 else
3069 with_working_locale=no
3073 if test "x$with_working_locale" = "xyes"; then :
3074 $as_echo "#define LOG4CPLUS_WORKING_LOCALE 1" >>confdefs.h
3079 # Check whether --enable-debugging was given.
3080 if test "${enable_debugging+set}" = set; then :
3081 enableval=$enable_debugging;
3082 else
3083 enable_debugging=no
3089 if test "x$enable_debugging" = "xyes"; then :
3090 $as_echo "#define LOG4CPLUS_DEBUGGING 1" >>confdefs.h
3092 LOG4CPLUS_NDEBUG=-UNDEBUG
3093 else
3094 LOG4CPLUS_NDEBUG=-DNDEBUG
3099 # Check whether --enable-warnings was given.
3100 if test "${enable_warnings+set}" = set; then :
3101 enableval=$enable_warnings;
3102 else
3103 enable_warnings=yes
3107 ac_ext=cpp
3108 ac_cpp='$CXXCPP $CPPFLAGS'
3109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3112 if test -z "$CXX"; then
3113 if test -n "$CCC"; then
3114 CXX=$CCC
3115 else
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CXX+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CXX"; then
3127 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3142 IFS=$as_save_IFS
3146 CXX=$ac_cv_prog_CXX
3147 if test -n "$CXX"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3149 $as_echo "$CXX" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$CXX" && break
3157 done
3159 if test -z "$CXX"; then
3160 ac_ct_CXX=$CXX
3161 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$ac_ct_CXX"; then
3171 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_ac_ct_CXX="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3184 done
3185 done
3186 IFS=$as_save_IFS
3190 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3191 if test -n "$ac_ct_CXX"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3193 $as_echo "$ac_ct_CXX" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$ac_ct_CXX" && break
3201 done
3203 if test "x$ac_ct_CXX" = x; then
3204 CXX="g++"
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CXX=$ac_ct_CXX
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3220 set X $ac_compile
3221 ac_compiler=$2
3222 for ac_option in --version -v -V -qversion; do
3223 { { ac_try="$ac_compiler $ac_option >&5"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231 ac_status=$?
3232 if test -s conftest.err; then
3233 sed '10a\
3234 ... rest of stderr output deleted ...
3235 10q' conftest.err >conftest.er1
3236 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3241 done
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3247 main ()
3251 return 0;
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3260 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 esac
3273 done
3274 rm -f $ac_rmfiles
3276 if { { ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_link_default") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3294 test -f "$ac_file" || continue
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298 [ab].out )
3299 # We found the default executable, but exeext='' is most
3300 # certainly right.
3301 break;;
3302 *.* )
3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304 then :; else
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3311 # actually working.
3312 break;;
3314 break;;
3315 esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3319 else
3320 ac_file=''
3322 if test -z "$ac_file"; then :
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C++ compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3337 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_link") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 # `rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3363 case $ac_file in
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 break;;
3367 * ) break;;
3368 esac
3369 done
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3382 ac_exeext=$EXEEXT
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385 #include <stdio.h>
3387 main ()
3389 FILE *f = fopen ("conftest.out", "w");
3390 return ferror (f) || fclose (f) != 0;
3393 return 0;
3395 _ACEOF
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402 { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 if { ac_try='./conftest$ac_cv_exeext'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C++ compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3455 return 0;
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3495 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3502 main ()
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3509 return 0;
3511 _ACEOF
3512 if ac_fn_cxx_try_compile "$LINENO"; then :
3513 ac_compiler_gnu=yes
3514 else
3515 ac_compiler_gnu=no
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3522 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524 GXX=yes
3525 else
3526 GXX=
3528 ac_test_CXXFLAGS=${CXXFLAGS+set}
3529 ac_save_CXXFLAGS=$CXXFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3531 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3532 if ${ac_cv_prog_cxx_g+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3536 ac_cxx_werror_flag=yes
3537 ac_cv_prog_cxx_g=no
3538 CXXFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 main ()
3547 return 0;
3549 _ACEOF
3550 if ac_fn_cxx_try_compile "$LINENO"; then :
3551 ac_cv_prog_cxx_g=yes
3552 else
3553 CXXFLAGS=""
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3558 main ()
3562 return 0;
3564 _ACEOF
3565 if ac_fn_cxx_try_compile "$LINENO"; then :
3567 else
3568 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3569 CXXFLAGS="-g"
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_cxx_try_compile "$LINENO"; then :
3582 ac_cv_prog_cxx_g=yes
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3592 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594 CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596 if test "$GXX" = yes; then
3597 CXXFLAGS="-g -O2"
3598 else
3599 CXXFLAGS="-g"
3601 else
3602 if test "$GXX" = yes; then
3603 CXXFLAGS="-O2"
3604 else
3605 CXXFLAGS=
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 DEPDIR="${am__leading_dot}deps"
3615 ac_config_commands="$ac_config_commands depfiles"
3618 am_make=${MAKE-make}
3619 cat > confinc << 'END'
3620 am__doit:
3621 @echo this is the am__doit target
3622 .PHONY: am__doit
3624 # If we don't find an include directive, just comment out the code.
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3626 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3627 am__include="#"
3628 am__quote=
3629 _am_result=none
3630 # First try GNU make style include.
3631 echo "include confinc" > confmf
3632 # Ignore all kinds of additional output from `make'.
3633 case `$am_make -s -f confmf 2> /dev/null` in #(
3634 *the\ am__doit\ target*)
3635 am__include=include
3636 am__quote=
3637 _am_result=GNU
3639 esac
3640 # Now try BSD make style include.
3641 if test "$am__include" = "#"; then
3642 echo '.include "confinc"' > confmf
3643 case `$am_make -s -f confmf 2> /dev/null` in #(
3644 *the\ am__doit\ target*)
3645 am__include=.include
3646 am__quote="\""
3647 _am_result=BSD
3649 esac
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3654 $as_echo "$_am_result" >&6; }
3655 rm -f confinc confmf
3657 # Check whether --enable-dependency-tracking was given.
3658 if test "${enable_dependency_tracking+set}" = set; then :
3659 enableval=$enable_dependency_tracking;
3662 if test "x$enable_dependency_tracking" != xno; then
3663 am_depcomp="$ac_aux_dir/depcomp"
3664 AMDEPBACKSLASH='\'
3666 if test "x$enable_dependency_tracking" != xno; then
3667 AMDEP_TRUE=
3668 AMDEP_FALSE='#'
3669 else
3670 AMDEP_TRUE='#'
3671 AMDEP_FALSE=
3676 depcc="$CXX" am_compiler_list=
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3679 $as_echo_n "checking dependency style of $depcc... " >&6; }
3680 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3684 # We make a subdir and do the tests there. Otherwise we can end up
3685 # making bogus files that we don't know about and never remove. For
3686 # instance it was reported that on HP-UX the gcc test will end up
3687 # making a dummy file named `D' -- because `-MD' means `put the output
3688 # in D'.
3689 mkdir conftest.dir
3690 # Copy depcomp to subdir because otherwise we won't find it if we're
3691 # using a relative directory.
3692 cp "$am_depcomp" conftest.dir
3693 cd conftest.dir
3694 # We will build objects and dependencies in a subdirectory because
3695 # it helps to detect inapplicable dependency modes. For instance
3696 # both Tru64's cc and ICC support -MD to output dependencies as a
3697 # side effect of compilation, but ICC will put the dependencies in
3698 # the current directory while Tru64 will put them in the object
3699 # directory.
3700 mkdir sub
3702 am_cv_CXX_dependencies_compiler_type=none
3703 if test "$am_compiler_list" = ""; then
3704 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3706 am__universal=false
3707 case " $depcc " in #(
3708 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3709 esac
3711 for depmode in $am_compiler_list; do
3712 # Setup a source with many dependencies, because some compilers
3713 # like to wrap large dependency lists on column 80 (with \), and
3714 # we should not choose a depcomp mode which is confused by this.
3716 # We need to recreate these files for each test, as the compiler may
3717 # overwrite some of them when testing with obscure command lines.
3718 # This happens at least with the AIX C compiler.
3719 : > sub/conftest.c
3720 for i in 1 2 3 4 5 6; do
3721 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3722 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3723 # Solaris 8's {/usr,}/bin/sh.
3724 touch sub/conftst$i.h
3725 done
3726 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3728 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3729 # mode. It turns out that the SunPro C++ compiler does not properly
3730 # handle `-M -o', and we need to detect this. Also, some Intel
3731 # versions had trouble with output in subdirs
3732 am__obj=sub/conftest.${OBJEXT-o}
3733 am__minus_obj="-o $am__obj"
3734 case $depmode in
3735 gcc)
3736 # This depmode causes a compiler race in universal mode.
3737 test "$am__universal" = false || continue
3739 nosideeffect)
3740 # after this tag, mechanisms are not by side-effect, so they'll
3741 # only be used when explicitly requested
3742 if test "x$enable_dependency_tracking" = xyes; then
3743 continue
3744 else
3745 break
3748 msvisualcpp | msvcmsys)
3749 # This compiler won't grok `-c -o', but also, the minuso test has
3750 # not run yet. These depmodes are late enough in the game, and
3751 # so weak that their functioning should not be impacted.
3752 am__obj=conftest.${OBJEXT-o}
3753 am__minus_obj=
3755 none) break ;;
3756 esac
3757 if depmode=$depmode \
3758 source=sub/conftest.c object=$am__obj \
3759 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3760 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3761 >/dev/null 2>conftest.err &&
3762 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3763 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3764 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3765 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3766 # icc doesn't choke on unknown options, it will just issue warnings
3767 # or remarks (even with -Werror). So we grep stderr for any message
3768 # that says an option was ignored or not supported.
3769 # When given -MP, icc 7.0 and 7.1 complain thusly:
3770 # icc: Command line warning: ignoring option '-M'; no argument required
3771 # The diagnosis changed in icc 8.0:
3772 # icc: Command line remark: option '-MP' not supported
3773 if (grep 'ignoring option' conftest.err ||
3774 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3775 am_cv_CXX_dependencies_compiler_type=$depmode
3776 break
3779 done
3781 cd ..
3782 rm -rf conftest.dir
3783 else
3784 am_cv_CXX_dependencies_compiler_type=none
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3789 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3790 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3793 test "x$enable_dependency_tracking" != xno \
3794 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3795 am__fastdepCXX_TRUE=
3796 am__fastdepCXX_FALSE='#'
3797 else
3798 am__fastdepCXX_TRUE='#'
3799 am__fastdepCXX_FALSE=
3803 ac_ext=cpp
3804 ac_cpp='$CXXCPP $CPPFLAGS'
3805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3809 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3810 if test -z "$CXXCPP"; then
3811 if ${ac_cv_prog_CXXCPP+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 # Double quotes because CXXCPP needs to be expanded
3815 for CXXCPP in "$CXX -E" "/lib/cpp"
3817 ac_preproc_ok=false
3818 for ac_cxx_preproc_warn_flag in '' yes
3820 # Use a header file that comes with gcc, so configuring glibc
3821 # with a fresh cross-compiler works.
3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823 # <limits.h> exists even on freestanding compilers.
3824 # On the NeXT, cc -E runs the code through the compiler's parser,
3825 # not just through cpp. "Syntax error" is here to catch this case.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #ifdef __STDC__
3829 # include <limits.h>
3830 #else
3831 # include <assert.h>
3832 #endif
3833 Syntax error
3834 _ACEOF
3835 if ac_fn_cxx_try_cpp "$LINENO"; then :
3837 else
3838 # Broken: fails on valid input.
3839 continue
3841 rm -f conftest.err conftest.i conftest.$ac_ext
3843 # OK, works on sane cases. Now check whether nonexistent headers
3844 # can be detected and how.
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3848 _ACEOF
3849 if ac_fn_cxx_try_cpp "$LINENO"; then :
3850 # Broken: success on invalid input.
3851 continue
3852 else
3853 # Passes both tests.
3854 ac_preproc_ok=:
3855 break
3857 rm -f conftest.err conftest.i conftest.$ac_ext
3859 done
3860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861 rm -f conftest.i conftest.err conftest.$ac_ext
3862 if $ac_preproc_ok; then :
3863 break
3866 done
3867 ac_cv_prog_CXXCPP=$CXXCPP
3870 CXXCPP=$ac_cv_prog_CXXCPP
3871 else
3872 ac_cv_prog_CXXCPP=$CXXCPP
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3875 $as_echo "$CXXCPP" >&6; }
3876 ac_preproc_ok=false
3877 for ac_cxx_preproc_warn_flag in '' yes
3879 # Use a header file that comes with gcc, so configuring glibc
3880 # with a fresh cross-compiler works.
3881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3882 # <limits.h> exists even on freestanding compilers.
3883 # On the NeXT, cc -E runs the code through the compiler's parser,
3884 # not just through cpp. "Syntax error" is here to catch this case.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #ifdef __STDC__
3888 # include <limits.h>
3889 #else
3890 # include <assert.h>
3891 #endif
3892 Syntax error
3893 _ACEOF
3894 if ac_fn_cxx_try_cpp "$LINENO"; then :
3896 else
3897 # Broken: fails on valid input.
3898 continue
3900 rm -f conftest.err conftest.i conftest.$ac_ext
3902 # OK, works on sane cases. Now check whether nonexistent headers
3903 # can be detected and how.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <ac_nonexistent.h>
3907 _ACEOF
3908 if ac_fn_cxx_try_cpp "$LINENO"; then :
3909 # Broken: success on invalid input.
3910 continue
3911 else
3912 # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3916 rm -f conftest.err conftest.i conftest.$ac_ext
3918 done
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.i conftest.err conftest.$ac_ext
3921 if $ac_preproc_ok; then :
3923 else
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3927 See \`config.log' for more details" "$LINENO" 5; }
3930 ac_ext=c
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 ac_ext=cpp
3937 ac_cpp='$CXXCPP $CPPFLAGS'
3938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3943 case "$target_os" in #(
3944 mingw*) :
3945 CPPFLAGS="${CPPFLAGS} -U__STRICT_ANSI__"
3946 CPPFLAGS="${CPPFLAGS} -DWIN32 -D_WIN32"
3947 use_winsock_sockets=yes ;; #(
3948 *) :
3950 esac
3952 if test "x$use_winsock_sockets" = "xyes"; then
3953 WINSOCK_SOCKETS_TRUE=
3954 WINSOCK_SOCKETS_FALSE='#'
3955 else
3956 WINSOCK_SOCKETS_TRUE='#'
3957 WINSOCK_SOCKETS_FALSE=
3963 case `pwd` in
3964 *\ * | *\ *)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3966 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3967 esac
3971 macro_version='2.2.10'
3972 macro_revision='1.3175'
3986 ltmain="$ac_aux_dir/ltmain.sh"
3988 # Backslashify metacharacters that are still active within
3989 # double-quoted strings.
3990 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3992 # Same as above, but do not quote variable references.
3993 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3995 # Sed substitution to delay expansion of an escaped shell variable in a
3996 # double_quote_subst'ed string.
3997 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3999 # Sed substitution to delay expansion of an escaped single quote.
4000 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4002 # Sed substitution to avoid accidental globbing in evaled expressions
4003 no_glob_subst='s/\*/\\\*/g'
4005 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4010 $as_echo_n "checking how to print strings... " >&6; }
4011 # Test print first, because it will be a builtin if present.
4012 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4013 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4014 ECHO='print -r --'
4015 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4016 ECHO='printf %s\n'
4017 else
4018 # Use this function as a fallback that always works.
4019 func_fallback_echo ()
4021 eval 'cat <<_LTECHO_EOF
4023 _LTECHO_EOF'
4025 ECHO='func_fallback_echo'
4028 # func_echo_all arg...
4029 # Invoke $ECHO with all args, space-separated.
4030 func_echo_all ()
4032 $ECHO ""
4035 case "$ECHO" in
4036 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4037 $as_echo "printf" >&6; } ;;
4038 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4039 $as_echo "print -r" >&6; } ;;
4040 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4041 $as_echo "cat" >&6; } ;;
4042 esac
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 if test -n "$ac_tool_prefix"; then
4063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if test -n "$CC"; then
4071 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4086 IFS=$as_save_IFS
4090 CC=$ac_cv_prog_CC
4091 if test -n "$CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093 $as_echo "$CC" >&6; }
4094 else
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4101 if test -z "$ac_cv_prog_CC"; then
4102 ac_ct_CC=$CC
4103 # Extract the first word of "gcc", so it can be a program name with args.
4104 set dummy gcc; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if test -n "$ac_ct_CC"; then
4111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_ac_ct_CC="gcc"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4131 if test -n "$ac_ct_CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4133 $as_echo "$ac_ct_CC" >&6; }
4134 else
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4139 if test "x$ac_ct_CC" = x; then
4140 CC=""
4141 else
4142 case $cross_compiling:$ac_tool_warned in
4143 yes:)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned=yes ;;
4147 esac
4148 CC=$ac_ct_CC
4150 else
4151 CC="$ac_cv_prog_CC"
4154 if test -z "$CC"; then
4155 if test -n "$ac_tool_prefix"; then
4156 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}cc; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_CC="${ac_tool_prefix}cc"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4195 if test -z "$CC"; then
4196 # Extract the first word of "cc", so it can be a program name with args.
4197 set dummy cc; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_CC+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4205 else
4206 ac_prog_rejected=no
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4215 ac_prog_rejected=yes
4216 continue
4218 ac_cv_prog_CC="cc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4226 if test $ac_prog_rejected = yes; then
4227 # We found a bogon in the path, so make sure we never use it.
4228 set dummy $ac_cv_prog_CC
4229 shift
4230 if test $# != 0; then
4231 # We chose a different compiler from the bogus one.
4232 # However, it has the same basename, so the bogon will be chosen
4233 # first if we set CC to just the basename; use the full file name.
4234 shift
4235 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4240 CC=$ac_cv_prog_CC
4241 if test -n "$CC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4243 $as_echo "$CC" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4251 if test -z "$CC"; then
4252 if test -n "$ac_tool_prefix"; then
4253 for ac_prog in cl.exe
4255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_CC+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$CC"; then
4263 ac_cv_prog_CC="$CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 CC=$ac_cv_prog_CC
4283 if test -n "$CC"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4285 $as_echo "$CC" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4292 test -n "$CC" && break
4293 done
4295 if test -z "$CC"; then
4296 ac_ct_CC=$CC
4297 for ac_prog in cl.exe
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="$ac_prog"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4320 done
4321 done
4322 IFS=$as_save_IFS
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 $as_echo "$ac_ct_CC" >&6; }
4330 else
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4336 test -n "$ac_ct_CC" && break
4337 done
4339 if test "x$ac_ct_CC" = x; then
4340 CC=""
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 CC=$ac_ct_CC
4355 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4357 as_fn_error $? "no acceptable C compiler found in \$PATH
4358 See \`config.log' for more details" "$LINENO" 5; }
4360 # Provide some information about the compiler.
4361 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4362 set X $ac_compile
4363 ac_compiler=$2
4364 for ac_option in --version -v -V -qversion; do
4365 { { ac_try="$ac_compiler $ac_option >&5"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4373 ac_status=$?
4374 if test -s conftest.err; then
4375 sed '10a\
4376 ... rest of stderr output deleted ...
4377 10q' conftest.err >conftest.er1
4378 cat conftest.er1 >&5
4380 rm -f conftest.er1 conftest.err
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }
4383 done
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4386 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4387 if ${ac_cv_c_compiler_gnu+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4394 main ()
4396 #ifndef __GNUC__
4397 choke me
4398 #endif
4401 return 0;
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405 ac_compiler_gnu=yes
4406 else
4407 ac_compiler_gnu=no
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4415 if test $ac_compiler_gnu = yes; then
4416 GCC=yes
4417 else
4418 GCC=
4420 ac_test_CFLAGS=${CFLAGS+set}
4421 ac_save_CFLAGS=$CFLAGS
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4423 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4424 if ${ac_cv_prog_cc_g+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 ac_save_c_werror_flag=$ac_c_werror_flag
4428 ac_c_werror_flag=yes
4429 ac_cv_prog_cc_g=no
4430 CFLAGS="-g"
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4435 main ()
4439 return 0;
4441 _ACEOF
4442 if ac_fn_c_try_compile "$LINENO"; then :
4443 ac_cv_prog_cc_g=yes
4444 else
4445 CFLAGS=""
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4450 main ()
4454 return 0;
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4459 else
4460 ac_c_werror_flag=$ac_save_c_werror_flag
4461 CFLAGS="-g"
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4466 main ()
4470 return 0;
4472 _ACEOF
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_g=yes
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 ac_c_werror_flag=$ac_save_c_werror_flag
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4484 $as_echo "$ac_cv_prog_cc_g" >&6; }
4485 if test "$ac_test_CFLAGS" = set; then
4486 CFLAGS=$ac_save_CFLAGS
4487 elif test $ac_cv_prog_cc_g = yes; then
4488 if test "$GCC" = yes; then
4489 CFLAGS="-g -O2"
4490 else
4491 CFLAGS="-g"
4493 else
4494 if test "$GCC" = yes; then
4495 CFLAGS="-O2"
4496 else
4497 CFLAGS=
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4501 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4502 if ${ac_cv_prog_cc_c89+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 ac_cv_prog_cc_c89=no
4506 ac_save_CC=$CC
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <stdarg.h>
4510 #include <stdio.h>
4511 #include <sys/types.h>
4512 #include <sys/stat.h>
4513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4514 struct buf { int x; };
4515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4516 static char *e (p, i)
4517 char **p;
4518 int i;
4520 return p[i];
4522 static char *f (char * (*g) (char **, int), char **p, ...)
4524 char *s;
4525 va_list v;
4526 va_start (v,p);
4527 s = g (p, va_arg (v,int));
4528 va_end (v);
4529 return s;
4532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4533 function prototypes and stuff, but not '\xHH' hex character constants.
4534 These don't provoke an error unfortunately, instead are silently treated
4535 as 'x'. The following induces an error, until -std is added to get
4536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4537 array size at least. It's necessary to write '\x00'==0 to get something
4538 that's true only with -std. */
4539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4542 inside strings and character constants. */
4543 #define FOO(x) 'x'
4544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4546 int test (int i, double x);
4547 struct s1 {int (*f) (int a);};
4548 struct s2 {int (*f) (double a);};
4549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4550 int argc;
4551 char **argv;
4553 main ()
4555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4557 return 0;
4559 _ACEOF
4560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4563 CC="$ac_save_CC $ac_arg"
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_prog_cc_c89=$ac_arg
4567 rm -f core conftest.err conftest.$ac_objext
4568 test "x$ac_cv_prog_cc_c89" != "xno" && break
4569 done
4570 rm -f conftest.$ac_ext
4571 CC=$ac_save_CC
4574 # AC_CACHE_VAL
4575 case "x$ac_cv_prog_cc_c89" in
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4578 $as_echo "none needed" >&6; } ;;
4579 xno)
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4581 $as_echo "unsupported" >&6; } ;;
4583 CC="$CC $ac_cv_prog_cc_c89"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4586 esac
4587 if test "x$ac_cv_prog_cc_c89" != xno; then :
4591 ac_ext=cpp
4592 ac_cpp='$CXXCPP $CPPFLAGS'
4593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597 depcc="$CC" am_compiler_list=
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4600 $as_echo_n "checking dependency style of $depcc... " >&6; }
4601 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605 # We make a subdir and do the tests there. Otherwise we can end up
4606 # making bogus files that we don't know about and never remove. For
4607 # instance it was reported that on HP-UX the gcc test will end up
4608 # making a dummy file named `D' -- because `-MD' means `put the output
4609 # in D'.
4610 mkdir conftest.dir
4611 # Copy depcomp to subdir because otherwise we won't find it if we're
4612 # using a relative directory.
4613 cp "$am_depcomp" conftest.dir
4614 cd conftest.dir
4615 # We will build objects and dependencies in a subdirectory because
4616 # it helps to detect inapplicable dependency modes. For instance
4617 # both Tru64's cc and ICC support -MD to output dependencies as a
4618 # side effect of compilation, but ICC will put the dependencies in
4619 # the current directory while Tru64 will put them in the object
4620 # directory.
4621 mkdir sub
4623 am_cv_CC_dependencies_compiler_type=none
4624 if test "$am_compiler_list" = ""; then
4625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627 am__universal=false
4628 case " $depcc " in #(
4629 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630 esac
4632 for depmode in $am_compiler_list; do
4633 # Setup a source with many dependencies, because some compilers
4634 # like to wrap large dependency lists on column 80 (with \), and
4635 # we should not choose a depcomp mode which is confused by this.
4637 # We need to recreate these files for each test, as the compiler may
4638 # overwrite some of them when testing with obscure command lines.
4639 # This happens at least with the AIX C compiler.
4640 : > sub/conftest.c
4641 for i in 1 2 3 4 5 6; do
4642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4644 # Solaris 8's {/usr,}/bin/sh.
4645 touch sub/conftst$i.h
4646 done
4647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4649 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4650 # mode. It turns out that the SunPro C++ compiler does not properly
4651 # handle `-M -o', and we need to detect this. Also, some Intel
4652 # versions had trouble with output in subdirs
4653 am__obj=sub/conftest.${OBJEXT-o}
4654 am__minus_obj="-o $am__obj"
4655 case $depmode in
4656 gcc)
4657 # This depmode causes a compiler race in universal mode.
4658 test "$am__universal" = false || continue
4660 nosideeffect)
4661 # after this tag, mechanisms are not by side-effect, so they'll
4662 # only be used when explicitly requested
4663 if test "x$enable_dependency_tracking" = xyes; then
4664 continue
4665 else
4666 break
4669 msvisualcpp | msvcmsys)
4670 # This compiler won't grok `-c -o', but also, the minuso test has
4671 # not run yet. These depmodes are late enough in the game, and
4672 # so weak that their functioning should not be impacted.
4673 am__obj=conftest.${OBJEXT-o}
4674 am__minus_obj=
4676 none) break ;;
4677 esac
4678 if depmode=$depmode \
4679 source=sub/conftest.c object=$am__obj \
4680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4681 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4682 >/dev/null 2>conftest.err &&
4683 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4684 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4686 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687 # icc doesn't choke on unknown options, it will just issue warnings
4688 # or remarks (even with -Werror). So we grep stderr for any message
4689 # that says an option was ignored or not supported.
4690 # When given -MP, icc 7.0 and 7.1 complain thusly:
4691 # icc: Command line warning: ignoring option '-M'; no argument required
4692 # The diagnosis changed in icc 8.0:
4693 # icc: Command line remark: option '-MP' not supported
4694 if (grep 'ignoring option' conftest.err ||
4695 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696 am_cv_CC_dependencies_compiler_type=$depmode
4697 break
4700 done
4702 cd ..
4703 rm -rf conftest.dir
4704 else
4705 am_cv_CC_dependencies_compiler_type=none
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4710 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4711 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4714 test "x$enable_dependency_tracking" != xno \
4715 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4716 am__fastdepCC_TRUE=
4717 am__fastdepCC_FALSE='#'
4718 else
4719 am__fastdepCC_TRUE='#'
4720 am__fastdepCC_FALSE=
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4726 if ${ac_cv_path_SED+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4730 for ac_i in 1 2 3 4 5 6 7; do
4731 ac_script="$ac_script$as_nl$ac_script"
4732 done
4733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4734 { ac_script=; unset ac_script;}
4735 if test -z "$SED"; then
4736 ac_path_SED_found=false
4737 # Loop through the user's path and test for each of PROGNAME-LIST
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_prog in sed gsed; do
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4746 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4747 # Check for GNU ac_path_SED and select it if it is found.
4748 # Check for GNU $ac_path_SED
4749 case `"$ac_path_SED" --version 2>&1` in
4750 *GNU*)
4751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4753 ac_count=0
4754 $as_echo_n 0123456789 >"conftest.in"
4755 while :
4757 cat "conftest.in" "conftest.in" >"conftest.tmp"
4758 mv "conftest.tmp" "conftest.in"
4759 cp "conftest.in" "conftest.nl"
4760 $as_echo '' >> "conftest.nl"
4761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4763 as_fn_arith $ac_count + 1 && ac_count=$as_val
4764 if test $ac_count -gt ${ac_path_SED_max-0}; then
4765 # Best one so far, save it but keep looking for a better one
4766 ac_cv_path_SED="$ac_path_SED"
4767 ac_path_SED_max=$ac_count
4769 # 10*(2^10) chars as input seems more than enough
4770 test $ac_count -gt 10 && break
4771 done
4772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4773 esac
4775 $ac_path_SED_found && break 3
4776 done
4777 done
4778 done
4779 IFS=$as_save_IFS
4780 if test -z "$ac_cv_path_SED"; then
4781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4783 else
4784 ac_cv_path_SED=$SED
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4789 $as_echo "$ac_cv_path_SED" >&6; }
4790 SED="$ac_cv_path_SED"
4791 rm -f conftest.sed
4793 test -z "$SED" && SED=sed
4794 Xsed="$SED -e 1s/^X//"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808 if ${ac_cv_path_GREP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -z "$GREP"; then
4812 ac_path_GREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in grep ggrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824 # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4829 ac_count=0
4830 $as_echo_n 0123456789 >"conftest.in"
4831 while :
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'GREP' >> "conftest.nl"
4837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_GREP="$ac_path_GREP"
4843 ac_path_GREP_max=$ac_count
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4851 $ac_path_GREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_GREP"; then
4857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4859 else
4860 ac_cv_path_GREP=$GREP
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 $as_echo "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 $as_echo_n "checking for egrep... " >&6; }
4871 if ${ac_cv_path_EGREP+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875 then ac_cv_path_EGREP="$GREP -E"
4876 else
4877 if test -z "$EGREP"; then
4878 ac_path_EGREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in egrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4889 # Check for GNU ac_path_EGREP and select it if it is found.
4890 # Check for GNU $ac_path_EGREP
4891 case `"$ac_path_EGREP" --version 2>&1` in
4892 *GNU*)
4893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4895 ac_count=0
4896 $as_echo_n 0123456789 >"conftest.in"
4897 while :
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'EGREP' >> "conftest.nl"
4903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_EGREP="$ac_path_EGREP"
4909 ac_path_EGREP_max=$ac_count
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4913 done
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 esac
4917 $ac_path_EGREP_found && break 3
4918 done
4919 done
4920 done
4921 IFS=$as_save_IFS
4922 if test -z "$ac_cv_path_EGREP"; then
4923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4925 else
4926 ac_cv_path_EGREP=$EGREP
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932 $as_echo "$ac_cv_path_EGREP" >&6; }
4933 EGREP="$ac_cv_path_EGREP"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4937 $as_echo_n "checking for fgrep... " >&6; }
4938 if ${ac_cv_path_FGREP+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4942 then ac_cv_path_FGREP="$GREP -F"
4943 else
4944 if test -z "$FGREP"; then
4945 ac_path_FGREP_found=false
4946 # Loop through the user's path and test for each of PROGNAME-LIST
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_prog in fgrep; do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4955 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4956 # Check for GNU ac_path_FGREP and select it if it is found.
4957 # Check for GNU $ac_path_FGREP
4958 case `"$ac_path_FGREP" --version 2>&1` in
4959 *GNU*)
4960 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4962 ac_count=0
4963 $as_echo_n 0123456789 >"conftest.in"
4964 while :
4966 cat "conftest.in" "conftest.in" >"conftest.tmp"
4967 mv "conftest.tmp" "conftest.in"
4968 cp "conftest.in" "conftest.nl"
4969 $as_echo 'FGREP' >> "conftest.nl"
4970 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4972 as_fn_arith $ac_count + 1 && ac_count=$as_val
4973 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4974 # Best one so far, save it but keep looking for a better one
4975 ac_cv_path_FGREP="$ac_path_FGREP"
4976 ac_path_FGREP_max=$ac_count
4978 # 10*(2^10) chars as input seems more than enough
4979 test $ac_count -gt 10 && break
4980 done
4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4982 esac
4984 $ac_path_FGREP_found && break 3
4985 done
4986 done
4987 done
4988 IFS=$as_save_IFS
4989 if test -z "$ac_cv_path_FGREP"; then
4990 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4992 else
4993 ac_cv_path_FGREP=$FGREP
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4999 $as_echo "$ac_cv_path_FGREP" >&6; }
5000 FGREP="$ac_cv_path_FGREP"
5003 test -z "$GREP" && GREP=grep
5023 # Check whether --with-gnu-ld was given.
5024 if test "${with_gnu_ld+set}" = set; then :
5025 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5026 else
5027 with_gnu_ld=no
5030 ac_prog=ld
5031 if test "$GCC" = yes; then
5032 # Check if gcc -print-prog-name=ld gives a path.
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5034 $as_echo_n "checking for ld used by $CC... " >&6; }
5035 case $host in
5036 *-*-mingw*)
5037 # gcc leaves a trailing carriage return which upsets mingw
5038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5041 esac
5042 case $ac_prog in
5043 # Accept absolute paths.
5044 [\\/]* | ?:[\\/]*)
5045 re_direlt='/[^/][^/]*/\.\./'
5046 # Canonicalize the pathname of ld
5047 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5048 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5049 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5050 done
5051 test -z "$LD" && LD="$ac_prog"
5054 # If it fails, then pretend we aren't using GCC.
5055 ac_prog=ld
5058 # If it is relative, then search for the first ld in PATH.
5059 with_gnu_ld=unknown
5061 esac
5062 elif test "$with_gnu_ld" = yes; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5064 $as_echo_n "checking for GNU ld... " >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5067 $as_echo_n "checking for non-GNU ld... " >&6; }
5069 if ${lt_cv_path_LD+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -z "$LD"; then
5073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5074 for ac_dir in $PATH; do
5075 IFS="$lt_save_ifs"
5076 test -z "$ac_dir" && ac_dir=.
5077 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5078 lt_cv_path_LD="$ac_dir/$ac_prog"
5079 # Check to see if the program is GNU ld. I'd rather use --version,
5080 # but apparently some variants of GNU ld only accept -v.
5081 # Break only if it was the GNU/non-GNU ld that we prefer.
5082 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5083 *GNU* | *'with BFD'*)
5084 test "$with_gnu_ld" != no && break
5087 test "$with_gnu_ld" != yes && break
5089 esac
5091 done
5092 IFS="$lt_save_ifs"
5093 else
5094 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5098 LD="$lt_cv_path_LD"
5099 if test -n "$LD"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5101 $as_echo "$LD" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5106 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5108 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5109 if ${lt_cv_prog_gnu_ld+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5113 case `$LD -v 2>&1 </dev/null` in
5114 *GNU* | *'with BFD'*)
5115 lt_cv_prog_gnu_ld=yes
5118 lt_cv_prog_gnu_ld=no
5120 esac
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5123 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5124 with_gnu_ld=$lt_cv_prog_gnu_ld
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5135 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5136 if ${lt_cv_path_NM+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$NM"; then
5140 # Let the user override the test.
5141 lt_cv_path_NM="$NM"
5142 else
5143 lt_nm_to_check="${ac_tool_prefix}nm"
5144 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5145 lt_nm_to_check="$lt_nm_to_check nm"
5147 for lt_tmp_nm in $lt_nm_to_check; do
5148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5150 IFS="$lt_save_ifs"
5151 test -z "$ac_dir" && ac_dir=.
5152 tmp_nm="$ac_dir/$lt_tmp_nm"
5153 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5154 # Check to see if the nm accepts a BSD-compat flag.
5155 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5156 # nm: unknown option "B" ignored
5157 # Tru64's nm complains that /dev/null is an invalid object file
5158 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5159 */dev/null* | *'Invalid file or object type'*)
5160 lt_cv_path_NM="$tmp_nm -B"
5161 break
5164 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5165 */dev/null*)
5166 lt_cv_path_NM="$tmp_nm -p"
5167 break
5170 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5171 continue # so that we can try to find one that supports BSD flags
5173 esac
5175 esac
5177 done
5178 IFS="$lt_save_ifs"
5179 done
5180 : ${lt_cv_path_NM=no}
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5184 $as_echo "$lt_cv_path_NM" >&6; }
5185 if test "$lt_cv_path_NM" != "no"; then
5186 NM="$lt_cv_path_NM"
5187 else
5188 # Didn't find any BSD compatible name lister, look for dumpbin.
5189 if test -n "$DUMPBIN"; then :
5190 # Let the user override the test.
5191 else
5192 if test -n "$ac_tool_prefix"; then
5193 for ac_prog in dumpbin "link -dump"
5195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_DUMPBIN+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$DUMPBIN"; then
5203 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5216 done
5217 done
5218 IFS=$as_save_IFS
5222 DUMPBIN=$ac_cv_prog_DUMPBIN
5223 if test -n "$DUMPBIN"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5225 $as_echo "$DUMPBIN" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 test -n "$DUMPBIN" && break
5233 done
5235 if test -z "$DUMPBIN"; then
5236 ac_ct_DUMPBIN=$DUMPBIN
5237 for ac_prog in dumpbin "link -dump"
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$ac_ct_DUMPBIN"; then
5247 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5266 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5267 if test -n "$ac_ct_DUMPBIN"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5269 $as_echo "$ac_ct_DUMPBIN" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5276 test -n "$ac_ct_DUMPBIN" && break
5277 done
5279 if test "x$ac_ct_DUMPBIN" = x; then
5280 DUMPBIN=":"
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288 DUMPBIN=$ac_ct_DUMPBIN
5292 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5293 *COFF*)
5294 DUMPBIN="$DUMPBIN -symbols"
5297 DUMPBIN=:
5299 esac
5302 if test "$DUMPBIN" != ":"; then
5303 NM="$DUMPBIN"
5306 test -z "$NM" && NM=nm
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5314 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5315 if ${lt_cv_nm_interface+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 lt_cv_nm_interface="BSD nm"
5319 echo "int some_variable = 0;" > conftest.$ac_ext
5320 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5321 (eval "$ac_compile" 2>conftest.err)
5322 cat conftest.err >&5
5323 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5325 cat conftest.err >&5
5326 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5327 cat conftest.out >&5
5328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5329 lt_cv_nm_interface="MS dumpbin"
5331 rm -f conftest*
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5334 $as_echo "$lt_cv_nm_interface" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5337 $as_echo_n "checking whether ln -s works... " >&6; }
5338 LN_S=$as_ln_s
5339 if test "$LN_S" = "ln -s"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5341 $as_echo "yes" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5344 $as_echo "no, using $LN_S" >&6; }
5347 # find the maximum length of command line arguments
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5349 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5350 if ${lt_cv_sys_max_cmd_len+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5354 teststring="ABCD"
5356 case $build_os in
5357 msdosdjgpp*)
5358 # On DJGPP, this test can blow up pretty badly due to problems in libc
5359 # (any single argument exceeding 2000 bytes causes a buffer overrun
5360 # during glob expansion). Even if it were fixed, the result of this
5361 # check would be larger than it should be.
5362 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5365 gnu*)
5366 # Under GNU Hurd, this test is not required because there is
5367 # no limit to the length of command line arguments.
5368 # Libtool will interpret -1 as no limit whatsoever
5369 lt_cv_sys_max_cmd_len=-1;
5372 cygwin* | mingw* | cegcc*)
5373 # On Win9x/ME, this test blows up -- it succeeds, but takes
5374 # about 5 minutes as the teststring grows exponentially.
5375 # Worse, since 9x/ME are not pre-emptively multitasking,
5376 # you end up with a "frozen" computer, even though with patience
5377 # the test eventually succeeds (with a max line length of 256k).
5378 # Instead, let's just punt: use the minimum linelength reported by
5379 # all of the supported platforms: 8192 (on NT/2K/XP).
5380 lt_cv_sys_max_cmd_len=8192;
5383 mint*)
5384 # On MiNT this can take a long time and run out of memory.
5385 lt_cv_sys_max_cmd_len=8192;
5388 amigaos*)
5389 # On AmigaOS with pdksh, this test takes hours, literally.
5390 # So we just punt and use a minimum line length of 8192.
5391 lt_cv_sys_max_cmd_len=8192;
5394 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5395 # This has been around since 386BSD, at least. Likely further.
5396 if test -x /sbin/sysctl; then
5397 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5398 elif test -x /usr/sbin/sysctl; then
5399 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5400 else
5401 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5403 # And add a safety zone
5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5408 interix*)
5409 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5410 lt_cv_sys_max_cmd_len=196608
5413 osf*)
5414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5416 # nice to cause kernel panics so lets avoid the loop below.
5417 # First set a reasonable default.
5418 lt_cv_sys_max_cmd_len=16384
5420 if test -x /sbin/sysconfig; then
5421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5423 esac
5426 sco3.2v5*)
5427 lt_cv_sys_max_cmd_len=102400
5429 sysv5* | sco5v6* | sysv4.2uw2*)
5430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5431 if test -n "$kargmax"; then
5432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5433 else
5434 lt_cv_sys_max_cmd_len=32768
5438 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5439 if test -n "$lt_cv_sys_max_cmd_len"; then
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5442 else
5443 # Make teststring a little bigger before we do anything with it.
5444 # a 1K string should be a reasonable start.
5445 for i in 1 2 3 4 5 6 7 8 ; do
5446 teststring=$teststring$teststring
5447 done
5448 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5449 # If test is not a shell built-in, we'll probably end up computing a
5450 # maximum length that is only half of the actual maximum length, but
5451 # we can't tell.
5452 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5453 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5454 test $i != 17 # 1/2 MB should be enough
5456 i=`expr $i + 1`
5457 teststring=$teststring$teststring
5458 done
5459 # Only check the string length outside the loop.
5460 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5461 teststring=
5462 # Add a significant safety factor because C++ compilers can tack on
5463 # massive amounts of additional arguments before passing them to the
5464 # linker. It appears as though 1/2 is a usable value.
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5468 esac
5472 if test -n $lt_cv_sys_max_cmd_len ; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5474 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5477 $as_echo "none" >&6; }
5479 max_cmd_len=$lt_cv_sys_max_cmd_len
5486 : ${CP="cp -f"}
5487 : ${MV="mv -f"}
5488 : ${RM="rm -f"}
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5491 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5492 # Try some XSI features
5493 xsi_shell=no
5494 ( _lt_dummy="a/b/c"
5495 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5496 = c,a/b,, \
5497 && eval 'test $(( 1 + 1 )) -eq 2 \
5498 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5499 && xsi_shell=yes
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5501 $as_echo "$xsi_shell" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5505 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5506 lt_shell_append=no
5507 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5508 >/dev/null 2>&1 \
5509 && lt_shell_append=yes
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5511 $as_echo "$lt_shell_append" >&6; }
5514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5515 lt_unset=unset
5516 else
5517 lt_unset=false
5524 # test EBCDIC or ASCII
5525 case `echo X|tr X '\101'` in
5526 A) # ASCII based system
5527 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5528 lt_SP2NL='tr \040 \012'
5529 lt_NL2SP='tr \015\012 \040\040'
5531 *) # EBCDIC based system
5532 lt_SP2NL='tr \100 \n'
5533 lt_NL2SP='tr \r\n \100\100'
5535 esac
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5546 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5547 if ${lt_cv_ld_reload_flag+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 lt_cv_ld_reload_flag='-r'
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5553 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5554 reload_flag=$lt_cv_ld_reload_flag
5555 case $reload_flag in
5556 "" | " "*) ;;
5557 *) reload_flag=" $reload_flag" ;;
5558 esac
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 case $host_os in
5561 darwin*)
5562 if test "$GCC" = yes; then
5563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5564 else
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568 esac
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_OBJDUMP+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$OBJDUMP"; then
5587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5606 OBJDUMP=$ac_cv_prog_OBJDUMP
5607 if test -n "$OBJDUMP"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5609 $as_echo "$OBJDUMP" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_OBJDUMP"; then
5618 ac_ct_OBJDUMP=$OBJDUMP
5619 # Extract the first word of "objdump", so it can be a program name with args.
5620 set dummy objdump; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 if test -n "$ac_ct_OBJDUMP"; then
5627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5646 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5647 if test -n "$ac_ct_OBJDUMP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5649 $as_echo "$ac_ct_OBJDUMP" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_OBJDUMP" = x; then
5656 OBJDUMP="false"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 OBJDUMP=$ac_ct_OBJDUMP
5666 else
5667 OBJDUMP="$ac_cv_prog_OBJDUMP"
5670 test -z "$OBJDUMP" && OBJDUMP=objdump
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5678 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5679 if ${lt_cv_deplibs_check_method+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 lt_cv_file_magic_cmd='$MAGIC_CMD'
5683 lt_cv_file_magic_test_file=
5684 lt_cv_deplibs_check_method='unknown'
5685 # Need to set the preceding variable on all platforms that support
5686 # interlibrary dependencies.
5687 # 'none' -- dependencies not supported.
5688 # `unknown' -- same as none, but documents that we really don't know.
5689 # 'pass_all' -- all dependencies passed with no checks.
5690 # 'test_compile' -- check by making test program.
5691 # 'file_magic [[regex]]' -- check by looking for files in library path
5692 # which responds to the $file_magic_cmd with a given extended regex.
5693 # If you have `file' or equivalent on your system and you're not sure
5694 # whether `pass_all' will *always* work, you probably want this one.
5696 case $host_os in
5697 aix[4-9]*)
5698 lt_cv_deplibs_check_method=pass_all
5701 beos*)
5702 lt_cv_deplibs_check_method=pass_all
5705 bsdi[45]*)
5706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5707 lt_cv_file_magic_cmd='/usr/bin/file -L'
5708 lt_cv_file_magic_test_file=/shlib/libc.so
5711 cygwin*)
5712 # func_win32_libid is a shell function defined in ltmain.sh
5713 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5714 lt_cv_file_magic_cmd='func_win32_libid'
5717 mingw* | pw32*)
5718 # Base MSYS/MinGW do not provide the 'file' command needed by
5719 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5720 # unless we find 'file', for example because we are cross-compiling.
5721 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5722 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724 lt_cv_file_magic_cmd='func_win32_libid'
5725 else
5726 # Keep this pattern in sync with the one in func_win32_libid.
5727 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5728 lt_cv_file_magic_cmd='$OBJDUMP -f'
5732 cegcc*)
5733 # use the weaker test based on 'objdump'. See mingw*.
5734 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5735 lt_cv_file_magic_cmd='$OBJDUMP -f'
5738 darwin* | rhapsody*)
5739 lt_cv_deplibs_check_method=pass_all
5742 freebsd* | dragonfly*)
5743 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5744 case $host_cpu in
5745 i*86 )
5746 # Not sure whether the presence of OpenBSD here was a mistake.
5747 # Let's accept both of them until this is cleared up.
5748 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5749 lt_cv_file_magic_cmd=/usr/bin/file
5750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5752 esac
5753 else
5754 lt_cv_deplibs_check_method=pass_all
5758 gnu*)
5759 lt_cv_deplibs_check_method=pass_all
5762 haiku*)
5763 lt_cv_deplibs_check_method=pass_all
5766 hpux10.20* | hpux11*)
5767 lt_cv_file_magic_cmd=/usr/bin/file
5768 case $host_cpu in
5769 ia64*)
5770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5771 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5773 hppa*64*)
5774 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]'
5775 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5779 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5781 esac
5784 interix[3-9]*)
5785 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5789 irix5* | irix6* | nonstopux*)
5790 case $LD in
5791 *-32|*"-32 ") libmagic=32-bit;;
5792 *-n32|*"-n32 ") libmagic=N32;;
5793 *-64|*"-64 ") libmagic=64-bit;;
5794 *) libmagic=never-match;;
5795 esac
5796 lt_cv_deplibs_check_method=pass_all
5799 # This must be Linux ELF.
5800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5801 lt_cv_deplibs_check_method=pass_all
5804 netbsd*)
5805 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5807 else
5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5812 newos6*)
5813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5814 lt_cv_file_magic_cmd=/usr/bin/file
5815 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5818 *nto* | *qnx*)
5819 lt_cv_deplibs_check_method=pass_all
5822 openbsd*)
5823 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5825 else
5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5830 osf3* | osf4* | osf5*)
5831 lt_cv_deplibs_check_method=pass_all
5834 rdos*)
5835 lt_cv_deplibs_check_method=pass_all
5838 solaris*)
5839 lt_cv_deplibs_check_method=pass_all
5842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5843 lt_cv_deplibs_check_method=pass_all
5846 sysv4 | sysv4.3*)
5847 case $host_vendor in
5848 motorola)
5849 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]'
5850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5852 ncr)
5853 lt_cv_deplibs_check_method=pass_all
5855 sequent)
5856 lt_cv_file_magic_cmd='/bin/file'
5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5859 sni)
5860 lt_cv_file_magic_cmd='/bin/file'
5861 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5862 lt_cv_file_magic_test_file=/lib/libc.so
5864 siemens)
5865 lt_cv_deplibs_check_method=pass_all
5868 lt_cv_deplibs_check_method=pass_all
5870 esac
5873 tpf*)
5874 lt_cv_deplibs_check_method=pass_all
5876 esac
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5880 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5881 file_magic_cmd=$lt_cv_file_magic_cmd
5882 deplibs_check_method=$lt_cv_deplibs_check_method
5883 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}ar; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_AR+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$AR"; then
5905 ac_cv_prog_AR="$AR" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_AR="${ac_tool_prefix}ar"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5918 done
5919 done
5920 IFS=$as_save_IFS
5924 AR=$ac_cv_prog_AR
5925 if test -n "$AR"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5927 $as_echo "$AR" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5935 if test -z "$ac_cv_prog_AR"; then
5936 ac_ct_AR=$AR
5937 # Extract the first word of "ar", so it can be a program name with args.
5938 set dummy ar; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$ac_ct_AR"; then
5945 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_ac_ct_AR="ar"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5958 done
5959 done
5960 IFS=$as_save_IFS
5964 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5965 if test -n "$ac_ct_AR"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5967 $as_echo "$ac_ct_AR" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5973 if test "x$ac_ct_AR" = x; then
5974 AR="false"
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982 AR=$ac_ct_AR
5984 else
5985 AR="$ac_cv_prog_AR"
5988 test -z "$AR" && AR=ar
5989 test -z "$AR_FLAGS" && AR_FLAGS=cru
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}strip; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if ${ac_cv_prog_STRIP+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$STRIP"; then
6010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6023 done
6024 done
6025 IFS=$as_save_IFS
6029 STRIP=$ac_cv_prog_STRIP
6030 if test -n "$STRIP"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6032 $as_echo "$STRIP" >&6; }
6033 else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6040 if test -z "$ac_cv_prog_STRIP"; then
6041 ac_ct_STRIP=$STRIP
6042 # Extract the first word of "strip", so it can be a program name with args.
6043 set dummy strip; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$ac_ct_STRIP"; then
6050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_STRIP="strip"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6063 done
6064 done
6065 IFS=$as_save_IFS
6069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6070 if test -n "$ac_ct_STRIP"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6072 $as_echo "$ac_ct_STRIP" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6078 if test "x$ac_ct_STRIP" = x; then
6079 STRIP=":"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 STRIP=$ac_ct_STRIP
6089 else
6090 STRIP="$ac_cv_prog_STRIP"
6093 test -z "$STRIP" && STRIP=:
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if ${ac_cv_prog_RANLIB+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$RANLIB"; then
6109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6128 RANLIB=$ac_cv_prog_RANLIB
6129 if test -n "$RANLIB"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6131 $as_echo "$RANLIB" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6139 if test -z "$ac_cv_prog_RANLIB"; then
6140 ac_ct_RANLIB=$RANLIB
6141 # Extract the first word of "ranlib", so it can be a program name with args.
6142 set dummy ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$ac_ct_RANLIB"; then
6149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_RANLIB="ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6169 if test -n "$ac_ct_RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6171 $as_echo "$ac_ct_RANLIB" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6177 if test "x$ac_ct_RANLIB" = x; then
6178 RANLIB=":"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186 RANLIB=$ac_ct_RANLIB
6188 else
6189 RANLIB="$ac_cv_prog_RANLIB"
6192 test -z "$RANLIB" && RANLIB=:
6199 # Determine commands to create old-style static archives.
6200 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6201 old_postinstall_cmds='chmod 644 $oldlib'
6202 old_postuninstall_cmds=
6204 if test -n "$RANLIB"; then
6205 case $host_os in
6206 openbsd*)
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6212 esac
6213 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6216 case $host_os in
6217 darwin*)
6218 lock_old_archive_extraction=yes ;;
6220 lock_old_archive_extraction=no ;;
6221 esac
6261 # If no C compiler was specified, use CC.
6262 LTCC=${LTCC-"$CC"}
6264 # If no C compiler flags were specified, use CFLAGS.
6265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6267 # Allow CC to be a program name with arguments.
6268 compiler=$CC
6271 # Check for command to grab the raw symbol name followed by C symbol from nm.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6273 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6274 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6278 # These are sane defaults that work on at least a few old systems.
6279 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6281 # Character class describing NM global symbol codes.
6282 symcode='[BCDEGRST]'
6284 # Regexp to match symbols that can be accessed directly from C.
6285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6287 # Define system-specific variables.
6288 case $host_os in
6289 aix*)
6290 symcode='[BCDT]'
6292 cygwin* | mingw* | pw32* | cegcc*)
6293 symcode='[ABCDGISTW]'
6295 hpux*)
6296 if test "$host_cpu" = ia64; then
6297 symcode='[ABCDEGRST]'
6300 irix* | nonstopux*)
6301 symcode='[BCDEGRST]'
6303 osf*)
6304 symcode='[BCDEGQRST]'
6306 solaris*)
6307 symcode='[BDRT]'
6309 sco3.2v5*)
6310 symcode='[DT]'
6312 sysv4.2uw2*)
6313 symcode='[DT]'
6315 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6316 symcode='[ABDT]'
6318 sysv4)
6319 symcode='[DFNSTU]'
6321 esac
6323 # If we're using GNU nm, then use its standard symbol codes.
6324 case `$NM -V 2>&1` in
6325 *GNU* | *'with BFD'*)
6326 symcode='[ABCDGIRSTW]' ;;
6327 esac
6329 # Transform an extracted symbol line into a proper C declaration.
6330 # Some systems (esp. on ia64) link data and code symbols differently,
6331 # so use this general approach.
6332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6334 # Transform an extracted symbol line into symbol name and symbol address
6335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6336 lt_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'"
6338 # Handle CRLF in mingw tool chain
6339 opt_cr=
6340 case $build_os in
6341 mingw*)
6342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344 esac
6346 # Try without a prefix underscore, then with it.
6347 for ac_symprfx in "" "_"; do
6349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6350 symxfrm="\\1 $ac_symprfx\\2 \\2"
6352 # Write the raw and C identifiers.
6353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6354 # Fake it for dumpbin and say T for any non-static function
6355 # and D for any global variable.
6356 # Also find C++ and __fastcall symbols from MSVC++,
6357 # which start with @ or ?.
6358 lt_cv_sys_global_symbol_pipe="$AWK '"\
6359 " {last_section=section; section=\$ 3};"\
6360 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6361 " \$ 0!~/External *\|/{next};"\
6362 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6363 " {if(hide[section]) next};"\
6364 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6365 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6366 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6367 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6368 " ' prfx=^$ac_symprfx"
6369 else
6370 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6373 # Check to see that the pipe works correctly.
6374 pipe_works=no
6376 rm -f conftest*
6377 cat > conftest.$ac_ext <<_LT_EOF
6378 #ifdef __cplusplus
6379 extern "C" {
6380 #endif
6381 char nm_test_var;
6382 void nm_test_func(void);
6383 void nm_test_func(void){}
6384 #ifdef __cplusplus
6386 #endif
6387 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 _LT_EOF
6390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6391 (eval $ac_compile) 2>&5
6392 ac_status=$?
6393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6394 test $ac_status = 0; }; then
6395 # Now try to grab the symbols.
6396 nlist=conftest.nm
6397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6398 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6399 ac_status=$?
6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401 test $ac_status = 0; } && test -s "$nlist"; then
6402 # Try sorting and uniquifying the output.
6403 if sort "$nlist" | uniq > "$nlist"T; then
6404 mv -f "$nlist"T "$nlist"
6405 else
6406 rm -f "$nlist"T
6409 # Make sure that we snagged all the symbols we need.
6410 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6411 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6412 cat <<_LT_EOF > conftest.$ac_ext
6413 #ifdef __cplusplus
6414 extern "C" {
6415 #endif
6417 _LT_EOF
6418 # Now generate the symbol file.
6419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6421 cat <<_LT_EOF >> conftest.$ac_ext
6423 /* The mapping between symbol names and symbols. */
6424 const struct {
6425 const char *name;
6426 void *address;
6428 lt__PROGRAM__LTX_preloaded_symbols[] =
6430 { "@PROGRAM@", (void *) 0 },
6431 _LT_EOF
6432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6433 cat <<\_LT_EOF >> conftest.$ac_ext
6434 {0, (void *) 0}
6437 /* This works around a problem in FreeBSD linker */
6438 #ifdef FREEBSD_WORKAROUND
6439 static const void *lt_preloaded_setup() {
6440 return lt__PROGRAM__LTX_preloaded_symbols;
6442 #endif
6444 #ifdef __cplusplus
6446 #endif
6447 _LT_EOF
6448 # Now try linking the two files.
6449 mv conftest.$ac_objext conftstm.$ac_objext
6450 lt_save_LIBS="$LIBS"
6451 lt_save_CFLAGS="$CFLAGS"
6452 LIBS="conftstm.$ac_objext"
6453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6455 (eval $ac_link) 2>&5
6456 ac_status=$?
6457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6459 pipe_works=yes
6461 LIBS="$lt_save_LIBS"
6462 CFLAGS="$lt_save_CFLAGS"
6463 else
6464 echo "cannot find nm_test_func in $nlist" >&5
6466 else
6467 echo "cannot find nm_test_var in $nlist" >&5
6469 else
6470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6472 else
6473 echo "$progname: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 rm -rf conftest* conftst*
6478 # Do not use the global_symbol_pipe unless it works.
6479 if test "$pipe_works" = yes; then
6480 break
6481 else
6482 lt_cv_sys_global_symbol_pipe=
6484 done
6488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6489 lt_cv_sys_global_symbol_to_cdecl=
6491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6493 $as_echo "failed" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6496 $as_echo "ok" >&6; }
6521 # Check whether --enable-libtool-lock was given.
6522 if test "${enable_libtool_lock+set}" = set; then :
6523 enableval=$enable_libtool_lock;
6526 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6528 # Some flags need to be propagated to the compiler or linker for good
6529 # libtool support.
6530 case $host in
6531 ia64-*-hpux*)
6532 # Find out which ABI we are using.
6533 echo 'int i;' > conftest.$ac_ext
6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6535 (eval $ac_compile) 2>&5
6536 ac_status=$?
6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; }; then
6539 case `/usr/bin/file conftest.$ac_objext` in
6540 *ELF-32*)
6541 HPUX_IA64_MODE="32"
6543 *ELF-64*)
6544 HPUX_IA64_MODE="64"
6546 esac
6548 rm -rf conftest*
6550 *-*-irix6*)
6551 # Find out which ABI we are using.
6552 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6554 (eval $ac_compile) 2>&5
6555 ac_status=$?
6556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557 test $ac_status = 0; }; then
6558 if test "$lt_cv_prog_gnu_ld" = yes; then
6559 case `/usr/bin/file conftest.$ac_objext` in
6560 *32-bit*)
6561 LD="${LD-ld} -melf32bsmip"
6563 *N32*)
6564 LD="${LD-ld} -melf32bmipn32"
6566 *64-bit*)
6567 LD="${LD-ld} -melf64bmip"
6569 esac
6570 else
6571 case `/usr/bin/file conftest.$ac_objext` in
6572 *32-bit*)
6573 LD="${LD-ld} -32"
6575 *N32*)
6576 LD="${LD-ld} -n32"
6578 *64-bit*)
6579 LD="${LD-ld} -64"
6581 esac
6584 rm -rf conftest*
6587 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6588 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6589 # Find out which ABI we are using.
6590 echo 'int i;' > conftest.$ac_ext
6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592 (eval $ac_compile) 2>&5
6593 ac_status=$?
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }; then
6596 case `/usr/bin/file conftest.o` in
6597 *32-bit*)
6598 case $host in
6599 x86_64-*kfreebsd*-gnu)
6600 LD="${LD-ld} -m elf_i386_fbsd"
6602 x86_64-*linux*)
6603 LD="${LD-ld} -m elf_i386"
6605 ppc64-*linux*|powerpc64-*linux*)
6606 LD="${LD-ld} -m elf32ppclinux"
6608 s390x-*linux*)
6609 LD="${LD-ld} -m elf_s390"
6611 sparc64-*linux*)
6612 LD="${LD-ld} -m elf32_sparc"
6614 esac
6616 *64-bit*)
6617 case $host in
6618 x86_64-*kfreebsd*-gnu)
6619 LD="${LD-ld} -m elf_x86_64_fbsd"
6621 x86_64-*linux*)
6622 LD="${LD-ld} -m elf_x86_64"
6624 ppc*-*linux*|powerpc*-*linux*)
6625 LD="${LD-ld} -m elf64ppc"
6627 s390*-*linux*|s390*-*tpf*)
6628 LD="${LD-ld} -m elf64_s390"
6630 sparc*-*linux*)
6631 LD="${LD-ld} -m elf64_sparc"
6633 esac
6635 esac
6637 rm -rf conftest*
6640 *-*-sco3.2v5*)
6641 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6642 SAVE_CFLAGS="$CFLAGS"
6643 CFLAGS="$CFLAGS -belf"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6645 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6646 if ${lt_cv_cc_needs_belf+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_ext=c
6650 ac_cpp='$CPP $CPPFLAGS'
6651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6659 main ()
6663 return 0;
6665 _ACEOF
6666 if ac_fn_c_try_link "$LINENO"; then :
6667 lt_cv_cc_needs_belf=yes
6668 else
6669 lt_cv_cc_needs_belf=no
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 ac_ext=c
6674 ac_cpp='$CPP $CPPFLAGS'
6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6681 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6682 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6683 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6684 CFLAGS="$SAVE_CFLAGS"
6687 sparc*-*solaris*)
6688 # Find out which ABI we are using.
6689 echo 'int i;' > conftest.$ac_ext
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 case `/usr/bin/file conftest.o` in
6696 *64-bit*)
6697 case $lt_cv_prog_gnu_ld in
6698 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6700 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6701 LD="${LD-ld} -64"
6704 esac
6706 esac
6708 rm -rf conftest*
6710 esac
6712 need_locks="$enable_libtool_lock"
6715 case $host_os in
6716 rhapsody* | darwin*)
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$DSYMUTIL"; then
6726 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6746 if test -n "$DSYMUTIL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6748 $as_echo "$DSYMUTIL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6756 if test -z "$ac_cv_prog_DSYMUTIL"; then
6757 ac_ct_DSYMUTIL=$DSYMUTIL
6758 # Extract the first word of "dsymutil", so it can be a program name with args.
6759 set dummy dsymutil; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$ac_ct_DSYMUTIL"; then
6766 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6786 if test -n "$ac_ct_DSYMUTIL"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6788 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6794 if test "x$ac_ct_DSYMUTIL" = x; then
6795 DSYMUTIL=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned=yes ;;
6802 esac
6803 DSYMUTIL=$ac_ct_DSYMUTIL
6805 else
6806 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_NMEDIT+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$NMEDIT"; then
6818 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6831 done
6832 done
6833 IFS=$as_save_IFS
6837 NMEDIT=$ac_cv_prog_NMEDIT
6838 if test -n "$NMEDIT"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6840 $as_echo "$NMEDIT" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6848 if test -z "$ac_cv_prog_NMEDIT"; then
6849 ac_ct_NMEDIT=$NMEDIT
6850 # Extract the first word of "nmedit", so it can be a program name with args.
6851 set dummy nmedit; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_NMEDIT"; then
6858 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6871 done
6872 done
6873 IFS=$as_save_IFS
6877 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6878 if test -n "$ac_ct_NMEDIT"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6880 $as_echo "$ac_ct_NMEDIT" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6886 if test "x$ac_ct_NMEDIT" = x; then
6887 NMEDIT=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 NMEDIT=$ac_ct_NMEDIT
6897 else
6898 NMEDIT="$ac_cv_prog_NMEDIT"
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_LIPO+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$LIPO"; then
6910 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6923 done
6924 done
6925 IFS=$as_save_IFS
6929 LIPO=$ac_cv_prog_LIPO
6930 if test -n "$LIPO"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6932 $as_echo "$LIPO" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6940 if test -z "$ac_cv_prog_LIPO"; then
6941 ac_ct_LIPO=$LIPO
6942 # Extract the first word of "lipo", so it can be a program name with args.
6943 set dummy lipo; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_LIPO"; then
6950 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_LIPO="lipo"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6965 IFS=$as_save_IFS
6969 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6970 if test -n "$ac_ct_LIPO"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6972 $as_echo "$ac_ct_LIPO" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6978 if test "x$ac_ct_LIPO" = x; then
6979 LIPO=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 LIPO=$ac_ct_LIPO
6989 else
6990 LIPO="$ac_cv_prog_LIPO"
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}otool; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_OTOOL+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$OTOOL"; then
7002 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7015 done
7016 done
7017 IFS=$as_save_IFS
7021 OTOOL=$ac_cv_prog_OTOOL
7022 if test -n "$OTOOL"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7024 $as_echo "$OTOOL" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7032 if test -z "$ac_cv_prog_OTOOL"; then
7033 ac_ct_OTOOL=$OTOOL
7034 # Extract the first word of "otool", so it can be a program name with args.
7035 set dummy otool; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_OTOOL"; then
7042 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_ac_ct_OTOOL="otool"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7055 done
7056 done
7057 IFS=$as_save_IFS
7061 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7062 if test -n "$ac_ct_OTOOL"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7064 $as_echo "$ac_ct_OTOOL" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7070 if test "x$ac_ct_OTOOL" = x; then
7071 OTOOL=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 OTOOL=$ac_ct_OTOOL
7081 else
7082 OTOOL="$ac_cv_prog_OTOOL"
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_OTOOL64+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$OTOOL64"; then
7094 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7107 done
7108 done
7109 IFS=$as_save_IFS
7113 OTOOL64=$ac_cv_prog_OTOOL64
7114 if test -n "$OTOOL64"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7116 $as_echo "$OTOOL64" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7124 if test -z "$ac_cv_prog_OTOOL64"; then
7125 ac_ct_OTOOL64=$OTOOL64
7126 # Extract the first word of "otool64", so it can be a program name with args.
7127 set dummy otool64; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$ac_ct_OTOOL64"; then
7134 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_ac_ct_OTOOL64="otool64"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7153 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7154 if test -n "$ac_ct_OTOOL64"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7156 $as_echo "$ac_ct_OTOOL64" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7162 if test "x$ac_ct_OTOOL64" = x; then
7163 OTOOL64=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 OTOOL64=$ac_ct_OTOOL64
7173 else
7174 OTOOL64="$ac_cv_prog_OTOOL64"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7204 $as_echo_n "checking for -single_module linker flag... " >&6; }
7205 if ${lt_cv_apple_cc_single_mod+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 lt_cv_apple_cc_single_mod=no
7209 if test -z "${LT_MULTI_MODULE}"; then
7210 # By default we will add the -single_module flag. You can override
7211 # by either setting the environment variable LT_MULTI_MODULE
7212 # non-empty at configure time, or by adding -multi_module to the
7213 # link flags.
7214 rm -rf libconftest.dylib*
7215 echo "int foo(void){return 1;}" > conftest.c
7216 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7217 -dynamiclib -Wl,-single_module conftest.c" >&5
7218 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7219 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7220 _lt_result=$?
7221 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7222 lt_cv_apple_cc_single_mod=yes
7223 else
7224 cat conftest.err >&5
7226 rm -rf libconftest.dylib*
7227 rm -f conftest.*
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7231 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7233 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7234 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 lt_cv_ld_exported_symbols_list=no
7238 save_LDFLAGS=$LDFLAGS
7239 echo "_main" > conftest.sym
7240 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7245 main ()
7249 return 0;
7251 _ACEOF
7252 if ac_fn_c_try_link "$LINENO"; then :
7253 lt_cv_ld_exported_symbols_list=yes
7254 else
7255 lt_cv_ld_exported_symbols_list=no
7257 rm -f core conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 LDFLAGS="$save_LDFLAGS"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7263 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7265 $as_echo_n "checking for -force_load linker flag... " >&6; }
7266 if ${lt_cv_ld_force_load+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 lt_cv_ld_force_load=no
7270 cat > conftest.c << _LT_EOF
7271 int forced_loaded() { return 2;}
7272 _LT_EOF
7273 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7274 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7275 echo "$AR cru libconftest.a conftest.o" >&5
7276 $AR cru libconftest.a conftest.o 2>&5
7277 echo "$RANLIB libconftest.a" >&5
7278 $RANLIB libconftest.a 2>&5
7279 cat > conftest.c << _LT_EOF
7280 int main() { return 0;}
7281 _LT_EOF
7282 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7283 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7284 _lt_result=$?
7285 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7286 lt_cv_ld_force_load=yes
7287 else
7288 cat conftest.err >&5
7290 rm -f conftest.err libconftest.a conftest conftest.c
7291 rm -rf conftest.dSYM
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7295 $as_echo "$lt_cv_ld_force_load" >&6; }
7296 case $host_os in
7297 rhapsody* | darwin1.[012])
7298 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7299 darwin1.*)
7300 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7301 darwin*) # darwin 5.x on
7302 # if running on 10.5 or later, the deployment target defaults
7303 # to the OS version, if on x86, and 10.4, the deployment
7304 # target defaults to 10.4. Don't you love it?
7305 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7306 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7308 10.[012]*)
7309 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7310 10.*)
7311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7312 esac
7314 esac
7315 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7316 _lt_dar_single_mod='$single_module'
7318 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7319 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7320 else
7321 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7323 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7324 _lt_dsymutil='~$DSYMUTIL $lib || :'
7325 else
7326 _lt_dsymutil=
7329 esac
7331 ac_ext=c
7332 ac_cpp='$CPP $CPPFLAGS'
7333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7337 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7338 # On Suns, sometimes $CPP names a directory.
7339 if test -n "$CPP" && test -d "$CPP"; then
7340 CPP=
7342 if test -z "$CPP"; then
7343 if ${ac_cv_prog_CPP+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 # Double quotes because CPP needs to be expanded
7347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7349 ac_preproc_ok=false
7350 for ac_c_preproc_warn_flag in '' yes
7352 # Use a header file that comes with gcc, so configuring glibc
7353 # with a fresh cross-compiler works.
7354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7355 # <limits.h> exists even on freestanding compilers.
7356 # On the NeXT, cc -E runs the code through the compiler's parser,
7357 # not just through cpp. "Syntax error" is here to catch this case.
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #ifdef __STDC__
7361 # include <limits.h>
7362 #else
7363 # include <assert.h>
7364 #endif
7365 Syntax error
7366 _ACEOF
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7369 else
7370 # Broken: fails on valid input.
7371 continue
7373 rm -f conftest.err conftest.i conftest.$ac_ext
7375 # OK, works on sane cases. Now check whether nonexistent headers
7376 # can be detected and how.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <ac_nonexistent.h>
7380 _ACEOF
7381 if ac_fn_c_try_cpp "$LINENO"; then :
7382 # Broken: success on invalid input.
7383 continue
7384 else
7385 # Passes both tests.
7386 ac_preproc_ok=:
7387 break
7389 rm -f conftest.err conftest.i conftest.$ac_ext
7391 done
7392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7393 rm -f conftest.i conftest.err conftest.$ac_ext
7394 if $ac_preproc_ok; then :
7395 break
7398 done
7399 ac_cv_prog_CPP=$CPP
7402 CPP=$ac_cv_prog_CPP
7403 else
7404 ac_cv_prog_CPP=$CPP
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7407 $as_echo "$CPP" >&6; }
7408 ac_preproc_ok=false
7409 for ac_c_preproc_warn_flag in '' yes
7411 # Use a header file that comes with gcc, so configuring glibc
7412 # with a fresh cross-compiler works.
7413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7414 # <limits.h> exists even on freestanding compilers.
7415 # On the NeXT, cc -E runs the code through the compiler's parser,
7416 # not just through cpp. "Syntax error" is here to catch this case.
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 #ifdef __STDC__
7420 # include <limits.h>
7421 #else
7422 # include <assert.h>
7423 #endif
7424 Syntax error
7425 _ACEOF
7426 if ac_fn_c_try_cpp "$LINENO"; then :
7428 else
7429 # Broken: fails on valid input.
7430 continue
7432 rm -f conftest.err conftest.i conftest.$ac_ext
7434 # OK, works on sane cases. Now check whether nonexistent headers
7435 # can be detected and how.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 #include <ac_nonexistent.h>
7439 _ACEOF
7440 if ac_fn_c_try_cpp "$LINENO"; then :
7441 # Broken: success on invalid input.
7442 continue
7443 else
7444 # Passes both tests.
7445 ac_preproc_ok=:
7446 break
7448 rm -f conftest.err conftest.i conftest.$ac_ext
7450 done
7451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7452 rm -f conftest.i conftest.err conftest.$ac_ext
7453 if $ac_preproc_ok; then :
7455 else
7456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7459 See \`config.log' for more details" "$LINENO" 5; }
7462 ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7470 $as_echo_n "checking for ANSI C header files... " >&6; }
7471 if ${ac_cv_header_stdc+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 #include <stdlib.h>
7477 #include <stdarg.h>
7478 #include <string.h>
7479 #include <float.h>
7482 main ()
7486 return 0;
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"; then :
7490 ac_cv_header_stdc=yes
7491 else
7492 ac_cv_header_stdc=no
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 if test $ac_cv_header_stdc = yes; then
7497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #include <string.h>
7502 _ACEOF
7503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7504 $EGREP "memchr" >/dev/null 2>&1; then :
7506 else
7507 ac_cv_header_stdc=no
7509 rm -f conftest*
7513 if test $ac_cv_header_stdc = yes; then
7514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #include <stdlib.h>
7519 _ACEOF
7520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7521 $EGREP "free" >/dev/null 2>&1; then :
7523 else
7524 ac_cv_header_stdc=no
7526 rm -f conftest*
7530 if test $ac_cv_header_stdc = yes; then
7531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7532 if test "$cross_compiling" = yes; then :
7534 else
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <ctype.h>
7538 #include <stdlib.h>
7539 #if ((' ' & 0x0FF) == 0x020)
7540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7542 #else
7543 # define ISLOWER(c) \
7544 (('a' <= (c) && (c) <= 'i') \
7545 || ('j' <= (c) && (c) <= 'r') \
7546 || ('s' <= (c) && (c) <= 'z'))
7547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7548 #endif
7550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7552 main ()
7554 int i;
7555 for (i = 0; i < 256; i++)
7556 if (XOR (islower (i), ISLOWER (i))
7557 || toupper (i) != TOUPPER (i))
7558 return 2;
7559 return 0;
7561 _ACEOF
7562 if ac_fn_c_try_run "$LINENO"; then :
7564 else
7565 ac_cv_header_stdc=no
7567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7568 conftest.$ac_objext conftest.beam conftest.$ac_ext
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7574 $as_echo "$ac_cv_header_stdc" >&6; }
7575 if test $ac_cv_header_stdc = yes; then
7577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7583 inttypes.h stdint.h unistd.h
7584 do :
7585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7589 cat >>confdefs.h <<_ACEOF
7590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591 _ACEOF
7595 done
7598 for ac_header in dlfcn.h
7599 do :
7600 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7602 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7603 cat >>confdefs.h <<_ACEOF
7604 #define HAVE_DLFCN_H 1
7605 _ACEOF
7609 done
7616 # Set options
7617 enable_win32_dll=yes
7619 case $host in
7620 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}as; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_AS+:} false; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test -n "$AS"; then
7630 ac_cv_prog_AS="$AS" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_AS="${ac_tool_prefix}as"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7643 done
7644 done
7645 IFS=$as_save_IFS
7649 AS=$ac_cv_prog_AS
7650 if test -n "$AS"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7652 $as_echo "$AS" >&6; }
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7660 if test -z "$ac_cv_prog_AS"; then
7661 ac_ct_AS=$AS
7662 # Extract the first word of "as", so it can be a program name with args.
7663 set dummy as; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$ac_ct_AS"; then
7670 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_ac_ct_AS="as"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7690 if test -n "$ac_ct_AS"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7692 $as_echo "$ac_ct_AS" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7698 if test "x$ac_ct_AS" = x; then
7699 AS="false"
7700 else
7701 case $cross_compiling:$ac_tool_warned in
7702 yes:)
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705 ac_tool_warned=yes ;;
7706 esac
7707 AS=$ac_ct_AS
7709 else
7710 AS="$ac_cv_prog_AS"
7713 if test -n "$ac_tool_prefix"; then
7714 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7715 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_prog_DLLTOOL+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 if test -n "$DLLTOOL"; then
7722 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7723 else
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 break 2
7735 done
7736 done
7737 IFS=$as_save_IFS
7741 DLLTOOL=$ac_cv_prog_DLLTOOL
7742 if test -n "$DLLTOOL"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7744 $as_echo "$DLLTOOL" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7752 if test -z "$ac_cv_prog_DLLTOOL"; then
7753 ac_ct_DLLTOOL=$DLLTOOL
7754 # Extract the first word of "dlltool", so it can be a program name with args.
7755 set dummy dlltool; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$ac_ct_DLLTOOL"; then
7762 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7781 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7782 if test -n "$ac_ct_DLLTOOL"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7784 $as_echo "$ac_ct_DLLTOOL" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7790 if test "x$ac_ct_DLLTOOL" = x; then
7791 DLLTOOL="false"
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794 yes:)
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797 ac_tool_warned=yes ;;
7798 esac
7799 DLLTOOL=$ac_ct_DLLTOOL
7801 else
7802 DLLTOOL="$ac_cv_prog_DLLTOOL"
7805 if test -n "$ac_tool_prefix"; then
7806 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if ${ac_cv_prog_OBJDUMP+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$OBJDUMP"; then
7814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7833 OBJDUMP=$ac_cv_prog_OBJDUMP
7834 if test -n "$OBJDUMP"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7836 $as_echo "$OBJDUMP" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7844 if test -z "$ac_cv_prog_OBJDUMP"; then
7845 ac_ct_OBJDUMP=$OBJDUMP
7846 # Extract the first word of "objdump", so it can be a program name with args.
7847 set dummy objdump; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$ac_ct_OBJDUMP"; then
7854 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7874 if test -n "$ac_ct_OBJDUMP"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7876 $as_echo "$ac_ct_OBJDUMP" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7882 if test "x$ac_ct_OBJDUMP" = x; then
7883 OBJDUMP="false"
7884 else
7885 case $cross_compiling:$ac_tool_warned in
7886 yes:)
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889 ac_tool_warned=yes ;;
7890 esac
7891 OBJDUMP=$ac_ct_OBJDUMP
7893 else
7894 OBJDUMP="$ac_cv_prog_OBJDUMP"
7898 esac
7900 test -z "$AS" && AS=as
7906 test -z "$DLLTOOL" && DLLTOOL=dlltool
7912 test -z "$OBJDUMP" && OBJDUMP=objdump
7920 enable_dlopen=no
7924 # Check whether --enable-shared was given.
7925 if test "${enable_shared+set}" = set; then :
7926 enableval=$enable_shared; p=${PACKAGE-default}
7927 case $enableval in
7928 yes) enable_shared=yes ;;
7929 no) enable_shared=no ;;
7931 enable_shared=no
7932 # Look at the argument we got. We use all the common list separators.
7933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7934 for pkg in $enableval; do
7935 IFS="$lt_save_ifs"
7936 if test "X$pkg" = "X$p"; then
7937 enable_shared=yes
7939 done
7940 IFS="$lt_save_ifs"
7942 esac
7943 else
7944 enable_shared=yes
7955 # Check whether --enable-static was given.
7956 if test "${enable_static+set}" = set; then :
7957 enableval=$enable_static; p=${PACKAGE-default}
7958 case $enableval in
7959 yes) enable_static=yes ;;
7960 no) enable_static=no ;;
7962 enable_static=no
7963 # Look at the argument we got. We use all the common list separators.
7964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7965 for pkg in $enableval; do
7966 IFS="$lt_save_ifs"
7967 if test "X$pkg" = "X$p"; then
7968 enable_static=yes
7970 done
7971 IFS="$lt_save_ifs"
7973 esac
7974 else
7975 enable_static=yes
7987 # Check whether --with-pic was given.
7988 if test "${with_pic+set}" = set; then :
7989 withval=$with_pic; pic_mode="$withval"
7990 else
7991 pic_mode=default
7995 test -z "$pic_mode" && pic_mode=default
8003 # Check whether --enable-fast-install was given.
8004 if test "${enable_fast_install+set}" = set; then :
8005 enableval=$enable_fast_install; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_fast_install=yes ;;
8008 no) enable_fast_install=no ;;
8010 enable_fast_install=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8014 IFS="$lt_save_ifs"
8015 if test "X$pkg" = "X$p"; then
8016 enable_fast_install=yes
8018 done
8019 IFS="$lt_save_ifs"
8021 esac
8022 else
8023 enable_fast_install=yes
8036 # This can be used to rebuild libtool when needed
8037 LIBTOOL_DEPS="$ltmain"
8039 # Always use our own libtool.
8040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8067 test -z "$LN_S" && LN_S="ln -s"
8082 if test -n "${ZSH_VERSION+set}" ; then
8083 setopt NO_GLOB_SUBST
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8087 $as_echo_n "checking for objdir... " >&6; }
8088 if ${lt_cv_objdir+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 rm -f .libs 2>/dev/null
8092 mkdir .libs 2>/dev/null
8093 if test -d .libs; then
8094 lt_cv_objdir=.libs
8095 else
8096 # MS-DOS does not allow filenames that begin with a dot.
8097 lt_cv_objdir=_libs
8099 rmdir .libs 2>/dev/null
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8102 $as_echo "$lt_cv_objdir" >&6; }
8103 objdir=$lt_cv_objdir
8109 cat >>confdefs.h <<_ACEOF
8110 #define LT_OBJDIR "$lt_cv_objdir/"
8111 _ACEOF
8116 case $host_os in
8117 aix3*)
8118 # AIX sometimes has problems with the GCC collect2 program. For some
8119 # reason, if we set the COLLECT_NAMES environment variable, the problems
8120 # vanish in a puff of smoke.
8121 if test "X${COLLECT_NAMES+set}" != Xset; then
8122 COLLECT_NAMES=
8123 export COLLECT_NAMES
8126 esac
8128 # Global variables:
8129 ofile=libtool
8130 can_build_shared=yes
8132 # All known linkers require a `.a' archive for static linking (except MSVC,
8133 # which needs '.lib').
8134 libext=a
8136 with_gnu_ld="$lt_cv_prog_gnu_ld"
8138 old_CC="$CC"
8139 old_CFLAGS="$CFLAGS"
8141 # Set sane defaults for various variables
8142 test -z "$CC" && CC=cc
8143 test -z "$LTCC" && LTCC=$CC
8144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8145 test -z "$LD" && LD=ld
8146 test -z "$ac_objext" && ac_objext=o
8148 for cc_temp in $compiler""; do
8149 case $cc_temp in
8150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8152 \-*) ;;
8153 *) break;;
8154 esac
8155 done
8156 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8159 # Only perform the check for file, if the check method requires it
8160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8161 case $deplibs_check_method in
8162 file_magic*)
8163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8165 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8166 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 case $MAGIC_CMD in
8170 [\\/*] | ?:[\\/]*)
8171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8174 lt_save_MAGIC_CMD="$MAGIC_CMD"
8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8177 for ac_dir in $ac_dummy; do
8178 IFS="$lt_save_ifs"
8179 test -z "$ac_dir" && ac_dir=.
8180 if test -f $ac_dir/${ac_tool_prefix}file; then
8181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8182 if test -n "$file_magic_test_file"; then
8183 case $deplibs_check_method in
8184 "file_magic "*)
8185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8188 $EGREP "$file_magic_regex" > /dev/null; then
8190 else
8191 cat <<_LT_EOF 1>&2
8193 *** Warning: the command libtool uses to detect shared libraries,
8194 *** $file_magic_cmd, produces output that libtool cannot recognize.
8195 *** The result is that libtool may fail to recognize shared libraries
8196 *** as such. This will affect the creation of libtool libraries that
8197 *** depend on shared libraries, but programs linked with such libtool
8198 *** libraries will work regardless of this problem. Nevertheless, you
8199 *** may want to report the problem to your system manager and/or to
8200 *** bug-libtool@gnu.org
8202 _LT_EOF
8203 fi ;;
8204 esac
8206 break
8208 done
8209 IFS="$lt_save_ifs"
8210 MAGIC_CMD="$lt_save_MAGIC_CMD"
8212 esac
8215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216 if test -n "$MAGIC_CMD"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8218 $as_echo "$MAGIC_CMD" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8228 if test -z "$lt_cv_path_MAGIC_CMD"; then
8229 if test -n "$ac_tool_prefix"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8231 $as_echo_n "checking for file... " >&6; }
8232 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 case $MAGIC_CMD in
8236 [\\/*] | ?:[\\/]*)
8237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8240 lt_save_MAGIC_CMD="$MAGIC_CMD"
8241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8243 for ac_dir in $ac_dummy; do
8244 IFS="$lt_save_ifs"
8245 test -z "$ac_dir" && ac_dir=.
8246 if test -f $ac_dir/file; then
8247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8248 if test -n "$file_magic_test_file"; then
8249 case $deplibs_check_method in
8250 "file_magic "*)
8251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8254 $EGREP "$file_magic_regex" > /dev/null; then
8256 else
8257 cat <<_LT_EOF 1>&2
8259 *** Warning: the command libtool uses to detect shared libraries,
8260 *** $file_magic_cmd, produces output that libtool cannot recognize.
8261 *** The result is that libtool may fail to recognize shared libraries
8262 *** as such. This will affect the creation of libtool libraries that
8263 *** depend on shared libraries, but programs linked with such libtool
8264 *** libraries will work regardless of this problem. Nevertheless, you
8265 *** may want to report the problem to your system manager and/or to
8266 *** bug-libtool@gnu.org
8268 _LT_EOF
8269 fi ;;
8270 esac
8272 break
8274 done
8275 IFS="$lt_save_ifs"
8276 MAGIC_CMD="$lt_save_MAGIC_CMD"
8278 esac
8281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282 if test -n "$MAGIC_CMD"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8284 $as_echo "$MAGIC_CMD" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8291 else
8292 MAGIC_CMD=:
8298 esac
8300 # Use C for the default configuration in the libtool script
8302 lt_save_CC="$CC"
8303 ac_ext=c
8304 ac_cpp='$CPP $CPPFLAGS'
8305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310 # Source file extension for C test sources.
8311 ac_ext=c
8313 # Object file extension for compiled C test sources.
8314 objext=o
8315 objext=$objext
8317 # Code to be used in simple compile tests
8318 lt_simple_compile_test_code="int some_variable = 0;"
8320 # Code to be used in simple link tests
8321 lt_simple_link_test_code='int main(){return(0);}'
8329 # If no C compiler was specified, use CC.
8330 LTCC=${LTCC-"$CC"}
8332 # If no C compiler flags were specified, use CFLAGS.
8333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8335 # Allow CC to be a program name with arguments.
8336 compiler=$CC
8338 # Save the default compiler, since it gets overwritten when the other
8339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8340 compiler_DEFAULT=$CC
8342 # save warnings/boilerplate of simple test code
8343 ac_outfile=conftest.$ac_objext
8344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8346 _lt_compiler_boilerplate=`cat conftest.err`
8347 $RM conftest*
8349 ac_outfile=conftest.$ac_objext
8350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8352 _lt_linker_boilerplate=`cat conftest.err`
8353 $RM -r conftest*
8356 ## CAVEAT EMPTOR:
8357 ## There is no encapsulation within the following macros, do not change
8358 ## the running order or otherwise move them around unless you know exactly
8359 ## what you are doing...
8360 if test -n "$compiler"; then
8362 lt_prog_compiler_no_builtin_flag=
8364 if test "$GCC" = yes; then
8365 case $cc_basename in
8366 nvcc*)
8367 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8370 esac
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8373 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8374 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 lt_cv_prog_compiler_rtti_exceptions=no
8378 ac_outfile=conftest.$ac_objext
8379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8380 lt_compiler_flag="-fno-rtti -fno-exceptions"
8381 # Insert the option either (1) after the last *FLAGS variable, or
8382 # (2) before a word containing "conftest.", or (3) at the end.
8383 # Note that $ac_compile itself does not contain backslashes and begins
8384 # with a dollar sign (not a hyphen), so the echo should work correctly.
8385 # The option is referenced via a variable to avoid confusing sed.
8386 lt_compile=`echo "$ac_compile" | $SED \
8387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8389 -e 's:$: $lt_compiler_flag:'`
8390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8391 (eval "$lt_compile" 2>conftest.err)
8392 ac_status=$?
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 if (exit $ac_status) && test -s "$ac_outfile"; then
8396 # The compiler can only warn and ignore the option if not recognized
8397 # So say no if there are warnings other than the usual output.
8398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8401 lt_cv_prog_compiler_rtti_exceptions=yes
8404 $RM conftest*
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8408 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8410 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8412 else
8423 lt_prog_compiler_wl=
8424 lt_prog_compiler_pic=
8425 lt_prog_compiler_static=
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8428 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8430 if test "$GCC" = yes; then
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_static='-static'
8434 case $host_os in
8435 aix*)
8436 # All AIX code is PIC.
8437 if test "$host_cpu" = ia64; then
8438 # AIX 5 now supports IA64 processor
8439 lt_prog_compiler_static='-Bstatic'
8443 amigaos*)
8444 case $host_cpu in
8445 powerpc)
8446 # see comment about AmigaOS4 .so support
8447 lt_prog_compiler_pic='-fPIC'
8449 m68k)
8450 # FIXME: we need at least 68020 code to build shared libraries, but
8451 # adding the `-m68020' flag to GCC prevents building anything better,
8452 # like `-m68040'.
8453 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8455 esac
8458 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8459 # PIC is the default for these OSes.
8462 mingw* | cygwin* | pw32* | os2* | cegcc*)
8463 # This hack is so that the source file can tell whether it is being
8464 # built for inclusion in a dll (and should export symbols for example).
8465 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8466 # (--disable-auto-import) libraries
8467 lt_prog_compiler_pic='-DDLL_EXPORT'
8470 darwin* | rhapsody*)
8471 # PIC is the default on this platform
8472 # Common symbols not allowed in MH_DYLIB files
8473 lt_prog_compiler_pic='-fno-common'
8476 haiku*)
8477 # PIC is the default for Haiku.
8478 # The "-static" flag exists, but is broken.
8479 lt_prog_compiler_static=
8482 hpux*)
8483 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8484 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8485 # sets the default TLS model and affects inlining.
8486 case $host_cpu in
8487 hppa*64*)
8488 # +Z the default
8491 lt_prog_compiler_pic='-fPIC'
8493 esac
8496 interix[3-9]*)
8497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8498 # Instead, we relocate shared libraries at runtime.
8501 msdosdjgpp*)
8502 # Just because we use GCC doesn't mean we suddenly get shared libraries
8503 # on systems that don't support them.
8504 lt_prog_compiler_can_build_shared=no
8505 enable_shared=no
8508 *nto* | *qnx*)
8509 # QNX uses GNU C++, but need to define -shared option too, otherwise
8510 # it will coredump.
8511 lt_prog_compiler_pic='-fPIC -shared'
8514 sysv4*MP*)
8515 if test -d /usr/nec; then
8516 lt_prog_compiler_pic=-Kconform_pic
8521 lt_prog_compiler_pic='-fPIC'
8523 esac
8525 case $cc_basename in
8526 nvcc*) # Cuda Compiler Driver 2.2
8527 lt_prog_compiler_wl='-Xlinker '
8528 lt_prog_compiler_pic='-Xcompiler -fPIC'
8530 esac
8531 else
8532 # PORTME Check for flag to pass linker flags through the system compiler.
8533 case $host_os in
8534 aix*)
8535 lt_prog_compiler_wl='-Wl,'
8536 if test "$host_cpu" = ia64; then
8537 # AIX 5 now supports IA64 processor
8538 lt_prog_compiler_static='-Bstatic'
8539 else
8540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8544 mingw* | cygwin* | pw32* | os2* | cegcc*)
8545 # This hack is so that the source file can tell whether it is being
8546 # built for inclusion in a dll (and should export symbols for example).
8547 lt_prog_compiler_pic='-DDLL_EXPORT'
8550 hpux9* | hpux10* | hpux11*)
8551 lt_prog_compiler_wl='-Wl,'
8552 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8553 # not for PA HP-UX.
8554 case $host_cpu in
8555 hppa*64*|ia64*)
8556 # +Z the default
8559 lt_prog_compiler_pic='+Z'
8561 esac
8562 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8563 lt_prog_compiler_static='${wl}-a ${wl}archive'
8566 irix5* | irix6* | nonstopux*)
8567 lt_prog_compiler_wl='-Wl,'
8568 # PIC (with -KPIC) is the default.
8569 lt_prog_compiler_static='-non_shared'
8572 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8573 case $cc_basename in
8574 # old Intel for x86_64 which still supported -KPIC.
8575 ecc*)
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-static'
8580 # icc used to be incompatible with GCC.
8581 # ICC 10 doesn't accept -KPIC any more.
8582 icc* | ifort*)
8583 lt_prog_compiler_wl='-Wl,'
8584 lt_prog_compiler_pic='-fPIC'
8585 lt_prog_compiler_static='-static'
8587 # Lahey Fortran 8.1.
8588 lf95*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='--shared'
8591 lt_prog_compiler_static='--static'
8593 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8594 # Portland Group compilers (*not* the Pentium gcc compiler,
8595 # which looks to be a dead project)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-fpic'
8598 lt_prog_compiler_static='-Bstatic'
8600 ccc*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # All Alpha code is PIC.
8603 lt_prog_compiler_static='-non_shared'
8605 xl* | bgxl* | bgf* | mpixl*)
8606 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-qpic'
8609 lt_prog_compiler_static='-qstaticlink'
8612 case `$CC -V 2>&1 | sed 5q` in
8613 *Sun\ F* | *Sun*Fortran*)
8614 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-Bstatic'
8617 lt_prog_compiler_wl=''
8619 *Sun\ C*)
8620 # Sun C 5.9
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 lt_prog_compiler_wl='-Wl,'
8625 esac
8627 esac
8630 newsos6)
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8635 *nto* | *qnx*)
8636 # QNX uses GNU C++, but need to define -shared option too, otherwise
8637 # it will coredump.
8638 lt_prog_compiler_pic='-fPIC -shared'
8641 osf3* | osf4* | osf5*)
8642 lt_prog_compiler_wl='-Wl,'
8643 # All OSF/1 code is PIC.
8644 lt_prog_compiler_static='-non_shared'
8647 rdos*)
8648 lt_prog_compiler_static='-non_shared'
8651 solaris*)
8652 lt_prog_compiler_pic='-KPIC'
8653 lt_prog_compiler_static='-Bstatic'
8654 case $cc_basename in
8655 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8656 lt_prog_compiler_wl='-Qoption ld ';;
8658 lt_prog_compiler_wl='-Wl,';;
8659 esac
8662 sunos4*)
8663 lt_prog_compiler_wl='-Qoption ld '
8664 lt_prog_compiler_pic='-PIC'
8665 lt_prog_compiler_static='-Bstatic'
8668 sysv4 | sysv4.2uw2* | sysv4.3*)
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-Bstatic'
8674 sysv4*MP*)
8675 if test -d /usr/nec ;then
8676 lt_prog_compiler_pic='-Kconform_pic'
8677 lt_prog_compiler_static='-Bstatic'
8681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8687 unicos*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_can_build_shared=no
8692 uts4*)
8693 lt_prog_compiler_pic='-pic'
8694 lt_prog_compiler_static='-Bstatic'
8698 lt_prog_compiler_can_build_shared=no
8700 esac
8703 case $host_os in
8704 # For platforms which do not support PIC, -DPIC is meaningless:
8705 *djgpp*)
8706 lt_prog_compiler_pic=
8709 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8711 esac
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8713 $as_echo "$lt_prog_compiler_pic" >&6; }
8721 # Check to make sure the PIC flag actually works.
8723 if test -n "$lt_prog_compiler_pic"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8725 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8726 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 lt_cv_prog_compiler_pic_works=no
8730 ac_outfile=conftest.$ac_objext
8731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8732 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8733 # Insert the option either (1) after the last *FLAGS variable, or
8734 # (2) before a word containing "conftest.", or (3) at the end.
8735 # Note that $ac_compile itself does not contain backslashes and begins
8736 # with a dollar sign (not a hyphen), so the echo should work correctly.
8737 # The option is referenced via a variable to avoid confusing sed.
8738 lt_compile=`echo "$ac_compile" | $SED \
8739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8741 -e 's:$: $lt_compiler_flag:'`
8742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8743 (eval "$lt_compile" 2>conftest.err)
8744 ac_status=$?
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 if (exit $ac_status) && test -s "$ac_outfile"; then
8748 # The compiler can only warn and ignore the option if not recognized
8749 # So say no if there are warnings other than the usual output.
8750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8753 lt_cv_prog_compiler_pic_works=yes
8756 $RM conftest*
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8760 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8762 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8763 case $lt_prog_compiler_pic in
8764 "" | " "*) ;;
8765 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8766 esac
8767 else
8768 lt_prog_compiler_pic=
8769 lt_prog_compiler_can_build_shared=no
8780 # Check to make sure the static flag actually works.
8782 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8784 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8785 if ${lt_cv_prog_compiler_static_works+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_static_works=no
8789 save_LDFLAGS="$LDFLAGS"
8790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8793 # The linker can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 if test -s conftest.err; then
8796 # Append any errors to the config.log.
8797 cat conftest.err 1>&5
8798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8800 if diff conftest.exp conftest.er2 >/dev/null; then
8801 lt_cv_prog_compiler_static_works=yes
8803 else
8804 lt_cv_prog_compiler_static_works=yes
8807 $RM -r conftest*
8808 LDFLAGS="$save_LDFLAGS"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8812 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8814 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8816 else
8817 lt_prog_compiler_static=
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8827 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8828 if ${lt_cv_prog_compiler_c_o+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_c_o=no
8832 $RM -r conftest 2>/dev/null
8833 mkdir conftest
8834 cd conftest
8835 mkdir out
8836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838 lt_compiler_flag="-o out/conftest2.$ac_objext"
8839 # Insert the option either (1) after the last *FLAGS variable, or
8840 # (2) before a word containing "conftest.", or (3) at the end.
8841 # Note that $ac_compile itself does not contain backslashes and begins
8842 # with a dollar sign (not a hyphen), so the echo should work correctly.
8843 lt_compile=`echo "$ac_compile" | $SED \
8844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8846 -e 's:$: $lt_compiler_flag:'`
8847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8848 (eval "$lt_compile" 2>out/conftest.err)
8849 ac_status=$?
8850 cat out/conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8853 then
8854 # The compiler can only warn and ignore the option if not recognized
8855 # So say no if there are warnings
8856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8859 lt_cv_prog_compiler_c_o=yes
8862 chmod u+w . 2>&5
8863 $RM conftest*
8864 # SGI C++ compiler will create directory out/ii_files/ for
8865 # template instantiation
8866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8867 $RM out/* && rmdir out
8868 cd ..
8869 $RM -r conftest
8870 $RM conftest*
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8874 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8883 if ${lt_cv_prog_compiler_c_o+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 lt_cv_prog_compiler_c_o=no
8887 $RM -r conftest 2>/dev/null
8888 mkdir conftest
8889 cd conftest
8890 mkdir out
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8893 lt_compiler_flag="-o out/conftest2.$ac_objext"
8894 # Insert the option either (1) after the last *FLAGS variable, or
8895 # (2) before a word containing "conftest.", or (3) at the end.
8896 # Note that $ac_compile itself does not contain backslashes and begins
8897 # with a dollar sign (not a hyphen), so the echo should work correctly.
8898 lt_compile=`echo "$ac_compile" | $SED \
8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901 -e 's:$: $lt_compiler_flag:'`
8902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903 (eval "$lt_compile" 2>out/conftest.err)
8904 ac_status=$?
8905 cat out/conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8908 then
8909 # The compiler can only warn and ignore the option if not recognized
8910 # So say no if there are warnings
8911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8914 lt_cv_prog_compiler_c_o=yes
8917 chmod u+w . 2>&5
8918 $RM conftest*
8919 # SGI C++ compiler will create directory out/ii_files/ for
8920 # template instantiation
8921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8922 $RM out/* && rmdir out
8923 cd ..
8924 $RM -r conftest
8925 $RM conftest*
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8929 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8934 hard_links="nottested"
8935 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8936 # do not overwrite the value of need_locks provided by the user
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8938 $as_echo_n "checking if we can lock with hard links... " >&6; }
8939 hard_links=yes
8940 $RM conftest*
8941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8942 touch conftest.a
8943 ln conftest.a conftest.b 2>&5 || hard_links=no
8944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8946 $as_echo "$hard_links" >&6; }
8947 if test "$hard_links" = no; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8949 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8950 need_locks=warn
8952 else
8953 need_locks=no
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8964 runpath_var=
8965 allow_undefined_flag=
8966 always_export_symbols=no
8967 archive_cmds=
8968 archive_expsym_cmds=
8969 compiler_needs_object=no
8970 enable_shared_with_static_runtimes=no
8971 export_dynamic_flag_spec=
8972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8973 hardcode_automatic=no
8974 hardcode_direct=no
8975 hardcode_direct_absolute=no
8976 hardcode_libdir_flag_spec=
8977 hardcode_libdir_flag_spec_ld=
8978 hardcode_libdir_separator=
8979 hardcode_minus_L=no
8980 hardcode_shlibpath_var=unsupported
8981 inherit_rpath=no
8982 link_all_deplibs=unknown
8983 module_cmds=
8984 module_expsym_cmds=
8985 old_archive_from_new_cmds=
8986 old_archive_from_expsyms_cmds=
8987 thread_safe_flag_spec=
8988 whole_archive_flag_spec=
8989 # include_expsyms should be a list of space-separated symbols to be *always*
8990 # included in the symbol list
8991 include_expsyms=
8992 # exclude_expsyms can be an extended regexp of symbols to exclude
8993 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8995 # as well as any symbol that contains `d'.
8996 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8998 # platforms (ab)use it in PIC code, but their linkers get confused if
8999 # the symbol is explicitly referenced. Since portable code cannot
9000 # rely on this symbol name, it's probably fine to never include it in
9001 # preloaded symbol tables.
9002 # Exclude shared library initialization/finalization symbols.
9003 extract_expsyms_cmds=
9005 case $host_os in
9006 cygwin* | mingw* | pw32* | cegcc*)
9007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9008 # When not using gcc, we currently assume that we are using
9009 # Microsoft Visual C++.
9010 if test "$GCC" != yes; then
9011 with_gnu_ld=no
9014 interix*)
9015 # we just hope/assume this is gcc and not c89 (= MSVC++)
9016 with_gnu_ld=yes
9018 openbsd*)
9019 with_gnu_ld=no
9021 esac
9023 ld_shlibs=yes
9025 # On some targets, GNU ld is compatible enough with the native linker
9026 # that we're better off using the native interface for both.
9027 lt_use_gnu_ld_interface=no
9028 if test "$with_gnu_ld" = yes; then
9029 case $host_os in
9030 aix*)
9031 # The AIX port of GNU ld has always aspired to compatibility
9032 # with the native linker. However, as the warning in the GNU ld
9033 # block says, versions before 2.19.5* couldn't really create working
9034 # shared libraries, regardless of the interface used.
9035 case `$LD -v 2>&1` in
9036 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9037 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9038 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9040 lt_use_gnu_ld_interface=yes
9042 esac
9045 lt_use_gnu_ld_interface=yes
9047 esac
9050 if test "$lt_use_gnu_ld_interface" = yes; then
9051 # If archive_cmds runs LD, not CC, wlarc should be empty
9052 wlarc='${wl}'
9054 # Set some defaults for GNU ld with shared library support. These
9055 # are reset later if shared libraries are not supported. Putting them
9056 # here allows them to be overridden if necessary.
9057 runpath_var=LD_RUN_PATH
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 export_dynamic_flag_spec='${wl}--export-dynamic'
9060 # ancient GNU ld didn't support --whole-archive et. al.
9061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9063 else
9064 whole_archive_flag_spec=
9066 supports_anon_versioning=no
9067 case `$LD -v 2>&1` in
9068 *GNU\ gold*) supports_anon_versioning=yes ;;
9069 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9070 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9071 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9072 *\ 2.11.*) ;; # other 2.11 versions
9073 *) supports_anon_versioning=yes ;;
9074 esac
9076 # See if GNU ld supports shared libraries.
9077 case $host_os in
9078 aix[3-9]*)
9079 # On AIX/PPC, the GNU linker is very broken
9080 if test "$host_cpu" != ia64; then
9081 ld_shlibs=no
9082 cat <<_LT_EOF 1>&2
9084 *** Warning: the GNU linker, at least up to release 2.19, is reported
9085 *** to be unable to reliably create shared libraries on AIX.
9086 *** Therefore, libtool is disabling shared libraries support. If you
9087 *** really care for shared libraries, you may want to install binutils
9088 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9089 *** You will then need to restart the configuration process.
9091 _LT_EOF
9095 amigaos*)
9096 case $host_cpu in
9097 powerpc)
9098 # see comment about AmigaOS4 .so support
9099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100 archive_expsym_cmds=''
9102 m68k)
9103 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)'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_minus_L=yes
9107 esac
9110 beos*)
9111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9112 allow_undefined_flag=unsupported
9113 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9114 # support --undefined. This deserves some investigation. FIXME
9115 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 else
9117 ld_shlibs=no
9121 cygwin* | mingw* | pw32* | cegcc*)
9122 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9123 # as there is no search path for DLLs.
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 export_dynamic_flag_spec='${wl}--export-all-symbols'
9126 allow_undefined_flag=unsupported
9127 always_export_symbols=no
9128 enable_shared_with_static_runtimes=yes
9129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9131 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133 # If the export-symbols file already is a .def file (1st line
9134 # is EXPORTS), use it as is; otherwise, prepend...
9135 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9136 cp $export_symbols $output_objdir/$soname.def;
9137 else
9138 echo EXPORTS > $output_objdir/$soname.def;
9139 cat $export_symbols >> $output_objdir/$soname.def;
9141 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142 else
9143 ld_shlibs=no
9147 haiku*)
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 link_all_deplibs=yes
9152 interix[3-9]*)
9153 hardcode_direct=no
9154 hardcode_shlibpath_var=no
9155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9156 export_dynamic_flag_spec='${wl}-E'
9157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9158 # Instead, shared libraries are loaded at an image base (0x10000000 by
9159 # default) and relocated if they conflict, which is a slow very memory
9160 # consuming and fragmenting process. To avoid this, we pick a random,
9161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9164 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'
9167 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9168 tmp_diet=no
9169 if test "$host_os" = linux-dietlibc; then
9170 case $cc_basename in
9171 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9172 esac
9174 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9175 && test "$tmp_diet" = no
9176 then
9177 tmp_addflag=
9178 tmp_sharedflag='-shared'
9179 case $cc_basename,$host_cpu in
9180 pgcc*) # Portland Group C compiler
9181 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'
9182 tmp_addflag=' $pic_flag'
9184 pgf77* | pgf90* | pgf95* | pgfortran*)
9185 # Portland Group f77 and f90 compilers
9186 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'
9187 tmp_addflag=' $pic_flag -Mnomain' ;;
9188 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9189 tmp_addflag=' -i_dynamic' ;;
9190 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9191 tmp_addflag=' -i_dynamic -nofor_main' ;;
9192 ifc* | ifort*) # Intel Fortran compiler
9193 tmp_addflag=' -nofor_main' ;;
9194 lf95*) # Lahey Fortran 8.1
9195 whole_archive_flag_spec=
9196 tmp_sharedflag='--shared' ;;
9197 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9198 tmp_sharedflag='-qmkshrobj'
9199 tmp_addflag= ;;
9200 nvcc*) # Cuda Compiler Driver 2.2
9201 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'
9202 compiler_needs_object=yes
9204 esac
9205 case `$CC -V 2>&1 | sed 5q` in
9206 *Sun\ C*) # Sun C 5.9
9207 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'
9208 compiler_needs_object=yes
9209 tmp_sharedflag='-G' ;;
9210 *Sun\ F*) # Sun Fortran 8.3
9211 tmp_sharedflag='-G' ;;
9212 esac
9213 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9215 if test "x$supports_anon_versioning" = xyes; then
9216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9218 echo "local: *; };" >> $output_objdir/$libname.ver~
9219 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9222 case $cc_basename in
9223 xlf* | bgf* | bgxlf* | mpixlf*)
9224 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9225 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9226 hardcode_libdir_flag_spec=
9227 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9228 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9229 if test "x$supports_anon_versioning" = xyes; then
9230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232 echo "local: *; };" >> $output_objdir/$libname.ver~
9233 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9236 esac
9237 else
9238 ld_shlibs=no
9242 netbsd*)
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9245 wlarc=
9246 else
9247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9252 solaris*)
9253 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9254 ld_shlibs=no
9255 cat <<_LT_EOF 1>&2
9257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9258 *** create shared libraries on Solaris systems. Therefore, libtool
9259 *** is disabling shared libraries support. We urge you to upgrade GNU
9260 *** binutils to release 2.9.1 or newer. Another option is to modify
9261 *** your PATH or compiler configuration so that the native linker is
9262 *** used, and then restart.
9264 _LT_EOF
9265 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9274 case `$LD -v 2>&1` in
9275 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9276 ld_shlibs=no
9277 cat <<_LT_EOF 1>&2
9279 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9280 *** reliably create shared libraries on SCO systems. Therefore, libtool
9281 *** is disabling shared libraries support. We urge you to upgrade GNU
9282 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9283 *** your PATH or compiler configuration so that the native linker is
9284 *** used, and then restart.
9286 _LT_EOF
9289 # For security reasons, it is highly recommended that you always
9290 # use absolute paths for naming shared libraries, and exclude the
9291 # DT_RUNPATH tag from executables and libraries. But doing so
9292 # requires that you compile everything twice, which is a pain.
9293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297 else
9298 ld_shlibs=no
9301 esac
9304 sunos4*)
9305 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306 wlarc=
9307 hardcode_direct=yes
9308 hardcode_shlibpath_var=no
9312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315 else
9316 ld_shlibs=no
9319 esac
9321 if test "$ld_shlibs" = no; then
9322 runpath_var=
9323 hardcode_libdir_flag_spec=
9324 export_dynamic_flag_spec=
9325 whole_archive_flag_spec=
9327 else
9328 # PORTME fill in a description of your system's linker (not GNU ld)
9329 case $host_os in
9330 aix3*)
9331 allow_undefined_flag=unsupported
9332 always_export_symbols=yes
9333 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'
9334 # Note: this linker hardcodes the directories in LIBPATH if there
9335 # are no directories specified by -L.
9336 hardcode_minus_L=yes
9337 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9338 # Neither direct hardcoding nor static linking is supported with a
9339 # broken collect2.
9340 hardcode_direct=unsupported
9344 aix[4-9]*)
9345 if test "$host_cpu" = ia64; then
9346 # On IA64, the linker does run time linking by default, so we don't
9347 # have to do anything special.
9348 aix_use_runtimelinking=no
9349 exp_sym_flag='-Bexport'
9350 no_entry_flag=""
9351 else
9352 # If we're using GNU nm, then we don't want the "-C" option.
9353 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9354 # Also, AIX nm treats weak defined symbols like other global
9355 # defined symbols, whereas GNU nm marks them as "W".
9356 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9357 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'
9358 else
9359 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'
9361 aix_use_runtimelinking=no
9363 # Test if we are trying to use run time linking or normal
9364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9365 # need to do runtime linking.
9366 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9367 for ld_flag in $LDFLAGS; do
9368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9369 aix_use_runtimelinking=yes
9370 break
9372 done
9374 esac
9376 exp_sym_flag='-bexport'
9377 no_entry_flag='-bnoentry'
9380 # When large executables or shared objects are built, AIX ld can
9381 # have problems creating the table of contents. If linking a library
9382 # or program results in "error TOC overflow" add -mminimal-toc to
9383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9386 archive_cmds=''
9387 hardcode_direct=yes
9388 hardcode_direct_absolute=yes
9389 hardcode_libdir_separator=':'
9390 link_all_deplibs=yes
9391 file_list_spec='${wl}-f,'
9393 if test "$GCC" = yes; then
9394 case $host_os in aix4.[012]|aix4.[012].*)
9395 # We only want to do this on AIX 4.2 and lower, the check
9396 # below for broken collect2 doesn't work under 4.3+
9397 collect2name=`${CC} -print-prog-name=collect2`
9398 if test -f "$collect2name" &&
9399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9400 then
9401 # We have reworked collect2
9403 else
9404 # We have old collect2
9405 hardcode_direct=unsupported
9406 # It fails to find uninstalled libraries when the uninstalled
9407 # path is not listed in the libpath. Setting hardcode_minus_L
9408 # to unsupported forces relinking
9409 hardcode_minus_L=yes
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 hardcode_libdir_separator=
9414 esac
9415 shared_flag='-shared'
9416 if test "$aix_use_runtimelinking" = yes; then
9417 shared_flag="$shared_flag "'${wl}-G'
9419 else
9420 # not using gcc
9421 if test "$host_cpu" = ia64; then
9422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9423 # chokes on -Wl,-G. The following line is correct:
9424 shared_flag='-G'
9425 else
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag='${wl}-G'
9428 else
9429 shared_flag='${wl}-bM:SRE'
9434 export_dynamic_flag_spec='${wl}-bexpall'
9435 # It seems that -bexpall does not export symbols beginning with
9436 # underscore (_), so it is better to generate a list of symbols to export.
9437 always_export_symbols=yes
9438 if test "$aix_use_runtimelinking" = yes; then
9439 # Warning - without using the other runtime loading flags (-brtl),
9440 # -berok will link without error, but may produce a broken library.
9441 allow_undefined_flag='-berok'
9442 # Determine the default libpath from the value encoded in an
9443 # empty executable.
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9448 main ()
9452 return 0;
9454 _ACEOF
9455 if ac_fn_c_try_link "$LINENO"; then :
9457 lt_aix_libpath_sed='
9458 /Import File Strings/,/^$/ {
9459 /^0/ {
9460 s/^0 *\(.*\)$/\1/
9464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465 # Check for a 64-bit object if we didn't find anything.
9466 if test -z "$aix_libpath"; then
9467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475 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"
9476 else
9477 if test "$host_cpu" = ia64; then
9478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9479 allow_undefined_flag="-z nodefs"
9480 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"
9481 else
9482 # Determine the default libpath from the value encoded in an
9483 # empty executable.
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9488 main ()
9492 return 0;
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9497 lt_aix_libpath_sed='
9498 /Import File Strings/,/^$/ {
9499 /^0/ {
9500 s/^0 *\(.*\)$/\1/
9504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505 # Check for a 64-bit object if we didn't find anything.
9506 if test -z "$aix_libpath"; then
9507 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9515 # Warning - without using the other run time loading flags,
9516 # -berok will link without error, but may produce a broken library.
9517 no_undefined_flag=' ${wl}-bernotok'
9518 allow_undefined_flag=' ${wl}-berok'
9519 if test "$with_gnu_ld" = yes; then
9520 # We only use this code for GNU lds that support --whole-archive.
9521 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9522 else
9523 # Exported symbols can be pulled into shared objects from archives
9524 whole_archive_flag_spec='$convenience'
9526 archive_cmds_need_lc=yes
9527 # This is similar to how AIX traditionally builds its shared libraries.
9528 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'
9533 amigaos*)
9534 case $host_cpu in
9535 powerpc)
9536 # see comment about AmigaOS4 .so support
9537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538 archive_expsym_cmds=''
9540 m68k)
9541 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)'
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_minus_L=yes
9545 esac
9548 bsdi[45]*)
9549 export_dynamic_flag_spec=-rdynamic
9552 cygwin* | mingw* | pw32* | cegcc*)
9553 # When not using gcc, we currently assume that we are using
9554 # Microsoft Visual C++.
9555 # hardcode_libdir_flag_spec is actually meaningless, as there is
9556 # no search path for DLLs.
9557 hardcode_libdir_flag_spec=' '
9558 allow_undefined_flag=unsupported
9559 # Tell ltmain to make .lib files, not .a files.
9560 libext=lib
9561 # Tell ltmain to make .dll files, not .so files.
9562 shrext_cmds=".dll"
9563 # FIXME: Setting linknames here is a bad hack.
9564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9565 # The linker will automatically build a .lib file if we build a DLL.
9566 old_archive_from_new_cmds='true'
9567 # FIXME: Should let the user specify the lib program.
9568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9569 fix_srcfile_path='`cygpath -w "$srcfile"`'
9570 enable_shared_with_static_runtimes=yes
9573 darwin* | rhapsody*)
9576 archive_cmds_need_lc=no
9577 hardcode_direct=no
9578 hardcode_automatic=yes
9579 hardcode_shlibpath_var=unsupported
9580 if test "$lt_cv_ld_force_load" = "yes"; then
9581 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\"`'
9582 else
9583 whole_archive_flag_spec=''
9585 link_all_deplibs=yes
9586 allow_undefined_flag="$_lt_dar_allow_undefined"
9587 case $cc_basename in
9588 ifort*) _lt_dar_can_shared=yes ;;
9589 *) _lt_dar_can_shared=$GCC ;;
9590 esac
9591 if test "$_lt_dar_can_shared" = "yes"; then
9592 output_verbose_link_cmd=func_echo_all
9593 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9594 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9595 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}"
9596 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}"
9598 else
9599 ld_shlibs=no
9604 dgux*)
9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 hardcode_libdir_flag_spec='-L$libdir'
9607 hardcode_shlibpath_var=no
9610 freebsd1*)
9611 ld_shlibs=no
9614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9615 # support. Future versions do this automatically, but an explicit c++rt0.o
9616 # does not break anything, and helps significantly (at the cost of a little
9617 # extra space).
9618 freebsd2.2*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_direct=yes
9622 hardcode_shlibpath_var=no
9625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9626 freebsd2*)
9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_direct=yes
9629 hardcode_minus_L=yes
9630 hardcode_shlibpath_var=no
9633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9634 freebsd* | dragonfly*)
9635 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9636 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_direct=yes
9638 hardcode_shlibpath_var=no
9641 hpux9*)
9642 if test "$GCC" = yes; then
9643 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9644 else
9645 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'
9647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9648 hardcode_libdir_separator=:
9649 hardcode_direct=yes
9651 # hardcode_minus_L: Not really in the search PATH,
9652 # but as the default location of the library.
9653 hardcode_minus_L=yes
9654 export_dynamic_flag_spec='${wl}-E'
9657 hpux10*)
9658 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9660 else
9661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9663 if test "$with_gnu_ld" = no; then
9664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9665 hardcode_libdir_flag_spec_ld='+b $libdir'
9666 hardcode_libdir_separator=:
9667 hardcode_direct=yes
9668 hardcode_direct_absolute=yes
9669 export_dynamic_flag_spec='${wl}-E'
9670 # hardcode_minus_L: Not really in the search PATH,
9671 # but as the default location of the library.
9672 hardcode_minus_L=yes
9676 hpux11*)
9677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9678 case $host_cpu in
9679 hppa*64*)
9680 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 ia64*)
9683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9688 esac
9689 else
9690 case $host_cpu in
9691 hppa*64*)
9692 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ia64*)
9695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9699 # Older versions of the 11.00 compiler do not understand -b yet
9700 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9702 $as_echo_n "checking if $CC understands -b... " >&6; }
9703 if ${lt_cv_prog_compiler__b+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 lt_cv_prog_compiler__b=no
9707 save_LDFLAGS="$LDFLAGS"
9708 LDFLAGS="$LDFLAGS -b"
9709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9711 # The linker can only warn and ignore the option if not recognized
9712 # So say no if there are warnings
9713 if test -s conftest.err; then
9714 # Append any errors to the config.log.
9715 cat conftest.err 1>&5
9716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718 if diff conftest.exp conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler__b=yes
9721 else
9722 lt_cv_prog_compiler__b=yes
9725 $RM -r conftest*
9726 LDFLAGS="$save_LDFLAGS"
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9730 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9732 if test x"$lt_cv_prog_compiler__b" = xyes; then
9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734 else
9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9739 esac
9741 if test "$with_gnu_ld" = no; then
9742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743 hardcode_libdir_separator=:
9745 case $host_cpu in
9746 hppa*64*|ia64*)
9747 hardcode_direct=no
9748 hardcode_shlibpath_var=no
9751 hardcode_direct=yes
9752 hardcode_direct_absolute=yes
9753 export_dynamic_flag_spec='${wl}-E'
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9759 esac
9763 irix5* | irix6* | nonstopux*)
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared $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'
9766 # Try to use the -exported_symbol ld option, if it does not
9767 # work, assume that -exports_file does not work either and
9768 # implicitly export all symbols.
9769 save_LDFLAGS="$LDFLAGS"
9770 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h. */
9773 int foo(void) {}
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9776 archive_expsym_cmds='$CC -shared $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'
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LDFLAGS="$save_LDFLAGS"
9782 else
9783 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'
9784 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'
9786 archive_cmds_need_lc='no'
9787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9788 hardcode_libdir_separator=:
9789 inherit_rpath=yes
9790 link_all_deplibs=yes
9793 netbsd*)
9794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9796 else
9797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9799 hardcode_libdir_flag_spec='-R$libdir'
9800 hardcode_direct=yes
9801 hardcode_shlibpath_var=no
9804 newsos6)
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_direct=yes
9807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9808 hardcode_libdir_separator=:
9809 hardcode_shlibpath_var=no
9812 *nto* | *qnx*)
9815 openbsd*)
9816 if test -f /usr/libexec/ld.so; then
9817 hardcode_direct=yes
9818 hardcode_shlibpath_var=no
9819 hardcode_direct_absolute=yes
9820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9824 export_dynamic_flag_spec='${wl}-E'
9825 else
9826 case $host_os in
9827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_libdir_flag_spec='-R$libdir'
9832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9835 esac
9837 else
9838 ld_shlibs=no
9842 os2*)
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_minus_L=yes
9845 allow_undefined_flag=unsupported
9846 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'
9847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9850 osf3*)
9851 if test "$GCC" = yes; then
9852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9853 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'
9854 else
9855 allow_undefined_flag=' -expect_unresolved \*'
9856 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'
9858 archive_cmds_need_lc='no'
9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator=:
9863 osf4* | osf5*) # as osf3* with the addition of -msym flag
9864 if test "$GCC" = yes; then
9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866 archive_cmds='$CC -shared${allow_undefined_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'
9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9868 else
9869 allow_undefined_flag=' -expect_unresolved \*'
9870 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'
9871 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~
9872 $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'
9874 # Both c and cxx compiler support -rpath directly
9875 hardcode_libdir_flag_spec='-rpath $libdir'
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_separator=:
9881 solaris*)
9882 no_undefined_flag=' -z defs'
9883 if test "$GCC" = yes; then
9884 wlarc='${wl}'
9885 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9888 else
9889 case `$CC -V 2>&1` in
9890 *"Compilers 5.0"*)
9891 wlarc=''
9892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9897 wlarc='${wl}'
9898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9902 esac
9904 hardcode_libdir_flag_spec='-R$libdir'
9905 hardcode_shlibpath_var=no
9906 case $host_os in
9907 solaris2.[0-5] | solaris2.[0-5].*) ;;
9909 # The compiler driver will combine and reorder linker options,
9910 # but understands `-z linker_flag'. GCC discards it without `$wl',
9911 # but is careful enough not to reorder.
9912 # Supported since Solaris 2.6 (maybe 2.5.1?)
9913 if test "$GCC" = yes; then
9914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9915 else
9916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9919 esac
9920 link_all_deplibs=yes
9923 sunos4*)
9924 if test "x$host_vendor" = xsequent; then
9925 # Use $CC to link under sequent, because it throws in some extra .o
9926 # files that make .init and .fini sections work.
9927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9931 hardcode_libdir_flag_spec='-L$libdir'
9932 hardcode_direct=yes
9933 hardcode_minus_L=yes
9934 hardcode_shlibpath_var=no
9937 sysv4)
9938 case $host_vendor in
9939 sni)
9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_direct=yes # is this really true???
9943 siemens)
9944 ## LD is ld it makes a PLAMLIB
9945 ## CC just makes a GrossModule.
9946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9947 reload_cmds='$CC -r -o $output$reload_objs'
9948 hardcode_direct=no
9950 motorola)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9954 esac
9955 runpath_var='LD_RUN_PATH'
9956 hardcode_shlibpath_var=no
9959 sysv4.3*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_shlibpath_var=no
9962 export_dynamic_flag_spec='-Bexport'
9965 sysv4*MP*)
9966 if test -d /usr/nec; then
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_shlibpath_var=no
9969 runpath_var=LD_RUN_PATH
9970 hardcode_runpath_var=yes
9971 ld_shlibs=yes
9975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9976 no_undefined_flag='${wl}-z,text'
9977 archive_cmds_need_lc=no
9978 hardcode_shlibpath_var=no
9979 runpath_var='LD_RUN_PATH'
9981 if test "$GCC" = yes; then
9982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 sysv5* | sco3.2v5* | sco5v6*)
9991 # Note: We can NOT use -z defs as we might desire, because we do not
9992 # link with -lc, and that would cause any symbols used from libc to
9993 # always be unresolved, which means just about no library would
9994 # ever link correctly. If we're not using GNU ld we use -z text
9995 # though, which does catch some bad symbols but isn't as heavy-handed
9996 # as -z defs.
9997 no_undefined_flag='${wl}-z,text'
9998 allow_undefined_flag='${wl}-z,nodefs'
9999 archive_cmds_need_lc=no
10000 hardcode_shlibpath_var=no
10001 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10002 hardcode_libdir_separator=':'
10003 link_all_deplibs=yes
10004 export_dynamic_flag_spec='${wl}-Bexport'
10005 runpath_var='LD_RUN_PATH'
10007 if test "$GCC" = yes; then
10008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 uts4*)
10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_shlibpath_var=no
10023 ld_shlibs=no
10025 esac
10027 if test x$host_vendor = xsni; then
10028 case $host in
10029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 export_dynamic_flag_spec='${wl}-Blargedynsym'
10032 esac
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10037 $as_echo "$ld_shlibs" >&6; }
10038 test "$ld_shlibs" = no && can_build_shared=no
10040 with_gnu_ld=$with_gnu_ld
10057 # Do we need to explicitly link libc?
10059 case "x$archive_cmds_need_lc" in
10060 x|xyes)
10061 # Assume -lc should be added
10062 archive_cmds_need_lc=yes
10064 if test "$enable_shared" = yes && test "$GCC" = yes; then
10065 case $archive_cmds in
10066 *'~'*)
10067 # FIXME: we may have to deal with multi-command sequences.
10069 '$CC '*)
10070 # Test whether the compiler implicitly links with -lc since on some
10071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10072 # to ld, don't add -lc before -lgcc.
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10075 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 $RM conftest*
10079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; } 2>conftest.err; then
10086 soname=conftest
10087 lib=conftest
10088 libobjs=conftest.$ac_objext
10089 deplibs=
10090 wl=$lt_prog_compiler_wl
10091 pic_flag=$lt_prog_compiler_pic
10092 compiler_flags=-v
10093 linker_flags=-v
10094 verstring=
10095 output_objdir=.
10096 libname=conftest
10097 lt_save_allow_undefined_flag=$allow_undefined_flag
10098 allow_undefined_flag=
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10101 ac_status=$?
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }
10104 then
10105 lt_cv_archive_cmds_need_lc=no
10106 else
10107 lt_cv_archive_cmds_need_lc=yes
10109 allow_undefined_flag=$lt_save_allow_undefined_flag
10110 else
10111 cat conftest.err 1>&5
10113 $RM conftest*
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10120 esac
10123 esac
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10282 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10284 if test "$GCC" = yes; then
10285 case $host_os in
10286 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10287 *) lt_awk_arg="/^libraries:/" ;;
10288 esac
10289 case $host_os in
10290 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10291 *) lt_sed_strip_eq="s,=/,/,g" ;;
10292 esac
10293 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10294 case $lt_search_path_spec in
10295 *\;*)
10296 # if the path contains ";" then we assume it to be the separator
10297 # otherwise default to the standard path separator (i.e. ":") - it is
10298 # assumed that no part of a normal pathname contains ";" but that should
10299 # okay in the real world where ";" in dirpaths is itself problematic.
10300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10305 esac
10306 # Ok, now we have the path, separated by spaces, we can step through it
10307 # and add multilib dir if necessary.
10308 lt_tmp_lt_search_path_spec=
10309 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10310 for lt_sys_path in $lt_search_path_spec; do
10311 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10313 else
10314 test -d "$lt_sys_path" && \
10315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10317 done
10318 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10319 BEGIN {RS=" "; FS="/|\n";} {
10320 lt_foo="";
10321 lt_count=0;
10322 for (lt_i = NF; lt_i > 0; lt_i--) {
10323 if ($lt_i != "" && $lt_i != ".") {
10324 if ($lt_i == "..") {
10325 lt_count++;
10326 } else {
10327 if (lt_count == 0) {
10328 lt_foo="/" $lt_i lt_foo;
10329 } else {
10330 lt_count--;
10335 if (lt_foo != "") { lt_freq[lt_foo]++; }
10336 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10338 # AWK program above erroneously prepends '/' to C:/dos/paths
10339 # for these hosts.
10340 case $host_os in
10341 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10342 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10343 esac
10344 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10345 else
10346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10348 library_names_spec=
10349 libname_spec='lib$name'
10350 soname_spec=
10351 shrext_cmds=".so"
10352 postinstall_cmds=
10353 postuninstall_cmds=
10354 finish_cmds=
10355 finish_eval=
10356 shlibpath_var=
10357 shlibpath_overrides_runpath=unknown
10358 version_type=none
10359 dynamic_linker="$host_os ld.so"
10360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10361 need_lib_prefix=unknown
10362 hardcode_into_libs=no
10364 # when you set need_version to no, make sure it does not cause -set_version
10365 # flags to be left without arguments
10366 need_version=unknown
10368 case $host_os in
10369 aix3*)
10370 version_type=linux
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10372 shlibpath_var=LIBPATH
10374 # AIX 3 has no versioning support, so we append a major version to the name.
10375 soname_spec='${libname}${release}${shared_ext}$major'
10378 aix[4-9]*)
10379 version_type=linux
10380 need_lib_prefix=no
10381 need_version=no
10382 hardcode_into_libs=yes
10383 if test "$host_cpu" = ia64; then
10384 # AIX 5 supports IA64
10385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 else
10388 # With GCC up to 2.95.x, collect2 would create an import file
10389 # for dependence libraries. The import file would start with
10390 # the line `#! .'. This would cause the generated library to
10391 # depend on `.', always an invalid library. This was fixed in
10392 # development snapshots of GCC prior to 3.0.
10393 case $host_os in
10394 aix4 | aix4.[01] | aix4.[01].*)
10395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10396 echo ' yes '
10397 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10399 else
10400 can_build_shared=no
10403 esac
10404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10405 # soname into executable. Probably we can add versioning support to
10406 # collect2, so additional links can be useful in future.
10407 if test "$aix_use_runtimelinking" = yes; then
10408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10409 # instead of lib<name>.a to let people know that these are not
10410 # typical AIX shared libraries.
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 else
10413 # We preserve .a as extension for shared libraries through AIX4.2
10414 # and later when we are not doing run time linking.
10415 library_names_spec='${libname}${release}.a $libname.a'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LIBPATH
10422 amigaos*)
10423 case $host_cpu in
10424 powerpc)
10425 # Since July 2007 AmigaOS4 officially supports .so libraries.
10426 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 m68k)
10430 library_names_spec='$libname.ixlibrary $libname.a'
10431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10432 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'
10434 esac
10437 beos*)
10438 library_names_spec='${libname}${shared_ext}'
10439 dynamic_linker="$host_os ld.so"
10440 shlibpath_var=LIBRARY_PATH
10443 bsdi[45]*)
10444 version_type=linux
10445 need_version=no
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 soname_spec='${libname}${release}${shared_ext}$major'
10448 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10451 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10452 # the default ld.so.conf also contains /usr/contrib/lib and
10453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10454 # libtool to hard-code these into programs
10457 cygwin* | mingw* | pw32* | cegcc*)
10458 version_type=windows
10459 shrext_cmds=".dll"
10460 need_version=no
10461 need_lib_prefix=no
10463 case $GCC,$host_os in
10464 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10465 library_names_spec='$libname.dll.a'
10466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10467 postinstall_cmds='base_file=`basename \${file}`~
10468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10469 dldir=$destdir/`dirname \$dlpath`~
10470 test -d \$dldir || mkdir -p \$dldir~
10471 $install_prog $dir/$dlname \$dldir/$dlname~
10472 chmod a+x \$dldir/$dlname~
10473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10477 dlpath=$dir/\$dldll~
10478 $RM \$dlpath'
10479 shlibpath_overrides_runpath=yes
10481 case $host_os in
10482 cygwin*)
10483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10488 mingw* | cegcc*)
10489 # MinGW DLLs use traditional 'lib' prefix
10490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10492 pw32*)
10493 # pw32 DLLs use 'pw' prefix rather than 'lib'
10494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10496 esac
10500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10502 esac
10503 dynamic_linker='Win32 ld.exe'
10504 # FIXME: first we should search . and the directory the executable is in
10505 shlibpath_var=PATH
10508 darwin* | rhapsody*)
10509 dynamic_linker="$host_os dyld"
10510 version_type=darwin
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10514 soname_spec='${libname}${release}${major}$shared_ext'
10515 shlibpath_overrides_runpath=yes
10516 shlibpath_var=DYLD_LIBRARY_PATH
10517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10523 dgux*)
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10532 freebsd1*)
10533 dynamic_linker=no
10536 freebsd* | dragonfly*)
10537 # DragonFly does not have aout. When/if they implement a new
10538 # versioning mechanism, adjust this.
10539 if test -x /usr/bin/objformat; then
10540 objformat=`/usr/bin/objformat`
10541 else
10542 case $host_os in
10543 freebsd[123]*) objformat=aout ;;
10544 *) objformat=elf ;;
10545 esac
10547 version_type=freebsd-$objformat
10548 case $version_type in
10549 freebsd-elf*)
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10551 need_version=no
10552 need_lib_prefix=no
10554 freebsd-*)
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10556 need_version=yes
10558 esac
10559 shlibpath_var=LD_LIBRARY_PATH
10560 case $host_os in
10561 freebsd2*)
10562 shlibpath_overrides_runpath=yes
10564 freebsd3.[01]* | freebsdelf3.[01]*)
10565 shlibpath_overrides_runpath=yes
10566 hardcode_into_libs=yes
10568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10570 shlibpath_overrides_runpath=no
10571 hardcode_into_libs=yes
10573 *) # from 4.6 on, and DragonFly
10574 shlibpath_overrides_runpath=yes
10575 hardcode_into_libs=yes
10577 esac
10580 gnu*)
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 hardcode_into_libs=yes
10590 haiku*)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 dynamic_linker="$host_os runtime_loader"
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10600 hardcode_into_libs=yes
10603 hpux9* | hpux10* | hpux11*)
10604 # Give a soname corresponding to the major version so that dld.sl refuses to
10605 # link against other versions.
10606 version_type=sunos
10607 need_lib_prefix=no
10608 need_version=no
10609 case $host_cpu in
10610 ia64*)
10611 shrext_cmds='.so'
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.so"
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 if test "X$HPUX_IA64_MODE" = X32; then
10619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10620 else
10621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10625 hppa*64*)
10626 shrext_cmds='.sl'
10627 hardcode_into_libs=yes
10628 dynamic_linker="$host_os dld.sl"
10629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637 shrext_cmds='.sl'
10638 dynamic_linker="$host_os dld.sl"
10639 shlibpath_var=SHLIB_PATH
10640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10644 esac
10645 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10646 postinstall_cmds='chmod 555 $lib'
10647 # or fails outright, so override atomically:
10648 install_override_mode=555
10651 interix[3-9]*)
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10663 irix5* | irix6* | nonstopux*)
10664 case $host_os in
10665 nonstopux*) version_type=nonstopux ;;
10667 if test "$lt_cv_prog_gnu_ld" = yes; then
10668 version_type=linux
10669 else
10670 version_type=irix
10671 fi ;;
10672 esac
10673 need_lib_prefix=no
10674 need_version=no
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10677 case $host_os in
10678 irix5* | nonstopux*)
10679 libsuff= shlibsuff=
10682 case $LD in # libtool.m4 will add one of these switches to LD
10683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10684 libsuff= shlibsuff= libmagic=32-bit;;
10685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10686 libsuff=32 shlibsuff=N32 libmagic=N32;;
10687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10689 *) libsuff= shlibsuff= libmagic=never-match;;
10690 esac
10692 esac
10693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10697 hardcode_into_libs=yes
10700 # No shared lib support for Linux oldld, aout, or coff.
10701 linux*oldld* | linux*aout* | linux*coff*)
10702 dynamic_linker=no
10705 # This must be Linux ELF.
10706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=no
10716 # Some binutils ld are patched to set DT_RUNPATH
10717 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 lt_cv_shlibpath_overrides_runpath=no
10721 save_LDFLAGS=$LDFLAGS
10722 save_libdir=$libdir
10723 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10724 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10729 main ()
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10738 lt_cv_shlibpath_overrides_runpath=yes
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LDFLAGS=$save_LDFLAGS
10744 libdir=$save_libdir
10748 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10750 # This implies no fast_install, which is unacceptable.
10751 # Some rework will be needed to allow for fast_install
10752 # before this can be enabled.
10753 hardcode_into_libs=yes
10755 # Append ld.so.conf contents to the search path
10756 if test -f /etc/ld.so.conf; then
10757 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' ' '`
10758 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10761 # We used to test for /lib/ld.so.1 and disable shared libraries on
10762 # powerpc, because MkLinux only supported shared libraries with the
10763 # GNU dynamic linker. Since this was broken with cross compilers,
10764 # most powerpc-linux boxes support dynamic linking these days and
10765 # people can always --disable-shared, the test was removed, and we
10766 # assume the GNU/Linux dynamic linker is in use.
10767 dynamic_linker='GNU/Linux ld.so'
10770 netbsd*)
10771 version_type=sunos
10772 need_lib_prefix=no
10773 need_version=no
10774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10777 dynamic_linker='NetBSD (a.out) ld.so'
10778 else
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 dynamic_linker='NetBSD ld.elf_so'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10788 newsos6)
10789 version_type=linux
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes
10795 *nto* | *qnx*)
10796 version_type=qnx
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10804 dynamic_linker='ldqnx.so'
10807 openbsd*)
10808 version_type=sunos
10809 sys_lib_dlsearch_path_spec="/usr/lib"
10810 need_lib_prefix=no
10811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10812 case $host_os in
10813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10814 *) need_version=no ;;
10815 esac
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820 case $host_os in
10821 openbsd2.[89] | openbsd2.[89].*)
10822 shlibpath_overrides_runpath=no
10825 shlibpath_overrides_runpath=yes
10827 esac
10828 else
10829 shlibpath_overrides_runpath=yes
10833 os2*)
10834 libname_spec='$name'
10835 shrext_cmds=".dll"
10836 need_lib_prefix=no
10837 library_names_spec='$libname${shared_ext} $libname.a'
10838 dynamic_linker='OS/2 ld.exe'
10839 shlibpath_var=LIBPATH
10842 osf3* | osf4* | osf5*)
10843 version_type=osf
10844 need_lib_prefix=no
10845 need_version=no
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10853 rdos*)
10854 dynamic_linker=no
10857 solaris*)
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 hardcode_into_libs=yes
10866 # ldd complains unless libraries are executable
10867 postinstall_cmds='chmod +x $lib'
10870 sunos4*)
10871 version_type=sunos
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 if test "$with_gnu_ld" = yes; then
10877 need_lib_prefix=no
10879 need_version=yes
10882 sysv4 | sysv4.3*)
10883 version_type=linux
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 case $host_vendor in
10888 sni)
10889 shlibpath_overrides_runpath=no
10890 need_lib_prefix=no
10891 runpath_var=LD_RUN_PATH
10893 siemens)
10894 need_lib_prefix=no
10896 motorola)
10897 need_lib_prefix=no
10898 need_version=no
10899 shlibpath_overrides_runpath=no
10900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10902 esac
10905 sysv4*MP*)
10906 if test -d /usr/nec ;then
10907 version_type=linux
10908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10909 soname_spec='$libname${shared_ext}.$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10915 version_type=freebsd-elf
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10923 if test "$with_gnu_ld" = yes; then
10924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10925 else
10926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10927 case $host_os in
10928 sco3.2v5*)
10929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10931 esac
10933 sys_lib_dlsearch_path_spec='/usr/lib'
10936 tpf*)
10937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10947 uts4*)
10948 version_type=linux
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10955 dynamic_linker=no
10957 esac
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10959 $as_echo "$dynamic_linker" >&6; }
10960 test "$dynamic_linker" = no && can_build_shared=no
10962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10963 if test "$GCC" = yes; then
10964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11067 hardcode_action=
11068 if test -n "$hardcode_libdir_flag_spec" ||
11069 test -n "$runpath_var" ||
11070 test "X$hardcode_automatic" = "Xyes" ; then
11072 # We can hardcode non-existent directories.
11073 if test "$hardcode_direct" != no &&
11074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11075 # have to relink, otherwise we might link with an installed library
11076 # when we should be linking with a yet-to-be-installed one
11077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11078 test "$hardcode_minus_L" != no; then
11079 # Linking always hardcodes the temporary library directory.
11080 hardcode_action=relink
11081 else
11082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11083 hardcode_action=immediate
11085 else
11086 # We cannot hardcode anything, or else we can only hardcode existing
11087 # directories.
11088 hardcode_action=unsupported
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11091 $as_echo "$hardcode_action" >&6; }
11093 if test "$hardcode_action" = relink ||
11094 test "$inherit_rpath" = yes; then
11095 # Fast installation is not supported
11096 enable_fast_install=no
11097 elif test "$shlibpath_overrides_runpath" = yes ||
11098 test "$enable_shared" = no; then
11099 # Fast installation is not necessary
11100 enable_fast_install=needless
11108 if test "x$enable_dlopen" != xyes; then
11109 enable_dlopen=unknown
11110 enable_dlopen_self=unknown
11111 enable_dlopen_self_static=unknown
11112 else
11113 lt_cv_dlopen=no
11114 lt_cv_dlopen_libs=
11116 case $host_os in
11117 beos*)
11118 lt_cv_dlopen="load_add_on"
11119 lt_cv_dlopen_libs=
11120 lt_cv_dlopen_self=yes
11123 mingw* | pw32* | cegcc*)
11124 lt_cv_dlopen="LoadLibrary"
11125 lt_cv_dlopen_libs=
11128 cygwin*)
11129 lt_cv_dlopen="dlopen"
11130 lt_cv_dlopen_libs=
11133 darwin*)
11134 # if libdl is installed we need to link against it
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11137 if ${ac_cv_lib_dl_dlopen+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-ldl $LIBS"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11145 /* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 char dlopen ();
11153 main ()
11155 return dlopen ();
11157 return 0;
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 ac_cv_lib_dl_dlopen=yes
11162 else
11163 ac_cv_lib_dl_dlopen=no
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_lib_save_LIBS
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11173 else
11175 lt_cv_dlopen="dyld"
11176 lt_cv_dlopen_libs=
11177 lt_cv_dlopen_self=yes
11184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11185 if test "x$ac_cv_func_shl_load" = xyes; then :
11186 lt_cv_dlopen="shl_load"
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11189 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11190 if ${ac_cv_lib_dld_shl_load+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 ac_check_lib_save_LIBS=$LIBS
11194 LIBS="-ldld $LIBS"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char shl_load ();
11206 main ()
11208 return shl_load ();
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_lib_dld_shl_load=yes
11215 else
11216 ac_cv_lib_dld_shl_load=no
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11223 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11224 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11226 else
11227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11228 if test "x$ac_cv_func_dlopen" = xyes; then :
11229 lt_cv_dlopen="dlopen"
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11233 if ${ac_cv_lib_dl_dlopen+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-ldl $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char dlopen ();
11249 main ()
11251 return dlopen ();
11253 return 0;
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_lib_dl_dlopen=yes
11258 else
11259 ac_cv_lib_dl_dlopen=no
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11272 if ${ac_cv_lib_svld_dlopen+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lsvld $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char dlopen ();
11288 main ()
11290 return dlopen ();
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_svld_dlopen=yes
11297 else
11298 ac_cv_lib_svld_dlopen=no
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11308 else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11310 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11311 if ${ac_cv_lib_dld_dld_link+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ac_check_lib_save_LIBS=$LIBS
11315 LIBS="-ldld $LIBS"
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11319 /* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char dld_link ();
11327 main ()
11329 return dld_link ();
11331 return 0;
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 ac_cv_lib_dld_dld_link=yes
11336 else
11337 ac_cv_lib_dld_dld_link=no
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 LIBS=$ac_check_lib_save_LIBS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11345 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11365 esac
11367 if test "x$lt_cv_dlopen" != xno; then
11368 enable_dlopen=yes
11369 else
11370 enable_dlopen=no
11373 case $lt_cv_dlopen in
11374 dlopen)
11375 save_CPPFLAGS="$CPPFLAGS"
11376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11378 save_LDFLAGS="$LDFLAGS"
11379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11381 save_LIBS="$LIBS"
11382 LIBS="$lt_cv_dlopen_libs $LIBS"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11386 if ${lt_cv_dlopen_self+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test "$cross_compiling" = yes; then :
11390 lt_cv_dlopen_self=cross
11391 else
11392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11393 lt_status=$lt_dlunknown
11394 cat > conftest.$ac_ext <<_LT_EOF
11395 #line $LINENO "configure"
11396 #include "confdefs.h"
11398 #if HAVE_DLFCN_H
11399 #include <dlfcn.h>
11400 #endif
11402 #include <stdio.h>
11404 #ifdef RTLD_GLOBAL
11405 # define LT_DLGLOBAL RTLD_GLOBAL
11406 #else
11407 # ifdef DL_GLOBAL
11408 # define LT_DLGLOBAL DL_GLOBAL
11409 # else
11410 # define LT_DLGLOBAL 0
11411 # endif
11412 #endif
11414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11415 find out it does not work in some platform. */
11416 #ifndef LT_DLLAZY_OR_NOW
11417 # ifdef RTLD_LAZY
11418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11419 # else
11420 # ifdef DL_LAZY
11421 # define LT_DLLAZY_OR_NOW DL_LAZY
11422 # else
11423 # ifdef RTLD_NOW
11424 # define LT_DLLAZY_OR_NOW RTLD_NOW
11425 # else
11426 # ifdef DL_NOW
11427 # define LT_DLLAZY_OR_NOW DL_NOW
11428 # else
11429 # define LT_DLLAZY_OR_NOW 0
11430 # endif
11431 # endif
11432 # endif
11433 # endif
11434 #endif
11436 /* When -fvisbility=hidden is used, assume the code has been annotated
11437 correspondingly for the symbols needed. */
11438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11439 void fnord () __attribute__((visibility("default")));
11440 #endif
11442 void fnord () { int i=42; }
11443 int main ()
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11448 if (self)
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else
11453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11454 else puts (dlerror ());
11456 /* dlclose (self); */
11458 else
11459 puts (dlerror ());
11461 return status;
11463 _LT_EOF
11464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11465 (eval $ac_link) 2>&5
11466 ac_status=$?
11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11469 (./conftest; exit; ) >&5 2>/dev/null
11470 lt_status=$?
11471 case x$lt_status in
11472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11475 esac
11476 else :
11477 # compilation failed
11478 lt_cv_dlopen_self=no
11481 rm -fr conftest*
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11486 $as_echo "$lt_cv_dlopen_self" >&6; }
11488 if test "x$lt_cv_dlopen_self" = xyes; then
11489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11492 if ${lt_cv_dlopen_self_static+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 if test "$cross_compiling" = yes; then :
11496 lt_cv_dlopen_self_static=cross
11497 else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<_LT_EOF
11501 #line $LINENO "configure"
11502 #include "confdefs.h"
11504 #if HAVE_DLFCN_H
11505 #include <dlfcn.h>
11506 #endif
11508 #include <stdio.h>
11510 #ifdef RTLD_GLOBAL
11511 # define LT_DLGLOBAL RTLD_GLOBAL
11512 #else
11513 # ifdef DL_GLOBAL
11514 # define LT_DLGLOBAL DL_GLOBAL
11515 # else
11516 # define LT_DLGLOBAL 0
11517 # endif
11518 #endif
11520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522 #ifndef LT_DLLAZY_OR_NOW
11523 # ifdef RTLD_LAZY
11524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11525 # else
11526 # ifdef DL_LAZY
11527 # define LT_DLLAZY_OR_NOW DL_LAZY
11528 # else
11529 # ifdef RTLD_NOW
11530 # define LT_DLLAZY_OR_NOW RTLD_NOW
11531 # else
11532 # ifdef DL_NOW
11533 # define LT_DLLAZY_OR_NOW DL_NOW
11534 # else
11535 # define LT_DLLAZY_OR_NOW 0
11536 # endif
11537 # endif
11538 # endif
11539 # endif
11540 #endif
11542 /* When -fvisbility=hidden is used, assume the code has been annotated
11543 correspondingly for the symbols needed. */
11544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545 void fnord () __attribute__((visibility("default")));
11546 #endif
11548 void fnord () { int i=42; }
11549 int main ()
11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552 int status = $lt_dlunknown;
11554 if (self)
11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11557 else
11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11560 else puts (dlerror ());
11562 /* dlclose (self); */
11564 else
11565 puts (dlerror ());
11567 return status;
11569 _LT_EOF
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11571 (eval $ac_link) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11575 (./conftest; exit; ) >&5 2>/dev/null
11576 lt_status=$?
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11581 esac
11582 else :
11583 # compilation failed
11584 lt_cv_dlopen_self_static=no
11587 rm -fr conftest*
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11595 CPPFLAGS="$save_CPPFLAGS"
11596 LDFLAGS="$save_LDFLAGS"
11597 LIBS="$save_LIBS"
11599 esac
11601 case $lt_cv_dlopen_self in
11602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11603 *) enable_dlopen_self=unknown ;;
11604 esac
11606 case $lt_cv_dlopen_self_static in
11607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11608 *) enable_dlopen_self_static=unknown ;;
11609 esac
11628 striplib=
11629 old_striplib=
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11636 $as_echo "yes" >&6; }
11637 else
11638 # FIXME - insert some real tests, host_os isn't really good enough
11639 case $host_os in
11640 darwin*)
11641 if test -n "$STRIP" ; then
11642 striplib="$STRIP -x"
11643 old_striplib="$STRIP -S"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645 $as_echo "yes" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11655 esac
11669 # Report which library types will actually be built
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11673 $as_echo "$can_build_shared" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11676 $as_echo_n "checking whether to build shared libraries... " >&6; }
11677 test "$can_build_shared" = "no" && enable_shared=no
11679 # On AIX, shared libraries and static libraries use the same namespace, and
11680 # are all built from PIC.
11681 case $host_os in
11682 aix3*)
11683 test "$enable_shared" = yes && enable_static=no
11684 if test -n "$RANLIB"; then
11685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11686 postinstall_cmds='$RANLIB $lib'
11690 aix[4-9]*)
11691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11692 test "$enable_shared" = yes && enable_static=no
11695 esac
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11697 $as_echo "$enable_shared" >&6; }
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11700 $as_echo_n "checking whether to build static libraries... " >&6; }
11701 # Make sure either enable_shared or enable_static is yes.
11702 test "$enable_shared" = yes || enable_static=yes
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11704 $as_echo "$enable_static" >&6; }
11710 ac_ext=cpp
11711 ac_cpp='$CXXCPP $CPPFLAGS'
11712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11716 CC="$lt_save_CC"
11718 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11719 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11720 (test "X$CXX" != "Xg++"))) ; then
11721 ac_ext=cpp
11722 ac_cpp='$CXXCPP $CPPFLAGS'
11723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11727 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11728 if test -z "$CXXCPP"; then
11729 if ${ac_cv_prog_CXXCPP+:} false; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 # Double quotes because CXXCPP needs to be expanded
11733 for CXXCPP in "$CXX -E" "/lib/cpp"
11735 ac_preproc_ok=false
11736 for ac_cxx_preproc_warn_flag in '' yes
11738 # Use a header file that comes with gcc, so configuring glibc
11739 # with a fresh cross-compiler works.
11740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 # <limits.h> exists even on freestanding compilers.
11742 # On the NeXT, cc -E runs the code through the compiler's parser,
11743 # not just through cpp. "Syntax error" is here to catch this case.
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #ifdef __STDC__
11747 # include <limits.h>
11748 #else
11749 # include <assert.h>
11750 #endif
11751 Syntax error
11752 _ACEOF
11753 if ac_fn_cxx_try_cpp "$LINENO"; then :
11755 else
11756 # Broken: fails on valid input.
11757 continue
11759 rm -f conftest.err conftest.i conftest.$ac_ext
11761 # OK, works on sane cases. Now check whether nonexistent headers
11762 # can be detected and how.
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 #include <ac_nonexistent.h>
11766 _ACEOF
11767 if ac_fn_cxx_try_cpp "$LINENO"; then :
11768 # Broken: success on invalid input.
11769 continue
11770 else
11771 # Passes both tests.
11772 ac_preproc_ok=:
11773 break
11775 rm -f conftest.err conftest.i conftest.$ac_ext
11777 done
11778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11779 rm -f conftest.i conftest.err conftest.$ac_ext
11780 if $ac_preproc_ok; then :
11781 break
11784 done
11785 ac_cv_prog_CXXCPP=$CXXCPP
11788 CXXCPP=$ac_cv_prog_CXXCPP
11789 else
11790 ac_cv_prog_CXXCPP=$CXXCPP
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11793 $as_echo "$CXXCPP" >&6; }
11794 ac_preproc_ok=false
11795 for ac_cxx_preproc_warn_flag in '' yes
11797 # Use a header file that comes with gcc, so configuring glibc
11798 # with a fresh cross-compiler works.
11799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 # <limits.h> exists even on freestanding compilers.
11801 # On the NeXT, cc -E runs the code through the compiler's parser,
11802 # not just through cpp. "Syntax error" is here to catch this case.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805 #ifdef __STDC__
11806 # include <limits.h>
11807 #else
11808 # include <assert.h>
11809 #endif
11810 Syntax error
11811 _ACEOF
11812 if ac_fn_cxx_try_cpp "$LINENO"; then :
11814 else
11815 # Broken: fails on valid input.
11816 continue
11818 rm -f conftest.err conftest.i conftest.$ac_ext
11820 # OK, works on sane cases. Now check whether nonexistent headers
11821 # can be detected and how.
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824 #include <ac_nonexistent.h>
11825 _ACEOF
11826 if ac_fn_cxx_try_cpp "$LINENO"; then :
11827 # Broken: success on invalid input.
11828 continue
11829 else
11830 # Passes both tests.
11831 ac_preproc_ok=:
11832 break
11834 rm -f conftest.err conftest.i conftest.$ac_ext
11836 done
11837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11838 rm -f conftest.i conftest.err conftest.$ac_ext
11839 if $ac_preproc_ok; then :
11841 else
11842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11844 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11845 See \`config.log' for more details" "$LINENO" 5; }
11848 ac_ext=cpp
11849 ac_cpp='$CXXCPP $CPPFLAGS'
11850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11854 else
11855 _lt_caught_CXX_error=yes
11858 ac_ext=cpp
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11864 archive_cmds_need_lc_CXX=no
11865 allow_undefined_flag_CXX=
11866 always_export_symbols_CXX=no
11867 archive_expsym_cmds_CXX=
11868 compiler_needs_object_CXX=no
11869 export_dynamic_flag_spec_CXX=
11870 hardcode_direct_CXX=no
11871 hardcode_direct_absolute_CXX=no
11872 hardcode_libdir_flag_spec_CXX=
11873 hardcode_libdir_flag_spec_ld_CXX=
11874 hardcode_libdir_separator_CXX=
11875 hardcode_minus_L_CXX=no
11876 hardcode_shlibpath_var_CXX=unsupported
11877 hardcode_automatic_CXX=no
11878 inherit_rpath_CXX=no
11879 module_cmds_CXX=
11880 module_expsym_cmds_CXX=
11881 link_all_deplibs_CXX=unknown
11882 old_archive_cmds_CXX=$old_archive_cmds
11883 reload_flag_CXX=$reload_flag
11884 reload_cmds_CXX=$reload_cmds
11885 no_undefined_flag_CXX=
11886 whole_archive_flag_spec_CXX=
11887 enable_shared_with_static_runtimes_CXX=no
11889 # Source file extension for C++ test sources.
11890 ac_ext=cpp
11892 # Object file extension for compiled C++ test sources.
11893 objext=o
11894 objext_CXX=$objext
11896 # No sense in running all these tests if we already determined that
11897 # the CXX compiler isn't working. Some variables (like enable_shared)
11898 # are currently assumed to apply to all compilers on this platform,
11899 # and will be corrupted by setting them based on a non-working compiler.
11900 if test "$_lt_caught_CXX_error" != yes; then
11901 # Code to be used in simple compile tests
11902 lt_simple_compile_test_code="int some_variable = 0;"
11904 # Code to be used in simple link tests
11905 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11914 # If no C compiler was specified, use CC.
11915 LTCC=${LTCC-"$CC"}
11917 # If no C compiler flags were specified, use CFLAGS.
11918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11920 # Allow CC to be a program name with arguments.
11921 compiler=$CC
11924 # save warnings/boilerplate of simple test code
11925 ac_outfile=conftest.$ac_objext
11926 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11928 _lt_compiler_boilerplate=`cat conftest.err`
11929 $RM conftest*
11931 ac_outfile=conftest.$ac_objext
11932 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11934 _lt_linker_boilerplate=`cat conftest.err`
11935 $RM -r conftest*
11938 # Allow CC to be a program name with arguments.
11939 lt_save_CC=$CC
11940 lt_save_LD=$LD
11941 lt_save_GCC=$GCC
11942 GCC=$GXX
11943 lt_save_with_gnu_ld=$with_gnu_ld
11944 lt_save_path_LD=$lt_cv_path_LD
11945 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11946 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11947 else
11948 $as_unset lt_cv_prog_gnu_ld
11950 if test -n "${lt_cv_path_LDCXX+set}"; then
11951 lt_cv_path_LD=$lt_cv_path_LDCXX
11952 else
11953 $as_unset lt_cv_path_LD
11955 test -z "${LDCXX+set}" || LD=$LDCXX
11956 CC=${CXX-"c++"}
11957 compiler=$CC
11958 compiler_CXX=$CC
11959 for cc_temp in $compiler""; do
11960 case $cc_temp in
11961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11963 \-*) ;;
11964 *) break;;
11965 esac
11966 done
11967 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11970 if test -n "$compiler"; then
11971 # We don't want -fno-exception when compiling C++ code, so set the
11972 # no_builtin_flag separately
11973 if test "$GXX" = yes; then
11974 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11975 else
11976 lt_prog_compiler_no_builtin_flag_CXX=
11979 if test "$GXX" = yes; then
11980 # Set up default GNU C++ configuration
11984 # Check whether --with-gnu-ld was given.
11985 if test "${with_gnu_ld+set}" = set; then :
11986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11987 else
11988 with_gnu_ld=no
11991 ac_prog=ld
11992 if test "$GCC" = yes; then
11993 # Check if gcc -print-prog-name=ld gives a path.
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11995 $as_echo_n "checking for ld used by $CC... " >&6; }
11996 case $host in
11997 *-*-mingw*)
11998 # gcc leaves a trailing carriage return which upsets mingw
11999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12002 esac
12003 case $ac_prog in
12004 # Accept absolute paths.
12005 [\\/]* | ?:[\\/]*)
12006 re_direlt='/[^/][^/]*/\.\./'
12007 # Canonicalize the pathname of ld
12008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12011 done
12012 test -z "$LD" && LD="$ac_prog"
12015 # If it fails, then pretend we aren't using GCC.
12016 ac_prog=ld
12019 # If it is relative, then search for the first ld in PATH.
12020 with_gnu_ld=unknown
12022 esac
12023 elif test "$with_gnu_ld" = yes; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12025 $as_echo_n "checking for GNU ld... " >&6; }
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12028 $as_echo_n "checking for non-GNU ld... " >&6; }
12030 if ${lt_cv_path_LD+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 if test -z "$LD"; then
12034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12035 for ac_dir in $PATH; do
12036 IFS="$lt_save_ifs"
12037 test -z "$ac_dir" && ac_dir=.
12038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12039 lt_cv_path_LD="$ac_dir/$ac_prog"
12040 # Check to see if the program is GNU ld. I'd rather use --version,
12041 # but apparently some variants of GNU ld only accept -v.
12042 # Break only if it was the GNU/non-GNU ld that we prefer.
12043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12044 *GNU* | *'with BFD'*)
12045 test "$with_gnu_ld" != no && break
12048 test "$with_gnu_ld" != yes && break
12050 esac
12052 done
12053 IFS="$lt_save_ifs"
12054 else
12055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12059 LD="$lt_cv_path_LD"
12060 if test -n "$LD"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12062 $as_echo "$LD" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12067 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12070 if ${lt_cv_prog_gnu_ld+:} false; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12074 case `$LD -v 2>&1 </dev/null` in
12075 *GNU* | *'with BFD'*)
12076 lt_cv_prog_gnu_ld=yes
12079 lt_cv_prog_gnu_ld=no
12081 esac
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12085 with_gnu_ld=$lt_cv_prog_gnu_ld
12093 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12094 # archiving commands below assume that GNU ld is being used.
12095 if test "$with_gnu_ld" = yes; then
12096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12102 # If archive_cmds runs LD, not CC, wlarc should be empty
12103 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12104 # investigate it a little bit more. (MM)
12105 wlarc='${wl}'
12107 # ancient GNU ld didn't support --whole-archive et. al.
12108 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12109 $GREP 'no-whole-archive' > /dev/null; then
12110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12111 else
12112 whole_archive_flag_spec_CXX=
12114 else
12115 with_gnu_ld=no
12116 wlarc=
12118 # A generic and very simple default shared library creation
12119 # command for GNU C++ for the case where it uses the native
12120 # linker, instead of GNU ld. If possible, this setting should
12121 # overridden to take advantage of the native linker features on
12122 # the platform it is being used on.
12123 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12126 # Commands to make compiler produce verbose output that lists
12127 # what "hidden" libraries, object files and flags are used when
12128 # linking a shared library.
12129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12131 else
12132 GXX=no
12133 with_gnu_ld=no
12134 wlarc=
12137 # PORTME: fill in a description of your system's C++ link characteristics
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12140 ld_shlibs_CXX=yes
12141 case $host_os in
12142 aix3*)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12146 aix[4-9]*)
12147 if test "$host_cpu" = ia64; then
12148 # On IA64, the linker does run time linking by default, so we don't
12149 # have to do anything special.
12150 aix_use_runtimelinking=no
12151 exp_sym_flag='-Bexport'
12152 no_entry_flag=""
12153 else
12154 aix_use_runtimelinking=no
12156 # Test if we are trying to use run time linking or normal
12157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12158 # need to do runtime linking.
12159 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12160 for ld_flag in $LDFLAGS; do
12161 case $ld_flag in
12162 *-brtl*)
12163 aix_use_runtimelinking=yes
12164 break
12166 esac
12167 done
12169 esac
12171 exp_sym_flag='-bexport'
12172 no_entry_flag='-bnoentry'
12175 # When large executables or shared objects are built, AIX ld can
12176 # have problems creating the table of contents. If linking a library
12177 # or program results in "error TOC overflow" add -mminimal-toc to
12178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12181 archive_cmds_CXX=''
12182 hardcode_direct_CXX=yes
12183 hardcode_direct_absolute_CXX=yes
12184 hardcode_libdir_separator_CXX=':'
12185 link_all_deplibs_CXX=yes
12186 file_list_spec_CXX='${wl}-f,'
12188 if test "$GXX" = yes; then
12189 case $host_os in aix4.[012]|aix4.[012].*)
12190 # We only want to do this on AIX 4.2 and lower, the check
12191 # below for broken collect2 doesn't work under 4.3+
12192 collect2name=`${CC} -print-prog-name=collect2`
12193 if test -f "$collect2name" &&
12194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12195 then
12196 # We have reworked collect2
12198 else
12199 # We have old collect2
12200 hardcode_direct_CXX=unsupported
12201 # It fails to find uninstalled libraries when the uninstalled
12202 # path is not listed in the libpath. Setting hardcode_minus_L
12203 # to unsupported forces relinking
12204 hardcode_minus_L_CXX=yes
12205 hardcode_libdir_flag_spec_CXX='-L$libdir'
12206 hardcode_libdir_separator_CXX=
12208 esac
12209 shared_flag='-shared'
12210 if test "$aix_use_runtimelinking" = yes; then
12211 shared_flag="$shared_flag "'${wl}-G'
12213 else
12214 # not using gcc
12215 if test "$host_cpu" = ia64; then
12216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12217 # chokes on -Wl,-G. The following line is correct:
12218 shared_flag='-G'
12219 else
12220 if test "$aix_use_runtimelinking" = yes; then
12221 shared_flag='${wl}-G'
12222 else
12223 shared_flag='${wl}-bM:SRE'
12228 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12229 # It seems that -bexpall does not export symbols beginning with
12230 # underscore (_), so it is better to generate a list of symbols to
12231 # export.
12232 always_export_symbols_CXX=yes
12233 if test "$aix_use_runtimelinking" = yes; then
12234 # Warning - without using the other runtime loading flags (-brtl),
12235 # -berok will link without error, but may produce a broken library.
12236 allow_undefined_flag_CXX='-berok'
12237 # Determine the default libpath from the value encoded in an empty
12238 # executable.
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12243 main ()
12247 return 0;
12249 _ACEOF
12250 if ac_fn_cxx_try_link "$LINENO"; then :
12252 lt_aix_libpath_sed='
12253 /Import File Strings/,/^$/ {
12254 /^0/ {
12255 s/^0 *\(.*\)$/\1/
12259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12260 # Check for a 64-bit object if we didn't find anything.
12261 if test -z "$aix_libpath"; then
12262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271 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"
12272 else
12273 if test "$host_cpu" = ia64; then
12274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12275 allow_undefined_flag_CXX="-z nodefs"
12276 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"
12277 else
12278 # Determine the default libpath from the value encoded in an
12279 # empty executable.
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12284 main ()
12288 return 0;
12290 _ACEOF
12291 if ac_fn_cxx_try_link "$LINENO"; then :
12293 lt_aix_libpath_sed='
12294 /Import File Strings/,/^$/ {
12295 /^0/ {
12296 s/^0 *\(.*\)$/\1/
12300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 # Check for a 64-bit object if we didn't find anything.
12302 if test -z "$aix_libpath"; then
12303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12311 # Warning - without using the other run time loading flags,
12312 # -berok will link without error, but may produce a broken library.
12313 no_undefined_flag_CXX=' ${wl}-bernotok'
12314 allow_undefined_flag_CXX=' ${wl}-berok'
12315 if test "$with_gnu_ld" = yes; then
12316 # We only use this code for GNU lds that support --whole-archive.
12317 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12318 else
12319 # Exported symbols can be pulled into shared objects from archives
12320 whole_archive_flag_spec_CXX='$convenience'
12322 archive_cmds_need_lc_CXX=yes
12323 # This is similar to how AIX traditionally builds its shared
12324 # libraries.
12325 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'
12330 beos*)
12331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12332 allow_undefined_flag_CXX=unsupported
12333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12334 # support --undefined. This deserves some investigation. FIXME
12335 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12336 else
12337 ld_shlibs_CXX=no
12341 chorus*)
12342 case $cc_basename in
12344 # FIXME: insert proper C++ library support
12345 ld_shlibs_CXX=no
12347 esac
12350 cygwin* | mingw* | pw32* | cegcc*)
12351 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12352 # as there is no search path for DLLs.
12353 hardcode_libdir_flag_spec_CXX='-L$libdir'
12354 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12355 allow_undefined_flag_CXX=unsupported
12356 always_export_symbols_CXX=no
12357 enable_shared_with_static_runtimes_CXX=yes
12359 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12360 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'
12361 # If the export-symbols file already is a .def file (1st line
12362 # is EXPORTS), use it as is; otherwise, prepend...
12363 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12364 cp $export_symbols $output_objdir/$soname.def;
12365 else
12366 echo EXPORTS > $output_objdir/$soname.def;
12367 cat $export_symbols >> $output_objdir/$soname.def;
12369 $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'
12370 else
12371 ld_shlibs_CXX=no
12374 darwin* | rhapsody*)
12377 archive_cmds_need_lc_CXX=no
12378 hardcode_direct_CXX=no
12379 hardcode_automatic_CXX=yes
12380 hardcode_shlibpath_var_CXX=unsupported
12381 if test "$lt_cv_ld_force_load" = "yes"; then
12382 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\"`'
12383 else
12384 whole_archive_flag_spec_CXX=''
12386 link_all_deplibs_CXX=yes
12387 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12388 case $cc_basename in
12389 ifort*) _lt_dar_can_shared=yes ;;
12390 *) _lt_dar_can_shared=$GCC ;;
12391 esac
12392 if test "$_lt_dar_can_shared" = "yes"; then
12393 output_verbose_link_cmd=func_echo_all
12394 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}"
12395 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12396 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}"
12397 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}"
12398 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12399 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}"
12400 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}"
12403 else
12404 ld_shlibs_CXX=no
12409 dgux*)
12410 case $cc_basename in
12411 ec++*)
12412 # FIXME: insert proper C++ library support
12413 ld_shlibs_CXX=no
12415 ghcx*)
12416 # Green Hills C++ Compiler
12417 # FIXME: insert proper C++ library support
12418 ld_shlibs_CXX=no
12421 # FIXME: insert proper C++ library support
12422 ld_shlibs_CXX=no
12424 esac
12427 freebsd[12]*)
12428 # C++ shared libraries reported to be fairly broken before
12429 # switch to ELF
12430 ld_shlibs_CXX=no
12433 freebsd-elf*)
12434 archive_cmds_need_lc_CXX=no
12437 freebsd* | dragonfly*)
12438 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12439 # conventions
12440 ld_shlibs_CXX=yes
12443 gnu*)
12446 haiku*)
12447 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 link_all_deplibs_CXX=yes
12451 hpux9*)
12452 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12453 hardcode_libdir_separator_CXX=:
12454 export_dynamic_flag_spec_CXX='${wl}-E'
12455 hardcode_direct_CXX=yes
12456 hardcode_minus_L_CXX=yes # Not in the search PATH,
12457 # but as the default
12458 # location of the library.
12460 case $cc_basename in
12461 CC*)
12462 # FIXME: insert proper C++ library support
12463 ld_shlibs_CXX=no
12465 aCC*)
12466 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'
12467 # Commands to make compiler produce verbose output that lists
12468 # what "hidden" libraries, object files and flags are used when
12469 # linking a shared library.
12471 # There doesn't appear to be a way to prevent this compiler from
12472 # explicitly linking system object files so we need to strip them
12473 # from the output so that they don't get included in the library
12474 # dependencies.
12475 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"'
12478 if test "$GXX" = yes; then
12479 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12480 else
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12485 esac
12488 hpux10*|hpux11*)
12489 if test $with_gnu_ld = no; then
12490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12491 hardcode_libdir_separator_CXX=:
12493 case $host_cpu in
12494 hppa*64*|ia64*)
12497 export_dynamic_flag_spec_CXX='${wl}-E'
12499 esac
12501 case $host_cpu in
12502 hppa*64*|ia64*)
12503 hardcode_direct_CXX=no
12504 hardcode_shlibpath_var_CXX=no
12507 hardcode_direct_CXX=yes
12508 hardcode_direct_absolute_CXX=yes
12509 hardcode_minus_L_CXX=yes # Not in the search PATH,
12510 # but as the default
12511 # location of the library.
12513 esac
12515 case $cc_basename in
12516 CC*)
12517 # FIXME: insert proper C++ library support
12518 ld_shlibs_CXX=no
12520 aCC*)
12521 case $host_cpu in
12522 hppa*64*)
12523 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12525 ia64*)
12526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12531 esac
12532 # Commands to make compiler produce verbose output that lists
12533 # what "hidden" libraries, object files and flags are used when
12534 # linking a shared library.
12536 # There doesn't appear to be a way to prevent this compiler from
12537 # explicitly linking system object files so we need to strip them
12538 # from the output so that they don't get included in the library
12539 # dependencies.
12540 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"'
12543 if test "$GXX" = yes; then
12544 if test $with_gnu_ld = no; then
12545 case $host_cpu in
12546 hppa*64*)
12547 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12549 ia64*)
12550 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 esac
12557 else
12558 # FIXME: insert proper C++ library support
12559 ld_shlibs_CXX=no
12562 esac
12565 interix[3-9]*)
12566 hardcode_direct_CXX=no
12567 hardcode_shlibpath_var_CXX=no
12568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12569 export_dynamic_flag_spec_CXX='${wl}-E'
12570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12571 # Instead, shared libraries are loaded at an image base (0x10000000 by
12572 # default) and relocated if they conflict, which is a slow very memory
12573 # consuming and fragmenting process. To avoid this, we pick a random,
12574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12576 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'
12577 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'
12579 irix5* | irix6*)
12580 case $cc_basename in
12581 CC*)
12582 # SGI C++
12583 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'
12585 # Archives containing C++ object files must be created using
12586 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12587 # necessary to make sure instantiated templates are included
12588 # in the archive.
12589 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12592 if test "$GXX" = yes; then
12593 if test "$with_gnu_ld" = no; then
12594 archive_cmds_CXX='$CC -shared -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'
12595 else
12596 archive_cmds_CXX='$CC -shared -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'
12599 link_all_deplibs_CXX=yes
12601 esac
12602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12603 hardcode_libdir_separator_CXX=:
12604 inherit_rpath_CXX=yes
12607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12608 case $cc_basename in
12609 KCC*)
12610 # Kuck and Associates, Inc. (KAI) C++ Compiler
12612 # KCC will only create a shared library if the output file
12613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12614 # to its proper name (with version) after linking.
12615 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'
12616 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'
12617 # Commands to make compiler produce verbose output that lists
12618 # what "hidden" libraries, object files and flags are used when
12619 # linking a shared library.
12621 # There doesn't appear to be a way to prevent this compiler from
12622 # explicitly linking system object files so we need to strip them
12623 # from the output so that they don't get included in the library
12624 # dependencies.
12625 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"'
12627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12630 # Archives containing C++ object files must be created using
12631 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12632 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12634 icpc* | ecpc* )
12635 # Intel C++
12636 with_gnu_ld=yes
12637 # version 8.0 and above of icpc choke on multiply defined symbols
12638 # if we add $predep_objects and $postdep_objects, however 7.1 and
12639 # earlier do not add the objects themselves.
12640 case `$CC -V 2>&1` in
12641 *"Version 7."*)
12642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12643 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'
12645 *) # Version 8.0 or newer
12646 tmp_idyn=
12647 case $host_cpu in
12648 ia64*) tmp_idyn=' -i_dynamic';;
12649 esac
12650 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651 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'
12653 esac
12654 archive_cmds_need_lc_CXX=no
12655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12657 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659 pgCC* | pgcpp*)
12660 # Portland Group C++ compiler
12661 case `$CC -V` in
12662 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12663 prelink_cmds_CXX='tpldir=Template.dir~
12664 rm -rf $tpldir~
12665 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12666 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12667 old_archive_cmds_CXX='tpldir=Template.dir~
12668 rm -rf $tpldir~
12669 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12670 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12671 $RANLIB $oldlib'
12672 archive_cmds_CXX='tpldir=Template.dir~
12673 rm -rf $tpldir~
12674 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12675 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12676 archive_expsym_cmds_CXX='tpldir=Template.dir~
12677 rm -rf $tpldir~
12678 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12679 $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'
12681 *) # Version 6 and above use weak symbols
12682 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12683 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'
12685 esac
12687 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12689 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'
12691 cxx*)
12692 # Compaq C++
12693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12694 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'
12696 runpath_var=LD_RUN_PATH
12697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12698 hardcode_libdir_separator_CXX=:
12700 # Commands to make compiler produce verbose output that lists
12701 # what "hidden" libraries, object files and flags are used when
12702 # linking a shared library.
12704 # There doesn't appear to be a way to prevent this compiler from
12705 # explicitly linking system object files so we need to strip them
12706 # from the output so that they don't get included in the library
12707 # dependencies.
12708 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'
12710 xl* | mpixl* | bgxl*)
12711 # IBM XL 8.0 on PPC, with GNU ld
12712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12714 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12715 if test "x$supports_anon_versioning" = xyes; then
12716 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12718 echo "local: *; };" >> $output_objdir/$libname.ver~
12719 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12723 case `$CC -V 2>&1 | sed 5q` in
12724 *Sun\ C*)
12725 # Sun C++ 5.9
12726 no_undefined_flag_CXX=' -zdefs'
12727 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12728 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'
12729 hardcode_libdir_flag_spec_CXX='-R$libdir'
12730 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'
12731 compiler_needs_object_CXX=yes
12733 # Not sure whether something based on
12734 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12735 # would be better.
12736 output_verbose_link_cmd='func_echo_all'
12738 # Archives containing C++ object files must be created using
12739 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12740 # necessary to make sure instantiated templates are included
12741 # in the archive.
12742 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12744 esac
12746 esac
12749 lynxos*)
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12754 m88k*)
12755 # FIXME: insert proper C++ library support
12756 ld_shlibs_CXX=no
12759 mvs*)
12760 case $cc_basename in
12761 cxx*)
12762 # FIXME: insert proper C++ library support
12763 ld_shlibs_CXX=no
12766 # FIXME: insert proper C++ library support
12767 ld_shlibs_CXX=no
12769 esac
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12775 wlarc=
12776 hardcode_libdir_flag_spec_CXX='-R$libdir'
12777 hardcode_direct_CXX=yes
12778 hardcode_shlibpath_var_CXX=no
12780 # Workaround some broken pre-1.5 toolchains
12781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12784 *nto* | *qnx*)
12785 ld_shlibs_CXX=yes
12788 openbsd2*)
12789 # C++ shared libraries are fairly broken
12790 ld_shlibs_CXX=no
12793 openbsd*)
12794 if test -f /usr/libexec/ld.so; then
12795 hardcode_direct_CXX=yes
12796 hardcode_shlibpath_var_CXX=no
12797 hardcode_direct_absolute_CXX=yes
12798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12801 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12802 export_dynamic_flag_spec_CXX='${wl}-E'
12803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12805 output_verbose_link_cmd=func_echo_all
12806 else
12807 ld_shlibs_CXX=no
12811 osf3* | osf4* | osf5*)
12812 case $cc_basename in
12813 KCC*)
12814 # Kuck and Associates, Inc. (KAI) C++ Compiler
12816 # KCC will only create a shared library if the output file
12817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12818 # to its proper name (with version) after linking.
12819 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'
12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822 hardcode_libdir_separator_CXX=:
12824 # Archives containing C++ object files must be created using
12825 # the KAI C++ compiler.
12826 case $host in
12827 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12828 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12829 esac
12831 RCC*)
12832 # Rational C++ 2.4.1
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12836 cxx*)
12837 case $host in
12838 osf3*)
12839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12840 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'
12841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12844 allow_undefined_flag_CXX=' -expect_unresolved \*'
12845 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'
12846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12847 echo "-hidden">> $lib.exp~
12848 $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~
12849 $RM $lib.exp'
12850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12852 esac
12854 hardcode_libdir_separator_CXX=:
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12860 # There doesn't appear to be a way to prevent this compiler from
12861 # explicitly linking system object files so we need to strip them
12862 # from the output so that they don't get included in the library
12863 # dependencies.
12864 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"'
12867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12869 case $host in
12870 osf3*)
12871 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'
12874 archive_cmds_CXX='$CC -shared -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'
12876 esac
12878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12879 hardcode_libdir_separator_CXX=:
12881 # Commands to make compiler produce verbose output that lists
12882 # what "hidden" libraries, object files and flags are used when
12883 # linking a shared library.
12884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12886 else
12887 # FIXME: insert proper C++ library support
12888 ld_shlibs_CXX=no
12891 esac
12894 psos*)
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12899 sunos4*)
12900 case $cc_basename in
12901 CC*)
12902 # Sun C++ 4.x
12903 # FIXME: insert proper C++ library support
12904 ld_shlibs_CXX=no
12906 lcc*)
12907 # Lucid
12908 # FIXME: insert proper C++ library support
12909 ld_shlibs_CXX=no
12912 # FIXME: insert proper C++ library support
12913 ld_shlibs_CXX=no
12915 esac
12918 solaris*)
12919 case $cc_basename in
12920 CC* | sunCC*)
12921 # Sun C++ 4.2, 5.x and Centerline C++
12922 archive_cmds_need_lc_CXX=yes
12923 no_undefined_flag_CXX=' -zdefs'
12924 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12926 $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'
12928 hardcode_libdir_flag_spec_CXX='-R$libdir'
12929 hardcode_shlibpath_var_CXX=no
12930 case $host_os in
12931 solaris2.[0-5] | solaris2.[0-5].*) ;;
12933 # The compiler driver will combine and reorder linker options,
12934 # but understands `-z linker_flag'.
12935 # Supported since Solaris 2.6 (maybe 2.5.1?)
12936 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12938 esac
12939 link_all_deplibs_CXX=yes
12941 output_verbose_link_cmd='func_echo_all'
12943 # Archives containing C++ object files must be created using
12944 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12945 # necessary to make sure instantiated templates are included
12946 # in the archive.
12947 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12949 gcx*)
12950 # Green Hills C++ Compiler
12951 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953 # The C++ compiler must be used to create the archive.
12954 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12957 # GNU C++ compiler with Solaris linker
12958 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12959 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12960 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12961 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12962 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12963 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12965 # Commands to make compiler produce verbose output that lists
12966 # what "hidden" libraries, object files and flags are used when
12967 # linking a shared library.
12968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12969 else
12970 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12971 # platform.
12972 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12974 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12976 # Commands to make compiler produce verbose output that lists
12977 # what "hidden" libraries, object files and flags are used when
12978 # linking a shared library.
12979 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12982 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12983 case $host_os in
12984 solaris2.[0-5] | solaris2.[0-5].*) ;;
12986 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12988 esac
12991 esac
12994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12995 no_undefined_flag_CXX='${wl}-z,text'
12996 archive_cmds_need_lc_CXX=no
12997 hardcode_shlibpath_var_CXX=no
12998 runpath_var='LD_RUN_PATH'
13000 case $cc_basename in
13001 CC*)
13002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13009 esac
13012 sysv5* | sco3.2v5* | sco5v6*)
13013 # Note: We can NOT use -z defs as we might desire, because we do not
13014 # link with -lc, and that would cause any symbols used from libc to
13015 # always be unresolved, which means just about no library would
13016 # ever link correctly. If we're not using GNU ld we use -z text
13017 # though, which does catch some bad symbols but isn't as heavy-handed
13018 # as -z defs.
13019 no_undefined_flag_CXX='${wl}-z,text'
13020 allow_undefined_flag_CXX='${wl}-z,nodefs'
13021 archive_cmds_need_lc_CXX=no
13022 hardcode_shlibpath_var_CXX=no
13023 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13024 hardcode_libdir_separator_CXX=':'
13025 link_all_deplibs_CXX=yes
13026 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13027 runpath_var='LD_RUN_PATH'
13029 case $cc_basename in
13030 CC*)
13031 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13032 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13034 '"$old_archive_cmds_CXX"
13035 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13036 '"$reload_cmds_CXX"
13039 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042 esac
13045 tandem*)
13046 case $cc_basename in
13047 NCC*)
13048 # NonStop-UX NCC 3.20
13049 # FIXME: insert proper C++ library support
13050 ld_shlibs_CXX=no
13053 # FIXME: insert proper C++ library support
13054 ld_shlibs_CXX=no
13056 esac
13059 vxworks*)
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13068 esac
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13071 $as_echo "$ld_shlibs_CXX" >&6; }
13072 test "$ld_shlibs_CXX" = no && can_build_shared=no
13074 GCC_CXX="$GXX"
13075 LD_CXX="$LD"
13077 ## CAVEAT EMPTOR:
13078 ## There is no encapsulation within the following macros, do not change
13079 ## the running order or otherwise move them around unless you know exactly
13080 ## what you are doing...
13081 # Dependencies to place before and after the object being linked:
13082 predep_objects_CXX=
13083 postdep_objects_CXX=
13084 predeps_CXX=
13085 postdeps_CXX=
13086 compiler_lib_search_path_CXX=
13088 cat > conftest.$ac_ext <<_LT_EOF
13089 class Foo
13091 public:
13092 Foo (void) { a = 0; }
13093 private:
13094 int a;
13096 _LT_EOF
13098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13099 (eval $ac_compile) 2>&5
13100 ac_status=$?
13101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102 test $ac_status = 0; }; then
13103 # Parse the compiler output and extract the necessary
13104 # objects, libraries and library flags.
13106 # Sentinel used to keep track of whether or not we are before
13107 # the conftest object file.
13108 pre_test_object_deps_done=no
13110 for p in `eval "$output_verbose_link_cmd"`; do
13111 case $p in
13113 -L* | -R* | -l*)
13114 # Some compilers place space between "-{L,R}" and the path.
13115 # Remove the space.
13116 if test $p = "-L" ||
13117 test $p = "-R"; then
13118 prev=$p
13119 continue
13120 else
13121 prev=
13124 if test "$pre_test_object_deps_done" = no; then
13125 case $p in
13126 -L* | -R*)
13127 # Internal compiler library paths should come after those
13128 # provided the user. The postdeps already come after the
13129 # user supplied libs so there is no need to process them.
13130 if test -z "$compiler_lib_search_path_CXX"; then
13131 compiler_lib_search_path_CXX="${prev}${p}"
13132 else
13133 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13136 # The "-l" case would never come before the object being
13137 # linked, so don't bother handling this case.
13138 esac
13139 else
13140 if test -z "$postdeps_CXX"; then
13141 postdeps_CXX="${prev}${p}"
13142 else
13143 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13148 *.$objext)
13149 # This assumes that the test object file only shows up
13150 # once in the compiler output.
13151 if test "$p" = "conftest.$objext"; then
13152 pre_test_object_deps_done=yes
13153 continue
13156 if test "$pre_test_object_deps_done" = no; then
13157 if test -z "$predep_objects_CXX"; then
13158 predep_objects_CXX="$p"
13159 else
13160 predep_objects_CXX="$predep_objects_CXX $p"
13162 else
13163 if test -z "$postdep_objects_CXX"; then
13164 postdep_objects_CXX="$p"
13165 else
13166 postdep_objects_CXX="$postdep_objects_CXX $p"
13171 *) ;; # Ignore the rest.
13173 esac
13174 done
13176 # Clean up.
13177 rm -f a.out a.exe
13178 else
13179 echo "libtool.m4: error: problem compiling CXX test program"
13182 $RM -f confest.$objext
13184 # PORTME: override above test on systems where it is broken
13185 case $host_os in
13186 interix[3-9]*)
13187 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13188 # hack all around it, let's just trust "g++" to DTRT.
13189 predep_objects_CXX=
13190 postdep_objects_CXX=
13191 postdeps_CXX=
13194 linux*)
13195 case `$CC -V 2>&1 | sed 5q` in
13196 *Sun\ C*)
13197 # Sun C++ 5.9
13199 # The more standards-conforming stlport4 library is
13200 # incompatible with the Cstd library. Avoid specifying
13201 # it if it's in CXXFLAGS. Ignore libCrun as
13202 # -library=stlport4 depends on it.
13203 case " $CXX $CXXFLAGS " in
13204 *" -library=stlport4 "*)
13205 solaris_use_stlport4=yes
13207 esac
13209 if test "$solaris_use_stlport4" != yes; then
13210 postdeps_CXX='-library=Cstd -library=Crun'
13213 esac
13216 solaris*)
13217 case $cc_basename in
13218 CC* | sunCC*)
13219 # The more standards-conforming stlport4 library is
13220 # incompatible with the Cstd library. Avoid specifying
13221 # it if it's in CXXFLAGS. Ignore libCrun as
13222 # -library=stlport4 depends on it.
13223 case " $CXX $CXXFLAGS " in
13224 *" -library=stlport4 "*)
13225 solaris_use_stlport4=yes
13227 esac
13229 # Adding this requires a known-good setup of shared libraries for
13230 # Sun compiler versions before 5.6, else PIC objects from an old
13231 # archive will be linked into the output, leading to subtle bugs.
13232 if test "$solaris_use_stlport4" != yes; then
13233 postdeps_CXX='-library=Cstd -library=Crun'
13236 esac
13238 esac
13241 case " $postdeps_CXX " in
13242 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13243 esac
13244 compiler_lib_search_dirs_CXX=
13245 if test -n "${compiler_lib_search_path_CXX}"; then
13246 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13279 lt_prog_compiler_wl_CXX=
13280 lt_prog_compiler_pic_CXX=
13281 lt_prog_compiler_static_CXX=
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13286 # C++ specific cases for pic, static, wl, etc.
13287 if test "$GXX" = yes; then
13288 lt_prog_compiler_wl_CXX='-Wl,'
13289 lt_prog_compiler_static_CXX='-static'
13291 case $host_os in
13292 aix*)
13293 # All AIX code is PIC.
13294 if test "$host_cpu" = ia64; then
13295 # AIX 5 now supports IA64 processor
13296 lt_prog_compiler_static_CXX='-Bstatic'
13300 amigaos*)
13301 case $host_cpu in
13302 powerpc)
13303 # see comment about AmigaOS4 .so support
13304 lt_prog_compiler_pic_CXX='-fPIC'
13306 m68k)
13307 # FIXME: we need at least 68020 code to build shared libraries, but
13308 # adding the `-m68020' flag to GCC prevents building anything better,
13309 # like `-m68040'.
13310 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13312 esac
13315 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13316 # PIC is the default for these OSes.
13318 mingw* | cygwin* | os2* | pw32* | cegcc*)
13319 # This hack is so that the source file can tell whether it is being
13320 # built for inclusion in a dll (and should export symbols for example).
13321 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13322 # (--disable-auto-import) libraries
13323 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13325 darwin* | rhapsody*)
13326 # PIC is the default on this platform
13327 # Common symbols not allowed in MH_DYLIB files
13328 lt_prog_compiler_pic_CXX='-fno-common'
13330 *djgpp*)
13331 # DJGPP does not support shared libraries at all
13332 lt_prog_compiler_pic_CXX=
13334 haiku*)
13335 # PIC is the default for Haiku.
13336 # The "-static" flag exists, but is broken.
13337 lt_prog_compiler_static_CXX=
13339 interix[3-9]*)
13340 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13341 # Instead, we relocate shared libraries at runtime.
13343 sysv4*MP*)
13344 if test -d /usr/nec; then
13345 lt_prog_compiler_pic_CXX=-Kconform_pic
13348 hpux*)
13349 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13350 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13351 # sets the default TLS model and affects inlining.
13352 case $host_cpu in
13353 hppa*64*)
13356 lt_prog_compiler_pic_CXX='-fPIC'
13358 esac
13360 *qnx* | *nto*)
13361 # QNX uses GNU C++, but need to define -shared option too, otherwise
13362 # it will coredump.
13363 lt_prog_compiler_pic_CXX='-fPIC -shared'
13366 lt_prog_compiler_pic_CXX='-fPIC'
13368 esac
13369 else
13370 case $host_os in
13371 aix[4-9]*)
13372 # All AIX code is PIC.
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static_CXX='-Bstatic'
13376 else
13377 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13380 chorus*)
13381 case $cc_basename in
13382 cxch68*)
13383 # Green Hills C++ Compiler
13384 # _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"
13386 esac
13388 dgux*)
13389 case $cc_basename in
13390 ec++*)
13391 lt_prog_compiler_pic_CXX='-KPIC'
13393 ghcx*)
13394 # Green Hills C++ Compiler
13395 lt_prog_compiler_pic_CXX='-pic'
13399 esac
13401 freebsd* | dragonfly*)
13402 # FreeBSD uses GNU C++
13404 hpux9* | hpux10* | hpux11*)
13405 case $cc_basename in
13406 CC*)
13407 lt_prog_compiler_wl_CXX='-Wl,'
13408 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13409 if test "$host_cpu" != ia64; then
13410 lt_prog_compiler_pic_CXX='+Z'
13413 aCC*)
13414 lt_prog_compiler_wl_CXX='-Wl,'
13415 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13416 case $host_cpu in
13417 hppa*64*|ia64*)
13418 # +Z the default
13421 lt_prog_compiler_pic_CXX='+Z'
13423 esac
13427 esac
13429 interix*)
13430 # This is c89, which is MS Visual C++ (no shared libs)
13431 # Anyone wants to do a port?
13433 irix5* | irix6* | nonstopux*)
13434 case $cc_basename in
13435 CC*)
13436 lt_prog_compiler_wl_CXX='-Wl,'
13437 lt_prog_compiler_static_CXX='-non_shared'
13438 # CC pic flag -KPIC is the default.
13442 esac
13444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13445 case $cc_basename in
13446 KCC*)
13447 # KAI C++ Compiler
13448 lt_prog_compiler_wl_CXX='--backend -Wl,'
13449 lt_prog_compiler_pic_CXX='-fPIC'
13451 ecpc* )
13452 # old Intel C++ for x86_64 which still supported -KPIC.
13453 lt_prog_compiler_wl_CXX='-Wl,'
13454 lt_prog_compiler_pic_CXX='-KPIC'
13455 lt_prog_compiler_static_CXX='-static'
13457 icpc* )
13458 # Intel C++, used to be incompatible with GCC.
13459 # ICC 10 doesn't accept -KPIC any more.
13460 lt_prog_compiler_wl_CXX='-Wl,'
13461 lt_prog_compiler_pic_CXX='-fPIC'
13462 lt_prog_compiler_static_CXX='-static'
13464 pgCC* | pgcpp*)
13465 # Portland Group C++ compiler
13466 lt_prog_compiler_wl_CXX='-Wl,'
13467 lt_prog_compiler_pic_CXX='-fpic'
13468 lt_prog_compiler_static_CXX='-Bstatic'
13470 cxx*)
13471 # Compaq C++
13472 # Make sure the PIC flag is empty. It appears that all Alpha
13473 # Linux and Compaq Tru64 Unix objects are PIC.
13474 lt_prog_compiler_pic_CXX=
13475 lt_prog_compiler_static_CXX='-non_shared'
13477 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13478 # IBM XL 8.0, 9.0 on PPC and BlueGene
13479 lt_prog_compiler_wl_CXX='-Wl,'
13480 lt_prog_compiler_pic_CXX='-qpic'
13481 lt_prog_compiler_static_CXX='-qstaticlink'
13484 case `$CC -V 2>&1 | sed 5q` in
13485 *Sun\ C*)
13486 # Sun C++ 5.9
13487 lt_prog_compiler_pic_CXX='-KPIC'
13488 lt_prog_compiler_static_CXX='-Bstatic'
13489 lt_prog_compiler_wl_CXX='-Qoption ld '
13491 esac
13493 esac
13495 lynxos*)
13497 m88k*)
13499 mvs*)
13500 case $cc_basename in
13501 cxx*)
13502 lt_prog_compiler_pic_CXX='-W c,exportall'
13506 esac
13508 netbsd*)
13510 *qnx* | *nto*)
13511 # QNX uses GNU C++, but need to define -shared option too, otherwise
13512 # it will coredump.
13513 lt_prog_compiler_pic_CXX='-fPIC -shared'
13515 osf3* | osf4* | osf5*)
13516 case $cc_basename in
13517 KCC*)
13518 lt_prog_compiler_wl_CXX='--backend -Wl,'
13520 RCC*)
13521 # Rational C++ 2.4.1
13522 lt_prog_compiler_pic_CXX='-pic'
13524 cxx*)
13525 # Digital/Compaq C++
13526 lt_prog_compiler_wl_CXX='-Wl,'
13527 # Make sure the PIC flag is empty. It appears that all Alpha
13528 # Linux and Compaq Tru64 Unix objects are PIC.
13529 lt_prog_compiler_pic_CXX=
13530 lt_prog_compiler_static_CXX='-non_shared'
13534 esac
13536 psos*)
13538 solaris*)
13539 case $cc_basename in
13540 CC* | sunCC*)
13541 # Sun C++ 4.2, 5.x and Centerline C++
13542 lt_prog_compiler_pic_CXX='-KPIC'
13543 lt_prog_compiler_static_CXX='-Bstatic'
13544 lt_prog_compiler_wl_CXX='-Qoption ld '
13546 gcx*)
13547 # Green Hills C++ Compiler
13548 lt_prog_compiler_pic_CXX='-PIC'
13552 esac
13554 sunos4*)
13555 case $cc_basename in
13556 CC*)
13557 # Sun C++ 4.x
13558 lt_prog_compiler_pic_CXX='-pic'
13559 lt_prog_compiler_static_CXX='-Bstatic'
13561 lcc*)
13562 # Lucid
13563 lt_prog_compiler_pic_CXX='-pic'
13567 esac
13569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13570 case $cc_basename in
13571 CC*)
13572 lt_prog_compiler_wl_CXX='-Wl,'
13573 lt_prog_compiler_pic_CXX='-KPIC'
13574 lt_prog_compiler_static_CXX='-Bstatic'
13576 esac
13578 tandem*)
13579 case $cc_basename in
13580 NCC*)
13581 # NonStop-UX NCC 3.20
13582 lt_prog_compiler_pic_CXX='-KPIC'
13586 esac
13588 vxworks*)
13591 lt_prog_compiler_can_build_shared_CXX=no
13593 esac
13596 case $host_os in
13597 # For platforms which do not support PIC, -DPIC is meaningless:
13598 *djgpp*)
13599 lt_prog_compiler_pic_CXX=
13602 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13604 esac
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13606 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13611 # Check to make sure the PIC flag actually works.
13613 if test -n "$lt_prog_compiler_pic_CXX"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13616 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 lt_cv_prog_compiler_pic_works_CXX=no
13620 ac_outfile=conftest.$ac_objext
13621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13623 # Insert the option either (1) after the last *FLAGS variable, or
13624 # (2) before a word containing "conftest.", or (3) at the end.
13625 # Note that $ac_compile itself does not contain backslashes and begins
13626 # with a dollar sign (not a hyphen), so the echo should work correctly.
13627 # The option is referenced via a variable to avoid confusing sed.
13628 lt_compile=`echo "$ac_compile" | $SED \
13629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13631 -e 's:$: $lt_compiler_flag:'`
13632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13633 (eval "$lt_compile" 2>conftest.err)
13634 ac_status=$?
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 if (exit $ac_status) && test -s "$ac_outfile"; then
13638 # The compiler can only warn and ignore the option if not recognized
13639 # So say no if there are warnings other than the usual output.
13640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13643 lt_cv_prog_compiler_pic_works_CXX=yes
13646 $RM conftest*
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13650 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13652 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13653 case $lt_prog_compiler_pic_CXX in
13654 "" | " "*) ;;
13655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13656 esac
13657 else
13658 lt_prog_compiler_pic_CXX=
13659 lt_prog_compiler_can_build_shared_CXX=no
13667 # Check to make sure the static flag actually works.
13669 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13671 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13672 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 lt_cv_prog_compiler_static_works_CXX=no
13676 save_LDFLAGS="$LDFLAGS"
13677 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13678 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13680 # The linker can only warn and ignore the option if not recognized
13681 # So say no if there are warnings
13682 if test -s conftest.err; then
13683 # Append any errors to the config.log.
13684 cat conftest.err 1>&5
13685 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13687 if diff conftest.exp conftest.er2 >/dev/null; then
13688 lt_cv_prog_compiler_static_works_CXX=yes
13690 else
13691 lt_cv_prog_compiler_static_works_CXX=yes
13694 $RM -r conftest*
13695 LDFLAGS="$save_LDFLAGS"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13699 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13701 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13703 else
13704 lt_prog_compiler_static_CXX=
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13711 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13712 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 lt_cv_prog_compiler_c_o_CXX=no
13716 $RM -r conftest 2>/dev/null
13717 mkdir conftest
13718 cd conftest
13719 mkdir out
13720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13722 lt_compiler_flag="-o out/conftest2.$ac_objext"
13723 # Insert the option either (1) after the last *FLAGS variable, or
13724 # (2) before a word containing "conftest.", or (3) at the end.
13725 # Note that $ac_compile itself does not contain backslashes and begins
13726 # with a dollar sign (not a hyphen), so the echo should work correctly.
13727 lt_compile=`echo "$ac_compile" | $SED \
13728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13730 -e 's:$: $lt_compiler_flag:'`
13731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13732 (eval "$lt_compile" 2>out/conftest.err)
13733 ac_status=$?
13734 cat out/conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13737 then
13738 # The compiler can only warn and ignore the option if not recognized
13739 # So say no if there are warnings
13740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13743 lt_cv_prog_compiler_c_o_CXX=yes
13746 chmod u+w . 2>&5
13747 $RM conftest*
13748 # SGI C++ compiler will create directory out/ii_files/ for
13749 # template instantiation
13750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13751 $RM out/* && rmdir out
13752 cd ..
13753 $RM -r conftest
13754 $RM conftest*
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13758 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13764 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 lt_cv_prog_compiler_c_o_CXX=no
13768 $RM -r conftest 2>/dev/null
13769 mkdir conftest
13770 cd conftest
13771 mkdir out
13772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13774 lt_compiler_flag="-o out/conftest2.$ac_objext"
13775 # Insert the option either (1) after the last *FLAGS variable, or
13776 # (2) before a word containing "conftest.", or (3) at the end.
13777 # Note that $ac_compile itself does not contain backslashes and begins
13778 # with a dollar sign (not a hyphen), so the echo should work correctly.
13779 lt_compile=`echo "$ac_compile" | $SED \
13780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13782 -e 's:$: $lt_compiler_flag:'`
13783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13784 (eval "$lt_compile" 2>out/conftest.err)
13785 ac_status=$?
13786 cat out/conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13789 then
13790 # The compiler can only warn and ignore the option if not recognized
13791 # So say no if there are warnings
13792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13795 lt_cv_prog_compiler_c_o_CXX=yes
13798 chmod u+w . 2>&5
13799 $RM conftest*
13800 # SGI C++ compiler will create directory out/ii_files/ for
13801 # template instantiation
13802 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13803 $RM out/* && rmdir out
13804 cd ..
13805 $RM -r conftest
13806 $RM conftest*
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13810 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13815 hard_links="nottested"
13816 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13817 # do not overwrite the value of need_locks provided by the user
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13819 $as_echo_n "checking if we can lock with hard links... " >&6; }
13820 hard_links=yes
13821 $RM conftest*
13822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13823 touch conftest.a
13824 ln conftest.a conftest.b 2>&5 || hard_links=no
13825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13827 $as_echo "$hard_links" >&6; }
13828 if test "$hard_links" = no; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13830 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13831 need_locks=warn
13833 else
13834 need_locks=no
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13840 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13843 case $host_os in
13844 aix[4-9]*)
13845 # If we're using GNU nm, then we don't want the "-C" option.
13846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13847 # Also, AIX nm treats weak defined symbols like other global defined
13848 # symbols, whereas GNU nm marks them as "W".
13849 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13850 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'
13851 else
13852 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'
13855 pw32*)
13856 export_symbols_cmds_CXX="$ltdll_cmds"
13858 cygwin* | mingw* | cegcc*)
13859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13862 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13864 esac
13865 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13868 $as_echo "$ld_shlibs_CXX" >&6; }
13869 test "$ld_shlibs_CXX" = no && can_build_shared=no
13871 with_gnu_ld_CXX=$with_gnu_ld
13879 # Do we need to explicitly link libc?
13881 case "x$archive_cmds_need_lc_CXX" in
13882 x|xyes)
13883 # Assume -lc should be added
13884 archive_cmds_need_lc_CXX=yes
13886 if test "$enable_shared" = yes && test "$GCC" = yes; then
13887 case $archive_cmds_CXX in
13888 *'~'*)
13889 # FIXME: we may have to deal with multi-command sequences.
13891 '$CC '*)
13892 # Test whether the compiler implicitly links with -lc since on some
13893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13894 # to ld, don't add -lc before -lgcc.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13896 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13897 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 $RM conftest*
13901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13905 ac_status=$?
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; } 2>conftest.err; then
13908 soname=conftest
13909 lib=conftest
13910 libobjs=conftest.$ac_objext
13911 deplibs=
13912 wl=$lt_prog_compiler_wl_CXX
13913 pic_flag=$lt_prog_compiler_pic_CXX
13914 compiler_flags=-v
13915 linker_flags=-v
13916 verstring=
13917 output_objdir=.
13918 libname=conftest
13919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13920 allow_undefined_flag_CXX=
13921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13922 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13923 ac_status=$?
13924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925 test $ac_status = 0; }
13926 then
13927 lt_cv_archive_cmds_need_lc_CXX=no
13928 else
13929 lt_cv_archive_cmds_need_lc_CXX=yes
13931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13932 else
13933 cat conftest.err 1>&5
13935 $RM conftest*
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13939 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13940 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13942 esac
13945 esac
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14013 library_names_spec=
14014 libname_spec='lib$name'
14015 soname_spec=
14016 shrext_cmds=".so"
14017 postinstall_cmds=
14018 postuninstall_cmds=
14019 finish_cmds=
14020 finish_eval=
14021 shlibpath_var=
14022 shlibpath_overrides_runpath=unknown
14023 version_type=none
14024 dynamic_linker="$host_os ld.so"
14025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14026 need_lib_prefix=unknown
14027 hardcode_into_libs=no
14029 # when you set need_version to no, make sure it does not cause -set_version
14030 # flags to be left without arguments
14031 need_version=unknown
14033 case $host_os in
14034 aix3*)
14035 version_type=linux
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14037 shlibpath_var=LIBPATH
14039 # AIX 3 has no versioning support, so we append a major version to the name.
14040 soname_spec='${libname}${release}${shared_ext}$major'
14043 aix[4-9]*)
14044 version_type=linux
14045 need_lib_prefix=no
14046 need_version=no
14047 hardcode_into_libs=yes
14048 if test "$host_cpu" = ia64; then
14049 # AIX 5 supports IA64
14050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 else
14053 # With GCC up to 2.95.x, collect2 would create an import file
14054 # for dependence libraries. The import file would start with
14055 # the line `#! .'. This would cause the generated library to
14056 # depend on `.', always an invalid library. This was fixed in
14057 # development snapshots of GCC prior to 3.0.
14058 case $host_os in
14059 aix4 | aix4.[01] | aix4.[01].*)
14060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14061 echo ' yes '
14062 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14064 else
14065 can_build_shared=no
14068 esac
14069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14070 # soname into executable. Probably we can add versioning support to
14071 # collect2, so additional links can be useful in future.
14072 if test "$aix_use_runtimelinking" = yes; then
14073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14074 # instead of lib<name>.a to let people know that these are not
14075 # typical AIX shared libraries.
14076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 else
14078 # We preserve .a as extension for shared libraries through AIX4.2
14079 # and later when we are not doing run time linking.
14080 library_names_spec='${libname}${release}.a $libname.a'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14083 shlibpath_var=LIBPATH
14087 amigaos*)
14088 case $host_cpu in
14089 powerpc)
14090 # Since July 2007 AmigaOS4 officially supports .so libraries.
14091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 m68k)
14095 library_names_spec='$libname.ixlibrary $libname.a'
14096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14097 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'
14099 esac
14102 beos*)
14103 library_names_spec='${libname}${shared_ext}'
14104 dynamic_linker="$host_os ld.so"
14105 shlibpath_var=LIBRARY_PATH
14108 bsdi[45]*)
14109 version_type=linux
14110 need_version=no
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14114 shlibpath_var=LD_LIBRARY_PATH
14115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14117 # the default ld.so.conf also contains /usr/contrib/lib and
14118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14119 # libtool to hard-code these into programs
14122 cygwin* | mingw* | pw32* | cegcc*)
14123 version_type=windows
14124 shrext_cmds=".dll"
14125 need_version=no
14126 need_lib_prefix=no
14128 case $GCC,$host_os in
14129 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14130 library_names_spec='$libname.dll.a'
14131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14132 postinstall_cmds='base_file=`basename \${file}`~
14133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14134 dldir=$destdir/`dirname \$dlpath`~
14135 test -d \$dldir || mkdir -p \$dldir~
14136 $install_prog $dir/$dlname \$dldir/$dlname~
14137 chmod a+x \$dldir/$dlname~
14138 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14139 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14142 dlpath=$dir/\$dldll~
14143 $RM \$dlpath'
14144 shlibpath_overrides_runpath=yes
14146 case $host_os in
14147 cygwin*)
14148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 mingw* | cegcc*)
14153 # MinGW DLLs use traditional 'lib' prefix
14154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14156 pw32*)
14157 # pw32 DLLs use 'pw' prefix rather than 'lib'
14158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14160 esac
14164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14166 esac
14167 dynamic_linker='Win32 ld.exe'
14168 # FIXME: first we should search . and the directory the executable is in
14169 shlibpath_var=PATH
14172 darwin* | rhapsody*)
14173 dynamic_linker="$host_os dyld"
14174 version_type=darwin
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14178 soname_spec='${libname}${release}${major}$shared_ext'
14179 shlibpath_overrides_runpath=yes
14180 shlibpath_var=DYLD_LIBRARY_PATH
14181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14186 dgux*)
14187 version_type=linux
14188 need_lib_prefix=no
14189 need_version=no
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
14195 freebsd1*)
14196 dynamic_linker=no
14199 freebsd* | dragonfly*)
14200 # DragonFly does not have aout. When/if they implement a new
14201 # versioning mechanism, adjust this.
14202 if test -x /usr/bin/objformat; then
14203 objformat=`/usr/bin/objformat`
14204 else
14205 case $host_os in
14206 freebsd[123]*) objformat=aout ;;
14207 *) objformat=elf ;;
14208 esac
14210 version_type=freebsd-$objformat
14211 case $version_type in
14212 freebsd-elf*)
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14214 need_version=no
14215 need_lib_prefix=no
14217 freebsd-*)
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14219 need_version=yes
14221 esac
14222 shlibpath_var=LD_LIBRARY_PATH
14223 case $host_os in
14224 freebsd2*)
14225 shlibpath_overrides_runpath=yes
14227 freebsd3.[01]* | freebsdelf3.[01]*)
14228 shlibpath_overrides_runpath=yes
14229 hardcode_into_libs=yes
14231 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14232 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14233 shlibpath_overrides_runpath=no
14234 hardcode_into_libs=yes
14236 *) # from 4.6 on, and DragonFly
14237 shlibpath_overrides_runpath=yes
14238 hardcode_into_libs=yes
14240 esac
14243 gnu*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 hardcode_into_libs=yes
14253 haiku*)
14254 version_type=linux
14255 need_lib_prefix=no
14256 need_version=no
14257 dynamic_linker="$host_os runtime_loader"
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 shlibpath_var=LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14263 hardcode_into_libs=yes
14266 hpux9* | hpux10* | hpux11*)
14267 # Give a soname corresponding to the major version so that dld.sl refuses to
14268 # link against other versions.
14269 version_type=sunos
14270 need_lib_prefix=no
14271 need_version=no
14272 case $host_cpu in
14273 ia64*)
14274 shrext_cmds='.so'
14275 hardcode_into_libs=yes
14276 dynamic_linker="$host_os dld.so"
14277 shlibpath_var=LD_LIBRARY_PATH
14278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14280 soname_spec='${libname}${release}${shared_ext}$major'
14281 if test "X$HPUX_IA64_MODE" = X32; then
14282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14283 else
14284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14288 hppa*64*)
14289 shrext_cmds='.sl'
14290 hardcode_into_libs=yes
14291 dynamic_linker="$host_os dld.sl"
14292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14300 shrext_cmds='.sl'
14301 dynamic_linker="$host_os dld.sl"
14302 shlibpath_var=SHLIB_PATH
14303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14307 esac
14308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14309 postinstall_cmds='chmod 555 $lib'
14310 # or fails outright, so override atomically:
14311 install_override_mode=555
14314 interix[3-9]*)
14315 version_type=linux
14316 need_lib_prefix=no
14317 need_version=no
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14321 shlibpath_var=LD_LIBRARY_PATH
14322 shlibpath_overrides_runpath=no
14323 hardcode_into_libs=yes
14326 irix5* | irix6* | nonstopux*)
14327 case $host_os in
14328 nonstopux*) version_type=nonstopux ;;
14330 if test "$lt_cv_prog_gnu_ld" = yes; then
14331 version_type=linux
14332 else
14333 version_type=irix
14334 fi ;;
14335 esac
14336 need_lib_prefix=no
14337 need_version=no
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14340 case $host_os in
14341 irix5* | nonstopux*)
14342 libsuff= shlibsuff=
14345 case $LD in # libtool.m4 will add one of these switches to LD
14346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14347 libsuff= shlibsuff= libmagic=32-bit;;
14348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14349 libsuff=32 shlibsuff=N32 libmagic=N32;;
14350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14352 *) libsuff= shlibsuff= libmagic=never-match;;
14353 esac
14355 esac
14356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14357 shlibpath_overrides_runpath=no
14358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14360 hardcode_into_libs=yes
14363 # No shared lib support for Linux oldld, aout, or coff.
14364 linux*oldld* | linux*aout* | linux*coff*)
14365 dynamic_linker=no
14368 # This must be Linux ELF.
14369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=no
14379 # Some binutils ld are patched to set DT_RUNPATH
14380 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 lt_cv_shlibpath_overrides_runpath=no
14384 save_LDFLAGS=$LDFLAGS
14385 save_libdir=$libdir
14386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14392 main ()
14396 return 0;
14398 _ACEOF
14399 if ac_fn_cxx_try_link "$LINENO"; then :
14400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14401 lt_cv_shlibpath_overrides_runpath=yes
14404 rm -f core conftest.err conftest.$ac_objext \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LDFLAGS=$save_LDFLAGS
14407 libdir=$save_libdir
14411 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14413 # This implies no fast_install, which is unacceptable.
14414 # Some rework will be needed to allow for fast_install
14415 # before this can be enabled.
14416 hardcode_into_libs=yes
14418 # Append ld.so.conf contents to the search path
14419 if test -f /etc/ld.so.conf; then
14420 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' ' '`
14421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14424 # We used to test for /lib/ld.so.1 and disable shared libraries on
14425 # powerpc, because MkLinux only supported shared libraries with the
14426 # GNU dynamic linker. Since this was broken with cross compilers,
14427 # most powerpc-linux boxes support dynamic linking these days and
14428 # people can always --disable-shared, the test was removed, and we
14429 # assume the GNU/Linux dynamic linker is in use.
14430 dynamic_linker='GNU/Linux ld.so'
14433 netbsd*)
14434 version_type=sunos
14435 need_lib_prefix=no
14436 need_version=no
14437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14440 dynamic_linker='NetBSD (a.out) ld.so'
14441 else
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 dynamic_linker='NetBSD ld.elf_so'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes
14448 hardcode_into_libs=yes
14451 newsos6)
14452 version_type=linux
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14458 *nto* | *qnx*)
14459 version_type=qnx
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=no
14466 hardcode_into_libs=yes
14467 dynamic_linker='ldqnx.so'
14470 openbsd*)
14471 version_type=sunos
14472 sys_lib_dlsearch_path_spec="/usr/lib"
14473 need_lib_prefix=no
14474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14475 case $host_os in
14476 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14477 *) need_version=no ;;
14478 esac
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14483 case $host_os in
14484 openbsd2.[89] | openbsd2.[89].*)
14485 shlibpath_overrides_runpath=no
14488 shlibpath_overrides_runpath=yes
14490 esac
14491 else
14492 shlibpath_overrides_runpath=yes
14496 os2*)
14497 libname_spec='$name'
14498 shrext_cmds=".dll"
14499 need_lib_prefix=no
14500 library_names_spec='$libname${shared_ext} $libname.a'
14501 dynamic_linker='OS/2 ld.exe'
14502 shlibpath_var=LIBPATH
14505 osf3* | osf4* | osf5*)
14506 version_type=osf
14507 need_lib_prefix=no
14508 need_version=no
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14516 rdos*)
14517 dynamic_linker=no
14520 solaris*)
14521 version_type=linux
14522 need_lib_prefix=no
14523 need_version=no
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14528 hardcode_into_libs=yes
14529 # ldd complains unless libraries are executable
14530 postinstall_cmds='chmod +x $lib'
14533 sunos4*)
14534 version_type=sunos
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
14539 if test "$with_gnu_ld" = yes; then
14540 need_lib_prefix=no
14542 need_version=yes
14545 sysv4 | sysv4.3*)
14546 version_type=linux
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 case $host_vendor in
14551 sni)
14552 shlibpath_overrides_runpath=no
14553 need_lib_prefix=no
14554 runpath_var=LD_RUN_PATH
14556 siemens)
14557 need_lib_prefix=no
14559 motorola)
14560 need_lib_prefix=no
14561 need_version=no
14562 shlibpath_overrides_runpath=no
14563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14565 esac
14568 sysv4*MP*)
14569 if test -d /usr/nec ;then
14570 version_type=linux
14571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572 soname_spec='$libname${shared_ext}.$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14578 version_type=freebsd-elf
14579 need_lib_prefix=no
14580 need_version=no
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 shlibpath_overrides_runpath=yes
14585 hardcode_into_libs=yes
14586 if test "$with_gnu_ld" = yes; then
14587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14588 else
14589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14590 case $host_os in
14591 sco3.2v5*)
14592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14594 esac
14596 sys_lib_dlsearch_path_spec='/usr/lib'
14599 tpf*)
14600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14601 version_type=linux
14602 need_lib_prefix=no
14603 need_version=no
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=no
14607 hardcode_into_libs=yes
14610 uts4*)
14611 version_type=linux
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 shlibpath_var=LD_LIBRARY_PATH
14618 dynamic_linker=no
14620 esac
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14622 $as_echo "$dynamic_linker" >&6; }
14623 test "$dynamic_linker" = no && can_build_shared=no
14625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14626 if test "$GCC" = yes; then
14627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14631 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14634 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14676 hardcode_action_CXX=
14677 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14678 test -n "$runpath_var_CXX" ||
14679 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14681 # We can hardcode non-existent directories.
14682 if test "$hardcode_direct_CXX" != no &&
14683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14684 # have to relink, otherwise we might link with an installed library
14685 # when we should be linking with a yet-to-be-installed one
14686 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14687 test "$hardcode_minus_L_CXX" != no; then
14688 # Linking always hardcodes the temporary library directory.
14689 hardcode_action_CXX=relink
14690 else
14691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14692 hardcode_action_CXX=immediate
14694 else
14695 # We cannot hardcode anything, or else we can only hardcode existing
14696 # directories.
14697 hardcode_action_CXX=unsupported
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14700 $as_echo "$hardcode_action_CXX" >&6; }
14702 if test "$hardcode_action_CXX" = relink ||
14703 test "$inherit_rpath_CXX" = yes; then
14704 # Fast installation is not supported
14705 enable_fast_install=no
14706 elif test "$shlibpath_overrides_runpath" = yes ||
14707 test "$enable_shared" = no; then
14708 # Fast installation is not necessary
14709 enable_fast_install=needless
14718 fi # test -n "$compiler"
14720 CC=$lt_save_CC
14721 LDCXX=$LD
14722 LD=$lt_save_LD
14723 GCC=$lt_save_GCC
14724 with_gnu_ld=$lt_save_with_gnu_ld
14725 lt_cv_path_LDCXX=$lt_cv_path_LD
14726 lt_cv_path_LD=$lt_save_path_LD
14727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14729 fi # test "$_lt_caught_CXX_error" != yes
14731 ac_ext=cpp
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14749 ac_config_commands="$ac_config_commands libtool"
14754 # Only expand once:
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the C++ compiler vendor" >&5
14762 $as_echo_n "checking the C++ compiler vendor... " >&6; }
14763 if ${ac_cv_cxx_compiler_vendor+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_ext=cpp
14767 ac_cpp='$CXXCPP $CPPFLAGS'
14768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 #ifndef __GNUG__
14776 # error "Macro __GNUG__ is undefined!"
14777 /* For some compilers (eg. SGI's CC), #error is not
14778 enough... */
14779 please, do fail
14780 #endif
14781 _ACEOF
14782 if ac_fn_cxx_try_compile "$LINENO"; then :
14783 ac_cv_cxx_compiler_vendor=gnu
14784 else
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 #ifndef __DECCXX
14788 # error "Macro __DECCXX is undefined!"
14789 /* For some compilers (eg. SGI's CC), #error is not
14790 enough... */
14791 please, do fail
14792 #endif
14793 _ACEOF
14794 if ac_fn_cxx_try_compile "$LINENO"; then :
14795 ac_cv_cxx_compiler_vendor=compaq
14796 else
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 #ifndef __HP_aCC
14800 # error "Macro __HP_aCC is undefined!"
14801 /* For some compilers (eg. SGI's CC), #error is not
14802 enough... */
14803 please, do fail
14804 #endif
14805 _ACEOF
14806 if ac_fn_cxx_try_compile "$LINENO"; then :
14807 ac_cv_cxx_compiler_vendor=hp
14808 else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 #ifndef __SUNPRO_CC
14812 # error "Macro __SUNPRO_CC is undefined!"
14813 /* For some compilers (eg. SGI's CC), #error is not
14814 enough... */
14815 please, do fail
14816 #endif
14817 _ACEOF
14818 if ac_fn_cxx_try_compile "$LINENO"; then :
14819 ac_cv_cxx_compiler_vendor=sun
14820 else
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 #ifndef __sgi
14824 # error "Macro __sgi is undefined!"
14825 /* For some compilers (eg. SGI's CC), #error is not
14826 enough... */
14827 please, do fail
14828 #endif
14829 _ACEOF
14830 if ac_fn_cxx_try_compile "$LINENO"; then :
14831 ac_cv_cxx_compiler_vendor=sgi
14832 else
14833 ac_ext=c
14834 ac_cpp='$CPP $CPPFLAGS'
14835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 #ifndef _MSC_VER
14842 # error "Macro _MSC_VER is undefined!"
14843 /* For some compilers (eg. SGI's CC), #error is not
14844 enough... */
14845 please, do fail
14846 #endif
14847 _ACEOF
14848 if ac_fn_c_try_compile "$LINENO"; then :
14849 ac_cv_cxx_compiler_vendor=microsoft
14850 else
14851 ac_cv_cxx_compiler_vendor=unknown
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 ac_ext=cpp
14855 ac_cpp='$CXXCPP $CPPFLAGS'
14856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 ac_ext=cpp
14872 ac_cpp='$CXXCPP $CPPFLAGS'
14873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_vendor" >&5
14879 $as_echo "$ac_cv_cxx_compiler_vendor" >&6; }
14880 ac_cxx_compiler_vendor="$ac_cv_cxx_compiler_vendor"
14884 case $ac_cxx_compiler_vendor in #(
14885 gnu) :
14886 if test "x$enable_warnings" = "xyes"; then :
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wall" >&5
14888 $as_echo_n "checking CXXFLAGS for gcc -Wall... " >&6; }
14889 if ${ax_cv_cxxflags_gcc_option__Wall+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891 else
14892 ax_cv_cxxflags_gcc_option__Wall="no, unknown"
14894 ac_ext=cpp
14895 ac_cpp='$CXXCPP $CPPFLAGS'
14896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14900 ac_save_CXXFLAGS="$CXXFLAGS"
14901 for ac_arg in "-pedantic -Werror % -Wall" "-pedantic % -Wall %% no, obsolete" #
14902 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14907 main ()
14909 return 0;
14911 return 0;
14913 _ACEOF
14914 if ac_fn_cxx_try_compile "$LINENO"; then :
14915 ax_cv_cxxflags_gcc_option__Wall=`echo $ac_arg | sed -e 's,.*% *,,'`; break
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918 done
14919 CXXFLAGS="$ac_save_CXXFLAGS"
14920 ac_ext=cpp
14921 ac_cpp='$CXXCPP $CPPFLAGS'
14922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wall" >&5
14929 $as_echo "$ax_cv_cxxflags_gcc_option__Wall" >&6; }
14930 var=$ax_cv_cxxflags_gcc_option__Wall
14931 case ".$var" in
14932 .ok|.ok,*) ;;
14933 .|.no|.no,*) ;;
14935 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
14936 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
14937 (: CXXFLAGS does contain $var) 2>&5
14938 ac_status=$?
14939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14940 test $ac_status = 0; }
14941 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
14942 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
14943 ac_status=$?
14944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945 test $ac_status = 0; }
14946 CXXFLAGS="$CXXFLAGS $var"
14949 esac
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wextra" >&5
14952 $as_echo_n "checking CXXFLAGS for gcc -Wextra... " >&6; }
14953 if ${ax_cv_cxxflags_gcc_option__Wextra+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 ax_cv_cxxflags_gcc_option__Wextra="no, unknown"
14958 ac_ext=cpp
14959 ac_cpp='$CXXCPP $CPPFLAGS'
14960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14964 ac_save_CXXFLAGS="$CXXFLAGS"
14965 for ac_arg in "-pedantic -Werror % -Wextra" "-pedantic % -Wextra %% no, obsolete" #
14966 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14971 main ()
14973 return 0;
14975 return 0;
14977 _ACEOF
14978 if ac_fn_cxx_try_compile "$LINENO"; then :
14979 ax_cv_cxxflags_gcc_option__Wextra=`echo $ac_arg | sed -e 's,.*% *,,'`; break
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 done
14983 CXXFLAGS="$ac_save_CXXFLAGS"
14984 ac_ext=cpp
14985 ac_cpp='$CXXCPP $CPPFLAGS'
14986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wextra" >&5
14993 $as_echo "$ax_cv_cxxflags_gcc_option__Wextra" >&6; }
14994 var=$ax_cv_cxxflags_gcc_option__Wextra
14995 case ".$var" in
14996 .ok|.ok,*) ;;
14997 .|.no|.no,*) ;;
14999 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15000 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15001 (: CXXFLAGS does contain $var) 2>&5
15002 ac_status=$?
15003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15004 test $ac_status = 0; }
15005 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15006 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15007 ac_status=$?
15008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15009 test $ac_status = 0; }
15010 CXXFLAGS="$CXXFLAGS $var"
15013 esac
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -pedantic" >&5
15016 $as_echo_n "checking CXXFLAGS for gcc -pedantic... " >&6; }
15017 if ${ax_cv_cxxflags_gcc_option__pedantic+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 ax_cv_cxxflags_gcc_option__pedantic="no, unknown"
15022 ac_ext=cpp
15023 ac_cpp='$CXXCPP $CPPFLAGS'
15024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15028 ac_save_CXXFLAGS="$CXXFLAGS"
15029 for ac_arg in "-pedantic -Werror % -pedantic" "-pedantic % -pedantic %% no, obsolete" #
15030 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15035 main ()
15037 return 0;
15039 return 0;
15041 _ACEOF
15042 if ac_fn_cxx_try_compile "$LINENO"; then :
15043 ax_cv_cxxflags_gcc_option__pedantic=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 done
15047 CXXFLAGS="$ac_save_CXXFLAGS"
15048 ac_ext=cpp
15049 ac_cpp='$CXXCPP $CPPFLAGS'
15050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__pedantic" >&5
15057 $as_echo "$ax_cv_cxxflags_gcc_option__pedantic" >&6; }
15058 var=$ax_cv_cxxflags_gcc_option__pedantic
15059 case ".$var" in
15060 .ok|.ok,*) ;;
15061 .|.no|.no,*) ;;
15063 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15064 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15065 (: CXXFLAGS does contain $var) 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }
15069 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15070 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15071 ac_status=$?
15072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073 test $ac_status = 0; }
15074 CXXFLAGS="$CXXFLAGS $var"
15077 esac
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wshadow" >&5
15080 $as_echo_n "checking CXXFLAGS for gcc -Wshadow... " >&6; }
15081 if ${ax_cv_cxxflags_gcc_option__Wshadow+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 ax_cv_cxxflags_gcc_option__Wshadow="no, unknown"
15086 ac_ext=cpp
15087 ac_cpp='$CXXCPP $CPPFLAGS'
15088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15092 ac_save_CXXFLAGS="$CXXFLAGS"
15093 for ac_arg in "-pedantic -Werror % -Wshadow" "-pedantic % -Wshadow %% no, obsolete" #
15094 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15099 main ()
15101 return 0;
15103 return 0;
15105 _ACEOF
15106 if ac_fn_cxx_try_compile "$LINENO"; then :
15107 ax_cv_cxxflags_gcc_option__Wshadow=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 done
15111 CXXFLAGS="$ac_save_CXXFLAGS"
15112 ac_ext=cpp
15113 ac_cpp='$CXXCPP $CPPFLAGS'
15114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wshadow" >&5
15121 $as_echo "$ax_cv_cxxflags_gcc_option__Wshadow" >&6; }
15122 var=$ax_cv_cxxflags_gcc_option__Wshadow
15123 case ".$var" in
15124 .ok|.ok,*) ;;
15125 .|.no|.no,*) ;;
15127 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15128 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15129 (: CXXFLAGS does contain $var) 2>&5
15130 ac_status=$?
15131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132 test $ac_status = 0; }
15133 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15134 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15135 ac_status=$?
15136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15137 test $ac_status = 0; }
15138 CXXFLAGS="$CXXFLAGS $var"
15141 esac
15145 if test "x$enable_debugging" = "xyes"; then :
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -g3" >&5
15147 $as_echo_n "checking CXXFLAGS for gcc -g3... " >&6; }
15148 if ${ax_cv_cxxflags_gcc_option__g3+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 ax_cv_cxxflags_gcc_option__g3="no, unknown"
15153 ac_ext=cpp
15154 ac_cpp='$CXXCPP $CPPFLAGS'
15155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15159 ac_save_CXXFLAGS="$CXXFLAGS"
15160 for ac_arg in "-pedantic -Werror % -g3" "-pedantic % -g3 %% no, obsolete" #
15161 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15166 main ()
15168 return 0;
15170 return 0;
15172 _ACEOF
15173 if ac_fn_cxx_try_compile "$LINENO"; then :
15174 ax_cv_cxxflags_gcc_option__g3=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 done
15178 CXXFLAGS="$ac_save_CXXFLAGS"
15179 ac_ext=cpp
15180 ac_cpp='$CXXCPP $CPPFLAGS'
15181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__g3" >&5
15188 $as_echo "$ax_cv_cxxflags_gcc_option__g3" >&6; }
15189 var=$ax_cv_cxxflags_gcc_option__g3
15190 case ".$var" in
15191 .ok|.ok,*) ;;
15192 .|.no|.no,*) ;;
15194 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15195 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15196 (: CXXFLAGS does contain $var) 2>&5
15197 ac_status=$?
15198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199 test $ac_status = 0; }
15200 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15201 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15202 ac_status=$?
15203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15204 test $ac_status = 0; }
15205 CXXFLAGS="$CXXFLAGS $var"
15208 esac
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fkeep-inline-functions" >&5
15211 $as_echo_n "checking CXXFLAGS for gcc -fkeep-inline-functions... " >&6; }
15212 if ${ax_cv_cxxflags_gcc_option__fkeep_inline_functions+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 ax_cv_cxxflags_gcc_option__fkeep_inline_functions="no, unknown"
15217 ac_ext=cpp
15218 ac_cpp='$CXXCPP $CPPFLAGS'
15219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15223 ac_save_CXXFLAGS="$CXXFLAGS"
15224 for ac_arg in "-pedantic -Werror % -fkeep-inline-functions" "-pedantic % -fkeep-inline-functions %% no, obsolete" #
15225 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15230 main ()
15232 return 0;
15234 return 0;
15236 _ACEOF
15237 if ac_fn_cxx_try_compile "$LINENO"; then :
15238 ax_cv_cxxflags_gcc_option__fkeep_inline_functions=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 done
15242 CXXFLAGS="$ac_save_CXXFLAGS"
15243 ac_ext=cpp
15244 ac_cpp='$CXXCPP $CPPFLAGS'
15245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__fkeep_inline_functions" >&5
15252 $as_echo "$ax_cv_cxxflags_gcc_option__fkeep_inline_functions" >&6; }
15253 var=$ax_cv_cxxflags_gcc_option__fkeep_inline_functions
15254 case ".$var" in
15255 .ok|.ok,*) ;;
15256 .|.no|.no,*) ;;
15258 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15259 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15260 (: CXXFLAGS does contain $var) 2>&5
15261 ac_status=$?
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }
15264 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15265 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15266 ac_status=$?
15267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268 test $ac_status = 0; }
15269 CXXFLAGS="$CXXFLAGS $var"
15272 esac
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -O2" >&5
15276 $as_echo_n "checking CXXFLAGS for gcc -O2... " >&6; }
15277 if ${ax_cv_cxxflags_gcc_option__O2+:} false; then :
15278 $as_echo_n "(cached) " >&6
15279 else
15280 ax_cv_cxxflags_gcc_option__O2="no, unknown"
15282 ac_ext=cpp
15283 ac_cpp='$CXXCPP $CPPFLAGS'
15284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15288 ac_save_CXXFLAGS="$CXXFLAGS"
15289 for ac_arg in "-pedantic -Werror % -O2" "-pedantic % -O2 %% no, obsolete" #
15290 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15295 main ()
15297 return 0;
15299 return 0;
15301 _ACEOF
15302 if ac_fn_cxx_try_compile "$LINENO"; then :
15303 ax_cv_cxxflags_gcc_option__O2=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 done
15307 CXXFLAGS="$ac_save_CXXFLAGS"
15308 ac_ext=cpp
15309 ac_cpp='$CXXCPP $CPPFLAGS'
15310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__O2" >&5
15317 $as_echo "$ax_cv_cxxflags_gcc_option__O2" >&6; }
15318 var=$ax_cv_cxxflags_gcc_option__O2
15319 case ".$var" in
15320 .ok|.ok,*) ;;
15321 .|.no|.no,*) ;;
15323 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15324 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15325 (: CXXFLAGS does contain $var) 2>&5
15326 ac_status=$?
15327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328 test $ac_status = 0; }
15329 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15330 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15331 ac_status=$?
15332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15333 test $ac_status = 0; }
15334 CXXFLAGS="$CXXFLAGS $var"
15337 esac
15341 case "$target_os" in #(
15342 cygwin*|mingw*) :
15343 LDFLAGS="${LDFLAGS} -Wl,--enable-auto-import"
15344 LDFLAGS="${LDFLAGS} -Wl,--enable-runtime-pseudo-reloc" ;; #(
15345 *) :
15347 esac ;; #(
15348 sun) :
15349 if test "x$enable_warnings" = "xyes"; then :
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc +w" >&5
15351 $as_echo_n "checking CXXFLAGS for sun/cc +w... " >&6; }
15352 if ${ax_cv_cxxflags_sun_option_pw+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 ax_cv_cxxflags_sun_option_pw="no, unknown"
15357 ac_ext=cpp
15358 ac_cpp='$CXXCPP $CPPFLAGS'
15359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15363 ac_save_CXXFLAGS="$CXXFLAGS"
15364 for ac_arg in "+xstrconst -Xc % +w" #
15365 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15370 main ()
15372 return 0;
15374 return 0;
15376 _ACEOF
15377 if ac_fn_cxx_try_compile "$LINENO"; then :
15378 ax_cv_cxxflags_sun_option_pw=`echo $ac_arg | sed -e 's,.*% *,,'`; break
15380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381 done
15382 CXXFLAGS="$ac_save_CXXFLAGS"
15383 ac_ext=cpp
15384 ac_cpp='$CXXCPP $CPPFLAGS'
15385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option_pw" >&5
15392 $as_echo "$ax_cv_cxxflags_sun_option_pw" >&6; }
15393 var=$ax_cv_cxxflags_sun_option_pw
15394 case ".$var" in
15395 .ok|.ok,*) ;;
15396 .|.no|.no,*) ;;
15398 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15399 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15400 (: CXXFLAGS does contain $var) 2>&5
15401 ac_status=$?
15402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403 test $ac_status = 0; }
15404 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15405 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15406 ac_status=$?
15407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15408 test $ac_status = 0; }
15409 CXXFLAGS="$CXXFLAGS $var"
15412 esac
15415 as_VAR=`$as_echo "ax_cv_cxxflags_sun_option_-library=stlport4" | $as_tr_sh`
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -library=stlport4" >&5
15417 $as_echo_n "checking CXXFLAGS for sun/cc -library=stlport4... " >&6; }
15418 if eval \${$as_VAR+:} false; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 eval "$as_VAR=\"no, unknown\""
15423 ac_ext=cpp
15424 ac_cpp='$CXXCPP $CPPFLAGS'
15425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15429 ac_save_CXXFLAGS="$CXXFLAGS"
15430 for ac_arg in "+xstrconst -Xc % -library=stlport4" #
15431 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15436 main ()
15438 return 0;
15440 return 0;
15442 _ACEOF
15443 if ac_fn_cxx_try_compile "$LINENO"; then :
15444 eval "$as_VAR=\`echo \$ac_arg | sed -e 's,.*% *,,'\`"; break
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 done
15448 CXXFLAGS="$ac_save_CXXFLAGS"
15449 ac_ext=cpp
15450 ac_cpp='$CXXCPP $CPPFLAGS'
15451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15457 eval ac_res=\$$as_VAR
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15459 $as_echo "$ac_res" >&6; }
15460 eval var=\$$as_VAR
15461 case ".$var" in
15462 .ok|.ok,*) ;;
15463 .|.no|.no,*) ;;
15465 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15466 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15467 (: CXXFLAGS does contain $var) 2>&5
15468 ac_status=$?
15469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; }
15471 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15472 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15473 ac_status=$?
15474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15475 test $ac_status = 0; }
15476 CXXFLAGS="$CXXFLAGS $var"
15479 esac
15481 as_VAR=`$as_echo "ax_cv_cxxflags_sun_option_-library=Crun" | $as_tr_sh`
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -library=Crun" >&5
15483 $as_echo_n "checking CXXFLAGS for sun/cc -library=Crun... " >&6; }
15484 if eval \${$as_VAR+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487 eval "$as_VAR=\"no, unknown\""
15489 ac_ext=cpp
15490 ac_cpp='$CXXCPP $CPPFLAGS'
15491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15495 ac_save_CXXFLAGS="$CXXFLAGS"
15496 for ac_arg in "+xstrconst -Xc % -library=Crun" #
15497 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15502 main ()
15504 return 0;
15506 return 0;
15508 _ACEOF
15509 if ac_fn_cxx_try_compile "$LINENO"; then :
15510 eval "$as_VAR=\`echo \$ac_arg | sed -e 's,.*% *,,'\`"; break
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 done
15514 CXXFLAGS="$ac_save_CXXFLAGS"
15515 ac_ext=cpp
15516 ac_cpp='$CXXCPP $CPPFLAGS'
15517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15523 eval ac_res=\$$as_VAR
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15525 $as_echo "$ac_res" >&6; }
15526 eval var=\$$as_VAR
15527 case ".$var" in
15528 .ok|.ok,*) ;;
15529 .|.no|.no,*) ;;
15531 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15532 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15533 (: CXXFLAGS does contain $var) 2>&5
15534 ac_status=$?
15535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15536 test $ac_status = 0; }
15537 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15538 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15539 ac_status=$?
15540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541 test $ac_status = 0; }
15542 CXXFLAGS="$CXXFLAGS $var"
15545 esac
15546 ;; #(
15547 *) :
15549 esac
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(dllexport)" >&5
15556 $as_echo_n "checking for __declspec(dllexport)... " >&6; }
15557 if ${ac_cv_declspec+:} false; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 __declspec(dllexport) int x = 0;
15564 __declspec(dllexport) int foo ();
15565 int foo () { return 0; }
15566 __declspec(dllexport) int bar () { return x; }
15569 main ()
15573 return 0;
15575 _ACEOF
15576 if ac_fn_cxx_try_compile "$LINENO"; then :
15577 ac_cv_declspec=yes
15578 else
15579 ac_cv_declspec=no
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declspec" >&5
15585 $as_echo "$ac_cv_declspec" >&6; }
15587 if test "x$ac_cv_declspec" = "xyes"; then :
15588 $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT __declspec(dllimport)" >>confdefs.h
15590 $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT __declspec(dllexport)" >>confdefs.h
15592 else
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"default\")))" >&5
15595 $as_echo_n "checking for __attribute__((visibility(\"default\")))... " >&6; }
15596 if ${ac_cv__attribute__visibility+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15603 #if defined (__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1))
15604 # error Please fail.
15605 And extra please fail.
15606 #else
15607 __attribute__((visibility("default"))) int x = 0;
15608 __attribute__((visibility("default"))) int foo ();
15609 int foo () { return 0; }
15610 __attribute__((visibility("default"))) int bar () { return x; }
15611 __attribute__((visibility("hidden"))) int baz () { return 1; }
15612 #endif
15615 main ()
15619 return 0;
15621 _ACEOF
15622 if ac_fn_cxx_try_compile "$LINENO"; then :
15623 ac_cv__attribute__visibility=yes
15624 else
15625 ac_cv__attribute__visibility=no
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__attribute__visibility" >&5
15631 $as_echo "$ac_cv__attribute__visibility" >&6; }
15633 if test "x$ac_cv__attribute__visibility" = "xyes"; then :
15634 $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT /**/" >>confdefs.h
15636 $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT __attribute__ ((visibility(\"default\")))" >>confdefs.h
15642 if test "x$ac_cv__attribute__visibility" = "xno" && test "x$ac_cv_declspec" = "xno"; then :
15643 $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT /**/" >>confdefs.h
15645 $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT /**/" >>confdefs.h
15650 if test "x$ac_cv_declspec" = "xyes" || test "x$ac_cv__attribute__visibility" = "xyes"; then :
15651 case $ac_cxx_compiler_vendor in #(
15652 gnu) :
15653 if test "x$ac_cv_declspec" = "xyes" || test "x$ac_cv__attribute__visibility" = "xyes"; then :
15654 as_VAR=`$as_echo "ax_cv_cxxflags_gcc_option_-fvisibility=hidden" | $as_tr_sh`
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fvisibility=hidden" >&5
15656 $as_echo_n "checking CXXFLAGS for gcc -fvisibility=hidden... " >&6; }
15657 if eval \${$as_VAR+:} false; then :
15658 $as_echo_n "(cached) " >&6
15659 else
15660 eval "$as_VAR=\"no, unknown\""
15662 ac_ext=cpp
15663 ac_cpp='$CXXCPP $CPPFLAGS'
15664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15668 ac_save_CXXFLAGS="$CXXFLAGS"
15669 for ac_arg in "-pedantic -Werror % -fvisibility=hidden" "-pedantic % -fvisibility=hidden %% no, obsolete" #
15670 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15675 main ()
15677 return 0;
15679 return 0;
15681 _ACEOF
15682 if ac_fn_cxx_try_compile "$LINENO"; then :
15683 eval "$as_VAR=\`echo \$ac_arg | sed -e 's,.*% *,,'\`"; break
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686 done
15687 CXXFLAGS="$ac_save_CXXFLAGS"
15688 ac_ext=cpp
15689 ac_cpp='$CXXCPP $CPPFLAGS'
15690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15696 eval ac_res=\$$as_VAR
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15698 $as_echo "$ac_res" >&6; }
15699 eval var=\$$as_VAR
15700 case ".$var" in
15701 .ok|.ok,*) ;;
15702 .|.no|.no,*) ;;
15704 if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
15705 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
15706 (: CXXFLAGS does contain $var) 2>&5
15707 ac_status=$?
15708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15709 test $ac_status = 0; }
15710 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
15711 (: CXXFLAGS="$CXXFLAGS $var") 2>&5
15712 ac_status=$?
15713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15714 test $ac_status = 0; }
15715 CXXFLAGS="$CXXFLAGS $var"
15718 esac
15720 fi ;; #(
15721 *) :
15723 esac
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15728 $as_echo_n "checking for library containing strerror... " >&6; }
15729 if ${ac_cv_search_strerror+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 ac_func_search_save_LIBS=$LIBS
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15736 /* Override any GCC internal prototype to avoid an error.
15737 Use char because int might match the return type of a GCC
15738 builtin and then its argument prototype would still apply. */
15739 #ifdef __cplusplus
15740 extern "C"
15741 #endif
15742 char strerror ();
15744 main ()
15746 return strerror ();
15748 return 0;
15750 _ACEOF
15751 for ac_lib in '' cposix; do
15752 if test -z "$ac_lib"; then
15753 ac_res="none required"
15754 else
15755 ac_res=-l$ac_lib
15756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15758 if ac_fn_cxx_try_link "$LINENO"; then :
15759 ac_cv_search_strerror=$ac_res
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext
15763 if ${ac_cv_search_strerror+:} false; then :
15764 break
15766 done
15767 if ${ac_cv_search_strerror+:} false; then :
15769 else
15770 ac_cv_search_strerror=no
15772 rm conftest.$ac_ext
15773 LIBS=$ac_func_search_save_LIBS
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15776 $as_echo "$ac_cv_search_strerror" >&6; }
15777 ac_res=$ac_cv_search_strerror
15778 if test "$ac_res" != no; then :
15779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15784 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15785 if ${ac_cv_search_clock_gettime+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787 else
15788 ac_func_search_save_LIBS=$LIBS
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15792 /* Override any GCC internal prototype to avoid an error.
15793 Use char because int might match the return type of a GCC
15794 builtin and then its argument prototype would still apply. */
15795 #ifdef __cplusplus
15796 extern "C"
15797 #endif
15798 char clock_gettime ();
15800 main ()
15802 return clock_gettime ();
15804 return 0;
15806 _ACEOF
15807 for ac_lib in '' posix4; do
15808 if test -z "$ac_lib"; then
15809 ac_res="none required"
15810 else
15811 ac_res=-l$ac_lib
15812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15814 if ac_fn_cxx_try_link "$LINENO"; then :
15815 ac_cv_search_clock_gettime=$ac_res
15817 rm -f core conftest.err conftest.$ac_objext \
15818 conftest$ac_exeext
15819 if ${ac_cv_search_clock_gettime+:} false; then :
15820 break
15822 done
15823 if ${ac_cv_search_clock_gettime+:} false; then :
15825 else
15826 ac_cv_search_clock_gettime=no
15828 rm conftest.$ac_ext
15829 LIBS=$ac_func_search_save_LIBS
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15832 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15833 ac_res=$ac_cv_search_clock_gettime
15834 if test "$ac_res" != no; then :
15835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
15840 $as_echo_n "checking for library containing nanosleep... " >&6; }
15841 if ${ac_cv_search_nanosleep+:} false; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 ac_func_search_save_LIBS=$LIBS
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15851 #ifdef __cplusplus
15852 extern "C"
15853 #endif
15854 char nanosleep ();
15856 main ()
15858 return nanosleep ();
15860 return 0;
15862 _ACEOF
15863 for ac_lib in '' rt; do
15864 if test -z "$ac_lib"; then
15865 ac_res="none required"
15866 else
15867 ac_res=-l$ac_lib
15868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15870 if ac_fn_cxx_try_link "$LINENO"; then :
15871 ac_cv_search_nanosleep=$ac_res
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext
15875 if ${ac_cv_search_nanosleep+:} false; then :
15876 break
15878 done
15879 if ${ac_cv_search_nanosleep+:} false; then :
15881 else
15882 ac_cv_search_nanosleep=no
15884 rm conftest.$ac_ext
15885 LIBS=$ac_func_search_save_LIBS
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15888 $as_echo "$ac_cv_search_nanosleep" >&6; }
15889 ac_res=$ac_cv_search_nanosleep
15890 if test "$ac_res" != no; then :
15891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
15896 $as_echo_n "checking for library containing gethostent... " >&6; }
15897 if ${ac_cv_search_gethostent+:} false; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 ac_func_search_save_LIBS=$LIBS
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char gethostent ();
15912 main ()
15914 return gethostent ();
15916 return 0;
15918 _ACEOF
15919 for ac_lib in '' nsl; do
15920 if test -z "$ac_lib"; then
15921 ac_res="none required"
15922 else
15923 ac_res=-l$ac_lib
15924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15926 if ac_fn_cxx_try_link "$LINENO"; then :
15927 ac_cv_search_gethostent=$ac_res
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext
15931 if ${ac_cv_search_gethostent+:} false; then :
15932 break
15934 done
15935 if ${ac_cv_search_gethostent+:} false; then :
15937 else
15938 ac_cv_search_gethostent=no
15940 rm conftest.$ac_ext
15941 LIBS=$ac_func_search_save_LIBS
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
15944 $as_echo "$ac_cv_search_gethostent" >&6; }
15945 ac_res=$ac_cv_search_gethostent
15946 if test "$ac_res" != no; then :
15947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
15952 $as_echo_n "checking for library containing setsockopt... " >&6; }
15953 if ${ac_cv_search_setsockopt+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 ac_func_search_save_LIBS=$LIBS
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15960 /* Override any GCC internal prototype to avoid an error.
15961 Use char because int might match the return type of a GCC
15962 builtin and then its argument prototype would still apply. */
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char setsockopt ();
15968 main ()
15970 return setsockopt ();
15972 return 0;
15974 _ACEOF
15975 for ac_lib in '' socket; do
15976 if test -z "$ac_lib"; then
15977 ac_res="none required"
15978 else
15979 ac_res=-l$ac_lib
15980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15982 if ac_fn_cxx_try_link "$LINENO"; then :
15983 ac_cv_search_setsockopt=$ac_res
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext
15987 if ${ac_cv_search_setsockopt+:} false; then :
15988 break
15990 done
15991 if ${ac_cv_search_setsockopt+:} false; then :
15993 else
15994 ac_cv_search_setsockopt=no
15996 rm conftest.$ac_ext
15997 LIBS=$ac_func_search_save_LIBS
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
16000 $as_echo "$ac_cv_search_setsockopt" >&6; }
16001 ac_res=$ac_cv_search_setsockopt
16002 if test "$ac_res" != no; then :
16003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16009 ac_ext=c
16010 ac_cpp='$CPP $CPPFLAGS'
16011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
16016 $as_echo_n "checking for main in -lkernel32... " >&6; }
16017 if ${ac_cv_lib_kernel32_main+:} false; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16020 ac_check_lib_save_LIBS=$LIBS
16021 LIBS="-lkernel32 $LIBS"
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16027 main ()
16029 return main ();
16031 return 0;
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035 ac_cv_lib_kernel32_main=yes
16036 else
16037 ac_cv_lib_kernel32_main=no
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
16044 $as_echo "$ac_cv_lib_kernel32_main" >&6; }
16045 if test "x$ac_cv_lib_kernel32_main" = xyes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_LIBKERNEL32 1
16048 _ACEOF
16050 LIBS="-lkernel32 $LIBS"
16053 ac_cv_lib_kernel32=ac_cv_lib_kernel32_main
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
16056 $as_echo_n "checking for main in -ladvapi32... " >&6; }
16057 if ${ac_cv_lib_advapi32_main+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-ladvapi32 $LIBS"
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16067 main ()
16069 return main ();
16071 return 0;
16073 _ACEOF
16074 if ac_fn_c_try_link "$LINENO"; then :
16075 ac_cv_lib_advapi32_main=yes
16076 else
16077 ac_cv_lib_advapi32_main=no
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 LIBS=$ac_check_lib_save_LIBS
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
16084 $as_echo "$ac_cv_lib_advapi32_main" >&6; }
16085 if test "x$ac_cv_lib_advapi32_main" = xyes; then :
16086 cat >>confdefs.h <<_ACEOF
16087 #define HAVE_LIBADVAPI32 1
16088 _ACEOF
16090 LIBS="-ladvapi32 $LIBS"
16093 ac_cv_lib_advapi32=ac_cv_lib_advapi32_main
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
16096 $as_echo_n "checking for main in -lws2_32... " >&6; }
16097 if ${ac_cv_lib_ws2_32_main+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 ac_check_lib_save_LIBS=$LIBS
16101 LIBS="-lws2_32 $LIBS"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16107 main ()
16109 return main ();
16111 return 0;
16113 _ACEOF
16114 if ac_fn_c_try_link "$LINENO"; then :
16115 ac_cv_lib_ws2_32_main=yes
16116 else
16117 ac_cv_lib_ws2_32_main=no
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 LIBS=$ac_check_lib_save_LIBS
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
16124 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
16125 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_LIBWS2_32 1
16128 _ACEOF
16130 LIBS="-lws2_32 $LIBS"
16133 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
16135 ac_ext=cpp
16136 ac_cpp='$CXXCPP $CPPFLAGS'
16137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16145 $as_echo_n "checking for ANSI C header files... " >&6; }
16146 if ${ac_cv_header_stdc+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #include <stdlib.h>
16152 #include <stdarg.h>
16153 #include <string.h>
16154 #include <float.h>
16157 main ()
16161 return 0;
16163 _ACEOF
16164 if ac_fn_cxx_try_compile "$LINENO"; then :
16165 ac_cv_header_stdc=yes
16166 else
16167 ac_cv_header_stdc=no
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 if test $ac_cv_header_stdc = yes; then
16172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175 #include <string.h>
16177 _ACEOF
16178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16179 $EGREP "memchr" >/dev/null 2>&1; then :
16181 else
16182 ac_cv_header_stdc=no
16184 rm -f conftest*
16188 if test $ac_cv_header_stdc = yes; then
16189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 #include <stdlib.h>
16194 _ACEOF
16195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16196 $EGREP "free" >/dev/null 2>&1; then :
16198 else
16199 ac_cv_header_stdc=no
16201 rm -f conftest*
16205 if test $ac_cv_header_stdc = yes; then
16206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16207 if test "$cross_compiling" = yes; then :
16209 else
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #include <ctype.h>
16213 #include <stdlib.h>
16214 #if ((' ' & 0x0FF) == 0x020)
16215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16217 #else
16218 # define ISLOWER(c) \
16219 (('a' <= (c) && (c) <= 'i') \
16220 || ('j' <= (c) && (c) <= 'r') \
16221 || ('s' <= (c) && (c) <= 'z'))
16222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16223 #endif
16225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16227 main ()
16229 int i;
16230 for (i = 0; i < 256; i++)
16231 if (XOR (islower (i), ISLOWER (i))
16232 || toupper (i) != TOUPPER (i))
16233 return 2;
16234 return 0;
16236 _ACEOF
16237 if ac_fn_cxx_try_run "$LINENO"; then :
16239 else
16240 ac_cv_header_stdc=no
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243 conftest.$ac_objext conftest.beam conftest.$ac_ext
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16249 $as_echo "$ac_cv_header_stdc" >&6; }
16250 if test $ac_cv_header_stdc = yes; then
16252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16258 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
16259 if test "x$ac_cv_header_sys_types_h" = xyes; then :
16260 $as_echo "#define LOG4CPLUS_HAVE_SYS_TYPES_H 1" >>confdefs.h
16266 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16267 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16268 $as_echo "#define LOG4CPLUS_HAVE_SYS_SOCKET_H 1" >>confdefs.h
16274 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16275 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16276 $as_echo "#define LOG4CPLUS_HAVE_SYS_TIME_H 1" >>confdefs.h
16282 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
16283 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
16284 $as_echo "#define LOG4CPLUS_HAVE_SYS_TIMEB_H 1" >>confdefs.h
16290 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
16291 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
16292 $as_echo "#define LOG4CPLUS_HAVE_SYS_STAT_H 1" >>confdefs.h
16298 ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16299 if test "x$ac_cv_header_syslog_h" = xyes; then :
16300 $as_echo "#define LOG4CPLUS_HAVE_SYSLOG_H 1" >>confdefs.h
16306 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16307 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16308 $as_echo "#define LOG4CPLUS_HAVE_NETINET_IN_H 1" >>confdefs.h
16314 ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
16315 if test "x$ac_cv_header_netdb_h" = xyes; then :
16316 $as_echo "#define LOG4CPLUS_HAVE_NETDB_H 1" >>confdefs.h
16322 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
16323 if test "x$ac_cv_header_unistd_h" = xyes; then :
16324 $as_echo "#define LOG4CPLUS_HAVE_UNISTD_H 1" >>confdefs.h
16330 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
16331 if test "x$ac_cv_header_stdio_h" = xyes; then :
16332 $as_echo "#define LOG4CPLUS_HAVE_STDIO_H 1" >>confdefs.h
16338 ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16339 if test "x$ac_cv_header_wchar_h" = xyes; then :
16340 $as_echo "#define LOG4CPLUS_HAVE_WCHAR_H 1" >>confdefs.h
16346 ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
16347 if test "x$ac_cv_header_stdarg_h" = xyes; then :
16348 $as_echo "#define LOG4CPLUS_HAVE_STDARG_H 1" >>confdefs.h
16354 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
16355 if test "x$ac_cv_header_time_h" = xyes; then :
16356 $as_echo "#define LOG4CPLUS_HAVE_TIME_H 1" >>confdefs.h
16362 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16363 if test "x$ac_cv_header_errno_h" = xyes; then :
16364 $as_echo "#define LOG4CPLUS_HAVE_ERRNO_H 1" >>confdefs.h
16372 for ac_func in gmtime_r
16373 do :
16374 ac_fn_cxx_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16375 if test "x$ac_cv_func_gmtime_r" = xyes; then :
16376 cat >>confdefs.h <<_ACEOF
16377 #define HAVE_GMTIME_R 1
16378 _ACEOF
16379 $as_echo "#define LOG4CPLUS_HAVE_GMTIME_R 1" >>confdefs.h
16382 done
16385 for ac_func in localtime_r
16386 do :
16387 ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16388 if test "x$ac_cv_func_localtime_r" = xyes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_LOCALTIME_R 1
16391 _ACEOF
16392 $as_echo "#define LOG4CPLUS_HAVE_LOCALTIME_R 1" >>confdefs.h
16395 done
16398 for ac_func in gettimeofday
16399 do :
16400 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16401 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_GETTIMEOFDAY 1
16404 _ACEOF
16405 $as_echo "#define LOG4CPLUS_HAVE_GETTIMEOFDAY 1" >>confdefs.h
16408 done
16411 for ac_func in clock_gettime
16412 do :
16413 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16414 if test "x$ac_cv_func_clock_gettime" = xyes; then :
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_CLOCK_GETTIME 1
16417 _ACEOF
16418 $as_echo "#define LOG4CPLUS_HAVE_CLOCK_GETTIME 1" >>confdefs.h
16421 done
16424 for ac_func in getpid
16425 do :
16426 ac_fn_cxx_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
16427 if test "x$ac_cv_func_getpid" = xyes; then :
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE_GETPID 1
16430 _ACEOF
16431 $as_echo "#define LOG4CPLUS_HAVE_GETPID 1" >>confdefs.h
16434 done
16437 for ac_func in ftime
16438 do :
16439 ac_fn_cxx_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
16440 if test "x$ac_cv_func_ftime" = xyes; then :
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_FTIME 1
16443 _ACEOF
16444 $as_echo "#define LOG4CPLUS_HAVE_FTIME 1" >>confdefs.h
16447 done
16450 for ac_func in stat
16451 do :
16452 ac_fn_cxx_check_func "$LINENO" "stat" "ac_cv_func_stat"
16453 if test "x$ac_cv_func_stat" = xyes; then :
16454 cat >>confdefs.h <<_ACEOF
16455 #define HAVE_STAT 1
16456 _ACEOF
16457 $as_echo "#define LOG4CPLUS_HAVE_STAT 1" >>confdefs.h
16460 done
16463 for ac_func in lstat
16464 do :
16465 ac_fn_cxx_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
16466 if test "x$ac_cv_func_lstat" = xyes; then :
16467 cat >>confdefs.h <<_ACEOF
16468 #define HAVE_LSTAT 1
16469 _ACEOF
16470 $as_echo "#define LOG4CPLUS_HAVE_LSTAT 1" >>confdefs.h
16473 done
16476 for ac_func in htons
16477 do :
16478 ac_fn_cxx_check_func "$LINENO" "htons" "ac_cv_func_htons"
16479 if test "x$ac_cv_func_htons" = xyes; then :
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_HTONS 1
16482 _ACEOF
16483 $as_echo "#define LOG4CPLUS_HAVE_HTONS 1" >>confdefs.h
16486 done
16489 for ac_func in ntohs
16490 do :
16491 ac_fn_cxx_check_func "$LINENO" "ntohs" "ac_cv_func_ntohs"
16492 if test "x$ac_cv_func_ntohs" = xyes; then :
16493 cat >>confdefs.h <<_ACEOF
16494 #define HAVE_NTOHS 1
16495 _ACEOF
16496 $as_echo "#define LOG4CPLUS_HAVE_NTOHS 1" >>confdefs.h
16499 done
16502 for ac_func in htonl
16503 do :
16504 ac_fn_cxx_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
16505 if test "x$ac_cv_func_htonl" = xyes; then :
16506 cat >>confdefs.h <<_ACEOF
16507 #define HAVE_HTONL 1
16508 _ACEOF
16509 $as_echo "#define LOG4CPLUS_HAVE_HTONL 1" >>confdefs.h
16512 done
16515 for ac_func in ntohl
16516 do :
16517 ac_fn_cxx_check_func "$LINENO" "ntohl" "ac_cv_func_ntohl"
16518 if test "x$ac_cv_func_ntohl" = xyes; then :
16519 cat >>confdefs.h <<_ACEOF
16520 #define HAVE_NTOHL 1
16521 _ACEOF
16522 $as_echo "#define LOG4CPLUS_HAVE_NTOHL 1" >>confdefs.h
16525 done
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENAMETOOLONG" >&5
16530 $as_echo_n "checking for ENAMETOOLONG... " >&6; }
16531 if ${ax_cv_have_enametoolong+:} false; then :
16532 $as_echo_n "(cached) " >&6
16533 else
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #include <errno.h>
16538 main ()
16540 int value = ENAMETOOLONG;
16542 return 0;
16544 _ACEOF
16545 if ac_fn_cxx_try_compile "$LINENO"; then :
16546 ax_cv_have_enametoolong=yes
16547 else
16548 ax_cv_have_enametoolong=no
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_enametoolong" >&5
16553 $as_echo "$ax_cv_have_enametoolong" >&6; }
16554 if test "x$ax_cv_have_enametoolong" = "xyes"; then :
16555 $as_echo "#define LOG4CPLUS_HAVE_ENAMETOOLONG 1" >>confdefs.h
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16563 $as_echo_n "checking for getaddrinfo... " >&6; }
16564 if ${ax_cv_have_getaddrinfo+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566 else
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16570 #ifdef __cplusplus
16571 #include <cstddef>
16572 #else
16573 #include <stddef.h>
16574 #endif
16576 #include <sys/types.h>
16577 #include <sys/socket.h>
16578 #include <netdb.h>
16581 main ()
16584 getaddrinfo (NULL, NULL, NULL, NULL);
16587 return 0;
16589 _ACEOF
16590 if ac_fn_cxx_try_compile "$LINENO"; then :
16591 ax_cv_have_getaddrinfo=yes
16592 else
16593 ax_cv_have_getaddrinfo=no
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_getaddrinfo" >&5
16598 $as_echo "$ax_cv_have_getaddrinfo" >&6; }
16600 if test "x$ax_cv_have_getaddrinfo" = "xyes"; then :
16601 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16605 if test "x$ax_cv_have_getaddrinfo" = "xyes"; then :
16606 $as_echo "#define LOG4CPLUS_HAVE_GETADDRINFO 1" >>confdefs.h
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r" >&5
16614 $as_echo_n "checking for gethostbyname_r... " >&6; }
16615 if ${ax_cv_have_gethostbyname_r+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16621 #ifdef __cplusplus
16622 #include <cstddef>
16623 #else
16624 #include <stddef.h>
16625 #endif
16627 #include <sys/types.h>
16628 #include <sys/socket.h>
16629 #include <netdb.h>
16632 main ()
16635 gethostbyname_r (NULL, NULL, NULL, 0, NULL, NULL);
16638 return 0;
16640 _ACEOF
16641 if ac_fn_cxx_try_compile "$LINENO"; then :
16642 ax_cv_have_gethostbyname_r=yes
16643 else
16644 ax_cv_have_gethostbyname_r=no
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gethostbyname_r" >&5
16649 $as_echo "$ax_cv_have_gethostbyname_r" >&6; }
16651 if test "x$ax_cv_have_gethostbyname_r" = "xyes"; then :
16652 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
16656 if test "x$ax_cv_have_gethostbyname_r" = "xyes"; then :
16657 $as_echo "#define LOG4CPLUS_HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
16664 $as_echo_n "checking for socklen_t... " >&6; }
16665 if ${ac_cv_type_socklen_t+:} false; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671 #include <sys/types.h>
16672 #include <sys/socket.h>
16674 main ()
16676 socklen_t len = 42; return 0;
16678 return 0;
16680 _ACEOF
16681 if ac_fn_cxx_try_compile "$LINENO"; then :
16682 ac_cv_type_socklen_t=yes
16683 else
16684 ac_cv_type_socklen_t=no
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
16690 $as_echo "$ac_cv_type_socklen_t" >&6; }
16691 if test $ac_cv_type_socklen_t != yes; then
16692 $as_echo "#define socklen_t int" >>confdefs.h
16701 # Check whether --enable-threads was given.
16702 if test "${enable_threads+set}" = set; then :
16703 enableval=$enable_threads; case "${enableval}" in #(
16704 yes) :
16705 ;; #(
16706 no) :
16707 ;; #(
16708 *) :
16709 as_fn_error $? "bad value ${enableval} for --enable-threads" "$LINENO" 5 ;;
16710 esac
16711 else
16712 enable_threads=yes
16716 if test x$enable_threads = xyes; then :
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: Creating a multi-threaded library." >&5
16718 $as_echo "$as_me: Creating a multi-threaded library." >&6;}
16720 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
16722 case "$target_os" in #(
16723 mingw*) :
16724 ;; #(
16725 *) :
16729 ac_ext=c
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16735 ax_pthread_ok=no
16737 # We used to check for pthread.h first, but this fails if pthread.h
16738 # requires special compiler flags (e.g. on True64 or Sequent).
16739 # It gets checked for in the link test anyway.
16741 # First of all, check if the user has set any of the PTHREAD_LIBS,
16742 # etcetera environment variables, and if threads linking works using
16743 # them:
16744 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16745 save_CFLAGS="$CFLAGS"
16746 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16747 save_LIBS="$LIBS"
16748 LIBS="$PTHREAD_LIBS $LIBS"
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16750 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16754 /* Override any GCC internal prototype to avoid an error.
16755 Use char because int might match the return type of a GCC
16756 builtin and then its argument prototype would still apply. */
16757 #ifdef __cplusplus
16758 extern "C"
16759 #endif
16760 char pthread_join ();
16762 main ()
16764 return pthread_join ();
16766 return 0;
16768 _ACEOF
16769 if ac_fn_c_try_link "$LINENO"; then :
16770 ax_pthread_ok=yes
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16775 $as_echo "$ax_pthread_ok" >&6; }
16776 if test x"$ax_pthread_ok" = xno; then
16777 PTHREAD_LIBS=""
16778 PTHREAD_CFLAGS=""
16780 LIBS="$save_LIBS"
16781 CFLAGS="$save_CFLAGS"
16784 # We must check for the threads library under a number of different
16785 # names; the ordering is very important because some systems
16786 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16787 # libraries is broken (non-POSIX).
16789 # Create a list of thread flags to try. Items starting with a "-" are
16790 # C compiler flags, and other items are library names, except for "none"
16791 # which indicates that we try without any flags at all, and "pthread-config"
16792 # which is a program returning the flags for the Pth emulation library.
16794 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16796 # The ordering *is* (sometimes) important. Some notes on the
16797 # individual items follow:
16799 # pthreads: AIX (must check this before -lpthread)
16800 # none: in case threads are in libc; should be tried before -Kthread and
16801 # other compiler flags to prevent continual compiler warnings
16802 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16803 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16804 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16805 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16806 # -pthreads: Solaris/gcc
16807 # -mthreads: Mingw32/gcc, Lynx/gcc
16808 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16809 # doesn't hurt to check since this sometimes defines pthreads too;
16810 # also defines -D_REENTRANT)
16811 # ... -mt is also the pthreads flag for HP/aCC
16812 # pthread: Linux, etcetera
16813 # --thread-safe: KAI C++
16814 # pthread-config: use pthread-config program (for GNU Pth library)
16816 case "${host_cpu}-${host_os}" in
16817 *solaris*)
16819 # On Solaris (at least, for some versions), libc contains stubbed
16820 # (non-functional) versions of the pthreads routines, so link-based
16821 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16822 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16823 # a function called by this macro, so we could check for that, but
16824 # who knows whether they'll stub that too in a future libc.) So,
16825 # we'll just look for -pthreads and -lpthread first:
16827 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16830 *-darwin*)
16831 acx_pthread_flags="-pthread $acx_pthread_flags"
16833 esac
16835 if test x"$ax_pthread_ok" = xno; then
16836 for flag in $ax_pthread_flags; do
16838 case $flag in
16839 none)
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16841 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16846 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16847 PTHREAD_CFLAGS="$flag"
16850 pthread-config)
16851 # Extract the first word of "pthread-config", so it can be a program name with args.
16852 set dummy pthread-config; ac_word=$2
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16854 $as_echo_n "checking for $ac_word... " >&6; }
16855 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16856 $as_echo_n "(cached) " >&6
16857 else
16858 if test -n "$ax_pthread_config"; then
16859 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16860 else
16861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16862 for as_dir in $PATH
16864 IFS=$as_save_IFS
16865 test -z "$as_dir" && as_dir=.
16866 for ac_exec_ext in '' $ac_executable_extensions; do
16867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16868 ac_cv_prog_ax_pthread_config="yes"
16869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16870 break 2
16872 done
16873 done
16874 IFS=$as_save_IFS
16876 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16879 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16880 if test -n "$ax_pthread_config"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16882 $as_echo "$ax_pthread_config" >&6; }
16883 else
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16885 $as_echo "no" >&6; }
16889 if test x"$ax_pthread_config" = xno; then continue; fi
16890 PTHREAD_CFLAGS="`pthread-config --cflags`"
16891 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16896 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16897 PTHREAD_LIBS="-l$flag"
16899 esac
16901 save_LIBS="$LIBS"
16902 save_CFLAGS="$CFLAGS"
16903 LIBS="$PTHREAD_LIBS $LIBS"
16904 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16906 # Check for various functions. We must include pthread.h,
16907 # since some functions may be macros. (On the Sequent, we
16908 # need a special flag -Kthread to make this header compile.)
16909 # We check for pthread_join because it is in -lpthread on IRIX
16910 # while pthread_create is in libc. We check for pthread_attr_init
16911 # due to DEC craziness with -lpthreads. We check for
16912 # pthread_cleanup_push because it is one of the few pthread
16913 # functions on Solaris that doesn't have a non-functional libc stub.
16914 # We try pthread_create on general principles.
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 #include <pthread.h>
16918 static void routine(void* a) {a=0;}
16919 static void* start_routine(void* a) {return a;}
16921 main ()
16923 pthread_t th; pthread_attr_t attr;
16924 pthread_join(th, 0);
16925 pthread_attr_init(&attr);
16926 pthread_cleanup_push(routine, 0);
16927 pthread_create(&th,0,start_routine,0);
16928 pthread_cleanup_pop(0);
16930 return 0;
16932 _ACEOF
16933 if ac_fn_c_try_link "$LINENO"; then :
16934 ax_pthread_ok=yes
16936 rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16939 LIBS="$save_LIBS"
16940 CFLAGS="$save_CFLAGS"
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16943 $as_echo "$ax_pthread_ok" >&6; }
16944 if test "x$ax_pthread_ok" = xyes; then
16945 break;
16948 PTHREAD_LIBS=""
16949 PTHREAD_CFLAGS=""
16950 done
16953 # Various other checks:
16954 if test "x$ax_pthread_ok" = xyes; then
16955 save_LIBS="$LIBS"
16956 LIBS="$PTHREAD_LIBS $LIBS"
16957 save_CFLAGS="$CFLAGS"
16958 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16960 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16962 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16963 attr_name=unknown
16964 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16967 #include <pthread.h>
16969 main ()
16971 int attr=$attr; return attr;
16973 return 0;
16975 _ACEOF
16976 if ac_fn_c_try_link "$LINENO"; then :
16977 attr_name=$attr; break
16979 rm -f core conftest.err conftest.$ac_objext \
16980 conftest$ac_exeext conftest.$ac_ext
16981 done
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16983 $as_echo "$attr_name" >&6; }
16984 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16986 cat >>confdefs.h <<_ACEOF
16987 #define PTHREAD_CREATE_JOINABLE $attr_name
16988 _ACEOF
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16993 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16994 flag=no
16995 case "${host_cpu}-${host_os}" in
16996 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16997 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16998 esac
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17000 $as_echo "${flag}" >&6; }
17001 if test "x$flag" != xno; then
17002 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17005 LIBS="$save_LIBS"
17006 CFLAGS="$save_CFLAGS"
17008 # More AIX lossage: must compile with xlc_r or cc_r
17009 if test x"$GCC" != xyes; then
17010 for ac_prog in xlc_r cc_r
17012 # Extract the first word of "$ac_prog", so it can be a program name with args.
17013 set dummy $ac_prog; ac_word=$2
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17015 $as_echo_n "checking for $ac_word... " >&6; }
17016 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 if test -n "$PTHREAD_CC"; then
17020 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17021 else
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023 for as_dir in $PATH
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for ac_exec_ext in '' $ac_executable_extensions; do
17028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17029 ac_cv_prog_PTHREAD_CC="$ac_prog"
17030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17031 break 2
17033 done
17034 done
17035 IFS=$as_save_IFS
17039 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17040 if test -n "$PTHREAD_CC"; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17042 $as_echo "$PTHREAD_CC" >&6; }
17043 else
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17049 test -n "$PTHREAD_CC" && break
17050 done
17051 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17053 else
17054 PTHREAD_CC=$CC
17056 else
17057 PTHREAD_CC="$CC"
17064 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17065 if test x"$ax_pthread_ok" = xyes; then
17067 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17070 else
17071 ax_pthread_ok=no
17072 as_fn_error $? "Requested threads support but no threads were found." "$LINENO" 5
17074 ac_ext=cpp
17075 ac_cpp='$CXXCPP $CPPFLAGS'
17076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17081 esac
17083 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17084 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
17085 LIBS="$PTHREAD_LIBS $LIBS"
17086 else
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: Creating a single-threaded library" >&5
17088 $as_echo "$as_me: Creating a single-threaded library" >&6;}
17090 $as_echo "#define LOG4CPLUS_SINGLE_THREADED 1" >>confdefs.h
17094 if test x$enable_threads = xyes; then
17095 MULTI_THREADED_TRUE=
17096 MULTI_THREADED_FALSE='#'
17097 else
17098 MULTI_THREADED_TRUE='#'
17099 MULTI_THREADED_FALSE=
17107 ac_config_headers="$ac_config_headers include/log4cplus/config.h"
17109 ac_config_headers="$ac_config_headers include/log4cplus/config/defines.hxx"
17111 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile loggingserver/Makefile tests/Makefile tests/appender_test/Makefile tests/configandwatch_test/Makefile tests/customloglevel_test/Makefile tests/fileappender_test/Makefile tests/filter_test/Makefile tests/hierarchy_test/Makefile tests/loglog_test/Makefile tests/ndc_test/Makefile tests/ostream_test/Makefile tests/patternlayout_test/Makefile tests/performance_test/Makefile tests/priority_test/Makefile tests/propertyconfig_test/Makefile tests/socket_test/Makefile tests/thread_test/Makefile tests/timeformat_test/Makefile"
17113 cat >confcache <<\_ACEOF
17114 # This file is a shell script that caches the results of configure
17115 # tests run on this system so they can be shared between configure
17116 # scripts and configure runs, see configure's option --config-cache.
17117 # It is not useful on other systems. If it contains results you don't
17118 # want to keep, you may remove or edit it.
17120 # config.status only pays attention to the cache file if you give it
17121 # the --recheck option to rerun configure.
17123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17125 # following values.
17127 _ACEOF
17129 # The following way of writing the cache mishandles newlines in values,
17130 # but we know of no workaround that is simple, portable, and efficient.
17131 # So, we kill variables containing newlines.
17132 # Ultrix sh set writes to stderr and can't be redirected directly,
17133 # and sets the high bit in the cache file unless we assign to the vars.
17135 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17136 eval ac_val=\$$ac_var
17137 case $ac_val in #(
17138 *${as_nl}*)
17139 case $ac_var in #(
17140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17142 esac
17143 case $ac_var in #(
17144 _ | IFS | as_nl) ;; #(
17145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17146 *) { eval $ac_var=; unset $ac_var;} ;;
17147 esac ;;
17148 esac
17149 done
17151 (set) 2>&1 |
17152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17153 *${as_nl}ac_space=\ *)
17154 # `set' does not quote correctly, so add quotes: double-quote
17155 # substitution turns \\\\ into \\, and sed turns \\ into \.
17156 sed -n \
17157 "s/'/'\\\\''/g;
17158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17159 ;; #(
17161 # `set' quotes correctly as required by POSIX, so do not add quotes.
17162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17164 esac |
17165 sort
17167 sed '
17168 /^ac_cv_env_/b end
17169 t clear
17170 :clear
17171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17172 t end
17173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17174 :end' >>confcache
17175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17176 if test -w "$cache_file"; then
17177 if test "x$cache_file" != "x/dev/null"; then
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17179 $as_echo "$as_me: updating cache $cache_file" >&6;}
17180 if test ! -f "$cache_file" || test -h "$cache_file"; then
17181 cat confcache >"$cache_file"
17182 else
17183 case $cache_file in #(
17184 */* | ?:*)
17185 mv -f confcache "$cache_file"$$ &&
17186 mv -f "$cache_file"$$ "$cache_file" ;; #(
17188 mv -f confcache "$cache_file" ;;
17189 esac
17192 else
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17194 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17197 rm -f confcache
17199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17200 # Let make expand exec_prefix.
17201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17203 DEFS=-DHAVE_CONFIG_H
17205 ac_libobjs=
17206 ac_ltlibobjs=
17208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17209 # 1. Remove the extension, and $U if already installed.
17210 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17211 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17213 # will be set to the directory where LIBOBJS objects are built.
17214 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17215 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17216 done
17217 LIBOBJS=$ac_libobjs
17219 LTLIBOBJS=$ac_ltlibobjs
17222 if test -n "$EXEEXT"; then
17223 am__EXEEXT_TRUE=
17224 am__EXEEXT_FALSE='#'
17225 else
17226 am__EXEEXT_TRUE='#'
17227 am__EXEEXT_FALSE=
17230 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17231 as_fn_error $? "conditional \"AMDEP\" was never defined.
17232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17234 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17235 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17238 if test -z "${WINSOCK_SOCKETS_TRUE}" && test -z "${WINSOCK_SOCKETS_FALSE}"; then
17239 as_fn_error $? "conditional \"WINSOCK_SOCKETS\" was never defined.
17240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17242 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17243 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17246 if test -z "${MULTI_THREADED_TRUE}" && test -z "${MULTI_THREADED_FALSE}"; then
17247 as_fn_error $? "conditional \"MULTI_THREADED\" was never defined.
17248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17251 : "${CONFIG_STATUS=./config.status}"
17252 ac_write_fail=0
17253 ac_clean_files_save=$ac_clean_files
17254 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17256 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17257 as_write_fail=0
17258 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17259 #! $SHELL
17260 # Generated by $as_me.
17261 # Run this file to recreate the current configuration.
17262 # Compiler output produced by configure, useful for debugging
17263 # configure, is in config.log if it exists.
17265 debug=false
17266 ac_cs_recheck=false
17267 ac_cs_silent=false
17269 SHELL=\${CONFIG_SHELL-$SHELL}
17270 export SHELL
17271 _ASEOF
17272 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17273 ## -------------------- ##
17274 ## M4sh Initialization. ##
17275 ## -------------------- ##
17277 # Be more Bourne compatible
17278 DUALCASE=1; export DUALCASE # for MKS sh
17279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17280 emulate sh
17281 NULLCMD=:
17282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17283 # is contrary to our usage. Disable this feature.
17284 alias -g '${1+"$@"}'='"$@"'
17285 setopt NO_GLOB_SUBST
17286 else
17287 case `(set -o) 2>/dev/null` in #(
17288 *posix*) :
17289 set -o posix ;; #(
17290 *) :
17292 esac
17296 as_nl='
17298 export as_nl
17299 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17300 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17301 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17302 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17303 # Prefer a ksh shell builtin over an external printf program on Solaris,
17304 # but without wasting forks for bash or zsh.
17305 if test -z "$BASH_VERSION$ZSH_VERSION" \
17306 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17307 as_echo='print -r --'
17308 as_echo_n='print -rn --'
17309 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17310 as_echo='printf %s\n'
17311 as_echo_n='printf %s'
17312 else
17313 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17314 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17315 as_echo_n='/usr/ucb/echo -n'
17316 else
17317 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17318 as_echo_n_body='eval
17319 arg=$1;
17320 case $arg in #(
17321 *"$as_nl"*)
17322 expr "X$arg" : "X\\(.*\\)$as_nl";
17323 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17324 esac;
17325 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17327 export as_echo_n_body
17328 as_echo_n='sh -c $as_echo_n_body as_echo'
17330 export as_echo_body
17331 as_echo='sh -c $as_echo_body as_echo'
17334 # The user is always right.
17335 if test "${PATH_SEPARATOR+set}" != set; then
17336 PATH_SEPARATOR=:
17337 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17338 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17339 PATH_SEPARATOR=';'
17344 # IFS
17345 # We need space, tab and new line, in precisely that order. Quoting is
17346 # there to prevent editors from complaining about space-tab.
17347 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17348 # splitting by setting IFS to empty value.)
17349 IFS=" "" $as_nl"
17351 # Find who we are. Look in the path if we contain no directory separator.
17352 as_myself=
17353 case $0 in #((
17354 *[\\/]* ) as_myself=$0 ;;
17355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17356 for as_dir in $PATH
17358 IFS=$as_save_IFS
17359 test -z "$as_dir" && as_dir=.
17360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17361 done
17362 IFS=$as_save_IFS
17365 esac
17366 # We did not find ourselves, most probably we were run as `sh COMMAND'
17367 # in which case we are not to be found in the path.
17368 if test "x$as_myself" = x; then
17369 as_myself=$0
17371 if test ! -f "$as_myself"; then
17372 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17373 exit 1
17376 # Unset variables that we do not need and which cause bugs (e.g. in
17377 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17378 # suppresses any "Segmentation fault" message there. '((' could
17379 # trigger a bug in pdksh 5.2.14.
17380 for as_var in BASH_ENV ENV MAIL MAILPATH
17381 do eval test x\${$as_var+set} = xset \
17382 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17383 done
17384 PS1='$ '
17385 PS2='> '
17386 PS4='+ '
17388 # NLS nuisances.
17389 LC_ALL=C
17390 export LC_ALL
17391 LANGUAGE=C
17392 export LANGUAGE
17394 # CDPATH.
17395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17398 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17399 # ----------------------------------------
17400 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17401 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17402 # script with STATUS, using 1 if that was 0.
17403 as_fn_error ()
17405 as_status=$1; test $as_status -eq 0 && as_status=1
17406 if test "$4"; then
17407 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17408 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17410 $as_echo "$as_me: error: $2" >&2
17411 as_fn_exit $as_status
17412 } # as_fn_error
17415 # as_fn_set_status STATUS
17416 # -----------------------
17417 # Set $? to STATUS, without forking.
17418 as_fn_set_status ()
17420 return $1
17421 } # as_fn_set_status
17423 # as_fn_exit STATUS
17424 # -----------------
17425 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17426 as_fn_exit ()
17428 set +e
17429 as_fn_set_status $1
17430 exit $1
17431 } # as_fn_exit
17433 # as_fn_unset VAR
17434 # ---------------
17435 # Portably unset VAR.
17436 as_fn_unset ()
17438 { eval $1=; unset $1;}
17440 as_unset=as_fn_unset
17441 # as_fn_append VAR VALUE
17442 # ----------------------
17443 # Append the text in VALUE to the end of the definition contained in VAR. Take
17444 # advantage of any shell optimizations that allow amortized linear growth over
17445 # repeated appends, instead of the typical quadratic growth present in naive
17446 # implementations.
17447 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17448 eval 'as_fn_append ()
17450 eval $1+=\$2
17452 else
17453 as_fn_append ()
17455 eval $1=\$$1\$2
17457 fi # as_fn_append
17459 # as_fn_arith ARG...
17460 # ------------------
17461 # Perform arithmetic evaluation on the ARGs, and store the result in the
17462 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17463 # must be portable across $(()) and expr.
17464 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17465 eval 'as_fn_arith ()
17467 as_val=$(( $* ))
17469 else
17470 as_fn_arith ()
17472 as_val=`expr "$@" || test $? -eq 1`
17474 fi # as_fn_arith
17477 if expr a : '\(a\)' >/dev/null 2>&1 &&
17478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17479 as_expr=expr
17480 else
17481 as_expr=false
17484 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17485 as_basename=basename
17486 else
17487 as_basename=false
17490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17491 as_dirname=dirname
17492 else
17493 as_dirname=false
17496 as_me=`$as_basename -- "$0" ||
17497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17498 X"$0" : 'X\(//\)$' \| \
17499 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17500 $as_echo X/"$0" |
17501 sed '/^.*\/\([^/][^/]*\)\/*$/{
17502 s//\1/
17505 /^X\/\(\/\/\)$/{
17506 s//\1/
17509 /^X\/\(\/\).*/{
17510 s//\1/
17513 s/.*/./; q'`
17515 # Avoid depending upon Character Ranges.
17516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17519 as_cr_digits='0123456789'
17520 as_cr_alnum=$as_cr_Letters$as_cr_digits
17522 ECHO_C= ECHO_N= ECHO_T=
17523 case `echo -n x` in #(((((
17524 -n*)
17525 case `echo 'xy\c'` in
17526 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17527 xy) ECHO_C='\c';;
17528 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17529 ECHO_T=' ';;
17530 esac;;
17532 ECHO_N='-n';;
17533 esac
17535 rm -f conf$$ conf$$.exe conf$$.file
17536 if test -d conf$$.dir; then
17537 rm -f conf$$.dir/conf$$.file
17538 else
17539 rm -f conf$$.dir
17540 mkdir conf$$.dir 2>/dev/null
17542 if (echo >conf$$.file) 2>/dev/null; then
17543 if ln -s conf$$.file conf$$ 2>/dev/null; then
17544 as_ln_s='ln -s'
17545 # ... but there are two gotchas:
17546 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17547 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17548 # In both cases, we have to default to `cp -p'.
17549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17550 as_ln_s='cp -p'
17551 elif ln conf$$.file conf$$ 2>/dev/null; then
17552 as_ln_s=ln
17553 else
17554 as_ln_s='cp -p'
17556 else
17557 as_ln_s='cp -p'
17559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17560 rmdir conf$$.dir 2>/dev/null
17563 # as_fn_mkdir_p
17564 # -------------
17565 # Create "$as_dir" as a directory, including parents if necessary.
17566 as_fn_mkdir_p ()
17569 case $as_dir in #(
17570 -*) as_dir=./$as_dir;;
17571 esac
17572 test -d "$as_dir" || eval $as_mkdir_p || {
17573 as_dirs=
17574 while :; do
17575 case $as_dir in #(
17576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17577 *) as_qdir=$as_dir;;
17578 esac
17579 as_dirs="'$as_qdir' $as_dirs"
17580 as_dir=`$as_dirname -- "$as_dir" ||
17581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17582 X"$as_dir" : 'X\(//\)[^/]' \| \
17583 X"$as_dir" : 'X\(//\)$' \| \
17584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17585 $as_echo X"$as_dir" |
17586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17587 s//\1/
17590 /^X\(\/\/\)[^/].*/{
17591 s//\1/
17594 /^X\(\/\/\)$/{
17595 s//\1/
17598 /^X\(\/\).*/{
17599 s//\1/
17602 s/.*/./; q'`
17603 test -d "$as_dir" && break
17604 done
17605 test -z "$as_dirs" || eval "mkdir $as_dirs"
17606 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17609 } # as_fn_mkdir_p
17610 if mkdir -p . 2>/dev/null; then
17611 as_mkdir_p='mkdir -p "$as_dir"'
17612 else
17613 test -d ./-p && rmdir ./-p
17614 as_mkdir_p=false
17617 if test -x / >/dev/null 2>&1; then
17618 as_test_x='test -x'
17619 else
17620 if ls -dL / >/dev/null 2>&1; then
17621 as_ls_L_option=L
17622 else
17623 as_ls_L_option=
17625 as_test_x='
17626 eval sh -c '\''
17627 if test -d "$1"; then
17628 test -d "$1/.";
17629 else
17630 case $1 in #(
17631 -*)set "./$1";;
17632 esac;
17633 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17634 ???[sx]*):;;*)false;;esac;fi
17635 '\'' sh
17638 as_executable_p=$as_test_x
17640 # Sed expression to map a string onto a valid CPP name.
17641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17643 # Sed expression to map a string onto a valid variable name.
17644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17647 exec 6>&1
17648 ## ----------------------------------- ##
17649 ## Main body of $CONFIG_STATUS script. ##
17650 ## ----------------------------------- ##
17651 _ASEOF
17652 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17655 # Save the log message, to keep $0 and so on meaningful, and to
17656 # report actual input values of CONFIG_FILES etc. instead of their
17657 # values after options handling.
17658 ac_log="
17659 This file was extended by log4cplus $as_me 1.0.4, which was
17660 generated by GNU Autoconf 2.68. Invocation command line was
17662 CONFIG_FILES = $CONFIG_FILES
17663 CONFIG_HEADERS = $CONFIG_HEADERS
17664 CONFIG_LINKS = $CONFIG_LINKS
17665 CONFIG_COMMANDS = $CONFIG_COMMANDS
17666 $ $0 $@
17668 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17671 _ACEOF
17673 case $ac_config_files in *"
17674 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17675 esac
17677 case $ac_config_headers in *"
17678 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17679 esac
17682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17683 # Files that config.status was made for.
17684 config_files="$ac_config_files"
17685 config_headers="$ac_config_headers"
17686 config_commands="$ac_config_commands"
17688 _ACEOF
17690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17691 ac_cs_usage="\
17692 \`$as_me' instantiates files and other configuration actions
17693 from templates according to the current configuration. Unless the files
17694 and actions are specified as TAGs, all are instantiated by default.
17696 Usage: $0 [OPTION]... [TAG]...
17698 -h, --help print this help, then exit
17699 -V, --version print version number and configuration settings, then exit
17700 --config print configuration, then exit
17701 -q, --quiet, --silent
17702 do not print progress messages
17703 -d, --debug don't remove temporary files
17704 --recheck update $as_me by reconfiguring in the same conditions
17705 --file=FILE[:TEMPLATE]
17706 instantiate the configuration file FILE
17707 --header=FILE[:TEMPLATE]
17708 instantiate the configuration header FILE
17710 Configuration files:
17711 $config_files
17713 Configuration headers:
17714 $config_headers
17716 Configuration commands:
17717 $config_commands
17719 Report bugs to the package provider."
17721 _ACEOF
17722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17723 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17724 ac_cs_version="\\
17725 log4cplus config.status 1.0.4
17726 configured by $0, generated by GNU Autoconf 2.68,
17727 with options \\"\$ac_cs_config\\"
17729 Copyright (C) 2010 Free Software Foundation, Inc.
17730 This config.status script is free software; the Free Software Foundation
17731 gives unlimited permission to copy, distribute and modify it."
17733 ac_pwd='$ac_pwd'
17734 srcdir='$srcdir'
17735 INSTALL='$INSTALL'
17736 MKDIR_P='$MKDIR_P'
17737 AWK='$AWK'
17738 test -n "\$AWK" || AWK=awk
17739 _ACEOF
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742 # The default lists apply if the user does not specify any file.
17743 ac_need_defaults=:
17744 while test $# != 0
17746 case $1 in
17747 --*=?*)
17748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17750 ac_shift=:
17752 --*=)
17753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17754 ac_optarg=
17755 ac_shift=:
17758 ac_option=$1
17759 ac_optarg=$2
17760 ac_shift=shift
17762 esac
17764 case $ac_option in
17765 # Handling of the options.
17766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17767 ac_cs_recheck=: ;;
17768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17769 $as_echo "$ac_cs_version"; exit ;;
17770 --config | --confi | --conf | --con | --co | --c )
17771 $as_echo "$ac_cs_config"; exit ;;
17772 --debug | --debu | --deb | --de | --d | -d )
17773 debug=: ;;
17774 --file | --fil | --fi | --f )
17775 $ac_shift
17776 case $ac_optarg in
17777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17778 '') as_fn_error $? "missing file argument" ;;
17779 esac
17780 as_fn_append CONFIG_FILES " '$ac_optarg'"
17781 ac_need_defaults=false;;
17782 --header | --heade | --head | --hea )
17783 $ac_shift
17784 case $ac_optarg in
17785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17786 esac
17787 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17788 ac_need_defaults=false;;
17789 --he | --h)
17790 # Conflict between --help and --header
17791 as_fn_error $? "ambiguous option: \`$1'
17792 Try \`$0 --help' for more information.";;
17793 --help | --hel | -h )
17794 $as_echo "$ac_cs_usage"; exit ;;
17795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17797 ac_cs_silent=: ;;
17799 # This is an error.
17800 -*) as_fn_error $? "unrecognized option: \`$1'
17801 Try \`$0 --help' for more information." ;;
17803 *) as_fn_append ac_config_targets " $1"
17804 ac_need_defaults=false ;;
17806 esac
17807 shift
17808 done
17810 ac_configure_extra_args=
17812 if $ac_cs_silent; then
17813 exec 6>/dev/null
17814 ac_configure_extra_args="$ac_configure_extra_args --silent"
17817 _ACEOF
17818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17819 if \$ac_cs_recheck; then
17820 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17821 shift
17822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17823 CONFIG_SHELL='$SHELL'
17824 export CONFIG_SHELL
17825 exec "\$@"
17828 _ACEOF
17829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17830 exec 5>>config.log
17832 echo
17833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17834 ## Running $as_me. ##
17835 _ASBOX
17836 $as_echo "$ac_log"
17837 } >&5
17839 _ACEOF
17840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17842 # INIT-COMMANDS
17844 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17847 # The HP-UX ksh and POSIX shell print the target directory to stdout
17848 # if CDPATH is set.
17849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17851 sed_quote_subst='$sed_quote_subst'
17852 double_quote_subst='$double_quote_subst'
17853 delay_variable_subst='$delay_variable_subst'
17854 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17855 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17856 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17857 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17858 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17859 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17860 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17861 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17862 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17863 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17864 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17865 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17866 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17867 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17868 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17869 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17870 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17871 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17872 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17873 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17874 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17875 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17876 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17877 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17878 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17879 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17880 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17881 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17882 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17883 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17884 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17885 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17886 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17887 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17888 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17889 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17890 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17891 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17892 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17893 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17894 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17895 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17896 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17897 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17898 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17899 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17900 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17901 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17902 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17903 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17904 lt_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"`'
17905 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17906 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17907 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17908 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17910 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17911 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17912 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17913 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17914 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17915 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17916 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17917 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17918 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17919 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17920 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17921 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17922 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17923 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17924 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17925 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17926 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17927 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17928 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17929 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17930 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17931 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17932 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17933 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17934 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17935 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17936 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17937 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17938 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17939 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17940 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17941 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17942 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17943 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17944 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17945 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17951 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17952 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17953 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17954 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17955 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17956 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17957 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17958 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17959 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17960 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17961 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17962 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17963 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17964 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17965 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17966 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17967 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17968 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17969 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17970 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17971 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17972 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17973 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17974 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17975 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17976 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17977 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17978 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17979 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17980 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17981 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17982 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17983 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17984 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17985 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17986 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17987 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17988 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17989 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17990 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17991 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17992 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17993 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17994 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17995 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17996 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17997 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17998 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17999 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18000 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18001 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18002 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18003 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18004 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18005 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18006 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18007 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18008 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18009 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18010 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18011 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18012 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18013 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18014 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18015 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18016 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18017 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18018 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18019 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18020 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18021 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18022 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18023 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18024 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18025 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18026 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18027 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18028 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18029 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18030 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18032 LTCC='$LTCC'
18033 LTCFLAGS='$LTCFLAGS'
18034 compiler='$compiler_DEFAULT'
18036 # A function that is used when there is no print builtin or printf.
18037 func_fallback_echo ()
18039 eval 'cat <<_LTECHO_EOF
18041 _LTECHO_EOF'
18044 # Quote evaled strings.
18045 for var in AS \
18046 DLLTOOL \
18047 OBJDUMP \
18048 SHELL \
18049 ECHO \
18050 SED \
18051 GREP \
18052 EGREP \
18053 FGREP \
18054 LD \
18055 NM \
18056 LN_S \
18057 lt_SP2NL \
18058 lt_NL2SP \
18059 reload_flag \
18060 deplibs_check_method \
18061 file_magic_cmd \
18062 AR \
18063 AR_FLAGS \
18064 STRIP \
18065 RANLIB \
18066 CC \
18067 CFLAGS \
18068 compiler \
18069 lt_cv_sys_global_symbol_pipe \
18070 lt_cv_sys_global_symbol_to_cdecl \
18071 lt_cv_sys_global_symbol_to_c_name_address \
18072 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18073 lt_prog_compiler_no_builtin_flag \
18074 lt_prog_compiler_wl \
18075 lt_prog_compiler_pic \
18076 lt_prog_compiler_static \
18077 lt_cv_prog_compiler_c_o \
18078 need_locks \
18079 DSYMUTIL \
18080 NMEDIT \
18081 LIPO \
18082 OTOOL \
18083 OTOOL64 \
18084 shrext_cmds \
18085 export_dynamic_flag_spec \
18086 whole_archive_flag_spec \
18087 compiler_needs_object \
18088 with_gnu_ld \
18089 allow_undefined_flag \
18090 no_undefined_flag \
18091 hardcode_libdir_flag_spec \
18092 hardcode_libdir_flag_spec_ld \
18093 hardcode_libdir_separator \
18094 fix_srcfile_path \
18095 exclude_expsyms \
18096 include_expsyms \
18097 file_list_spec \
18098 variables_saved_for_relink \
18099 libname_spec \
18100 library_names_spec \
18101 soname_spec \
18102 install_override_mode \
18103 finish_eval \
18104 old_striplib \
18105 striplib \
18106 compiler_lib_search_dirs \
18107 predep_objects \
18108 postdep_objects \
18109 predeps \
18110 postdeps \
18111 compiler_lib_search_path \
18112 LD_CXX \
18113 reload_flag_CXX \
18114 compiler_CXX \
18115 lt_prog_compiler_no_builtin_flag_CXX \
18116 lt_prog_compiler_wl_CXX \
18117 lt_prog_compiler_pic_CXX \
18118 lt_prog_compiler_static_CXX \
18119 lt_cv_prog_compiler_c_o_CXX \
18120 export_dynamic_flag_spec_CXX \
18121 whole_archive_flag_spec_CXX \
18122 compiler_needs_object_CXX \
18123 with_gnu_ld_CXX \
18124 allow_undefined_flag_CXX \
18125 no_undefined_flag_CXX \
18126 hardcode_libdir_flag_spec_CXX \
18127 hardcode_libdir_flag_spec_ld_CXX \
18128 hardcode_libdir_separator_CXX \
18129 fix_srcfile_path_CXX \
18130 exclude_expsyms_CXX \
18131 include_expsyms_CXX \
18132 file_list_spec_CXX \
18133 compiler_lib_search_dirs_CXX \
18134 predep_objects_CXX \
18135 postdep_objects_CXX \
18136 predeps_CXX \
18137 postdeps_CXX \
18138 compiler_lib_search_path_CXX; do
18139 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18140 *[\\\\\\\`\\"\\\$]*)
18141 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18144 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18146 esac
18147 done
18149 # Double-quote double-evaled strings.
18150 for var in reload_cmds \
18151 old_postinstall_cmds \
18152 old_postuninstall_cmds \
18153 old_archive_cmds \
18154 extract_expsyms_cmds \
18155 old_archive_from_new_cmds \
18156 old_archive_from_expsyms_cmds \
18157 archive_cmds \
18158 archive_expsym_cmds \
18159 module_cmds \
18160 module_expsym_cmds \
18161 export_symbols_cmds \
18162 prelink_cmds \
18163 postinstall_cmds \
18164 postuninstall_cmds \
18165 finish_cmds \
18166 sys_lib_search_path_spec \
18167 sys_lib_dlsearch_path_spec \
18168 reload_cmds_CXX \
18169 old_archive_cmds_CXX \
18170 old_archive_from_new_cmds_CXX \
18171 old_archive_from_expsyms_cmds_CXX \
18172 archive_cmds_CXX \
18173 archive_expsym_cmds_CXX \
18174 module_cmds_CXX \
18175 module_expsym_cmds_CXX \
18176 export_symbols_cmds_CXX \
18177 prelink_cmds_CXX; do
18178 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18179 *[\\\\\\\`\\"\\\$]*)
18180 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18183 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18185 esac
18186 done
18188 ac_aux_dir='$ac_aux_dir'
18189 xsi_shell='$xsi_shell'
18190 lt_shell_append='$lt_shell_append'
18192 # See if we are running on zsh, and set the options which allow our
18193 # commands through without removal of \ escapes INIT.
18194 if test -n "\${ZSH_VERSION+set}" ; then
18195 setopt NO_GLOB_SUBST
18199 PACKAGE='$PACKAGE'
18200 VERSION='$VERSION'
18201 TIMESTAMP='$TIMESTAMP'
18202 RM='$RM'
18203 ofile='$ofile'
18210 _ACEOF
18212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18214 # Handling of arguments.
18215 for ac_config_target in $ac_config_targets
18217 case $ac_config_target in
18218 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18219 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18220 "include/log4cplus/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/log4cplus/config.h" ;;
18221 "include/log4cplus/config/defines.hxx") CONFIG_HEADERS="$CONFIG_HEADERS include/log4cplus/config/defines.hxx" ;;
18222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18223 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18224 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18225 "loggingserver/Makefile") CONFIG_FILES="$CONFIG_FILES loggingserver/Makefile" ;;
18226 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18227 "tests/appender_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/appender_test/Makefile" ;;
18228 "tests/configandwatch_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/configandwatch_test/Makefile" ;;
18229 "tests/customloglevel_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/customloglevel_test/Makefile" ;;
18230 "tests/fileappender_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fileappender_test/Makefile" ;;
18231 "tests/filter_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/filter_test/Makefile" ;;
18232 "tests/hierarchy_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hierarchy_test/Makefile" ;;
18233 "tests/loglog_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/loglog_test/Makefile" ;;
18234 "tests/ndc_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ndc_test/Makefile" ;;
18235 "tests/ostream_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ostream_test/Makefile" ;;
18236 "tests/patternlayout_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/patternlayout_test/Makefile" ;;
18237 "tests/performance_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/performance_test/Makefile" ;;
18238 "tests/priority_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/priority_test/Makefile" ;;
18239 "tests/propertyconfig_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/propertyconfig_test/Makefile" ;;
18240 "tests/socket_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/socket_test/Makefile" ;;
18241 "tests/thread_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/thread_test/Makefile" ;;
18242 "tests/timeformat_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/timeformat_test/Makefile" ;;
18244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18245 esac
18246 done
18249 # If the user did not use the arguments to specify the items to instantiate,
18250 # then the envvar interface is used. Set only those that are not.
18251 # We use the long form for the default assignment because of an extremely
18252 # bizarre bug on SunOS 4.1.3.
18253 if $ac_need_defaults; then
18254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18259 # Have a temporary directory for convenience. Make it in the build tree
18260 # simply because there is no reason against having it here, and in addition,
18261 # creating and moving files from /tmp can sometimes cause problems.
18262 # Hook for its removal unless debugging.
18263 # Note that there is a small window in which the directory will not be cleaned:
18264 # after its creation but before its name has been assigned to `$tmp'.
18265 $debug ||
18267 tmp= ac_tmp=
18268 trap 'exit_status=$?
18269 : "${ac_tmp:=$tmp}"
18270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18272 trap 'as_fn_exit 1' 1 2 13 15
18274 # Create a (secure) tmp directory for tmp files.
18277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18278 test -d "$tmp"
18279 } ||
18281 tmp=./conf$$-$RANDOM
18282 (umask 077 && mkdir "$tmp")
18283 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18284 ac_tmp=$tmp
18286 # Set up the scripts for CONFIG_FILES section.
18287 # No need to generate them if there are no CONFIG_FILES.
18288 # This happens for instance with `./config.status config.h'.
18289 if test -n "$CONFIG_FILES"; then
18292 ac_cr=`echo X | tr X '\015'`
18293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18294 # But we know of no other shell where ac_cr would be empty at this
18295 # point, so we can use a bashism as a fallback.
18296 if test "x$ac_cr" = x; then
18297 eval ac_cr=\$\'\\r\'
18299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18301 ac_cs_awk_cr='\\r'
18302 else
18303 ac_cs_awk_cr=$ac_cr
18306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18307 _ACEOF
18311 echo "cat >conf$$subs.awk <<_ACEOF" &&
18312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18313 echo "_ACEOF"
18314 } >conf$$subs.sh ||
18315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18317 ac_delim='%!_!# '
18318 for ac_last_try in false false false false false :; do
18319 . ./conf$$subs.sh ||
18320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18323 if test $ac_delim_n = $ac_delim_num; then
18324 break
18325 elif $ac_last_try; then
18326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18327 else
18328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18330 done
18331 rm -f conf$$subs.sh
18333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18335 _ACEOF
18336 sed -n '
18338 s/^/S["/; s/!.*/"]=/
18341 s/^[^!]*!//
18342 :repl
18343 t repl
18344 s/'"$ac_delim"'$//
18345 t delim
18348 s/\(.\{148\}\)..*/\1/
18349 t more1
18350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18353 b repl
18354 :more1
18355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18358 s/.\{148\}//
18359 t nl
18360 :delim
18362 s/\(.\{148\}\)..*/\1/
18363 t more2
18364 s/["\\]/\\&/g; s/^/"/; s/$/"/
18367 :more2
18368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18371 s/.\{148\}//
18372 t delim
18373 ' <conf$$subs.awk | sed '
18374 /^[^""]/{
18376 s/\n//
18378 ' >>$CONFIG_STATUS || ac_write_fail=1
18379 rm -f conf$$subs.awk
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 _ACAWK
18382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18383 for (key in S) S_is_set[key] = 1
18384 FS = "\a"
18388 line = $ 0
18389 nfields = split(line, field, "@")
18390 substed = 0
18391 len = length(field[1])
18392 for (i = 2; i < nfields; i++) {
18393 key = field[i]
18394 keylen = length(key)
18395 if (S_is_set[key]) {
18396 value = S[key]
18397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18398 len += length(value) + length(field[++i])
18399 substed = 1
18400 } else
18401 len += 1 + keylen
18404 print line
18407 _ACAWK
18408 _ACEOF
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18412 else
18414 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18416 _ACEOF
18418 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18419 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18420 # trailing colons and then remove the whole line if VPATH becomes empty
18421 # (actually we leave an empty line to preserve line numbers).
18422 if test "x$srcdir" = x.; then
18423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18425 s///
18426 s/^/:/
18427 s/[ ]*$/:/
18428 s/:\$(srcdir):/:/g
18429 s/:\${srcdir}:/:/g
18430 s/:@srcdir@:/:/g
18431 s/^:*//
18432 s/:*$//
18434 s/\(=[ ]*\).*/\1/
18436 s/\n//
18437 s/^[^=]*=[ ]*$//
18441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18442 fi # test -n "$CONFIG_FILES"
18444 # Set up the scripts for CONFIG_HEADERS section.
18445 # No need to generate them if there are no CONFIG_HEADERS.
18446 # This happens for instance with `./config.status Makefile'.
18447 if test -n "$CONFIG_HEADERS"; then
18448 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18449 BEGIN {
18450 _ACEOF
18452 # Transform confdefs.h into an awk script `defines.awk', embedded as
18453 # here-document in config.status, that substitutes the proper values into
18454 # config.h.in to produce config.h.
18456 # Create a delimiter string that does not exist in confdefs.h, to ease
18457 # handling of long lines.
18458 ac_delim='%!_!# '
18459 for ac_last_try in false false :; do
18460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18461 if test -z "$ac_tt"; then
18462 break
18463 elif $ac_last_try; then
18464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18465 else
18466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18468 done
18470 # For the awk script, D is an array of macro values keyed by name,
18471 # likewise P contains macro parameters if any. Preserve backslash
18472 # newline sequences.
18474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18475 sed -n '
18476 s/.\{148\}/&'"$ac_delim"'/g
18477 t rset
18478 :rset
18479 s/^[ ]*#[ ]*define[ ][ ]*/ /
18480 t def
18482 :def
18483 s/\\$//
18484 t bsnl
18485 s/["\\]/\\&/g
18486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18487 D["\1"]=" \3"/p
18488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18490 :bsnl
18491 s/["\\]/\\&/g
18492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18493 D["\1"]=" \3\\\\\\n"\\/p
18494 t cont
18495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18496 t cont
18498 :cont
18500 s/.\{148\}/&'"$ac_delim"'/g
18501 t clear
18502 :clear
18503 s/\\$//
18504 t bsnlc
18505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18507 :bsnlc
18508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18509 b cont
18510 ' <confdefs.h | sed '
18511 s/'"$ac_delim"'/"\\\
18512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18515 for (key in D) D_is_set[key] = 1
18516 FS = "\a"
18518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18519 line = \$ 0
18520 split(line, arg, " ")
18521 if (arg[1] == "#") {
18522 defundef = arg[2]
18523 mac1 = arg[3]
18524 } else {
18525 defundef = substr(arg[1], 2)
18526 mac1 = arg[2]
18528 split(mac1, mac2, "(") #)
18529 macro = mac2[1]
18530 prefix = substr(line, 1, index(line, defundef) - 1)
18531 if (D_is_set[macro]) {
18532 # Preserve the white space surrounding the "#".
18533 print prefix "define", macro P[macro] D[macro]
18534 next
18535 } else {
18536 # Replace #undef with comments. This is necessary, for example,
18537 # in the case of _POSIX_SOURCE, which is predefined and required
18538 # on some systems where configure will not decide to define it.
18539 if (defundef == "undef") {
18540 print "/*", prefix defundef, macro, "*/"
18541 next
18545 { print }
18546 _ACAWK
18547 _ACEOF
18548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18550 fi # test -n "$CONFIG_HEADERS"
18553 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18554 shift
18555 for ac_tag
18557 case $ac_tag in
18558 :[FHLC]) ac_mode=$ac_tag; continue;;
18559 esac
18560 case $ac_mode$ac_tag in
18561 :[FHL]*:*);;
18562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18563 :[FH]-) ac_tag=-:-;;
18564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18565 esac
18566 ac_save_IFS=$IFS
18567 IFS=:
18568 set x $ac_tag
18569 IFS=$ac_save_IFS
18570 shift
18571 ac_file=$1
18572 shift
18574 case $ac_mode in
18575 :L) ac_source=$1;;
18576 :[FH])
18577 ac_file_inputs=
18578 for ac_f
18580 case $ac_f in
18581 -) ac_f="$ac_tmp/stdin";;
18582 *) # Look for the file first in the build tree, then in the source tree
18583 # (if the path is not absolute). The absolute path cannot be DOS-style,
18584 # because $ac_f cannot contain `:'.
18585 test -f "$ac_f" ||
18586 case $ac_f in
18587 [\\/$]*) false;;
18588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18589 esac ||
18590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18591 esac
18592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18593 as_fn_append ac_file_inputs " '$ac_f'"
18594 done
18596 # Let's still pretend it is `configure' which instantiates (i.e., don't
18597 # use $as_me), people would be surprised to read:
18598 # /* config.h. Generated by config.status. */
18599 configure_input='Generated from '`
18600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18601 `' by configure.'
18602 if test x"$ac_file" != x-; then
18603 configure_input="$ac_file. $configure_input"
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18605 $as_echo "$as_me: creating $ac_file" >&6;}
18607 # Neutralize special characters interpreted by sed in replacement strings.
18608 case $configure_input in #(
18609 *\&* | *\|* | *\\* )
18610 ac_sed_conf_input=`$as_echo "$configure_input" |
18611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18612 *) ac_sed_conf_input=$configure_input;;
18613 esac
18615 case $ac_tag in
18616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18618 esac
18620 esac
18622 ac_dir=`$as_dirname -- "$ac_file" ||
18623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$ac_file" : 'X\(//\)[^/]' \| \
18625 X"$ac_file" : 'X\(//\)$' \| \
18626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$ac_file" |
18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18629 s//\1/
18632 /^X\(\/\/\)[^/].*/{
18633 s//\1/
18636 /^X\(\/\/\)$/{
18637 s//\1/
18640 /^X\(\/\).*/{
18641 s//\1/
18644 s/.*/./; q'`
18645 as_dir="$ac_dir"; as_fn_mkdir_p
18646 ac_builddir=.
18648 case "$ac_dir" in
18649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18652 # A ".." for each directory in $ac_dir_suffix.
18653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18654 case $ac_top_builddir_sub in
18655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18657 esac ;;
18658 esac
18659 ac_abs_top_builddir=$ac_pwd
18660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18661 # for backward compatibility:
18662 ac_top_builddir=$ac_top_build_prefix
18664 case $srcdir in
18665 .) # We are building in place.
18666 ac_srcdir=.
18667 ac_top_srcdir=$ac_top_builddir_sub
18668 ac_abs_top_srcdir=$ac_pwd ;;
18669 [\\/]* | ?:[\\/]* ) # Absolute name.
18670 ac_srcdir=$srcdir$ac_dir_suffix;
18671 ac_top_srcdir=$srcdir
18672 ac_abs_top_srcdir=$srcdir ;;
18673 *) # Relative name.
18674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18675 ac_top_srcdir=$ac_top_build_prefix$srcdir
18676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18677 esac
18678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18681 case $ac_mode in
18684 # CONFIG_FILE
18687 case $INSTALL in
18688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18690 esac
18691 ac_MKDIR_P=$MKDIR_P
18692 case $MKDIR_P in
18693 [\\/$]* | ?:[\\/]* ) ;;
18694 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18695 esac
18696 _ACEOF
18698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699 # If the template does not know about datarootdir, expand it.
18700 # FIXME: This hack should be removed a few years after 2.60.
18701 ac_datarootdir_hack=; ac_datarootdir_seen=
18702 ac_sed_dataroot='
18703 /datarootdir/ {
18707 /@datadir@/p
18708 /@docdir@/p
18709 /@infodir@/p
18710 /@localedir@/p
18711 /@mandir@/p'
18712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18713 *datarootdir*) ac_datarootdir_seen=yes;;
18714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18717 _ACEOF
18718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18719 ac_datarootdir_hack='
18720 s&@datadir@&$datadir&g
18721 s&@docdir@&$docdir&g
18722 s&@infodir@&$infodir&g
18723 s&@localedir@&$localedir&g
18724 s&@mandir@&$mandir&g
18725 s&\\\${datarootdir}&$datarootdir&g' ;;
18726 esac
18727 _ACEOF
18729 # Neutralize VPATH when `$srcdir' = `.'.
18730 # Shell code in configure.ac might set extrasub.
18731 # FIXME: do we really want to maintain this feature?
18732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18733 ac_sed_extra="$ac_vpsub
18734 $extrasub
18735 _ACEOF
18736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18739 s|@configure_input@|$ac_sed_conf_input|;t t
18740 s&@top_builddir@&$ac_top_builddir_sub&;t t
18741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18742 s&@srcdir@&$ac_srcdir&;t t
18743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18744 s&@top_srcdir@&$ac_top_srcdir&;t t
18745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18746 s&@builddir@&$ac_builddir&;t t
18747 s&@abs_builddir@&$ac_abs_builddir&;t t
18748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18749 s&@INSTALL@&$ac_INSTALL&;t t
18750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18751 $ac_datarootdir_hack
18753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18756 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18761 which seems to be undefined. Please make sure it is defined" >&5
18762 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18763 which seems to be undefined. Please make sure it is defined" >&2;}
18765 rm -f "$ac_tmp/stdin"
18766 case $ac_file in
18767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18769 esac \
18770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18774 # CONFIG_HEADER
18776 if test x"$ac_file" != x-; then
18778 $as_echo "/* $configure_input */" \
18779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18780 } >"$ac_tmp/config.h" \
18781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18784 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18785 else
18786 rm -f "$ac_file"
18787 mv "$ac_tmp/config.h" "$ac_file" \
18788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18790 else
18791 $as_echo "/* $configure_input */" \
18792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18793 || as_fn_error $? "could not create -" "$LINENO" 5
18795 # Compute "$ac_file"'s index in $config_headers.
18796 _am_arg="$ac_file"
18797 _am_stamp_count=1
18798 for _am_header in $config_headers :; do
18799 case $_am_header in
18800 $_am_arg | $_am_arg:* )
18801 break ;;
18803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18804 esac
18805 done
18806 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18807 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18808 X"$_am_arg" : 'X\(//\)[^/]' \| \
18809 X"$_am_arg" : 'X\(//\)$' \| \
18810 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18811 $as_echo X"$_am_arg" |
18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813 s//\1/
18816 /^X\(\/\/\)[^/].*/{
18817 s//\1/
18820 /^X\(\/\/\)$/{
18821 s//\1/
18824 /^X\(\/\).*/{
18825 s//\1/
18828 s/.*/./; q'`/stamp-h$_am_stamp_count
18831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18832 $as_echo "$as_me: executing $ac_file commands" >&6;}
18834 esac
18837 case $ac_file$ac_mode in
18838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18839 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18840 # are listed without --file. Let's play safe and only enable the eval
18841 # if we detect the quoting.
18842 case $CONFIG_FILES in
18843 *\'*) eval set x "$CONFIG_FILES" ;;
18844 *) set x $CONFIG_FILES ;;
18845 esac
18846 shift
18847 for mf
18849 # Strip MF so we end up with the name of the file.
18850 mf=`echo "$mf" | sed -e 's/:.*$//'`
18851 # Check whether this is an Automake generated Makefile or not.
18852 # We used to match only the files named `Makefile.in', but
18853 # some people rename them; so instead we look at the file content.
18854 # Grep'ing the first line is not enough: some people post-process
18855 # each Makefile.in and add a new line on top of each file to say so.
18856 # Grep'ing the whole file is not good either: AIX grep has a line
18857 # limit of 2048, but all sed's we know have understand at least 4000.
18858 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18859 dirpart=`$as_dirname -- "$mf" ||
18860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861 X"$mf" : 'X\(//\)[^/]' \| \
18862 X"$mf" : 'X\(//\)$' \| \
18863 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18864 $as_echo X"$mf" |
18865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18866 s//\1/
18869 /^X\(\/\/\)[^/].*/{
18870 s//\1/
18873 /^X\(\/\/\)$/{
18874 s//\1/
18877 /^X\(\/\).*/{
18878 s//\1/
18881 s/.*/./; q'`
18882 else
18883 continue
18885 # Extract the definition of DEPDIR, am__include, and am__quote
18886 # from the Makefile without running `make'.
18887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18888 test -z "$DEPDIR" && continue
18889 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18890 test -z "am__include" && continue
18891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18892 # When using ansi2knr, U may be empty or an underscore; expand it
18893 U=`sed -n 's/^U = //p' < "$mf"`
18894 # Find all dependency output files, they are included files with
18895 # $(DEPDIR) in their names. We invoke sed twice because it is the
18896 # simplest approach to changing $(DEPDIR) to its actual value in the
18897 # expansion.
18898 for file in `sed -n "
18899 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18900 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18901 # Make sure the directory exists.
18902 test -f "$dirpart/$file" && continue
18903 fdir=`$as_dirname -- "$file" ||
18904 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18905 X"$file" : 'X\(//\)[^/]' \| \
18906 X"$file" : 'X\(//\)$' \| \
18907 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18908 $as_echo X"$file" |
18909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18910 s//\1/
18913 /^X\(\/\/\)[^/].*/{
18914 s//\1/
18917 /^X\(\/\/\)$/{
18918 s//\1/
18921 /^X\(\/\).*/{
18922 s//\1/
18925 s/.*/./; q'`
18926 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18927 # echo "creating $dirpart/$file"
18928 echo '# dummy' > "$dirpart/$file"
18929 done
18930 done
18933 "libtool":C)
18935 # See if we are running on zsh, and set the options which allow our
18936 # commands through without removal of \ escapes.
18937 if test -n "${ZSH_VERSION+set}" ; then
18938 setopt NO_GLOB_SUBST
18941 cfgfile="${ofile}T"
18942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18943 $RM "$cfgfile"
18945 cat <<_LT_EOF >> "$cfgfile"
18946 #! $SHELL
18948 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18949 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18953 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18954 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18955 # Inc.
18956 # Written by Gordon Matzigkeit, 1996
18958 # This file is part of GNU Libtool.
18960 # GNU Libtool is free software; you can redistribute it and/or
18961 # modify it under the terms of the GNU General Public License as
18962 # published by the Free Software Foundation; either version 2 of
18963 # the License, or (at your option) any later version.
18965 # As a special exception to the GNU General Public License,
18966 # if you distribute this file as part of a program or library that
18967 # is built using GNU Libtool, you may include this file under the
18968 # same distribution terms that you use for the rest of that program.
18970 # GNU Libtool is distributed in the hope that it will be useful,
18971 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18973 # GNU General Public License for more details.
18975 # You should have received a copy of the GNU General Public License
18976 # along with GNU Libtool; see the file COPYING. If not, a copy
18977 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18978 # obtained by writing to the Free Software Foundation, Inc.,
18979 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18982 # The names of the tagged configurations supported by this script.
18983 available_tags="CXX "
18985 # ### BEGIN LIBTOOL CONFIG
18987 # Which release of libtool.m4 was used?
18988 macro_version=$macro_version
18989 macro_revision=$macro_revision
18991 # Assembler program.
18992 AS=$lt_AS
18994 # DLL creation program.
18995 DLLTOOL=$lt_DLLTOOL
18997 # Object dumper program.
18998 OBJDUMP=$lt_OBJDUMP
19000 # Whether or not to build shared libraries.
19001 build_libtool_libs=$enable_shared
19003 # Whether or not to build static libraries.
19004 build_old_libs=$enable_static
19006 # What type of objects to build.
19007 pic_mode=$pic_mode
19009 # Whether or not to optimize for fast installation.
19010 fast_install=$enable_fast_install
19012 # Shell to use when invoking shell scripts.
19013 SHELL=$lt_SHELL
19015 # An echo program that protects backslashes.
19016 ECHO=$lt_ECHO
19018 # The host system.
19019 host_alias=$host_alias
19020 host=$host
19021 host_os=$host_os
19023 # The build system.
19024 build_alias=$build_alias
19025 build=$build
19026 build_os=$build_os
19028 # A sed program that does not truncate output.
19029 SED=$lt_SED
19031 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19032 Xsed="\$SED -e 1s/^X//"
19034 # A grep program that handles long lines.
19035 GREP=$lt_GREP
19037 # An ERE matcher.
19038 EGREP=$lt_EGREP
19040 # A literal string matcher.
19041 FGREP=$lt_FGREP
19043 # A BSD- or MS-compatible name lister.
19044 NM=$lt_NM
19046 # Whether we need soft or hard links.
19047 LN_S=$lt_LN_S
19049 # What is the maximum length of a command?
19050 max_cmd_len=$max_cmd_len
19052 # Object file suffix (normally "o").
19053 objext=$ac_objext
19055 # Executable file suffix (normally "").
19056 exeext=$exeext
19058 # whether the shell understands "unset".
19059 lt_unset=$lt_unset
19061 # turn spaces into newlines.
19062 SP2NL=$lt_lt_SP2NL
19064 # turn newlines into spaces.
19065 NL2SP=$lt_lt_NL2SP
19067 # Method to check whether dependent libraries are shared objects.
19068 deplibs_check_method=$lt_deplibs_check_method
19070 # Command to use when deplibs_check_method == "file_magic".
19071 file_magic_cmd=$lt_file_magic_cmd
19073 # The archiver.
19074 AR=$lt_AR
19075 AR_FLAGS=$lt_AR_FLAGS
19077 # A symbol stripping program.
19078 STRIP=$lt_STRIP
19080 # Commands used to install an old-style archive.
19081 RANLIB=$lt_RANLIB
19082 old_postinstall_cmds=$lt_old_postinstall_cmds
19083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19085 # Whether to use a lock for old archive extraction.
19086 lock_old_archive_extraction=$lock_old_archive_extraction
19088 # A C compiler.
19089 LTCC=$lt_CC
19091 # LTCC compiler flags.
19092 LTCFLAGS=$lt_CFLAGS
19094 # Take the output of nm and produce a listing of raw symbols and C names.
19095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19097 # Transform the output of nm in a proper C declaration.
19098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19100 # Transform the output of nm in a C name address pair.
19101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19103 # Transform the output of nm in a C name address pair when lib prefix is needed.
19104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19106 # The name of the directory that contains temporary libtool files.
19107 objdir=$objdir
19109 # Used to examine libraries when file_magic_cmd begins with "file".
19110 MAGIC_CMD=$MAGIC_CMD
19112 # Must we lock files when doing compilation?
19113 need_locks=$lt_need_locks
19115 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19116 DSYMUTIL=$lt_DSYMUTIL
19118 # Tool to change global to local symbols on Mac OS X.
19119 NMEDIT=$lt_NMEDIT
19121 # Tool to manipulate fat objects and archives on Mac OS X.
19122 LIPO=$lt_LIPO
19124 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19125 OTOOL=$lt_OTOOL
19127 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19128 OTOOL64=$lt_OTOOL64
19130 # Old archive suffix (normally "a").
19131 libext=$libext
19133 # Shared library suffix (normally ".so").
19134 shrext_cmds=$lt_shrext_cmds
19136 # The commands to extract the exported symbol list from a shared archive.
19137 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19139 # Variables whose values should be saved in libtool wrapper scripts and
19140 # restored at link time.
19141 variables_saved_for_relink=$lt_variables_saved_for_relink
19143 # Do we need the "lib" prefix for modules?
19144 need_lib_prefix=$need_lib_prefix
19146 # Do we need a version for libraries?
19147 need_version=$need_version
19149 # Library versioning type.
19150 version_type=$version_type
19152 # Shared library runtime path variable.
19153 runpath_var=$runpath_var
19155 # Shared library path variable.
19156 shlibpath_var=$shlibpath_var
19158 # Is shlibpath searched before the hard-coded library search path?
19159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19161 # Format of library name prefix.
19162 libname_spec=$lt_libname_spec
19164 # List of archive names. First name is the real one, the rest are links.
19165 # The last name is the one that the linker finds with -lNAME
19166 library_names_spec=$lt_library_names_spec
19168 # The coded name of the library, if different from the real name.
19169 soname_spec=$lt_soname_spec
19171 # Permission mode override for installation of shared libraries.
19172 install_override_mode=$lt_install_override_mode
19174 # Command to use after installation of a shared archive.
19175 postinstall_cmds=$lt_postinstall_cmds
19177 # Command to use after uninstallation of a shared archive.
19178 postuninstall_cmds=$lt_postuninstall_cmds
19180 # Commands used to finish a libtool library installation in a directory.
19181 finish_cmds=$lt_finish_cmds
19183 # As "finish_cmds", except a single script fragment to be evaled but
19184 # not shown.
19185 finish_eval=$lt_finish_eval
19187 # Whether we should hardcode library paths into libraries.
19188 hardcode_into_libs=$hardcode_into_libs
19190 # Compile-time system search path for libraries.
19191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19193 # Run-time system search path for libraries.
19194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19196 # Whether dlopen is supported.
19197 dlopen_support=$enable_dlopen
19199 # Whether dlopen of programs is supported.
19200 dlopen_self=$enable_dlopen_self
19202 # Whether dlopen of statically linked programs is supported.
19203 dlopen_self_static=$enable_dlopen_self_static
19205 # Commands to strip libraries.
19206 old_striplib=$lt_old_striplib
19207 striplib=$lt_striplib
19210 # The linker used to build libraries.
19211 LD=$lt_LD
19213 # How to create reloadable object files.
19214 reload_flag=$lt_reload_flag
19215 reload_cmds=$lt_reload_cmds
19217 # Commands used to build an old-style archive.
19218 old_archive_cmds=$lt_old_archive_cmds
19220 # A language specific compiler.
19221 CC=$lt_compiler
19223 # Is the compiler the GNU compiler?
19224 with_gcc=$GCC
19226 # Compiler flag to turn off builtin functions.
19227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19229 # How to pass a linker flag through the compiler.
19230 wl=$lt_lt_prog_compiler_wl
19232 # Additional compiler flags for building library objects.
19233 pic_flag=$lt_lt_prog_compiler_pic
19235 # Compiler flag to prevent dynamic linking.
19236 link_static_flag=$lt_lt_prog_compiler_static
19238 # Does compiler simultaneously support -c and -o options?
19239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19241 # Whether or not to add -lc for building shared libraries.
19242 build_libtool_need_lc=$archive_cmds_need_lc
19244 # Whether or not to disallow shared libs when runtime libs are static.
19245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19247 # Compiler flag to allow reflexive dlopens.
19248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19250 # Compiler flag to generate shared objects directly from archives.
19251 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19253 # Whether the compiler copes with passing no objects directly.
19254 compiler_needs_object=$lt_compiler_needs_object
19256 # Create an old-style archive from a shared archive.
19257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19259 # Create a temporary old-style archive to link instead of a shared archive.
19260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19262 # Commands used to build a shared archive.
19263 archive_cmds=$lt_archive_cmds
19264 archive_expsym_cmds=$lt_archive_expsym_cmds
19266 # Commands used to build a loadable module if different from building
19267 # a shared archive.
19268 module_cmds=$lt_module_cmds
19269 module_expsym_cmds=$lt_module_expsym_cmds
19271 # Whether we are building with GNU ld or not.
19272 with_gnu_ld=$lt_with_gnu_ld
19274 # Flag that allows shared libraries with undefined symbols to be built.
19275 allow_undefined_flag=$lt_allow_undefined_flag
19277 # Flag that enforces no undefined symbols.
19278 no_undefined_flag=$lt_no_undefined_flag
19280 # Flag to hardcode \$libdir into a binary during linking.
19281 # This must work even if \$libdir does not exist
19282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19284 # If ld is used when linking, flag to hardcode \$libdir into a binary
19285 # during linking. This must work even if \$libdir does not exist.
19286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19288 # Whether we need a single "-rpath" flag with a separated argument.
19289 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19292 # DIR into the resulting binary.
19293 hardcode_direct=$hardcode_direct
19295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19296 # DIR into the resulting binary and the resulting library dependency is
19297 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19298 # library is relocated.
19299 hardcode_direct_absolute=$hardcode_direct_absolute
19301 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19302 # into the resulting binary.
19303 hardcode_minus_L=$hardcode_minus_L
19305 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19306 # into the resulting binary.
19307 hardcode_shlibpath_var=$hardcode_shlibpath_var
19309 # Set to "yes" if building a shared library automatically hardcodes DIR
19310 # into the library and all subsequent libraries and executables linked
19311 # against it.
19312 hardcode_automatic=$hardcode_automatic
19314 # Set to yes if linker adds runtime paths of dependent libraries
19315 # to runtime path list.
19316 inherit_rpath=$inherit_rpath
19318 # Whether libtool must link a program against all its dependency libraries.
19319 link_all_deplibs=$link_all_deplibs
19321 # Fix the shell variable \$srcfile for the compiler.
19322 fix_srcfile_path=$lt_fix_srcfile_path
19324 # Set to "yes" if exported symbols are required.
19325 always_export_symbols=$always_export_symbols
19327 # The commands to list exported symbols.
19328 export_symbols_cmds=$lt_export_symbols_cmds
19330 # Symbols that should not be listed in the preloaded symbols.
19331 exclude_expsyms=$lt_exclude_expsyms
19333 # Symbols that must always be exported.
19334 include_expsyms=$lt_include_expsyms
19336 # Commands necessary for linking programs (against libraries) with templates.
19337 prelink_cmds=$lt_prelink_cmds
19339 # Specify filename containing input files.
19340 file_list_spec=$lt_file_list_spec
19342 # How to hardcode a shared library path into an executable.
19343 hardcode_action=$hardcode_action
19345 # The directories searched by this compiler when creating a shared library.
19346 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19348 # Dependencies to place before and after the objects being linked to
19349 # create a shared library.
19350 predep_objects=$lt_predep_objects
19351 postdep_objects=$lt_postdep_objects
19352 predeps=$lt_predeps
19353 postdeps=$lt_postdeps
19355 # The library search path used internally by the compiler when linking
19356 # a shared library.
19357 compiler_lib_search_path=$lt_compiler_lib_search_path
19359 # ### END LIBTOOL CONFIG
19361 _LT_EOF
19363 case $host_os in
19364 aix3*)
19365 cat <<\_LT_EOF >> "$cfgfile"
19366 # AIX sometimes has problems with the GCC collect2 program. For some
19367 # reason, if we set the COLLECT_NAMES environment variable, the problems
19368 # vanish in a puff of smoke.
19369 if test "X${COLLECT_NAMES+set}" != Xset; then
19370 COLLECT_NAMES=
19371 export COLLECT_NAMES
19373 _LT_EOF
19375 esac
19378 ltmain="$ac_aux_dir/ltmain.sh"
19381 # We use sed instead of cat because bash on DJGPP gets confused if
19382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19383 # text mode, it properly converts lines to CR/LF. This bash problem
19384 # is reportedly fixed, but why not run on old versions too?
19385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19386 || (rm -f "$cfgfile"; exit 1)
19388 case $xsi_shell in
19389 yes)
19390 cat << \_LT_EOF >> "$cfgfile"
19392 # func_dirname file append nondir_replacement
19393 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19394 # otherwise set result to NONDIR_REPLACEMENT.
19395 func_dirname ()
19397 case ${1} in
19398 */*) func_dirname_result="${1%/*}${2}" ;;
19399 * ) func_dirname_result="${3}" ;;
19400 esac
19403 # func_basename file
19404 func_basename ()
19406 func_basename_result="${1##*/}"
19409 # func_dirname_and_basename file append nondir_replacement
19410 # perform func_basename and func_dirname in a single function
19411 # call:
19412 # dirname: Compute the dirname of FILE. If nonempty,
19413 # add APPEND to the result, otherwise set result
19414 # to NONDIR_REPLACEMENT.
19415 # value returned in "$func_dirname_result"
19416 # basename: Compute filename of FILE.
19417 # value retuned in "$func_basename_result"
19418 # Implementation must be kept synchronized with func_dirname
19419 # and func_basename. For efficiency, we do not delegate to
19420 # those functions but instead duplicate the functionality here.
19421 func_dirname_and_basename ()
19423 case ${1} in
19424 */*) func_dirname_result="${1%/*}${2}" ;;
19425 * ) func_dirname_result="${3}" ;;
19426 esac
19427 func_basename_result="${1##*/}"
19430 # func_stripname prefix suffix name
19431 # strip PREFIX and SUFFIX off of NAME.
19432 # PREFIX and SUFFIX must not contain globbing or regex special
19433 # characters, hashes, percent signs, but SUFFIX may contain a leading
19434 # dot (in which case that matches only a dot).
19435 func_stripname ()
19437 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19438 # positional parameters, so assign one to ordinary parameter first.
19439 func_stripname_result=${3}
19440 func_stripname_result=${func_stripname_result#"${1}"}
19441 func_stripname_result=${func_stripname_result%"${2}"}
19444 # func_opt_split
19445 func_opt_split ()
19447 func_opt_split_opt=${1%%=*}
19448 func_opt_split_arg=${1#*=}
19451 # func_lo2o object
19452 func_lo2o ()
19454 case ${1} in
19455 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19456 *) func_lo2o_result=${1} ;;
19457 esac
19460 # func_xform libobj-or-source
19461 func_xform ()
19463 func_xform_result=${1%.*}.lo
19466 # func_arith arithmetic-term...
19467 func_arith ()
19469 func_arith_result=$(( $* ))
19472 # func_len string
19473 # STRING may not start with a hyphen.
19474 func_len ()
19476 func_len_result=${#1}
19479 _LT_EOF
19481 *) # Bourne compatible functions.
19482 cat << \_LT_EOF >> "$cfgfile"
19484 # func_dirname file append nondir_replacement
19485 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19486 # otherwise set result to NONDIR_REPLACEMENT.
19487 func_dirname ()
19489 # Extract subdirectory from the argument.
19490 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19491 if test "X$func_dirname_result" = "X${1}"; then
19492 func_dirname_result="${3}"
19493 else
19494 func_dirname_result="$func_dirname_result${2}"
19498 # func_basename file
19499 func_basename ()
19501 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19505 # func_stripname prefix suffix name
19506 # strip PREFIX and SUFFIX off of NAME.
19507 # PREFIX and SUFFIX must not contain globbing or regex special
19508 # characters, hashes, percent signs, but SUFFIX may contain a leading
19509 # dot (in which case that matches only a dot).
19510 # func_strip_suffix prefix name
19511 func_stripname ()
19513 case ${2} in
19514 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19515 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19516 esac
19519 # sed scripts:
19520 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19521 my_sed_long_arg='1s/^-[^=]*=//'
19523 # func_opt_split
19524 func_opt_split ()
19526 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19527 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19530 # func_lo2o object
19531 func_lo2o ()
19533 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19536 # func_xform libobj-or-source
19537 func_xform ()
19539 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19542 # func_arith arithmetic-term...
19543 func_arith ()
19545 func_arith_result=`expr "$@"`
19548 # func_len string
19549 # STRING may not start with a hyphen.
19550 func_len ()
19552 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19555 _LT_EOF
19556 esac
19558 case $lt_shell_append in
19559 yes)
19560 cat << \_LT_EOF >> "$cfgfile"
19562 # func_append var value
19563 # Append VALUE to the end of shell variable VAR.
19564 func_append ()
19566 eval "$1+=\$2"
19568 _LT_EOF
19571 cat << \_LT_EOF >> "$cfgfile"
19573 # func_append var value
19574 # Append VALUE to the end of shell variable VAR.
19575 func_append ()
19577 eval "$1=\$$1\$2"
19580 _LT_EOF
19582 esac
19585 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19586 || (rm -f "$cfgfile"; exit 1)
19588 mv -f "$cfgfile" "$ofile" ||
19589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19590 chmod +x "$ofile"
19593 cat <<_LT_EOF >> "$ofile"
19595 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19597 # The linker used to build libraries.
19598 LD=$lt_LD_CXX
19600 # How to create reloadable object files.
19601 reload_flag=$lt_reload_flag_CXX
19602 reload_cmds=$lt_reload_cmds_CXX
19604 # Commands used to build an old-style archive.
19605 old_archive_cmds=$lt_old_archive_cmds_CXX
19607 # A language specific compiler.
19608 CC=$lt_compiler_CXX
19610 # Is the compiler the GNU compiler?
19611 with_gcc=$GCC_CXX
19613 # Compiler flag to turn off builtin functions.
19614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19616 # How to pass a linker flag through the compiler.
19617 wl=$lt_lt_prog_compiler_wl_CXX
19619 # Additional compiler flags for building library objects.
19620 pic_flag=$lt_lt_prog_compiler_pic_CXX
19622 # Compiler flag to prevent dynamic linking.
19623 link_static_flag=$lt_lt_prog_compiler_static_CXX
19625 # Does compiler simultaneously support -c and -o options?
19626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19628 # Whether or not to add -lc for building shared libraries.
19629 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19631 # Whether or not to disallow shared libs when runtime libs are static.
19632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19634 # Compiler flag to allow reflexive dlopens.
19635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19637 # Compiler flag to generate shared objects directly from archives.
19638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19640 # Whether the compiler copes with passing no objects directly.
19641 compiler_needs_object=$lt_compiler_needs_object_CXX
19643 # Create an old-style archive from a shared archive.
19644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19646 # Create a temporary old-style archive to link instead of a shared archive.
19647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19649 # Commands used to build a shared archive.
19650 archive_cmds=$lt_archive_cmds_CXX
19651 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19653 # Commands used to build a loadable module if different from building
19654 # a shared archive.
19655 module_cmds=$lt_module_cmds_CXX
19656 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19658 # Whether we are building with GNU ld or not.
19659 with_gnu_ld=$lt_with_gnu_ld_CXX
19661 # Flag that allows shared libraries with undefined symbols to be built.
19662 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19664 # Flag that enforces no undefined symbols.
19665 no_undefined_flag=$lt_no_undefined_flag_CXX
19667 # Flag to hardcode \$libdir into a binary during linking.
19668 # This must work even if \$libdir does not exist
19669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19671 # If ld is used when linking, flag to hardcode \$libdir into a binary
19672 # during linking. This must work even if \$libdir does not exist.
19673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19675 # Whether we need a single "-rpath" flag with a separated argument.
19676 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19678 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19679 # DIR into the resulting binary.
19680 hardcode_direct=$hardcode_direct_CXX
19682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19683 # DIR into the resulting binary and the resulting library dependency is
19684 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19685 # library is relocated.
19686 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19688 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19689 # into the resulting binary.
19690 hardcode_minus_L=$hardcode_minus_L_CXX
19692 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19693 # into the resulting binary.
19694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19696 # Set to "yes" if building a shared library automatically hardcodes DIR
19697 # into the library and all subsequent libraries and executables linked
19698 # against it.
19699 hardcode_automatic=$hardcode_automatic_CXX
19701 # Set to yes if linker adds runtime paths of dependent libraries
19702 # to runtime path list.
19703 inherit_rpath=$inherit_rpath_CXX
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_CXX
19708 # Fix the shell variable \$srcfile for the compiler.
19709 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19711 # Set to "yes" if exported symbols are required.
19712 always_export_symbols=$always_export_symbols_CXX
19714 # The commands to list exported symbols.
19715 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19717 # Symbols that should not be listed in the preloaded symbols.
19718 exclude_expsyms=$lt_exclude_expsyms_CXX
19720 # Symbols that must always be exported.
19721 include_expsyms=$lt_include_expsyms_CXX
19723 # Commands necessary for linking programs (against libraries) with templates.
19724 prelink_cmds=$lt_prelink_cmds_CXX
19726 # Specify filename containing input files.
19727 file_list_spec=$lt_file_list_spec_CXX
19729 # How to hardcode a shared library path into an executable.
19730 hardcode_action=$hardcode_action_CXX
19732 # The directories searched by this compiler when creating a shared library.
19733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19735 # Dependencies to place before and after the objects being linked to
19736 # create a shared library.
19737 predep_objects=$lt_predep_objects_CXX
19738 postdep_objects=$lt_postdep_objects_CXX
19739 predeps=$lt_predeps_CXX
19740 postdeps=$lt_postdeps_CXX
19742 # The library search path used internally by the compiler when linking
19743 # a shared library.
19744 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19746 # ### END LIBTOOL TAG CONFIG: CXX
19747 _LT_EOF
19751 esac
19752 done # for ac_tag
19755 as_fn_exit 0
19756 _ACEOF
19757 ac_clean_files=$ac_clean_files_save
19759 test $ac_write_fail = 0 ||
19760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19763 # configure is writing to config.log, and then calls config.status.
19764 # config.status does its own redirection, appending to config.log.
19765 # Unfortunately, on DOS this fails, as config.log is still kept open
19766 # by configure, so config.status won't be able to write to it; its
19767 # output is simply discarded. So we exec the FD to /dev/null,
19768 # effectively closing config.log, so it can be properly (re)opened and
19769 # appended to by config.status. When coming back to configure, we
19770 # need to make the FD available again.
19771 if test "$no_create" != yes; then
19772 ac_cs_success=:
19773 ac_config_status_args=
19774 test "$silent" = yes &&
19775 ac_config_status_args="$ac_config_status_args --quiet"
19776 exec 5>/dev/null
19777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19778 exec 5>>config.log
19779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19780 # would make configure fail if this is the last instruction.
19781 $ac_cs_success || as_fn_exit 1
19783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}