2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $echo works!
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602 echo_test_string=`eval $cmd` &&
603 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # The Solaris, AIX, and Digital Unix default echo programs unquote
616 # backslashes. This makes it impossible to quote backslashes using
617 # echo "$something" | sed 's/\\/\\\\/g'
619 # So, first we look for a working echo in the user's PATH.
621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622 for dir in $PATH /usr/ucb; do
624 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
634 if test "X$echo" = Xecho; then
635 # We didn't find a better echo, so look for alternatives.
636 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # This shell has a builtin print -r that does the trick.
641 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642 test "X$CONFIG_SHELL" != X/bin/ksh; then
643 # If we have ksh, try running configure again with it.
644 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645 export ORIGINAL_CONFIG_SHELL
646 CONFIG_SHELL=/bin/ksh
648 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
657 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658 test "X$echo_testing_string" = 'X\t' &&
659 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
661 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663 SHELL="$CONFIG_SHELL"
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667 test "X$echo_testing_string" = 'X\t' &&
668 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669 test "X$echo_testing_string" = "X$echo_test_string"; then
670 echo="$CONFIG_SHELL $0 --fallback-echo"
672 # maybe with a smaller string...
675 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
683 if test "$prev" != 'sed 50q "$0"'; then
684 echo_test_string=`eval $prev`
685 export echo_test_string
686 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688 # Oops. We lost completely, so just stick with echo.
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
707 tagnames=${tagnames+${tagnames},}CXX
709 tagnames=${tagnames+${tagnames},}F77
711 test -n "$DJDIR" || exec 7<&0 </dev/null
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
722 ac_default_prefix=/usr/local
724 ac_config_libobj_dir=.
731 # Identity of this package.
739 ac_unique_file="src/main/radiusd.c"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
753 # ifdef HAVE_STDLIB_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
776 enable_option_checking=no
777 ac_subst_vars='LTLIBOBJS
779 RADIUSD_VERSION_COMMIT
780 RADIUSD_VERSION_STRING
782 RADIUSD_INCRM_VERSION
783 RADIUSD_MINOR_VERSION
784 RADIUSD_MAJOR_VERSION
879 program_transform_name
892 enable_option_checking
903 enable_strict_dependencies
912 with_post_proxy_authorize
916 with_experimental_modules
918 with_openssl_includes
919 with_openssl_libraries
921 with_rlm_FOO_include_dir
924 ac_precious_vars='build_alias
939 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
941 # Initialize some variables set by options.
943 ac_init_version=false
944 ac_unrecognized_opts=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
1001 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information"
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error $? "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 if test -n "$ac_init_help"; then
1547 --disable-option-checking ignore unrecognized --enable/--with options
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --disable-largefile omit support for large files
1551 --enable-shared[=PKGS] build shared libraries [default=yes]
1552 --enable-static[=PKGS] build static libraries [default=yes]
1553 --enable-fast-install[=PKGS]
1554 optimize for fast installation [default=yes]
1555 --disable-libtool-lock avoid locking (might break parallel builds)
1556 --enable-strict-dependencies Fail configure on lack of module dependancy.
1557 --enable-developer Enables features of interest to developers.
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1563 --with-system-libtool Use the libtool installed in your system (default=use our own)
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 --with-pic try to use only PIC/non-PIC objects [default=use
1567 --with-tags[=TAGS] include additional configurations [automatic]
1568 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1569 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1570 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1571 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1572 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1573 --with-threads Use threads, if available. (default=yes)
1574 --with-vmps Compile in VMPS support. (default=yes)
1575 --with-dhcp Compile in DHCP support. (default=yes)
1576 --with-post-proxy-authorize 1.x compatibility (default=no)
1577 --with-static-modules=QUOTED-MODULE-LIST
1578 --with-modules=QUOTED-MODULE-LIST
1579 --with-experimental-modules Use experimental and unstable modules. (default=no)
1580 --with-openssl Use OpenSSL. (default=yes)
1581 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1582 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1583 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1584 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1585 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1587 Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
1592 LIBS libraries to pass to the linker, e.g. -l<library>
1593 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1595 CXX C++ compiler command
1596 CXXFLAGS C++ compiler flags
1598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1669 generated by GNU Autoconf 2.69
1671 Copyright (C) 2012 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_compile
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } > conftest.i && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1800 ac_fn_c_check_header_mongrel ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if eval \${$3+:} false; then :
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1813 # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1824 ac_header_compiler=no
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1840 ac_header_preproc=no
1842 rm -f conftest.err conftest.i conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1846 # So? What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1872 eval "$3=\$ac_header_compiler"
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 test -x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_c_try_link
2001 # ac_fn_c_check_func LINENO FUNC VAR
2002 # ----------------------------------
2003 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2004 ac_fn_c_check_func ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2016 #define $2 innocuous_$2
2018 /* System header to define __stub macros and hopefully few prototypes,
2019 which can conflict with char $2 (); below.
2020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021 <limits.h> exists even on freestanding compilers. */
2024 # include <limits.h>
2026 # include <assert.h>
2031 /* Override any GCC internal prototype to avoid an error.
2032 Use char because int might match the return type of a GCC
2033 builtin and then its argument prototype would still apply. */
2038 /* The GNU C library defines this for functions which it implements
2039 to always fail with ENOSYS. Some functions are actually named
2040 something starting with __ and the normal name is an alias. */
2041 #if defined __stub_$2 || defined __stub___$2
2053 if ac_fn_c_try_link "$LINENO"; then :
2058 rm -f core conftest.err conftest.$ac_objext \
2059 conftest$ac_exeext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_func
2068 # ac_fn_cxx_try_cpp LINENO
2069 # ------------------------
2070 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_cpp ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if { { ac_try="$ac_cpp conftest.$ac_ext"
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2083 if test -s conftest.err; then
2084 grep -v '^ *+' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 mv -f conftest.er1 conftest.err
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } > conftest.i && {
2090 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2091 test ! -s conftest.err
2095 $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } # ac_fn_cxx_try_cpp
2105 # ac_fn_cxx_try_link LINENO
2106 # -------------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_cxx_try_link ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext conftest$ac_exeext
2112 if { { ac_try="$ac_link"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_link") 2>conftest.err
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_cxx_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest$ac_exeext && {
2131 test "$cross_compiling" = yes ||
2132 test -x conftest$ac_exeext
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2141 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2142 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2143 # interfere with the next link command; also delete a directory that is
2144 # left behind by Apple's compiler. We do this before executing the actions.
2145 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 as_fn_set_status $ac_retval
2149 } # ac_fn_cxx_try_link
2151 # ac_fn_f77_try_compile LINENO
2152 # ----------------------------
2153 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2154 ac_fn_f77_try_compile ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 rm -f conftest.$ac_objext
2158 if { { ac_try="$ac_compile"
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164 $as_echo "$ac_try_echo"; } >&5
2165 (eval "$ac_compile") 2>conftest.err
2167 if test -s conftest.err; then
2168 grep -v '^ *+' conftest.err >conftest.er1
2169 cat conftest.er1 >&5
2170 mv -f conftest.er1 conftest.err
2172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173 test $ac_status = 0; } && {
2174 test -z "$ac_f77_werror_flag" ||
2175 test ! -s conftest.err
2176 } && test -s conftest.$ac_objext; then :
2179 $as_echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2187 } # ac_fn_f77_try_compile
2189 # ac_fn_f77_try_link LINENO
2190 # -------------------------
2191 # Try to link conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_f77_try_link ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 rm -f conftest.$ac_objext conftest$ac_exeext
2196 if { { ac_try="$ac_link"
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_link") 2>conftest.err
2205 if test -s conftest.err; then
2206 grep -v '^ *+' conftest.err >conftest.er1
2207 cat conftest.er1 >&5
2208 mv -f conftest.er1 conftest.err
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; } && {
2212 test -z "$ac_f77_werror_flag" ||
2213 test ! -s conftest.err
2214 } && test -s conftest$ac_exeext && {
2215 test "$cross_compiling" = yes ||
2216 test -x conftest$ac_exeext
2220 $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2226 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2227 # interfere with the next link command; also delete a directory that is
2228 # left behind by Apple's compiler. We do this before executing the actions.
2229 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2233 } # ac_fn_f77_try_link
2235 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2236 # -------------------------------------------
2237 # Tests whether TYPE exists after having included INCLUDES, setting cache
2238 # variable VAR accordingly.
2239 ac_fn_c_check_type ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 } # ac_fn_c_check_type
2289 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2290 # ---------------------------------------------
2291 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2293 ac_fn_c_check_decl ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 as_decl_name=`echo $2|sed 's/ *(.*//'`
2297 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 #ifndef $as_decl_name
2311 (void) $as_decl_use;
2313 (void) $as_decl_name;
2321 if ac_fn_c_try_compile "$LINENO"; then :
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 } # ac_fn_c_check_decl
2334 cat >config.log <<_ACEOF
2335 This file contains any messages produced by compilers while
2336 running configure, to aid debugging if configure makes a mistake.
2338 It was created by $as_me, which was
2339 generated by GNU Autoconf 2.69. Invocation command line was
2351 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2352 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2353 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2354 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2355 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2358 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2360 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2361 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2362 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2363 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2364 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2365 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2366 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 $as_echo "PATH: $as_dir"
2391 # Keep a trace of the command line.
2392 # Strip out --no-create and --no-recursion so they do not pile up.
2393 # Strip out --silent because we don't want to record it for future runs.
2394 # Also quote any args containing shell meta-characters.
2395 # Make two passes to allow for proper duplicate-argument suppression.
2399 ac_must_keep_next=false
2405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2407 | -silent | --silent | --silen | --sile | --sil)
2410 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415 as_fn_append ac_configure_args1 " '$ac_arg'"
2416 if test $ac_must_keep_next = true; then
2417 ac_must_keep_next=false # Got value, back to normal.
2420 *=* | --config-cache | -C | -disable-* | --disable-* \
2421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2423 | -with-* | --with-* | -without-* | --without-* | --x)
2424 case "$ac_configure_args0 " in
2425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 -* ) ac_must_keep_next=true ;;
2431 as_fn_append ac_configure_args " '$ac_arg'"
2436 { ac_configure_args0=; unset ac_configure_args0;}
2437 { ac_configure_args1=; unset ac_configure_args1;}
2439 # When interrupted or exit'd, cleanup temporary files, and complete
2440 # config.log. We remove comments because anyway the quotes in there
2441 # would cause problems or look ugly.
2442 # WARNING: Use '\'' to represent an apostrophe within the trap.
2443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2444 trap 'exit_status=$?
2445 # Save into config.log some information that might help in debugging.
2449 $as_echo "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2453 # The following way of writing the cache mishandles newlines in values,
2455 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2456 eval ac_val=\$$ac_var
2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2471 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 $as_echo "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2489 for ac_var in $ac_subst_vars
2491 eval ac_val=\$$ac_var
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -n "$ac_subst_files"; then
2500 $as_echo "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2504 for ac_var in $ac_subst_files
2506 eval ac_val=\$$ac_var
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 $as_echo "$ac_var='\''$ac_val'\''"
2515 if test -s confdefs.h; then
2516 $as_echo "## ----------- ##
2523 test "$ac_signal" != 0 &&
2524 $as_echo "$as_me: caught signal $ac_signal"
2525 $as_echo "$as_me: exit $exit_status"
2527 rm -f core *.core core.conftest.* &&
2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531 for ac_signal in 1 2 13 15; do
2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2539 $as_echo "/* confdefs.h */" > confdefs.h
2541 # Predefined preprocessor variables.
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_URL "$PACKAGE_URL"
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2572 if test -n "$CONFIG_SITE"; then
2573 # We do not want a PATH search for config.site.
2574 case $CONFIG_SITE in #((
2575 -*) ac_site_file1=./$CONFIG_SITE;;
2576 */*) ac_site_file1=$CONFIG_SITE;;
2577 *) ac_site_file1=./$CONFIG_SITE;;
2579 elif test "x$prefix" != xNONE; then
2580 ac_site_file1=$prefix/share/config.site
2581 ac_site_file2=$prefix/etc/config.site
2583 ac_site_file1=$ac_default_prefix/share/config.site
2584 ac_site_file2=$ac_default_prefix/etc/config.site
2586 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 test "x$ac_site_file" = xNONE && continue
2589 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2591 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2592 sed 's/^/| /' "$ac_site_file" >&5
2594 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "failed to load site script $ac_site_file
2597 See \`config.log' for more details" "$LINENO" 5; }
2601 if test -r "$cache_file"; then
2602 # Some versions of bash will fail to source /dev/null (special files
2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2606 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2609 *) . "./$cache_file";;
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2614 $as_echo "$as_me: creating cache $cache_file" >&6;}
2618 # Check that the precious variables saved in the cache have kept the same
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x $ac_old_val`
2640 ac_new_val_w=`echo x $ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644 ac_cache_corrupted=:
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2690 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2691 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2692 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2694 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2695 -v minor="$RADIUSD_MINOR_VERSION" \
2696 -v incrm="$RADIUSD_INCRM_VERSION" \
2697 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2699 RADIUSD_VERSION_STRING=`cat VERSION`
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_CC+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2779 $as_echo "$ac_ct_CC" >&6; }
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2785 if test "x$ac_ct_CC" = x; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2800 if test -z "$CC"; then
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}cc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807 $as_echo_n "(cached) " >&6
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_CC="${ac_tool_prefix}cc"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CC"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 $as_echo "$CC" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2841 if test -z "$CC"; then
2842 # Extract the first word of "cc", so it can be a program name with args.
2843 set dummy cc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2861 ac_prog_rejected=yes
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 if test $ac_prog_rejected = yes; then
2873 # We found a bogon in the path, so make sure we never use it.
2874 set dummy $ac_cv_prog_CC
2876 if test $# != 0; then
2877 # We chose a different compiler from the bogus one.
2878 # However, it has the same basename, so the bogon will be chosen
2879 # first if we set CC to just the basename; use the full file name.
2881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2897 if test -z "$CC"; then
2898 if test -n "$ac_tool_prefix"; then
2899 for ac_prog in cl.exe
2901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2938 test -n "$CC" && break
2941 if test -z "$CC"; then
2943 for ac_prog in cl.exe
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$ac_ct_CC"; then
2953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_ac_ct_CC="$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 $as_echo "$ac_ct_CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$ac_ct_CC" && break
2985 if test "x$ac_ct_CC" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
3001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details" "$LINENO" 5; }
3006 # Provide some information about the compiler.
3007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3010 for ac_option in --version -v -V -qversion; do
3011 { { ac_try="$ac_compiler $ac_option >&5"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3020 if test -s conftest.err; then
3022 ... rest of stderr output deleted ...
3023 10q' conftest.err >conftest.er1
3024 cat conftest.er1 >&5
3026 rm -f conftest.er1 conftest.err
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3042 ac_clean_files_save=$ac_clean_files
3043 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3044 # Try to create an executable without -o first, disregard a.out.
3045 # It will help us diagnose broken compilers, and finding out an intuition
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3048 $as_echo_n "checking whether the C compiler works... " >&6; }
3049 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3051 # The possible output files:
3052 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055 for ac_file in $ac_files
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3064 if { { ac_try="$ac_link_default"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link_default") 2>&5
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3076 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3077 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3078 # so that the user can short-circuit this test for compilers unknown to
3080 for ac_file in $ac_files ''
3082 test -f "$ac_file" || continue
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087 # We found the default executable, but exeext='' is most
3091 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3093 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 # We set ac_cv_exeext here because the later test for it is not
3096 # safe: cross compilers may not add the suffix if given an `-o'
3097 # argument, so we may need to know it at that point already.
3098 # Even if this section looks crufty: it has the advantage of
3105 test "$ac_cv_exeext" = no && ac_cv_exeext=
3110 if test -z "$ac_file"; then :
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 $as_echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error 77 "C compiler cannot create executables
3119 See \`config.log' for more details" "$LINENO" 5; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3125 $as_echo_n "checking for C compiler default output file name... " >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3127 $as_echo "$ac_file" >&6; }
3128 ac_exeext=$ac_cv_exeext
3130 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3133 $as_echo_n "checking for suffix of executables... " >&6; }
3134 if { { ac_try="$ac_link"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_link") 2>&5
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 for ac_file in conftest.exe conftest conftest.*; do
3150 test -f "$ac_file" || continue
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3162 See \`config.log' for more details" "$LINENO" 5; }
3164 rm -f conftest conftest$ac_cv_exeext
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3166 $as_echo "$ac_cv_exeext" >&6; }
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3177 FILE *f = fopen ("conftest.out", "w");
3178 return ferror (f) || fclose (f) != 0;
3184 ac_clean_files="$ac_clean_files conftest.out"
3185 # Check that the compiler produces executables we can run. If not, either
3186 # the compiler is broken, or we cross compile.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3188 $as_echo_n "checking whether we are cross compiling... " >&6; }
3189 if test "$cross_compiling" != yes; then
3190 { { ac_try="$ac_link"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link") 2>&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3201 if { ac_try='./conftest$ac_cv_exeext'
3202 { { case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_try") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; }; then
3214 if test "$cross_compiling" = maybe; then
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "cannot run C compiled programs.
3220 If you meant to cross compile, use \`--host'.
3221 See \`config.log' for more details" "$LINENO" 5; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3228 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3229 ac_clean_files=$ac_clean_files_save
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3231 $as_echo_n "checking for suffix of object files... " >&6; }
3232 if ${ac_cv_objext+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3246 rm -f conftest.o conftest.obj
3247 if { { ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compile") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 for ac_file in conftest.o conftest.obj conftest.*; do
3259 test -f "$ac_file" || continue;
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3262 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "cannot compute suffix of object files: cannot compile
3273 See \`config.log' for more details" "$LINENO" 5; }
3275 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3278 $as_echo "$ac_cv_objext" >&6; }
3279 OBJEXT=$ac_cv_objext
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3282 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3283 if ${ac_cv_c_compiler_gnu+:} false; then :
3284 $as_echo_n "(cached) " >&6
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3300 if ac_fn_c_try_compile "$LINENO"; then :
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3310 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3311 if test $ac_compiler_gnu = yes; then
3316 ac_test_CFLAGS=${CFLAGS+set}
3317 ac_save_CFLAGS=$CFLAGS
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3319 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3320 if ${ac_cv_prog_cc_g+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 ac_save_c_werror_flag=$ac_c_werror_flag
3324 ac_c_werror_flag=yes
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3338 if ac_fn_c_try_compile "$LINENO"; then :
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3353 if ac_fn_c_try_compile "$LINENO"; then :
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3369 if ac_fn_c_try_compile "$LINENO"; then :
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_c_werror_flag=$ac_save_c_werror_flag
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3380 $as_echo "$ac_cv_prog_cc_g" >&6; }
3381 if test "$ac_test_CFLAGS" = set; then
3382 CFLAGS=$ac_save_CFLAGS
3383 elif test $ac_cv_prog_cc_g = yes; then
3384 if test "$GCC" = yes; then
3390 if test "$GCC" = yes; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3397 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3398 if ${ac_cv_prog_cc_c89+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 ac_cv_prog_cc_c89=no
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3409 struct buf { int x; };
3410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3411 static char *e (p, i)
3417 static char *f (char * (*g) (char **, int), char **p, ...)
3422 s = g (p, va_arg (v,int));
3427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3428 function prototypes and stuff, but not '\xHH' hex character constants.
3429 These don't provoke an error unfortunately, instead are silently treated
3430 as 'x'. The following induces an error, until -std is added to get
3431 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3432 array size at least. It's necessary to write '\x00'==0 to get something
3433 that's true only with -std. */
3434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3437 inside strings and character constants. */
3439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3441 int test (int i, double x);
3442 struct s1 {int (*f) (int a);};
3443 struct s2 {int (*f) (double a);};
3444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3450 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3456 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3458 CC="$ac_save_CC $ac_arg"
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_c89=$ac_arg
3462 rm -f core conftest.err conftest.$ac_objext
3463 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 rm -f conftest.$ac_ext
3470 case "x$ac_cv_prog_cc_c89" in
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3473 $as_echo "none needed" >&6; } ;;
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3476 $as_echo "unsupported" >&6; } ;;
3478 CC="$CC $ac_cv_prog_cc_c89"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3482 if test "x$ac_cv_prog_cc_c89" != xno; then :
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497 if test -z "$CXX"; then
3498 if test -n "$CCC"; then
3501 if test -n "$ac_tool_prefix"; then
3502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if ${ac_cv_prog_CXX+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 if test -n "$CXX"; then
3512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 if test -n "$CXX"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3534 $as_echo "$CXX" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3541 test -n "$CXX" && break
3544 if test -z "$CXX"; then
3546 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3548 # Extract the first word of "$ac_prog", so it can be a program name with args.
3549 set dummy $ac_prog; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_CXX"; then
3556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_ac_ct_CXX="$ac_prog"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3576 if test -n "$ac_ct_CXX"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3578 $as_echo "$ac_ct_CXX" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3585 test -n "$ac_ct_CXX" && break
3588 if test "x$ac_ct_CXX" = x; then
3591 case $cross_compiling:$ac_tool_warned in
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3607 for ac_option in --version -v -V -qversion; do
3608 { { ac_try="$ac_compiler $ac_option >&5"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617 if test -s conftest.err; then
3619 ... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3630 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3647 if ac_fn_cxx_try_compile "$LINENO"; then :
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3657 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3663 ac_test_CXXFLAGS=${CXXFLAGS+set}
3664 ac_save_CXXFLAGS=$CXXFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3666 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3667 if ${ac_cv_prog_cxx_g+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3671 ac_cxx_werror_flag=yes
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_cxx_try_compile "$LINENO"; then :
3686 ac_cv_prog_cxx_g=yes
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_cxx_try_compile "$LINENO"; then :
3703 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3716 if ac_fn_cxx_try_compile "$LINENO"; then :
3717 ac_cv_prog_cxx_g=yes
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3727 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3728 if test "$ac_test_CXXFLAGS" = set; then
3729 CXXFLAGS=$ac_save_CXXFLAGS
3730 elif test $ac_cv_prog_cxx_g = yes; then
3731 if test "$GXX" = yes; then
3737 if test "$GXX" = yes; then
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3757 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3758 # On Suns, sometimes $CPP names a directory.
3759 if test -n "$CPP" && test -d "$CPP"; then
3762 if test -z "$CPP"; then
3763 if ${ac_cv_prog_CPP+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 # Double quotes because CPP needs to be expanded
3767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3770 for ac_c_preproc_warn_flag in '' yes
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3781 # include <limits.h>
3783 # include <assert.h>
3787 if ac_fn_c_try_cpp "$LINENO"; then :
3790 # Broken: fails on valid input.
3793 rm -f conftest.err conftest.i conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799 #include <ac_nonexistent.h>
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3802 # Broken: success on invalid input.
3805 # Passes both tests.
3809 rm -f conftest.err conftest.i conftest.$ac_ext
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.i conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then :
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3827 $as_echo "$CPP" >&6; }
3829 for ac_c_preproc_warn_flag in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3840 # include <limits.h>
3842 # include <assert.h>
3846 if ac_fn_c_try_cpp "$LINENO"; then :
3849 # Broken: fails on valid input.
3852 rm -f conftest.err conftest.i conftest.$ac_ext
3854 # OK, works on sane cases. Now check whether nonexistent headers
3855 # can be detected and how.
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3860 if ac_fn_c_try_cpp "$LINENO"; then :
3861 # Broken: success on invalid input.
3864 # Passes both tests.
3868 rm -f conftest.err conftest.i conftest.$ac_ext
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.i conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then :
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details" "$LINENO" 5; }
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3890 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3891 if ${ac_cv_path_GREP+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 if test -z "$GREP"; then
3895 ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in grep ggrep; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905 as_fn_executable_p "$ac_path_GREP" || continue
3906 # Check for GNU ac_path_GREP and select it if it is found.
3907 # Check for GNU $ac_path_GREP
3908 case `"$ac_path_GREP" --version 2>&1` in
3910 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3913 $as_echo_n 0123456789 >"conftest.in"
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 $as_echo 'GREP' >> "conftest.nl"
3920 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 as_fn_arith $ac_count + 1 && ac_count=$as_val
3923 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_GREP="$ac_path_GREP"
3926 ac_path_GREP_max=$ac_count
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_GREP_found && break 3
3939 if test -z "$ac_cv_path_GREP"; then
3940 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3943 ac_cv_path_GREP=$GREP
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3948 $as_echo "$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3953 $as_echo_n "checking for egrep... " >&6; }
3954 if ${ac_cv_path_EGREP+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3960 if test -z "$EGREP"; then
3961 ac_path_EGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in egrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971 as_fn_executable_p "$ac_path_EGREP" || continue
3972 # Check for GNU ac_path_EGREP and select it if it is found.
3973 # Check for GNU $ac_path_EGREP
3974 case `"$ac_path_EGREP" --version 2>&1` in
3976 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3979 $as_echo_n 0123456789 >"conftest.in"
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 $as_echo 'EGREP' >> "conftest.nl"
3986 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 as_fn_arith $ac_count + 1 && ac_count=$as_val
3989 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_EGREP="$ac_path_EGREP"
3992 ac_path_EGREP_max=$ac_count
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 $ac_path_EGREP_found && break 3
4005 if test -z "$ac_cv_path_EGREP"; then
4006 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4009 ac_cv_path_EGREP=$EGREP
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4015 $as_echo "$ac_cv_path_EGREP" >&6; }
4016 EGREP="$ac_cv_path_EGREP"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4020 $as_echo_n "checking for ANSI C header files... " >&6; }
4021 if ${ac_cv_header_stdc+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_cv_header_stdc=yes
4042 ac_cv_header_stdc=no
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 if test $ac_cv_header_stdc = yes; then
4047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054 $EGREP "memchr" >/dev/null 2>&1; then :
4057 ac_cv_header_stdc=no
4063 if test $ac_cv_header_stdc = yes; then
4064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071 $EGREP "free" >/dev/null 2>&1; then :
4074 ac_cv_header_stdc=no
4080 if test $ac_cv_header_stdc = yes; then
4081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4082 if test "$cross_compiling" = yes; then :
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 #if ((' ' & 0x0FF) == 0x020)
4090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4093 # define ISLOWER(c) \
4094 (('a' <= (c) && (c) <= 'i') \
4095 || ('j' <= (c) && (c) <= 'r') \
4096 || ('s' <= (c) && (c) <= 'z'))
4097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4105 for (i = 0; i < 256; i++)
4106 if (XOR (islower (i), ISLOWER (i))
4107 || toupper (i) != TOUPPER (i))
4112 if ac_fn_c_try_run "$LINENO"; then :
4115 ac_cv_header_stdc=no
4117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4118 conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4124 $as_echo "$ac_cv_header_stdc" >&6; }
4125 if test $ac_cv_header_stdc = yes; then
4127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4133 inttypes.h stdint.h unistd.h
4135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4139 cat >>confdefs.h <<_ACEOF
4140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4149 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4150 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4157 if test "$MINIX" = yes; then
4159 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4162 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4165 $as_echo "#define _MINIX 1" >>confdefs.h
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4173 $as_echo_n "(cached) " >&6
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4178 # define __EXTENSIONS__ 1
4179 $ac_includes_default
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_safe_to_define___extensions__=yes
4191 ac_cv_safe_to_define___extensions__=no
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4196 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4197 test $ac_cv_safe_to_define___extensions__ = yes &&
4198 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4200 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4202 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4204 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4206 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4211 if test $ac_cv_c_compiler_gnu = yes; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4213 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4214 if ${ac_cv_prog_gcc_traditional+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 ac_pattern="Autoconf.*'x'"
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4225 ac_cv_prog_gcc_traditional=yes
4227 ac_cv_prog_gcc_traditional=no
4232 if test $ac_cv_prog_gcc_traditional = no; then
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4240 ac_cv_prog_gcc_traditional=yes
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4247 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4248 if test $ac_cv_prog_gcc_traditional = yes; then
4249 CC="$CC -traditional"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4254 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4255 if ${ac_cv_prog_suncc+:} false; then :
4256 $as_echo_n "(cached) " >&6
4258 cat > conftest.c <<EOF
4263 if { ac_try='${CC-cc} -E conftest.c'
4264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4269 ac_cv_prog_suncc=yes
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4275 $as_echo "$ac_cv_prog_suncc" >&6; }
4276 if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_RANLIB+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$RANLIB"; then
4285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 RANLIB=$ac_cv_prog_RANLIB
4305 if test -n "$RANLIB"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4307 $as_echo "$RANLIB" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test -z "$ac_cv_prog_RANLIB"; then
4316 ac_ct_RANLIB=$RANLIB
4317 # Extract the first word of "ranlib", so it can be a program name with args.
4318 set dummy ranlib; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$ac_ct_RANLIB"; then
4325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_ac_ct_RANLIB="ranlib"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4345 if test -n "$ac_ct_RANLIB"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4347 $as_echo "$ac_ct_RANLIB" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4353 if test "x$ac_ct_RANLIB" = x; then
4356 case $cross_compiling:$ac_tool_warned in
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4360 ac_tool_warned=yes ;;
4362 RANLIB=$ac_ct_RANLIB
4365 RANLIB="$ac_cv_prog_RANLIB"
4369 if test "x$GCC" = "xyes"; then
4370 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4373 # Check whether --enable-largefile was given.
4374 if test "${enable_largefile+set}" = set; then :
4375 enableval=$enable_largefile;
4378 if test "$enable_largefile" != no; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4382 if ${ac_cv_sys_largefile_CC+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 ac_cv_sys_largefile_CC=no
4386 if test "$GCC" != yes; then
4389 # IRIX 6.2 and later do not support large files by default,
4390 # so use the C compiler's -n32 option if that helps.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <sys/types.h>
4394 /* Check that off_t can represent 2**63 - 1 correctly.
4395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396 since some C++ compilers masquerading as C compilers
4397 incorrectly reject 9223372036854775807. */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400 && LARGE_OFF_T % 2147483647 == 1)
4410 if ac_fn_c_try_compile "$LINENO"; then :
4413 rm -f core conftest.err conftest.$ac_objext
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_sys_largefile_CC=' -n32'; break
4418 rm -f core conftest.err conftest.$ac_objext
4422 rm -f conftest.$ac_ext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4427 if test "$ac_cv_sys_largefile_CC" != no; then
4428 CC=$CC$ac_cv_sys_largefile_CC
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4433 if ${ac_cv_sys_file_offset_bits+:} false; then :
4434 $as_echo_n "(cached) " >&6
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 /* Check that off_t can represent 2**63 - 1 correctly.
4441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442 since some C++ compilers masquerading as C compilers
4443 incorrectly reject 9223372036854775807. */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446 && LARGE_OFF_T % 2147483647 == 1)
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_sys_file_offset_bits=no; break
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _FILE_OFFSET_BITS 64
4463 #include <sys/types.h>
4464 /* Check that off_t can represent 2**63 - 1 correctly.
4465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466 since some C++ compilers masquerading as C compilers
4467 incorrectly reject 9223372036854775807. */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470 && LARGE_OFF_T % 2147483647 == 1)
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_sys_file_offset_bits=64; break
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_cv_sys_file_offset_bits=unknown
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4490 case $ac_cv_sys_file_offset_bits in #(
4493 cat >>confdefs.h <<_ACEOF
4494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4499 if test $ac_cv_sys_file_offset_bits = unknown; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4502 if ${ac_cv_sys_large_files+:} false; then :
4503 $as_echo_n "(cached) " >&6
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_sys_large_files=no; break
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533 /* Check that off_t can represent 2**63 - 1 correctly.
4534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535 since some C++ compilers masquerading as C compilers
4536 incorrectly reject 9223372036854775807. */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539 && LARGE_OFF_T % 2147483647 == 1)
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_sys_large_files=1; break
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_sys_large_files=unknown
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4558 $as_echo "$ac_cv_sys_large_files" >&6; }
4559 case $ac_cv_sys_large_files in #(
4562 cat >>confdefs.h <<_ACEOF
4563 #define _LARGE_FILES $ac_cv_sys_large_files
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4575 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4576 if ${ac_cv_c_bigendian+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 ac_cv_c_bigendian=unknown
4580 # See if we're dealing with a universal compiler.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #ifndef __APPLE_CC__
4584 not a universal capable compiler
4589 if ac_fn_c_try_compile "$LINENO"; then :
4591 # Check for potential -arch flags. It is not universal unless
4592 # there are at least two -arch flags with different values.
4595 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4596 if test -n "$ac_prev"; then
4598 i?86 | x86_64 | ppc | ppc64)
4599 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4602 ac_cv_c_bigendian=universal
4608 elif test "x$ac_word" = "x-arch"; then
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 if test $ac_cv_c_bigendian = unknown; then
4615 # See if sys/param.h defines the BYTE_ORDER macro.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <sys/types.h>
4619 #include <sys/param.h>
4624 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4625 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 # It does; now see whether it defined to BIG_ENDIAN or not.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/param.h>
4644 #if BYTE_ORDER != BIG_ENDIAN
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_c_bigendian=yes
4655 ac_cv_c_bigendian=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 if test $ac_cv_c_bigendian = unknown; then
4662 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4670 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 # It does; now see whether it defined to _BIG_ENDIAN or not.
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_cv_c_bigendian=yes
4698 ac_cv_c_bigendian=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 if test $ac_cv_c_bigendian = unknown; then
4705 # Compile a test program.
4706 if test "$cross_compiling" = yes; then :
4707 # Try to guess by grepping values from an object file.
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 short int ascii_mm[] =
4711 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4712 short int ascii_ii[] =
4713 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4714 int use_ascii (int i) {
4715 return ascii_mm[i] + ascii_ii[i];
4717 short int ebcdic_ii[] =
4718 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4719 short int ebcdic_mm[] =
4720 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4721 int use_ebcdic (int i) {
4722 return ebcdic_mm[i] + ebcdic_ii[i];
4729 return use_ascii (foo) == use_ebcdic (foo);
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4736 ac_cv_c_bigendian=yes
4738 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4739 if test "$ac_cv_c_bigendian" = unknown; then
4740 ac_cv_c_bigendian=no
4742 # finding both strings is unlikely to happen, but who knows?
4743 ac_cv_c_bigendian=unknown
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 $ac_includes_default
4756 /* Are we little or big endian? From Harbison&Steele. */
4760 char c[sizeof (long int)];
4763 return u.c[sizeof (long int) - 1] == 1;
4769 if ac_fn_c_try_run "$LINENO"; then :
4770 ac_cv_c_bigendian=no
4772 ac_cv_c_bigendian=yes
4774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4775 conftest.$ac_objext conftest.beam conftest.$ac_ext
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4781 $as_echo "$ac_cv_c_bigendian" >&6; }
4782 case $ac_cv_c_bigendian in #(
4784 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4790 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4794 as_fn_error $? "unknown endianness
4795 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4799 # Extract the first word of "gmake", so it can be a program name with args.
4800 set dummy gmake; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_GMAKE+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$GMAKE"; then
4807 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_GMAKE="yes"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4827 GMAKE=$ac_cv_prog_GMAKE
4828 if test -n "$GMAKE"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4830 $as_echo "$GMAKE" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4837 if test $GMAKE = no; then
4838 # Extract the first word of "make", so it can be a program name with args.
4839 set dummy make; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_path_MAKE+:} false; then :
4843 $as_echo_n "(cached) " >&6
4847 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4869 MAKE=$ac_cv_path_MAKE
4870 if test -n "$MAKE"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4872 $as_echo "$MAKE" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4880 # Extract the first word of "gmake", so it can be a program name with args.
4881 set dummy gmake; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_path_MAKE+:} false; then :
4885 $as_echo_n "(cached) " >&6
4889 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4911 MAKE=$ac_cv_path_MAKE
4912 if test -n "$MAKE"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4914 $as_echo "$MAKE" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4922 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4923 if test -z "$makever"; then
4924 as_fn_error $? "GNU Make is not installed. Please download and install it
4925 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4928 # Extract the first word of "git", so it can be a program name with args.
4929 set dummy git; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_GIT+:} false; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$GIT"; then
4936 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_GIT="yes"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4957 if test -n "$GIT"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4959 $as_echo "$GIT" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4968 # Check whether --with-system-libltdl was given.
4969 if test "${with_system_libltdl+set}" = set; then :
4970 withval=$with_system_libltdl;
4972 INCLTDL=-DWITH_SYSTEM_LTDL
4977 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
4979 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
4980 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 ac_check_lib_save_LIBS=$LIBS
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4988 /* Override any GCC internal prototype to avoid an error.
4989 Use char because int might match the return type of a GCC
4990 builtin and then its argument prototype would still apply. */
4998 return lt_dlinit ();
5003 if ac_fn_c_try_link "$LINENO"; then :
5004 ac_cv_lib_ltdl_lt_dlinit=yes
5006 ac_cv_lib_ltdl_lt_dlinit=no
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5013 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5014 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5015 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5017 if test x"$enable_ltdl_install" = xno; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5019 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5021 enable_ltdl_install=yes
5026 if test x"$enable_ltdl_install" = x"yes"; then
5027 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5028 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5029 LTDLINCL='-I${top_srcdir}/''libltdl'
5031 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5035 # For backwards non-gettext consistent compatibility...
5039 if test x"$enable_ltdl_install" = x"yes"; then
5040 LTDL_SUBDIRS=libltdl
5047 # Check whether --enable-shared was given.
5048 if test "${enable_shared+set}" = set; then :
5049 enableval=$enable_shared; p=${PACKAGE-default}
5051 yes) enable_shared=yes ;;
5052 no) enable_shared=no ;;
5055 # Look at the argument we got. We use all the common list separators.
5056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5057 for pkg in $enableval; do
5059 if test "X$pkg" = "X$p"; then
5071 # Check whether --enable-static was given.
5072 if test "${enable_static+set}" = set; then :
5073 enableval=$enable_static; p=${PACKAGE-default}
5075 yes) enable_static=yes ;;
5076 no) enable_static=no ;;
5079 # Look at the argument we got. We use all the common list separators.
5080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5081 for pkg in $enableval; do
5083 if test "X$pkg" = "X$p"; then
5095 # Check whether --enable-fast-install was given.
5096 if test "${enable_fast_install+set}" = set; then :
5097 enableval=$enable_fast_install; p=${PACKAGE-default}
5099 yes) enable_fast_install=yes ;;
5100 no) enable_fast_install=no ;;
5102 enable_fast_install=no
5103 # Look at the argument we got. We use all the common list separators.
5104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5105 for pkg in $enableval; do
5107 if test "X$pkg" = "X$p"; then
5108 enable_fast_install=yes
5115 enable_fast_install=yes
5120 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5121 if test -f "$ac_dir/install-sh"; then
5123 ac_install_sh="$ac_aux_dir/install-sh -c"
5125 elif test -f "$ac_dir/install.sh"; then
5127 ac_install_sh="$ac_aux_dir/install.sh -c"
5129 elif test -f "$ac_dir/shtool"; then
5131 ac_install_sh="$ac_aux_dir/shtool install -c"
5135 if test -z "$ac_aux_dir"; then
5136 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5139 # These three variables are undocumented and unsupported,
5140 # and are intended to be withdrawn in a future Autoconf release.
5141 # They can cause serious problems if a builder's source tree is in a directory
5142 # whose full name contains unusual characters.
5143 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5144 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5145 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5148 # Make sure we can run config.sub.
5149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5150 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5153 $as_echo_n "checking build system type... " >&6; }
5154 if ${ac_cv_build+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 ac_build_alias=$build_alias
5158 test "x$ac_build_alias" = x &&
5159 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5160 test "x$ac_build_alias" = x &&
5161 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5163 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5167 $as_echo "$ac_cv_build" >&6; }
5168 case $ac_cv_build in
5170 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5173 ac_save_IFS=$IFS; IFS='-'
5179 # Remember, the first character of IFS is used to create $*,
5180 # except with old shells:
5183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5187 $as_echo_n "checking host system type... " >&6; }
5188 if ${ac_cv_host+:} false; then :
5189 $as_echo_n "(cached) " >&6
5191 if test "x$host_alias" = x; then
5192 ac_cv_host=$ac_cv_build
5194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5195 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5200 $as_echo "$ac_cv_host" >&6; }
5203 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5206 ac_save_IFS=$IFS; IFS='-'
5212 # Remember, the first character of IFS is used to create $*,
5213 # except with old shells:
5216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5220 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5221 if ${lt_cv_path_SED+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 # Loop through the user's path and test for sed and gsed.
5225 # Then use that list of sed's as ones to test for truncation.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for lt_ac_prog in sed gsed; do
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5234 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5242 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5243 # along with /bin/sed that truncates output.
5244 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5245 test ! -f $lt_ac_sed && continue
5246 cat /dev/null > conftest.in
5248 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5249 # Check for GNU sed and select it if it is found.
5250 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5251 lt_cv_path_SED=$lt_ac_sed
5255 cat conftest.in conftest.in >conftest.tmp
5256 mv conftest.tmp conftest.in
5257 cp conftest.in conftest.nl
5259 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5260 cmp -s conftest.out conftest.nl || break
5261 # 10000 chars as input seems more than enough
5262 test $lt_ac_count -gt 10 && break
5263 lt_ac_count=`expr $lt_ac_count + 1`
5264 if test $lt_ac_count -gt $lt_ac_max; then
5265 lt_ac_max=$lt_ac_count
5266 lt_cv_path_SED=$lt_ac_sed
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5276 $as_echo "$SED" >&6; }
5279 # Check whether --with-gnu-ld was given.
5280 if test "${with_gnu_ld+set}" = set; then :
5281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5287 if test "$GCC" = yes; then
5288 # Check if gcc -print-prog-name=ld gives a path.
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5290 $as_echo_n "checking for ld used by $CC... " >&6; }
5293 # gcc leaves a trailing carriage return which upsets mingw
5294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5299 # Accept absolute paths.
5301 re_direlt='/[^/][^/]*/\.\./'
5302 # Canonicalize the pathname of ld
5303 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5304 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5305 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5307 test -z "$LD" && LD="$ac_prog"
5310 # If it fails, then pretend we aren't using GCC.
5314 # If it is relative, then search for the first ld in PATH.
5318 elif test "$with_gnu_ld" = yes; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5320 $as_echo_n "checking for GNU ld... " >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5323 $as_echo_n "checking for non-GNU ld... " >&6; }
5325 if ${lt_cv_path_LD+:} false; then :
5326 $as_echo_n "(cached) " >&6
5328 if test -z "$LD"; then
5329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330 for ac_dir in $PATH; do
5332 test -z "$ac_dir" && ac_dir=.
5333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5334 lt_cv_path_LD="$ac_dir/$ac_prog"
5335 # Check to see if the program is GNU ld. I'd rather use --version,
5336 # but apparently some variants of GNU ld only accept -v.
5337 # Break only if it was the GNU/non-GNU ld that we prefer.
5338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5339 *GNU* | *'with BFD'*)
5340 test "$with_gnu_ld" != no && break
5343 test "$with_gnu_ld" != yes && break
5350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5355 if test -n "$LD"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5357 $as_echo "$LD" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5362 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5364 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5365 if ${lt_cv_prog_gnu_ld+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5369 case `$LD -v 2>&1 </dev/null` in
5370 *GNU* | *'with BFD'*)
5371 lt_cv_prog_gnu_ld=yes
5374 lt_cv_prog_gnu_ld=no
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5379 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5380 with_gnu_ld=$lt_cv_prog_gnu_ld
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5385 if ${lt_cv_ld_reload_flag+:} false; then :
5386 $as_echo_n "(cached) " >&6
5388 lt_cv_ld_reload_flag='-r'
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5392 reload_flag=$lt_cv_ld_reload_flag
5393 case $reload_flag in
5395 *) reload_flag=" $reload_flag" ;;
5397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 if test "$GCC" = yes; then
5401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5409 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5410 if ${lt_cv_path_NM+:} false; then :
5411 $as_echo_n "(cached) " >&6
5413 if test -n "$NM"; then
5414 # Let the user override the test.
5417 lt_nm_to_check="${ac_tool_prefix}nm"
5418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419 lt_nm_to_check="$lt_nm_to_check nm"
5421 for lt_tmp_nm in $lt_nm_to_check; do
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/$lt_tmp_nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440 lt_cv_path_NM="$tmp_nm -p"
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5454 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5458 $as_echo "$lt_cv_path_NM" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5462 $as_echo_n "checking whether ln -s works... " >&6; }
5464 if test "$LN_S" = "ln -s"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5469 $as_echo "no, using $LN_S" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5473 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5474 if ${lt_cv_deplibs_check_method+:} false; then :
5475 $as_echo_n "(cached) " >&6
5477 lt_cv_file_magic_cmd='$MAGIC_CMD'
5478 lt_cv_file_magic_test_file=
5479 lt_cv_deplibs_check_method='unknown'
5480 # Need to set the preceding variable on all platforms that support
5481 # interlibrary dependencies.
5482 # 'none' -- dependencies not supported.
5483 # `unknown' -- same as none, but documents that we really don't know.
5484 # 'pass_all' -- all dependencies passed with no checks.
5485 # 'test_compile' -- check by making test program.
5486 # 'file_magic [[regex]]' -- check by looking for files in library path
5487 # which responds to the $file_magic_cmd with a given extended regex.
5488 # If you have `file' or equivalent on your system and you're not sure
5489 # whether `pass_all' will *always* work, you probably want this one.
5493 lt_cv_deplibs_check_method=pass_all
5497 lt_cv_deplibs_check_method=pass_all
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5502 lt_cv_file_magic_cmd='/usr/bin/file -L'
5503 lt_cv_file_magic_test_file=/shlib/libc.so
5507 # func_win32_libid is a shell function defined in ltmain.sh
5508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509 lt_cv_file_magic_cmd='func_win32_libid'
5513 # Base MSYS/MinGW do not provide the 'file' command needed by
5514 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5515 # unless we find 'file', for example because we are cross-compiling.
5516 if ( file / ) >/dev/null 2>&1; then
5517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518 lt_cv_file_magic_cmd='func_win32_libid'
5520 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5521 lt_cv_file_magic_cmd='$OBJDUMP -f'
5525 darwin* | rhapsody*)
5526 lt_cv_deplibs_check_method=pass_all
5529 freebsd* | dragonfly*)
5530 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5533 # Not sure whether the presence of OpenBSD here was a mistake.
5534 # Let's accept both of them until this is cleared up.
5535 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5536 lt_cv_file_magic_cmd=/usr/bin/file
5537 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5541 lt_cv_deplibs_check_method=pass_all
5546 lt_cv_deplibs_check_method=pass_all
5549 hpux10.20* | hpux11*)
5550 lt_cv_file_magic_cmd=/usr/bin/file
5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5558 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5562 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5568 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5572 irix5* | irix6* | nonstopux*)
5574 *-32|*"-32 ") libmagic=32-bit;;
5575 *-n32|*"-n32 ") libmagic=N32;;
5576 *-64|*"-64 ") libmagic=64-bit;;
5577 *) libmagic=never-match;;
5579 lt_cv_deplibs_check_method=pass_all
5582 # This must be Linux ELF.
5583 linux* | k*bsd*-gnu)
5584 lt_cv_deplibs_check_method=pass_all
5587 netbsd* | netbsdelf*-gnu)
5588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5597 lt_cv_file_magic_cmd=/usr/bin/file
5598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5602 lt_cv_deplibs_check_method=unknown
5606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613 osf3* | osf4* | osf5*)
5614 lt_cv_deplibs_check_method=pass_all
5618 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_deplibs_check_method=pass_all
5626 case $host_vendor in
5628 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]'
5629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5632 lt_cv_deplibs_check_method=pass_all
5635 lt_cv_file_magic_cmd='/bin/file'
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5639 lt_cv_file_magic_cmd='/bin/file'
5640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5641 lt_cv_file_magic_test_file=/lib/libc.so
5644 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_deplibs_check_method=pass_all
5652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5653 lt_cv_deplibs_check_method=pass_all
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 file_magic_cmd=$lt_cv_file_magic_cmd
5661 deplibs_check_method=$lt_cv_deplibs_check_method
5662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5667 # If no C compiler was specified, use CC.
5670 # If no C compiler flags were specified, use CFLAGS.
5671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5673 # Allow CC to be a program name with arguments.
5676 # Check whether --enable-libtool-lock was given.
5677 if test "${enable_libtool_lock+set}" = set; then :
5678 enableval=$enable_libtool_lock;
5681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5683 # Some flags need to be propagated to the compiler or linker for good
5687 # Find out which ABI we are using.
5688 echo 'int i;' > conftest.$ac_ext
5689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5690 (eval $ac_compile) 2>&5
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; then
5694 case `/usr/bin/file conftest.$ac_objext` in
5706 # Find out which ABI we are using.
5707 echo '#line 5707 "configure"' > conftest.$ac_ext
5708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709 (eval $ac_compile) 2>&5
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then
5713 if test "$lt_cv_prog_gnu_ld" = yes; then
5714 case `/usr/bin/file conftest.$ac_objext` in
5716 LD="${LD-ld} -melf32bsmip"
5719 LD="${LD-ld} -melf32bmipn32"
5722 LD="${LD-ld} -melf64bmip"
5726 case `/usr/bin/file conftest.$ac_objext` in
5742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5743 s390*-*linux*|sparc*-*linux*)
5744 # Find out which ABI we are using.
5745 echo 'int i;' > conftest.$ac_ext
5746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5747 (eval $ac_compile) 2>&5
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }; then
5751 case `/usr/bin/file conftest.o` in
5754 x86_64-*kfreebsd*-gnu)
5755 LD="${LD-ld} -m elf_i386_fbsd"
5758 LD="${LD-ld} -m elf_i386"
5760 ppc64-*linux*|powerpc64-*linux*)
5761 LD="${LD-ld} -m elf32ppclinux"
5764 LD="${LD-ld} -m elf_s390"
5767 LD="${LD-ld} -m elf32_sparc"
5773 x86_64-*kfreebsd*-gnu)
5774 LD="${LD-ld} -m elf_x86_64_fbsd"
5777 LD="${LD-ld} -m elf_x86_64"
5779 ppc*-*linux*|powerpc*-*linux*)
5780 LD="${LD-ld} -m elf64ppc"
5783 LD="${LD-ld} -m elf64_s390"
5786 LD="${LD-ld} -m elf64_sparc"
5796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5797 SAVE_CFLAGS="$CFLAGS"
5798 CFLAGS="$CFLAGS -belf"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5800 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5801 if ${lt_cv_cc_needs_belf+:} false; then :
5802 $as_echo_n "(cached) " >&6
5805 ac_cpp='$CPP $CPPFLAGS'
5806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5821 if ac_fn_c_try_link "$LINENO"; then :
5822 lt_cv_cc_needs_belf=yes
5824 lt_cv_cc_needs_belf=no
5826 rm -f core conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5829 ac_cpp='$CPP $CPPFLAGS'
5830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5836 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5839 CFLAGS="$SAVE_CFLAGS"
5843 # Find out which ABI we are using.
5844 echo 'int i;' > conftest.$ac_ext
5845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5846 (eval $ac_compile) 2>&5
5848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849 test $ac_status = 0; }; then
5850 case `/usr/bin/file conftest.o` in
5852 case $lt_cv_prog_gnu_ld in
5853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5855 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5869 need_locks="$enable_libtool_lock"
5872 for ac_header in dlfcn.h
5874 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5875 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_DLFCN_H 1
5886 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5887 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5888 (test "X$CXX" != "Xg++"))) ; then
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5895 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5896 if test -z "$CXXCPP"; then
5897 if ${ac_cv_prog_CXXCPP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 # Double quotes because CXXCPP needs to be expanded
5901 for CXXCPP in "$CXX -E" "/lib/cpp"
5904 for ac_cxx_preproc_warn_flag in '' yes
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 # include <limits.h>
5917 # include <assert.h>
5921 if ac_fn_cxx_try_cpp "$LINENO"; then :
5924 # Broken: fails on valid input.
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5929 # OK, works on sane cases. Now check whether nonexistent headers
5930 # can be detected and how.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #include <ac_nonexistent.h>
5935 if ac_fn_cxx_try_cpp "$LINENO"; then :
5936 # Broken: success on invalid input.
5939 # Passes both tests.
5943 rm -f conftest.err conftest.i conftest.$ac_ext
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.i conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then :
5953 ac_cv_prog_CXXCPP=$CXXCPP
5956 CXXCPP=$ac_cv_prog_CXXCPP
5958 ac_cv_prog_CXXCPP=$CXXCPP
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5961 $as_echo "$CXXCPP" >&6; }
5963 for ac_cxx_preproc_warn_flag in '' yes
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5974 # include <limits.h>
5976 # include <assert.h>
5980 if ac_fn_cxx_try_cpp "$LINENO"; then :
5983 # Broken: fails on valid input.
5986 rm -f conftest.err conftest.i conftest.$ac_ext
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5994 if ac_fn_cxx_try_cpp "$LINENO"; then :
5995 # Broken: success on invalid input.
5998 # Passes both tests.
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then :
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6013 See \`config.log' for more details" "$LINENO" 5; }
6017 ac_cpp='$CXXCPP $CPPFLAGS'
6018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6026 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6027 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6029 if test -n "$ac_tool_prefix"; then
6030 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_F77+:} false; then :
6037 $as_echo_n "(cached) " >&6
6039 if test -n "$F77"; then
6040 ac_cv_prog_F77="$F77" # Let the user override the test.
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 if test -n "$F77"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6062 $as_echo "$F77" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6069 test -n "$F77" && break
6072 if test -z "$F77"; then
6074 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6076 # Extract the first word of "$ac_prog", so it can be a program name with args.
6077 set dummy $ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 if test -n "$ac_ct_F77"; then
6084 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093 ac_cv_prog_ac_ct_F77="$ac_prog"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6104 if test -n "$ac_ct_F77"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6106 $as_echo "$ac_ct_F77" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6113 test -n "$ac_ct_F77" && break
6116 if test "x$ac_ct_F77" = x; then
6119 case $cross_compiling:$ac_tool_warned in
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6123 ac_tool_warned=yes ;;
6130 # Provide some information about the compiler.
6131 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6134 for ac_option in --version -v -V -qversion; do
6135 { { ac_try="$ac_compiler $ac_option >&5"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6141 $as_echo "$ac_try_echo"; } >&5
6142 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6144 if test -s conftest.err; then
6146 ... rest of stderr output deleted ...
6147 10q' conftest.err >conftest.er1
6148 cat conftest.er1 >&5
6150 rm -f conftest.er1 conftest.err
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }
6156 # If we don't use `.F' as extension, the preprocessor is not run on the
6157 # input file. (Note that this only needs to work for GNU compilers.)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6161 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6162 if ${ac_cv_f77_compiler_gnu+:} false; then :
6163 $as_echo_n "(cached) " >&6
6165 cat > conftest.$ac_ext <<_ACEOF
6173 if ac_fn_f77_try_compile "$LINENO"; then :
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6183 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6185 ac_test_FFLAGS=${FFLAGS+set}
6186 ac_save_FFLAGS=$FFLAGS
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6189 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6190 if ${ac_cv_prog_f77_g+:} false; then :
6191 $as_echo_n "(cached) " >&6
6194 cat > conftest.$ac_ext <<_ACEOF
6199 if ac_fn_f77_try_compile "$LINENO"; then :
6200 ac_cv_prog_f77_g=yes
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6208 $as_echo "$ac_cv_prog_f77_g" >&6; }
6209 if test "$ac_test_FFLAGS" = set; then
6210 FFLAGS=$ac_save_FFLAGS
6211 elif test $ac_cv_prog_f77_g = yes; then
6212 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6218 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6225 if test $ac_compiler_gnu = yes; then
6231 ac_cpp='$CPP $CPPFLAGS'
6232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6239 # find the maximum length of command line arguments
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6241 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6242 if ${lt_cv_sys_max_cmd_len+:} false; then :
6243 $as_echo_n "(cached) " >&6
6250 # On DJGPP, this test can blow up pretty badly due to problems in libc
6251 # (any single argument exceeding 2000 bytes causes a buffer overrun
6252 # during glob expansion). Even if it were fixed, the result of this
6253 # check would be larger than it should be.
6254 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6258 # Under GNU Hurd, this test is not required because there is
6259 # no limit to the length of command line arguments.
6260 # Libtool will interpret -1 as no limit whatsoever
6261 lt_cv_sys_max_cmd_len=-1;
6265 # On Win9x/ME, this test blows up -- it succeeds, but takes
6266 # about 5 minutes as the teststring grows exponentially.
6267 # Worse, since 9x/ME are not pre-emptively multitasking,
6268 # you end up with a "frozen" computer, even though with patience
6269 # the test eventually succeeds (with a max line length of 256k).
6270 # Instead, let's just punt: use the minimum linelength reported by
6271 # all of the supported platforms: 8192 (on NT/2K/XP).
6272 lt_cv_sys_max_cmd_len=8192;
6276 # On AmigaOS with pdksh, this test takes hours, literally.
6277 # So we just punt and use a minimum line length of 8192.
6278 lt_cv_sys_max_cmd_len=8192;
6281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6282 # This has been around since 386BSD, at least. Likely further.
6283 if test -x /sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6285 elif test -x /usr/sbin/sysctl; then
6286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6290 # And add a safety zone
6291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6297 lt_cv_sys_max_cmd_len=196608
6301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6303 # nice to cause kernel panics so lets avoid the loop below.
6304 # First set a reasonable default.
6305 lt_cv_sys_max_cmd_len=16384
6307 if test -x /sbin/sysconfig; then
6308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314 lt_cv_sys_max_cmd_len=102400
6316 sysv5* | sco5v6* | sysv4.2uw2*)
6317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6318 if test -n "$kargmax"; then
6319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6321 lt_cv_sys_max_cmd_len=32768
6325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6326 if test -n "$lt_cv_sys_max_cmd_len"; then
6327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6331 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6332 = "XX$teststring") >/dev/null 2>&1 &&
6333 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6334 lt_cv_sys_max_cmd_len=$new_result &&
6335 test $i != 17 # 1/2 MB should be enough
6338 teststring=$teststring$teststring
6341 # Add a significant safety factor because C++ compilers can tack on massive
6342 # amounts of additional arguments before passing them to the linker.
6343 # It appears as though 1/2 is a usable value.
6344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6351 if test -n $lt_cv_sys_max_cmd_len ; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6353 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6356 $as_echo "none" >&6; }
6363 # Check for command to grab the raw symbol name followed by C symbol from nm.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6365 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6366 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6367 $as_echo_n "(cached) " >&6
6370 # These are sane defaults that work on at least a few old systems.
6371 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6373 # Character class describing NM global symbol codes.
6374 symcode='[BCDEGRST]'
6376 # Regexp to match symbols that can be accessed directly from C.
6377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6379 # Transform an extracted symbol line into a proper C declaration
6380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6382 # Transform an extracted symbol line into symbol name and symbol address
6383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6385 # Define system-specific variables.
6390 cygwin* | mingw* | pw32*)
6391 symcode='[ABCDGISTW]'
6393 hpux*) # Its linker distinguishes data from code symbols
6394 if test "$host_cpu" = ia64; then
6395 symcode='[ABCDEGRST]'
6397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6400 linux* | k*bsd*-gnu)
6401 if test "$host_cpu" = ia64; then
6402 symcode='[ABCDGIRSTW]'
6403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6408 symcode='[BCDEGRST]'
6411 symcode='[BCDEGQRST]'
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6430 # Handle CRLF in mingw tool chain
6434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6438 # If we're using GNU nm, then use its standard symbol codes.
6439 case `$NM -V 2>&1` in
6440 *GNU* | *'with BFD'*)
6441 symcode='[ABCDGIRSTW]' ;;
6444 # Try without a prefix undercore, then with it.
6445 for ac_symprfx in "" "_"; do
6447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6448 symxfrm="\\1 $ac_symprfx\\2 \\2"
6450 # Write the raw and C identifiers.
6451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6453 # Check to see that the pipe works correctly.
6457 cat > conftest.$ac_ext <<EOF
6462 void nm_test_func(){}
6466 int main(){nm_test_var='a';nm_test_func();return(0);}
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470 (eval $ac_compile) 2>&5
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }; then
6474 # Now try to grab the symbols.
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6477 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; } && test -s "$nlist"; then
6481 # Try sorting and uniquifying the output.
6482 if sort "$nlist" | uniq > "$nlist"T; then
6483 mv -f "$nlist"T "$nlist"
6488 # Make sure that we snagged all the symbols we need.
6489 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6490 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6491 cat <<EOF > conftest.$ac_ext
6497 # Now generate the symbol file.
6498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6500 cat <<EOF >> conftest.$ac_ext
6501 #if defined (__STDC__) && __STDC__
6502 # define lt_ptr_t void *
6504 # define lt_ptr_t char *
6508 /* The mapping between symbol names and symbols. */
6513 lt_preloaded_symbols[] =
6516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6517 cat <<\EOF >> conftest.$ac_ext
6525 # Now try linking the two files.
6526 mv conftest.$ac_objext conftstm.$ac_objext
6527 lt_save_LIBS="$LIBS"
6528 lt_save_CFLAGS="$CFLAGS"
6529 LIBS="conftstm.$ac_objext"
6530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6532 (eval $ac_link) 2>&5
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6538 LIBS="$lt_save_LIBS"
6539 CFLAGS="$lt_save_CFLAGS"
6541 echo "cannot find nm_test_func in $nlist" >&5
6544 echo "cannot find nm_test_var in $nlist" >&5
6547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6550 echo "$progname: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 rm -rf conftest* conftst*
6555 # Do not use the global_symbol_pipe unless it works.
6556 if test "$pipe_works" = yes; then
6559 lt_cv_sys_global_symbol_pipe=
6565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6566 lt_cv_sys_global_symbol_to_cdecl=
6568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6570 $as_echo "failed" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6573 $as_echo "ok" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6577 $as_echo_n "checking for objdir... " >&6; }
6578 if ${lt_cv_objdir+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 rm -f .libs 2>/dev/null
6582 mkdir .libs 2>/dev/null
6583 if test -d .libs; then
6586 # MS-DOS does not allow filenames that begin with a dot.
6589 rmdir .libs 2>/dev/null
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6592 $as_echo "$lt_cv_objdir" >&6; }
6593 objdir=$lt_cv_objdir
6601 # AIX sometimes has problems with the GCC collect2 program. For some
6602 # reason, if we set the COLLECT_NAMES environment variable, the problems
6603 # vanish in a puff of smoke.
6604 if test "X${COLLECT_NAMES+set}" != Xset; then
6606 export COLLECT_NAMES
6611 # Sed substitution that helps us do robust quoting. It backslashifies
6612 # metacharacters that are still active within double-quoted strings.
6613 Xsed='sed -e 1s/^X//'
6614 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6616 # Same as above, but do not quote variable references.
6617 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6619 # Sed substitution to delay expansion of an escaped shell variable in a
6620 # double_quote_subst'ed string.
6621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6623 # Sed substitution to avoid accidental globbing in evaled expressions
6624 no_glob_subst='s/\*/\\\*/g'
6630 default_ofile=libtool
6631 can_build_shared=yes
6633 # All known linkers require a `.a' archive for static linking (except MSVC,
6634 # which needs '.lib').
6636 ltmain="$ac_aux_dir/ltmain.sh"
6637 ofile="$default_ofile"
6638 with_gnu_ld="$lt_cv_prog_gnu_ld"
6640 if test -n "$ac_tool_prefix"; then
6641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}ar; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_AR+:} false; then :
6646 $as_echo_n "(cached) " >&6
6648 if test -n "$AR"; then
6649 ac_cv_prog_AR="$AR" # Let the user override the test.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_AR="${ac_tool_prefix}ar"
6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 if test -n "$AR"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671 $as_echo "$AR" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6679 if test -z "$ac_cv_prog_AR"; then
6681 # Extract the first word of "ar", so it can be a program name with args.
6682 set dummy ar; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$ac_ct_AR"; then
6689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_ac_ct_AR="ar"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6709 if test -n "$ac_ct_AR"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6711 $as_echo "$ac_ct_AR" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6717 if test "x$ac_ct_AR" = x; then
6720 case $cross_compiling:$ac_tool_warned in
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724 ac_tool_warned=yes ;;
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_RANLIB+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$RANLIB"; then
6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 RANLIB=$ac_cv_prog_RANLIB
6761 if test -n "$RANLIB"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763 $as_echo "$RANLIB" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_RANLIB"; then
6772 ac_ct_RANLIB=$RANLIB
6773 # Extract the first word of "ranlib", so it can be a program name with args.
6774 set dummy ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_ac_ct_RANLIB="ranlib"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801 if test -n "$ac_ct_RANLIB"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803 $as_echo "$ac_ct_RANLIB" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_RANLIB" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6818 RANLIB=$ac_ct_RANLIB
6821 RANLIB="$ac_cv_prog_RANLIB"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_STRIP+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6855 $as_echo "$STRIP" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6863 if test -z "$ac_cv_prog_STRIP"; then
6865 # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$ac_ct_STRIP"; then
6873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_STRIP="strip"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6895 $as_echo "$ac_ct_STRIP" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6901 if test "x$ac_ct_STRIP" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6913 STRIP="$ac_cv_prog_STRIP"
6918 old_CFLAGS="$CFLAGS"
6920 # Set sane defaults for various variables
6921 test -z "$AR" && AR=ar
6922 test -z "$AR_FLAGS" && AR_FLAGS=cru
6923 test -z "$AS" && AS=as
6924 test -z "$CC" && CC=cc
6925 test -z "$LTCC" && LTCC=$CC
6926 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6927 test -z "$DLLTOOL" && DLLTOOL=dlltool
6928 test -z "$LD" && LD=ld
6929 test -z "$LN_S" && LN_S="ln -s"
6930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6931 test -z "$NM" && NM=nm
6932 test -z "$SED" && SED=sed
6933 test -z "$OBJDUMP" && OBJDUMP=objdump
6934 test -z "$RANLIB" && RANLIB=:
6935 test -z "$STRIP" && STRIP=:
6936 test -z "$ac_objext" && ac_objext=o
6938 # Determine commands to create old-style static archives.
6939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940 old_postinstall_cmds='chmod 644 $oldlib'
6941 old_postuninstall_cmds=
6943 if test -n "$RANLIB"; then
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6955 for cc_temp in $compiler""; do
6957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6963 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6966 # Only perform the check for file, if the check method requires it
6967 case $deplibs_check_method in
6969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6973 $as_echo_n "(cached) " >&6
6977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6980 lt_save_MAGIC_CMD="$MAGIC_CMD"
6981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6983 for ac_dir in $ac_dummy; do
6985 test -z "$ac_dir" && ac_dir=.
6986 if test -f $ac_dir/${ac_tool_prefix}file; then
6987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6988 if test -n "$file_magic_test_file"; then
6989 case $deplibs_check_method in
6991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6994 $EGREP "$file_magic_regex" > /dev/null; then
6999 *** Warning: the command libtool uses to detect shared libraries,
7000 *** $file_magic_cmd, produces output that libtool cannot recognize.
7001 *** The result is that libtool may fail to recognize shared libraries
7002 *** as such. This will affect the creation of libtool libraries that
7003 *** depend on shared libraries, but programs linked with such libtool
7004 *** libraries will work regardless of this problem. Nevertheless, you
7005 *** may want to report the problem to your system manager and/or to
7006 *** bug-libtool@gnu.org
7016 MAGIC_CMD="$lt_save_MAGIC_CMD"
7021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7022 if test -n "$MAGIC_CMD"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7024 $as_echo "$MAGIC_CMD" >&6; }
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7030 if test -z "$lt_cv_path_MAGIC_CMD"; then
7031 if test -n "$ac_tool_prefix"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7033 $as_echo_n "checking for file... " >&6; }
7034 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7035 $as_echo_n "(cached) " >&6
7039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7042 lt_save_MAGIC_CMD="$MAGIC_CMD"
7043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7045 for ac_dir in $ac_dummy; do
7047 test -z "$ac_dir" && ac_dir=.
7048 if test -f $ac_dir/file; then
7049 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7050 if test -n "$file_magic_test_file"; then
7051 case $deplibs_check_method in
7053 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7056 $EGREP "$file_magic_regex" > /dev/null; then
7061 *** Warning: the command libtool uses to detect shared libraries,
7062 *** $file_magic_cmd, produces output that libtool cannot recognize.
7063 *** The result is that libtool may fail to recognize shared libraries
7064 *** as such. This will affect the creation of libtool libraries that
7065 *** depend on shared libraries, but programs linked with such libtool
7066 *** libraries will work regardless of this problem. Nevertheless, you
7067 *** may want to report the problem to your system manager and/or to
7068 *** bug-libtool@gnu.org
7078 MAGIC_CMD="$lt_save_MAGIC_CMD"
7083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084 if test -n "$MAGIC_CMD"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7086 $as_echo "$MAGIC_CMD" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7103 rhapsody* | darwin*)
7104 if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7106 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 if test -n "$DSYMUTIL"; then
7113 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7133 if test -n "$DSYMUTIL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7135 $as_echo "$DSYMUTIL" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7143 if test -z "$ac_cv_prog_DSYMUTIL"; then
7144 ac_ct_DSYMUTIL=$DSYMUTIL
7145 # Extract the first word of "dsymutil", so it can be a program name with args.
7146 set dummy dsymutil; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 if test -n "$ac_ct_DSYMUTIL"; then
7153 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7175 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7181 if test "x$ac_ct_DSYMUTIL" = x; then
7184 case $cross_compiling:$ac_tool_warned in
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188 ac_tool_warned=yes ;;
7190 DSYMUTIL=$ac_ct_DSYMUTIL
7193 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_NMEDIT+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$NMEDIT"; then
7205 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 NMEDIT=$ac_cv_prog_NMEDIT
7225 if test -n "$NMEDIT"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7227 $as_echo "$NMEDIT" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7235 if test -z "$ac_cv_prog_NMEDIT"; then
7236 ac_ct_NMEDIT=$NMEDIT
7237 # Extract the first word of "nmedit", so it can be a program name with args.
7238 set dummy nmedit; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7242 $as_echo_n "(cached) " >&6
7244 if test -n "$ac_ct_NMEDIT"; then
7245 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7265 if test -n "$ac_ct_NMEDIT"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7267 $as_echo "$ac_ct_NMEDIT" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7273 if test "x$ac_ct_NMEDIT" = x; then
7276 case $cross_compiling:$ac_tool_warned in
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7282 NMEDIT=$ac_ct_NMEDIT
7285 NMEDIT="$ac_cv_prog_NMEDIT"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7290 $as_echo_n "checking for -single_module linker flag... " >&6; }
7291 if ${lt_cv_apple_cc_single_mod+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 lt_cv_apple_cc_single_mod=no
7295 if test -z "${LT_MULTI_MODULE}"; then
7296 # By default we will add the -single_module flag. You can override
7297 # by either setting the environment variable LT_MULTI_MODULE
7298 # non-empty at configure time, or by adding -multi_module to the
7300 echo "int foo(void){return 1;}" > conftest.c
7301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7302 -dynamiclib ${wl}-single_module conftest.c
7303 if test -f libconftest.dylib; then
7304 lt_cv_apple_cc_single_mod=yes
7305 rm -rf libconftest.dylib*
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7311 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7313 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7314 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7315 $as_echo_n "(cached) " >&6
7317 lt_cv_ld_exported_symbols_list=no
7318 save_LDFLAGS=$LDFLAGS
7319 echo "_main" > conftest.sym
7320 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7332 if ac_fn_c_try_link "$LINENO"; then :
7333 lt_cv_ld_exported_symbols_list=yes
7335 lt_cv_ld_exported_symbols_list=no
7337 rm -f core conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 LDFLAGS="$save_LDFLAGS"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7343 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7345 rhapsody* | darwin1.[0123])
7346 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7350 # if running on 10.5 or later, the deployment target defaults
7351 # to the OS version, if on x86, and 10.4, the deployment
7352 # target defaults to 10.4. Don't you love it?
7353 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7354 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7355 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7359 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7363 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7364 _lt_dar_single_mod='$single_module'
7366 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7367 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7369 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7371 if test "$DSYMUTIL" != ":"; then
7372 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7383 # Check whether --enable-libtool-lock was given.
7384 if test "${enable_libtool_lock+set}" = set; then :
7385 enableval=$enable_libtool_lock;
7388 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7391 # Check whether --with-pic was given.
7392 if test "${with_pic+set}" = set; then :
7393 withval=$with_pic; pic_mode="$withval"
7398 test -z "$pic_mode" && pic_mode=default
7400 # Use C for the default configuration in the libtool script
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 # Source file extension for C test sources.
7413 # Object file extension for compiled C test sources.
7417 # Code to be used in simple compile tests
7418 lt_simple_compile_test_code="int some_variable = 0;"
7420 # Code to be used in simple link tests
7421 lt_simple_link_test_code='int main(){return(0);}'
7424 # If no C compiler was specified, use CC.
7427 # If no C compiler flags were specified, use CFLAGS.
7428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7430 # Allow CC to be a program name with arguments.
7434 # save warnings/boilerplate of simple test code
7435 ac_outfile=conftest.$ac_objext
7436 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7438 _lt_compiler_boilerplate=`cat conftest.err`
7441 ac_outfile=conftest.$ac_objext
7442 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7444 _lt_linker_boilerplate=`cat conftest.err`
7449 lt_prog_compiler_no_builtin_flag=
7451 if test "$GCC" = yes; then
7452 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7456 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7457 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7458 $as_echo_n "(cached) " >&6
7460 lt_cv_prog_compiler_rtti_exceptions=no
7461 ac_outfile=conftest.$ac_objext
7462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7463 lt_compiler_flag="-fno-rtti -fno-exceptions"
7464 # Insert the option either (1) after the last *FLAGS variable, or
7465 # (2) before a word containing "conftest.", or (3) at the end.
7466 # Note that $ac_compile itself does not contain backslashes and begins
7467 # with a dollar sign (not a hyphen), so the echo should work correctly.
7468 # The option is referenced via a variable to avoid confusing sed.
7469 lt_compile=`echo "$ac_compile" | $SED \
7470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472 -e 's:$: $lt_compiler_flag:'`
7473 (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474 (eval "$lt_compile" 2>conftest.err)
7476 cat conftest.err >&5
7477 echo "$as_me:7477: \$? = $ac_status" >&5
7478 if (exit $ac_status) && test -s "$ac_outfile"; then
7479 # The compiler can only warn and ignore the option if not recognized
7480 # So say no if there are warnings other than the usual output.
7481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7484 lt_cv_prog_compiler_rtti_exceptions=yes
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7491 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7493 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7494 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7501 lt_prog_compiler_wl=
7502 lt_prog_compiler_pic=
7503 lt_prog_compiler_static=
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7506 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7508 if test "$GCC" = yes; then
7509 lt_prog_compiler_wl='-Wl,'
7510 lt_prog_compiler_static='-static'
7514 # All AIX code is PIC.
7515 if test "$host_cpu" = ia64; then
7516 # AIX 5 now supports IA64 processor
7517 lt_prog_compiler_static='-Bstatic'
7522 # FIXME: we need at least 68020 code to build shared libraries, but
7523 # adding the `-m68020' flag to GCC prevents building anything better,
7525 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7528 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7529 # PIC is the default for these OSes.
7532 mingw* | cygwin* | pw32* | os2*)
7533 # This hack is so that the source file can tell whether it is being
7534 # built for inclusion in a dll (and should export symbols for example).
7535 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7536 # (--disable-auto-import) libraries
7537 lt_prog_compiler_pic='-DDLL_EXPORT'
7540 darwin* | rhapsody*)
7541 # PIC is the default on this platform
7542 # Common symbols not allowed in MH_DYLIB files
7543 lt_prog_compiler_pic='-fno-common'
7547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7548 # Instead, we relocate shared libraries at runtime.
7552 # Just because we use GCC doesn't mean we suddenly get shared libraries
7553 # on systems that don't support them.
7554 lt_prog_compiler_can_build_shared=no
7559 if test -d /usr/nec; then
7560 lt_prog_compiler_pic=-Kconform_pic
7565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7572 lt_prog_compiler_pic='-fPIC'
7578 lt_prog_compiler_pic='-fPIC'
7582 # PORTME Check for flag to pass linker flags through the system compiler.
7585 lt_prog_compiler_wl='-Wl,'
7586 if test "$host_cpu" = ia64; then
7587 # AIX 5 now supports IA64 processor
7588 lt_prog_compiler_static='-Bstatic'
7590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7594 # PIC is the default on this platform
7595 # Common symbols not allowed in MH_DYLIB files
7596 case $cc_basename in
7598 lt_prog_compiler_pic='-qnocommon'
7599 lt_prog_compiler_wl='-Wl,'
7604 mingw* | cygwin* | pw32* | os2*)
7605 # This hack is so that the source file can tell whether it is being
7606 # built for inclusion in a dll (and should export symbols for example).
7607 lt_prog_compiler_pic='-DDLL_EXPORT'
7610 hpux9* | hpux10* | hpux11*)
7611 lt_prog_compiler_wl='-Wl,'
7612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7619 lt_prog_compiler_pic='+Z'
7622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7623 lt_prog_compiler_static='${wl}-a ${wl}archive'
7626 irix5* | irix6* | nonstopux*)
7627 lt_prog_compiler_wl='-Wl,'
7628 # PIC (with -KPIC) is the default.
7629 lt_prog_compiler_static='-non_shared'
7633 lt_prog_compiler_pic='-KPIC'
7634 lt_prog_compiler_static='-Bstatic'
7637 linux* | k*bsd*-gnu)
7638 case $cc_basename in
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_pic='-KPIC'
7642 lt_prog_compiler_static='-static'
7644 pgcc* | pgf77* | pgf90* | pgf95*)
7645 # Portland Group compilers (*not* the Pentium gcc compiler,
7646 # which looks to be a dead project)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-fpic'
7649 lt_prog_compiler_static='-Bstatic'
7652 lt_prog_compiler_wl='-Wl,'
7653 # All Alpha code is PIC.
7654 lt_prog_compiler_static='-non_shared'
7657 case `$CC -V 2>&1 | sed 5q` in
7660 lt_prog_compiler_pic='-KPIC'
7661 lt_prog_compiler_static='-Bstatic'
7662 lt_prog_compiler_wl='-Wl,'
7665 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7666 lt_prog_compiler_pic='-KPIC'
7667 lt_prog_compiler_static='-Bstatic'
7668 lt_prog_compiler_wl=''
7675 osf3* | osf4* | osf5*)
7676 lt_prog_compiler_wl='-Wl,'
7677 # All OSF/1 code is PIC.
7678 lt_prog_compiler_static='-non_shared'
7682 lt_prog_compiler_static='-non_shared'
7686 lt_prog_compiler_pic='-KPIC'
7687 lt_prog_compiler_static='-Bstatic'
7688 case $cc_basename in
7690 lt_prog_compiler_wl='-Qoption ld ';;
7692 lt_prog_compiler_wl='-Wl,';;
7697 lt_prog_compiler_wl='-Qoption ld '
7698 lt_prog_compiler_pic='-PIC'
7699 lt_prog_compiler_static='-Bstatic'
7702 sysv4 | sysv4.2uw2* | sysv4.3*)
7703 lt_prog_compiler_wl='-Wl,'
7704 lt_prog_compiler_pic='-KPIC'
7705 lt_prog_compiler_static='-Bstatic'
7709 if test -d /usr/nec ;then
7710 lt_prog_compiler_pic='-Kconform_pic'
7711 lt_prog_compiler_static='-Bstatic'
7715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7716 lt_prog_compiler_wl='-Wl,'
7717 lt_prog_compiler_pic='-KPIC'
7718 lt_prog_compiler_static='-Bstatic'
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_can_build_shared=no
7727 lt_prog_compiler_pic='-pic'
7728 lt_prog_compiler_static='-Bstatic'
7732 lt_prog_compiler_can_build_shared=no
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7738 $as_echo "$lt_prog_compiler_pic" >&6; }
7741 # Check to make sure the PIC flag actually works.
7743 if test -n "$lt_prog_compiler_pic"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7747 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7748 $as_echo_n "(cached) " >&6
7750 lt_cv_prog_compiler_pic_works=no
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 # The option is referenced via a variable to avoid confusing sed.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>conftest.err)
7766 cat conftest.err >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s "$ac_outfile"; then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings other than the usual output.
7771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_pic_works=yes
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7781 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7783 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7784 case $lt_prog_compiler_pic in
7786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7789 lt_prog_compiler_pic=
7790 lt_prog_compiler_can_build_shared=no
7795 # For platforms which do not support PIC, -DPIC is meaningless:
7797 lt_prog_compiler_pic=
7800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7805 # Check to make sure the static flag actually works.
7807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7810 if ${lt_cv_prog_compiler_static_works+:} false; then :
7811 $as_echo_n "(cached) " >&6
7813 lt_cv_prog_compiler_static_works=no
7814 save_LDFLAGS="$LDFLAGS"
7815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7818 # The linker can only warn and ignore the option if not recognized
7819 # So say no if there are warnings
7820 if test -s conftest.err; then
7821 # Append any errors to the config.log.
7822 cat conftest.err 1>&5
7823 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7825 if diff conftest.exp conftest.er2 >/dev/null; then
7826 lt_cv_prog_compiler_static_works=yes
7829 lt_cv_prog_compiler_static_works=yes
7833 LDFLAGS="$save_LDFLAGS"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7837 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7842 lt_prog_compiler_static=
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7848 if ${lt_cv_prog_compiler_c_o+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 lt_cv_prog_compiler_c_o=no
7852 $rm -r conftest 2>/dev/null
7856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858 lt_compiler_flag="-o out/conftest2.$ac_objext"
7859 # Insert the option either (1) after the last *FLAGS variable, or
7860 # (2) before a word containing "conftest.", or (3) at the end.
7861 # Note that $ac_compile itself does not contain backslashes and begins
7862 # with a dollar sign (not a hyphen), so the echo should work correctly.
7863 lt_compile=`echo "$ac_compile" | $SED \
7864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866 -e 's:$: $lt_compiler_flag:'`
7867 (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
7868 (eval "$lt_compile" 2>out/conftest.err)
7870 cat out/conftest.err >&5
7871 echo "$as_me:7871: \$? = $ac_status" >&5
7872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874 # The compiler can only warn and ignore the option if not recognized
7875 # So say no if there are warnings
7876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7879 lt_cv_prog_compiler_c_o=yes
7884 # SGI C++ compiler will create directory out/ii_files/ for
7885 # template instantiation
7886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7887 $rm out/* && rmdir out
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7897 hard_links="nottested"
7898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7899 # do not overwrite the value of need_locks provided by the user
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7901 $as_echo_n "checking if we can lock with hard links... " >&6; }
7904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7906 ln conftest.a conftest.b 2>&5 || hard_links=no
7907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7909 $as_echo "$hard_links" >&6; }
7910 if test "$hard_links" = no; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7923 allow_undefined_flag=
7924 enable_shared_with_static_runtimes=no
7926 archive_expsym_cmds=
7927 old_archive_From_new_cmds=
7928 old_archive_from_expsyms_cmds=
7929 export_dynamic_flag_spec=
7930 whole_archive_flag_spec=
7931 thread_safe_flag_spec=
7932 hardcode_libdir_flag_spec=
7933 hardcode_libdir_flag_spec_ld=
7934 hardcode_libdir_separator=
7937 hardcode_shlibpath_var=unsupported
7938 link_all_deplibs=unknown
7939 hardcode_automatic=no
7942 always_export_symbols=no
7943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7944 # include_expsyms should be a list of space-separated symbols to be *always*
7945 # included in the symbol list
7947 # exclude_expsyms can be an extended regexp of symbols to exclude
7948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7950 # as well as any symbol that contains `d'.
7951 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7953 # platforms (ab)use it in PIC code, but their linkers get confused if
7954 # the symbol is explicitly referenced. Since portable code cannot
7955 # rely on this symbol name, it's probably fine to never include it in
7956 # preloaded symbol tables.
7957 # Exclude shared library initialization/finalization symbols.
7958 extract_expsyms_cmds=
7959 # Just being paranoid about ensuring that cc_basename is set.
7960 for cc_temp in $compiler""; do
7962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7971 cygwin* | mingw* | pw32*)
7972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7973 # When not using gcc, we currently assume that we are using
7974 # Microsoft Visual C++.
7975 if test "$GCC" != yes; then
7980 # we just hope/assume this is gcc and not c89 (= MSVC++)
7989 if test "$with_gnu_ld" = yes; then
7990 # If archive_cmds runs LD, not CC, wlarc should be empty
7993 # Set some defaults for GNU ld with shared library support. These
7994 # are reset later if shared libraries are not supported. Putting them
7995 # here allows them to be overridden if necessary.
7996 runpath_var=LD_RUN_PATH
7997 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7998 export_dynamic_flag_spec='${wl}--export-dynamic'
7999 # ancient GNU ld didn't support --whole-archive et. al.
8000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8001 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8003 whole_archive_flag_spec=
8005 supports_anon_versioning=no
8006 case `$LD -v 2>/dev/null` in
8007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8010 *\ 2.11.*) ;; # other 2.11 versions
8011 *) supports_anon_versioning=yes ;;
8014 # See if GNU ld supports shared libraries.
8017 # On AIX/PPC, the GNU linker is very broken
8018 if test "$host_cpu" != ia64; then
8022 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8023 *** to be unable to reliably create shared libraries on AIX.
8024 *** Therefore, libtool is disabling shared libraries support. If you
8025 *** really care for shared libraries, you may want to modify your PATH
8026 *** so that a non-GNU linker is found, and then restart.
8033 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)'
8034 hardcode_libdir_flag_spec='-L$libdir'
8035 hardcode_minus_L=yes
8037 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8038 # that the semantics of dynamic libraries on AmigaOS, at least up
8039 # to version 4, is to share data among multiple programs linked
8040 # with the same dynamic library. Since this doesn't match the
8041 # behavior of shared libraries on other platforms, we can't use
8047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048 allow_undefined_flag=unsupported
8049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8050 # support --undefined. This deserves some investigation. FIXME
8051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 cygwin* | mingw* | pw32*)
8058 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8059 # as there is no search path for DLLs.
8060 hardcode_libdir_flag_spec='-L$libdir'
8061 allow_undefined_flag=unsupported
8062 always_export_symbols=no
8063 enable_shared_with_static_runtimes=yes
8064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8066 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8068 # If the export-symbols file already is a .def file (1st line
8069 # is EXPORTS), use it as is; otherwise, prepend...
8070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8071 cp $export_symbols $output_objdir/$soname.def;
8073 echo EXPORTS > $output_objdir/$soname.def;
8074 cat $export_symbols >> $output_objdir/$soname.def;
8076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8084 hardcode_shlibpath_var=no
8085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8086 export_dynamic_flag_spec='${wl}-E'
8087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8088 # Instead, shared libraries are loaded at an image base (0x10000000 by
8089 # default) and relocated if they conflict, which is a slow very memory
8090 # consuming and fragmenting process. To avoid this, we pick a random,
8091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8094 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'
8097 gnu* | linux* | k*bsd*-gnu)
8098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8100 case $cc_basename,$host_cpu in
8101 pgcc*) # Portland Group C compiler
8102 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8103 tmp_addflag=' $pic_flag'
8105 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8106 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8107 tmp_addflag=' $pic_flag -Mnomain' ;;
8108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8109 tmp_addflag=' -i_dynamic' ;;
8110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8111 tmp_addflag=' -i_dynamic -nofor_main' ;;
8112 ifc* | ifort*) # Intel Fortran compiler
8113 tmp_addflag=' -nofor_main' ;;
8115 case `$CC -V 2>&1 | sed 5q` in
8116 *Sun\ C*) # Sun C 5.9
8117 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8118 tmp_sharedflag='-G' ;;
8119 *Sun\ F*) # Sun Fortran 8.3
8120 tmp_sharedflag='-G' ;;
8122 tmp_sharedflag='-shared' ;;
8124 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 if test $supports_anon_versioning = yes; then
8127 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8129 $echo "local: *; };" >> $output_objdir/$libname.ver~
8130 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8138 netbsd* | netbsdelf*-gnu)
8139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8140 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8149 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8153 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8154 *** create shared libraries on Solaris systems. Therefore, libtool
8155 *** is disabling shared libraries support. We urge you to upgrade GNU
8156 *** binutils to release 2.9.1 or newer. Another option is to modify
8157 *** your PATH or compiler configuration so that the native linker is
8158 *** used, and then restart.
8161 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8170 case `$LD -v 2>&1` in
8171 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8175 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8176 *** reliably create shared libraries on SCO systems. Therefore, libtool
8177 *** is disabling shared libraries support. We urge you to upgrade GNU
8178 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8179 *** your PATH or compiler configuration so that the native linker is
8180 *** used, and then restart.
8185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8186 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8200 hardcode_shlibpath_var=no
8204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213 if test "$ld_shlibs" = no; then
8215 hardcode_libdir_flag_spec=
8216 export_dynamic_flag_spec=
8217 whole_archive_flag_spec=
8220 # PORTME fill in a description of your system's linker (not GNU ld)
8223 allow_undefined_flag=unsupported
8224 always_export_symbols=yes
8225 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'
8226 # Note: this linker hardcodes the directories in LIBPATH if there
8227 # are no directories specified by -L.
8228 hardcode_minus_L=yes
8229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8230 # Neither direct hardcoding nor static linking is supported with a
8232 hardcode_direct=unsupported
8237 if test "$host_cpu" = ia64; then
8238 # On IA64, the linker does run time linking by default, so we don't
8239 # have to do anything special.
8240 aix_use_runtimelinking=no
8241 exp_sym_flag='-Bexport'
8244 # If we're using GNU nm, then we don't want the "-C" option.
8245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8246 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8247 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8249 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'
8251 aix_use_runtimelinking=no
8253 # Test if we are trying to use run time linking or normal
8254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8255 # need to do runtime linking.
8256 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8257 for ld_flag in $LDFLAGS; do
8258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8259 aix_use_runtimelinking=yes
8266 exp_sym_flag='-bexport'
8267 no_entry_flag='-bnoentry'
8270 # When large executables or shared objects are built, AIX ld can
8271 # have problems creating the table of contents. If linking a library
8272 # or program results in "error TOC overflow" add -mminimal-toc to
8273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8278 hardcode_libdir_separator=':'
8279 link_all_deplibs=yes
8281 if test "$GCC" = yes; then
8282 case $host_os in aix4.[012]|aix4.[012].*)
8283 # We only want to do this on AIX 4.2 and lower, the check
8284 # below for broken collect2 doesn't work under 4.3+
8285 collect2name=`${CC} -print-prog-name=collect2`
8286 if test -f "$collect2name" && \
8287 strings "$collect2name" | grep resolve_lib_name >/dev/null
8289 # We have reworked collect2
8292 # We have old collect2
8293 hardcode_direct=unsupported
8294 # It fails to find uninstalled libraries when the uninstalled
8295 # path is not listed in the libpath. Setting hardcode_minus_L
8296 # to unsupported forces relinking
8297 hardcode_minus_L=yes
8298 hardcode_libdir_flag_spec='-L$libdir'
8299 hardcode_libdir_separator=
8303 shared_flag='-shared'
8304 if test "$aix_use_runtimelinking" = yes; then
8305 shared_flag="$shared_flag "'${wl}-G'
8309 if test "$host_cpu" = ia64; then
8310 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8311 # chokes on -Wl,-G. The following line is correct:
8314 if test "$aix_use_runtimelinking" = yes; then
8315 shared_flag='${wl}-G'
8317 shared_flag='${wl}-bM:SRE'
8322 # It seems that -bexpall does not export symbols beginning with
8323 # underscore (_), so it is better to generate a list of symbols to export.
8324 always_export_symbols=yes
8325 if test "$aix_use_runtimelinking" = yes; then
8326 # Warning - without using the other runtime loading flags (-brtl),
8327 # -berok will link without error, but may produce a broken library.
8328 allow_undefined_flag='-berok'
8329 # Determine the default libpath from the value encoded in an empty executable.
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8341 if ac_fn_c_try_link "$LINENO"; then :
8343 lt_aix_libpath_sed='
8344 /Import File Strings/,/^$/ {
8350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8351 # Check for a 64-bit object if we didn't find anything.
8352 if test -z "$aix_libpath"; then
8353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8361 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8363 if test "$host_cpu" = ia64; then
8364 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8365 allow_undefined_flag="-z nodefs"
8366 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"
8368 # Determine the default libpath from the value encoded in an empty executable.
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8380 if ac_fn_c_try_link "$LINENO"; then :
8382 lt_aix_libpath_sed='
8383 /Import File Strings/,/^$/ {
8389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390 # Check for a 64-bit object if we didn't find anything.
8391 if test -z "$aix_libpath"; then
8392 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8400 # Warning - without using the other run time loading flags,
8401 # -berok will link without error, but may produce a broken library.
8402 no_undefined_flag=' ${wl}-bernotok'
8403 allow_undefined_flag=' ${wl}-berok'
8404 # Exported symbols can be pulled into shared objects from archives
8405 whole_archive_flag_spec='$convenience'
8406 archive_cmds_need_lc=yes
8407 # This is similar to how AIX traditionally builds its shared libraries.
8408 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'
8414 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)'
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_minus_L=yes
8417 # see comment about different semantics on the GNU ld section
8422 export_dynamic_flag_spec=-rdynamic
8425 cygwin* | mingw* | pw32*)
8426 # When not using gcc, we currently assume that we are using
8427 # Microsoft Visual C++.
8428 # hardcode_libdir_flag_spec is actually meaningless, as there is
8429 # no search path for DLLs.
8430 hardcode_libdir_flag_spec=' '
8431 allow_undefined_flag=unsupported
8432 # Tell ltmain to make .lib files, not .a files.
8434 # Tell ltmain to make .dll files, not .so files.
8436 # FIXME: Setting linknames here is a bad hack.
8437 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8438 # The linker will automatically build a .lib file if we build a DLL.
8439 old_archive_From_new_cmds='true'
8440 # FIXME: Should let the user specify the lib program.
8441 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8442 fix_srcfile_path='`cygpath -w "$srcfile"`'
8443 enable_shared_with_static_runtimes=yes
8446 darwin* | rhapsody*)
8448 rhapsody* | darwin1.[012])
8449 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8452 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8453 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8455 case ${MACOSX_DEPLOYMENT_TARGET} in
8457 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8460 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8466 archive_cmds_need_lc=no
8468 hardcode_automatic=yes
8469 hardcode_shlibpath_var=unsupported
8470 whole_archive_flag_spec=''
8471 link_all_deplibs=yes
8472 if test "$GCC" = yes ; then
8473 output_verbose_link_cmd='echo'
8474 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8475 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8476 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}"
8477 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}"
8479 case $cc_basename in
8481 output_verbose_link_cmd='echo'
8482 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8483 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8484 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8485 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8486 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497 hardcode_libdir_flag_spec='-L$libdir'
8498 hardcode_shlibpath_var=no
8505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8506 # support. Future versions do this automatically, but an explicit c++rt0.o
8507 # does not break anything, and helps significantly (at the cost of a little
8510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8511 hardcode_libdir_flag_spec='-R$libdir'
8513 hardcode_shlibpath_var=no
8516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8520 hardcode_minus_L=yes
8521 hardcode_shlibpath_var=no
8524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8525 freebsd* | dragonfly*)
8526 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8527 hardcode_libdir_flag_spec='-R$libdir'
8529 hardcode_shlibpath_var=no
8533 if test "$GCC" = yes; then
8534 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'
8536 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'
8538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8539 hardcode_libdir_separator=:
8542 # hardcode_minus_L: Not really in the search PATH,
8543 # but as the default location of the library.
8544 hardcode_minus_L=yes
8545 export_dynamic_flag_spec='${wl}-E'
8549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8554 if test "$with_gnu_ld" = no; then
8555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8556 hardcode_libdir_separator=:
8559 export_dynamic_flag_spec='${wl}-E'
8561 # hardcode_minus_L: Not really in the search PATH,
8562 # but as the default location of the library.
8563 hardcode_minus_L=yes
8568 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8571 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8574 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8577 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8583 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8593 if test "$with_gnu_ld" = no; then
8594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595 hardcode_libdir_separator=:
8599 hardcode_libdir_flag_spec_ld='+b $libdir'
8601 hardcode_shlibpath_var=no
8605 export_dynamic_flag_spec='${wl}-E'
8607 # hardcode_minus_L: Not really in the search PATH,
8608 # but as the default location of the library.
8609 hardcode_minus_L=yes
8615 irix5* | irix6* | nonstopux*)
8616 if test "$GCC" = yes; then
8617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8619 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8620 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623 hardcode_libdir_separator=:
8624 link_all_deplibs=yes
8627 netbsd* | netbsdelf*-gnu)
8628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8631 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8633 hardcode_libdir_flag_spec='-R$libdir'
8635 hardcode_shlibpath_var=no
8639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642 hardcode_libdir_separator=:
8643 hardcode_shlibpath_var=no
8647 if test -f /usr/libexec/ld.so; then
8649 hardcode_shlibpath_var=no
8650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654 export_dynamic_flag_spec='${wl}-E'
8657 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_libdir_flag_spec='-R$libdir'
8662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8673 hardcode_libdir_flag_spec='-L$libdir'
8674 hardcode_minus_L=yes
8675 allow_undefined_flag=unsupported
8676 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'
8677 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8681 if test "$GCC" = yes; then
8682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8685 allow_undefined_flag=' -expect_unresolved \*'
8686 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689 hardcode_libdir_separator=:
8692 osf4* | osf5*) # as osf3* with the addition of -msym flag
8693 if test "$GCC" = yes; then
8694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8695 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698 allow_undefined_flag=' -expect_unresolved \*'
8699 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8700 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8701 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8703 # Both c and cxx compiler support -rpath directly
8704 hardcode_libdir_flag_spec='-rpath $libdir'
8706 hardcode_libdir_separator=:
8710 no_undefined_flag=' -z text'
8711 if test "$GCC" = yes; then
8713 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8715 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8718 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8720 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8722 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_shlibpath_var=no
8725 solaris2.[0-5] | solaris2.[0-5].*) ;;
8727 # The compiler driver will combine and reorder linker options,
8728 # but understands `-z linker_flag'. GCC discards it without `$wl',
8729 # but is careful enough not to reorder.
8730 # Supported since Solaris 2.6 (maybe 2.5.1?)
8731 if test "$GCC" = yes; then
8732 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8734 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8738 link_all_deplibs=yes
8742 if test "x$host_vendor" = xsequent; then
8743 # Use $CC to link under sequent, because it throws in some extra .o
8744 # files that make .init and .fini sections work.
8745 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8747 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8749 hardcode_libdir_flag_spec='-L$libdir'
8751 hardcode_minus_L=yes
8752 hardcode_shlibpath_var=no
8756 case $host_vendor in
8758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_direct=yes # is this really true???
8762 ## LD is ld it makes a PLAMLIB
8763 ## CC just makes a GrossModule.
8764 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8765 reload_cmds='$CC -r -o $output$reload_objs'
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8773 runpath_var='LD_RUN_PATH'
8774 hardcode_shlibpath_var=no
8778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_shlibpath_var=no
8780 export_dynamic_flag_spec='-Bexport'
8784 if test -d /usr/nec; then
8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_shlibpath_var=no
8787 runpath_var=LD_RUN_PATH
8788 hardcode_runpath_var=yes
8793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8794 no_undefined_flag='${wl}-z,text'
8795 archive_cmds_need_lc=no
8796 hardcode_shlibpath_var=no
8797 runpath_var='LD_RUN_PATH'
8799 if test "$GCC" = yes; then
8800 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8808 sysv5* | sco3.2v5* | sco5v6*)
8809 # Note: We can NOT use -z defs as we might desire, because we do not
8810 # link with -lc, and that would cause any symbols used from libc to
8811 # always be unresolved, which means just about no library would
8812 # ever link correctly. If we're not using GNU ld we use -z text
8813 # though, which does catch some bad symbols but isn't as heavy-handed
8815 no_undefined_flag='${wl}-z,text'
8816 allow_undefined_flag='${wl}-z,nodefs'
8817 archive_cmds_need_lc=no
8818 hardcode_shlibpath_var=no
8819 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8820 hardcode_libdir_separator=':'
8821 link_all_deplibs=yes
8822 export_dynamic_flag_spec='${wl}-Bexport'
8823 runpath_var='LD_RUN_PATH'
8825 if test "$GCC" = yes; then
8826 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_shlibpath_var=no
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8847 $as_echo "$ld_shlibs" >&6; }
8848 test "$ld_shlibs" = no && can_build_shared=no
8851 # Do we need to explicitly link libc?
8853 case "x$archive_cmds_need_lc" in
8855 # Assume -lc should be added
8856 archive_cmds_need_lc=yes
8858 if test "$enable_shared" = yes && test "$GCC" = yes; then
8859 case $archive_cmds in
8861 # FIXME: we may have to deal with multi-command sequences.
8864 # Test whether the compiler implicitly links with -lc since on some
8865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8866 # to ld, don't add -lc before -lgcc.
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8873 (eval $ac_compile) 2>&5
8875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8876 test $ac_status = 0; } 2>conftest.err; then
8879 libobjs=conftest.$ac_objext
8881 wl=$lt_prog_compiler_wl
8882 pic_flag=$lt_prog_compiler_pic
8888 lt_save_allow_undefined_flag=$allow_undefined_flag
8889 allow_undefined_flag=
8890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8891 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8894 test $ac_status = 0; }
8896 archive_cmds_need_lc=no
8898 archive_cmds_need_lc=yes
8900 allow_undefined_flag=$lt_save_allow_undefined_flag
8902 cat conftest.err 1>&5
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8906 $as_echo "$archive_cmds_need_lc" >&6; }
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8914 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8916 libname_spec='lib$name'
8924 shlibpath_overrides_runpath=unknown
8926 dynamic_linker="$host_os ld.so"
8927 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8929 if test "$GCC" = yes; then
8931 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8932 *) lt_awk_arg="/^libraries:/" ;;
8934 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8936 # if the path contains ";" then we assume it to be the separator
8937 # otherwise default to the standard path separator (i.e. ":") - it is
8938 # assumed that no part of a normal pathname contains ";" but that should
8939 # okay in the real world where ";" in dirpaths is itself problematic.
8940 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8942 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8944 # Ok, now we have the path, separated by spaces, we can step through it
8945 # and add multilib dir if necessary.
8946 lt_tmp_lt_search_path_spec=
8947 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8948 for lt_sys_path in $lt_search_path_spec; do
8949 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8952 test -d "$lt_sys_path" && \
8953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8956 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8957 BEGIN {RS=" "; FS="/|\n";} {
8960 for (lt_i = NF; lt_i > 0; lt_i--) {
8961 if ($lt_i != "" && $lt_i != ".") {
8962 if ($lt_i == "..") {
8965 if (lt_count == 0) {
8966 lt_foo="/" $lt_i lt_foo;
8973 if (lt_foo != "") { lt_freq[lt_foo]++; }
8974 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8976 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8980 need_lib_prefix=unknown
8981 hardcode_into_libs=no
8983 # when you set need_version to no, make sure it does not cause -set_version
8984 # flags to be left without arguments
8985 need_version=unknown
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8991 shlibpath_var=LIBPATH
8993 # AIX 3 has no versioning support, so we append a major version to the name.
8994 soname_spec='${libname}${release}${shared_ext}$major'
9001 hardcode_into_libs=yes
9002 if test "$host_cpu" = ia64; then
9003 # AIX 5 supports IA64
9004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9007 # With GCC up to 2.95.x, collect2 would create an import file
9008 # for dependence libraries. The import file would start with
9009 # the line `#! .'. This would cause the generated library to
9010 # depend on `.', always an invalid library. This was fixed in
9011 # development snapshots of GCC prior to 3.0.
9013 aix4 | aix4.[01] | aix4.[01].*)
9014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9024 # soname into executable. Probably we can add versioning support to
9025 # collect2, so additional links can be useful in future.
9026 if test "$aix_use_runtimelinking" = yes; then
9027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9028 # instead of lib<name>.a to let people know that these are not
9029 # typical AIX shared libraries.
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 # We preserve .a as extension for shared libraries through AIX4.2
9033 # and later when we are not doing run time linking.
9034 library_names_spec='${libname}${release}.a $libname.a'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LIBPATH
9042 library_names_spec='$libname.ixlibrary $libname.a'
9043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9044 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9048 library_names_spec='${libname}${shared_ext}'
9049 dynamic_linker="$host_os ld.so"
9050 shlibpath_var=LIBRARY_PATH
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9062 # the default ld.so.conf also contains /usr/contrib/lib and
9063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9064 # libtool to hard-code these into programs
9067 cygwin* | mingw* | pw32*)
9068 version_type=windows
9073 case $GCC,$host_os in
9074 yes,cygwin* | yes,mingw* | yes,pw32*)
9075 library_names_spec='$libname.dll.a'
9076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9077 postinstall_cmds='base_file=`basename \${file}`~
9078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9079 dldir=$destdir/`dirname \$dlpath`~
9080 test -d \$dldir || mkdir -p \$dldir~
9081 $install_prog $dir/$dlname \$dldir/$dlname~
9082 chmod a+x \$dldir/$dlname'
9083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9084 dlpath=$dir/\$dldll~
9086 shlibpath_overrides_runpath=yes
9090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9095 # MinGW DLLs use traditional 'lib' prefix
9096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9099 # It is most probably a Windows format PATH printed by
9100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9101 # path with ; separators, and with drive letters. We can handle the
9102 # drive letters (cygwin fileutils understands them), so leave them,
9103 # especially as we might pass files found there to a mingw objdump,
9104 # which wouldn't understand a cygwinified path. Ahh.
9105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9111 # pw32 DLLs use 'pw' prefix rather than 'lib'
9112 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9121 dynamic_linker='Win32 ld.exe'
9122 # FIXME: first we should search . and the directory the executable is in
9126 darwin* | rhapsody*)
9127 dynamic_linker="$host_os dyld"
9131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9132 soname_spec='${libname}${release}${major}$shared_ext'
9133 shlibpath_overrides_runpath=yes
9134 shlibpath_var=DYLD_LIBRARY_PATH
9135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9154 freebsd* | dragonfly*)
9155 # DragonFly does not have aout. When/if they implement a new
9156 # versioning mechanism, adjust this.
9157 if test -x /usr/bin/objformat; then
9158 objformat=`/usr/bin/objformat`
9161 freebsd[123]*) objformat=aout ;;
9165 version_type=freebsd-$objformat
9166 case $version_type in
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9177 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9182 freebsd3.[01]* | freebsdelf3.[01]*)
9183 shlibpath_overrides_runpath=yes
9184 hardcode_into_libs=yes
9186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9188 shlibpath_overrides_runpath=no
9189 hardcode_into_libs=yes
9191 *) # from 4.6 on, and DragonFly
9192 shlibpath_overrides_runpath=yes
9193 hardcode_into_libs=yes
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 hardcode_into_libs=yes
9208 hpux9* | hpux10* | hpux11*)
9209 # Give a soname corresponding to the major version so that dld.sl refuses to
9210 # link against other versions.
9217 hardcode_into_libs=yes
9218 dynamic_linker="$host_os dld.so"
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 if test "X$HPUX_IA64_MODE" = X32; then
9224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9232 hardcode_into_libs=yes
9233 dynamic_linker="$host_os dld.sl"
9234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9243 dynamic_linker="$host_os dld.sl"
9244 shlibpath_var=SHLIB_PATH
9245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9251 postinstall_cmds='chmod 555 $lib'
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=no
9263 hardcode_into_libs=yes
9266 irix5* | irix6* | nonstopux*)
9268 nonstopux*) version_type=nonstopux ;;
9270 if test "$lt_cv_prog_gnu_ld" = yes; then
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9281 irix5* | nonstopux*)
9285 case $LD in # libtool.m4 will add one of these switches to LD
9286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9287 libsuff= shlibsuff= libmagic=32-bit;;
9288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9289 libsuff=32 shlibsuff=N32 libmagic=N32;;
9290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9292 *) libsuff= shlibsuff= libmagic=never-match;;
9296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9297 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9300 hardcode_into_libs=yes
9303 # No shared lib support for Linux oldld, aout, or coff.
9304 linux*oldld* | linux*aout* | linux*coff*)
9308 # This must be Linux ELF.
9309 linux* | k*bsd*-gnu)
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=no
9318 # This implies no fast_install, which is unacceptable.
9319 # Some rework will be needed to allow for fast_install
9320 # before this can be enabled.
9321 hardcode_into_libs=yes
9323 # Append ld.so.conf contents to the search path
9324 if test -f /etc/ld.so.conf; then
9325 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;/^$/d' | tr '\n' ' '`
9326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9329 # We used to test for /lib/ld.so.1 and disable shared libraries on
9330 # powerpc, because MkLinux only supported shared libraries with the
9331 # GNU dynamic linker. Since this was broken with cross compilers,
9332 # most powerpc-linux boxes support dynamic linking these days and
9333 # people can always --disable-shared, the test was removed, and we
9334 # assume the GNU/Linux dynamic linker is in use.
9335 dynamic_linker='GNU/Linux ld.so'
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=no
9346 hardcode_into_libs=yes
9347 dynamic_linker='NetBSD ld.elf_so'
9354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9357 dynamic_linker='NetBSD (a.out) ld.so'
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 dynamic_linker='NetBSD ld.elf_so'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=yes
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 shlibpath_overrides_runpath=yes
9387 sys_lib_dlsearch_path_spec="/usr/lib"
9389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9392 *) need_version=no ;;
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399 openbsd2.[89] | openbsd2.[89].*)
9400 shlibpath_overrides_runpath=no
9403 shlibpath_overrides_runpath=yes
9407 shlibpath_overrides_runpath=yes
9412 libname_spec='$name'
9415 library_names_spec='$libname${shared_ext} $libname.a'
9416 dynamic_linker='OS/2 ld.exe'
9417 shlibpath_var=LIBPATH
9420 osf3* | osf4* | osf5*)
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9443 hardcode_into_libs=yes
9444 # ldd complains unless libraries are executable
9445 postinstall_cmds='chmod +x $lib'
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=yes
9454 if test "$with_gnu_ld" = yes; then
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 case $host_vendor in
9467 shlibpath_overrides_runpath=no
9469 export_dynamic_flag_spec='${wl}-Blargedynsym'
9470 runpath_var=LD_RUN_PATH
9478 shlibpath_overrides_runpath=no
9479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9485 if test -d /usr/nec ;then
9487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9488 soname_spec='$libname${shared_ext}.$major'
9489 shlibpath_var=LD_LIBRARY_PATH
9493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9494 version_type=freebsd-elf
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 hardcode_into_libs=yes
9501 if test "$with_gnu_ld" = yes; then
9502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9503 shlibpath_overrides_runpath=no
9505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9506 shlibpath_overrides_runpath=yes
9509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9513 sys_lib_dlsearch_path_spec='/usr/lib'
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 shlibpath_var=LD_LIBRARY_PATH
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9528 $as_echo "$dynamic_linker" >&6; }
9529 test "$dynamic_linker" = no && can_build_shared=no
9531 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9537 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9538 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9539 $as_echo_n "(cached) " >&6
9541 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9544 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9547 if test "$GCC" = yes; then
9548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9554 if test -n "$hardcode_libdir_flag_spec" || \
9555 test -n "$runpath_var" || \
9556 test "X$hardcode_automatic" = "Xyes" ; then
9558 # We can hardcode non-existant directories.
9559 if test "$hardcode_direct" != no &&
9560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9561 # have to relink, otherwise we might link with an installed library
9562 # when we should be linking with a yet-to-be-installed one
9563 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9564 test "$hardcode_minus_L" != no; then
9565 # Linking always hardcodes the temporary library directory.
9566 hardcode_action=relink
9568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9569 hardcode_action=immediate
9572 # We cannot hardcode anything, or else we can only hardcode existing
9574 hardcode_action=unsupported
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9577 $as_echo "$hardcode_action" >&6; }
9579 if test "$hardcode_action" = relink; then
9580 # Fast installation is not supported
9581 enable_fast_install=no
9582 elif test "$shlibpath_overrides_runpath" = yes ||
9583 test "$enable_shared" = no; then
9584 # Fast installation is not necessary
9585 enable_fast_install=needless
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9591 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9593 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9594 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9596 $as_echo "yes" >&6; }
9598 # FIXME - insert some real tests, host_os isn't really good enough
9601 if test -n "$STRIP" ; then
9602 striplib="$STRIP -x"
9603 old_striplib="$STRIP -S"
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9605 $as_echo "yes" >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9618 if test "x$enable_dlopen" != xyes; then
9619 enable_dlopen=unknown
9620 enable_dlopen_self=unknown
9621 enable_dlopen_self_static=unknown
9628 lt_cv_dlopen="load_add_on"
9630 lt_cv_dlopen_self=yes
9634 lt_cv_dlopen="LoadLibrary"
9639 lt_cv_dlopen="dlopen"
9644 # if libdl is installed we need to link against it
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9647 if ${ac_cv_lib_dl_dlopen+:} false; then :
9648 $as_echo_n "(cached) " >&6
9650 ac_check_lib_save_LIBS=$LIBS
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 /* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
9670 if ac_fn_c_try_link "$LINENO"; then :
9671 ac_cv_lib_dl_dlopen=yes
9673 ac_cv_lib_dl_dlopen=no
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9681 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9687 lt_cv_dlopen_self=yes
9694 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9695 if test "x$ac_cv_func_shl_load" = xyes; then :
9696 lt_cv_dlopen="shl_load"
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9699 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9700 if ${ac_cv_lib_dld_shl_load+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 ac_check_lib_save_LIBS=$LIBS
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9723 if ac_fn_c_try_link "$LINENO"; then :
9724 ac_cv_lib_dld_shl_load=yes
9726 ac_cv_lib_dld_shl_load=no
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9733 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9734 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9735 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9737 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9738 if test "x$ac_cv_func_dlopen" = xyes; then :
9739 lt_cv_dlopen="dlopen"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9742 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9743 if ${ac_cv_lib_dl_dlopen+:} false; then :
9744 $as_echo_n "(cached) " >&6
9746 ac_check_lib_save_LIBS=$LIBS
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 ac_cv_lib_dl_dlopen=yes
9769 ac_cv_lib_dl_dlopen=no
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9776 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9777 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9781 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9782 if ${ac_cv_lib_svld_dlopen+:} false; then :
9783 $as_echo_n "(cached) " >&6
9785 ac_check_lib_save_LIBS=$LIBS
9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9805 if ac_fn_c_try_link "$LINENO"; then :
9806 ac_cv_lib_svld_dlopen=yes
9808 ac_cv_lib_svld_dlopen=no
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9815 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9816 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9820 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9821 if ${ac_cv_lib_dld_dld_link+:} false; then :
9822 $as_echo_n "(cached) " >&6
9824 ac_check_lib_save_LIBS=$LIBS
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 if ac_fn_c_try_link "$LINENO"; then :
9845 ac_cv_lib_dld_dld_link=yes
9847 ac_cv_lib_dld_dld_link=no
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9854 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9855 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9856 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9877 if test "x$lt_cv_dlopen" != xno; then
9883 case $lt_cv_dlopen in
9885 save_CPPFLAGS="$CPPFLAGS"
9886 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9888 save_LDFLAGS="$LDFLAGS"
9889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9892 LIBS="$lt_cv_dlopen_libs $LIBS"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9895 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9896 if ${lt_cv_dlopen_self+:} false; then :
9897 $as_echo_n "(cached) " >&6
9899 if test "$cross_compiling" = yes; then :
9900 lt_cv_dlopen_self=cross
9902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9903 lt_status=$lt_dlunknown
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9905 "configure"
9906 #include "confdefs.h"
9915 # define LT_DLGLOBAL RTLD_GLOBAL
9918 # define LT_DLGLOBAL DL_GLOBAL
9920 # define LT_DLGLOBAL 0
9924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9925 find out it does not work in some platform. */
9926 #ifndef LT_DLLAZY_OR_NOW
9928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9931 # define LT_DLLAZY_OR_NOW DL_LAZY
9934 # define LT_DLLAZY_OR_NOW RTLD_NOW
9937 # define LT_DLLAZY_OR_NOW DL_NOW
9939 # define LT_DLLAZY_OR_NOW 0
9947 extern "C" void exit (int);
9950 void fnord() { int i=42;}
9953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9954 int status = $lt_dlunknown;
9958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9959 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9960 /* dlclose (self); */
9968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9969 (eval $ac_link) 2>&5
9971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9973 (./conftest; exit; ) >&5 2>/dev/null
9976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9978 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9981 # compilation failed
9982 lt_cv_dlopen_self=no
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9990 $as_echo "$lt_cv_dlopen_self" >&6; }
9992 if test "x$lt_cv_dlopen_self" = xyes; then
9993 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9995 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9996 if ${lt_cv_dlopen_self_static+:} false; then :
9997 $as_echo_n "(cached) " >&6
9999 if test "$cross_compiling" = yes; then :
10000 lt_cv_dlopen_self_static=cross
10002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10003 lt_status=$lt_dlunknown
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10015 # define LT_DLGLOBAL RTLD_GLOBAL
10018 # define LT_DLGLOBAL DL_GLOBAL
10020 # define LT_DLGLOBAL 0
10024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10025 find out it does not work in some platform. */
10026 #ifndef LT_DLLAZY_OR_NOW
10028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10031 # define LT_DLLAZY_OR_NOW DL_LAZY
10034 # define LT_DLLAZY_OR_NOW RTLD_NOW
10037 # define LT_DLLAZY_OR_NOW DL_NOW
10039 # define LT_DLLAZY_OR_NOW 0
10047 extern "C" void exit (int);
10050 void fnord() { int i=42;}
10053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10054 int status = $lt_dlunknown;
10058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10060 /* dlclose (self); */
10068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10069 (eval $ac_link) 2>&5
10071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10073 (./conftest; exit; ) >&5 2>/dev/null
10075 case x$lt_status in
10076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10081 # compilation failed
10082 lt_cv_dlopen_self_static=no
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10093 CPPFLAGS="$save_CPPFLAGS"
10094 LDFLAGS="$save_LDFLAGS"
10099 case $lt_cv_dlopen_self in
10100 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10101 *) enable_dlopen_self=unknown ;;
10104 case $lt_cv_dlopen_self_static in
10105 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10106 *) enable_dlopen_self_static=unknown ;;
10111 # Report which library types will actually be built
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10115 $as_echo "$can_build_shared" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10118 $as_echo_n "checking whether to build shared libraries... " >&6; }
10119 test "$can_build_shared" = "no" && enable_shared=no
10121 # On AIX, shared libraries and static libraries use the same namespace, and
10122 # are all built from PIC.
10125 test "$enable_shared" = yes && enable_static=no
10126 if test -n "$RANLIB"; then
10127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10128 postinstall_cmds='$RANLIB $lib'
10133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10134 test "$enable_shared" = yes && enable_static=no
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10139 $as_echo "$enable_shared" >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10142 $as_echo_n "checking whether to build static libraries... " >&6; }
10143 # Make sure either enable_shared or enable_static is yes.
10144 test "$enable_shared" = yes || enable_static=yes
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10146 $as_echo "$enable_static" >&6; }
10148 # The else clause should only fire when bootstrapping the
10149 # libtool distribution, otherwise you forgot to ship ltmain.sh
10150 # with your package, and you will get complaints that there are
10151 # no rules to generate ltmain.sh.
10152 if test -f "$ltmain"; then
10153 # See if we are running on zsh, and set the options which allow our commands through
10154 # without removal of \ escapes.
10155 if test -n "${ZSH_VERSION+set}" ; then
10156 setopt NO_GLOB_SUBST
10158 # Now quote all the things that may contain metacharacters while being
10159 # careful not to overquote the AC_SUBSTed values. We take copies of the
10160 # variables and quote the copies for generation of the libtool script.
10161 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10163 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10164 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10165 deplibs_check_method reload_flag reload_cmds need_locks \
10166 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10167 lt_cv_sys_global_symbol_to_c_name_address \
10168 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10169 old_postinstall_cmds old_postuninstall_cmds \
10173 lt_prog_compiler_wl \
10174 lt_prog_compiler_pic \
10175 lt_prog_compiler_static \
10176 lt_prog_compiler_no_builtin_flag \
10177 export_dynamic_flag_spec \
10178 thread_safe_flag_spec \
10179 whole_archive_flag_spec \
10180 enable_shared_with_static_runtimes \
10182 old_archive_from_new_cmds \
10187 compiler_lib_search_path \
10188 compiler_lib_search_dirs \
10190 archive_expsym_cmds \
10192 postuninstall_cmds \
10193 old_archive_from_expsyms_cmds \
10194 allow_undefined_flag \
10195 no_undefined_flag \
10196 export_symbols_cmds \
10197 hardcode_libdir_flag_spec \
10198 hardcode_libdir_flag_spec_ld \
10199 hardcode_libdir_separator \
10200 hardcode_automatic \
10202 module_expsym_cmds \
10203 lt_cv_prog_compiler_c_o \
10206 include_expsyms; do
10209 old_archive_cmds | \
10210 old_archive_from_new_cmds | \
10212 archive_expsym_cmds | \
10214 module_expsym_cmds | \
10215 old_archive_from_expsyms_cmds | \
10216 export_symbols_cmds | \
10217 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10218 postinstall_cmds | postuninstall_cmds | \
10219 old_postinstall_cmds | old_postuninstall_cmds | \
10220 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10221 # Double-quote double-evaled strings.
10222 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10231 *'\$0 --fallback-echo"')
10232 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10236 cfgfile="${ofile}T"
10237 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10240 $as_echo "$as_me: creating $ofile" >&6;}
10242 cat <<__EOF__ >> "$cfgfile"
10245 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10246 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10250 # Free Software Foundation, Inc.
10252 # This file is part of GNU Libtool:
10253 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10255 # This program is free software; you can redistribute it and/or modify
10256 # it under the terms of the GNU General Public License as published by
10257 # the Free Software Foundation; either version 2 of the License, or
10258 # (at your option) any later version.
10260 # This program is distributed in the hope that it will be useful, but
10261 # WITHOUT ANY WARRANTY; without even the implied warranty of
10262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10263 # General Public License for more details.
10265 # You should have received a copy of the GNU General Public License
10266 # along with this program; if not, write to the Free Software
10267 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10269 # As a special exception to the GNU General Public License, if you
10270 # distribute this file as part of a program that contains a
10271 # configuration script generated by Autoconf, you may include it under
10272 # the same distribution terms that you use for the rest of that program.
10274 # A sed program that does not truncate output.
10277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10278 Xsed="$SED -e 1s/^X//"
10280 # The HP-UX ksh and POSIX shell print the target directory to stdout
10281 # if CDPATH is set.
10282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10284 # The names of the tagged configurations supported by this script.
10287 # ### BEGIN LIBTOOL CONFIG
10289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10291 # Shell to use when invoking shell scripts.
10294 # Whether or not to build shared libraries.
10295 build_libtool_libs=$enable_shared
10297 # Whether or not to build static libraries.
10298 build_old_libs=$enable_static
10300 # Whether or not to add -lc for building shared libraries.
10301 build_libtool_need_lc=$archive_cmds_need_lc
10303 # Whether or not to disallow shared libs when runtime libs are static
10304 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10306 # Whether or not to optimize for fast installation.
10307 fast_install=$enable_fast_install
10310 host_alias=$host_alias
10314 # The build system.
10315 build_alias=$build_alias
10319 # An echo program that does not interpret backslashes.
10324 AR_FLAGS=$lt_AR_FLAGS
10329 # LTCC compiler flags.
10330 LTCFLAGS=$lt_LTCFLAGS
10332 # A language-specific compiler.
10335 # Is the compiler the GNU C compiler?
10341 # The linker used to build libraries.
10344 # Whether we need hard or soft links.
10347 # A BSD-compatible nm program.
10350 # A symbol stripping program
10353 # Used to examine libraries when file_magic_cmd begins "file"
10354 MAGIC_CMD=$MAGIC_CMD
10356 # Used on cygwin: DLL creation program.
10359 # Used on cygwin: object dumper.
10362 # Used on cygwin: assembler.
10365 # The name of the directory that contains temporary libtool files.
10368 # How to create reloadable object files.
10369 reload_flag=$lt_reload_flag
10370 reload_cmds=$lt_reload_cmds
10372 # How to pass a linker flag through the compiler.
10373 wl=$lt_lt_prog_compiler_wl
10375 # Object file suffix (normally "o").
10376 objext="$ac_objext"
10378 # Old archive suffix (normally "a").
10381 # Shared library suffix (normally ".so").
10382 shrext_cmds='$shrext_cmds'
10384 # Executable file suffix (normally "").
10387 # Additional compiler flags for building library objects.
10388 pic_flag=$lt_lt_prog_compiler_pic
10391 # What is the maximum length of a command?
10392 max_cmd_len=$lt_cv_sys_max_cmd_len
10394 # Does compiler simultaneously support -c and -o options?
10395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10397 # Must we lock files when doing compilation?
10398 need_locks=$lt_need_locks
10400 # Do we need the lib prefix for modules?
10401 need_lib_prefix=$need_lib_prefix
10403 # Do we need a version for libraries?
10404 need_version=$need_version
10406 # Whether dlopen is supported.
10407 dlopen_support=$enable_dlopen
10409 # Whether dlopen of programs is supported.
10410 dlopen_self=$enable_dlopen_self
10412 # Whether dlopen of statically linked programs is supported.
10413 dlopen_self_static=$enable_dlopen_self_static
10415 # Compiler flag to prevent dynamic linking.
10416 link_static_flag=$lt_lt_prog_compiler_static
10418 # Compiler flag to turn off builtin functions.
10419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10421 # Compiler flag to allow reflexive dlopens.
10422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10424 # Compiler flag to generate shared objects directly from archives.
10425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10427 # Compiler flag to generate thread-safe objects.
10428 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10430 # Library versioning type.
10431 version_type=$version_type
10433 # Format of library name prefix.
10434 libname_spec=$lt_libname_spec
10436 # List of archive names. First name is the real one, the rest are links.
10437 # The last name is the one that the linker finds with -lNAME.
10438 library_names_spec=$lt_library_names_spec
10440 # The coded name of the library, if different from the real name.
10441 soname_spec=$lt_soname_spec
10443 # Commands used to build and install an old-style archive.
10445 old_archive_cmds=$lt_old_archive_cmds
10446 old_postinstall_cmds=$lt_old_postinstall_cmds
10447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10449 # Create an old-style archive from a shared archive.
10450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10452 # Create a temporary old-style archive to link instead of a shared archive.
10453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10455 # Commands used to build and install a shared archive.
10456 archive_cmds=$lt_archive_cmds
10457 archive_expsym_cmds=$lt_archive_expsym_cmds
10458 postinstall_cmds=$lt_postinstall_cmds
10459 postuninstall_cmds=$lt_postuninstall_cmds
10461 # Commands used to build a loadable module (assumed same as above if empty)
10462 module_cmds=$lt_module_cmds
10463 module_expsym_cmds=$lt_module_expsym_cmds
10465 # Commands to strip libraries.
10466 old_striplib=$lt_old_striplib
10467 striplib=$lt_striplib
10469 # Dependencies to place before the objects being linked to create a
10471 predep_objects=$lt_predep_objects
10473 # Dependencies to place after the objects being linked to create a
10475 postdep_objects=$lt_postdep_objects
10477 # Dependencies to place before the objects being linked to create a
10479 predeps=$lt_predeps
10481 # Dependencies to place after the objects being linked to create a
10483 postdeps=$lt_postdeps
10485 # The directories searched by this compiler when creating a shared
10487 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10489 # The library search path used internally by the compiler when linking
10490 # a shared library.
10491 compiler_lib_search_path=$lt_compiler_lib_search_path
10493 # Method to check whether dependent libraries are shared objects.
10494 deplibs_check_method=$lt_deplibs_check_method
10496 # Command to use when deplibs_check_method == file_magic.
10497 file_magic_cmd=$lt_file_magic_cmd
10499 # Flag that allows shared libraries with undefined symbols to be built.
10500 allow_undefined_flag=$lt_allow_undefined_flag
10502 # Flag that forces no undefined symbols.
10503 no_undefined_flag=$lt_no_undefined_flag
10505 # Commands used to finish a libtool library installation in a directory.
10506 finish_cmds=$lt_finish_cmds
10508 # Same as above, but a single script fragment to be evaled but not shown.
10509 finish_eval=$lt_finish_eval
10511 # Take the output of nm and produce a listing of raw symbols and C names.
10512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10514 # Transform the output of nm in a proper C declaration
10515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10517 # Transform the output of nm in a C name address pair
10518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10520 # This is the shared library runtime path variable.
10521 runpath_var=$runpath_var
10523 # This is the shared library path variable.
10524 shlibpath_var=$shlibpath_var
10526 # Is shlibpath searched before the hard-coded library search path?
10527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10529 # How to hardcode a shared library path into an executable.
10530 hardcode_action=$hardcode_action
10532 # Whether we should hardcode library paths into libraries.
10533 hardcode_into_libs=$hardcode_into_libs
10535 # Flag to hardcode \$libdir into a binary during linking.
10536 # This must work even if \$libdir does not exist.
10537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10539 # If ld is used when linking, flag to hardcode \$libdir into
10540 # a binary during linking. This must work even if \$libdir does
10542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10544 # Whether we need a single -rpath flag with a separated argument.
10545 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10548 # resulting binary.
10549 hardcode_direct=$hardcode_direct
10551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10552 # resulting binary.
10553 hardcode_minus_L=$hardcode_minus_L
10555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10556 # the resulting binary.
10557 hardcode_shlibpath_var=$hardcode_shlibpath_var
10559 # Set to yes if building a shared library automatically hardcodes DIR into the library
10560 # and all subsequent libraries and executables linked against it.
10561 hardcode_automatic=$hardcode_automatic
10563 # Variables whose values should be saved in libtool wrapper scripts and
10564 # restored at relink time.
10565 variables_saved_for_relink="$variables_saved_for_relink"
10567 # Whether libtool must link a program against all its dependency libraries.
10568 link_all_deplibs=$link_all_deplibs
10570 # Compile-time system search path for libraries
10571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10573 # Run-time system search path for libraries
10574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10576 # Fix the shell variable \$srcfile for the compiler.
10577 fix_srcfile_path=$lt_fix_srcfile_path
10579 # Set to yes if exported symbols are required.
10580 always_export_symbols=$always_export_symbols
10582 # The commands to list exported symbols.
10583 export_symbols_cmds=$lt_export_symbols_cmds
10585 # The commands to extract the exported symbol list from a shared archive.
10586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10588 # Symbols that should not be listed in the preloaded symbols.
10589 exclude_expsyms=$lt_exclude_expsyms
10591 # Symbols that must always be exported.
10592 include_expsyms=$lt_include_expsyms
10594 # ### END LIBTOOL CONFIG
10601 cat <<\EOF >> "$cfgfile"
10603 # AIX sometimes has problems with the GCC collect2 program. For some
10604 # reason, if we set the COLLECT_NAMES environment variable, the problems
10605 # vanish in a puff of smoke.
10606 if test "X${COLLECT_NAMES+set}" != Xset; then
10608 export COLLECT_NAMES
10614 # We use sed instead of cat because bash on DJGPP gets confused if
10615 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10616 # text mode, it properly converts lines to CR/LF. This bash problem
10617 # is reportedly fixed, but why not run on old versions too?
10618 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10620 mv -f "$cfgfile" "$ofile" || \
10621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10625 # If there is no Makefile yet, we rely on a make rule to execute
10626 # `config.status --recheck' to rerun these tests and create the
10627 # libtool script then.
10628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10629 if test -f "$ltmain_in"; then
10630 test -f Makefile && make "$ltmain"
10636 ac_cpp='$CPP $CPPFLAGS'
10637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644 # Check whether --with-tags was given.
10645 if test "${with_tags+set}" = set; then :
10646 withval=$with_tags; tagnames="$withval"
10650 if test -f "$ltmain" && test -n "$tagnames"; then
10651 if test ! -f "${ofile}"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10653 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10656 if test -z "$LTCC"; then
10657 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10658 if test -z "$LTCC"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10660 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10663 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10666 if test -z "$LTCFLAGS"; then
10667 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10670 # Extract list of available tagged configurations in $ofile.
10671 # Note that this assumes the entire list is on one line.
10672 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10675 for tagname in $tagnames; do
10677 # Check whether tagname contains only valid characters
10678 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10680 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10684 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10686 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10689 # Update the list of available tags.
10690 if test -n "$tagname"; then
10691 echo appending configuration tag \"$tagname\" to $ofile
10695 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10696 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10697 (test "X$CXX" != "Xg++"))) ; then
10699 ac_cpp='$CXXCPP $CPPFLAGS'
10700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10707 archive_cmds_need_lc_CXX=no
10708 allow_undefined_flag_CXX=
10709 always_export_symbols_CXX=no
10710 archive_expsym_cmds_CXX=
10711 export_dynamic_flag_spec_CXX=
10712 hardcode_direct_CXX=no
10713 hardcode_libdir_flag_spec_CXX=
10714 hardcode_libdir_flag_spec_ld_CXX=
10715 hardcode_libdir_separator_CXX=
10716 hardcode_minus_L_CXX=no
10717 hardcode_shlibpath_var_CXX=unsupported
10718 hardcode_automatic_CXX=no
10720 module_expsym_cmds_CXX=
10721 link_all_deplibs_CXX=unknown
10722 old_archive_cmds_CXX=$old_archive_cmds
10723 no_undefined_flag_CXX=
10724 whole_archive_flag_spec_CXX=
10725 enable_shared_with_static_runtimes_CXX=no
10727 # Dependencies to place before and after the object being linked:
10728 predep_objects_CXX=
10729 postdep_objects_CXX=
10732 compiler_lib_search_path_CXX=
10733 compiler_lib_search_dirs_CXX=
10735 # Source file extension for C++ test sources.
10738 # Object file extension for compiled C++ test sources.
10742 # Code to be used in simple compile tests
10743 lt_simple_compile_test_code="int some_variable = 0;"
10745 # Code to be used in simple link tests
10746 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10748 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10750 # If no C compiler was specified, use CC.
10753 # If no C compiler flags were specified, use CFLAGS.
10754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10756 # Allow CC to be a program name with arguments.
10760 # save warnings/boilerplate of simple test code
10761 ac_outfile=conftest.$ac_objext
10762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764 _lt_compiler_boilerplate=`cat conftest.err`
10767 ac_outfile=conftest.$ac_objext
10768 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10770 _lt_linker_boilerplate=`cat conftest.err`
10774 # Allow CC to be a program name with arguments.
10779 lt_save_with_gnu_ld=$with_gnu_ld
10780 lt_save_path_LD=$lt_cv_path_LD
10781 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10782 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10784 $as_unset lt_cv_prog_gnu_ld
10786 if test -n "${lt_cv_path_LDCXX+set}"; then
10787 lt_cv_path_LD=$lt_cv_path_LDCXX
10789 $as_unset lt_cv_path_LD
10791 test -z "${LDCXX+set}" || LD=$LDCXX
10795 for cc_temp in $compiler""; do
10797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10803 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10806 # We don't want -fno-exception wen compiling C++ code, so set the
10807 # no_builtin_flag separately
10808 if test "$GXX" = yes; then
10809 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10811 lt_prog_compiler_no_builtin_flag_CXX=
10814 if test "$GXX" = yes; then
10815 # Set up default GNU C++ configuration
10818 # Check whether --with-gnu-ld was given.
10819 if test "${with_gnu_ld+set}" = set; then :
10820 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10826 if test "$GCC" = yes; then
10827 # Check if gcc -print-prog-name=ld gives a path.
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10829 $as_echo_n "checking for ld used by $CC... " >&6; }
10832 # gcc leaves a trailing carriage return which upsets mingw
10833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10838 # Accept absolute paths.
10840 re_direlt='/[^/][^/]*/\.\./'
10841 # Canonicalize the pathname of ld
10842 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10843 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10844 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10846 test -z "$LD" && LD="$ac_prog"
10849 # If it fails, then pretend we aren't using GCC.
10853 # If it is relative, then search for the first ld in PATH.
10854 with_gnu_ld=unknown
10857 elif test "$with_gnu_ld" = yes; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10859 $as_echo_n "checking for GNU ld... " >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10862 $as_echo_n "checking for non-GNU ld... " >&6; }
10864 if ${lt_cv_path_LD+:} false; then :
10865 $as_echo_n "(cached) " >&6
10867 if test -z "$LD"; then
10868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10869 for ac_dir in $PATH; do
10871 test -z "$ac_dir" && ac_dir=.
10872 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10873 lt_cv_path_LD="$ac_dir/$ac_prog"
10874 # Check to see if the program is GNU ld. I'd rather use --version,
10875 # but apparently some variants of GNU ld only accept -v.
10876 # Break only if it was the GNU/non-GNU ld that we prefer.
10877 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10878 *GNU* | *'with BFD'*)
10879 test "$with_gnu_ld" != no && break
10882 test "$with_gnu_ld" != yes && break
10889 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10893 LD="$lt_cv_path_LD"
10894 if test -n "$LD"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10896 $as_echo "$LD" >&6; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10901 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10904 if ${lt_cv_prog_gnu_ld+:} false; then :
10905 $as_echo_n "(cached) " >&6
10907 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10908 case `$LD -v 2>&1 </dev/null` in
10909 *GNU* | *'with BFD'*)
10910 lt_cv_prog_gnu_ld=yes
10913 lt_cv_prog_gnu_ld=no
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10918 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10919 with_gnu_ld=$lt_cv_prog_gnu_ld
10923 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10924 # archiving commands below assume that GNU ld is being used.
10925 if test "$with_gnu_ld" = yes; then
10926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10927 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'
10929 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10932 # If archive_cmds runs LD, not CC, wlarc should be empty
10933 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10934 # investigate it a little bit more. (MM)
10937 # ancient GNU ld didn't support --whole-archive et. al.
10938 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10939 grep 'no-whole-archive' > /dev/null; then
10940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10942 whole_archive_flag_spec_CXX=
10948 # A generic and very simple default shared library creation
10949 # command for GNU C++ for the case where it uses the native
10950 # linker, instead of GNU ld. If possible, this setting should
10951 # overridden to take advantage of the native linker features on
10952 # the platform it is being used on.
10953 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10956 # Commands to make compiler produce verbose output that lists
10957 # what "hidden" libraries, object files and flags are used when
10958 # linking a shared library.
10959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10967 # PORTME: fill in a description of your system's C++ link characteristics
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10973 # FIXME: insert proper C++ library support
10977 if test "$host_cpu" = ia64; then
10978 # On IA64, the linker does run time linking by default, so we don't
10979 # have to do anything special.
10980 aix_use_runtimelinking=no
10981 exp_sym_flag='-Bexport'
10984 aix_use_runtimelinking=no
10986 # Test if we are trying to use run time linking or normal
10987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10988 # need to do runtime linking.
10989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10990 for ld_flag in $LDFLAGS; do
10993 aix_use_runtimelinking=yes
11001 exp_sym_flag='-bexport'
11002 no_entry_flag='-bnoentry'
11005 # When large executables or shared objects are built, AIX ld can
11006 # have problems creating the table of contents. If linking a library
11007 # or program results in "error TOC overflow" add -mminimal-toc to
11008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11011 archive_cmds_CXX=''
11012 hardcode_direct_CXX=yes
11013 hardcode_libdir_separator_CXX=':'
11014 link_all_deplibs_CXX=yes
11016 if test "$GXX" = yes; then
11017 case $host_os in aix4.[012]|aix4.[012].*)
11018 # We only want to do this on AIX 4.2 and lower, the check
11019 # below for broken collect2 doesn't work under 4.3+
11020 collect2name=`${CC} -print-prog-name=collect2`
11021 if test -f "$collect2name" && \
11022 strings "$collect2name" | grep resolve_lib_name >/dev/null
11024 # We have reworked collect2
11027 # We have old collect2
11028 hardcode_direct_CXX=unsupported
11029 # It fails to find uninstalled libraries when the uninstalled
11030 # path is not listed in the libpath. Setting hardcode_minus_L
11031 # to unsupported forces relinking
11032 hardcode_minus_L_CXX=yes
11033 hardcode_libdir_flag_spec_CXX='-L$libdir'
11034 hardcode_libdir_separator_CXX=
11038 shared_flag='-shared'
11039 if test "$aix_use_runtimelinking" = yes; then
11040 shared_flag="$shared_flag "'${wl}-G'
11044 if test "$host_cpu" = ia64; then
11045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11046 # chokes on -Wl,-G. The following line is correct:
11049 if test "$aix_use_runtimelinking" = yes; then
11050 shared_flag='${wl}-G'
11052 shared_flag='${wl}-bM:SRE'
11057 # It seems that -bexpall does not export symbols beginning with
11058 # underscore (_), so it is better to generate a list of symbols to export.
11059 always_export_symbols_CXX=yes
11060 if test "$aix_use_runtimelinking" = yes; then
11061 # Warning - without using the other runtime loading flags (-brtl),
11062 # -berok will link without error, but may produce a broken library.
11063 allow_undefined_flag_CXX='-berok'
11064 # Determine the default libpath from the value encoded in an empty executable.
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11076 if ac_fn_cxx_try_link "$LINENO"; then :
11078 lt_aix_libpath_sed='
11079 /Import File Strings/,/^$/ {
11085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11086 # Check for a 64-bit object if we didn't find anything.
11087 if test -z "$aix_libpath"; then
11088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11097 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11099 if test "$host_cpu" = ia64; then
11100 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11101 allow_undefined_flag_CXX="-z nodefs"
11102 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"
11104 # Determine the default libpath from the value encoded in an empty executable.
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11116 if ac_fn_cxx_try_link "$LINENO"; then :
11118 lt_aix_libpath_sed='
11119 /Import File Strings/,/^$/ {
11125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11126 # Check for a 64-bit object if we didn't find anything.
11127 if test -z "$aix_libpath"; then
11128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11135 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11136 # Warning - without using the other run time loading flags,
11137 # -berok will link without error, but may produce a broken library.
11138 no_undefined_flag_CXX=' ${wl}-bernotok'
11139 allow_undefined_flag_CXX=' ${wl}-berok'
11140 # Exported symbols can be pulled into shared objects from archives
11141 whole_archive_flag_spec_CXX='$convenience'
11142 archive_cmds_need_lc_CXX=yes
11143 # This is similar to how AIX traditionally builds its shared libraries.
11144 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'
11150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11151 allow_undefined_flag_CXX=unsupported
11152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11153 # support --undefined. This deserves some investigation. FIXME
11154 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11161 case $cc_basename in
11163 # FIXME: insert proper C++ library support
11169 cygwin* | mingw* | pw32*)
11170 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11171 # as there is no search path for DLLs.
11172 hardcode_libdir_flag_spec_CXX='-L$libdir'
11173 allow_undefined_flag_CXX=unsupported
11174 always_export_symbols_CXX=no
11175 enable_shared_with_static_runtimes_CXX=yes
11177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11178 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'
11179 # If the export-symbols file already is a .def file (1st line
11180 # is EXPORTS), use it as is; otherwise, prepend...
11181 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11182 cp $export_symbols $output_objdir/$soname.def;
11184 echo EXPORTS > $output_objdir/$soname.def;
11185 cat $export_symbols >> $output_objdir/$soname.def;
11187 $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'
11192 darwin* | rhapsody*)
11193 archive_cmds_need_lc_CXX=no
11194 hardcode_direct_CXX=no
11195 hardcode_automatic_CXX=yes
11196 hardcode_shlibpath_var_CXX=unsupported
11197 whole_archive_flag_spec_CXX=''
11198 link_all_deplibs_CXX=yes
11199 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11200 if test "$GXX" = yes ; then
11201 output_verbose_link_cmd='echo'
11202 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}"
11203 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11204 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}"
11205 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}"
11206 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11207 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}"
11208 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}"
11211 case $cc_basename in
11213 output_verbose_link_cmd='echo'
11214 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11215 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11217 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11218 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11228 case $cc_basename in
11230 # FIXME: insert proper C++ library support
11234 # Green Hills C++ Compiler
11235 # FIXME: insert proper C++ library support
11239 # FIXME: insert proper C++ library support
11245 # C++ shared libraries reported to be fairly broken before switch to ELF
11249 archive_cmds_need_lc_CXX=no
11251 freebsd* | dragonfly*)
11252 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11259 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260 hardcode_libdir_separator_CXX=:
11261 export_dynamic_flag_spec_CXX='${wl}-E'
11262 hardcode_direct_CXX=yes
11263 hardcode_minus_L_CXX=yes # Not in the search PATH,
11264 # but as the default
11265 # location of the library.
11267 case $cc_basename in
11269 # FIXME: insert proper C++ library support
11273 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'
11274 # Commands to make compiler produce verbose output that lists
11275 # what "hidden" libraries, object files and flags are used when
11276 # linking a shared library.
11278 # There doesn't appear to be a way to prevent this compiler from
11279 # explicitly linking system object files so we need to strip them
11280 # from the output so that they don't get included in the library
11282 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; echo $list'
11285 if test "$GXX" = yes; then
11286 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'
11288 # FIXME: insert proper C++ library support
11295 if test $with_gnu_ld = no; then
11296 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11297 hardcode_libdir_separator_CXX=:
11302 export_dynamic_flag_spec_CXX='${wl}-E'
11308 hardcode_direct_CXX=no
11309 hardcode_shlibpath_var_CXX=no
11312 hardcode_direct_CXX=yes
11313 hardcode_minus_L_CXX=yes # Not in the search PATH,
11314 # but as the default
11315 # location of the library.
11319 case $cc_basename in
11321 # FIXME: insert proper C++ library support
11327 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11330 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11333 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336 # Commands to make compiler produce verbose output that lists
11337 # what "hidden" libraries, object files and flags are used when
11338 # linking a shared library.
11340 # There doesn't appear to be a way to prevent this compiler from
11341 # explicitly linking system object files so we need to strip them
11342 # from the output so that they don't get included in the library
11344 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; echo $list'
11347 if test "$GXX" = yes; then
11348 if test $with_gnu_ld = no; then
11351 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11357 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'
11362 # FIXME: insert proper C++ library support
11369 hardcode_direct_CXX=no
11370 hardcode_shlibpath_var_CXX=no
11371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11372 export_dynamic_flag_spec_CXX='${wl}-E'
11373 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11374 # Instead, shared libraries are loaded at an image base (0x10000000 by
11375 # default) and relocated if they conflict, which is a slow very memory
11376 # consuming and fragmenting process. To avoid this, we pick a random,
11377 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11378 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11379 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'
11380 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'
11383 case $cc_basename in
11386 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11388 # Archives containing C++ object files must be created using
11389 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11390 # necessary to make sure instantiated templates are included
11392 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11395 if test "$GXX" = yes; then
11396 if test "$with_gnu_ld" = no; then
11397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11402 link_all_deplibs_CXX=yes
11405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11406 hardcode_libdir_separator_CXX=:
11408 linux* | k*bsd*-gnu)
11409 case $cc_basename in
11411 # Kuck and Associates, Inc. (KAI) C++ Compiler
11413 # KCC will only create a shared library if the output file
11414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11415 # to its proper name (with version) after linking.
11416 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'
11417 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'
11418 # Commands to make compiler produce verbose output that lists
11419 # what "hidden" libraries, object files and flags are used when
11420 # linking a shared library.
11422 # There doesn't appear to be a way to prevent this compiler from
11423 # explicitly linking system object files so we need to strip them
11424 # from the output so that they don't get included in the library
11426 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; echo $list'
11428 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11431 # Archives containing C++ object files must be created using
11432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11438 # version 8.0 and above of icpc choke on multiply defined symbols
11439 # if we add $predep_objects and $postdep_objects, however 7.1 and
11440 # earlier do not add the objects themselves.
11441 case `$CC -V 2>&1` in
11443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11444 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'
11446 *) # Version 8.0 or newer
11449 ia64*) tmp_idyn=' -i_dynamic';;
11451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452 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'
11455 archive_cmds_need_lc_CXX=no
11456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11458 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11461 # Portland Group C++ compiler
11462 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11463 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'
11465 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11474 runpath_var=LD_RUN_PATH
11475 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11476 hardcode_libdir_separator_CXX=:
11478 # Commands to make compiler produce verbose output that lists
11479 # what "hidden" libraries, object files and flags are used when
11480 # linking a shared library.
11482 # There doesn't appear to be a way to prevent this compiler from
11483 # explicitly linking system object files so we need to strip them
11484 # from the output so that they don't get included in the library
11486 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11489 case `$CC -V 2>&1 | sed 5q` in
11492 no_undefined_flag_CXX=' -zdefs'
11493 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11494 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'
11495 hardcode_libdir_flag_spec_CXX='-R$libdir'
11496 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11498 # Not sure whether something based on
11499 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11501 output_verbose_link_cmd='echo'
11503 # Archives containing C++ object files must be created using
11504 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11505 # necessary to make sure instantiated templates are included
11507 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11514 # FIXME: insert proper C++ library support
11518 # FIXME: insert proper C++ library support
11522 case $cc_basename in
11524 # FIXME: insert proper C++ library support
11528 # FIXME: insert proper C++ library support
11533 netbsd* | netbsdelf*-gnu)
11534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11535 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11537 hardcode_libdir_flag_spec_CXX='-R$libdir'
11538 hardcode_direct_CXX=yes
11539 hardcode_shlibpath_var_CXX=no
11541 # Workaround some broken pre-1.5 toolchains
11542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11545 # C++ shared libraries are fairly broken
11549 if test -f /usr/libexec/ld.so; then
11550 hardcode_direct_CXX=yes
11551 hardcode_shlibpath_var_CXX=no
11552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11556 export_dynamic_flag_spec_CXX='${wl}-E'
11557 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11559 output_verbose_link_cmd='echo'
11565 case $cc_basename in
11567 # Kuck and Associates, Inc. (KAI) C++ Compiler
11569 # KCC will only create a shared library if the output file
11570 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11571 # to its proper name (with version) after linking.
11572 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'
11574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11575 hardcode_libdir_separator_CXX=:
11577 # Archives containing C++ object files must be created using
11578 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11579 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11583 # Rational C++ 2.4.1
11584 # FIXME: insert proper C++ library support
11588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11589 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592 hardcode_libdir_separator_CXX=:
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11598 # There doesn't appear to be a way to prevent this compiler from
11599 # explicitly linking system object files so we need to strip them
11600 # from the output so that they don't get included in the library
11602 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11607 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11610 hardcode_libdir_separator_CXX=:
11612 # Commands to make compiler produce verbose output that lists
11613 # what "hidden" libraries, object files and flags are used when
11614 # linking a shared library.
11615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11618 # FIXME: insert proper C++ library support
11625 case $cc_basename in
11627 # Kuck and Associates, Inc. (KAI) C++ Compiler
11629 # KCC will only create a shared library if the output file
11630 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11631 # to its proper name (with version) after linking.
11632 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'
11634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11635 hardcode_libdir_separator_CXX=:
11637 # Archives containing C++ object files must be created using
11638 # the KAI C++ compiler.
11639 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11642 # Rational C++ 2.4.1
11643 # FIXME: insert proper C++ library support
11647 allow_undefined_flag_CXX=' -expect_unresolved \*'
11648 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11649 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11650 echo "-hidden">> $lib.exp~
11651 $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~
11654 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11655 hardcode_libdir_separator_CXX=:
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11661 # There doesn't appear to be a way to prevent this compiler from
11662 # explicitly linking system object files so we need to strip them
11663 # from the output so that they don't get included in the library
11665 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11669 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11670 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11673 hardcode_libdir_separator_CXX=:
11675 # Commands to make compiler produce verbose output that lists
11676 # what "hidden" libraries, object files and flags are used when
11677 # linking a shared library.
11678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11681 # FIXME: insert proper C++ library support
11688 # FIXME: insert proper C++ library support
11692 case $cc_basename in
11695 # FIXME: insert proper C++ library support
11700 # FIXME: insert proper C++ library support
11704 # FIXME: insert proper C++ library support
11710 case $cc_basename in
11712 # Sun C++ 4.2, 5.x and Centerline C++
11713 archive_cmds_need_lc_CXX=yes
11714 no_undefined_flag_CXX=' -zdefs'
11715 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11716 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11717 $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'
11719 hardcode_libdir_flag_spec_CXX='-R$libdir'
11720 hardcode_shlibpath_var_CXX=no
11722 solaris2.[0-5] | solaris2.[0-5].*) ;;
11724 # The compiler driver will combine and reorder linker options,
11725 # but understands `-z linker_flag'.
11726 # Supported since Solaris 2.6 (maybe 2.5.1?)
11727 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11730 link_all_deplibs_CXX=yes
11732 output_verbose_link_cmd='echo'
11734 # Archives containing C++ object files must be created using
11735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11736 # necessary to make sure instantiated templates are included
11738 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11741 # Green Hills C++ Compiler
11742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744 # The C++ compiler must be used to create the archive.
11745 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11748 # GNU C++ compiler with Solaris linker
11749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11750 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11751 if $CC --version | grep -v '^2\.7' > /dev/null; then
11752 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11753 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11754 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11756 # Commands to make compiler produce verbose output that lists
11757 # what "hidden" libraries, object files and flags are used when
11758 # linking a shared library.
11759 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11763 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767 # Commands to make compiler produce verbose output that lists
11768 # what "hidden" libraries, object files and flags are used when
11769 # linking a shared library.
11770 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11773 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11775 solaris2.[0-5] | solaris2.[0-5].*) ;;
11777 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11785 no_undefined_flag_CXX='${wl}-z,text'
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_shlibpath_var_CXX=no
11788 runpath_var='LD_RUN_PATH'
11790 case $cc_basename in
11792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11796 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 sysv5* | sco3.2v5* | sco5v6*)
11802 # Note: We can NOT use -z defs as we might desire, because we do not
11803 # link with -lc, and that would cause any symbols used from libc to
11804 # always be unresolved, which means just about no library would
11805 # ever link correctly. If we're not using GNU ld we use -z text
11806 # though, which does catch some bad symbols but isn't as heavy-handed
11808 # For security reasons, it is highly recommended that you always
11809 # use absolute paths for naming shared libraries, and exclude the
11810 # DT_RUNPATH tag from executables and libraries. But doing so
11811 # requires that you compile everything twice, which is a pain.
11812 # So that behaviour is only enabled if SCOABSPATH is set to a
11813 # non-empty value in the environment. Most likely only useful for
11814 # creating official distributions of packages.
11815 # This is a hack until libtool officially supports absolute path
11816 # names for shared libraries.
11817 no_undefined_flag_CXX='${wl}-z,text'
11818 allow_undefined_flag_CXX='${wl}-z,nodefs'
11819 archive_cmds_need_lc_CXX=no
11820 hardcode_shlibpath_var_CXX=no
11821 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11822 hardcode_libdir_separator_CXX=':'
11823 link_all_deplibs_CXX=yes
11824 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11825 runpath_var='LD_RUN_PATH'
11827 case $cc_basename in
11829 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11833 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 case $cc_basename in
11841 # NonStop-UX NCC 3.20
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11852 # FIXME: insert proper C++ library support
11856 # FIXME: insert proper C++ library support
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11861 $as_echo "$ld_shlibs_CXX" >&6; }
11862 test "$ld_shlibs_CXX" = no && can_build_shared=no
11867 cat > conftest.$ac_ext <<EOF
11871 Foo (void) { a = 0; }
11877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11878 (eval $ac_compile) 2>&5
11880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; }; then
11882 # Parse the compiler output and extract the necessary
11883 # objects, libraries and library flags.
11885 # Sentinel used to keep track of whether or not we are before
11886 # the conftest object file.
11887 pre_test_object_deps_done=no
11889 # The `*' in the case matches for architectures that use `case' in
11890 # $output_verbose_cmd can trigger glob expansion during the loop
11891 # eval without this substitution.
11892 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11894 for p in `eval $output_verbose_link_cmd`; do
11898 # Some compilers place space between "-{L,R}" and the path.
11899 # Remove the space.
11900 if test $p = "-L" \
11901 || test $p = "-R"; then
11908 if test "$pre_test_object_deps_done" = no; then
11911 # Internal compiler library paths should come after those
11912 # provided the user. The postdeps already come after the
11913 # user supplied libs so there is no need to process them.
11914 if test -z "$compiler_lib_search_path_CXX"; then
11915 compiler_lib_search_path_CXX="${prev}${p}"
11917 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11920 # The "-l" case would never come before the object being
11921 # linked, so don't bother handling this case.
11924 if test -z "$postdeps_CXX"; then
11925 postdeps_CXX="${prev}${p}"
11927 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11933 # This assumes that the test object file only shows up
11934 # once in the compiler output.
11935 if test "$p" = "conftest.$objext"; then
11936 pre_test_object_deps_done=yes
11940 if test "$pre_test_object_deps_done" = no; then
11941 if test -z "$predep_objects_CXX"; then
11942 predep_objects_CXX="$p"
11944 predep_objects_CXX="$predep_objects_CXX $p"
11947 if test -z "$postdep_objects_CXX"; then
11948 postdep_objects_CXX="$p"
11950 postdep_objects_CXX="$postdep_objects_CXX $p"
11955 *) ;; # Ignore the rest.
11963 echo "libtool.m4: error: problem compiling CXX test program"
11966 $rm -f confest.$objext
11968 compiler_lib_search_dirs_CXX=
11969 if test -n "$compiler_lib_search_path_CXX"; then
11970 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11973 # PORTME: override above test on systems where it is broken
11976 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11977 # hack all around it, let's just trust "g++" to DTRT.
11978 predep_objects_CXX=
11979 postdep_objects_CXX=
11984 case `$CC -V 2>&1 | sed 5q` in
11988 # The more standards-conforming stlport4 library is
11989 # incompatible with the Cstd library. Avoid specifying
11990 # it if it's in CXXFLAGS. Ignore libCrun as
11991 # -library=stlport4 depends on it.
11992 case " $CXX $CXXFLAGS " in
11993 *" -library=stlport4 "*)
11994 solaris_use_stlport4=yes
11997 if test "$solaris_use_stlport4" != yes; then
11998 postdeps_CXX='-library=Cstd -library=Crun'
12005 case $cc_basename in
12007 # The more standards-conforming stlport4 library is
12008 # incompatible with the Cstd library. Avoid specifying
12009 # it if it's in CXXFLAGS. Ignore libCrun as
12010 # -library=stlport4 depends on it.
12011 case " $CXX $CXXFLAGS " in
12012 *" -library=stlport4 "*)
12013 solaris_use_stlport4=yes
12017 # Adding this requires a known-good setup of shared libraries for
12018 # Sun compiler versions before 5.6, else PIC objects from an old
12019 # archive will be linked into the output, leading to subtle bugs.
12020 if test "$solaris_use_stlport4" != yes; then
12021 postdeps_CXX='-library=Cstd -library=Crun'
12028 case " $postdeps_CXX " in
12029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12032 lt_prog_compiler_wl_CXX=
12033 lt_prog_compiler_pic_CXX=
12034 lt_prog_compiler_static_CXX=
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12037 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12039 # C++ specific cases for pic, static, wl, etc.
12040 if test "$GXX" = yes; then
12041 lt_prog_compiler_wl_CXX='-Wl,'
12042 lt_prog_compiler_static_CXX='-static'
12046 # All AIX code is PIC.
12047 if test "$host_cpu" = ia64; then
12048 # AIX 5 now supports IA64 processor
12049 lt_prog_compiler_static_CXX='-Bstatic'
12053 # FIXME: we need at least 68020 code to build shared libraries, but
12054 # adding the `-m68020' flag to GCC prevents building anything better,
12056 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12059 # PIC is the default for these OSes.
12061 mingw* | cygwin* | os2* | pw32*)
12062 # This hack is so that the source file can tell whether it is being
12063 # built for inclusion in a dll (and should export symbols for example).
12064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12065 # (--disable-auto-import) libraries
12066 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12068 darwin* | rhapsody*)
12069 # PIC is the default on this platform
12070 # Common symbols not allowed in MH_DYLIB files
12071 lt_prog_compiler_pic_CXX='-fno-common'
12074 # DJGPP does not support shared libraries at all
12075 lt_prog_compiler_pic_CXX=
12078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079 # Instead, we relocate shared libraries at runtime.
12082 if test -d /usr/nec; then
12083 lt_prog_compiler_pic_CXX=-Kconform_pic
12087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088 # not for PA HP-UX.
12093 lt_prog_compiler_pic_CXX='-fPIC'
12098 lt_prog_compiler_pic_CXX='-fPIC'
12104 # All AIX code is PIC.
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_CXX='-Bstatic'
12109 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12113 case $cc_basename in
12115 # Green Hills C++ Compiler
12116 # _LT_AC_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"
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 case $cc_basename in
12125 lt_prog_compiler_pic_CXX='-qnocommon'
12126 lt_prog_compiler_wl_CXX='-Wl,'
12131 case $cc_basename in
12133 lt_prog_compiler_pic_CXX='-KPIC'
12136 # Green Hills C++ Compiler
12137 lt_prog_compiler_pic_CXX='-pic'
12143 freebsd* | dragonfly*)
12144 # FreeBSD uses GNU C++
12146 hpux9* | hpux10* | hpux11*)
12147 case $cc_basename in
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151 if test "$host_cpu" != ia64; then
12152 lt_prog_compiler_pic_CXX='+Z'
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12163 lt_prog_compiler_pic_CXX='+Z'
12172 # This is c89, which is MS Visual C++ (no shared libs)
12173 # Anyone wants to do a port?
12175 irix5* | irix6* | nonstopux*)
12176 case $cc_basename in
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 lt_prog_compiler_static_CXX='-non_shared'
12180 # CC pic flag -KPIC is the default.
12186 linux* | k*bsd*-gnu)
12187 case $cc_basename in
12190 lt_prog_compiler_wl_CXX='--backend -Wl,'
12191 lt_prog_compiler_pic_CXX='-fPIC'
12195 lt_prog_compiler_wl_CXX='-Wl,'
12196 lt_prog_compiler_pic_CXX='-KPIC'
12197 lt_prog_compiler_static_CXX='-static'
12200 # Portland Group C++ compiler.
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_pic_CXX='-fpic'
12203 lt_prog_compiler_static_CXX='-Bstatic'
12207 # Make sure the PIC flag is empty. It appears that all Alpha
12208 # Linux and Compaq Tru64 Unix objects are PIC.
12209 lt_prog_compiler_pic_CXX=
12210 lt_prog_compiler_static_CXX='-non_shared'
12213 case `$CC -V 2>&1 | sed 5q` in
12216 lt_prog_compiler_pic_CXX='-KPIC'
12217 lt_prog_compiler_static_CXX='-Bstatic'
12218 lt_prog_compiler_wl_CXX='-Qoption ld '
12229 case $cc_basename in
12231 lt_prog_compiler_pic_CXX='-W c,exportall'
12237 netbsd* | netbsdelf*-gnu)
12239 osf3* | osf4* | osf5*)
12240 case $cc_basename in
12242 lt_prog_compiler_wl_CXX='--backend -Wl,'
12245 # Rational C++ 2.4.1
12246 lt_prog_compiler_pic_CXX='-pic'
12249 # Digital/Compaq C++
12250 lt_prog_compiler_wl_CXX='-Wl,'
12251 # Make sure the PIC flag is empty. It appears that all Alpha
12252 # Linux and Compaq Tru64 Unix objects are PIC.
12253 lt_prog_compiler_pic_CXX=
12254 lt_prog_compiler_static_CXX='-non_shared'
12263 case $cc_basename in
12265 # Sun C++ 4.2, 5.x and Centerline C++
12266 lt_prog_compiler_pic_CXX='-KPIC'
12267 lt_prog_compiler_static_CXX='-Bstatic'
12268 lt_prog_compiler_wl_CXX='-Qoption ld '
12271 # Green Hills C++ Compiler
12272 lt_prog_compiler_pic_CXX='-PIC'
12279 case $cc_basename in
12282 lt_prog_compiler_pic_CXX='-pic'
12283 lt_prog_compiler_static_CXX='-Bstatic'
12287 lt_prog_compiler_pic_CXX='-pic'
12294 case $cc_basename in
12296 # NonStop-UX NCC 3.20
12297 lt_prog_compiler_pic_CXX='-KPIC'
12303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12304 case $cc_basename in
12306 lt_prog_compiler_wl_CXX='-Wl,'
12307 lt_prog_compiler_pic_CXX='-KPIC'
12308 lt_prog_compiler_static_CXX='-Bstatic'
12315 lt_prog_compiler_can_build_shared_CXX=no
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12321 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12324 # Check to make sure the PIC flag actually works.
12326 if test -n "$lt_prog_compiler_pic_CXX"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12329 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12330 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12331 $as_echo_n "(cached) " >&6
12333 lt_cv_prog_compiler_pic_works_CXX=no
12334 ac_outfile=conftest.$ac_objext
12335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12336 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12337 # Insert the option either (1) after the last *FLAGS variable, or
12338 # (2) before a word containing "conftest.", or (3) at the end.
12339 # Note that $ac_compile itself does not contain backslashes and begins
12340 # with a dollar sign (not a hyphen), so the echo should work correctly.
12341 # The option is referenced via a variable to avoid confusing sed.
12342 lt_compile=`echo "$ac_compile" | $SED \
12343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12345 -e 's:$: $lt_compiler_flag:'`
12346 (eval echo "\"\$as_me:12346: $lt_compile\"" >&5)
12347 (eval "$lt_compile" 2>conftest.err)
12349 cat conftest.err >&5
12350 echo "$as_me:12350: \$? = $ac_status" >&5
12351 if (exit $ac_status) && test -s "$ac_outfile"; then
12352 # The compiler can only warn and ignore the option if not recognized
12353 # So say no if there are warnings other than the usual output.
12354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12357 lt_cv_prog_compiler_pic_works_CXX=yes
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12364 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12366 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12367 case $lt_prog_compiler_pic_CXX in
12369 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12372 lt_prog_compiler_pic_CXX=
12373 lt_prog_compiler_can_build_shared_CXX=no
12378 # For platforms which do not support PIC, -DPIC is meaningless:
12380 lt_prog_compiler_pic_CXX=
12383 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12388 # Check to make sure the static flag actually works.
12390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12393 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 lt_cv_prog_compiler_static_works_CXX=no
12397 save_LDFLAGS="$LDFLAGS"
12398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12401 # The linker can only warn and ignore the option if not recognized
12402 # So say no if there are warnings
12403 if test -s conftest.err; then
12404 # Append any errors to the config.log.
12405 cat conftest.err 1>&5
12406 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12408 if diff conftest.exp conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_static_works_CXX=yes
12412 lt_cv_prog_compiler_static_works_CXX=yes
12416 LDFLAGS="$save_LDFLAGS"
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12420 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12422 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12425 lt_prog_compiler_static_CXX=
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12431 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 lt_cv_prog_compiler_c_o_CXX=no
12435 $rm -r conftest 2>/dev/null
12439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12441 lt_compiler_flag="-o out/conftest2.$ac_objext"
12442 # Insert the option either (1) after the last *FLAGS variable, or
12443 # (2) before a word containing "conftest.", or (3) at the end.
12444 # Note that $ac_compile itself does not contain backslashes and begins
12445 # with a dollar sign (not a hyphen), so the echo should work correctly.
12446 lt_compile=`echo "$ac_compile" | $SED \
12447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12449 -e 's:$: $lt_compiler_flag:'`
12450 (eval echo "\"\$as_me:12450: $lt_compile\"" >&5)
12451 (eval "$lt_compile" 2>out/conftest.err)
12453 cat out/conftest.err >&5
12454 echo "$as_me:12454: \$? = $ac_status" >&5
12455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12457 # The compiler can only warn and ignore the option if not recognized
12458 # So say no if there are warnings
12459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12462 lt_cv_prog_compiler_c_o_CXX=yes
12467 # SGI C++ compiler will create directory out/ii_files/ for
12468 # template instantiation
12469 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12470 $rm out/* && rmdir out
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12480 hard_links="nottested"
12481 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12482 # do not overwrite the value of need_locks provided by the user
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12484 $as_echo_n "checking if we can lock with hard links... " >&6; }
12487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12489 ln conftest.a conftest.b 2>&5 || hard_links=no
12490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12492 $as_echo "$hard_links" >&6; }
12493 if test "$hard_links" = no; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12495 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12503 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12505 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12508 # If we're using GNU nm, then we don't want the "-C" option.
12509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12510 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12511 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12513 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'
12517 export_symbols_cmds_CXX="$ltdll_cmds"
12520 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'
12522 linux* | k*bsd*-gnu)
12523 link_all_deplibs_CXX=no
12526 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12529 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12532 $as_echo "$ld_shlibs_CXX" >&6; }
12533 test "$ld_shlibs_CXX" = no && can_build_shared=no
12536 # Do we need to explicitly link libc?
12538 case "x$archive_cmds_need_lc_CXX" in
12540 # Assume -lc should be added
12541 archive_cmds_need_lc_CXX=yes
12543 if test "$enable_shared" = yes && test "$GCC" = yes; then
12544 case $archive_cmds_CXX in
12546 # FIXME: we may have to deal with multi-command sequences.
12549 # Test whether the compiler implicitly links with -lc since on some
12550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12551 # to ld, don't add -lc before -lgcc.
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12553 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12558 (eval $ac_compile) 2>&5
12560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561 test $ac_status = 0; } 2>conftest.err; then
12564 libobjs=conftest.$ac_objext
12566 wl=$lt_prog_compiler_wl_CXX
12567 pic_flag=$lt_prog_compiler_pic_CXX
12573 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12574 allow_undefined_flag_CXX=
12575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12576 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579 test $ac_status = 0; }
12581 archive_cmds_need_lc_CXX=no
12583 archive_cmds_need_lc_CXX=yes
12585 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12587 cat conftest.err 1>&5
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12591 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12600 library_names_spec=
12601 libname_spec='lib$name'
12605 postuninstall_cmds=
12609 shlibpath_overrides_runpath=unknown
12611 dynamic_linker="$host_os ld.so"
12612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12614 need_lib_prefix=unknown
12615 hardcode_into_libs=no
12617 # when you set need_version to no, make sure it does not cause -set_version
12618 # flags to be left without arguments
12619 need_version=unknown
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12625 shlibpath_var=LIBPATH
12627 # AIX 3 has no versioning support, so we append a major version to the name.
12628 soname_spec='${libname}${release}${shared_ext}$major'
12635 hardcode_into_libs=yes
12636 if test "$host_cpu" = ia64; then
12637 # AIX 5 supports IA64
12638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12639 shlibpath_var=LD_LIBRARY_PATH
12641 # With GCC up to 2.95.x, collect2 would create an import file
12642 # for dependence libraries. The import file would start with
12643 # the line `#! .'. This would cause the generated library to
12644 # depend on `.', always an invalid library. This was fixed in
12645 # development snapshots of GCC prior to 3.0.
12647 aix4 | aix4.[01] | aix4.[01].*)
12648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12653 can_build_shared=no
12657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12658 # soname into executable. Probably we can add versioning support to
12659 # collect2, so additional links can be useful in future.
12660 if test "$aix_use_runtimelinking" = yes; then
12661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12662 # instead of lib<name>.a to let people know that these are not
12663 # typical AIX shared libraries.
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 # We preserve .a as extension for shared libraries through AIX4.2
12667 # and later when we are not doing run time linking.
12668 library_names_spec='${libname}${release}.a $libname.a'
12669 soname_spec='${libname}${release}${shared_ext}$major'
12671 shlibpath_var=LIBPATH
12676 library_names_spec='$libname.ixlibrary $libname.a'
12677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12678 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12682 library_names_spec='${libname}${shared_ext}'
12683 dynamic_linker="$host_os ld.so"
12684 shlibpath_var=LIBRARY_PATH
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12696 # the default ld.so.conf also contains /usr/contrib/lib and
12697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12698 # libtool to hard-code these into programs
12701 cygwin* | mingw* | pw32*)
12702 version_type=windows
12707 case $GCC,$host_os in
12708 yes,cygwin* | yes,mingw* | yes,pw32*)
12709 library_names_spec='$libname.dll.a'
12710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12711 postinstall_cmds='base_file=`basename \${file}`~
12712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12713 dldir=$destdir/`dirname \$dlpath`~
12714 test -d \$dldir || mkdir -p \$dldir~
12715 $install_prog $dir/$dlname \$dldir/$dlname~
12716 chmod a+x \$dldir/$dlname'
12717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12718 dlpath=$dir/\$dldll~
12720 shlibpath_overrides_runpath=yes
12724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12729 # MinGW DLLs use traditional 'lib' prefix
12730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12733 # It is most probably a Windows format PATH printed by
12734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12735 # path with ; separators, and with drive letters. We can handle the
12736 # drive letters (cygwin fileutils understands them), so leave them,
12737 # especially as we might pass files found there to a mingw objdump,
12738 # which wouldn't understand a cygwinified path. Ahh.
12739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12745 # pw32 DLLs use 'pw' prefix rather than 'lib'
12746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12755 dynamic_linker='Win32 ld.exe'
12756 # FIXME: first we should search . and the directory the executable is in
12760 darwin* | rhapsody*)
12761 dynamic_linker="$host_os dyld"
12762 version_type=darwin
12765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12766 soname_spec='${libname}${release}${major}$shared_ext'
12767 shlibpath_overrides_runpath=yes
12768 shlibpath_var=DYLD_LIBRARY_PATH
12769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12779 soname_spec='${libname}${release}${shared_ext}$major'
12780 shlibpath_var=LD_LIBRARY_PATH
12787 freebsd* | dragonfly*)
12788 # DragonFly does not have aout. When/if they implement a new
12789 # versioning mechanism, adjust this.
12790 if test -x /usr/bin/objformat; then
12791 objformat=`/usr/bin/objformat`
12794 freebsd[123]*) objformat=aout ;;
12795 *) objformat=elf ;;
12798 version_type=freebsd-$objformat
12799 case $version_type in
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12810 shlibpath_var=LD_LIBRARY_PATH
12813 shlibpath_overrides_runpath=yes
12815 freebsd3.[01]* | freebsdelf3.[01]*)
12816 shlibpath_overrides_runpath=yes
12817 hardcode_into_libs=yes
12819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12821 shlibpath_overrides_runpath=no
12822 hardcode_into_libs=yes
12824 *) # from 4.6 on, and DragonFly
12825 shlibpath_overrides_runpath=yes
12826 hardcode_into_libs=yes
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 shlibpath_var=LD_LIBRARY_PATH
12838 hardcode_into_libs=yes
12841 hpux9* | hpux10* | hpux11*)
12842 # Give a soname corresponding to the major version so that dld.sl refuses to
12843 # link against other versions.
12850 hardcode_into_libs=yes
12851 dynamic_linker="$host_os dld.so"
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 if test "X$HPUX_IA64_MODE" = X32; then
12857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12865 hardcode_into_libs=yes
12866 dynamic_linker="$host_os dld.sl"
12867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12876 dynamic_linker="$host_os dld.sl"
12877 shlibpath_var=SHLIB_PATH
12878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12884 postinstall_cmds='chmod 555 $lib'
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 shlibpath_overrides_runpath=no
12896 hardcode_into_libs=yes
12899 irix5* | irix6* | nonstopux*)
12901 nonstopux*) version_type=nonstopux ;;
12903 if test "$lt_cv_prog_gnu_ld" = yes; then
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12914 irix5* | nonstopux*)
12915 libsuff= shlibsuff=
12918 case $LD in # libtool.m4 will add one of these switches to LD
12919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12920 libsuff= shlibsuff= libmagic=32-bit;;
12921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12922 libsuff=32 shlibsuff=N32 libmagic=N32;;
12923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12925 *) libsuff= shlibsuff= libmagic=never-match;;
12929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12930 shlibpath_overrides_runpath=no
12931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12933 hardcode_into_libs=yes
12936 # No shared lib support for Linux oldld, aout, or coff.
12937 linux*oldld* | linux*aout* | linux*coff*)
12941 # This must be Linux ELF.
12942 linux* | k*bsd*-gnu)
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=no
12951 # This implies no fast_install, which is unacceptable.
12952 # Some rework will be needed to allow for fast_install
12953 # before this can be enabled.
12954 hardcode_into_libs=yes
12956 # Append ld.so.conf contents to the search path
12957 if test -f /etc/ld.so.conf; then
12958 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;/^$/d' | tr '\n' ' '`
12959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12962 # We used to test for /lib/ld.so.1 and disable shared libraries on
12963 # powerpc, because MkLinux only supported shared libraries with the
12964 # GNU dynamic linker. Since this was broken with cross compilers,
12965 # most powerpc-linux boxes support dynamic linking these days and
12966 # people can always --disable-shared, the test was removed, and we
12967 # assume the GNU/Linux dynamic linker is in use.
12968 dynamic_linker='GNU/Linux ld.so'
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=no
12979 hardcode_into_libs=yes
12980 dynamic_linker='NetBSD ld.elf_so'
12987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12990 dynamic_linker='NetBSD (a.out) ld.so'
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 dynamic_linker='NetBSD ld.elf_so'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=yes
12998 hardcode_into_libs=yes
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=yes
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013 soname_spec='${libname}${release}${shared_ext}$major'
13014 shlibpath_var=LD_LIBRARY_PATH
13015 shlibpath_overrides_runpath=yes
13020 sys_lib_dlsearch_path_spec="/usr/lib"
13022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13025 *) need_version=no ;;
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13032 openbsd2.[89] | openbsd2.[89].*)
13033 shlibpath_overrides_runpath=no
13036 shlibpath_overrides_runpath=yes
13040 shlibpath_overrides_runpath=yes
13045 libname_spec='$name'
13048 library_names_spec='$libname${shared_ext} $libname.a'
13049 dynamic_linker='OS/2 ld.exe'
13050 shlibpath_var=LIBPATH
13053 osf3* | osf4* | osf5*)
13057 soname_spec='${libname}${release}${shared_ext}$major'
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 shlibpath_var=LD_LIBRARY_PATH
13075 shlibpath_overrides_runpath=yes
13076 hardcode_into_libs=yes
13077 # ldd complains unless libraries are executable
13078 postinstall_cmds='chmod +x $lib'
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 shlibpath_overrides_runpath=yes
13087 if test "$with_gnu_ld" = yes; then
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13096 soname_spec='${libname}${release}${shared_ext}$major'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 case $host_vendor in
13100 shlibpath_overrides_runpath=no
13102 export_dynamic_flag_spec='${wl}-Blargedynsym'
13103 runpath_var=LD_RUN_PATH
13111 shlibpath_overrides_runpath=no
13112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13118 if test -d /usr/nec ;then
13120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13121 soname_spec='$libname${shared_ext}.$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13127 version_type=freebsd-elf
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13131 soname_spec='${libname}${release}${shared_ext}$major'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 hardcode_into_libs=yes
13134 if test "$with_gnu_ld" = yes; then
13135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13136 shlibpath_overrides_runpath=no
13138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13139 shlibpath_overrides_runpath=yes
13142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13146 sys_lib_dlsearch_path_spec='/usr/lib'
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13152 soname_spec='${libname}${release}${shared_ext}$major'
13153 shlibpath_var=LD_LIBRARY_PATH
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13161 $as_echo "$dynamic_linker" >&6; }
13162 test "$dynamic_linker" = no && can_build_shared=no
13164 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13165 $as_echo_n "(cached) " >&6
13167 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13170 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13171 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13172 $as_echo_n "(cached) " >&6
13174 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13177 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13180 if test "$GCC" = yes; then
13181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13186 hardcode_action_CXX=
13187 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13188 test -n "$runpath_var_CXX" || \
13189 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13191 # We can hardcode non-existant directories.
13192 if test "$hardcode_direct_CXX" != no &&
13193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13194 # have to relink, otherwise we might link with an installed library
13195 # when we should be linking with a yet-to-be-installed one
13196 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13197 test "$hardcode_minus_L_CXX" != no; then
13198 # Linking always hardcodes the temporary library directory.
13199 hardcode_action_CXX=relink
13201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13202 hardcode_action_CXX=immediate
13205 # We cannot hardcode anything, or else we can only hardcode existing
13207 hardcode_action_CXX=unsupported
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13210 $as_echo "$hardcode_action_CXX" >&6; }
13212 if test "$hardcode_action_CXX" = relink; then
13213 # Fast installation is not supported
13214 enable_fast_install=no
13215 elif test "$shlibpath_overrides_runpath" = yes ||
13216 test "$enable_shared" = no; then
13217 # Fast installation is not necessary
13218 enable_fast_install=needless
13222 # The else clause should only fire when bootstrapping the
13223 # libtool distribution, otherwise you forgot to ship ltmain.sh
13224 # with your package, and you will get complaints that there are
13225 # no rules to generate ltmain.sh.
13226 if test -f "$ltmain"; then
13227 # See if we are running on zsh, and set the options which allow our commands through
13228 # without removal of \ escapes.
13229 if test -n "${ZSH_VERSION+set}" ; then
13230 setopt NO_GLOB_SUBST
13232 # Now quote all the things that may contain metacharacters while being
13233 # careful not to overquote the AC_SUBSTed values. We take copies of the
13234 # variables and quote the copies for generation of the libtool script.
13235 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13237 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13238 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13239 deplibs_check_method reload_flag reload_cmds need_locks \
13240 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13241 lt_cv_sys_global_symbol_to_c_name_address \
13242 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13243 old_postinstall_cmds old_postuninstall_cmds \
13247 lt_prog_compiler_wl_CXX \
13248 lt_prog_compiler_pic_CXX \
13249 lt_prog_compiler_static_CXX \
13250 lt_prog_compiler_no_builtin_flag_CXX \
13251 export_dynamic_flag_spec_CXX \
13252 thread_safe_flag_spec_CXX \
13253 whole_archive_flag_spec_CXX \
13254 enable_shared_with_static_runtimes_CXX \
13255 old_archive_cmds_CXX \
13256 old_archive_from_new_cmds_CXX \
13257 predep_objects_CXX \
13258 postdep_objects_CXX \
13261 compiler_lib_search_path_CXX \
13262 compiler_lib_search_dirs_CXX \
13264 archive_expsym_cmds_CXX \
13265 postinstall_cmds_CXX \
13266 postuninstall_cmds_CXX \
13267 old_archive_from_expsyms_cmds_CXX \
13268 allow_undefined_flag_CXX \
13269 no_undefined_flag_CXX \
13270 export_symbols_cmds_CXX \
13271 hardcode_libdir_flag_spec_CXX \
13272 hardcode_libdir_flag_spec_ld_CXX \
13273 hardcode_libdir_separator_CXX \
13274 hardcode_automatic_CXX \
13276 module_expsym_cmds_CXX \
13277 lt_cv_prog_compiler_c_o_CXX \
13278 fix_srcfile_path_CXX \
13279 exclude_expsyms_CXX \
13280 include_expsyms_CXX; do
13283 old_archive_cmds_CXX | \
13284 old_archive_from_new_cmds_CXX | \
13285 archive_cmds_CXX | \
13286 archive_expsym_cmds_CXX | \
13287 module_cmds_CXX | \
13288 module_expsym_cmds_CXX | \
13289 old_archive_from_expsyms_cmds_CXX | \
13290 export_symbols_cmds_CXX | \
13291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13292 postinstall_cmds | postuninstall_cmds | \
13293 old_postinstall_cmds | old_postuninstall_cmds | \
13294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13295 # Double-quote double-evaled strings.
13296 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13305 *'\$0 --fallback-echo"')
13306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13312 cat <<__EOF__ >> "$cfgfile"
13313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13317 # Shell to use when invoking shell scripts.
13320 # Whether or not to build shared libraries.
13321 build_libtool_libs=$enable_shared
13323 # Whether or not to build static libraries.
13324 build_old_libs=$enable_static
13326 # Whether or not to add -lc for building shared libraries.
13327 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13329 # Whether or not to disallow shared libs when runtime libs are static
13330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13332 # Whether or not to optimize for fast installation.
13333 fast_install=$enable_fast_install
13336 host_alias=$host_alias
13340 # The build system.
13341 build_alias=$build_alias
13345 # An echo program that does not interpret backslashes.
13350 AR_FLAGS=$lt_AR_FLAGS
13355 # LTCC compiler flags.
13356 LTCFLAGS=$lt_LTCFLAGS
13358 # A language-specific compiler.
13359 CC=$lt_compiler_CXX
13361 # Is the compiler the GNU C compiler?
13367 # The linker used to build libraries.
13370 # Whether we need hard or soft links.
13373 # A BSD-compatible nm program.
13376 # A symbol stripping program
13379 # Used to examine libraries when file_magic_cmd begins "file"
13380 MAGIC_CMD=$MAGIC_CMD
13382 # Used on cygwin: DLL creation program.
13385 # Used on cygwin: object dumper.
13388 # Used on cygwin: assembler.
13391 # The name of the directory that contains temporary libtool files.
13394 # How to create reloadable object files.
13395 reload_flag=$lt_reload_flag
13396 reload_cmds=$lt_reload_cmds
13398 # How to pass a linker flag through the compiler.
13399 wl=$lt_lt_prog_compiler_wl_CXX
13401 # Object file suffix (normally "o").
13402 objext="$ac_objext"
13404 # Old archive suffix (normally "a").
13407 # Shared library suffix (normally ".so").
13408 shrext_cmds='$shrext_cmds'
13410 # Executable file suffix (normally "").
13413 # Additional compiler flags for building library objects.
13414 pic_flag=$lt_lt_prog_compiler_pic_CXX
13417 # What is the maximum length of a command?
13418 max_cmd_len=$lt_cv_sys_max_cmd_len
13420 # Does compiler simultaneously support -c and -o options?
13421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13423 # Must we lock files when doing compilation?
13424 need_locks=$lt_need_locks
13426 # Do we need the lib prefix for modules?
13427 need_lib_prefix=$need_lib_prefix
13429 # Do we need a version for libraries?
13430 need_version=$need_version
13432 # Whether dlopen is supported.
13433 dlopen_support=$enable_dlopen
13435 # Whether dlopen of programs is supported.
13436 dlopen_self=$enable_dlopen_self
13438 # Whether dlopen of statically linked programs is supported.
13439 dlopen_self_static=$enable_dlopen_self_static
13441 # Compiler flag to prevent dynamic linking.
13442 link_static_flag=$lt_lt_prog_compiler_static_CXX
13444 # Compiler flag to turn off builtin functions.
13445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13447 # Compiler flag to allow reflexive dlopens.
13448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13450 # Compiler flag to generate shared objects directly from archives.
13451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13453 # Compiler flag to generate thread-safe objects.
13454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13456 # Library versioning type.
13457 version_type=$version_type
13459 # Format of library name prefix.
13460 libname_spec=$lt_libname_spec
13462 # List of archive names. First name is the real one, the rest are links.
13463 # The last name is the one that the linker finds with -lNAME.
13464 library_names_spec=$lt_library_names_spec
13466 # The coded name of the library, if different from the real name.
13467 soname_spec=$lt_soname_spec
13469 # Commands used to build and install an old-style archive.
13471 old_archive_cmds=$lt_old_archive_cmds_CXX
13472 old_postinstall_cmds=$lt_old_postinstall_cmds
13473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13475 # Create an old-style archive from a shared archive.
13476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13478 # Create a temporary old-style archive to link instead of a shared archive.
13479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13481 # Commands used to build and install a shared archive.
13482 archive_cmds=$lt_archive_cmds_CXX
13483 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13484 postinstall_cmds=$lt_postinstall_cmds
13485 postuninstall_cmds=$lt_postuninstall_cmds
13487 # Commands used to build a loadable module (assumed same as above if empty)
13488 module_cmds=$lt_module_cmds_CXX
13489 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13491 # Commands to strip libraries.
13492 old_striplib=$lt_old_striplib
13493 striplib=$lt_striplib
13495 # Dependencies to place before the objects being linked to create a
13497 predep_objects=$lt_predep_objects_CXX
13499 # Dependencies to place after the objects being linked to create a
13501 postdep_objects=$lt_postdep_objects_CXX
13503 # Dependencies to place before the objects being linked to create a
13505 predeps=$lt_predeps_CXX
13507 # Dependencies to place after the objects being linked to create a
13509 postdeps=$lt_postdeps_CXX
13511 # The directories searched by this compiler when creating a shared
13513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13515 # The library search path used internally by the compiler when linking
13516 # a shared library.
13517 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13519 # Method to check whether dependent libraries are shared objects.
13520 deplibs_check_method=$lt_deplibs_check_method
13522 # Command to use when deplibs_check_method == file_magic.
13523 file_magic_cmd=$lt_file_magic_cmd
13525 # Flag that allows shared libraries with undefined symbols to be built.
13526 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13528 # Flag that forces no undefined symbols.
13529 no_undefined_flag=$lt_no_undefined_flag_CXX
13531 # Commands used to finish a libtool library installation in a directory.
13532 finish_cmds=$lt_finish_cmds
13534 # Same as above, but a single script fragment to be evaled but not shown.
13535 finish_eval=$lt_finish_eval
13537 # Take the output of nm and produce a listing of raw symbols and C names.
13538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13540 # Transform the output of nm in a proper C declaration
13541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13543 # Transform the output of nm in a C name address pair
13544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13546 # This is the shared library runtime path variable.
13547 runpath_var=$runpath_var
13549 # This is the shared library path variable.
13550 shlibpath_var=$shlibpath_var
13552 # Is shlibpath searched before the hard-coded library search path?
13553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13555 # How to hardcode a shared library path into an executable.
13556 hardcode_action=$hardcode_action_CXX
13558 # Whether we should hardcode library paths into libraries.
13559 hardcode_into_libs=$hardcode_into_libs
13561 # Flag to hardcode \$libdir into a binary during linking.
13562 # This must work even if \$libdir does not exist.
13563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13565 # If ld is used when linking, flag to hardcode \$libdir into
13566 # a binary during linking. This must work even if \$libdir does
13568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13570 # Whether we need a single -rpath flag with a separated argument.
13571 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13573 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13574 # resulting binary.
13575 hardcode_direct=$hardcode_direct_CXX
13577 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13578 # resulting binary.
13579 hardcode_minus_L=$hardcode_minus_L_CXX
13581 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13582 # the resulting binary.
13583 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13585 # Set to yes if building a shared library automatically hardcodes DIR into the library
13586 # and all subsequent libraries and executables linked against it.
13587 hardcode_automatic=$hardcode_automatic_CXX
13589 # Variables whose values should be saved in libtool wrapper scripts and
13590 # restored at relink time.
13591 variables_saved_for_relink="$variables_saved_for_relink"
13593 # Whether libtool must link a program against all its dependency libraries.
13594 link_all_deplibs=$link_all_deplibs_CXX
13596 # Compile-time system search path for libraries
13597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13599 # Run-time system search path for libraries
13600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13602 # Fix the shell variable \$srcfile for the compiler.
13603 fix_srcfile_path=$lt_fix_srcfile_path
13605 # Set to yes if exported symbols are required.
13606 always_export_symbols=$always_export_symbols_CXX
13608 # The commands to list exported symbols.
13609 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13611 # The commands to extract the exported symbol list from a shared archive.
13612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13614 # Symbols that should not be listed in the preloaded symbols.
13615 exclude_expsyms=$lt_exclude_expsyms_CXX
13617 # Symbols that must always be exported.
13618 include_expsyms=$lt_include_expsyms_CXX
13620 # ### END LIBTOOL TAG CONFIG: $tagname
13626 # If there is no Makefile yet, we rely on a make rule to execute
13627 # `config.status --recheck' to rerun these tests and create the
13628 # libtool script then.
13629 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13630 if test -f "$ltmain_in"; then
13631 test -f Makefile && make "$ltmain"
13637 ac_cpp='$CPP $CPPFLAGS'
13638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646 with_gnu_ldcxx=$with_gnu_ld
13647 with_gnu_ld=$lt_save_with_gnu_ld
13648 lt_cv_path_LDCXX=$lt_cv_path_LD
13649 lt_cv_path_LD=$lt_save_path_LD
13650 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13651 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13659 if test -n "$F77" && test "X$F77" != "Xno"; then
13662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13667 archive_cmds_need_lc_F77=no
13668 allow_undefined_flag_F77=
13669 always_export_symbols_F77=no
13670 archive_expsym_cmds_F77=
13671 export_dynamic_flag_spec_F77=
13672 hardcode_direct_F77=no
13673 hardcode_libdir_flag_spec_F77=
13674 hardcode_libdir_flag_spec_ld_F77=
13675 hardcode_libdir_separator_F77=
13676 hardcode_minus_L_F77=no
13677 hardcode_automatic_F77=no
13679 module_expsym_cmds_F77=
13680 link_all_deplibs_F77=unknown
13681 old_archive_cmds_F77=$old_archive_cmds
13682 no_undefined_flag_F77=
13683 whole_archive_flag_spec_F77=
13684 enable_shared_with_static_runtimes_F77=no
13686 # Source file extension for f77 test sources.
13689 # Object file extension for compiled f77 test sources.
13693 # Code to be used in simple compile tests
13694 lt_simple_compile_test_code="\
13700 # Code to be used in simple link tests
13701 lt_simple_link_test_code="\
13706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13708 # If no C compiler was specified, use CC.
13711 # If no C compiler flags were specified, use CFLAGS.
13712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13714 # Allow CC to be a program name with arguments.
13718 # save warnings/boilerplate of simple test code
13719 ac_outfile=conftest.$ac_objext
13720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13722 _lt_compiler_boilerplate=`cat conftest.err`
13725 ac_outfile=conftest.$ac_objext
13726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13728 _lt_linker_boilerplate=`cat conftest.err`
13732 # Allow CC to be a program name with arguments.
13737 for cc_temp in $compiler""; do
13739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13751 $as_echo "$can_build_shared" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13754 $as_echo_n "checking whether to build shared libraries... " >&6; }
13755 test "$can_build_shared" = "no" && enable_shared=no
13757 # On AIX, shared libraries and static libraries use the same namespace, and
13758 # are all built from PIC.
13761 test "$enable_shared" = yes && enable_static=no
13762 if test -n "$RANLIB"; then
13763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13764 postinstall_cmds='$RANLIB $lib'
13768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13769 test "$enable_shared" = yes && enable_static=no
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13774 $as_echo "$enable_shared" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13777 $as_echo_n "checking whether to build static libraries... " >&6; }
13778 # Make sure either enable_shared or enable_static is yes.
13779 test "$enable_shared" = yes || enable_static=yes
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13781 $as_echo "$enable_static" >&6; }
13786 lt_prog_compiler_wl_F77=
13787 lt_prog_compiler_pic_F77=
13788 lt_prog_compiler_static_F77=
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13793 if test "$GCC" = yes; then
13794 lt_prog_compiler_wl_F77='-Wl,'
13795 lt_prog_compiler_static_F77='-static'
13799 # All AIX code is PIC.
13800 if test "$host_cpu" = ia64; then
13801 # AIX 5 now supports IA64 processor
13802 lt_prog_compiler_static_F77='-Bstatic'
13807 # FIXME: we need at least 68020 code to build shared libraries, but
13808 # adding the `-m68020' flag to GCC prevents building anything better,
13810 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13814 # PIC is the default for these OSes.
13817 mingw* | cygwin* | pw32* | os2*)
13818 # This hack is so that the source file can tell whether it is being
13819 # built for inclusion in a dll (and should export symbols for example).
13820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13821 # (--disable-auto-import) libraries
13822 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13825 darwin* | rhapsody*)
13826 # PIC is the default on this platform
13827 # Common symbols not allowed in MH_DYLIB files
13828 lt_prog_compiler_pic_F77='-fno-common'
13832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13833 # Instead, we relocate shared libraries at runtime.
13837 # Just because we use GCC doesn't mean we suddenly get shared libraries
13838 # on systems that don't support them.
13839 lt_prog_compiler_can_build_shared_F77=no
13844 if test -d /usr/nec; then
13845 lt_prog_compiler_pic_F77=-Kconform_pic
13850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13851 # not for PA HP-UX.
13857 lt_prog_compiler_pic_F77='-fPIC'
13863 lt_prog_compiler_pic_F77='-fPIC'
13867 # PORTME Check for flag to pass linker flags through the system compiler.
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 if test "$host_cpu" = ia64; then
13872 # AIX 5 now supports IA64 processor
13873 lt_prog_compiler_static_F77='-Bstatic'
13875 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13879 # PIC is the default on this platform
13880 # Common symbols not allowed in MH_DYLIB files
13881 case $cc_basename in
13883 lt_prog_compiler_pic_F77='-qnocommon'
13884 lt_prog_compiler_wl_F77='-Wl,'
13889 mingw* | cygwin* | pw32* | os2*)
13890 # This hack is so that the source file can tell whether it is being
13891 # built for inclusion in a dll (and should export symbols for example).
13892 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13895 hpux9* | hpux10* | hpux11*)
13896 lt_prog_compiler_wl_F77='-Wl,'
13897 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13898 # not for PA HP-UX.
13904 lt_prog_compiler_pic_F77='+Z'
13907 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13908 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13911 irix5* | irix6* | nonstopux*)
13912 lt_prog_compiler_wl_F77='-Wl,'
13913 # PIC (with -KPIC) is the default.
13914 lt_prog_compiler_static_F77='-non_shared'
13918 lt_prog_compiler_pic_F77='-KPIC'
13919 lt_prog_compiler_static_F77='-Bstatic'
13922 linux* | k*bsd*-gnu)
13923 case $cc_basename in
13925 lt_prog_compiler_wl_F77='-Wl,'
13926 lt_prog_compiler_pic_F77='-KPIC'
13927 lt_prog_compiler_static_F77='-static'
13929 pgcc* | pgf77* | pgf90* | pgf95*)
13930 # Portland Group compilers (*not* the Pentium gcc compiler,
13931 # which looks to be a dead project)
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 lt_prog_compiler_pic_F77='-fpic'
13934 lt_prog_compiler_static_F77='-Bstatic'
13937 lt_prog_compiler_wl_F77='-Wl,'
13938 # All Alpha code is PIC.
13939 lt_prog_compiler_static_F77='-non_shared'
13942 case `$CC -V 2>&1 | sed 5q` in
13945 lt_prog_compiler_pic_F77='-KPIC'
13946 lt_prog_compiler_static_F77='-Bstatic'
13947 lt_prog_compiler_wl_F77='-Wl,'
13950 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13951 lt_prog_compiler_pic_F77='-KPIC'
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 lt_prog_compiler_wl_F77=''
13960 osf3* | osf4* | osf5*)
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 # All OSF/1 code is PIC.
13963 lt_prog_compiler_static_F77='-non_shared'
13967 lt_prog_compiler_static_F77='-non_shared'
13971 lt_prog_compiler_pic_F77='-KPIC'
13972 lt_prog_compiler_static_F77='-Bstatic'
13973 case $cc_basename in
13974 f77* | f90* | f95*)
13975 lt_prog_compiler_wl_F77='-Qoption ld ';;
13977 lt_prog_compiler_wl_F77='-Wl,';;
13982 lt_prog_compiler_wl_F77='-Qoption ld '
13983 lt_prog_compiler_pic_F77='-PIC'
13984 lt_prog_compiler_static_F77='-Bstatic'
13987 sysv4 | sysv4.2uw2* | sysv4.3*)
13988 lt_prog_compiler_wl_F77='-Wl,'
13989 lt_prog_compiler_pic_F77='-KPIC'
13990 lt_prog_compiler_static_F77='-Bstatic'
13994 if test -d /usr/nec ;then
13995 lt_prog_compiler_pic_F77='-Kconform_pic'
13996 lt_prog_compiler_static_F77='-Bstatic'
14000 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14001 lt_prog_compiler_wl_F77='-Wl,'
14002 lt_prog_compiler_pic_F77='-KPIC'
14003 lt_prog_compiler_static_F77='-Bstatic'
14007 lt_prog_compiler_wl_F77='-Wl,'
14008 lt_prog_compiler_can_build_shared_F77=no
14012 lt_prog_compiler_pic_F77='-pic'
14013 lt_prog_compiler_static_F77='-Bstatic'
14017 lt_prog_compiler_can_build_shared_F77=no
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14023 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14026 # Check to make sure the PIC flag actually works.
14028 if test -n "$lt_prog_compiler_pic_F77"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14032 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14033 $as_echo_n "(cached) " >&6
14035 lt_cv_prog_compiler_pic_works_F77=no
14036 ac_outfile=conftest.$ac_objext
14037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14038 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14039 # Insert the option either (1) after the last *FLAGS variable, or
14040 # (2) before a word containing "conftest.", or (3) at the end.
14041 # Note that $ac_compile itself does not contain backslashes and begins
14042 # with a dollar sign (not a hyphen), so the echo should work correctly.
14043 # The option is referenced via a variable to avoid confusing sed.
14044 lt_compile=`echo "$ac_compile" | $SED \
14045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047 -e 's:$: $lt_compiler_flag:'`
14048 (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049 (eval "$lt_compile" 2>conftest.err)
14051 cat conftest.err >&5
14052 echo "$as_me:14052: \$? = $ac_status" >&5
14053 if (exit $ac_status) && test -s "$ac_outfile"; then
14054 # The compiler can only warn and ignore the option if not recognized
14055 # So say no if there are warnings other than the usual output.
14056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14059 lt_cv_prog_compiler_pic_works_F77=yes
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14066 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14068 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14069 case $lt_prog_compiler_pic_F77 in
14071 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14074 lt_prog_compiler_pic_F77=
14075 lt_prog_compiler_can_build_shared_F77=no
14080 # For platforms which do not support PIC, -DPIC is meaningless:
14082 lt_prog_compiler_pic_F77=
14085 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14090 # Check to make sure the static flag actually works.
14092 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14095 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14096 $as_echo_n "(cached) " >&6
14098 lt_cv_prog_compiler_static_works_F77=no
14099 save_LDFLAGS="$LDFLAGS"
14100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14103 # The linker can only warn and ignore the option if not recognized
14104 # So say no if there are warnings
14105 if test -s conftest.err; then
14106 # Append any errors to the config.log.
14107 cat conftest.err 1>&5
14108 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14110 if diff conftest.exp conftest.er2 >/dev/null; then
14111 lt_cv_prog_compiler_static_works_F77=yes
14114 lt_cv_prog_compiler_static_works_F77=yes
14118 LDFLAGS="$save_LDFLAGS"
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14122 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14124 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14127 lt_prog_compiler_static_F77=
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14133 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14134 $as_echo_n "(cached) " >&6
14136 lt_cv_prog_compiler_c_o_F77=no
14137 $rm -r conftest 2>/dev/null
14141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14143 lt_compiler_flag="-o out/conftest2.$ac_objext"
14144 # Insert the option either (1) after the last *FLAGS variable, or
14145 # (2) before a word containing "conftest.", or (3) at the end.
14146 # Note that $ac_compile itself does not contain backslashes and begins
14147 # with a dollar sign (not a hyphen), so the echo should work correctly.
14148 lt_compile=`echo "$ac_compile" | $SED \
14149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14151 -e 's:$: $lt_compiler_flag:'`
14152 (eval echo "\"\$as_me:14152: $lt_compile\"" >&5)
14153 (eval "$lt_compile" 2>out/conftest.err)
14155 cat out/conftest.err >&5
14156 echo "$as_me:14156: \$? = $ac_status" >&5
14157 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14159 # The compiler can only warn and ignore the option if not recognized
14160 # So say no if there are warnings
14161 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14164 lt_cv_prog_compiler_c_o_F77=yes
14169 # SGI C++ compiler will create directory out/ii_files/ for
14170 # template instantiation
14171 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14172 $rm out/* && rmdir out
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14179 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14182 hard_links="nottested"
14183 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14184 # do not overwrite the value of need_locks provided by the user
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14186 $as_echo_n "checking if we can lock with hard links... " >&6; }
14189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14191 ln conftest.a conftest.b 2>&5 || hard_links=no
14192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14194 $as_echo "$hard_links" >&6; }
14195 if test "$hard_links" = no; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14205 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14208 allow_undefined_flag_F77=
14209 enable_shared_with_static_runtimes_F77=no
14211 archive_expsym_cmds_F77=
14212 old_archive_From_new_cmds_F77=
14213 old_archive_from_expsyms_cmds_F77=
14214 export_dynamic_flag_spec_F77=
14215 whole_archive_flag_spec_F77=
14216 thread_safe_flag_spec_F77=
14217 hardcode_libdir_flag_spec_F77=
14218 hardcode_libdir_flag_spec_ld_F77=
14219 hardcode_libdir_separator_F77=
14220 hardcode_direct_F77=no
14221 hardcode_minus_L_F77=no
14222 hardcode_shlibpath_var_F77=unsupported
14223 link_all_deplibs_F77=unknown
14224 hardcode_automatic_F77=no
14226 module_expsym_cmds_F77=
14227 always_export_symbols_F77=no
14228 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14229 # include_expsyms should be a list of space-separated symbols to be *always*
14230 # included in the symbol list
14231 include_expsyms_F77=
14232 # exclude_expsyms can be an extended regexp of symbols to exclude
14233 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14234 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14235 # as well as any symbol that contains `d'.
14236 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14238 # platforms (ab)use it in PIC code, but their linkers get confused if
14239 # the symbol is explicitly referenced. Since portable code cannot
14240 # rely on this symbol name, it's probably fine to never include it in
14241 # preloaded symbol tables.
14242 # Exclude shared library initialization/finalization symbols.
14243 extract_expsyms_cmds=
14244 # Just being paranoid about ensuring that cc_basename is set.
14245 for cc_temp in $compiler""; do
14247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14256 cygwin* | mingw* | pw32*)
14257 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14258 # When not using gcc, we currently assume that we are using
14259 # Microsoft Visual C++.
14260 if test "$GCC" != yes; then
14265 # we just hope/assume this is gcc and not c89 (= MSVC++)
14274 if test "$with_gnu_ld" = yes; then
14275 # If archive_cmds runs LD, not CC, wlarc should be empty
14278 # Set some defaults for GNU ld with shared library support. These
14279 # are reset later if shared libraries are not supported. Putting them
14280 # here allows them to be overridden if necessary.
14281 runpath_var=LD_RUN_PATH
14282 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14283 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14284 # ancient GNU ld didn't support --whole-archive et. al.
14285 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14286 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14288 whole_archive_flag_spec_F77=
14290 supports_anon_versioning=no
14291 case `$LD -v 2>/dev/null` in
14292 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14295 *\ 2.11.*) ;; # other 2.11 versions
14296 *) supports_anon_versioning=yes ;;
14299 # See if GNU ld supports shared libraries.
14302 # On AIX/PPC, the GNU linker is very broken
14303 if test "$host_cpu" != ia64; then
14307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14308 *** to be unable to reliably create shared libraries on AIX.
14309 *** Therefore, libtool is disabling shared libraries support. If you
14310 *** really care for shared libraries, you may want to modify your PATH
14311 *** so that a non-GNU linker is found, and then restart.
14318 archive_cmds_F77='$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)'
14319 hardcode_libdir_flag_spec_F77='-L$libdir'
14320 hardcode_minus_L_F77=yes
14322 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14323 # that the semantics of dynamic libraries on AmigaOS, at least up
14324 # to version 4, is to share data among multiple programs linked
14325 # with the same dynamic library. Since this doesn't match the
14326 # behavior of shared libraries on other platforms, we can't use
14332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14333 allow_undefined_flag_F77=unsupported
14334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14335 # support --undefined. This deserves some investigation. FIXME
14336 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342 cygwin* | mingw* | pw32*)
14343 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14344 # as there is no search path for DLLs.
14345 hardcode_libdir_flag_spec_F77='-L$libdir'
14346 allow_undefined_flag_F77=unsupported
14347 always_export_symbols_F77=no
14348 enable_shared_with_static_runtimes_F77=yes
14349 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14351 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14353 # If the export-symbols file already is a .def file (1st line
14354 # is EXPORTS), use it as is; otherwise, prepend...
14355 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14356 cp $export_symbols $output_objdir/$soname.def;
14358 echo EXPORTS > $output_objdir/$soname.def;
14359 cat $export_symbols >> $output_objdir/$soname.def;
14361 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14368 hardcode_direct_F77=no
14369 hardcode_shlibpath_var_F77=no
14370 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14371 export_dynamic_flag_spec_F77='${wl}-E'
14372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14373 # Instead, shared libraries are loaded at an image base (0x10000000 by
14374 # default) and relocated if they conflict, which is a slow very memory
14375 # consuming and fragmenting process. To avoid this, we pick a random,
14376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14378 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14379 archive_expsym_cmds_F77='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'
14382 gnu* | linux* | k*bsd*-gnu)
14383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14385 case $cc_basename,$host_cpu in
14386 pgcc*) # Portland Group C compiler
14387 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14388 tmp_addflag=' $pic_flag'
14390 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14391 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14392 tmp_addflag=' $pic_flag -Mnomain' ;;
14393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14394 tmp_addflag=' -i_dynamic' ;;
14395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14396 tmp_addflag=' -i_dynamic -nofor_main' ;;
14397 ifc* | ifort*) # Intel Fortran compiler
14398 tmp_addflag=' -nofor_main' ;;
14400 case `$CC -V 2>&1 | sed 5q` in
14401 *Sun\ C*) # Sun C 5.9
14402 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14403 tmp_sharedflag='-G' ;;
14404 *Sun\ F*) # Sun Fortran 8.3
14405 tmp_sharedflag='-G' ;;
14407 tmp_sharedflag='-shared' ;;
14409 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411 if test $supports_anon_versioning = yes; then
14412 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14413 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14414 $echo "local: *; };" >> $output_objdir/$libname.ver~
14415 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14417 link_all_deplibs_F77=no
14423 netbsd* | netbsdelf*-gnu)
14424 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14428 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14434 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14439 *** create shared libraries on Solaris systems. Therefore, libtool
14440 *** is disabling shared libraries support. We urge you to upgrade GNU
14441 *** binutils to release 2.9.1 or newer. Another option is to modify
14442 *** your PATH or compiler configuration so that the native linker is
14443 *** used, and then restart.
14446 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14447 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14448 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14455 case `$LD -v 2>&1` in
14456 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14461 *** reliably create shared libraries on SCO systems. Therefore, libtool
14462 *** is disabling shared libraries support. We urge you to upgrade GNU
14463 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14464 *** your PATH or compiler configuration so that the native linker is
14465 *** used, and then restart.
14470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14471 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14472 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14473 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14482 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14484 hardcode_direct_F77=yes
14485 hardcode_shlibpath_var_F77=no
14489 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14490 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14498 if test "$ld_shlibs_F77" = no; then
14500 hardcode_libdir_flag_spec_F77=
14501 export_dynamic_flag_spec_F77=
14502 whole_archive_flag_spec_F77=
14505 # PORTME fill in a description of your system's linker (not GNU ld)
14508 allow_undefined_flag_F77=unsupported
14509 always_export_symbols_F77=yes
14510 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14511 # Note: this linker hardcodes the directories in LIBPATH if there
14512 # are no directories specified by -L.
14513 hardcode_minus_L_F77=yes
14514 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14515 # Neither direct hardcoding nor static linking is supported with a
14517 hardcode_direct_F77=unsupported
14522 if test "$host_cpu" = ia64; then
14523 # On IA64, the linker does run time linking by default, so we don't
14524 # have to do anything special.
14525 aix_use_runtimelinking=no
14526 exp_sym_flag='-Bexport'
14529 # If we're using GNU nm, then we don't want the "-C" option.
14530 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14531 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14532 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14534 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14536 aix_use_runtimelinking=no
14538 # Test if we are trying to use run time linking or normal
14539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14540 # need to do runtime linking.
14541 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14542 for ld_flag in $LDFLAGS; do
14543 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14544 aix_use_runtimelinking=yes
14551 exp_sym_flag='-bexport'
14552 no_entry_flag='-bnoentry'
14555 # When large executables or shared objects are built, AIX ld can
14556 # have problems creating the table of contents. If linking a library
14557 # or program results in "error TOC overflow" add -mminimal-toc to
14558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14561 archive_cmds_F77=''
14562 hardcode_direct_F77=yes
14563 hardcode_libdir_separator_F77=':'
14564 link_all_deplibs_F77=yes
14566 if test "$GCC" = yes; then
14567 case $host_os in aix4.[012]|aix4.[012].*)
14568 # We only want to do this on AIX 4.2 and lower, the check
14569 # below for broken collect2 doesn't work under 4.3+
14570 collect2name=`${CC} -print-prog-name=collect2`
14571 if test -f "$collect2name" && \
14572 strings "$collect2name" | grep resolve_lib_name >/dev/null
14574 # We have reworked collect2
14577 # We have old collect2
14578 hardcode_direct_F77=unsupported
14579 # It fails to find uninstalled libraries when the uninstalled
14580 # path is not listed in the libpath. Setting hardcode_minus_L
14581 # to unsupported forces relinking
14582 hardcode_minus_L_F77=yes
14583 hardcode_libdir_flag_spec_F77='-L$libdir'
14584 hardcode_libdir_separator_F77=
14588 shared_flag='-shared'
14589 if test "$aix_use_runtimelinking" = yes; then
14590 shared_flag="$shared_flag "'${wl}-G'
14594 if test "$host_cpu" = ia64; then
14595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14596 # chokes on -Wl,-G. The following line is correct:
14599 if test "$aix_use_runtimelinking" = yes; then
14600 shared_flag='${wl}-G'
14602 shared_flag='${wl}-bM:SRE'
14607 # It seems that -bexpall does not export symbols beginning with
14608 # underscore (_), so it is better to generate a list of symbols to export.
14609 always_export_symbols_F77=yes
14610 if test "$aix_use_runtimelinking" = yes; then
14611 # Warning - without using the other runtime loading flags (-brtl),
14612 # -berok will link without error, but may produce a broken library.
14613 allow_undefined_flag_F77='-berok'
14614 # Determine the default libpath from the value encoded in an empty executable.
14615 cat > conftest.$ac_ext <<_ACEOF
14620 if ac_fn_f77_try_link "$LINENO"; then :
14622 lt_aix_libpath_sed='
14623 /Import File Strings/,/^$/ {
14629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14630 # Check for a 64-bit object if we didn't find anything.
14631 if test -z "$aix_libpath"; then
14632 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14635 rm -f core conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext conftest.$ac_ext
14637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14639 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14640 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14642 if test "$host_cpu" = ia64; then
14643 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14644 allow_undefined_flag_F77="-z nodefs"
14645 archive_expsym_cmds_F77="\$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"
14647 # Determine the default libpath from the value encoded in an empty executable.
14648 cat > conftest.$ac_ext <<_ACEOF
14653 if ac_fn_f77_try_link "$LINENO"; then :
14655 lt_aix_libpath_sed='
14656 /Import File Strings/,/^$/ {
14662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14663 # Check for a 64-bit object if we didn't find anything.
14664 if test -z "$aix_libpath"; then
14665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14672 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14673 # Warning - without using the other run time loading flags,
14674 # -berok will link without error, but may produce a broken library.
14675 no_undefined_flag_F77=' ${wl}-bernotok'
14676 allow_undefined_flag_F77=' ${wl}-berok'
14677 # Exported symbols can be pulled into shared objects from archives
14678 whole_archive_flag_spec_F77='$convenience'
14679 archive_cmds_need_lc_F77=yes
14680 # This is similar to how AIX traditionally builds its shared libraries.
14681 archive_expsym_cmds_F77="\$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'
14687 archive_cmds_F77='$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)'
14688 hardcode_libdir_flag_spec_F77='-L$libdir'
14689 hardcode_minus_L_F77=yes
14690 # see comment about different semantics on the GNU ld section
14695 export_dynamic_flag_spec_F77=-rdynamic
14698 cygwin* | mingw* | pw32*)
14699 # When not using gcc, we currently assume that we are using
14700 # Microsoft Visual C++.
14701 # hardcode_libdir_flag_spec is actually meaningless, as there is
14702 # no search path for DLLs.
14703 hardcode_libdir_flag_spec_F77=' '
14704 allow_undefined_flag_F77=unsupported
14705 # Tell ltmain to make .lib files, not .a files.
14707 # Tell ltmain to make .dll files, not .so files.
14709 # FIXME: Setting linknames here is a bad hack.
14710 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14711 # The linker will automatically build a .lib file if we build a DLL.
14712 old_archive_From_new_cmds_F77='true'
14713 # FIXME: Should let the user specify the lib program.
14714 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14715 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14716 enable_shared_with_static_runtimes_F77=yes
14719 darwin* | rhapsody*)
14721 rhapsody* | darwin1.[012])
14722 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14725 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14726 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14728 case ${MACOSX_DEPLOYMENT_TARGET} in
14730 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14733 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14739 archive_cmds_need_lc_F77=no
14740 hardcode_direct_F77=no
14741 hardcode_automatic_F77=yes
14742 hardcode_shlibpath_var_F77=unsupported
14743 whole_archive_flag_spec_F77=''
14744 link_all_deplibs_F77=yes
14745 if test "$GCC" = yes ; then
14746 output_verbose_link_cmd='echo'
14747 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14748 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14749 archive_expsym_cmds_F77="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}"
14750 module_expsym_cmds_F77="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}"
14752 case $cc_basename in
14754 output_verbose_link_cmd='echo'
14755 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14756 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14758 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14759 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_libdir_flag_spec_F77='-L$libdir'
14771 hardcode_shlibpath_var_F77=no
14778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14779 # support. Future versions do this automatically, but an explicit c++rt0.o
14780 # does not break anything, and helps significantly (at the cost of a little
14783 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14784 hardcode_libdir_flag_spec_F77='-R$libdir'
14785 hardcode_direct_F77=yes
14786 hardcode_shlibpath_var_F77=no
14789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_direct_F77=yes
14793 hardcode_minus_L_F77=yes
14794 hardcode_shlibpath_var_F77=no
14797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14798 freebsd* | dragonfly*)
14799 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14800 hardcode_libdir_flag_spec_F77='-R$libdir'
14801 hardcode_direct_F77=yes
14802 hardcode_shlibpath_var_F77=no
14806 if test "$GCC" = yes; then
14807 archive_cmds_F77='$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'
14809 archive_cmds_F77='$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'
14811 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14812 hardcode_libdir_separator_F77=:
14813 hardcode_direct_F77=yes
14815 # hardcode_minus_L: Not really in the search PATH,
14816 # but as the default location of the library.
14817 hardcode_minus_L_F77=yes
14818 export_dynamic_flag_spec_F77='${wl}-E'
14822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14823 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14827 if test "$with_gnu_ld" = no; then
14828 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14829 hardcode_libdir_separator_F77=:
14831 hardcode_direct_F77=yes
14832 export_dynamic_flag_spec_F77='${wl}-E'
14834 # hardcode_minus_L: Not really in the search PATH,
14835 # but as the default location of the library.
14836 hardcode_minus_L_F77=yes
14841 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14844 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14856 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14859 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14862 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14866 if test "$with_gnu_ld" = no; then
14867 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14868 hardcode_libdir_separator_F77=:
14872 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14873 hardcode_direct_F77=no
14874 hardcode_shlibpath_var_F77=no
14877 hardcode_direct_F77=yes
14878 export_dynamic_flag_spec_F77='${wl}-E'
14880 # hardcode_minus_L: Not really in the search PATH,
14881 # but as the default location of the library.
14882 hardcode_minus_L_F77=yes
14888 irix5* | irix6* | nonstopux*)
14889 if test "$GCC" = yes; then
14890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14892 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14893 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14895 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14896 hardcode_libdir_separator_F77=:
14897 link_all_deplibs_F77=yes
14900 netbsd* | netbsdelf*-gnu)
14901 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14904 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14906 hardcode_libdir_flag_spec_F77='-R$libdir'
14907 hardcode_direct_F77=yes
14908 hardcode_shlibpath_var_F77=no
14912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14913 hardcode_direct_F77=yes
14914 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14915 hardcode_libdir_separator_F77=:
14916 hardcode_shlibpath_var_F77=no
14920 if test -f /usr/libexec/ld.so; then
14921 hardcode_direct_F77=yes
14922 hardcode_shlibpath_var_F77=no
14923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14924 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14925 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14927 export_dynamic_flag_spec_F77='${wl}-E'
14930 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14931 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_libdir_flag_spec_F77='-R$libdir'
14935 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14936 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14946 hardcode_libdir_flag_spec_F77='-L$libdir'
14947 hardcode_minus_L_F77=yes
14948 allow_undefined_flag_F77=unsupported
14949 archive_cmds_F77='$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'
14950 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14954 if test "$GCC" = yes; then
14955 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14956 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14958 allow_undefined_flag_F77=' -expect_unresolved \*'
14959 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14961 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14962 hardcode_libdir_separator_F77=:
14965 osf4* | osf5*) # as osf3* with the addition of -msym flag
14966 if test "$GCC" = yes; then
14967 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14968 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14969 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14971 allow_undefined_flag_F77=' -expect_unresolved \*'
14972 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14973 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14974 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14976 # Both c and cxx compiler support -rpath directly
14977 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14979 hardcode_libdir_separator_F77=:
14983 no_undefined_flag_F77=' -z text'
14984 if test "$GCC" = yes; then
14986 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14988 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14991 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14992 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14993 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14995 hardcode_libdir_flag_spec_F77='-R$libdir'
14996 hardcode_shlibpath_var_F77=no
14998 solaris2.[0-5] | solaris2.[0-5].*) ;;
15000 # The compiler driver will combine and reorder linker options,
15001 # but understands `-z linker_flag'. GCC discards it without `$wl',
15002 # but is careful enough not to reorder.
15003 # Supported since Solaris 2.6 (maybe 2.5.1?)
15004 if test "$GCC" = yes; then
15005 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15007 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15011 link_all_deplibs_F77=yes
15015 if test "x$host_vendor" = xsequent; then
15016 # Use $CC to link under sequent, because it throws in some extra .o
15017 # files that make .init and .fini sections work.
15018 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_libdir_flag_spec_F77='-L$libdir'
15023 hardcode_direct_F77=yes
15024 hardcode_minus_L_F77=yes
15025 hardcode_shlibpath_var_F77=no
15029 case $host_vendor in
15031 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15032 hardcode_direct_F77=yes # is this really true???
15035 ## LD is ld it makes a PLAMLIB
15036 ## CC just makes a GrossModule.
15037 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15038 reload_cmds_F77='$CC -r -o $output$reload_objs'
15039 hardcode_direct_F77=no
15042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15046 runpath_var='LD_RUN_PATH'
15047 hardcode_shlibpath_var_F77=no
15051 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052 hardcode_shlibpath_var_F77=no
15053 export_dynamic_flag_spec_F77='-Bexport'
15057 if test -d /usr/nec; then
15058 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059 hardcode_shlibpath_var_F77=no
15060 runpath_var=LD_RUN_PATH
15061 hardcode_runpath_var=yes
15066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15067 no_undefined_flag_F77='${wl}-z,text'
15068 archive_cmds_need_lc_F77=no
15069 hardcode_shlibpath_var_F77=no
15070 runpath_var='LD_RUN_PATH'
15072 if test "$GCC" = yes; then
15073 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15081 sysv5* | sco3.2v5* | sco5v6*)
15082 # Note: We can NOT use -z defs as we might desire, because we do not
15083 # link with -lc, and that would cause any symbols used from libc to
15084 # always be unresolved, which means just about no library would
15085 # ever link correctly. If we're not using GNU ld we use -z text
15086 # though, which does catch some bad symbols but isn't as heavy-handed
15088 no_undefined_flag_F77='${wl}-z,text'
15089 allow_undefined_flag_F77='${wl}-z,nodefs'
15090 archive_cmds_need_lc_F77=no
15091 hardcode_shlibpath_var_F77=no
15092 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15093 hardcode_libdir_separator_F77=':'
15094 link_all_deplibs_F77=yes
15095 export_dynamic_flag_spec_F77='${wl}-Bexport'
15096 runpath_var='LD_RUN_PATH'
15098 if test "$GCC" = yes; then
15099 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15108 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109 hardcode_libdir_flag_spec_F77='-L$libdir'
15110 hardcode_shlibpath_var_F77=no
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15120 $as_echo "$ld_shlibs_F77" >&6; }
15121 test "$ld_shlibs_F77" = no && can_build_shared=no
15124 # Do we need to explicitly link libc?
15126 case "x$archive_cmds_need_lc_F77" in
15128 # Assume -lc should be added
15129 archive_cmds_need_lc_F77=yes
15131 if test "$enable_shared" = yes && test "$GCC" = yes; then
15132 case $archive_cmds_F77 in
15134 # FIXME: we may have to deal with multi-command sequences.
15137 # Test whether the compiler implicitly links with -lc since on some
15138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15139 # to ld, don't add -lc before -lgcc.
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15141 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15146 (eval $ac_compile) 2>&5
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; } 2>conftest.err; then
15152 libobjs=conftest.$ac_objext
15154 wl=$lt_prog_compiler_wl_F77
15155 pic_flag=$lt_prog_compiler_pic_F77
15161 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15162 allow_undefined_flag_F77=
15163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15164 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }
15169 archive_cmds_need_lc_F77=no
15171 archive_cmds_need_lc_F77=yes
15173 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15175 cat conftest.err 1>&5
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15179 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15187 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15188 library_names_spec=
15189 libname_spec='lib$name'
15193 postuninstall_cmds=
15197 shlibpath_overrides_runpath=unknown
15199 dynamic_linker="$host_os ld.so"
15200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15202 need_lib_prefix=unknown
15203 hardcode_into_libs=no
15205 # when you set need_version to no, make sure it does not cause -set_version
15206 # flags to be left without arguments
15207 need_version=unknown
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15213 shlibpath_var=LIBPATH
15215 # AIX 3 has no versioning support, so we append a major version to the name.
15216 soname_spec='${libname}${release}${shared_ext}$major'
15223 hardcode_into_libs=yes
15224 if test "$host_cpu" = ia64; then
15225 # AIX 5 supports IA64
15226 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15227 shlibpath_var=LD_LIBRARY_PATH
15229 # With GCC up to 2.95.x, collect2 would create an import file
15230 # for dependence libraries. The import file would start with
15231 # the line `#! .'. This would cause the generated library to
15232 # depend on `.', always an invalid library. This was fixed in
15233 # development snapshots of GCC prior to 3.0.
15235 aix4 | aix4.[01] | aix4.[01].*)
15236 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15238 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15241 can_build_shared=no
15245 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15246 # soname into executable. Probably we can add versioning support to
15247 # collect2, so additional links can be useful in future.
15248 if test "$aix_use_runtimelinking" = yes; then
15249 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15250 # instead of lib<name>.a to let people know that these are not
15251 # typical AIX shared libraries.
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 # We preserve .a as extension for shared libraries through AIX4.2
15255 # and later when we are not doing run time linking.
15256 library_names_spec='${libname}${release}.a $libname.a'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15259 shlibpath_var=LIBPATH
15264 library_names_spec='$libname.ixlibrary $libname.a'
15265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15266 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15270 library_names_spec='${libname}${shared_ext}'
15271 dynamic_linker="$host_os ld.so"
15272 shlibpath_var=LIBRARY_PATH
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15283 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15284 # the default ld.so.conf also contains /usr/contrib/lib and
15285 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15286 # libtool to hard-code these into programs
15289 cygwin* | mingw* | pw32*)
15290 version_type=windows
15295 case $GCC,$host_os in
15296 yes,cygwin* | yes,mingw* | yes,pw32*)
15297 library_names_spec='$libname.dll.a'
15298 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15299 postinstall_cmds='base_file=`basename \${file}`~
15300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15301 dldir=$destdir/`dirname \$dlpath`~
15302 test -d \$dldir || mkdir -p \$dldir~
15303 $install_prog $dir/$dlname \$dldir/$dlname~
15304 chmod a+x \$dldir/$dlname'
15305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15306 dlpath=$dir/\$dldll~
15308 shlibpath_overrides_runpath=yes
15312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15317 # MinGW DLLs use traditional 'lib' prefix
15318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15321 # It is most probably a Windows format PATH printed by
15322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15323 # path with ; separators, and with drive letters. We can handle the
15324 # drive letters (cygwin fileutils understands them), so leave them,
15325 # especially as we might pass files found there to a mingw objdump,
15326 # which wouldn't understand a cygwinified path. Ahh.
15327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15333 # pw32 DLLs use 'pw' prefix rather than 'lib'
15334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15343 dynamic_linker='Win32 ld.exe'
15344 # FIXME: first we should search . and the directory the executable is in
15348 darwin* | rhapsody*)
15349 dynamic_linker="$host_os dyld"
15350 version_type=darwin
15353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15354 soname_spec='${libname}${release}${major}$shared_ext'
15355 shlibpath_overrides_runpath=yes
15356 shlibpath_var=DYLD_LIBRARY_PATH
15357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 shlibpath_var=LD_LIBRARY_PATH
15375 freebsd* | dragonfly*)
15376 # DragonFly does not have aout. When/if they implement a new
15377 # versioning mechanism, adjust this.
15378 if test -x /usr/bin/objformat; then
15379 objformat=`/usr/bin/objformat`
15382 freebsd[123]*) objformat=aout ;;
15383 *) objformat=elf ;;
15386 version_type=freebsd-$objformat
15387 case $version_type in
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15398 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=yes
15403 freebsd3.[01]* | freebsdelf3.[01]*)
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15412 *) # from 4.6 on, and DragonFly
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 hardcode_into_libs=yes
15429 hpux9* | hpux10* | hpux11*)
15430 # Give a soname corresponding to the major version so that dld.sl refuses to
15431 # link against other versions.
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.so"
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 if test "X$HPUX_IA64_MODE" = X32; then
15445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453 hardcode_into_libs=yes
15454 dynamic_linker="$host_os dld.sl"
15455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464 dynamic_linker="$host_os dld.sl"
15465 shlibpath_var=SHLIB_PATH
15466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 soname_spec='${libname}${release}${shared_ext}$major'
15471 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15472 postinstall_cmds='chmod 555 $lib'
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15480 soname_spec='${libname}${release}${shared_ext}$major'
15481 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15487 irix5* | irix6* | nonstopux*)
15489 nonstopux*) version_type=nonstopux ;;
15491 if test "$lt_cv_prog_gnu_ld" = yes; then
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15502 irix5* | nonstopux*)
15503 libsuff= shlibsuff=
15506 case $LD in # libtool.m4 will add one of these switches to LD
15507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15508 libsuff= shlibsuff= libmagic=32-bit;;
15509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15510 libsuff=32 shlibsuff=N32 libmagic=N32;;
15511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15513 *) libsuff= shlibsuff= libmagic=never-match;;
15517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15518 shlibpath_overrides_runpath=no
15519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15521 hardcode_into_libs=yes
15524 # No shared lib support for Linux oldld, aout, or coff.
15525 linux*oldld* | linux*aout* | linux*coff*)
15529 # This must be Linux ELF.
15530 linux* | k*bsd*-gnu)
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=no
15539 # This implies no fast_install, which is unacceptable.
15540 # Some rework will be needed to allow for fast_install
15541 # before this can be enabled.
15542 hardcode_into_libs=yes
15544 # Append ld.so.conf contents to the search path
15545 if test -f /etc/ld.so.conf; then
15546 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;/^$/d' | tr '\n' ' '`
15547 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15550 # We used to test for /lib/ld.so.1 and disable shared libraries on
15551 # powerpc, because MkLinux only supported shared libraries with the
15552 # GNU dynamic linker. Since this was broken with cross compilers,
15553 # most powerpc-linux boxes support dynamic linking these days and
15554 # people can always --disable-shared, the test was removed, and we
15555 # assume the GNU/Linux dynamic linker is in use.
15556 dynamic_linker='GNU/Linux ld.so'
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=no
15567 hardcode_into_libs=yes
15568 dynamic_linker='NetBSD ld.elf_so'
15575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15578 dynamic_linker='NetBSD (a.out) ld.so'
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15581 soname_spec='${libname}${release}${shared_ext}$major'
15582 dynamic_linker='NetBSD ld.elf_so'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 shlibpath_overrides_runpath=yes
15586 hardcode_into_libs=yes
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=yes
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 shlibpath_overrides_runpath=yes
15608 sys_lib_dlsearch_path_spec="/usr/lib"
15610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15613 *) need_version=no ;;
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15620 openbsd2.[89] | openbsd2.[89].*)
15621 shlibpath_overrides_runpath=no
15624 shlibpath_overrides_runpath=yes
15628 shlibpath_overrides_runpath=yes
15633 libname_spec='$name'
15636 library_names_spec='$libname${shared_ext} $libname.a'
15637 dynamic_linker='OS/2 ld.exe'
15638 shlibpath_var=LIBPATH
15641 osf3* | osf4* | osf5*)
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 shlibpath_overrides_runpath=yes
15664 hardcode_into_libs=yes
15665 # ldd complains unless libraries are executable
15666 postinstall_cmds='chmod +x $lib'
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 shlibpath_overrides_runpath=yes
15675 if test "$with_gnu_ld" = yes; then
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 case $host_vendor in
15688 shlibpath_overrides_runpath=no
15690 export_dynamic_flag_spec='${wl}-Blargedynsym'
15691 runpath_var=LD_RUN_PATH
15699 shlibpath_overrides_runpath=no
15700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15706 if test -d /usr/nec ;then
15708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15709 soname_spec='$libname${shared_ext}.$major'
15710 shlibpath_var=LD_LIBRARY_PATH
15714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15715 version_type=freebsd-elf
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 hardcode_into_libs=yes
15722 if test "$with_gnu_ld" = yes; then
15723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15724 shlibpath_overrides_runpath=no
15726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15727 shlibpath_overrides_runpath=yes
15730 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15734 sys_lib_dlsearch_path_spec='/usr/lib'
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740 soname_spec='${libname}${release}${shared_ext}$major'
15741 shlibpath_var=LD_LIBRARY_PATH
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15749 $as_echo "$dynamic_linker" >&6; }
15750 test "$dynamic_linker" = no && can_build_shared=no
15752 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15753 $as_echo_n "(cached) " >&6
15755 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15758 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15759 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15760 $as_echo_n "(cached) " >&6
15762 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15768 if test "$GCC" = yes; then
15769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15774 hardcode_action_F77=
15775 if test -n "$hardcode_libdir_flag_spec_F77" || \
15776 test -n "$runpath_var_F77" || \
15777 test "X$hardcode_automatic_F77" = "Xyes" ; then
15779 # We can hardcode non-existant directories.
15780 if test "$hardcode_direct_F77" != no &&
15781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15782 # have to relink, otherwise we might link with an installed library
15783 # when we should be linking with a yet-to-be-installed one
15784 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15785 test "$hardcode_minus_L_F77" != no; then
15786 # Linking always hardcodes the temporary library directory.
15787 hardcode_action_F77=relink
15789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15790 hardcode_action_F77=immediate
15793 # We cannot hardcode anything, or else we can only hardcode existing
15795 hardcode_action_F77=unsupported
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15798 $as_echo "$hardcode_action_F77" >&6; }
15800 if test "$hardcode_action_F77" = relink; then
15801 # Fast installation is not supported
15802 enable_fast_install=no
15803 elif test "$shlibpath_overrides_runpath" = yes ||
15804 test "$enable_shared" = no; then
15805 # Fast installation is not necessary
15806 enable_fast_install=needless
15810 # The else clause should only fire when bootstrapping the
15811 # libtool distribution, otherwise you forgot to ship ltmain.sh
15812 # with your package, and you will get complaints that there are
15813 # no rules to generate ltmain.sh.
15814 if test -f "$ltmain"; then
15815 # See if we are running on zsh, and set the options which allow our commands through
15816 # without removal of \ escapes.
15817 if test -n "${ZSH_VERSION+set}" ; then
15818 setopt NO_GLOB_SUBST
15820 # Now quote all the things that may contain metacharacters while being
15821 # careful not to overquote the AC_SUBSTed values. We take copies of the
15822 # variables and quote the copies for generation of the libtool script.
15823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15827 deplibs_check_method reload_flag reload_cmds need_locks \
15828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15829 lt_cv_sys_global_symbol_to_c_name_address \
15830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15831 old_postinstall_cmds old_postuninstall_cmds \
15835 lt_prog_compiler_wl_F77 \
15836 lt_prog_compiler_pic_F77 \
15837 lt_prog_compiler_static_F77 \
15838 lt_prog_compiler_no_builtin_flag_F77 \
15839 export_dynamic_flag_spec_F77 \
15840 thread_safe_flag_spec_F77 \
15841 whole_archive_flag_spec_F77 \
15842 enable_shared_with_static_runtimes_F77 \
15843 old_archive_cmds_F77 \
15844 old_archive_from_new_cmds_F77 \
15845 predep_objects_F77 \
15846 postdep_objects_F77 \
15849 compiler_lib_search_path_F77 \
15850 compiler_lib_search_dirs_F77 \
15852 archive_expsym_cmds_F77 \
15853 postinstall_cmds_F77 \
15854 postuninstall_cmds_F77 \
15855 old_archive_from_expsyms_cmds_F77 \
15856 allow_undefined_flag_F77 \
15857 no_undefined_flag_F77 \
15858 export_symbols_cmds_F77 \
15859 hardcode_libdir_flag_spec_F77 \
15860 hardcode_libdir_flag_spec_ld_F77 \
15861 hardcode_libdir_separator_F77 \
15862 hardcode_automatic_F77 \
15864 module_expsym_cmds_F77 \
15865 lt_cv_prog_compiler_c_o_F77 \
15866 fix_srcfile_path_F77 \
15867 exclude_expsyms_F77 \
15868 include_expsyms_F77; do
15871 old_archive_cmds_F77 | \
15872 old_archive_from_new_cmds_F77 | \
15873 archive_cmds_F77 | \
15874 archive_expsym_cmds_F77 | \
15875 module_cmds_F77 | \
15876 module_expsym_cmds_F77 | \
15877 old_archive_from_expsyms_cmds_F77 | \
15878 export_symbols_cmds_F77 | \
15879 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15880 postinstall_cmds | postuninstall_cmds | \
15881 old_postinstall_cmds | old_postuninstall_cmds | \
15882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15883 # Double-quote double-evaled strings.
15884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15893 *'\$0 --fallback-echo"')
15894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15900 cat <<__EOF__ >> "$cfgfile"
15901 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15905 # Shell to use when invoking shell scripts.
15908 # Whether or not to build shared libraries.
15909 build_libtool_libs=$enable_shared
15911 # Whether or not to build static libraries.
15912 build_old_libs=$enable_static
15914 # Whether or not to add -lc for building shared libraries.
15915 build_libtool_need_lc=$archive_cmds_need_lc_F77
15917 # Whether or not to disallow shared libs when runtime libs are static
15918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15920 # Whether or not to optimize for fast installation.
15921 fast_install=$enable_fast_install
15924 host_alias=$host_alias
15928 # The build system.
15929 build_alias=$build_alias
15933 # An echo program that does not interpret backslashes.
15938 AR_FLAGS=$lt_AR_FLAGS
15943 # LTCC compiler flags.
15944 LTCFLAGS=$lt_LTCFLAGS
15946 # A language-specific compiler.
15947 CC=$lt_compiler_F77
15949 # Is the compiler the GNU C compiler?
15955 # The linker used to build libraries.
15958 # Whether we need hard or soft links.
15961 # A BSD-compatible nm program.
15964 # A symbol stripping program
15967 # Used to examine libraries when file_magic_cmd begins "file"
15968 MAGIC_CMD=$MAGIC_CMD
15970 # Used on cygwin: DLL creation program.
15973 # Used on cygwin: object dumper.
15976 # Used on cygwin: assembler.
15979 # The name of the directory that contains temporary libtool files.
15982 # How to create reloadable object files.
15983 reload_flag=$lt_reload_flag
15984 reload_cmds=$lt_reload_cmds
15986 # How to pass a linker flag through the compiler.
15987 wl=$lt_lt_prog_compiler_wl_F77
15989 # Object file suffix (normally "o").
15990 objext="$ac_objext"
15992 # Old archive suffix (normally "a").
15995 # Shared library suffix (normally ".so").
15996 shrext_cmds='$shrext_cmds'
15998 # Executable file suffix (normally "").
16001 # Additional compiler flags for building library objects.
16002 pic_flag=$lt_lt_prog_compiler_pic_F77
16005 # What is the maximum length of a command?
16006 max_cmd_len=$lt_cv_sys_max_cmd_len
16008 # Does compiler simultaneously support -c and -o options?
16009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16011 # Must we lock files when doing compilation?
16012 need_locks=$lt_need_locks
16014 # Do we need the lib prefix for modules?
16015 need_lib_prefix=$need_lib_prefix
16017 # Do we need a version for libraries?
16018 need_version=$need_version
16020 # Whether dlopen is supported.
16021 dlopen_support=$enable_dlopen
16023 # Whether dlopen of programs is supported.
16024 dlopen_self=$enable_dlopen_self
16026 # Whether dlopen of statically linked programs is supported.
16027 dlopen_self_static=$enable_dlopen_self_static
16029 # Compiler flag to prevent dynamic linking.
16030 link_static_flag=$lt_lt_prog_compiler_static_F77
16032 # Compiler flag to turn off builtin functions.
16033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16035 # Compiler flag to allow reflexive dlopens.
16036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16038 # Compiler flag to generate shared objects directly from archives.
16039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16041 # Compiler flag to generate thread-safe objects.
16042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16044 # Library versioning type.
16045 version_type=$version_type
16047 # Format of library name prefix.
16048 libname_spec=$lt_libname_spec
16050 # List of archive names. First name is the real one, the rest are links.
16051 # The last name is the one that the linker finds with -lNAME.
16052 library_names_spec=$lt_library_names_spec
16054 # The coded name of the library, if different from the real name.
16055 soname_spec=$lt_soname_spec
16057 # Commands used to build and install an old-style archive.
16059 old_archive_cmds=$lt_old_archive_cmds_F77
16060 old_postinstall_cmds=$lt_old_postinstall_cmds
16061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16063 # Create an old-style archive from a shared archive.
16064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16066 # Create a temporary old-style archive to link instead of a shared archive.
16067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16069 # Commands used to build and install a shared archive.
16070 archive_cmds=$lt_archive_cmds_F77
16071 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16072 postinstall_cmds=$lt_postinstall_cmds
16073 postuninstall_cmds=$lt_postuninstall_cmds
16075 # Commands used to build a loadable module (assumed same as above if empty)
16076 module_cmds=$lt_module_cmds_F77
16077 module_expsym_cmds=$lt_module_expsym_cmds_F77
16079 # Commands to strip libraries.
16080 old_striplib=$lt_old_striplib
16081 striplib=$lt_striplib
16083 # Dependencies to place before the objects being linked to create a
16085 predep_objects=$lt_predep_objects_F77
16087 # Dependencies to place after the objects being linked to create a
16089 postdep_objects=$lt_postdep_objects_F77
16091 # Dependencies to place before the objects being linked to create a
16093 predeps=$lt_predeps_F77
16095 # Dependencies to place after the objects being linked to create a
16097 postdeps=$lt_postdeps_F77
16099 # The directories searched by this compiler when creating a shared
16101 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16103 # The library search path used internally by the compiler when linking
16104 # a shared library.
16105 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16107 # Method to check whether dependent libraries are shared objects.
16108 deplibs_check_method=$lt_deplibs_check_method
16110 # Command to use when deplibs_check_method == file_magic.
16111 file_magic_cmd=$lt_file_magic_cmd
16113 # Flag that allows shared libraries with undefined symbols to be built.
16114 allow_undefined_flag=$lt_allow_undefined_flag_F77
16116 # Flag that forces no undefined symbols.
16117 no_undefined_flag=$lt_no_undefined_flag_F77
16119 # Commands used to finish a libtool library installation in a directory.
16120 finish_cmds=$lt_finish_cmds
16122 # Same as above, but a single script fragment to be evaled but not shown.
16123 finish_eval=$lt_finish_eval
16125 # Take the output of nm and produce a listing of raw symbols and C names.
16126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16128 # Transform the output of nm in a proper C declaration
16129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16131 # Transform the output of nm in a C name address pair
16132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16134 # This is the shared library runtime path variable.
16135 runpath_var=$runpath_var
16137 # This is the shared library path variable.
16138 shlibpath_var=$shlibpath_var
16140 # Is shlibpath searched before the hard-coded library search path?
16141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16143 # How to hardcode a shared library path into an executable.
16144 hardcode_action=$hardcode_action_F77
16146 # Whether we should hardcode library paths into libraries.
16147 hardcode_into_libs=$hardcode_into_libs
16149 # Flag to hardcode \$libdir into a binary during linking.
16150 # This must work even if \$libdir does not exist.
16151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16153 # If ld is used when linking, flag to hardcode \$libdir into
16154 # a binary during linking. This must work even if \$libdir does
16156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16158 # Whether we need a single -rpath flag with a separated argument.
16159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16161 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16162 # resulting binary.
16163 hardcode_direct=$hardcode_direct_F77
16165 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16166 # resulting binary.
16167 hardcode_minus_L=$hardcode_minus_L_F77
16169 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16170 # the resulting binary.
16171 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16173 # Set to yes if building a shared library automatically hardcodes DIR into the library
16174 # and all subsequent libraries and executables linked against it.
16175 hardcode_automatic=$hardcode_automatic_F77
16177 # Variables whose values should be saved in libtool wrapper scripts and
16178 # restored at relink time.
16179 variables_saved_for_relink="$variables_saved_for_relink"
16181 # Whether libtool must link a program against all its dependency libraries.
16182 link_all_deplibs=$link_all_deplibs_F77
16184 # Compile-time system search path for libraries
16185 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16187 # Run-time system search path for libraries
16188 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16190 # Fix the shell variable \$srcfile for the compiler.
16191 fix_srcfile_path=$lt_fix_srcfile_path
16193 # Set to yes if exported symbols are required.
16194 always_export_symbols=$always_export_symbols_F77
16196 # The commands to list exported symbols.
16197 export_symbols_cmds=$lt_export_symbols_cmds_F77
16199 # The commands to extract the exported symbol list from a shared archive.
16200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16202 # Symbols that should not be listed in the preloaded symbols.
16203 exclude_expsyms=$lt_exclude_expsyms_F77
16205 # Symbols that must always be exported.
16206 include_expsyms=$lt_include_expsyms_F77
16208 # ### END LIBTOOL TAG CONFIG: $tagname
16214 # If there is no Makefile yet, we rely on a make rule to execute
16215 # `config.status --recheck' to rerun these tests and create the
16216 # libtool script then.
16217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16218 if test -f "$ltmain_in"; then
16219 test -f Makefile && make "$ltmain"
16225 ac_cpp='$CPP $CPPFLAGS'
16226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16238 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16241 # Source file extension for Java test sources.
16244 # Object file extension for compiled Java test sources.
16248 # Code to be used in simple compile tests
16249 lt_simple_compile_test_code="class foo {}"
16251 # Code to be used in simple link tests
16252 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16254 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16256 # If no C compiler was specified, use CC.
16259 # If no C compiler flags were specified, use CFLAGS.
16260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16262 # Allow CC to be a program name with arguments.
16266 # save warnings/boilerplate of simple test code
16267 ac_outfile=conftest.$ac_objext
16268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16270 _lt_compiler_boilerplate=`cat conftest.err`
16273 ac_outfile=conftest.$ac_objext
16274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16276 _lt_linker_boilerplate=`cat conftest.err`
16280 # Allow CC to be a program name with arguments.
16285 for cc_temp in $compiler""; do
16287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16296 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16297 archive_cmds_need_lc_GCJ=no
16299 old_archive_cmds_GCJ=$old_archive_cmds
16302 lt_prog_compiler_no_builtin_flag_GCJ=
16304 if test "$GCC" = yes; then
16305 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16309 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16310 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16311 $as_echo_n "(cached) " >&6
16313 lt_cv_prog_compiler_rtti_exceptions=no
16314 ac_outfile=conftest.$ac_objext
16315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16316 lt_compiler_flag="-fno-rtti -fno-exceptions"
16317 # Insert the option either (1) after the last *FLAGS variable, or
16318 # (2) before a word containing "conftest.", or (3) at the end.
16319 # Note that $ac_compile itself does not contain backslashes and begins
16320 # with a dollar sign (not a hyphen), so the echo should work correctly.
16321 # The option is referenced via a variable to avoid confusing sed.
16322 lt_compile=`echo "$ac_compile" | $SED \
16323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16325 -e 's:$: $lt_compiler_flag:'`
16326 (eval echo "\"\$as_me:16326: $lt_compile\"" >&5)
16327 (eval "$lt_compile" 2>conftest.err)
16329 cat conftest.err >&5
16330 echo "$as_me:16330: \$? = $ac_status" >&5
16331 if (exit $ac_status) && test -s "$ac_outfile"; then
16332 # The compiler can only warn and ignore the option if not recognized
16333 # So say no if there are warnings other than the usual output.
16334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16337 lt_cv_prog_compiler_rtti_exceptions=yes
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16344 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16347 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16354 lt_prog_compiler_wl_GCJ=
16355 lt_prog_compiler_pic_GCJ=
16356 lt_prog_compiler_static_GCJ=
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16359 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16361 if test "$GCC" = yes; then
16362 lt_prog_compiler_wl_GCJ='-Wl,'
16363 lt_prog_compiler_static_GCJ='-static'
16367 # All AIX code is PIC.
16368 if test "$host_cpu" = ia64; then
16369 # AIX 5 now supports IA64 processor
16370 lt_prog_compiler_static_GCJ='-Bstatic'
16375 # FIXME: we need at least 68020 code to build shared libraries, but
16376 # adding the `-m68020' flag to GCC prevents building anything better,
16378 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16381 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16382 # PIC is the default for these OSes.
16385 mingw* | cygwin* | pw32* | os2*)
16386 # This hack is so that the source file can tell whether it is being
16387 # built for inclusion in a dll (and should export symbols for example).
16388 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16389 # (--disable-auto-import) libraries
16393 darwin* | rhapsody*)
16394 # PIC is the default on this platform
16395 # Common symbols not allowed in MH_DYLIB files
16396 lt_prog_compiler_pic_GCJ='-fno-common'
16400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16401 # Instead, we relocate shared libraries at runtime.
16405 # Just because we use GCC doesn't mean we suddenly get shared libraries
16406 # on systems that don't support them.
16407 lt_prog_compiler_can_build_shared_GCJ=no
16412 if test -d /usr/nec; then
16413 lt_prog_compiler_pic_GCJ=-Kconform_pic
16418 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16419 # not for PA HP-UX.
16425 lt_prog_compiler_pic_GCJ='-fPIC'
16431 lt_prog_compiler_pic_GCJ='-fPIC'
16435 # PORTME Check for flag to pass linker flags through the system compiler.
16438 lt_prog_compiler_wl_GCJ='-Wl,'
16439 if test "$host_cpu" = ia64; then
16440 # AIX 5 now supports IA64 processor
16441 lt_prog_compiler_static_GCJ='-Bstatic'
16443 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16447 # PIC is the default on this platform
16448 # Common symbols not allowed in MH_DYLIB files
16449 case $cc_basename in
16451 lt_prog_compiler_pic_GCJ='-qnocommon'
16452 lt_prog_compiler_wl_GCJ='-Wl,'
16457 mingw* | cygwin* | pw32* | os2*)
16458 # This hack is so that the source file can tell whether it is being
16459 # built for inclusion in a dll (and should export symbols for example).
16463 hpux9* | hpux10* | hpux11*)
16464 lt_prog_compiler_wl_GCJ='-Wl,'
16465 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16466 # not for PA HP-UX.
16472 lt_prog_compiler_pic_GCJ='+Z'
16475 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16476 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16479 irix5* | irix6* | nonstopux*)
16480 lt_prog_compiler_wl_GCJ='-Wl,'
16481 # PIC (with -KPIC) is the default.
16482 lt_prog_compiler_static_GCJ='-non_shared'
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16490 linux* | k*bsd*-gnu)
16491 case $cc_basename in
16493 lt_prog_compiler_wl_GCJ='-Wl,'
16494 lt_prog_compiler_pic_GCJ='-KPIC'
16495 lt_prog_compiler_static_GCJ='-static'
16497 pgcc* | pgf77* | pgf90* | pgf95*)
16498 # Portland Group compilers (*not* the Pentium gcc compiler,
16499 # which looks to be a dead project)
16500 lt_prog_compiler_wl_GCJ='-Wl,'
16501 lt_prog_compiler_pic_GCJ='-fpic'
16502 lt_prog_compiler_static_GCJ='-Bstatic'
16505 lt_prog_compiler_wl_GCJ='-Wl,'
16506 # All Alpha code is PIC.
16507 lt_prog_compiler_static_GCJ='-non_shared'
16510 case `$CC -V 2>&1 | sed 5q` in
16513 lt_prog_compiler_pic_GCJ='-KPIC'
16514 lt_prog_compiler_static_GCJ='-Bstatic'
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16518 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16519 lt_prog_compiler_pic_GCJ='-KPIC'
16520 lt_prog_compiler_static_GCJ='-Bstatic'
16521 lt_prog_compiler_wl_GCJ=''
16528 osf3* | osf4* | osf5*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 # All OSF/1 code is PIC.
16531 lt_prog_compiler_static_GCJ='-non_shared'
16535 lt_prog_compiler_static_GCJ='-non_shared'
16539 lt_prog_compiler_pic_GCJ='-KPIC'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16541 case $cc_basename in
16542 f77* | f90* | f95*)
16543 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16545 lt_prog_compiler_wl_GCJ='-Wl,';;
16550 lt_prog_compiler_wl_GCJ='-Qoption ld '
16551 lt_prog_compiler_pic_GCJ='-PIC'
16552 lt_prog_compiler_static_GCJ='-Bstatic'
16555 sysv4 | sysv4.2uw2* | sysv4.3*)
16556 lt_prog_compiler_wl_GCJ='-Wl,'
16557 lt_prog_compiler_pic_GCJ='-KPIC'
16558 lt_prog_compiler_static_GCJ='-Bstatic'
16562 if test -d /usr/nec ;then
16563 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16564 lt_prog_compiler_static_GCJ='-Bstatic'
16568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16569 lt_prog_compiler_wl_GCJ='-Wl,'
16570 lt_prog_compiler_pic_GCJ='-KPIC'
16571 lt_prog_compiler_static_GCJ='-Bstatic'
16575 lt_prog_compiler_wl_GCJ='-Wl,'
16576 lt_prog_compiler_can_build_shared_GCJ=no
16580 lt_prog_compiler_pic_GCJ='-pic'
16581 lt_prog_compiler_static_GCJ='-Bstatic'
16585 lt_prog_compiler_can_build_shared_GCJ=no
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16591 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16594 # Check to make sure the PIC flag actually works.
16596 if test -n "$lt_prog_compiler_pic_GCJ"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16599 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16600 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16601 $as_echo_n "(cached) " >&6
16603 lt_cv_prog_compiler_pic_works_GCJ=no
16604 ac_outfile=conftest.$ac_objext
16605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16607 # Insert the option either (1) after the last *FLAGS variable, or
16608 # (2) before a word containing "conftest.", or (3) at the end.
16609 # Note that $ac_compile itself does not contain backslashes and begins
16610 # with a dollar sign (not a hyphen), so the echo should work correctly.
16611 # The option is referenced via a variable to avoid confusing sed.
16612 lt_compile=`echo "$ac_compile" | $SED \
16613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16615 -e 's:$: $lt_compiler_flag:'`
16616 (eval echo "\"\$as_me:16616: $lt_compile\"" >&5)
16617 (eval "$lt_compile" 2>conftest.err)
16619 cat conftest.err >&5
16620 echo "$as_me:16620: \$? = $ac_status" >&5
16621 if (exit $ac_status) && test -s "$ac_outfile"; then
16622 # The compiler can only warn and ignore the option if not recognized
16623 # So say no if there are warnings other than the usual output.
16624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16627 lt_cv_prog_compiler_pic_works_GCJ=yes
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16634 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16636 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16637 case $lt_prog_compiler_pic_GCJ in
16639 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16642 lt_prog_compiler_pic_GCJ=
16643 lt_prog_compiler_can_build_shared_GCJ=no
16648 # For platforms which do not support PIC, -DPIC is meaningless:
16650 lt_prog_compiler_pic_GCJ=
16653 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16658 # Check to make sure the static flag actually works.
16660 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16662 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16663 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16664 $as_echo_n "(cached) " >&6
16666 lt_cv_prog_compiler_static_works_GCJ=no
16667 save_LDFLAGS="$LDFLAGS"
16668 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16669 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16671 # The linker can only warn and ignore the option if not recognized
16672 # So say no if there are warnings
16673 if test -s conftest.err; then
16674 # Append any errors to the config.log.
16675 cat conftest.err 1>&5
16676 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16678 if diff conftest.exp conftest.er2 >/dev/null; then
16679 lt_cv_prog_compiler_static_works_GCJ=yes
16682 lt_cv_prog_compiler_static_works_GCJ=yes
16686 LDFLAGS="$save_LDFLAGS"
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16690 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16692 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16695 lt_prog_compiler_static_GCJ=
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16701 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16702 $as_echo_n "(cached) " >&6
16704 lt_cv_prog_compiler_c_o_GCJ=no
16705 $rm -r conftest 2>/dev/null
16709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16711 lt_compiler_flag="-o out/conftest2.$ac_objext"
16712 # Insert the option either (1) after the last *FLAGS variable, or
16713 # (2) before a word containing "conftest.", or (3) at the end.
16714 # Note that $ac_compile itself does not contain backslashes and begins
16715 # with a dollar sign (not a hyphen), so the echo should work correctly.
16716 lt_compile=`echo "$ac_compile" | $SED \
16717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16719 -e 's:$: $lt_compiler_flag:'`
16720 (eval echo "\"\$as_me:16720: $lt_compile\"" >&5)
16721 (eval "$lt_compile" 2>out/conftest.err)
16723 cat out/conftest.err >&5
16724 echo "$as_me:16724: \$? = $ac_status" >&5
16725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16727 # The compiler can only warn and ignore the option if not recognized
16728 # So say no if there are warnings
16729 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16732 lt_cv_prog_compiler_c_o_GCJ=yes
16737 # SGI C++ compiler will create directory out/ii_files/ for
16738 # template instantiation
16739 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16740 $rm out/* && rmdir out
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16747 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16750 hard_links="nottested"
16751 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16752 # do not overwrite the value of need_locks provided by the user
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16754 $as_echo_n "checking if we can lock with hard links... " >&6; }
16757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16759 ln conftest.a conftest.b 2>&5 || hard_links=no
16760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16762 $as_echo "$hard_links" >&6; }
16763 if test "$hard_links" = no; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16765 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16773 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16776 allow_undefined_flag_GCJ=
16777 enable_shared_with_static_runtimes_GCJ=no
16779 archive_expsym_cmds_GCJ=
16780 old_archive_From_new_cmds_GCJ=
16781 old_archive_from_expsyms_cmds_GCJ=
16782 export_dynamic_flag_spec_GCJ=
16783 whole_archive_flag_spec_GCJ=
16784 thread_safe_flag_spec_GCJ=
16785 hardcode_libdir_flag_spec_GCJ=
16786 hardcode_libdir_flag_spec_ld_GCJ=
16787 hardcode_libdir_separator_GCJ=
16788 hardcode_direct_GCJ=no
16789 hardcode_minus_L_GCJ=no
16790 hardcode_shlibpath_var_GCJ=unsupported
16791 link_all_deplibs_GCJ=unknown
16792 hardcode_automatic_GCJ=no
16794 module_expsym_cmds_GCJ=
16795 always_export_symbols_GCJ=no
16796 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16797 # include_expsyms should be a list of space-separated symbols to be *always*
16798 # included in the symbol list
16799 include_expsyms_GCJ=
16800 # exclude_expsyms can be an extended regexp of symbols to exclude
16801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16803 # as well as any symbol that contains `d'.
16804 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16806 # platforms (ab)use it in PIC code, but their linkers get confused if
16807 # the symbol is explicitly referenced. Since portable code cannot
16808 # rely on this symbol name, it's probably fine to never include it in
16809 # preloaded symbol tables.
16810 # Exclude shared library initialization/finalization symbols.
16811 extract_expsyms_cmds=
16812 # Just being paranoid about ensuring that cc_basename is set.
16813 for cc_temp in $compiler""; do
16815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16824 cygwin* | mingw* | pw32*)
16825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16826 # When not using gcc, we currently assume that we are using
16827 # Microsoft Visual C++.
16828 if test "$GCC" != yes; then
16833 # we just hope/assume this is gcc and not c89 (= MSVC++)
16842 if test "$with_gnu_ld" = yes; then
16843 # If archive_cmds runs LD, not CC, wlarc should be empty
16846 # Set some defaults for GNU ld with shared library support. These
16847 # are reset later if shared libraries are not supported. Putting them
16848 # here allows them to be overridden if necessary.
16849 runpath_var=LD_RUN_PATH
16850 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16851 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16852 # ancient GNU ld didn't support --whole-archive et. al.
16853 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16854 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16856 whole_archive_flag_spec_GCJ=
16858 supports_anon_versioning=no
16859 case `$LD -v 2>/dev/null` in
16860 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16861 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16862 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16863 *\ 2.11.*) ;; # other 2.11 versions
16864 *) supports_anon_versioning=yes ;;
16867 # See if GNU ld supports shared libraries.
16870 # On AIX/PPC, the GNU linker is very broken
16871 if test "$host_cpu" != ia64; then
16875 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16876 *** to be unable to reliably create shared libraries on AIX.
16877 *** Therefore, libtool is disabling shared libraries support. If you
16878 *** really care for shared libraries, you may want to modify your PATH
16879 *** so that a non-GNU linker is found, and then restart.
16886 archive_cmds_GCJ='$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)'
16887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16888 hardcode_minus_L_GCJ=yes
16890 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16891 # that the semantics of dynamic libraries on AmigaOS, at least up
16892 # to version 4, is to share data among multiple programs linked
16893 # with the same dynamic library. Since this doesn't match the
16894 # behavior of shared libraries on other platforms, we can't use
16900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16901 allow_undefined_flag_GCJ=unsupported
16902 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16903 # support --undefined. This deserves some investigation. FIXME
16904 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910 cygwin* | mingw* | pw32*)
16911 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16912 # as there is no search path for DLLs.
16913 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16914 allow_undefined_flag_GCJ=unsupported
16915 always_export_symbols_GCJ=no
16916 enable_shared_with_static_runtimes_GCJ=yes
16917 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16919 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16920 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16921 # If the export-symbols file already is a .def file (1st line
16922 # is EXPORTS), use it as is; otherwise, prepend...
16923 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16924 cp $export_symbols $output_objdir/$soname.def;
16926 echo EXPORTS > $output_objdir/$soname.def;
16927 cat $export_symbols >> $output_objdir/$soname.def;
16929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16936 hardcode_direct_GCJ=no
16937 hardcode_shlibpath_var_GCJ=no
16938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16939 export_dynamic_flag_spec_GCJ='${wl}-E'
16940 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16941 # Instead, shared libraries are loaded at an image base (0x10000000 by
16942 # default) and relocated if they conflict, which is a slow very memory
16943 # consuming and fragmenting process. To avoid this, we pick a random,
16944 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16945 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16946 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16947 archive_expsym_cmds_GCJ='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'
16950 gnu* | linux* | k*bsd*-gnu)
16951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16953 case $cc_basename,$host_cpu in
16954 pgcc*) # Portland Group C compiler
16955 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16956 tmp_addflag=' $pic_flag'
16958 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16959 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16960 tmp_addflag=' $pic_flag -Mnomain' ;;
16961 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16962 tmp_addflag=' -i_dynamic' ;;
16963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16964 tmp_addflag=' -i_dynamic -nofor_main' ;;
16965 ifc* | ifort*) # Intel Fortran compiler
16966 tmp_addflag=' -nofor_main' ;;
16968 case `$CC -V 2>&1 | sed 5q` in
16969 *Sun\ C*) # Sun C 5.9
16970 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16971 tmp_sharedflag='-G' ;;
16972 *Sun\ F*) # Sun Fortran 8.3
16973 tmp_sharedflag='-G' ;;
16975 tmp_sharedflag='-shared' ;;
16977 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16979 if test $supports_anon_versioning = yes; then
16980 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16982 $echo "local: *; };" >> $output_objdir/$libname.ver~
16983 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16985 link_all_deplibs_GCJ=no
16991 netbsd* | netbsdelf*-gnu)
16992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16993 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16996 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17002 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17007 *** create shared libraries on Solaris systems. Therefore, libtool
17008 *** is disabling shared libraries support. We urge you to upgrade GNU
17009 *** binutils to release 2.9.1 or newer. Another option is to modify
17010 *** your PATH or compiler configuration so that the native linker is
17011 *** used, and then restart.
17014 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17023 case `$LD -v 2>&1` in
17024 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17029 *** reliably create shared libraries on SCO systems. Therefore, libtool
17030 *** is disabling shared libraries support. We urge you to upgrade GNU
17031 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17032 *** your PATH or compiler configuration so that the native linker is
17033 *** used, and then restart.
17038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17039 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17040 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17041 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17050 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_direct_GCJ=yes
17053 hardcode_shlibpath_var_GCJ=no
17057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17058 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17059 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17066 if test "$ld_shlibs_GCJ" = no; then
17068 hardcode_libdir_flag_spec_GCJ=
17069 export_dynamic_flag_spec_GCJ=
17070 whole_archive_flag_spec_GCJ=
17073 # PORTME fill in a description of your system's linker (not GNU ld)
17076 allow_undefined_flag_GCJ=unsupported
17077 always_export_symbols_GCJ=yes
17078 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17079 # Note: this linker hardcodes the directories in LIBPATH if there
17080 # are no directories specified by -L.
17081 hardcode_minus_L_GCJ=yes
17082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17083 # Neither direct hardcoding nor static linking is supported with a
17085 hardcode_direct_GCJ=unsupported
17090 if test "$host_cpu" = ia64; then
17091 # On IA64, the linker does run time linking by default, so we don't
17092 # have to do anything special.
17093 aix_use_runtimelinking=no
17094 exp_sym_flag='-Bexport'
17097 # If we're using GNU nm, then we don't want the "-C" option.
17098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17100 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17102 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17104 aix_use_runtimelinking=no
17106 # Test if we are trying to use run time linking or normal
17107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17108 # need to do runtime linking.
17109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17110 for ld_flag in $LDFLAGS; do
17111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17112 aix_use_runtimelinking=yes
17119 exp_sym_flag='-bexport'
17120 no_entry_flag='-bnoentry'
17123 # When large executables or shared objects are built, AIX ld can
17124 # have problems creating the table of contents. If linking a library
17125 # or program results in "error TOC overflow" add -mminimal-toc to
17126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17129 archive_cmds_GCJ=''
17130 hardcode_direct_GCJ=yes
17131 hardcode_libdir_separator_GCJ=':'
17132 link_all_deplibs_GCJ=yes
17134 if test "$GCC" = yes; then
17135 case $host_os in aix4.[012]|aix4.[012].*)
17136 # We only want to do this on AIX 4.2 and lower, the check
17137 # below for broken collect2 doesn't work under 4.3+
17138 collect2name=`${CC} -print-prog-name=collect2`
17139 if test -f "$collect2name" && \
17140 strings "$collect2name" | grep resolve_lib_name >/dev/null
17142 # We have reworked collect2
17145 # We have old collect2
17146 hardcode_direct_GCJ=unsupported
17147 # It fails to find uninstalled libraries when the uninstalled
17148 # path is not listed in the libpath. Setting hardcode_minus_L
17149 # to unsupported forces relinking
17150 hardcode_minus_L_GCJ=yes
17151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17152 hardcode_libdir_separator_GCJ=
17156 shared_flag='-shared'
17157 if test "$aix_use_runtimelinking" = yes; then
17158 shared_flag="$shared_flag "'${wl}-G'
17162 if test "$host_cpu" = ia64; then
17163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17164 # chokes on -Wl,-G. The following line is correct:
17167 if test "$aix_use_runtimelinking" = yes; then
17168 shared_flag='${wl}-G'
17170 shared_flag='${wl}-bM:SRE'
17175 # It seems that -bexpall does not export symbols beginning with
17176 # underscore (_), so it is better to generate a list of symbols to export.
17177 always_export_symbols_GCJ=yes
17178 if test "$aix_use_runtimelinking" = yes; then
17179 # Warning - without using the other runtime loading flags (-brtl),
17180 # -berok will link without error, but may produce a broken library.
17181 allow_undefined_flag_GCJ='-berok'
17182 # Determine the default libpath from the value encoded in an empty executable.
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17194 if ac_fn_c_try_link "$LINENO"; then :
17196 lt_aix_libpath_sed='
17197 /Import File Strings/,/^$/ {
17203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17204 # Check for a 64-bit object if we didn't find anything.
17205 if test -z "$aix_libpath"; then
17206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17213 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17214 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17216 if test "$host_cpu" = ia64; then
17217 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17218 allow_undefined_flag_GCJ="-z nodefs"
17219 archive_expsym_cmds_GCJ="\$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"
17221 # Determine the default libpath from the value encoded in an empty executable.
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17233 if ac_fn_c_try_link "$LINENO"; then :
17235 lt_aix_libpath_sed='
17236 /Import File Strings/,/^$/ {
17242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17243 # Check for a 64-bit object if we didn't find anything.
17244 if test -z "$aix_libpath"; then
17245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17248 rm -f core conftest.err conftest.$ac_objext \
17249 conftest$ac_exeext conftest.$ac_ext
17250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17252 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17253 # Warning - without using the other run time loading flags,
17254 # -berok will link without error, but may produce a broken library.
17255 no_undefined_flag_GCJ=' ${wl}-bernotok'
17256 allow_undefined_flag_GCJ=' ${wl}-berok'
17257 # Exported symbols can be pulled into shared objects from archives
17258 whole_archive_flag_spec_GCJ='$convenience'
17259 archive_cmds_need_lc_GCJ=yes
17260 # This is similar to how AIX traditionally builds its shared libraries.
17261 archive_expsym_cmds_GCJ="\$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'
17267 archive_cmds_GCJ='$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)'
17268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269 hardcode_minus_L_GCJ=yes
17270 # see comment about different semantics on the GNU ld section
17275 export_dynamic_flag_spec_GCJ=-rdynamic
17278 cygwin* | mingw* | pw32*)
17279 # When not using gcc, we currently assume that we are using
17280 # Microsoft Visual C++.
17281 # hardcode_libdir_flag_spec is actually meaningless, as there is
17282 # no search path for DLLs.
17283 hardcode_libdir_flag_spec_GCJ=' '
17284 allow_undefined_flag_GCJ=unsupported
17285 # Tell ltmain to make .lib files, not .a files.
17287 # Tell ltmain to make .dll files, not .so files.
17289 # FIXME: Setting linknames here is a bad hack.
17290 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17291 # The linker will automatically build a .lib file if we build a DLL.
17292 old_archive_From_new_cmds_GCJ='true'
17293 # FIXME: Should let the user specify the lib program.
17294 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17295 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17296 enable_shared_with_static_runtimes_GCJ=yes
17299 darwin* | rhapsody*)
17301 rhapsody* | darwin1.[012])
17302 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17305 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17306 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17308 case ${MACOSX_DEPLOYMENT_TARGET} in
17310 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17313 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17319 archive_cmds_need_lc_GCJ=no
17320 hardcode_direct_GCJ=no
17321 hardcode_automatic_GCJ=yes
17322 hardcode_shlibpath_var_GCJ=unsupported
17323 whole_archive_flag_spec_GCJ=''
17324 link_all_deplibs_GCJ=yes
17325 if test "$GCC" = yes ; then
17326 output_verbose_link_cmd='echo'
17327 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17328 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17329 archive_expsym_cmds_GCJ="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}"
17330 module_expsym_cmds_GCJ="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}"
17332 case $cc_basename in
17334 output_verbose_link_cmd='echo'
17335 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17336 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17337 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17338 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17339 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17350 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17351 hardcode_shlibpath_var_GCJ=no
17358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17359 # support. Future versions do this automatically, but an explicit c++rt0.o
17360 # does not break anything, and helps significantly (at the cost of a little
17363 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17365 hardcode_direct_GCJ=yes
17366 hardcode_shlibpath_var_GCJ=no
17369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17371 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17372 hardcode_direct_GCJ=yes
17373 hardcode_minus_L_GCJ=yes
17374 hardcode_shlibpath_var_GCJ=no
17377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17378 freebsd* | dragonfly*)
17379 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17381 hardcode_direct_GCJ=yes
17382 hardcode_shlibpath_var_GCJ=no
17386 if test "$GCC" = yes; then
17387 archive_cmds_GCJ='$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'
17389 archive_cmds_GCJ='$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'
17391 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17392 hardcode_libdir_separator_GCJ=:
17393 hardcode_direct_GCJ=yes
17395 # hardcode_minus_L: Not really in the search PATH,
17396 # but as the default location of the library.
17397 hardcode_minus_L_GCJ=yes
17398 export_dynamic_flag_spec_GCJ='${wl}-E'
17402 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17403 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17405 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17407 if test "$with_gnu_ld" = no; then
17408 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17409 hardcode_libdir_separator_GCJ=:
17411 hardcode_direct_GCJ=yes
17412 export_dynamic_flag_spec_GCJ='${wl}-E'
17414 # hardcode_minus_L: Not really in the search PATH,
17415 # but as the default location of the library.
17416 hardcode_minus_L_GCJ=yes
17421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17424 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17430 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17436 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17439 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17442 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17446 if test "$with_gnu_ld" = no; then
17447 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17448 hardcode_libdir_separator_GCJ=:
17452 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17453 hardcode_direct_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17457 hardcode_direct_GCJ=yes
17458 export_dynamic_flag_spec_GCJ='${wl}-E'
17460 # hardcode_minus_L: Not really in the search PATH,
17461 # but as the default location of the library.
17462 hardcode_minus_L_GCJ=yes
17468 irix5* | irix6* | nonstopux*)
17469 if test "$GCC" = yes; then
17470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17472 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17473 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17476 hardcode_libdir_separator_GCJ=:
17477 link_all_deplibs_GCJ=yes
17480 netbsd* | netbsdelf*-gnu)
17481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17482 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17484 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487 hardcode_direct_GCJ=yes
17488 hardcode_shlibpath_var_GCJ=no
17492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493 hardcode_direct_GCJ=yes
17494 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17495 hardcode_libdir_separator_GCJ=:
17496 hardcode_shlibpath_var_GCJ=no
17500 if test -f /usr/libexec/ld.so; then
17501 hardcode_direct_GCJ=yes
17502 hardcode_shlibpath_var_GCJ=no
17503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17504 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17505 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17507 export_dynamic_flag_spec_GCJ='${wl}-E'
17510 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17511 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527 hardcode_minus_L_GCJ=yes
17528 allow_undefined_flag_GCJ=unsupported
17529 archive_cmds_GCJ='$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'
17530 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17534 if test "$GCC" = yes; then
17535 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17536 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17538 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17539 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17542 hardcode_libdir_separator_GCJ=:
17545 osf4* | osf5*) # as osf3* with the addition of -msym flag
17546 if test "$GCC" = yes; then
17547 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17548 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17551 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17552 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17553 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17554 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17556 # Both c and cxx compiler support -rpath directly
17557 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17559 hardcode_libdir_separator_GCJ=:
17563 no_undefined_flag_GCJ=' -z text'
17564 if test "$GCC" = yes; then
17566 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17568 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17571 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17572 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17573 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17576 hardcode_shlibpath_var_GCJ=no
17578 solaris2.[0-5] | solaris2.[0-5].*) ;;
17580 # The compiler driver will combine and reorder linker options,
17581 # but understands `-z linker_flag'. GCC discards it without `$wl',
17582 # but is careful enough not to reorder.
17583 # Supported since Solaris 2.6 (maybe 2.5.1?)
17584 if test "$GCC" = yes; then
17585 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17587 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17591 link_all_deplibs_GCJ=yes
17595 if test "x$host_vendor" = xsequent; then
17596 # Use $CC to link under sequent, because it throws in some extra .o
17597 # files that make .init and .fini sections work.
17598 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17600 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603 hardcode_direct_GCJ=yes
17604 hardcode_minus_L_GCJ=yes
17605 hardcode_shlibpath_var_GCJ=no
17609 case $host_vendor in
17611 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17612 hardcode_direct_GCJ=yes # is this really true???
17615 ## LD is ld it makes a PLAMLIB
17616 ## CC just makes a GrossModule.
17617 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17618 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17619 hardcode_direct_GCJ=no
17622 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17623 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17626 runpath_var='LD_RUN_PATH'
17627 hardcode_shlibpath_var_GCJ=no
17631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 hardcode_shlibpath_var_GCJ=no
17633 export_dynamic_flag_spec_GCJ='-Bexport'
17637 if test -d /usr/nec; then
17638 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17639 hardcode_shlibpath_var_GCJ=no
17640 runpath_var=LD_RUN_PATH
17641 hardcode_runpath_var=yes
17646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17647 no_undefined_flag_GCJ='${wl}-z,text'
17648 archive_cmds_need_lc_GCJ=no
17649 hardcode_shlibpath_var_GCJ=no
17650 runpath_var='LD_RUN_PATH'
17652 if test "$GCC" = yes; then
17653 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 sysv5* | sco3.2v5* | sco5v6*)
17662 # Note: We can NOT use -z defs as we might desire, because we do not
17663 # link with -lc, and that would cause any symbols used from libc to
17664 # always be unresolved, which means just about no library would
17665 # ever link correctly. If we're not using GNU ld we use -z text
17666 # though, which does catch some bad symbols but isn't as heavy-handed
17668 no_undefined_flag_GCJ='${wl}-z,text'
17669 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17670 archive_cmds_need_lc_GCJ=no
17671 hardcode_shlibpath_var_GCJ=no
17672 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17673 hardcode_libdir_separator_GCJ=':'
17674 link_all_deplibs_GCJ=yes
17675 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17676 runpath_var='LD_RUN_PATH'
17678 if test "$GCC" = yes; then
17679 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17680 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17683 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17688 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17689 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690 hardcode_shlibpath_var_GCJ=no
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17700 $as_echo "$ld_shlibs_GCJ" >&6; }
17701 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17704 # Do we need to explicitly link libc?
17706 case "x$archive_cmds_need_lc_GCJ" in
17708 # Assume -lc should be added
17709 archive_cmds_need_lc_GCJ=yes
17711 if test "$enable_shared" = yes && test "$GCC" = yes; then
17712 case $archive_cmds_GCJ in
17714 # FIXME: we may have to deal with multi-command sequences.
17717 # Test whether the compiler implicitly links with -lc since on some
17718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17719 # to ld, don't add -lc before -lgcc.
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17726 (eval $ac_compile) 2>&5
17728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17729 test $ac_status = 0; } 2>conftest.err; then
17732 libobjs=conftest.$ac_objext
17734 wl=$lt_prog_compiler_wl_GCJ
17735 pic_flag=$lt_prog_compiler_pic_GCJ
17741 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17742 allow_undefined_flag_GCJ=
17743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17744 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17747 test $ac_status = 0; }
17749 archive_cmds_need_lc_GCJ=no
17751 archive_cmds_need_lc_GCJ=yes
17753 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17755 cat conftest.err 1>&5
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17759 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17768 library_names_spec=
17769 libname_spec='lib$name'
17773 postuninstall_cmds=
17777 shlibpath_overrides_runpath=unknown
17779 dynamic_linker="$host_os ld.so"
17780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17782 need_lib_prefix=unknown
17783 hardcode_into_libs=no
17785 # when you set need_version to no, make sure it does not cause -set_version
17786 # flags to be left without arguments
17787 need_version=unknown
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17793 shlibpath_var=LIBPATH
17795 # AIX 3 has no versioning support, so we append a major version to the name.
17796 soname_spec='${libname}${release}${shared_ext}$major'
17803 hardcode_into_libs=yes
17804 if test "$host_cpu" = ia64; then
17805 # AIX 5 supports IA64
17806 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17807 shlibpath_var=LD_LIBRARY_PATH
17809 # With GCC up to 2.95.x, collect2 would create an import file
17810 # for dependence libraries. The import file would start with
17811 # the line `#! .'. This would cause the generated library to
17812 # depend on `.', always an invalid library. This was fixed in
17813 # development snapshots of GCC prior to 3.0.
17815 aix4 | aix4.[01] | aix4.[01].*)
17816 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17818 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17821 can_build_shared=no
17825 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17826 # soname into executable. Probably we can add versioning support to
17827 # collect2, so additional links can be useful in future.
17828 if test "$aix_use_runtimelinking" = yes; then
17829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17830 # instead of lib<name>.a to let people know that these are not
17831 # typical AIX shared libraries.
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 # We preserve .a as extension for shared libraries through AIX4.2
17835 # and later when we are not doing run time linking.
17836 library_names_spec='${libname}${release}.a $libname.a'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17839 shlibpath_var=LIBPATH
17844 library_names_spec='$libname.ixlibrary $libname.a'
17845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17846 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17850 library_names_spec='${libname}${shared_ext}'
17851 dynamic_linker="$host_os ld.so"
17852 shlibpath_var=LIBRARY_PATH
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17864 # the default ld.so.conf also contains /usr/contrib/lib and
17865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17866 # libtool to hard-code these into programs
17869 cygwin* | mingw* | pw32*)
17870 version_type=windows
17875 case $GCC,$host_os in
17876 yes,cygwin* | yes,mingw* | yes,pw32*)
17877 library_names_spec='$libname.dll.a'
17878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17879 postinstall_cmds='base_file=`basename \${file}`~
17880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17881 dldir=$destdir/`dirname \$dlpath`~
17882 test -d \$dldir || mkdir -p \$dldir~
17883 $install_prog $dir/$dlname \$dldir/$dlname~
17884 chmod a+x \$dldir/$dlname'
17885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17886 dlpath=$dir/\$dldll~
17888 shlibpath_overrides_runpath=yes
17892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17897 # MinGW DLLs use traditional 'lib' prefix
17898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17899 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17900 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17901 # It is most probably a Windows format PATH printed by
17902 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17903 # path with ; separators, and with drive letters. We can handle the
17904 # drive letters (cygwin fileutils understands them), so leave them,
17905 # especially as we might pass files found there to a mingw objdump,
17906 # which wouldn't understand a cygwinified path. Ahh.
17907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17913 # pw32 DLLs use 'pw' prefix rather than 'lib'
17914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17923 dynamic_linker='Win32 ld.exe'
17924 # FIXME: first we should search . and the directory the executable is in
17928 darwin* | rhapsody*)
17929 dynamic_linker="$host_os dyld"
17930 version_type=darwin
17933 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17934 soname_spec='${libname}${release}${major}$shared_ext'
17935 shlibpath_overrides_runpath=yes
17936 shlibpath_var=DYLD_LIBRARY_PATH
17937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 shlibpath_var=LD_LIBRARY_PATH
17955 freebsd* | dragonfly*)
17956 # DragonFly does not have aout. When/if they implement a new
17957 # versioning mechanism, adjust this.
17958 if test -x /usr/bin/objformat; then
17959 objformat=`/usr/bin/objformat`
17962 freebsd[123]*) objformat=aout ;;
17963 *) objformat=elf ;;
17966 version_type=freebsd-$objformat
17967 case $version_type in
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17978 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=yes
17983 freebsd3.[01]* | freebsdelf3.[01]*)
17984 shlibpath_overrides_runpath=yes
17985 hardcode_into_libs=yes
17987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17989 shlibpath_overrides_runpath=no
17990 hardcode_into_libs=yes
17992 *) # from 4.6 on, and DragonFly
17993 shlibpath_overrides_runpath=yes
17994 hardcode_into_libs=yes
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 shlibpath_var=LD_LIBRARY_PATH
18006 hardcode_into_libs=yes
18009 hpux9* | hpux10* | hpux11*)
18010 # Give a soname corresponding to the major version so that dld.sl refuses to
18011 # link against other versions.
18018 hardcode_into_libs=yes
18019 dynamic_linker="$host_os dld.so"
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 if test "X$HPUX_IA64_MODE" = X32; then
18025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18033 hardcode_into_libs=yes
18034 dynamic_linker="$host_os dld.sl"
18035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18044 dynamic_linker="$host_os dld.sl"
18045 shlibpath_var=SHLIB_PATH
18046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18051 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18052 postinstall_cmds='chmod 555 $lib'
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18060 soname_spec='${libname}${release}${shared_ext}$major'
18061 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18062 shlibpath_var=LD_LIBRARY_PATH
18063 shlibpath_overrides_runpath=no
18064 hardcode_into_libs=yes
18067 irix5* | irix6* | nonstopux*)
18069 nonstopux*) version_type=nonstopux ;;
18071 if test "$lt_cv_prog_gnu_ld" = yes; then
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18082 irix5* | nonstopux*)
18083 libsuff= shlibsuff=
18086 case $LD in # libtool.m4 will add one of these switches to LD
18087 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18088 libsuff= shlibsuff= libmagic=32-bit;;
18089 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18090 libsuff=32 shlibsuff=N32 libmagic=N32;;
18091 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18092 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18093 *) libsuff= shlibsuff= libmagic=never-match;;
18097 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18098 shlibpath_overrides_runpath=no
18099 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18100 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18101 hardcode_into_libs=yes
18104 # No shared lib support for Linux oldld, aout, or coff.
18105 linux*oldld* | linux*aout* | linux*coff*)
18109 # This must be Linux ELF.
18110 linux* | k*bsd*-gnu)
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=no
18119 # This implies no fast_install, which is unacceptable.
18120 # Some rework will be needed to allow for fast_install
18121 # before this can be enabled.
18122 hardcode_into_libs=yes
18124 # Append ld.so.conf contents to the search path
18125 if test -f /etc/ld.so.conf; then
18126 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;/^$/d' | tr '\n' ' '`
18127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18130 # We used to test for /lib/ld.so.1 and disable shared libraries on
18131 # powerpc, because MkLinux only supported shared libraries with the
18132 # GNU dynamic linker. Since this was broken with cross compilers,
18133 # most powerpc-linux boxes support dynamic linking these days and
18134 # people can always --disable-shared, the test was removed, and we
18135 # assume the GNU/Linux dynamic linker is in use.
18136 dynamic_linker='GNU/Linux ld.so'
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 shlibpath_var=LD_LIBRARY_PATH
18146 shlibpath_overrides_runpath=no
18147 hardcode_into_libs=yes
18148 dynamic_linker='NetBSD ld.elf_so'
18155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18158 dynamic_linker='NetBSD (a.out) ld.so'
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 dynamic_linker='NetBSD ld.elf_so'
18164 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes
18166 hardcode_into_libs=yes
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 shlibpath_overrides_runpath=yes
18188 sys_lib_dlsearch_path_spec="/usr/lib"
18190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18193 *) need_version=no ;;
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18200 openbsd2.[89] | openbsd2.[89].*)
18201 shlibpath_overrides_runpath=no
18204 shlibpath_overrides_runpath=yes
18208 shlibpath_overrides_runpath=yes
18213 libname_spec='$name'
18216 library_names_spec='$libname${shared_ext} $libname.a'
18217 dynamic_linker='OS/2 ld.exe'
18218 shlibpath_var=LIBPATH
18221 osf3* | osf4* | osf5*)
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 shlibpath_var=LD_LIBRARY_PATH
18228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241 soname_spec='${libname}${release}${shared_ext}$major'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 shlibpath_overrides_runpath=yes
18244 hardcode_into_libs=yes
18245 # ldd complains unless libraries are executable
18246 postinstall_cmds='chmod +x $lib'
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=yes
18255 if test "$with_gnu_ld" = yes; then
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 case $host_vendor in
18268 shlibpath_overrides_runpath=no
18270 export_dynamic_flag_spec='${wl}-Blargedynsym'
18271 runpath_var=LD_RUN_PATH
18279 shlibpath_overrides_runpath=no
18280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18286 if test -d /usr/nec ;then
18288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18289 soname_spec='$libname${shared_ext}.$major'
18290 shlibpath_var=LD_LIBRARY_PATH
18294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18295 version_type=freebsd-elf
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 hardcode_into_libs=yes
18302 if test "$with_gnu_ld" = yes; then
18303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18304 shlibpath_overrides_runpath=no
18306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18307 shlibpath_overrides_runpath=yes
18310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18314 sys_lib_dlsearch_path_spec='/usr/lib'
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320 soname_spec='${libname}${release}${shared_ext}$major'
18321 shlibpath_var=LD_LIBRARY_PATH
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18329 $as_echo "$dynamic_linker" >&6; }
18330 test "$dynamic_linker" = no && can_build_shared=no
18332 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18333 $as_echo_n "(cached) " >&6
18335 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18338 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18339 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18340 $as_echo_n "(cached) " >&6
18342 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18345 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18347 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18348 if test "$GCC" = yes; then
18349 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18353 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18354 hardcode_action_GCJ=
18355 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18356 test -n "$runpath_var_GCJ" || \
18357 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18359 # We can hardcode non-existant directories.
18360 if test "$hardcode_direct_GCJ" != no &&
18361 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18362 # have to relink, otherwise we might link with an installed library
18363 # when we should be linking with a yet-to-be-installed one
18364 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18365 test "$hardcode_minus_L_GCJ" != no; then
18366 # Linking always hardcodes the temporary library directory.
18367 hardcode_action_GCJ=relink
18369 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18370 hardcode_action_GCJ=immediate
18373 # We cannot hardcode anything, or else we can only hardcode existing
18375 hardcode_action_GCJ=unsupported
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18378 $as_echo "$hardcode_action_GCJ" >&6; }
18380 if test "$hardcode_action_GCJ" = relink; then
18381 # Fast installation is not supported
18382 enable_fast_install=no
18383 elif test "$shlibpath_overrides_runpath" = yes ||
18384 test "$enable_shared" = no; then
18385 # Fast installation is not necessary
18386 enable_fast_install=needless
18390 # The else clause should only fire when bootstrapping the
18391 # libtool distribution, otherwise you forgot to ship ltmain.sh
18392 # with your package, and you will get complaints that there are
18393 # no rules to generate ltmain.sh.
18394 if test -f "$ltmain"; then
18395 # See if we are running on zsh, and set the options which allow our commands through
18396 # without removal of \ escapes.
18397 if test -n "${ZSH_VERSION+set}" ; then
18398 setopt NO_GLOB_SUBST
18400 # Now quote all the things that may contain metacharacters while being
18401 # careful not to overquote the AC_SUBSTed values. We take copies of the
18402 # variables and quote the copies for generation of the libtool script.
18403 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18405 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18406 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18407 deplibs_check_method reload_flag reload_cmds need_locks \
18408 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18409 lt_cv_sys_global_symbol_to_c_name_address \
18410 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18411 old_postinstall_cmds old_postuninstall_cmds \
18415 lt_prog_compiler_wl_GCJ \
18416 lt_prog_compiler_pic_GCJ \
18417 lt_prog_compiler_static_GCJ \
18418 lt_prog_compiler_no_builtin_flag_GCJ \
18419 export_dynamic_flag_spec_GCJ \
18420 thread_safe_flag_spec_GCJ \
18421 whole_archive_flag_spec_GCJ \
18422 enable_shared_with_static_runtimes_GCJ \
18423 old_archive_cmds_GCJ \
18424 old_archive_from_new_cmds_GCJ \
18425 predep_objects_GCJ \
18426 postdep_objects_GCJ \
18429 compiler_lib_search_path_GCJ \
18430 compiler_lib_search_dirs_GCJ \
18432 archive_expsym_cmds_GCJ \
18433 postinstall_cmds_GCJ \
18434 postuninstall_cmds_GCJ \
18435 old_archive_from_expsyms_cmds_GCJ \
18436 allow_undefined_flag_GCJ \
18437 no_undefined_flag_GCJ \
18438 export_symbols_cmds_GCJ \
18439 hardcode_libdir_flag_spec_GCJ \
18440 hardcode_libdir_flag_spec_ld_GCJ \
18441 hardcode_libdir_separator_GCJ \
18442 hardcode_automatic_GCJ \
18444 module_expsym_cmds_GCJ \
18445 lt_cv_prog_compiler_c_o_GCJ \
18446 fix_srcfile_path_GCJ \
18447 exclude_expsyms_GCJ \
18448 include_expsyms_GCJ; do
18451 old_archive_cmds_GCJ | \
18452 old_archive_from_new_cmds_GCJ | \
18453 archive_cmds_GCJ | \
18454 archive_expsym_cmds_GCJ | \
18455 module_cmds_GCJ | \
18456 module_expsym_cmds_GCJ | \
18457 old_archive_from_expsyms_cmds_GCJ | \
18458 export_symbols_cmds_GCJ | \
18459 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18460 postinstall_cmds | postuninstall_cmds | \
18461 old_postinstall_cmds | old_postuninstall_cmds | \
18462 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18463 # Double-quote double-evaled strings.
18464 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18473 *'\$0 --fallback-echo"')
18474 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18480 cat <<__EOF__ >> "$cfgfile"
18481 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18485 # Shell to use when invoking shell scripts.
18488 # Whether or not to build shared libraries.
18489 build_libtool_libs=$enable_shared
18491 # Whether or not to build static libraries.
18492 build_old_libs=$enable_static
18494 # Whether or not to add -lc for building shared libraries.
18495 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18497 # Whether or not to disallow shared libs when runtime libs are static
18498 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18500 # Whether or not to optimize for fast installation.
18501 fast_install=$enable_fast_install
18504 host_alias=$host_alias
18508 # The build system.
18509 build_alias=$build_alias
18513 # An echo program that does not interpret backslashes.
18518 AR_FLAGS=$lt_AR_FLAGS
18523 # LTCC compiler flags.
18524 LTCFLAGS=$lt_LTCFLAGS
18526 # A language-specific compiler.
18527 CC=$lt_compiler_GCJ
18529 # Is the compiler the GNU C compiler?
18535 # The linker used to build libraries.
18538 # Whether we need hard or soft links.
18541 # A BSD-compatible nm program.
18544 # A symbol stripping program
18547 # Used to examine libraries when file_magic_cmd begins "file"
18548 MAGIC_CMD=$MAGIC_CMD
18550 # Used on cygwin: DLL creation program.
18553 # Used on cygwin: object dumper.
18556 # Used on cygwin: assembler.
18559 # The name of the directory that contains temporary libtool files.
18562 # How to create reloadable object files.
18563 reload_flag=$lt_reload_flag
18564 reload_cmds=$lt_reload_cmds
18566 # How to pass a linker flag through the compiler.
18567 wl=$lt_lt_prog_compiler_wl_GCJ
18569 # Object file suffix (normally "o").
18570 objext="$ac_objext"
18572 # Old archive suffix (normally "a").
18575 # Shared library suffix (normally ".so").
18576 shrext_cmds='$shrext_cmds'
18578 # Executable file suffix (normally "").
18581 # Additional compiler flags for building library objects.
18582 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18585 # What is the maximum length of a command?
18586 max_cmd_len=$lt_cv_sys_max_cmd_len
18588 # Does compiler simultaneously support -c and -o options?
18589 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18591 # Must we lock files when doing compilation?
18592 need_locks=$lt_need_locks
18594 # Do we need the lib prefix for modules?
18595 need_lib_prefix=$need_lib_prefix
18597 # Do we need a version for libraries?
18598 need_version=$need_version
18600 # Whether dlopen is supported.
18601 dlopen_support=$enable_dlopen
18603 # Whether dlopen of programs is supported.
18604 dlopen_self=$enable_dlopen_self
18606 # Whether dlopen of statically linked programs is supported.
18607 dlopen_self_static=$enable_dlopen_self_static
18609 # Compiler flag to prevent dynamic linking.
18610 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18612 # Compiler flag to turn off builtin functions.
18613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18615 # Compiler flag to allow reflexive dlopens.
18616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18618 # Compiler flag to generate shared objects directly from archives.
18619 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18621 # Compiler flag to generate thread-safe objects.
18622 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18624 # Library versioning type.
18625 version_type=$version_type
18627 # Format of library name prefix.
18628 libname_spec=$lt_libname_spec
18630 # List of archive names. First name is the real one, the rest are links.
18631 # The last name is the one that the linker finds with -lNAME.
18632 library_names_spec=$lt_library_names_spec
18634 # The coded name of the library, if different from the real name.
18635 soname_spec=$lt_soname_spec
18637 # Commands used to build and install an old-style archive.
18639 old_archive_cmds=$lt_old_archive_cmds_GCJ
18640 old_postinstall_cmds=$lt_old_postinstall_cmds
18641 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18643 # Create an old-style archive from a shared archive.
18644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18646 # Create a temporary old-style archive to link instead of a shared archive.
18647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18649 # Commands used to build and install a shared archive.
18650 archive_cmds=$lt_archive_cmds_GCJ
18651 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18652 postinstall_cmds=$lt_postinstall_cmds
18653 postuninstall_cmds=$lt_postuninstall_cmds
18655 # Commands used to build a loadable module (assumed same as above if empty)
18656 module_cmds=$lt_module_cmds_GCJ
18657 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18659 # Commands to strip libraries.
18660 old_striplib=$lt_old_striplib
18661 striplib=$lt_striplib
18663 # Dependencies to place before the objects being linked to create a
18665 predep_objects=$lt_predep_objects_GCJ
18667 # Dependencies to place after the objects being linked to create a
18669 postdep_objects=$lt_postdep_objects_GCJ
18671 # Dependencies to place before the objects being linked to create a
18673 predeps=$lt_predeps_GCJ
18675 # Dependencies to place after the objects being linked to create a
18677 postdeps=$lt_postdeps_GCJ
18679 # The directories searched by this compiler when creating a shared
18681 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18683 # The library search path used internally by the compiler when linking
18684 # a shared library.
18685 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18687 # Method to check whether dependent libraries are shared objects.
18688 deplibs_check_method=$lt_deplibs_check_method
18690 # Command to use when deplibs_check_method == file_magic.
18691 file_magic_cmd=$lt_file_magic_cmd
18693 # Flag that allows shared libraries with undefined symbols to be built.
18694 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18696 # Flag that forces no undefined symbols.
18697 no_undefined_flag=$lt_no_undefined_flag_GCJ
18699 # Commands used to finish a libtool library installation in a directory.
18700 finish_cmds=$lt_finish_cmds
18702 # Same as above, but a single script fragment to be evaled but not shown.
18703 finish_eval=$lt_finish_eval
18705 # Take the output of nm and produce a listing of raw symbols and C names.
18706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18708 # Transform the output of nm in a proper C declaration
18709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18711 # Transform the output of nm in a C name address pair
18712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18714 # This is the shared library runtime path variable.
18715 runpath_var=$runpath_var
18717 # This is the shared library path variable.
18718 shlibpath_var=$shlibpath_var
18720 # Is shlibpath searched before the hard-coded library search path?
18721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723 # How to hardcode a shared library path into an executable.
18724 hardcode_action=$hardcode_action_GCJ
18726 # Whether we should hardcode library paths into libraries.
18727 hardcode_into_libs=$hardcode_into_libs
18729 # Flag to hardcode \$libdir into a binary during linking.
18730 # This must work even if \$libdir does not exist.
18731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18733 # If ld is used when linking, flag to hardcode \$libdir into
18734 # a binary during linking. This must work even if \$libdir does
18736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18738 # Whether we need a single -rpath flag with a separated argument.
18739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18742 # resulting binary.
18743 hardcode_direct=$hardcode_direct_GCJ
18745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18746 # resulting binary.
18747 hardcode_minus_L=$hardcode_minus_L_GCJ
18749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18750 # the resulting binary.
18751 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18753 # Set to yes if building a shared library automatically hardcodes DIR into the library
18754 # and all subsequent libraries and executables linked against it.
18755 hardcode_automatic=$hardcode_automatic_GCJ
18757 # Variables whose values should be saved in libtool wrapper scripts and
18758 # restored at relink time.
18759 variables_saved_for_relink="$variables_saved_for_relink"
18761 # Whether libtool must link a program against all its dependency libraries.
18762 link_all_deplibs=$link_all_deplibs_GCJ
18764 # Compile-time system search path for libraries
18765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18767 # Run-time system search path for libraries
18768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18770 # Fix the shell variable \$srcfile for the compiler.
18771 fix_srcfile_path=$lt_fix_srcfile_path
18773 # Set to yes if exported symbols are required.
18774 always_export_symbols=$always_export_symbols_GCJ
18776 # The commands to list exported symbols.
18777 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18779 # The commands to extract the exported symbol list from a shared archive.
18780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18782 # Symbols that should not be listed in the preloaded symbols.
18783 exclude_expsyms=$lt_exclude_expsyms_GCJ
18785 # Symbols that must always be exported.
18786 include_expsyms=$lt_include_expsyms_GCJ
18788 # ### END LIBTOOL TAG CONFIG: $tagname
18794 # If there is no Makefile yet, we rely on a make rule to execute
18795 # `config.status --recheck' to rerun these tests and create the
18796 # libtool script then.
18797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18798 if test -f "$ltmain_in"; then
18799 test -f Makefile && make "$ltmain"
18805 ac_cpp='$CPP $CPPFLAGS'
18806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18820 # Source file extension for RC test sources.
18823 # Object file extension for compiled RC test sources.
18827 # Code to be used in simple compile tests
18828 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18830 # Code to be used in simple link tests
18831 lt_simple_link_test_code="$lt_simple_compile_test_code"
18833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18835 # If no C compiler was specified, use CC.
18838 # If no C compiler flags were specified, use CFLAGS.
18839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18841 # Allow CC to be a program name with arguments.
18845 # save warnings/boilerplate of simple test code
18846 ac_outfile=conftest.$ac_objext
18847 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18848 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18849 _lt_compiler_boilerplate=`cat conftest.err`
18852 ac_outfile=conftest.$ac_objext
18853 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18854 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18855 _lt_linker_boilerplate=`cat conftest.err`
18859 # Allow CC to be a program name with arguments.
18864 for cc_temp in $compiler""; do
18866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18874 lt_cv_prog_compiler_c_o_RC=yes
18876 # The else clause should only fire when bootstrapping the
18877 # libtool distribution, otherwise you forgot to ship ltmain.sh
18878 # with your package, and you will get complaints that there are
18879 # no rules to generate ltmain.sh.
18880 if test -f "$ltmain"; then
18881 # See if we are running on zsh, and set the options which allow our commands through
18882 # without removal of \ escapes.
18883 if test -n "${ZSH_VERSION+set}" ; then
18884 setopt NO_GLOB_SUBST
18886 # Now quote all the things that may contain metacharacters while being
18887 # careful not to overquote the AC_SUBSTed values. We take copies of the
18888 # variables and quote the copies for generation of the libtool script.
18889 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18891 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18892 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18893 deplibs_check_method reload_flag reload_cmds need_locks \
18894 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18895 lt_cv_sys_global_symbol_to_c_name_address \
18896 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18897 old_postinstall_cmds old_postuninstall_cmds \
18901 lt_prog_compiler_wl_RC \
18902 lt_prog_compiler_pic_RC \
18903 lt_prog_compiler_static_RC \
18904 lt_prog_compiler_no_builtin_flag_RC \
18905 export_dynamic_flag_spec_RC \
18906 thread_safe_flag_spec_RC \
18907 whole_archive_flag_spec_RC \
18908 enable_shared_with_static_runtimes_RC \
18909 old_archive_cmds_RC \
18910 old_archive_from_new_cmds_RC \
18911 predep_objects_RC \
18912 postdep_objects_RC \
18915 compiler_lib_search_path_RC \
18916 compiler_lib_search_dirs_RC \
18918 archive_expsym_cmds_RC \
18919 postinstall_cmds_RC \
18920 postuninstall_cmds_RC \
18921 old_archive_from_expsyms_cmds_RC \
18922 allow_undefined_flag_RC \
18923 no_undefined_flag_RC \
18924 export_symbols_cmds_RC \
18925 hardcode_libdir_flag_spec_RC \
18926 hardcode_libdir_flag_spec_ld_RC \
18927 hardcode_libdir_separator_RC \
18928 hardcode_automatic_RC \
18930 module_expsym_cmds_RC \
18931 lt_cv_prog_compiler_c_o_RC \
18932 fix_srcfile_path_RC \
18933 exclude_expsyms_RC \
18934 include_expsyms_RC; do
18937 old_archive_cmds_RC | \
18938 old_archive_from_new_cmds_RC | \
18939 archive_cmds_RC | \
18940 archive_expsym_cmds_RC | \
18942 module_expsym_cmds_RC | \
18943 old_archive_from_expsyms_cmds_RC | \
18944 export_symbols_cmds_RC | \
18945 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18946 postinstall_cmds | postuninstall_cmds | \
18947 old_postinstall_cmds | old_postuninstall_cmds | \
18948 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18949 # Double-quote double-evaled strings.
18950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18959 *'\$0 --fallback-echo"')
18960 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18966 cat <<__EOF__ >> "$cfgfile"
18967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18971 # Shell to use when invoking shell scripts.
18974 # Whether or not to build shared libraries.
18975 build_libtool_libs=$enable_shared
18977 # Whether or not to build static libraries.
18978 build_old_libs=$enable_static
18980 # Whether or not to add -lc for building shared libraries.
18981 build_libtool_need_lc=$archive_cmds_need_lc_RC
18983 # Whether or not to disallow shared libs when runtime libs are static
18984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18986 # Whether or not to optimize for fast installation.
18987 fast_install=$enable_fast_install
18990 host_alias=$host_alias
18994 # The build system.
18995 build_alias=$build_alias
18999 # An echo program that does not interpret backslashes.
19004 AR_FLAGS=$lt_AR_FLAGS
19009 # LTCC compiler flags.
19010 LTCFLAGS=$lt_LTCFLAGS
19012 # A language-specific compiler.
19015 # Is the compiler the GNU C compiler?
19021 # The linker used to build libraries.
19024 # Whether we need hard or soft links.
19027 # A BSD-compatible nm program.
19030 # A symbol stripping program
19033 # Used to examine libraries when file_magic_cmd begins "file"
19034 MAGIC_CMD=$MAGIC_CMD
19036 # Used on cygwin: DLL creation program.
19039 # Used on cygwin: object dumper.
19042 # Used on cygwin: assembler.
19045 # The name of the directory that contains temporary libtool files.
19048 # How to create reloadable object files.
19049 reload_flag=$lt_reload_flag
19050 reload_cmds=$lt_reload_cmds
19052 # How to pass a linker flag through the compiler.
19053 wl=$lt_lt_prog_compiler_wl_RC
19055 # Object file suffix (normally "o").
19056 objext="$ac_objext"
19058 # Old archive suffix (normally "a").
19061 # Shared library suffix (normally ".so").
19062 shrext_cmds='$shrext_cmds'
19064 # Executable file suffix (normally "").
19067 # Additional compiler flags for building library objects.
19068 pic_flag=$lt_lt_prog_compiler_pic_RC
19071 # What is the maximum length of a command?
19072 max_cmd_len=$lt_cv_sys_max_cmd_len
19074 # Does compiler simultaneously support -c and -o options?
19075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19077 # Must we lock files when doing compilation?
19078 need_locks=$lt_need_locks
19080 # Do we need the lib prefix for modules?
19081 need_lib_prefix=$need_lib_prefix
19083 # Do we need a version for libraries?
19084 need_version=$need_version
19086 # Whether dlopen is supported.
19087 dlopen_support=$enable_dlopen
19089 # Whether dlopen of programs is supported.
19090 dlopen_self=$enable_dlopen_self
19092 # Whether dlopen of statically linked programs is supported.
19093 dlopen_self_static=$enable_dlopen_self_static
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static_RC
19098 # Compiler flag to turn off builtin functions.
19099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19101 # Compiler flag to allow reflexive dlopens.
19102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19104 # Compiler flag to generate shared objects directly from archives.
19105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19107 # Compiler flag to generate thread-safe objects.
19108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19110 # Library versioning type.
19111 version_type=$version_type
19113 # Format of library name prefix.
19114 libname_spec=$lt_libname_spec
19116 # List of archive names. First name is the real one, the rest are links.
19117 # The last name is the one that the linker finds with -lNAME.
19118 library_names_spec=$lt_library_names_spec
19120 # The coded name of the library, if different from the real name.
19121 soname_spec=$lt_soname_spec
19123 # Commands used to build and install an old-style archive.
19125 old_archive_cmds=$lt_old_archive_cmds_RC
19126 old_postinstall_cmds=$lt_old_postinstall_cmds
19127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19129 # Create an old-style archive from a shared archive.
19130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19132 # Create a temporary old-style archive to link instead of a shared archive.
19133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19135 # Commands used to build and install a shared archive.
19136 archive_cmds=$lt_archive_cmds_RC
19137 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19138 postinstall_cmds=$lt_postinstall_cmds
19139 postuninstall_cmds=$lt_postuninstall_cmds
19141 # Commands used to build a loadable module (assumed same as above if empty)
19142 module_cmds=$lt_module_cmds_RC
19143 module_expsym_cmds=$lt_module_expsym_cmds_RC
19145 # Commands to strip libraries.
19146 old_striplib=$lt_old_striplib
19147 striplib=$lt_striplib
19149 # Dependencies to place before the objects being linked to create a
19151 predep_objects=$lt_predep_objects_RC
19153 # Dependencies to place after the objects being linked to create a
19155 postdep_objects=$lt_postdep_objects_RC
19157 # Dependencies to place before the objects being linked to create a
19159 predeps=$lt_predeps_RC
19161 # Dependencies to place after the objects being linked to create a
19163 postdeps=$lt_postdeps_RC
19165 # The directories searched by this compiler when creating a shared
19167 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19169 # The library search path used internally by the compiler when linking
19170 # a shared library.
19171 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19173 # Method to check whether dependent libraries are shared objects.
19174 deplibs_check_method=$lt_deplibs_check_method
19176 # Command to use when deplibs_check_method == file_magic.
19177 file_magic_cmd=$lt_file_magic_cmd
19179 # Flag that allows shared libraries with undefined symbols to be built.
19180 allow_undefined_flag=$lt_allow_undefined_flag_RC
19182 # Flag that forces no undefined symbols.
19183 no_undefined_flag=$lt_no_undefined_flag_RC
19185 # Commands used to finish a libtool library installation in a directory.
19186 finish_cmds=$lt_finish_cmds
19188 # Same as above, but a single script fragment to be evaled but not shown.
19189 finish_eval=$lt_finish_eval
19191 # Take the output of nm and produce a listing of raw symbols and C names.
19192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19194 # Transform the output of nm in a proper C declaration
19195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19197 # Transform the output of nm in a C name address pair
19198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19200 # This is the shared library runtime path variable.
19201 runpath_var=$runpath_var
19203 # This is the shared library path variable.
19204 shlibpath_var=$shlibpath_var
19206 # Is shlibpath searched before the hard-coded library search path?
19207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19209 # How to hardcode a shared library path into an executable.
19210 hardcode_action=$hardcode_action_RC
19212 # Whether we should hardcode library paths into libraries.
19213 hardcode_into_libs=$hardcode_into_libs
19215 # Flag to hardcode \$libdir into a binary during linking.
19216 # This must work even if \$libdir does not exist.
19217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19219 # If ld is used when linking, flag to hardcode \$libdir into
19220 # a binary during linking. This must work even if \$libdir does
19222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19224 # Whether we need a single -rpath flag with a separated argument.
19225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19228 # resulting binary.
19229 hardcode_direct=$hardcode_direct_RC
19231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19232 # resulting binary.
19233 hardcode_minus_L=$hardcode_minus_L_RC
19235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19236 # the resulting binary.
19237 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19239 # Set to yes if building a shared library automatically hardcodes DIR into the library
19240 # and all subsequent libraries and executables linked against it.
19241 hardcode_automatic=$hardcode_automatic_RC
19243 # Variables whose values should be saved in libtool wrapper scripts and
19244 # restored at relink time.
19245 variables_saved_for_relink="$variables_saved_for_relink"
19247 # Whether libtool must link a program against all its dependency libraries.
19248 link_all_deplibs=$link_all_deplibs_RC
19250 # Compile-time system search path for libraries
19251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19253 # Run-time system search path for libraries
19254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19256 # Fix the shell variable \$srcfile for the compiler.
19257 fix_srcfile_path=$lt_fix_srcfile_path
19259 # Set to yes if exported symbols are required.
19260 always_export_symbols=$always_export_symbols_RC
19262 # The commands to list exported symbols.
19263 export_symbols_cmds=$lt_export_symbols_cmds_RC
19265 # The commands to extract the exported symbol list from a shared archive.
19266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19268 # Symbols that should not be listed in the preloaded symbols.
19269 exclude_expsyms=$lt_exclude_expsyms_RC
19271 # Symbols that must always be exported.
19272 include_expsyms=$lt_include_expsyms_RC
19274 # ### END LIBTOOL TAG CONFIG: $tagname
19280 # If there is no Makefile yet, we rely on a make rule to execute
19281 # `config.status --recheck' to rerun these tests and create the
19282 # libtool script then.
19283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19284 if test -f "$ltmain_in"; then
19285 test -f Makefile && make "$ltmain"
19291 ac_cpp='$CPP $CPPFLAGS'
19292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19305 # Append the new tag name to the list of available tags.
19306 if test -n "$tagname" ; then
19307 available_tags="$available_tags $tagname"
19313 # Now substitute the updated list of available tags.
19314 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19315 mv "${ofile}T" "$ofile"
19319 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19325 # This can be used to rebuild libtool when needed
19326 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19328 # Always use our own libtool.
19329 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19331 # Prevent multiple expansion
19344 # Check whether --with-system-libtool was given.
19345 if test "${with_system_libtool+set}" = set; then :
19346 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19347 set dummy libtool; ac_word=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if ${ac_cv_path_LIBTOOL+:} false; then :
19351 $as_echo_n "(cached) " >&6
19355 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19359 as_dummy="$PATH:/usr/local/bin"
19360 for as_dir in $as_dummy
19363 test -z "$as_dir" && as_dir=.
19364 for ac_exec_ext in '' $ac_executable_extensions; do
19365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19366 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19377 LIBTOOL=$ac_cv_path_LIBTOOL
19378 if test -n "$LIBTOOL"; then
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19380 $as_echo "$LIBTOOL" >&6; }
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 $as_echo "no" >&6; }
19399 LIBTOOL="`pwd`/libtool"
19411 # Check whether --enable-strict-dependencies was given.
19412 if test "${enable_strict_dependencies+set}" = set; then :
19413 enableval=$enable_strict_dependencies;
19417 docdir='${datadir}/doc/freeradius'
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19419 $as_echo_n "checking docdir... " >&6; }
19421 # Check whether --with-docdir was given.
19422 if test "${with_docdir+set}" = set; then :
19423 withval=$with_docdir; case "$withval" in
19429 [\\/$]* | ?:[\\/]* )
19433 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19441 $as_echo "$docdir" >&6; }
19442 if test "x$docdir" = xno; then
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19444 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19447 logdir='${localstatedir}/log/radius'
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19449 $as_echo_n "checking logdir... " >&6; }
19451 # Check whether --with-logdir was given.
19452 if test "${with_logdir+set}" = set; then :
19453 withval=$with_logdir; case "$withval" in
19455 as_fn_error $? "Need logdir" "$LINENO" 5
19459 [\\/$]* | ?:[\\/]* )
19463 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19471 $as_echo "$logdir" >&6; }
19473 radacctdir='${logdir}/radacct'
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19475 $as_echo_n "checking radacctdir... " >&6; }
19477 # Check whether --with-radacctdir was given.
19478 if test "${with_radacctdir+set}" = set; then :
19479 withval=$with_radacctdir; case "$withval" in
19481 as_fn_error $? "Need radacctdir" "$LINENO" 5
19485 [\\/$]* | ?:[\\/]* )
19486 radacctdir="$withval"
19489 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19497 $as_echo "$radacctdir" >&6; }
19499 raddbdir='${sysconfdir}/raddb'
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19501 $as_echo_n "checking raddbdir... " >&6; }
19503 # Check whether --with-raddbdir was given.
19504 if test "${with_raddbdir+set}" = set; then :
19505 withval=$with_raddbdir; case "$withval" in
19507 as_fn_error $? "Need raddbdir" "$LINENO" 5
19511 [\\/$]* | ?:[\\/]* )
19512 raddbdir="$withval"
19515 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19523 $as_echo "$raddbdir" >&6; }
19527 # Check whether --with-ascend-binary was given.
19528 if test "${with_ascend_binary+set}" = set; then :
19529 withval=$with_ascend_binary; case "$withval" in
19538 if test "X$ASCEND_BINARY" = "Xyes"; then
19540 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19546 # Check whether --with-threads was given.
19547 if test "${with_threads+set}" = set; then :
19548 withval=$with_threads; case "$withval" in
19560 # Check whether --with-vmps was given.
19561 if test "${with_vmps+set}" = set; then :
19562 withval=$with_vmps; case "$withval" in
19571 if test "x$WITH_VMPS" = "xyes"; then
19573 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19579 # Check whether --with-dhcp was given.
19580 if test "${with_dhcp+set}" = set; then :
19581 withval=$with_dhcp; case "$withval" in
19590 if test "x$WITH_DHCP" = "xyes"; then
19592 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19597 WITH_POST_PROXY_AUTHORIZE=
19599 # Check whether --with-post-proxy-authorize was given.
19600 if test "${with_post_proxy_authorize+set}" = set; then :
19601 withval=$with_post_proxy_authorize; case "$withval" in
19603 WITH_POST_PROXY_AUTHORIZE=""
19614 # Check whether --with-static_modules was given.
19615 if test "${with_static_modules+set}" = set; then :
19616 withval=$with_static_modules;
19617 for i in $withval; do
19618 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19626 # Check whether --with-modules was given.
19627 if test "${with_modules+set}" = set; then :
19628 withval=$with_modules;
19629 for i in $withval; do
19630 MODULES="$MODULES $i"
19636 # Check whether --enable-developer was given.
19637 if test "${enable_developer+set}" = set; then :
19638 enableval=$enable_developer; case "$enableval" in
19649 if test -d $srcdir/.git; then
19650 if test "x$developer" != "xno"; then
19654 if test "x$GIT" = "xyes"; then
19655 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19661 # Check whether --with-experimental-modules was given.
19662 if test "${with_experimental_modules+set}" = set; then :
19663 withval=$with_experimental_modules; case "$withval" in
19675 # Check whether --with-openssl was given.
19676 if test "${with_openssl+set}" = set; then :
19677 withval=$with_openssl; case "$withval" in
19689 OPENSSL_INCLUDE_DIR=
19691 # Check whether --with-openssl-includes was given.
19692 if test "${with_openssl_includes+set}" = set; then :
19693 withval=$with_openssl_includes; case "$withval" in
19694 *) OPENSSL_INCLUDE_DIR="$withval"
19703 # Check whether --with-openssl-libraries was given.
19704 if test "${with_openssl_libraries+set}" = set; then :
19705 withval=$with_openssl_libraries; case "$withval" in
19706 *) OPENSSL_LIB_DIR="$withval"
19715 # Check whether --with-rlm-FOO-lib-dir was given.
19716 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19717 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19726 # Check whether --with-rlm-FOO-include-dir was given.
19727 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19728 withval=$with_rlm_FOO_include_dir; case "$withval" in
19739 # Check whether --with-udpfromto was given.
19740 if test "${with_udpfromto+set}" = set; then :
19741 withval=$with_udpfromto; case "$withval" in
19752 if test "x$WITH_UDPFROMTO" = "xyes"; then
19754 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19759 CHECKRAD=checkrad.pl
19760 # Extract the first word of "perl", so it can be a program name with args.
19761 set dummy perl; ac_word=$2
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19763 $as_echo_n "checking for $ac_word... " >&6; }
19764 if ${ac_cv_path_PERL+:} false; then :
19765 $as_echo_n "(cached) " >&6
19769 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773 for as_dir in $PATH
19776 test -z "$as_dir" && as_dir=.
19777 for ac_exec_ext in '' $ac_executable_extensions; do
19778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19787 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19791 PERL=$ac_cv_path_PERL
19792 if test -n "$PERL"; then
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19794 $as_echo "$PERL" >&6; }
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19801 if test "x$ac_cv_path_PERL" = "x"; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19803 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19805 # Extract the first word of "snmpget", so it can be a program name with args.
19806 set dummy snmpget; ac_word=$2
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19808 $as_echo_n "checking for $ac_word... " >&6; }
19809 if ${ac_cv_path_SNMPGET+:} false; then :
19810 $as_echo_n "(cached) " >&6
19814 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19821 test -z "$as_dir" && as_dir=.
19822 for ac_exec_ext in '' $ac_executable_extensions; do
19823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19824 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19835 SNMPGET=$ac_cv_path_SNMPGET
19836 if test -n "$SNMPGET"; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19838 $as_echo "$SNMPGET" >&6; }
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19845 if test "x$ac_cv_path_SNMPGET" = "x"; then
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19847 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19850 # Extract the first word of "snmpwalk", so it can be a program name with args.
19851 set dummy snmpwalk; ac_word=$2
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19853 $as_echo_n "checking for $ac_word... " >&6; }
19854 if ${ac_cv_path_SNMPWALK+:} false; then :
19855 $as_echo_n "(cached) " >&6
19859 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19863 for as_dir in $PATH
19866 test -z "$as_dir" && as_dir=.
19867 for ac_exec_ext in '' $ac_executable_extensions; do
19868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19869 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19880 SNMPWALK=$ac_cv_path_SNMPWALK
19881 if test -n "$SNMPWALK"; then
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
19883 $as_echo "$SNMPWALK" >&6; }
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19886 $as_echo "no" >&6; }
19890 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19892 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19895 # Extract the first word of "rusers", so it can be a program name with args.
19896 set dummy rusers; ac_word=$2
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19898 $as_echo_n "checking for $ac_word... " >&6; }
19899 if ${ac_cv_path_RUSERS+:} false; then :
19900 $as_echo_n "(cached) " >&6
19904 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908 for as_dir in $PATH
19911 test -z "$as_dir" && as_dir=.
19912 for ac_exec_ext in '' $ac_executable_extensions; do
19913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19914 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19922 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19926 RUSERS=$ac_cv_path_RUSERS
19927 if test -n "$RUSERS"; then
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
19929 $as_echo "$RUSERS" >&6; }
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19932 $as_echo "no" >&6; }
19937 missing_dir=`cd $ac_aux_dir && pwd`
19938 # expand $ac_aux_dir to an absolute path
19939 am_aux_dir=`cd $ac_aux_dir && pwd`
19941 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19942 # Use eval to expand $SHELL
19943 if eval "$MISSING --run true"; then
19944 am_missing_run="$MISSING --run "
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19948 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19952 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19955 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19958 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19961 # Extract the first word of "locate", so it can be a program name with args.
19962 set dummy locate; ac_word=$2
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19964 $as_echo_n "checking for $ac_word... " >&6; }
19965 if ${ac_cv_path_LOCATE+:} false; then :
19966 $as_echo_n "(cached) " >&6
19970 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19974 for as_dir in $PATH
19977 test -z "$as_dir" && as_dir=.
19978 for ac_exec_ext in '' $ac_executable_extensions; do
19979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19980 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19991 LOCATE=$ac_cv_path_LOCATE
19992 if test -n "$LOCATE"; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
19994 $as_echo "$LOCATE" >&6; }
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19997 $as_echo "no" >&6; }
20001 # Extract the first word of "dirname", so it can be a program name with args.
20002 set dummy dirname; ac_word=$2
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20004 $as_echo_n "checking for $ac_word... " >&6; }
20005 if ${ac_cv_path_DIRNAME+:} false; then :
20006 $as_echo_n "(cached) " >&6
20010 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20014 for as_dir in $PATH
20017 test -z "$as_dir" && as_dir=.
20018 for ac_exec_ext in '' $ac_executable_extensions; do
20019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20020 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20031 DIRNAME=$ac_cv_path_DIRNAME
20032 if test -n "$DIRNAME"; then
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20034 $as_echo "$DIRNAME" >&6; }
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037 $as_echo "no" >&6; }
20041 # Extract the first word of "grep", so it can be a program name with args.
20042 set dummy grep; ac_word=$2
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20044 $as_echo_n "checking for $ac_word... " >&6; }
20045 if ${ac_cv_path_GREP+:} false; then :
20046 $as_echo_n "(cached) " >&6
20050 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20054 for as_dir in $PATH
20057 test -z "$as_dir" && as_dir=.
20058 for ac_exec_ext in '' $ac_executable_extensions; do
20059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20060 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20071 GREP=$ac_cv_path_GREP
20072 if test -n "$GREP"; then
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20074 $as_echo "$GREP" >&6; }
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20077 $as_echo "no" >&6; }
20084 if test "x$WITH_THREADS" = "xyes"; then
20085 if test $ac_cv_prog_suncc = "yes"; then
20086 CFLAGS="$CFLAGS -mt"
20089 for ac_header in pthread.h
20091 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20092 if test "x$ac_cv_header_pthread_h" = xyes; then :
20093 cat >>confdefs.h <<_ACEOF
20094 #define HAVE_PTHREAD_H 1
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20105 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20106 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20107 $as_echo_n "(cached) " >&6
20109 ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lpthread $LIBS"
20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20112 /* end confdefs.h. */
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20120 char pthread_create ();
20124 return pthread_create ();
20129 if ac_fn_c_try_link "$LINENO"; then :
20130 ac_cv_lib_pthread_pthread_create=yes
20132 ac_cv_lib_pthread_pthread_create=no
20134 rm -f core conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20136 LIBS=$ac_check_lib_save_LIBS
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20139 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20140 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20141 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20142 LIBS="-lpthread $LIBS"
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20145 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20146 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20147 $as_echo_n "(cached) " >&6
20149 ac_check_lib_save_LIBS=$LIBS
20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20152 /* end confdefs.h. */
20154 /* Override any GCC internal prototype to avoid an error.
20155 Use char because int might match the return type of a GCC
20156 builtin and then its argument prototype would still apply. */
20160 char pthread_create ();
20164 return pthread_create ();
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 ac_cv_lib_c_r_pthread_create=yes
20172 ac_cv_lib_c_r_pthread_create=no
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176 LIBS=$ac_check_lib_save_LIBS
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20179 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20180 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20181 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20192 if test "x$WITH_THREADS" != "xyes"; then
20194 ac_cv_header_pthread_h="no"
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20199 $as_echo_n "checking for library containing sem_init... " >&6; }
20200 if ${ac_cv_search_sem_init+:} false; then :
20201 $as_echo_n "(cached) " >&6
20203 ac_func_search_save_LIBS=$LIBS
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20217 return sem_init ();
20222 for ac_lib in '' pthread sem posix4 rt semaphore; do
20223 if test -z "$ac_lib"; then
20224 ac_res="none required"
20227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20229 if ac_fn_c_try_link "$LINENO"; then :
20230 ac_cv_search_sem_init=$ac_res
20232 rm -f core conftest.err conftest.$ac_objext \
20234 if ${ac_cv_search_sem_init+:} false; then :
20238 if ${ac_cv_search_sem_init+:} false; then :
20241 ac_cv_search_sem_init=no
20243 rm conftest.$ac_ext
20244 LIBS=$ac_func_search_save_LIBS
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20247 $as_echo "$ac_cv_search_sem_init" >&6; }
20248 ac_res=$ac_cv_search_sem_init
20249 if test "$ac_res" != no; then :
20250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20253 as_fn_error $? "-lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" "$LINENO" 5
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20260 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20261 if ${ac_cv_lib_socket_getsockname+:} false; then :
20262 $as_echo_n "(cached) " >&6
20264 ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lsocket $LIBS"
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h. */
20269 /* Override any GCC internal prototype to avoid an error.
20270 Use char because int might match the return type of a GCC
20271 builtin and then its argument prototype would still apply. */
20275 char getsockname ();
20279 return getsockname ();
20284 if ac_fn_c_try_link "$LINENO"; then :
20285 ac_cv_lib_socket_getsockname=yes
20287 ac_cv_lib_socket_getsockname=no
20289 rm -f core conftest.err conftest.$ac_objext \
20290 conftest$ac_exeext conftest.$ac_ext
20291 LIBS=$ac_check_lib_save_LIBS
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20294 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20295 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20296 cat >>confdefs.h <<_ACEOF
20297 #define HAVE_LIBSOCKET 1
20300 LIBS="-lsocket $LIBS"
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20306 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20307 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20308 $as_echo_n "(cached) " >&6
20310 ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lresolv $LIBS"
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20325 return inet_aton ();
20330 if ac_fn_c_try_link "$LINENO"; then :
20331 ac_cv_lib_resolv_inet_aton=yes
20333 ac_cv_lib_resolv_inet_aton=no
20335 rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext conftest.$ac_ext
20337 LIBS=$ac_check_lib_save_LIBS
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20340 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20341 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20342 cat >>confdefs.h <<_ACEOF
20343 #define HAVE_LIBRESOLV 1
20346 LIBS="-lresolv $LIBS"
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20352 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20353 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20354 $as_echo_n "(cached) " >&6
20356 ac_check_lib_save_LIBS=$LIBS
20358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20359 /* end confdefs.h. */
20361 /* Override any GCC internal prototype to avoid an error.
20362 Use char because int might match the return type of a GCC
20363 builtin and then its argument prototype would still apply. */
20371 return inet_ntoa ();
20376 if ac_fn_c_try_link "$LINENO"; then :
20377 ac_cv_lib_nsl_inet_ntoa=yes
20379 ac_cv_lib_nsl_inet_ntoa=no
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20383 LIBS=$ac_check_lib_save_LIBS
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20386 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20387 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20388 cat >>confdefs.h <<_ACEOF
20389 #define HAVE_LIBNSL 1
20398 if test "x$WITH_OPENSSL" = xyes; then
20400 old_LDFLAGS="$LDFLAGS"
20401 if test "x$OPENSSL_LIB_DIR" != "x"; then
20402 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20405 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20406 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20407 $as_echo_n "(cached) " >&6
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lcrypto $LIBS"
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20429 if ac_fn_c_try_link "$LINENO"; then :
20430 ac_cv_lib_crypto_DH_new=yes
20432 ac_cv_lib_crypto_DH_new=no
20434 rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20439 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20440 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20442 LIBS="-lcrypto $LIBS"
20444 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20447 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20448 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20449 $as_echo_n "(cached) " >&6
20451 ac_check_lib_save_LIBS=$LIBS
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20471 if ac_fn_c_try_link "$LINENO"; then :
20472 ac_cv_lib_ssl_SSL_new=yes
20474 ac_cv_lib_ssl_SSL_new=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20481 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20482 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20485 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20487 if test "x$OPENSSL_LIB_DIR" != "x"; then
20488 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20490 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20498 LDFLAGS="$old_LDFLAGS"
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20502 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20503 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20504 $as_echo_n "(cached) " >&6
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lws2_32 $LIBS"
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_lib_ws2_32_htonl=yes
20529 ac_cv_lib_ws2_32_htonl=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20536 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20537 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBWS2_32 1
20542 LIBS="-lws2_32 $LIBS"
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20549 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20550 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20551 $as_echo_n "(cached) " >&6
20553 ac_check_lib_save_LIBS=$LIBS
20554 LIBS="-lpcap $LIBS"
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20558 /* Override any GCC internal prototype to avoid an error.
20559 Use char because int might match the return type of a GCC
20560 builtin and then its argument prototype would still apply. */
20564 char pcap_open_live ();
20568 return pcap_open_live ();
20573 if ac_fn_c_try_link "$LINENO"; then :
20574 ac_cv_lib_pcap_pcap_open_live=yes
20576 ac_cv_lib_pcap_pcap_open_live=no
20578 rm -f core conftest.err conftest.$ac_objext \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LIBS=$ac_check_lib_save_LIBS
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20583 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20584 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20587 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20592 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20598 $as_echo_n "checking for a readline compatible library... " >&6; }
20599 if ${ac_cv_lib_readline+:} false; then :
20600 $as_echo_n "(cached) " >&6
20604 for readline_lib in readline edit editline; do
20605 for termcap_lib in "" termcap curses ncurses; do
20606 if test -z "$termcap_lib"; then
20607 TRY_LIB="-l$readline_lib"
20609 TRY_LIB="-l$readline_lib -l$termcap_lib"
20611 LIBS="$ORIG_LIBS $TRY_LIB"
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h. */
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20625 return readline ();
20630 if ac_fn_c_try_link "$LINENO"; then :
20631 ac_cv_lib_readline="$TRY_LIB"
20633 rm -f core conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext conftest.$ac_ext
20635 if test -n "$ac_cv_lib_readline"; then
20636 LIBREADLINE="$TRY_LIB"
20641 if test -n "$ac_cv_lib_readline"; then
20645 if test -z "$ac_cv_lib_readline"; then
20646 ac_cv_lib_readline="no"
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20652 $as_echo "$ac_cv_lib_readline" >&6; }
20654 if test "$ac_cv_lib_readline" != "no"; then
20656 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20658 for ac_header in readline.h readline/readline.h
20660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20663 cat >>confdefs.h <<_ACEOF
20664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20672 $as_echo_n "checking whether readline supports history... " >&6; }
20673 if ${ac_cv_lib_readline_history+:} false; then :
20674 $as_echo_n "(cached) " >&6
20677 ac_cv_lib_readline_history="no"
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20687 char add_history ();
20691 return add_history ();
20696 if ac_fn_c_try_link "$LINENO"; then :
20697 ac_cv_lib_readline_history="yes"
20699 rm -f core conftest.err conftest.$ac_objext \
20700 conftest$ac_exeext conftest.$ac_ext
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20704 $as_echo "$ac_cv_lib_readline_history" >&6; }
20705 if test "$ac_cv_lib_readline_history" = "yes"; then
20707 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20709 for ac_header in history.h readline/history.h
20711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20714 cat >>confdefs.h <<_ACEOF
20715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20729 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20732 CFLAGS="$CFLAGS -DDARWIN"
20733 LIBS="-framework DirectoryService $LIBS"
20737 ac_header_dirent=no
20738 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20739 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20741 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20742 if eval \${$as_ac_Header+:} false; then :
20743 $as_echo_n "(cached) " >&6
20745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20746 /* end confdefs.h. */
20747 #include <sys/types.h>
20759 if ac_fn_c_try_compile "$LINENO"; then :
20760 eval "$as_ac_Header=yes"
20762 eval "$as_ac_Header=no"
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 eval ac_res=\$$as_ac_Header
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20768 $as_echo "$ac_res" >&6; }
20769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20770 cat >>confdefs.h <<_ACEOF
20771 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20774 ac_header_dirent=$ac_hdr; break
20778 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20779 if test $ac_header_dirent = dirent.h; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20781 $as_echo_n "checking for library containing opendir... " >&6; }
20782 if ${ac_cv_search_opendir+:} false; then :
20783 $as_echo_n "(cached) " >&6
20785 ac_func_search_save_LIBS=$LIBS
20786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787 /* end confdefs.h. */
20789 /* Override any GCC internal prototype to avoid an error.
20790 Use char because int might match the return type of a GCC
20791 builtin and then its argument prototype would still apply. */
20804 for ac_lib in '' dir; do
20805 if test -z "$ac_lib"; then
20806 ac_res="none required"
20809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 ac_cv_search_opendir=$ac_res
20814 rm -f core conftest.err conftest.$ac_objext \
20816 if ${ac_cv_search_opendir+:} false; then :
20820 if ${ac_cv_search_opendir+:} false; then :
20823 ac_cv_search_opendir=no
20825 rm conftest.$ac_ext
20826 LIBS=$ac_func_search_save_LIBS
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20829 $as_echo "$ac_cv_search_opendir" >&6; }
20830 ac_res=$ac_cv_search_opendir
20831 if test "$ac_res" != no; then :
20832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20838 $as_echo_n "checking for library containing opendir... " >&6; }
20839 if ${ac_cv_search_opendir+:} false; then :
20840 $as_echo_n "(cached) " >&6
20842 ac_func_search_save_LIBS=$LIBS
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20846 /* Override any GCC internal prototype to avoid an error.
20847 Use char because int might match the return type of a GCC
20848 builtin and then its argument prototype would still apply. */
20861 for ac_lib in '' x; do
20862 if test -z "$ac_lib"; then
20863 ac_res="none required"
20866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20868 if ac_fn_c_try_link "$LINENO"; then :
20869 ac_cv_search_opendir=$ac_res
20871 rm -f core conftest.err conftest.$ac_objext \
20873 if ${ac_cv_search_opendir+:} false; then :
20877 if ${ac_cv_search_opendir+:} false; then :
20880 ac_cv_search_opendir=no
20882 rm conftest.$ac_ext
20883 LIBS=$ac_func_search_save_LIBS
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20886 $as_echo "$ac_cv_search_opendir" >&6; }
20887 ac_res=$ac_cv_search_opendir
20888 if test "$ac_res" != no; then :
20889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20896 $as_echo_n "checking for ANSI C header files... " >&6; }
20897 if ${ac_cv_header_stdc+:} false; then :
20898 $as_echo_n "(cached) " >&6
20900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20901 /* end confdefs.h. */
20902 #include <stdlib.h>
20903 #include <stdarg.h>
20904 #include <string.h>
20915 if ac_fn_c_try_compile "$LINENO"; then :
20916 ac_cv_header_stdc=yes
20918 ac_cv_header_stdc=no
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20922 if test $ac_cv_header_stdc = yes; then
20923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925 /* end confdefs.h. */
20926 #include <string.h>
20929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20930 $EGREP "memchr" >/dev/null 2>&1; then :
20933 ac_cv_header_stdc=no
20939 if test $ac_cv_header_stdc = yes; then
20940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943 #include <stdlib.h>
20946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20947 $EGREP "free" >/dev/null 2>&1; then :
20950 ac_cv_header_stdc=no
20956 if test $ac_cv_header_stdc = yes; then
20957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20958 if test "$cross_compiling" = yes; then :
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20964 #include <stdlib.h>
20965 #if ((' ' & 0x0FF) == 0x020)
20966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20969 # define ISLOWER(c) \
20970 (('a' <= (c) && (c) <= 'i') \
20971 || ('j' <= (c) && (c) <= 'r') \
20972 || ('s' <= (c) && (c) <= 'z'))
20973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20981 for (i = 0; i < 256; i++)
20982 if (XOR (islower (i), ISLOWER (i))
20983 || toupper (i) != TOUPPER (i))
20988 if ac_fn_c_try_run "$LINENO"; then :
20991 ac_cv_header_stdc=no
20993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20994 conftest.$ac_objext conftest.beam conftest.$ac_ext
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21000 $as_echo "$ac_cv_header_stdc" >&6; }
21001 if test $ac_cv_header_stdc = yes; then
21003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21008 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21009 if ${ac_cv_header_time+:} false; then :
21010 $as_echo_n "(cached) " >&6
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014 #include <sys/types.h>
21015 #include <sys/time.h>
21021 if ((struct tm *) 0)
21027 if ac_fn_c_try_compile "$LINENO"; then :
21028 ac_cv_header_time=yes
21030 ac_cv_header_time=no
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21035 $as_echo "$ac_cv_header_time" >&6; }
21036 if test $ac_cv_header_time = yes; then
21038 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21043 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21044 if ${ac_cv_header_sys_wait_h+:} false; then :
21045 $as_echo_n "(cached) " >&6
21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21049 #include <sys/types.h>
21050 #include <sys/wait.h>
21051 #ifndef WEXITSTATUS
21052 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21055 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21063 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21068 if ac_fn_c_try_compile "$LINENO"; then :
21069 ac_cv_header_sys_wait_h=yes
21071 ac_cv_header_sys_wait_h=no
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21076 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21077 if test $ac_cv_header_sys_wait_h = yes; then
21079 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21125 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21127 cat >>confdefs.h <<_ACEOF
21128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21136 for ac_header in net/if.h
21138 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21139 # include <sys/socket.h>
21143 if test "x$ac_cv_header_net_if_h" = xyes; then :
21144 cat >>confdefs.h <<_ACEOF
21145 #define HAVE_NET_IF_H 1
21154 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21155 if test "x$ac_cv_header_regex_h" = xyes; then :
21157 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21162 if test "x$ac_cv_header_regex_h" = "xyes"; then
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21168 #ifdef REG_EXTENDED
21173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21174 $EGREP "yes" >/dev/null 2>&1; then :
21176 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21185 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21188 $as_echo "#define OSFC2 /**/" >>confdefs.h
21192 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21195 $as_echo "#define OSFSIA /**/" >>confdefs.h
21199 OPENSSL_INCLUDE="-DNO_OPENSSL"
21200 if test "x$WITH_OPENSSL" = xyes; then
21201 if test "x$OPENSSL_LIBS" = "x"; then
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
21203 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21205 old_CPPFLAGS=$CPPFLAGS
21206 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21207 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21209 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21219 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21221 cat >>confdefs.h <<_ACEOF
21222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21232 if test "x$OPENSSL_LIBS" != "x"; then
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21234 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21237 #include <openssl/crypto.h>
21238 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21244 $EGREP "yes" >/dev/null 2>&1; then :
21249 if test "x$goodssl" != "xyes"; then
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21251 $as_echo "no" >&6; }
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21255 $as_echo "yes" >&6; }
21256 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21257 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21259 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21263 CPPFLAGS=$old_CPPFLAGS
21268 export OPENSSL_LIBS
21270 if test "x$PCAP_LIBS" = x; then
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21272 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21274 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21275 if test "x$ac_cv_header_pcap_h" = xyes; then :
21277 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21282 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21289 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21290 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21291 $as_echo_n "(cached) " >&6
21293 ac_check_lib_save_LIBS=$LIBS
21294 LIBS="-lpcap $LIBS"
21295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h. */
21298 /* Override any GCC internal prototype to avoid an error.
21299 Use char because int might match the return type of a GCC
21300 builtin and then its argument prototype would still apply. */
21304 char pcap_fopen_offline ();
21308 return pcap_fopen_offline ();
21313 if ac_fn_c_try_link "$LINENO"; then :
21314 ac_cv_lib_pcap_pcap_fopen_offline=yes
21316 ac_cv_lib_pcap_pcap_fopen_offline=no
21318 rm -f core conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21323 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21324 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21326 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21332 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21333 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21334 $as_echo_n "(cached) " >&6
21336 ac_check_lib_save_LIBS=$LIBS
21337 LIBS="-lpcap $LIBS"
21338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21339 /* end confdefs.h. */
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21347 char pcap_dump_fopen ();
21351 return pcap_dump_fopen ();
21356 if ac_fn_c_try_link "$LINENO"; then :
21357 ac_cv_lib_pcap_pcap_dump_fopen=yes
21359 ac_cv_lib_pcap_pcap_dump_fopen=no
21361 rm -f core conftest.err conftest.$ac_objext \
21362 conftest$ac_exeext conftest.$ac_ext
21363 LIBS=$ac_check_lib_save_LIBS
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21366 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21367 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21369 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21378 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21379 if test "x$ac_cv_type_off_t" = xyes; then :
21383 cat >>confdefs.h <<_ACEOF
21384 #define off_t long int
21389 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21390 if test "x$ac_cv_type_pid_t" = xyes; then :
21394 cat >>confdefs.h <<_ACEOF
21400 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21401 if test "x$ac_cv_type_size_t" = xyes; then :
21405 cat >>confdefs.h <<_ACEOF
21406 #define size_t unsigned int
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21412 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21413 if ${ac_cv_type_uid_t+:} false; then :
21414 $as_echo_n "(cached) " >&6
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21418 #include <sys/types.h>
21421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21422 $EGREP "uid_t" >/dev/null 2>&1; then :
21423 ac_cv_type_uid_t=yes
21425 ac_cv_type_uid_t=no
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21431 $as_echo "$ac_cv_type_uid_t" >&6; }
21432 if test $ac_cv_type_uid_t = no; then
21434 $as_echo "#define uid_t int" >>confdefs.h
21437 $as_echo "#define gid_t int" >>confdefs.h
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21444 $as_echo_n "checking for socklen_t... " >&6; }
21445 if ${ac_cv_type_socklen_t+:} false; then :
21446 $as_echo_n "(cached) " >&6
21448 ac_cv_type_socklen_t=no
21449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h. */
21451 #ifdef HAVE_SYS_TYPES_H
21452 #include <sys/types.h>
21454 #ifdef HAVE_SYS_SOCKET_H
21455 #include <sys/socket.h>
21466 if ac_fn_c_try_compile "$LINENO"; then :
21467 ac_cv_type_socklen_t=yes
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21474 $as_echo "$ac_cv_type_socklen_t" >&6; }
21476 if test "$ac_cv_type_socklen_t" != "yes"; then
21478 $as_echo "#define socklen_t int" >>confdefs.h
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21485 $as_echo_n "checking for uint8_t... " >&6; }
21486 if ${ac_cv_type_uint8_t+:} false; then :
21487 $as_echo_n "(cached) " >&6
21489 ac_cv_type_uint8_t=no
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21492 #ifdef HAVE_INTTYPES_H
21493 #include <inttypes.h>
21495 #ifdef HAVE_STDINT_H
21496 #include <stdint.h>
21507 if ac_fn_c_try_compile "$LINENO"; then :
21508 ac_cv_type_uint8_t=yes
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21515 $as_echo "$ac_cv_type_uint8_t" >&6; }
21517 if test "$ac_cv_type_uint8_t" != "yes"; then
21519 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21526 $as_echo_n "checking for uint16_t... " >&6; }
21527 if ${ac_cv_type_uint16_t+:} false; then :
21528 $as_echo_n "(cached) " >&6
21530 ac_cv_type_uint16_t=no
21531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21532 /* end confdefs.h. */
21533 #ifdef HAVE_INTTYPES_H
21534 #include <inttypes.h>
21536 #ifdef HAVE_STDINT_H
21537 #include <stdint.h>
21548 if ac_fn_c_try_compile "$LINENO"; then :
21549 ac_cv_type_uint16_t=yes
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21556 $as_echo "$ac_cv_type_uint16_t" >&6; }
21558 if test "$ac_cv_type_uint16_t" != "yes"; then
21560 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21567 $as_echo_n "checking for uint32_t... " >&6; }
21568 if ${ac_cv_type_uint32_t+:} false; then :
21569 $as_echo_n "(cached) " >&6
21571 ac_cv_type_uint32_t=no
21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h. */
21574 #ifdef HAVE_INTTYPES_H
21575 #include <inttypes.h>
21577 #ifdef HAVE_STDINT_H
21578 #include <stdint.h>
21589 if ac_fn_c_try_compile "$LINENO"; then :
21590 ac_cv_type_uint32_t=yes
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21597 $as_echo "$ac_cv_type_uint32_t" >&6; }
21599 if test "$ac_cv_type_uint32_t" != "yes"; then
21601 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21606 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21607 #ifdef HAVE_NETINET_IN_H
21608 #include <netinet/in.h>
21612 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21614 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21619 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21620 #ifdef HAVE_NETINET_IN_H
21621 #include <netinet/in.h>
21623 #ifdef HAVE_SYS_SOCKET_H
21624 #include <sys/socket.h>
21628 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21630 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21635 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21636 #ifdef HAVE_NETINET_IN_H
21637 #include <netinet/in.h>
21641 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21643 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21648 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21649 #ifdef HAVE_SYS_TYPES_H
21650 #include <sys/types.h>
21652 #ifdef HAVE_SYS_SOCKET_H
21653 #include <sys/socket.h>
21655 #ifdef HAVE_NETDB_H
21660 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21662 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
21702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21705 cat >>confdefs.h <<_ACEOF
21706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
21723 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
21724 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
21725 $as_echo_n "(cached) " >&6
21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21728 /* end confdefs.h. */
21731 #include <string.h>
21732 #ifdef HAVE_UNISTD_H
21733 #include <unistd.h>
21735 #ifdef HAVE_CRYPT_H
21738 #ifdef HAVE_ERRNO_H
21741 #ifdef HAVE_RESOURCE_H
21742 #include <resource.h>
21744 #ifdef HAVE_GETOPT_H
21745 #include <getopt.h>
21747 #ifdef HAVE_MALLOC_H
21748 #include <malloc.h>
21753 #ifdef HAVE_UTMPX_H
21756 #ifdef HAVE_SYS_SELECT_H
21757 #include <sys/select.h>
21759 #ifdef HAVE_DLFCN_H
21762 #ifdef HAVE_REGEX_H
21765 #ifdef HAVE_SYSLOG_H
21766 #include <syslog.h>
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21774 #ifdef HAVE_ARPA_INET_H
21775 #include <arpa/inet.h>
21781 char *(*pfn) = (char *(*)) $ac_func
21786 if ac_fn_c_try_compile "$LINENO"; then :
21787 eval "radius_cv_decl_needed_$ac_func=no"
21789 eval "radius_cv_decl_needed_$ac_func=yes"
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21796 $as_echo "yes" >&6; }
21797 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21798 cat >>confdefs.h <<_ACEOF
21799 #define $radius_tr_decl 1
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 $as_echo "no" >&6; }
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21811 $as_echo_n "checking return type of signal handlers... " >&6; }
21812 if ${ac_cv_type_signal+:} false; then :
21813 $as_echo_n "(cached) " >&6
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21817 #include <sys/types.h>
21818 #include <signal.h>
21823 return *(signal (0, 0)) (0) == 1;
21828 if ac_fn_c_try_compile "$LINENO"; then :
21829 ac_cv_type_signal=int
21831 ac_cv_type_signal=void
21833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21836 $as_echo "$ac_cv_type_signal" >&6; }
21838 cat >>confdefs.h <<_ACEOF
21839 #define RETSIGTYPE $ac_cv_type_signal
21844 if test "x$ac_cv_header_utmpx_h" = "xyes"
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
21848 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21855 #ifdef HAVE_STDDEF_H
21856 #include <stddef.h>
21859 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21865 int foo = offsetof(struct utmpx, ut_xtime)
21870 if ac_fn_c_try_compile "$LINENO"; then :
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21878 if test "x$has_element" != "x"; then
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 $as_echo "yes" >&6; }
21881 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21884 $as_echo "no" >&6; }
21885 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21888 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21891 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
21898 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
21901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902 /* end confdefs.h. */
21904 #include <netinet/in.h>
21905 #ifdef HAVE_STDDEF_H
21906 #include <stddef.h>
21909 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21915 int foo = offsetof(struct in_pktinfo, ipi_addr)
21920 if ac_fn_c_try_compile "$LINENO"; then :
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
21928 if test "x$has_element" != "x"; then
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21930 $as_echo "yes" >&6; }
21931 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21934 $as_echo "no" >&6; }
21935 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
21938 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
21941 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
21947 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
21950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21951 /* end confdefs.h. */
21953 #include <netinet/in.h>
21954 #ifdef HAVE_STDDEF_H
21955 #include <stddef.h>
21958 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21964 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
21969 if ac_fn_c_try_compile "$LINENO"; then :
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
21977 if test "x$has_element" != "x"; then
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21979 $as_echo "yes" >&6; }
21980 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21984 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
21987 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
21990 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21996 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21997 if ${ac_cv_c_const+:} false; then :
21998 $as_echo_n "(cached) " >&6
22000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h. */
22007 #ifndef __cplusplus
22008 /* Ultrix mips cc rejects this sort of thing. */
22009 typedef int charset[2];
22010 const charset cs = { 0, 0 };
22011 /* SunOS 4.1.1 cc rejects this. */
22012 char const *const *pcpcc;
22014 /* NEC SVR4.0.2 mips cc rejects this. */
22015 struct point {int x, y;};
22016 static struct point const zero = {0,0};
22017 /* AIX XL C 1.02.0.0 rejects this.
22018 It does not let you subtract one const X* pointer from another in
22019 an arm of an if-expression whose if-part is not a constant
22021 const char *g = "string";
22022 pcpcc = &g + (g ? g-g : 0);
22023 /* HPUX 7.0 cc rejects these. */
22025 ppc = (char**) pcpcc;
22026 pcpcc = (char const *const *) ppc;
22027 { /* SCO 3.2v4 cc rejects this sort of thing. */
22030 char const *s = 0 ? (char *) 0 : (char const *) 0;
22035 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22036 int x[] = {25, 17};
22037 const int *foo = &x[0];
22040 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22041 typedef const int *iptr;
22045 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22046 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22047 struct s { int j; const int *ap[3]; } bx;
22048 struct s *b = &bx; b->j = 5;
22050 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22051 const int foo = 10;
22052 if (!foo) return 0;
22054 return !cs[0] && !zero.x;
22061 if ac_fn_c_try_compile "$LINENO"; then :
22066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22069 $as_echo "$ac_cv_c_const" >&6; }
22070 if test $ac_cv_c_const = no; then
22072 $as_echo "#define const /**/" >>confdefs.h
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22078 $as_echo_n "checking type of OS... " >&6; }
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22081 $as_echo "$OS" >&6; }
22082 if test "$OS" = "OS/2"; then
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22090 $as_echo_n "checking for developer gcc flags... " >&6; }
22091 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22092 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22093 CFLAGS="$CFLAGS $devflags"
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22096 $as_echo "yes. Using $devflags" >&6; }
22099 CFLAGS="$CFLAGS -DNDEBUG"
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22102 $as_echo "no." >&6; }
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22107 $as_echo_n "checking for TLS... " >&6; }
22108 if test "$cross_compiling" = yes; then :
22111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22112 /* end confdefs.h. */
22113 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22115 if ac_fn_c_try_run "$LINENO"; then :
22120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22121 conftest.$ac_objext conftest.beam conftest.$ac_ext
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22125 $as_echo "$have_tls" >&6; }
22126 if test "$have_tls" = "yes"; then
22128 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22135 LIBS="$LIBS $LIBLTDL"
22136 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22137 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22139 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22146 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22147 if ${ac_cv_lib_crypt_crypt+:} false; then :
22148 $as_echo_n "(cached) " >&6
22150 ac_check_lib_save_LIBS=$LIBS
22151 LIBS="-lcrypt $LIBS"
22152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h. */
22155 /* Override any GCC internal prototype to avoid an error.
22156 Use char because int might match the return type of a GCC
22157 builtin and then its argument prototype would still apply. */
22170 if ac_fn_c_try_link "$LINENO"; then :
22171 ac_cv_lib_crypt_crypt=yes
22173 ac_cv_lib_crypt_crypt=no
22175 rm -f core conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22177 LIBS=$ac_check_lib_save_LIBS
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22180 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22181 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22186 if test "$CRYPTLIB" != ""; then
22188 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22191 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22192 if test "x$ac_cv_func_crypt" = xyes; then :
22194 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22201 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22202 if ${ac_cv_lib_cipher_setkey+:} false; then :
22203 $as_echo_n "(cached) " >&6
22205 ac_check_lib_save_LIBS=$LIBS
22206 LIBS="-lcipher $LIBS"
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22210 /* Override any GCC internal prototype to avoid an error.
22211 Use char because int might match the return type of a GCC
22212 builtin and then its argument prototype would still apply. */
22225 if ac_fn_c_try_link "$LINENO"; then :
22226 ac_cv_lib_cipher_setkey=yes
22228 ac_cv_lib_cipher_setkey=no
22230 rm -f core conftest.err conftest.$ac_objext \
22231 conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22235 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22236 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22237 CRYPTLIB="${CRYPTLIB} -lcipher"
22244 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22247 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22250 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22252 gethostbyaddrrstyle=""
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22254 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22257 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22258 #ifdef HAVE_NETDB_H
22263 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22269 cat >>confdefs.h <<_ACEOF
22270 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22272 if test $ac_have_decl = 1; then :
22277 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22279 gethostbyaddrrstyle=BSD
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22281 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22287 if test "x$gethostbyaddrrstyle" = "x"; then
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22297 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22302 if ac_fn_c_try_link "$LINENO"; then :
22305 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22307 gethostbyaddrrstyle=GNU
22310 rm -f core conftest.err conftest.$ac_objext \
22311 conftest$ac_exeext conftest.$ac_ext
22313 if test "x$gethostbyaddrrstyle" = "x"; then
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22323 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22328 if ac_fn_c_try_link "$LINENO"; then :
22331 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22333 gethostbyaddrrstyle=SYSV
22336 rm -f core conftest.err conftest.$ac_objext \
22337 conftest$ac_exeext conftest.$ac_ext
22339 if test "x$gethostbyaddrrstyle" = "x"; then
22340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22341 /* end confdefs.h. */
22349 gethostbyaddr(NULL, 0, 0)
22354 if ac_fn_c_try_link "$LINENO"; then :
22357 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22359 gethostbyaddrrstyle=BSD
22362 rm -f core conftest.err conftest.$ac_objext \
22363 conftest$ac_exeext conftest.$ac_ext
22366 if test "x$gethostbyaddrrstyle" = "x"; then
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22368 $as_echo "none! It must not exist, here." >&6; }
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22371 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22374 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22376 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22379 gethostbynamerstyle=""
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22381 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22391 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22396 if ac_fn_c_try_link "$LINENO"; then :
22399 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22401 gethostbynamerstyle=GNU
22404 rm -f core conftest.err conftest.$ac_objext \
22405 conftest$ac_exeext conftest.$ac_ext
22406 if test "x$gethostbynamerstyle" = "x"; then
22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22408 /* end confdefs.h. */
22416 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22421 if ac_fn_c_try_link "$LINENO"; then :
22424 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22426 gethostbynamerstyle=SYSV
22429 rm -f core conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
22432 if test "x$gethostbynamerstyle" = "x"; then
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22442 gethostbyname(NULL)
22447 if ac_fn_c_try_link "$LINENO"; then :
22450 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22452 gethostbynamerstyle=BSD
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22459 if test "x$gethostbynamerstyle" = "x"; then
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22461 $as_echo "none! It must not exist, here." >&6; }
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22464 $as_echo "${gethostbynamerstyle}-style" >&6; }
22467 if test "x$gethostbynamerstyle" = "xBSD"; then
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22469 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22473 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22476 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22480 $as_echo_n "checking ctime_r() syntax... " >&6; }
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22489 ctime_r(NULL, NULL, 0)
22494 if ac_fn_c_try_link "$LINENO"; then :
22497 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22499 ctimerstyle="SOLARIS"
22502 rm -f core conftest.err conftest.$ac_objext \
22503 conftest$ac_exeext conftest.$ac_ext
22504 if test "x$ctimerstyle" = "x"; then
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22513 ctime_r(NULL, NULL)
22518 if ac_fn_c_try_link "$LINENO"; then :
22521 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22523 ctimerstyle="POSIX"
22526 rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22530 if test "x$ctimerstyle" = "x"; then
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22532 $as_echo "none! It must not exist, here." >&6; }
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22535 $as_echo "${ctimerstyle}-style" >&6; }
22541 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22543 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22549 export top_builddir
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22551 $as_echo "top_builddir=$top_builddir" >&6; }
22557 mysubdirs="$LIBLTDLPATH"
22558 if test "x$EXPERIMENTAL" = "xyes"; then
22559 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22560 mysubdirs=`echo $mysubdirs $bar`
22562 for bar in `cat "${srcdir}"/src/modules/stable`; do
22563 if test -f "${srcdir}"/src/modules/$bar/configure; then
22564 mysubdirs="$mysubdirs src/modules/$bar"
22569 if test "x$EXPERIMENTAL" = "xyes"; then
22570 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22571 MODULES="$MODULES $foo"
22574 for foo in `cat "${srcdir}"/src/modules/stable`; do
22575 MODULES="$MODULES $foo"
22581 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22586 ac_config_commands="$ac_config_commands stamp-h"
22588 ac_config_commands="$ac_config_commands build-radpaths-h"
22590 ac_config_commands="$ac_config_commands main-chmod"
22592 ac_config_commands="$ac_config_commands scripts-chmod"
22598 USE_SHARED_LIBS=$enable_shared
22600 USE_STATIC_LIBS=$enable_static
22611 unset ac_cv_env_LIBS_set
22612 unset ac_cv_env_LIBS_value
22614 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
22616 cat >confcache <<\_ACEOF
22617 # This file is a shell script that caches the results of configure
22618 # tests run on this system so they can be shared between configure
22619 # scripts and configure runs, see configure's option --config-cache.
22620 # It is not useful on other systems. If it contains results you don't
22621 # want to keep, you may remove or edit it.
22623 # config.status only pays attention to the cache file if you give it
22624 # the --recheck option to rerun configure.
22626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22628 # following values.
22632 # The following way of writing the cache mishandles newlines in values,
22633 # but we know of no workaround that is simple, portable, and efficient.
22634 # So, we kill variables containing newlines.
22635 # Ultrix sh set writes to stderr and can't be redirected directly,
22636 # and sets the high bit in the cache file unless we assign to the vars.
22638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22639 eval ac_val=\$$ac_var
22643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22647 _ | IFS | as_nl) ;; #(
22648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22649 *) { eval $ac_var=; unset $ac_var;} ;;
22655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22656 *${as_nl}ac_space=\ *)
22657 # `set' does not quote correctly, so add quotes: double-quote
22658 # substitution turns \\\\ into \\, and sed turns \\ into \.
22661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22664 # `set' quotes correctly as required by POSIX, so do not add quotes.
22665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22679 if test -w "$cache_file"; then
22680 if test "x$cache_file" != "x/dev/null"; then
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22682 $as_echo "$as_me: updating cache $cache_file" >&6;}
22683 if test ! -f "$cache_file" || test -h "$cache_file"; then
22684 cat confcache >"$cache_file"
22686 case $cache_file in #(
22688 mv -f confcache "$cache_file"$$ &&
22689 mv -f "$cache_file"$$ "$cache_file" ;; #(
22691 mv -f confcache "$cache_file" ;;
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22703 # Let make expand exec_prefix.
22704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22706 DEFS=-DHAVE_CONFIG_H
22711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22712 # 1. Remove the extension, and $U if already installed.
22713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22714 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22716 # will be set to the directory where LIBOBJS objects are built.
22717 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22718 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22720 LIBOBJS=$ac_libobjs
22722 LTLIBOBJS=$ac_ltlibobjs
22727 : "${CONFIG_STATUS=./config.status}"
22729 ac_clean_files_save=$ac_clean_files
22730 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22732 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22734 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22736 # Generated by $as_me.
22737 # Run this file to recreate the current configuration.
22738 # Compiler output produced by configure, useful for debugging
22739 # configure, is in config.log if it exists.
22742 ac_cs_recheck=false
22745 SHELL=\${CONFIG_SHELL-$SHELL}
22748 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22749 ## -------------------- ##
22750 ## M4sh Initialization. ##
22751 ## -------------------- ##
22753 # Be more Bourne compatible
22754 DUALCASE=1; export DUALCASE # for MKS sh
22755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22759 # is contrary to our usage. Disable this feature.
22760 alias -g '${1+"$@"}'='"$@"'
22761 setopt NO_GLOB_SUBST
22763 case `(set -o) 2>/dev/null` in #(
22775 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22776 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22779 # Prefer a ksh shell builtin over an external printf program on Solaris,
22780 # but without wasting forks for bash or zsh.
22781 if test -z "$BASH_VERSION$ZSH_VERSION" \
22782 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22783 as_echo='print -r --'
22784 as_echo_n='print -rn --'
22785 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22786 as_echo='printf %s\n'
22787 as_echo_n='printf %s'
22789 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22790 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22791 as_echo_n='/usr/ucb/echo -n'
22793 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22794 as_echo_n_body='eval
22798 expr "X$arg" : "X\\(.*\\)$as_nl";
22799 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22801 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22803 export as_echo_n_body
22804 as_echo_n='sh -c $as_echo_n_body as_echo'
22806 export as_echo_body
22807 as_echo='sh -c $as_echo_body as_echo'
22810 # The user is always right.
22811 if test "${PATH_SEPARATOR+set}" != set; then
22813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22821 # We need space, tab and new line, in precisely that order. Quoting is
22822 # there to prevent editors from complaining about space-tab.
22823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22824 # splitting by setting IFS to empty value.)
22827 # Find who we are. Look in the path if we contain no directory separator.
22830 *[\\/]* ) as_myself=$0 ;;
22831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22832 for as_dir in $PATH
22835 test -z "$as_dir" && as_dir=.
22836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22842 # We did not find ourselves, most probably we were run as `sh COMMAND'
22843 # in which case we are not to be found in the path.
22844 if test "x$as_myself" = x; then
22847 if test ! -f "$as_myself"; then
22848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22852 # Unset variables that we do not need and which cause bugs (e.g. in
22853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22854 # suppresses any "Segmentation fault" message there. '((' could
22855 # trigger a bug in pdksh 5.2.14.
22856 for as_var in BASH_ENV ENV MAIL MAILPATH
22857 do eval test x\${$as_var+set} = xset \
22858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22874 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22875 # ----------------------------------------
22876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22878 # script with STATUS, using 1 if that was 0.
22881 as_status=$1; test $as_status -eq 0 && as_status=1
22883 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22886 $as_echo "$as_me: error: $2" >&2
22887 as_fn_exit $as_status
22891 # as_fn_set_status STATUS
22892 # -----------------------
22893 # Set $? to STATUS, without forking.
22894 as_fn_set_status ()
22897 } # as_fn_set_status
22899 # as_fn_exit STATUS
22900 # -----------------
22901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22905 as_fn_set_status $1
22911 # Portably unset VAR.
22914 { eval $1=; unset $1;}
22916 as_unset=as_fn_unset
22917 # as_fn_append VAR VALUE
22918 # ----------------------
22919 # Append the text in VALUE to the end of the definition contained in VAR. Take
22920 # advantage of any shell optimizations that allow amortized linear growth over
22921 # repeated appends, instead of the typical quadratic growth present in naive
22923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22924 eval 'as_fn_append ()
22935 # as_fn_arith ARG...
22936 # ------------------
22937 # Perform arithmetic evaluation on the ARGs, and store the result in the
22938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22939 # must be portable across $(()) and expr.
22940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22941 eval 'as_fn_arith ()
22948 as_val=`expr "$@" || test $? -eq 1`
22953 if expr a : '\(a\)' >/dev/null 2>&1 &&
22954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22961 as_basename=basename
22966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22972 as_me=`$as_basename -- "$0" ||
22973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22974 X"$0" : 'X\(//\)$' \| \
22975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22977 sed '/^.*\/\([^/][^/]*\)\/*$/{
22991 # Avoid depending upon Character Ranges.
22992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22995 as_cr_digits='0123456789'
22996 as_cr_alnum=$as_cr_Letters$as_cr_digits
22998 ECHO_C= ECHO_N= ECHO_T=
22999 case `echo -n x` in #(((((
23001 case `echo 'xy\c'` in
23002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23011 rm -f conf$$ conf$$.exe conf$$.file
23012 if test -d conf$$.dir; then
23013 rm -f conf$$.dir/conf$$.file
23016 mkdir conf$$.dir 2>/dev/null
23018 if (echo >conf$$.file) 2>/dev/null; then
23019 if ln -s conf$$.file conf$$ 2>/dev/null; then
23021 # ... but there are two gotchas:
23022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23024 # In both cases, we have to default to `cp -pR'.
23025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23027 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23041 # Create "$as_dir" as a directory, including parents if necessary.
23046 -*) as_dir=./$as_dir;;
23048 test -d "$as_dir" || eval $as_mkdir_p || {
23052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23053 *) as_qdir=$as_dir;;
23055 as_dirs="'$as_qdir' $as_dirs"
23056 as_dir=`$as_dirname -- "$as_dir" ||
23057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23058 X"$as_dir" : 'X\(//\)[^/]' \| \
23059 X"$as_dir" : 'X\(//\)$' \| \
23060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23061 $as_echo X"$as_dir" |
23062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23066 /^X\(\/\/\)[^/].*/{
23079 test -d "$as_dir" && break
23081 test -z "$as_dirs" || eval "mkdir $as_dirs"
23082 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23086 if mkdir -p . 2>/dev/null; then
23087 as_mkdir_p='mkdir -p "$as_dir"'
23089 test -d ./-p && rmdir ./-p
23094 # as_fn_executable_p FILE
23095 # -----------------------
23096 # Test if FILE is an executable regular file.
23097 as_fn_executable_p ()
23099 test -f "$1" && test -x "$1"
23100 } # as_fn_executable_p
23101 as_test_x='test -x'
23102 as_executable_p=as_fn_executable_p
23104 # Sed expression to map a string onto a valid CPP name.
23105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23107 # Sed expression to map a string onto a valid variable name.
23108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23112 ## ----------------------------------- ##
23113 ## Main body of $CONFIG_STATUS script. ##
23114 ## ----------------------------------- ##
23116 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23119 # Save the log message, to keep $0 and so on meaningful, and to
23120 # report actual input values of CONFIG_FILES etc. instead of their
23121 # values after options handling.
23123 This file was extended by $as_me, which was
23124 generated by GNU Autoconf 2.69. Invocation command line was
23126 CONFIG_FILES = $CONFIG_FILES
23127 CONFIG_HEADERS = $CONFIG_HEADERS
23128 CONFIG_LINKS = $CONFIG_LINKS
23129 CONFIG_COMMANDS = $CONFIG_COMMANDS
23132 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23137 case $ac_config_files in *"
23138 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23141 case $ac_config_headers in *"
23142 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23147 # Files that config.status was made for.
23148 config_files="$ac_config_files"
23149 config_headers="$ac_config_headers"
23150 config_commands="$ac_config_commands"
23154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23156 \`$as_me' instantiates files and other configuration actions
23157 from templates according to the current configuration. Unless the files
23158 and actions are specified as TAGs, all are instantiated by default.
23160 Usage: $0 [OPTION]... [TAG]...
23162 -h, --help print this help, then exit
23163 -V, --version print version number and configuration settings, then exit
23164 --config print configuration, then exit
23165 -q, --quiet, --silent
23166 do not print progress messages
23167 -d, --debug don't remove temporary files
23168 --recheck update $as_me by reconfiguring in the same conditions
23169 --file=FILE[:TEMPLATE]
23170 instantiate the configuration file FILE
23171 --header=FILE[:TEMPLATE]
23172 instantiate the configuration header FILE
23174 Configuration files:
23177 Configuration headers:
23180 Configuration commands:
23183 Report bugs to the package provider."
23186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23187 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23190 configured by $0, generated by GNU Autoconf 2.69,
23191 with options \\"\$ac_cs_config\\"
23193 Copyright (C) 2012 Free Software Foundation, Inc.
23194 This config.status script is free software; the Free Software Foundation
23195 gives unlimited permission to copy, distribute and modify it."
23199 test -n "\$AWK" || AWK=awk
23202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23203 # The default lists apply if the user does not specify any file.
23209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23226 # Handling of the options.
23227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23230 $as_echo "$ac_cs_version"; exit ;;
23231 --config | --confi | --conf | --con | --co | --c )
23232 $as_echo "$ac_cs_config"; exit ;;
23233 --debug | --debu | --deb | --de | --d | -d )
23235 --file | --fil | --fi | --f )
23238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23239 '') as_fn_error $? "missing file argument" ;;
23241 as_fn_append CONFIG_FILES " '$ac_optarg'"
23242 ac_need_defaults=false;;
23243 --header | --heade | --head | --hea )
23246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23249 ac_need_defaults=false;;
23251 # Conflict between --help and --header
23252 as_fn_error $? "ambiguous option: \`$1'
23253 Try \`$0 --help' for more information.";;
23254 --help | --hel | -h )
23255 $as_echo "$ac_cs_usage"; exit ;;
23256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23260 # This is an error.
23261 -*) as_fn_error $? "unrecognized option: \`$1'
23262 Try \`$0 --help' for more information." ;;
23264 *) as_fn_append ac_config_targets " $1"
23265 ac_need_defaults=false ;;
23271 ac_configure_extra_args=
23273 if $ac_cs_silent; then
23275 ac_configure_extra_args="$ac_configure_extra_args --silent"
23279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23280 if \$ac_cs_recheck; then
23281 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23284 CONFIG_SHELL='$SHELL'
23285 export CONFIG_SHELL
23290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23295 ## Running $as_me. ##
23301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23306 # Handling of arguments.
23307 for ac_config_target in $ac_config_targets
23309 case $ac_config_target in
23310 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23311 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23312 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23313 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23314 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23315 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23316 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23317 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23318 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23319 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23320 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23321 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23322 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23323 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23324 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23325 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23326 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23327 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23328 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23330 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23335 # If the user did not use the arguments to specify the items to instantiate,
23336 # then the envvar interface is used. Set only those that are not.
23337 # We use the long form for the default assignment because of an extremely
23338 # bizarre bug on SunOS 4.1.3.
23339 if $ac_need_defaults; then
23340 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23341 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23345 # Have a temporary directory for convenience. Make it in the build tree
23346 # simply because there is no reason against having it here, and in addition,
23347 # creating and moving files from /tmp can sometimes cause problems.
23348 # Hook for its removal unless debugging.
23349 # Note that there is a small window in which the directory will not be cleaned:
23350 # after its creation but before its name has been assigned to `$tmp'.
23354 trap 'exit_status=$?
23355 : "${ac_tmp:=$tmp}"
23356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23358 trap 'as_fn_exit 1' 1 2 13 15
23360 # Create a (secure) tmp directory for tmp files.
23363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23367 tmp=./conf$$-$RANDOM
23368 (umask 077 && mkdir "$tmp")
23369 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23372 # Set up the scripts for CONFIG_FILES section.
23373 # No need to generate them if there are no CONFIG_FILES.
23374 # This happens for instance with `./config.status config.h'.
23375 if test -n "$CONFIG_FILES"; then
23378 ac_cr=`echo X | tr X '\015'`
23379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23380 # But we know of no other shell where ac_cr would be empty at this
23381 # point, so we can use a bashism as a fallback.
23382 if test "x$ac_cr" = x; then
23383 eval ac_cr=\$\'\\r\'
23385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23389 ac_cs_awk_cr=$ac_cr
23392 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23397 echo "cat >conf$$subs.awk <<_ACEOF" &&
23398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23400 } >conf$$subs.sh ||
23401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23404 for ac_last_try in false false false false false :; do
23405 . ./conf$$subs.sh ||
23406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23409 if test $ac_delim_n = $ac_delim_num; then
23411 elif $ac_last_try; then
23412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23417 rm -f conf$$subs.sh
23419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23420 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23424 s/^/S["/; s/!.*/"]=/
23434 s/\(.\{148\}\)..*/\1/
23436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23448 s/\(.\{148\}\)..*/\1/
23450 s/["\\]/\\&/g; s/^/"/; s/$/"/
23454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23459 ' <conf$$subs.awk | sed '
23464 ' >>$CONFIG_STATUS || ac_write_fail=1
23465 rm -f conf$$subs.awk
23466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23468 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23469 for (key in S) S_is_set[key] = 1
23475 nfields = split(line, field, "@")
23477 len = length(field[1])
23478 for (i = 2; i < nfields; i++) {
23480 keylen = length(key)
23481 if (S_is_set[key]) {
23483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23484 len += length(value) + length(field[++i])
23495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23506 # trailing colons and then remove the whole line if VPATH becomes empty
23507 # (actually we leave an empty line to preserve line numbers).
23508 if test "x$srcdir" = x.; then
23509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23528 fi # test -n "$CONFIG_FILES"
23530 # Set up the scripts for CONFIG_HEADERS section.
23531 # No need to generate them if there are no CONFIG_HEADERS.
23532 # This happens for instance with `./config.status Makefile'.
23533 if test -n "$CONFIG_HEADERS"; then
23534 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23538 # Transform confdefs.h into an awk script `defines.awk', embedded as
23539 # here-document in config.status, that substitutes the proper values into
23540 # config.h.in to produce config.h.
23542 # Create a delimiter string that does not exist in confdefs.h, to ease
23543 # handling of long lines.
23545 for ac_last_try in false false :; do
23546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23547 if test -z "$ac_tt"; then
23549 elif $ac_last_try; then
23550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23556 # For the awk script, D is an array of macro values keyed by name,
23557 # likewise P contains macro parameters if any. Preserve backslash
23558 # newline sequences.
23560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23562 s/.\{148\}/&'"$ac_delim"'/g
23565 s/^[ ]*#[ ]*define[ ][ ]*/ /
23572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23574 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23579 D["\1"]=" \3\\\\\\n"\\/p
23581 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23586 s/.\{148\}/&'"$ac_delim"'/g
23591 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23596 ' <confdefs.h | sed '
23597 s/'"$ac_delim"'/"\\\
23598 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23601 for (key in D) D_is_set[key] = 1
23604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23606 split(line, arg, " ")
23607 if (arg[1] == "#") {
23611 defundef = substr(arg[1], 2)
23614 split(mac1, mac2, "(") #)
23616 prefix = substr(line, 1, index(line, defundef) - 1)
23617 if (D_is_set[macro]) {
23618 # Preserve the white space surrounding the "#".
23619 print prefix "define", macro P[macro] D[macro]
23622 # Replace #undef with comments. This is necessary, for example,
23623 # in the case of _POSIX_SOURCE, which is predefined and required
23624 # on some systems where configure will not decide to define it.
23625 if (defundef == "undef") {
23626 print "/*", prefix defundef, macro, "*/"
23634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23636 fi # test -n "$CONFIG_HEADERS"
23639 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23644 :[FHLC]) ac_mode=$ac_tag; continue;;
23646 case $ac_mode$ac_tag in
23648 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23649 :[FH]-) ac_tag=-:-;;
23650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23667 -) ac_f="$ac_tmp/stdin";;
23668 *) # Look for the file first in the build tree, then in the source tree
23669 # (if the path is not absolute). The absolute path cannot be DOS-style,
23670 # because $ac_f cannot contain `:'.
23674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23676 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23678 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23679 as_fn_append ac_file_inputs " '$ac_f'"
23682 # Let's still pretend it is `configure' which instantiates (i.e., don't
23683 # use $as_me), people would be surprised to read:
23684 # /* config.h. Generated by config.status. */
23685 configure_input='Generated from '`
23686 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23688 if test x"$ac_file" != x-; then
23689 configure_input="$ac_file. $configure_input"
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23691 $as_echo "$as_me: creating $ac_file" >&6;}
23693 # Neutralize special characters interpreted by sed in replacement strings.
23694 case $configure_input in #(
23695 *\&* | *\|* | *\\* )
23696 ac_sed_conf_input=`$as_echo "$configure_input" |
23697 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23698 *) ac_sed_conf_input=$configure_input;;
23702 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23708 ac_dir=`$as_dirname -- "$ac_file" ||
23709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23710 X"$ac_file" : 'X\(//\)[^/]' \| \
23711 X"$ac_file" : 'X\(//\)$' \| \
23712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23713 $as_echo X"$ac_file" |
23714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23718 /^X\(\/\/\)[^/].*/{
23731 as_dir="$ac_dir"; as_fn_mkdir_p
23735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23738 # A ".." for each directory in $ac_dir_suffix.
23739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23740 case $ac_top_builddir_sub in
23741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23745 ac_abs_top_builddir=$ac_pwd
23746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23747 # for backward compatibility:
23748 ac_top_builddir=$ac_top_build_prefix
23751 .) # We are building in place.
23753 ac_top_srcdir=$ac_top_builddir_sub
23754 ac_abs_top_srcdir=$ac_pwd ;;
23755 [\\/]* | ?:[\\/]* ) # Absolute name.
23756 ac_srcdir=$srcdir$ac_dir_suffix;
23757 ac_top_srcdir=$srcdir
23758 ac_abs_top_srcdir=$srcdir ;;
23759 *) # Relative name.
23760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23761 ac_top_srcdir=$ac_top_build_prefix$srcdir
23762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776 # If the template does not know about datarootdir, expand it.
23777 # FIXME: This hack should be removed a few years after 2.60.
23778 ac_datarootdir_hack=; ac_datarootdir_seen=
23789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23790 *datarootdir*) ac_datarootdir_seen=yes;;
23791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23796 ac_datarootdir_hack='
23797 s&@datadir@&$datadir&g
23798 s&@docdir@&$docdir&g
23799 s&@infodir@&$infodir&g
23800 s&@localedir@&$localedir&g
23801 s&@mandir@&$mandir&g
23802 s&\\\${datarootdir}&$datarootdir&g' ;;
23806 # Neutralize VPATH when `$srcdir' = `.'.
23807 # Shell code in configure.ac might set extrasub.
23808 # FIXME: do we really want to maintain this feature?
23809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23810 ac_sed_extra="$ac_vpsub
23813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23816 s|@configure_input@|$ac_sed_conf_input|;t t
23817 s&@top_builddir@&$ac_top_builddir_sub&;t t
23818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23819 s&@srcdir@&$ac_srcdir&;t t
23820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23821 s&@top_srcdir@&$ac_top_srcdir&;t t
23822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23823 s&@builddir@&$ac_builddir&;t t
23824 s&@abs_builddir@&$ac_abs_builddir&;t t
23825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23826 $ac_datarootdir_hack
23828 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23829 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23831 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23832 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23833 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23834 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23836 which seems to be undefined. Please make sure it is defined" >&5
23837 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23838 which seems to be undefined. Please make sure it is defined" >&2;}
23840 rm -f "$ac_tmp/stdin"
23842 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23843 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23851 if test x"$ac_file" != x-; then
23853 $as_echo "/* $configure_input */" \
23854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23855 } >"$ac_tmp/config.h" \
23856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23857 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23859 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23862 mv "$ac_tmp/config.h" "$ac_file" \
23863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23866 $as_echo "/* $configure_input */" \
23867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23868 || as_fn_error $? "could not create -" "$LINENO" 5
23872 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23873 $as_echo "$as_me: executing $ac_file commands" >&6;}
23878 case $ac_file$ac_mode in
23879 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
23880 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
23881 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
23882 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
23890 ac_clean_files=$ac_clean_files_save
23892 test $ac_write_fail = 0 ||
23893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23896 # configure is writing to config.log, and then calls config.status.
23897 # config.status does its own redirection, appending to config.log.
23898 # Unfortunately, on DOS this fails, as config.log is still kept open
23899 # by configure, so config.status won't be able to write to it; its
23900 # output is simply discarded. So we exec the FD to /dev/null,
23901 # effectively closing config.log, so it can be properly (re)opened and
23902 # appended to by config.status. When coming back to configure, we
23903 # need to make the FD available again.
23904 if test "$no_create" != yes; then
23906 ac_config_status_args=
23907 test "$silent" = yes &&
23908 ac_config_status_args="$ac_config_status_args --quiet"
23910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23913 # would make configure fail if this is the last instruction.
23914 $ac_cs_success || as_fn_exit 1
23918 # CONFIG_SUBDIRS section.
23920 if test "$no_recursion" != yes; then
23922 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23923 # so they do not pile up.
23924 ac_sub_configure_args=
23926 eval "set x $ac_configure_args"
23930 if test -n "$ac_prev"; then
23935 -cache-file | --cache-file | --cache-fil | --cache-fi \
23936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23937 ac_prev=cache_file ;;
23938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23942 --config-cache | -C)
23944 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23946 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23952 --disable-option-checking)
23956 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23958 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23962 # Always prepend --prefix to ensure using the same prefix
23963 # in subdir configurations.
23964 ac_arg="--prefix=$prefix"
23966 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23968 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23971 if test "$silent" = yes; then
23972 ac_sub_configure_args="--silent $ac_sub_configure_args"
23975 # Always prepend --disable-option-checking to silence warnings, since
23976 # different subdirs can have different --enable and --with options.
23977 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23980 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23982 # Do not complain, so a configure script can configure whichever
23983 # parts of a large source tree are present.
23984 test -d "$srcdir/$ac_dir" || continue
23986 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23987 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23988 $as_echo "$ac_msg" >&6
23989 as_dir="$ac_dir"; as_fn_mkdir_p
23993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23995 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23996 # A ".." for each directory in $ac_dir_suffix.
23997 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23998 case $ac_top_builddir_sub in
23999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24003 ac_abs_top_builddir=$ac_pwd
24004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24005 # for backward compatibility:
24006 ac_top_builddir=$ac_top_build_prefix
24009 .) # We are building in place.
24011 ac_top_srcdir=$ac_top_builddir_sub
24012 ac_abs_top_srcdir=$ac_pwd ;;
24013 [\\/]* | ?:[\\/]* ) # Absolute name.
24014 ac_srcdir=$srcdir$ac_dir_suffix;
24015 ac_top_srcdir=$srcdir
24016 ac_abs_top_srcdir=$srcdir ;;
24017 *) # Relative name.
24018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24019 ac_top_srcdir=$ac_top_build_prefix$srcdir
24020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24027 # Check for guested configure; otherwise get Cygnus style configure.
24028 if test -f "$ac_srcdir/configure.gnu"; then
24029 ac_sub_configure=$ac_srcdir/configure.gnu
24030 elif test -f "$ac_srcdir/configure"; then
24031 ac_sub_configure=$ac_srcdir/configure
24032 elif test -f "$ac_srcdir/configure.in"; then
24033 # This should be Cygnus configure.
24034 ac_sub_configure=$ac_aux_dir/configure
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24037 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24041 # The recursion is here.
24042 if test -n "$ac_sub_configure"; then
24043 # Make the cache file name correct relative to the subdirectory.
24044 case $cache_file in
24045 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24046 *) # Relative name.
24047 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24051 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24052 # The eval makes quoting arguments work.
24053 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24054 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24055 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24061 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24063 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}