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
885 program_transform_name
898 enable_option_checking
909 enable_strict_dependencies
918 with_post_proxy_authorize
922 with_experimental_modules
924 with_openssl_includes
925 with_openssl_libraries
927 with_rlm_FOO_include_dir
930 ac_precious_vars='build_alias
945 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
947 # Initialize some variables set by options.
949 ac_init_version=false
950 ac_unrecognized_opts=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
961 program_transform_name=s,x,x,
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1254 -site=* | --site=* | --sit=*)
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1310 eval with_$ac_useropt=no ;;
1313 # Obsolete; use --with-x.
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1381 # Be sure to have absolute directory names.
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-largefile omit support for large files
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --enable-strict-dependencies Fail configure on lack of module dependancy.
1564 --enable-developer Enables features of interest to developers.
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1570 --with-system-libtool Use the libtool installed in your system (default=use our own)
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1572 --with-pic try to use only PIC/non-PIC objects [default=use
1574 --with-tags[=TAGS] include additional configurations [automatic]
1575 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1576 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1577 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1578 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1579 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1580 --with-threads Use threads, if available. (default=yes)
1581 --with-vmps Compile in VMPS support. (default=yes)
1582 --with-dhcp Compile in DHCP support. (default=yes)
1583 --with-post-proxy-authorize 1.x compatibility (default=no)
1584 --with-static-modules=QUOTED-MODULE-LIST
1585 --with-modules=QUOTED-MODULE-LIST
1586 --with-experimental-modules Use experimental and unstable modules. (default=no)
1587 --with-openssl Use OpenSSL. (default=yes)
1588 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1589 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1590 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1591 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1592 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1605 CXXCPP C++ preprocessor
1606 F77 Fortran 77 compiler command
1607 FFLAGS Fortran 77 compiler flags
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to the package provider.
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1642 .) # We are building in place.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1676 generated by GNU Autoconf 2.69
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_compile
1727 # ac_fn_cxx_try_compile LINENO
1728 # ----------------------------
1729 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext
1734 if { { ac_try="$ac_compile"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_compile") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest.$ac_objext; then :
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_cxx_try_compile
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } > conftest.i && {
1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1807 ac_fn_c_check_header_mongrel ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if eval \${$3+:} false; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1820 # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1831 ac_header_compiler=no
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1847 ac_header_preproc=no
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1853 # So? What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval "$3=\$ac_header_compiler"
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_mongrel
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_link LINENO
1963 # -----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 rm -f conftest.$ac_objext conftest$ac_exeext
1969 if { { ac_try="$ac_link"
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>conftest.err
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && {
1985 test -z "$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 } && test -s conftest$ac_exeext && {
1988 test "$cross_compiling" = yes ||
1989 test -x conftest$ac_exeext
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1999 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2000 # interfere with the next link command; also delete a directory that is
2001 # left behind by Apple's compiler. We do this before executing the actions.
2002 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_c_try_link
2008 # ac_fn_c_check_func LINENO FUNC VAR
2009 # ----------------------------------
2010 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2011 ac_fn_c_check_func ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2023 #define $2 innocuous_$2
2025 /* System header to define __stub macros and hopefully few prototypes,
2026 which can conflict with char $2 (); below.
2027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2028 <limits.h> exists even on freestanding compilers. */
2031 # include <limits.h>
2033 # include <assert.h>
2038 /* Override any GCC internal prototype to avoid an error.
2039 Use char because int might match the return type of a GCC
2040 builtin and then its argument prototype would still apply. */
2045 /* The GNU C library defines this for functions which it implements
2046 to always fail with ENOSYS. Some functions are actually named
2047 something starting with __ and the normal name is an alias. */
2048 #if defined __stub_$2 || defined __stub___$2
2060 if ac_fn_c_try_link "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext \
2066 conftest$ac_exeext conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 } # ac_fn_c_check_func
2075 # ac_fn_cxx_try_cpp LINENO
2076 # ------------------------
2077 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_cxx_try_cpp ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_cpp conftest.$ac_ext"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } > conftest.i && {
2097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2098 test ! -s conftest.err
2102 $as_echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_cxx_try_cpp
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext conftest$ac_exeext
2119 if { { ac_try="$ac_link"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest$ac_exeext && {
2138 test "$cross_compiling" = yes ||
2139 test -x conftest$ac_exeext
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2148 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150 # interfere with the next link command; also delete a directory that is
2151 # left behind by Apple's compiler. We do this before executing the actions.
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 as_fn_set_status $ac_retval
2156 } # ac_fn_cxx_try_link
2158 # ac_fn_f77_try_compile LINENO
2159 # ----------------------------
2160 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_f77_try_compile ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext
2165 if { { ac_try="$ac_compile"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_compile") 2>conftest.err
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_f77_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest.$ac_objext; then :
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2194 } # ac_fn_f77_try_compile
2196 # ac_fn_f77_try_link LINENO
2197 # -------------------------
2198 # Try to link conftest.$ac_ext, and return whether this succeeded.
2199 ac_fn_f77_try_link ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 rm -f conftest.$ac_objext conftest$ac_exeext
2203 if { { ac_try="$ac_link"
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2209 $as_echo "$ac_try_echo"; } >&5
2210 (eval "$ac_link") 2>conftest.err
2212 if test -s conftest.err; then
2213 grep -v '^ *+' conftest.err >conftest.er1
2214 cat conftest.er1 >&5
2215 mv -f conftest.er1 conftest.err
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && {
2219 test -z "$ac_f77_werror_flag" ||
2220 test ! -s conftest.err
2221 } && test -s conftest$ac_exeext && {
2222 test "$cross_compiling" = yes ||
2223 test -x conftest$ac_exeext
2227 $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2232 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2233 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2234 # interfere with the next link command; also delete a directory that is
2235 # left behind by Apple's compiler. We do this before executing the actions.
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_f77_try_link
2242 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2243 # -------------------------------------------
2244 # Tests whether TYPE exists after having included INCLUDES, setting cache
2245 # variable VAR accordingly.
2246 ac_fn_c_check_type ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if eval \${$3+:} false; then :
2252 $as_echo_n "(cached) " >&6
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 } # ac_fn_c_check_type
2296 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2297 # ---------------------------------------------
2298 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2300 ac_fn_c_check_decl ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 as_decl_name=`echo $2|sed 's/ *(.*//'`
2304 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2306 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2316 #ifndef $as_decl_name
2318 (void) $as_decl_use;
2320 (void) $as_decl_name;
2328 if ac_fn_c_try_compile "$LINENO"; then :
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 } # ac_fn_c_check_decl
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2345 It was created by $as_me, which was
2346 generated by GNU Autoconf 2.69. Invocation command line was
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2367 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2368 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2371 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2372 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2373 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 $as_echo "PATH: $as_dir"
2398 # Keep a trace of the command line.
2399 # Strip out --no-create and --no-recursion so they do not pile up.
2400 # Strip out --silent because we don't want to record it for future runs.
2401 # Also quote any args containing shell meta-characters.
2402 # Make two passes to allow for proper duplicate-argument suppression.
2406 ac_must_keep_next=false
2412 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2414 | -silent | --silent | --silen | --sile | --sil)
2417 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2422 as_fn_append ac_configure_args1 " '$ac_arg'"
2423 if test $ac_must_keep_next = true; then
2424 ac_must_keep_next=false # Got value, back to normal.
2427 *=* | --config-cache | -C | -disable-* | --disable-* \
2428 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2429 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2430 | -with-* | --with-* | -without-* | --without-* | --x)
2431 case "$ac_configure_args0 " in
2432 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2435 -* ) ac_must_keep_next=true ;;
2438 as_fn_append ac_configure_args " '$ac_arg'"
2443 { ac_configure_args0=; unset ac_configure_args0;}
2444 { ac_configure_args1=; unset ac_configure_args1;}
2446 # When interrupted or exit'd, cleanup temporary files, and complete
2447 # config.log. We remove comments because anyway the quotes in there
2448 # would cause problems or look ugly.
2449 # WARNING: Use '\'' to represent an apostrophe within the trap.
2450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2451 trap 'exit_status=$?
2452 # Save into config.log some information that might help in debugging.
2456 $as_echo "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2460 # The following way of writing the cache mishandles newlines in values,
2462 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463 eval ac_val=\$$ac_var
2467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2471 _ | IFS | as_nl) ;; #(
2472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473 *) { eval $ac_var=; unset $ac_var;} ;;
2478 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479 *${as_nl}ac_space=\ *)
2481 "s/'\''/'\''\\\\'\'''\''/g;
2482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492 $as_echo "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2496 for ac_var in $ac_subst_vars
2498 eval ac_val=\$$ac_var
2500 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2502 $as_echo "$ac_var='\''$ac_val'\''"
2506 if test -n "$ac_subst_files"; then
2507 $as_echo "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2511 for ac_var in $ac_subst_files
2513 eval ac_val=\$$ac_var
2515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -s confdefs.h; then
2523 $as_echo "## ----------- ##
2530 test "$ac_signal" != 0 &&
2531 $as_echo "$as_me: caught signal $ac_signal"
2532 $as_echo "$as_me: exit $exit_status"
2534 rm -f core *.core core.conftest.* &&
2535 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2538 for ac_signal in 1 2 13 15; do
2539 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2546 $as_echo "/* confdefs.h */" > confdefs.h
2548 # Predefined preprocessor variables.
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_NAME "$PACKAGE_NAME"
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_STRING "$PACKAGE_STRING"
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_URL "$PACKAGE_URL"
2575 # Let the site file select an alternate cache file if it wants to.
2576 # Prefer an explicitly selected file to automatically selected ones.
2579 if test -n "$CONFIG_SITE"; then
2580 # We do not want a PATH search for config.site.
2581 case $CONFIG_SITE in #((
2582 -*) ac_site_file1=./$CONFIG_SITE;;
2583 */*) ac_site_file1=$CONFIG_SITE;;
2584 *) ac_site_file1=./$CONFIG_SITE;;
2586 elif test "x$prefix" != xNONE; then
2587 ac_site_file1=$prefix/share/config.site
2588 ac_site_file2=$prefix/etc/config.site
2590 ac_site_file1=$ac_default_prefix/share/config.site
2591 ac_site_file2=$ac_default_prefix/etc/config.site
2593 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2595 test "x$ac_site_file" = xNONE && continue
2596 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2598 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2599 sed 's/^/| /' "$ac_site_file" >&5
2601 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "failed to load site script $ac_site_file
2604 See \`config.log' for more details" "$LINENO" 5; }
2608 if test -r "$cache_file"; then
2609 # Some versions of bash will fail to source /dev/null (special files
2610 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2611 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2615 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616 *) . "./$cache_file";;
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2625 # Check that the precious variables saved in the cache have kept the same
2627 ac_cache_corrupted=false
2628 for ac_var in $ac_precious_vars; do
2629 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2630 eval ac_new_set=\$ac_env_${ac_var}_set
2631 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2632 eval ac_new_val=\$ac_env_${ac_var}_value
2633 case $ac_old_set,$ac_new_set in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2637 ac_cache_corrupted=: ;;
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2644 if test "x$ac_old_val" != "x$ac_new_val"; then
2645 # differences in whitespace do not lead to failure.
2646 ac_old_val_w=`echo x $ac_old_val`
2647 ac_new_val_w=`echo x $ac_new_val`
2648 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2650 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2651 ac_cache_corrupted=:
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2654 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2655 eval $ac_var=\$ac_old_val
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2658 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2660 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2663 # Pass precious variables to config.status.
2664 if test "$ac_new_set" = set; then
2666 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2667 *) ac_arg=$ac_var=$ac_new_val ;;
2669 case " $ac_configure_args " in
2670 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2671 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2675 if $ac_cache_corrupted; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2679 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2680 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2682 ## -------------------- ##
2683 ## Main body of script. ##
2684 ## -------------------- ##
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2697 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2698 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2699 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2701 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2702 -v minor="$RADIUSD_MINOR_VERSION" \
2703 -v incrm="$RADIUSD_INCRM_VERSION" \
2704 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2706 RADIUSD_VERSION_STRING=`cat VERSION`
2711 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712 if test -f "$ac_dir/install-sh"; then
2714 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 elif test -f "$ac_dir/install.sh"; then
2718 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 elif test -f "$ac_dir/shtool"; then
2722 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS=$IFS; IFS='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS=$IFS; IFS='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$target_alias" = x; then
2816 ac_cv_target=$ac_cv_host
2818 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2827 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2829 target=$ac_cv_target
2830 ac_save_IFS=$IFS; IFS='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2848 program_prefix=${target_alias}-
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc is apple llvm" >&5
2854 $as_echo_n "checking if cc is apple llvm... " >&6; }
2855 if ! $CC --version 2>&1 | grep -I 'Apple LLVM' > /dev/null; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 # Extract the first word of "sw_vers", so it can be a program name with args.
2859 set dummy sw_vers; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_SW_VERS+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$SW_VERS"; then
2866 ac_cv_prog_SW_VERS="$SW_VERS" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_SW_VERS="yes"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 test -z "$ac_cv_prog_SW_VERS" && ac_cv_prog_SW_VERS="no"
2886 SW_VERS=$ac_cv_prog_SW_VERS
2887 if test -n "$SW_VERS"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SW_VERS" >&5
2889 $as_echo "$SW_VERS" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2896 # Extract the first word of "xcodebuild", so it can be a program name with args.
2897 set dummy xcodebuild; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_XCODEBUILD+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$XCODEBUILD"; then
2904 ac_cv_prog_XCODEBUILD="$XCODEBUILD" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_XCODEBUILD="yes"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 test -z "$ac_cv_prog_XCODEBUILD" && ac_cv_prog_XCODEBUILD="no"
2924 XCODEBUILD=$ac_cv_prog_XCODEBUILD
2925 if test -n "$XCODEBUILD"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
2927 $as_echo "$XCODEBUILD" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test "x$SW_VERS" = "xyes" && test "x$XCODEBUILD" = "xyes"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: determining OSX SDK path" >&5
2937 $as_echo "$as_me: determining OSX SDK path" >&6;}
2938 osx_sdk_path=$(xcodebuild -version -sdk macosx$(sw_vers -productVersion | egrep -o '^[0-9]+\.[0-9]+') Path)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $osx_sdk_path" >&5
2940 $as_echo "$osx_sdk_path" >&6; }
2942 export CFLAGS="$CFLAGS --sysroot=$osx_sdk_path "
2943 export CPPFLAGS="$CPPFLAGS --sysroot=$osx_sdk_path "
2944 export LDFLAGS="$LDFLAGS -L$osx_sdk_path/usr/lib/ "
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_CC+:} false; then :
2964 $as_echo_n "(cached) " >&6
2966 if test -n "$CC"; then
2967 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 if test -n "$CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2999 # Extract the first word of "gcc", so it can be a program name with args.
3000 set dummy gcc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_CC="gcc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029 $as_echo "$ac_ct_CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035 if test "x$ac_ct_CC" = x; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3050 if test -z "$CC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_CC+:} false; then :
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_CC="${ac_tool_prefix}cc"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 # Extract the first word of "cc", so it can be a program name with args.
3093 set dummy cc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3111 ac_prog_rejected=yes
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test $ac_prog_rejected = yes; then
3123 # We found a bogon in the path, so make sure we never use it.
3124 set dummy $ac_cv_prog_CC
3126 if test $# != 0; then
3127 # We chose a different compiler from the bogus one.
3128 # However, it has the same basename, so the bogon will be chosen
3129 # first if we set CC to just the basename; use the full file name.
3131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3147 if test -z "$CC"; then
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in cl.exe
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$CC" && break
3191 if test -z "$CC"; then
3193 for ac_prog in cl.exe
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$ac_ct_CC"; then
3203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_CC="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$ac_ct_CC" && break
3235 if test "x$ac_ct_CC" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3251 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 # Provide some information about the compiler.
3257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3260 for ac_option in --version -v -V -qversion; do
3261 { { ac_try="$ac_compiler $ac_option >&5"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 if test -s conftest.err; then
3272 ... rest of stderr output deleted ...
3273 10q' conftest.err >conftest.er1
3274 cat conftest.er1 >&5
3276 rm -f conftest.er1 conftest.err
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3298 $as_echo_n "checking whether the C compiler works... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file in $ac_files
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 if { { ac_try="$ac_link_default"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360 if test -z "$ac_file"; then :
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error 77 "C compiler cannot create executables
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3375 $as_echo_n "checking for C compiler default output file name... " >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3377 $as_echo "$ac_file" >&6; }
3378 ac_exeext=$ac_cv_exeext
3380 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3381 ac_clean_files=$ac_clean_files_save
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383 $as_echo_n "checking for suffix of executables... " >&6; }
3384 if { { ac_try="$ac_link"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3397 # work properly (i.e., refer to `conftest.exe'), while it won't with
3399 for ac_file in conftest.exe conftest conftest.*; do
3400 test -f "$ac_file" || continue
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 rm -f conftest conftest$ac_cv_exeext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3427 FILE *f = fopen ("conftest.out", "w");
3428 return ferror (f) || fclose (f) != 0;
3434 ac_clean_files="$ac_clean_files conftest.out"
3435 # Check that the compiler produces executables we can run. If not, either
3436 # the compiler is broken, or we cross compile.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3438 $as_echo_n "checking whether we are cross compiling... " >&6; }
3439 if test "$cross_compiling" != yes; then
3440 { { ac_try="$ac_link"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_link") 2>&5
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }
3451 if { ac_try='./conftest$ac_cv_exeext'
3452 { { case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_try") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; }; then
3464 if test "$cross_compiling" = maybe; then
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details" "$LINENO" 5; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3476 $as_echo "$cross_compiling" >&6; }
3478 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3479 ac_clean_files=$ac_clean_files_save
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if ${ac_cv_objext+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try="$ac_compile"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details" "$LINENO" 5; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if ${ac_cv_c_compiler_gnu+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if ${ac_cv_prog_cc_g+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile "$LINENO"; then :
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3619 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3640 if test "$GCC" = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if ${ac_cv_prog_cc_c89+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 ac_cv_prog_cc_c89=no
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 rm -f conftest.$ac_ext
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 ac_cpp='$CXXCPP $CPPFLAGS'
3744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3747 if test -z "$CXX"; then
3748 if test -n "$CCC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_CXX+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CXX"; then
3762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CXX"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3784 $as_echo "$CXX" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$CXX" && break
3794 if test -z "$CXX"; then
3796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3803 $as_echo_n "(cached) " >&6
3805 if test -n "$ac_ct_CXX"; then
3806 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_CXX="$ac_prog"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3826 if test -n "$ac_ct_CXX"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3828 $as_echo "$ac_ct_CXX" >&6; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3835 test -n "$ac_ct_CXX" && break
3838 if test "x$ac_ct_CXX" = x; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3853 # Provide some information about the compiler.
3854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3857 for ac_option in --version -v -V -qversion; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3867 if test -s conftest.err; then
3869 ... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3880 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3897 if ac_fn_cxx_try_compile "$LINENO"; then :
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3907 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3913 ac_test_CXXFLAGS=${CXXFLAGS+set}
3914 ac_save_CXXFLAGS=$CXXFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3916 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3917 if ${ac_cv_prog_cxx_g+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3921 ac_cxx_werror_flag=yes
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_cxx_try_compile "$LINENO"; then :
3936 ac_cv_prog_cxx_g=yes
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 if ac_fn_cxx_try_compile "$LINENO"; then :
3967 ac_cv_prog_cxx_g=yes
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3977 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3978 if test "$ac_test_CXXFLAGS" = set; then
3979 CXXFLAGS=$ac_save_CXXFLAGS
3980 elif test $ac_cv_prog_cxx_g = yes; then
3981 if test "$GXX" = yes; then
3987 if test "$GXX" = yes; then
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4008 # On Suns, sometimes $CPP names a directory.
4009 if test -n "$CPP" && test -d "$CPP"; then
4012 if test -z "$CPP"; then
4013 if ${ac_cv_prog_CPP+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 # Double quotes because CPP needs to be expanded
4017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 for ac_c_preproc_warn_flag in '' yes
4022 # Use a header file that comes with gcc, so configuring glibc
4023 # with a fresh cross-compiler works.
4024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 # <limits.h> exists even on freestanding compilers.
4026 # On the NeXT, cc -E runs the code through the compiler's parser,
4027 # not just through cpp. "Syntax error" is here to catch this case.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4031 # include <limits.h>
4033 # include <assert.h>
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4040 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.i conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <ac_nonexistent.h>
4051 if ac_fn_c_try_cpp "$LINENO"; then :
4052 # Broken: success on invalid input.
4055 # Passes both tests.
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.i conftest.err conftest.$ac_ext
4064 if $ac_preproc_ok; then :
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4077 $as_echo "$CPP" >&6; }
4079 for ac_c_preproc_warn_flag in '' yes
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4090 # include <limits.h>
4092 # include <assert.h>
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: fails on valid input.
4102 rm -f conftest.err conftest.i conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4111 # Broken: success on invalid input.
4114 # Passes both tests.
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.i conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then :
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details" "$LINENO" 5; }
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4140 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4141 if ${ac_cv_path_GREP+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -z "$GREP"; then
4145 ac_path_GREP_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in grep ggrep; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4155 as_fn_executable_p "$ac_path_GREP" || continue
4156 # Check for GNU ac_path_GREP and select it if it is found.
4157 # Check for GNU $ac_path_GREP
4158 case `"$ac_path_GREP" --version 2>&1` in
4160 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163 $as_echo_n 0123456789 >"conftest.in"
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 $as_echo 'GREP' >> "conftest.nl"
4170 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 as_fn_arith $ac_count + 1 && ac_count=$as_val
4173 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_GREP="$ac_path_GREP"
4176 ac_path_GREP_max=$ac_count
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 $ac_path_GREP_found && break 3
4189 if test -z "$ac_cv_path_GREP"; then
4190 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 ac_cv_path_GREP=$GREP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4198 $as_echo "$ac_cv_path_GREP" >&6; }
4199 GREP="$ac_cv_path_GREP"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4203 $as_echo_n "checking for egrep... " >&6; }
4204 if ${ac_cv_path_EGREP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4208 then ac_cv_path_EGREP="$GREP -E"
4210 if test -z "$EGREP"; then
4211 ac_path_EGREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in egrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221 as_fn_executable_p "$ac_path_EGREP" || continue
4222 # Check for GNU ac_path_EGREP and select it if it is found.
4223 # Check for GNU $ac_path_EGREP
4224 case `"$ac_path_EGREP" --version 2>&1` in
4226 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'EGREP' >> "conftest.nl"
4236 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_EGREP="$ac_path_EGREP"
4242 ac_path_EGREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 $ac_path_EGREP_found && break 3
4255 if test -z "$ac_cv_path_EGREP"; then
4256 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 ac_cv_path_EGREP=$EGREP
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4265 $as_echo "$ac_cv_path_EGREP" >&6; }
4266 EGREP="$ac_cv_path_EGREP"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4270 $as_echo_n "checking for ANSI C header files... " >&6; }
4271 if ${ac_cv_header_stdc+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_header_stdc=yes
4292 ac_cv_header_stdc=no
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 $EGREP "memchr" >/dev/null 2>&1; then :
4307 ac_cv_header_stdc=no
4313 if test $ac_cv_header_stdc = yes; then
4314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "free" >/dev/null 2>&1; then :
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332 if test "$cross_compiling" = yes; then :
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4339 #if ((' ' & 0x0FF) == 0x020)
4340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4343 # define ISLOWER(c) \
4344 (('a' <= (c) && (c) <= 'i') \
4345 || ('j' <= (c) && (c) <= 'r') \
4346 || ('s' <= (c) && (c) <= 'z'))
4347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355 for (i = 0; i < 256; i++)
4356 if (XOR (islower (i), ISLOWER (i))
4357 || toupper (i) != TOUPPER (i))
4362 if ac_fn_c_try_run "$LINENO"; then :
4365 ac_cv_header_stdc=no
4367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4368 conftest.$ac_objext conftest.beam conftest.$ac_ext
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4374 $as_echo "$ac_cv_header_stdc" >&6; }
4375 if test $ac_cv_header_stdc = yes; then
4377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383 inttypes.h stdint.h unistd.h
4385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4389 cat >>confdefs.h <<_ACEOF
4390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4400 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4407 if test "$MINIX" = yes; then
4409 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4412 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4415 $as_echo "#define _MINIX 1" >>confdefs.h
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4421 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4422 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4428 # define __EXTENSIONS__ 1
4429 $ac_includes_default
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_cv_safe_to_define___extensions__=yes
4441 ac_cv_safe_to_define___extensions__=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4446 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4447 test $ac_cv_safe_to_define___extensions__ = yes &&
4448 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4450 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4452 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4454 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4456 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4461 if test $ac_cv_c_compiler_gnu = yes; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4463 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4464 if ${ac_cv_prog_gcc_traditional+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_pattern="Autoconf.*'x'"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4475 ac_cv_prog_gcc_traditional=yes
4477 ac_cv_prog_gcc_traditional=no
4482 if test $ac_cv_prog_gcc_traditional = no; then
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4490 ac_cv_prog_gcc_traditional=yes
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4497 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4498 if test $ac_cv_prog_gcc_traditional = yes; then
4499 CC="$CC -traditional"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4504 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4505 if ${ac_cv_prog_suncc+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 cat > conftest.c <<EOF
4513 if { ac_try='${CC-cc} -E conftest.c'
4514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4519 ac_cv_prog_suncc=yes
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4525 $as_echo "$ac_cv_prog_suncc" >&6; }
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_RANLIB+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$RANLIB"; then
4535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 RANLIB=$ac_cv_prog_RANLIB
4555 if test -n "$RANLIB"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4557 $as_echo "$RANLIB" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_RANLIB"; then
4566 ac_ct_RANLIB=$RANLIB
4567 # Extract the first word of "ranlib", so it can be a program name with args.
4568 set dummy ranlib; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_RANLIB"; then
4575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_RANLIB="ranlib"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4595 if test -n "$ac_ct_RANLIB"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4597 $as_echo "$ac_ct_RANLIB" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_RANLIB" = x; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4612 RANLIB=$ac_ct_RANLIB
4615 RANLIB="$ac_cv_prog_RANLIB"
4619 if test "x$GCC" = "xyes"; then
4620 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4623 # Check whether --enable-largefile was given.
4624 if test "${enable_largefile+set}" = set; then :
4625 enableval=$enable_largefile;
4628 if test "$enable_largefile" != no; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4631 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4632 if ${ac_cv_sys_largefile_CC+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 ac_cv_sys_largefile_CC=no
4636 if test "$GCC" != yes; then
4639 # IRIX 6.2 and later do not support large files by default,
4640 # so use the C compiler's -n32 option if that helps.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646 since some C++ compilers masquerading as C compilers
4647 incorrectly reject 9223372036854775807. */
4648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650 && LARGE_OFF_T % 2147483647 == 1)
4660 if ac_fn_c_try_compile "$LINENO"; then :
4663 rm -f core conftest.err conftest.$ac_objext
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_sys_largefile_CC=' -n32'; break
4668 rm -f core conftest.err conftest.$ac_objext
4672 rm -f conftest.$ac_ext
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4676 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4677 if test "$ac_cv_sys_largefile_CC" != no; then
4678 CC=$CC$ac_cv_sys_largefile_CC
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4682 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4683 if ${ac_cv_sys_file_offset_bits+:} false; then :
4684 $as_echo_n "(cached) " >&6
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_sys_file_offset_bits=no; break
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #define _FILE_OFFSET_BITS 64
4713 #include <sys/types.h>
4714 /* Check that off_t can represent 2**63 - 1 correctly.
4715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716 since some C++ compilers masquerading as C compilers
4717 incorrectly reject 9223372036854775807. */
4718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720 && LARGE_OFF_T % 2147483647 == 1)
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_sys_file_offset_bits=64; break
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_sys_file_offset_bits=unknown
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4739 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4740 case $ac_cv_sys_file_offset_bits in #(
4743 cat >>confdefs.h <<_ACEOF
4744 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4749 if test $ac_cv_sys_file_offset_bits = unknown; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4751 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4752 if ${ac_cv_sys_large_files+:} false; then :
4753 $as_echo_n "(cached) " >&6
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <sys/types.h>
4759 /* Check that off_t can represent 2**63 - 1 correctly.
4760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4761 since some C++ compilers masquerading as C compilers
4762 incorrectly reject 9223372036854775807. */
4763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4765 && LARGE_OFF_T % 2147483647 == 1)
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 ac_cv_sys_large_files=no; break
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #define _LARGE_FILES 1
4782 #include <sys/types.h>
4783 /* Check that off_t can represent 2**63 - 1 correctly.
4784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4785 since some C++ compilers masquerading as C compilers
4786 incorrectly reject 9223372036854775807. */
4787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4789 && LARGE_OFF_T % 2147483647 == 1)
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_sys_large_files=1; break
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 ac_cv_sys_large_files=unknown
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4808 $as_echo "$ac_cv_sys_large_files" >&6; }
4809 case $ac_cv_sys_large_files in #(
4812 cat >>confdefs.h <<_ACEOF
4813 #define _LARGE_FILES $ac_cv_sys_large_files
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4826 if ${ac_cv_c_bigendian+:} false; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_cv_c_bigendian=unknown
4830 # See if we're dealing with a universal compiler.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #ifndef __APPLE_CC__
4834 not a universal capable compiler
4839 if ac_fn_c_try_compile "$LINENO"; then :
4841 # Check for potential -arch flags. It is not universal unless
4842 # there are at least two -arch flags with different values.
4845 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4846 if test -n "$ac_prev"; then
4848 i?86 | x86_64 | ppc | ppc64)
4849 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4852 ac_cv_c_bigendian=universal
4858 elif test "x$ac_word" = "x-arch"; then
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_c_bigendian = unknown; then
4865 # See if sys/param.h defines the BYTE_ORDER macro.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <sys/types.h>
4869 #include <sys/param.h>
4874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4875 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 # It does; now see whether it defined to BIG_ENDIAN or not.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 #include <sys/param.h>
4894 #if BYTE_ORDER != BIG_ENDIAN
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_c_bigendian=yes
4905 ac_cv_c_bigendian=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 if test $ac_cv_c_bigendian = unknown; then
4912 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 # It does; now see whether it defined to _BIG_ENDIAN or not.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_c_bigendian=yes
4948 ac_cv_c_bigendian=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $ac_cv_c_bigendian = unknown; then
4955 # Compile a test program.
4956 if test "$cross_compiling" = yes; then :
4957 # Try to guess by grepping values from an object file.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 short int ascii_mm[] =
4961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4962 short int ascii_ii[] =
4963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4964 int use_ascii (int i) {
4965 return ascii_mm[i] + ascii_ii[i];
4967 short int ebcdic_ii[] =
4968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969 short int ebcdic_mm[] =
4970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4971 int use_ebcdic (int i) {
4972 return ebcdic_mm[i] + ebcdic_ii[i];
4979 return use_ascii (foo) == use_ebcdic (foo);
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4986 ac_cv_c_bigendian=yes
4988 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4989 if test "$ac_cv_c_bigendian" = unknown; then
4990 ac_cv_c_bigendian=no
4992 # finding both strings is unlikely to happen, but who knows?
4993 ac_cv_c_bigendian=unknown
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 $ac_includes_default
5006 /* Are we little or big endian? From Harbison&Steele. */
5010 char c[sizeof (long int)];
5013 return u.c[sizeof (long int) - 1] == 1;
5019 if ac_fn_c_try_run "$LINENO"; then :
5020 ac_cv_c_bigendian=no
5022 ac_cv_c_bigendian=yes
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5025 conftest.$ac_objext conftest.beam conftest.$ac_ext
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5031 $as_echo "$ac_cv_c_bigendian" >&6; }
5032 case $ac_cv_c_bigendian in #(
5034 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5044 as_fn_error $? "unknown endianness
5045 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5049 # Extract the first word of "gmake", so it can be a program name with args.
5050 set dummy gmake; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_GMAKE+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$GMAKE"; then
5057 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_GMAKE="yes"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5077 GMAKE=$ac_cv_prog_GMAKE
5078 if test -n "$GMAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5080 $as_echo "$GMAKE" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 if test $GMAKE = no; then
5088 # Extract the first word of "make", so it can be a program name with args.
5089 set dummy make; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_MAKE+:} false; then :
5093 $as_echo_n "(cached) " >&6
5097 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5119 MAKE=$ac_cv_path_MAKE
5120 if test -n "$MAKE"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5122 $as_echo "$MAKE" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5130 # Extract the first word of "gmake", so it can be a program name with args.
5131 set dummy gmake; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_path_MAKE+:} false; then :
5135 $as_echo_n "(cached) " >&6
5139 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5161 MAKE=$ac_cv_path_MAKE
5162 if test -n "$MAKE"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5164 $as_echo "$MAKE" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5173 if test -z "$makever"; then
5174 as_fn_error $? "GNU Make is not installed. Please download and install it
5175 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
5178 # Extract the first word of "git", so it can be a program name with args.
5179 set dummy git; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_GIT+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$GIT"; then
5186 ac_cv_prog_GIT="$GIT" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_GIT="yes"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
5207 if test -n "$GIT"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5209 $as_echo "$GIT" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5218 # Check whether --with-system-libltdl was given.
5219 if test "${with_system_libltdl+set}" = set; then :
5220 withval=$with_system_libltdl;
5222 INCLTDL=-DWITH_SYSTEM_LTDL
5227 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
5229 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
5230 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5238 /* Override any GCC internal prototype to avoid an error.
5239 Use char because int might match the return type of a GCC
5240 builtin and then its argument prototype would still apply. */
5248 return lt_dlinit ();
5253 if ac_fn_c_try_link "$LINENO"; then :
5254 ac_cv_lib_ltdl_lt_dlinit=yes
5256 ac_cv_lib_ltdl_lt_dlinit=no
5258 rm -f core conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260 LIBS=$ac_check_lib_save_LIBS
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5263 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5264 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
5265 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5267 if test x"$enable_ltdl_install" = xno; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
5269 $as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5271 enable_ltdl_install=yes
5276 if test x"$enable_ltdl_install" = x"yes"; then
5277 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5278 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5279 LTDLINCL='-I${top_srcdir}/''libltdl'
5281 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5285 # For backwards non-gettext consistent compatibility...
5289 if test x"$enable_ltdl_install" = x"yes"; then
5290 LTDL_SUBDIRS=libltdl
5299 # Check whether --enable-shared was given.
5300 if test "${enable_shared+set}" = set; then :
5301 enableval=$enable_shared; p=${PACKAGE-default}
5303 yes) enable_shared=yes ;;
5304 no) enable_shared=no ;;
5307 # Look at the argument we got. We use all the common list separators.
5308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5309 for pkg in $enableval; do
5311 if test "X$pkg" = "X$p"; then
5323 # Check whether --enable-static was given.
5324 if test "${enable_static+set}" = set; then :
5325 enableval=$enable_static; p=${PACKAGE-default}
5327 yes) enable_static=yes ;;
5328 no) enable_static=no ;;
5331 # Look at the argument we got. We use all the common list separators.
5332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5333 for pkg in $enableval; do
5335 if test "X$pkg" = "X$p"; then
5347 # Check whether --enable-fast-install was given.
5348 if test "${enable_fast_install+set}" = set; then :
5349 enableval=$enable_fast_install; p=${PACKAGE-default}
5351 yes) enable_fast_install=yes ;;
5352 no) enable_fast_install=no ;;
5354 enable_fast_install=no
5355 # Look at the argument we got. We use all the common list separators.
5356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5357 for pkg in $enableval; do
5359 if test "X$pkg" = "X$p"; then
5360 enable_fast_install=yes
5367 enable_fast_install=yes
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5372 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5373 if ${lt_cv_path_SED+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 # Loop through the user's path and test for sed and gsed.
5377 # Then use that list of sed's as ones to test for truncation.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for lt_ac_prog in sed gsed; do
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5386 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5394 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5395 # along with /bin/sed that truncates output.
5396 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5397 test ! -f $lt_ac_sed && continue
5398 cat /dev/null > conftest.in
5400 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5401 # Check for GNU sed and select it if it is found.
5402 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5403 lt_cv_path_SED=$lt_ac_sed
5407 cat conftest.in conftest.in >conftest.tmp
5408 mv conftest.tmp conftest.in
5409 cp conftest.in conftest.nl
5411 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5412 cmp -s conftest.out conftest.nl || break
5413 # 10000 chars as input seems more than enough
5414 test $lt_ac_count -gt 10 && break
5415 lt_ac_count=`expr $lt_ac_count + 1`
5416 if test $lt_ac_count -gt $lt_ac_max; then
5417 lt_ac_max=$lt_ac_count
5418 lt_cv_path_SED=$lt_ac_sed
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5428 $as_echo "$SED" >&6; }
5431 # Check whether --with-gnu-ld was given.
5432 if test "${with_gnu_ld+set}" = set; then :
5433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5439 if test "$GCC" = yes; then
5440 # Check if gcc -print-prog-name=ld gives a path.
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5442 $as_echo_n "checking for ld used by $CC... " >&6; }
5445 # gcc leaves a trailing carriage return which upsets mingw
5446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5451 # Accept absolute paths.
5453 re_direlt='/[^/][^/]*/\.\./'
5454 # Canonicalize the pathname of ld
5455 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5457 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5459 test -z "$LD" && LD="$ac_prog"
5462 # If it fails, then pretend we aren't using GCC.
5466 # If it is relative, then search for the first ld in PATH.
5470 elif test "$with_gnu_ld" = yes; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5472 $as_echo_n "checking for GNU ld... " >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5475 $as_echo_n "checking for non-GNU ld... " >&6; }
5477 if ${lt_cv_path_LD+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -z "$LD"; then
5481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482 for ac_dir in $PATH; do
5484 test -z "$ac_dir" && ac_dir=.
5485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5486 lt_cv_path_LD="$ac_dir/$ac_prog"
5487 # Check to see if the program is GNU ld. I'd rather use --version,
5488 # but apparently some variants of GNU ld only accept -v.
5489 # Break only if it was the GNU/non-GNU ld that we prefer.
5490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5491 *GNU* | *'with BFD'*)
5492 test "$with_gnu_ld" != no && break
5495 test "$with_gnu_ld" != yes && break
5502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5507 if test -n "$LD"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5509 $as_echo "$LD" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5516 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5517 if ${lt_cv_prog_gnu_ld+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5521 case `$LD -v 2>&1 </dev/null` in
5522 *GNU* | *'with BFD'*)
5523 lt_cv_prog_gnu_ld=yes
5526 lt_cv_prog_gnu_ld=no
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5531 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5532 with_gnu_ld=$lt_cv_prog_gnu_ld
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5536 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5537 if ${lt_cv_ld_reload_flag+:} false; then :
5538 $as_echo_n "(cached) " >&6
5540 lt_cv_ld_reload_flag='-r'
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5543 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5544 reload_flag=$lt_cv_ld_reload_flag
5545 case $reload_flag in
5547 *) reload_flag=" $reload_flag" ;;
5549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5552 if test "$GCC" = yes; then
5553 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5561 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5562 if ${lt_cv_path_NM+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$NM"; then
5566 # Let the user override the test.
5569 lt_nm_to_check="${ac_tool_prefix}nm"
5570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5571 lt_nm_to_check="$lt_nm_to_check nm"
5573 for lt_tmp_nm in $lt_nm_to_check; do
5574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5577 test -z "$ac_dir" && ac_dir=.
5578 tmp_nm="$ac_dir/$lt_tmp_nm"
5579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5580 # Check to see if the nm accepts a BSD-compat flag.
5581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5582 # nm: unknown option "B" ignored
5583 # Tru64's nm complains that /dev/null is an invalid object file
5584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5585 */dev/null* | *'Invalid file or object type'*)
5586 lt_cv_path_NM="$tmp_nm -B"
5590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5592 lt_cv_path_NM="$tmp_nm -p"
5596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5597 continue # so that we can try to find one that supports BSD flags
5606 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5610 $as_echo "$lt_cv_path_NM" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5614 $as_echo_n "checking whether ln -s works... " >&6; }
5616 if test "$LN_S" = "ln -s"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5621 $as_echo "no, using $LN_S" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5625 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5626 if ${lt_cv_deplibs_check_method+:} false; then :
5627 $as_echo_n "(cached) " >&6
5629 lt_cv_file_magic_cmd='$MAGIC_CMD'
5630 lt_cv_file_magic_test_file=
5631 lt_cv_deplibs_check_method='unknown'
5632 # Need to set the preceding variable on all platforms that support
5633 # interlibrary dependencies.
5634 # 'none' -- dependencies not supported.
5635 # `unknown' -- same as none, but documents that we really don't know.
5636 # 'pass_all' -- all dependencies passed with no checks.
5637 # 'test_compile' -- check by making test program.
5638 # 'file_magic [[regex]]' -- check by looking for files in library path
5639 # which responds to the $file_magic_cmd with a given extended regex.
5640 # If you have `file' or equivalent on your system and you're not sure
5641 # whether `pass_all' will *always* work, you probably want this one.
5645 lt_cv_deplibs_check_method=pass_all
5649 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5654 lt_cv_file_magic_cmd='/usr/bin/file -L'
5655 lt_cv_file_magic_test_file=/shlib/libc.so
5659 # func_win32_libid is a shell function defined in ltmain.sh
5660 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5661 lt_cv_file_magic_cmd='func_win32_libid'
5665 # Base MSYS/MinGW do not provide the 'file' command needed by
5666 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5667 # unless we find 'file', for example because we are cross-compiling.
5668 if ( file / ) >/dev/null 2>&1; then
5669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670 lt_cv_file_magic_cmd='func_win32_libid'
5672 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5673 lt_cv_file_magic_cmd='$OBJDUMP -f'
5677 darwin* | rhapsody*)
5678 lt_cv_deplibs_check_method=pass_all
5681 freebsd* | dragonfly*)
5682 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5685 # Not sure whether the presence of OpenBSD here was a mistake.
5686 # Let's accept both of them until this is cleared up.
5687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5688 lt_cv_file_magic_cmd=/usr/bin/file
5689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5693 lt_cv_deplibs_check_method=pass_all
5698 lt_cv_deplibs_check_method=pass_all
5701 hpux10.20* | hpux11*)
5702 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5709 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]'
5710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5724 irix5* | irix6* | nonstopux*)
5726 *-32|*"-32 ") libmagic=32-bit;;
5727 *-n32|*"-n32 ") libmagic=N32;;
5728 *-64|*"-64 ") libmagic=64-bit;;
5729 *) libmagic=never-match;;
5731 lt_cv_deplibs_check_method=pass_all
5734 # This must be Linux ELF.
5735 linux* | k*bsd*-gnu)
5736 lt_cv_deplibs_check_method=pass_all
5739 netbsd* | netbsdelf*-gnu)
5740 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5749 lt_cv_file_magic_cmd=/usr/bin/file
5750 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5754 lt_cv_deplibs_check_method=unknown
5758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5765 osf3* | osf4* | osf5*)
5766 lt_cv_deplibs_check_method=pass_all
5770 lt_cv_deplibs_check_method=pass_all
5774 lt_cv_deplibs_check_method=pass_all
5778 case $host_vendor in
5780 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]'
5781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5784 lt_cv_deplibs_check_method=pass_all
5787 lt_cv_file_magic_cmd='/bin/file'
5788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5791 lt_cv_file_magic_cmd='/bin/file'
5792 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5793 lt_cv_file_magic_test_file=/lib/libc.so
5796 lt_cv_deplibs_check_method=pass_all
5799 lt_cv_deplibs_check_method=pass_all
5804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5805 lt_cv_deplibs_check_method=pass_all
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5811 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5819 # If no C compiler was specified, use CC.
5822 # If no C compiler flags were specified, use CFLAGS.
5823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5825 # Allow CC to be a program name with arguments.
5828 # Check whether --enable-libtool-lock was given.
5829 if test "${enable_libtool_lock+set}" = set; then :
5830 enableval=$enable_libtool_lock;
5833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5835 # Some flags need to be propagated to the compiler or linker for good
5839 # Find out which ABI we are using.
5840 echo 'int i;' > conftest.$ac_ext
5841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5842 (eval $ac_compile) 2>&5
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; }; then
5846 case `/usr/bin/file conftest.$ac_objext` in
5858 # Find out which ABI we are using.
5859 echo '#line 5859 "configure"' > conftest.$ac_ext
5860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5861 (eval $ac_compile) 2>&5
5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864 test $ac_status = 0; }; then
5865 if test "$lt_cv_prog_gnu_ld" = yes; then
5866 case `/usr/bin/file conftest.$ac_objext` in
5868 LD="${LD-ld} -melf32bsmip"
5871 LD="${LD-ld} -melf32bmipn32"
5874 LD="${LD-ld} -melf64bmip"
5878 case `/usr/bin/file conftest.$ac_objext` in
5894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5895 s390*-*linux*|sparc*-*linux*)
5896 # Find out which ABI we are using.
5897 echo 'int i;' > conftest.$ac_ext
5898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5899 (eval $ac_compile) 2>&5
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }; then
5903 case `/usr/bin/file conftest.o` in
5906 x86_64-*kfreebsd*-gnu)
5907 LD="${LD-ld} -m elf_i386_fbsd"
5910 LD="${LD-ld} -m elf_i386"
5912 ppc64-*linux*|powerpc64-*linux*)
5913 LD="${LD-ld} -m elf32ppclinux"
5916 LD="${LD-ld} -m elf_s390"
5919 LD="${LD-ld} -m elf32_sparc"
5925 x86_64-*kfreebsd*-gnu)
5926 LD="${LD-ld} -m elf_x86_64_fbsd"
5929 LD="${LD-ld} -m elf_x86_64"
5931 ppc*-*linux*|powerpc*-*linux*)
5932 LD="${LD-ld} -m elf64ppc"
5935 LD="${LD-ld} -m elf64_s390"
5938 LD="${LD-ld} -m elf64_sparc"
5948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5949 SAVE_CFLAGS="$CFLAGS"
5950 CFLAGS="$CFLAGS -belf"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5953 if ${lt_cv_cc_needs_belf+:} false; then :
5954 $as_echo_n "(cached) " >&6
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5973 if ac_fn_c_try_link "$LINENO"; then :
5974 lt_cv_cc_needs_belf=yes
5976 lt_cv_cc_needs_belf=no
5978 rm -f core conftest.err conftest.$ac_objext \
5979 conftest$ac_exeext conftest.$ac_ext
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5989 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5990 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5991 CFLAGS="$SAVE_CFLAGS"
5995 # Find out which ABI we are using.
5996 echo 'int i;' > conftest.$ac_ext
5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5998 (eval $ac_compile) 2>&5
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }; then
6002 case `/usr/bin/file conftest.o` in
6004 case $lt_cv_prog_gnu_ld in
6005 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6007 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6021 need_locks="$enable_libtool_lock"
6024 for ac_header in dlfcn.h
6026 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6027 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_DLFCN_H 1
6038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6040 (test "X$CXX" != "Xg++"))) ; then
6042 ac_cpp='$CXXCPP $CPPFLAGS'
6043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6048 if test -z "$CXXCPP"; then
6049 if ${ac_cv_prog_CXXCPP+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 # Double quotes because CXXCPP needs to be expanded
6053 for CXXCPP in "$CXX -E" "/lib/cpp"
6056 for ac_cxx_preproc_warn_flag in '' yes
6058 # Use a header file that comes with gcc, so configuring glibc
6059 # with a fresh cross-compiler works.
6060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6061 # <limits.h> exists even on freestanding compilers.
6062 # On the NeXT, cc -E runs the code through the compiler's parser,
6063 # not just through cpp. "Syntax error" is here to catch this case.
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6067 # include <limits.h>
6069 # include <assert.h>
6073 if ac_fn_cxx_try_cpp "$LINENO"; then :
6076 # Broken: fails on valid input.
6079 rm -f conftest.err conftest.i conftest.$ac_ext
6081 # OK, works on sane cases. Now check whether nonexistent headers
6082 # can be detected and how.
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <ac_nonexistent.h>
6087 if ac_fn_cxx_try_cpp "$LINENO"; then :
6088 # Broken: success on invalid input.
6091 # Passes both tests.
6095 rm -f conftest.err conftest.i conftest.$ac_ext
6098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6099 rm -f conftest.i conftest.err conftest.$ac_ext
6100 if $ac_preproc_ok; then :
6105 ac_cv_prog_CXXCPP=$CXXCPP
6108 CXXCPP=$ac_cv_prog_CXXCPP
6110 ac_cv_prog_CXXCPP=$CXXCPP
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6113 $as_echo "$CXXCPP" >&6; }
6115 for ac_cxx_preproc_warn_flag in '' yes
6117 # Use a header file that comes with gcc, so configuring glibc
6118 # with a fresh cross-compiler works.
6119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6120 # <limits.h> exists even on freestanding compilers.
6121 # On the NeXT, cc -E runs the code through the compiler's parser,
6122 # not just through cpp. "Syntax error" is here to catch this case.
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 # include <limits.h>
6128 # include <assert.h>
6132 if ac_fn_cxx_try_cpp "$LINENO"; then :
6135 # Broken: fails on valid input.
6138 rm -f conftest.err conftest.i conftest.$ac_ext
6140 # OK, works on sane cases. Now check whether nonexistent headers
6141 # can be detected and how.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <ac_nonexistent.h>
6146 if ac_fn_cxx_try_cpp "$LINENO"; then :
6147 # Broken: success on invalid input.
6150 # Passes both tests.
6154 rm -f conftest.err conftest.i conftest.$ac_ext
6157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.i conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok; then :
6162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6164 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6165 See \`config.log' for more details" "$LINENO" 5; }
6169 ac_cpp='$CXXCPP $CPPFLAGS'
6170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6178 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6179 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6181 if test -n "$ac_tool_prefix"; then
6182 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
6184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_F77+:} false; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$F77"; then
6192 ac_cv_prog_F77="$F77" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 if test -n "$F77"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6214 $as_echo "$F77" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6221 test -n "$F77" && break
6224 if test -z "$F77"; then
6226 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
6228 # Extract the first word of "$ac_prog", so it can be a program name with args.
6229 set dummy $ac_prog; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6233 $as_echo_n "(cached) " >&6
6235 if test -n "$ac_ct_F77"; then
6236 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_F77="$ac_prog"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6256 if test -n "$ac_ct_F77"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6258 $as_echo "$ac_ct_F77" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6265 test -n "$ac_ct_F77" && break
6268 if test "x$ac_ct_F77" = x; then
6271 case $cross_compiling:$ac_tool_warned in
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6282 # Provide some information about the compiler.
6283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6286 for ac_option in --version -v -V -qversion; do
6287 { { ac_try="$ac_compiler $ac_option >&5"
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6293 $as_echo "$ac_try_echo"; } >&5
6294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6296 if test -s conftest.err; then
6298 ... rest of stderr output deleted ...
6299 10q' conftest.err >conftest.er1
6300 cat conftest.er1 >&5
6302 rm -f conftest.er1 conftest.err
6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; }
6308 # If we don't use `.F' as extension, the preprocessor is not run on the
6309 # input file. (Note that this only needs to work for GNU compilers.)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6313 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6314 if ${ac_cv_f77_compiler_gnu+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 cat > conftest.$ac_ext <<_ACEOF
6325 if ac_fn_f77_try_compile "$LINENO"; then :
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6335 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6337 ac_test_FFLAGS=${FFLAGS+set}
6338 ac_save_FFLAGS=$FFLAGS
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6341 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6342 if ${ac_cv_prog_f77_g+:} false; then :
6343 $as_echo_n "(cached) " >&6
6346 cat > conftest.$ac_ext <<_ACEOF
6351 if ac_fn_f77_try_compile "$LINENO"; then :
6352 ac_cv_prog_f77_g=yes
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6360 $as_echo "$ac_cv_prog_f77_g" >&6; }
6361 if test "$ac_test_FFLAGS" = set; then
6362 FFLAGS=$ac_save_FFLAGS
6363 elif test $ac_cv_prog_f77_g = yes; then
6364 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6370 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6377 if test $ac_compiler_gnu = yes; then
6383 ac_cpp='$CPP $CPPFLAGS'
6384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6391 # find the maximum length of command line arguments
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6393 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6394 if ${lt_cv_sys_max_cmd_len+:} false; then :
6395 $as_echo_n "(cached) " >&6
6402 # On DJGPP, this test can blow up pretty badly due to problems in libc
6403 # (any single argument exceeding 2000 bytes causes a buffer overrun
6404 # during glob expansion). Even if it were fixed, the result of this
6405 # check would be larger than it should be.
6406 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6410 # Under GNU Hurd, this test is not required because there is
6411 # no limit to the length of command line arguments.
6412 # Libtool will interpret -1 as no limit whatsoever
6413 lt_cv_sys_max_cmd_len=-1;
6417 # On Win9x/ME, this test blows up -- it succeeds, but takes
6418 # about 5 minutes as the teststring grows exponentially.
6419 # Worse, since 9x/ME are not pre-emptively multitasking,
6420 # you end up with a "frozen" computer, even though with patience
6421 # the test eventually succeeds (with a max line length of 256k).
6422 # Instead, let's just punt: use the minimum linelength reported by
6423 # all of the supported platforms: 8192 (on NT/2K/XP).
6424 lt_cv_sys_max_cmd_len=8192;
6428 # On AmigaOS with pdksh, this test takes hours, literally.
6429 # So we just punt and use a minimum line length of 8192.
6430 lt_cv_sys_max_cmd_len=8192;
6433 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6434 # This has been around since 386BSD, at least. Likely further.
6435 if test -x /sbin/sysctl; then
6436 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6437 elif test -x /usr/sbin/sysctl; then
6438 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6440 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6442 # And add a safety zone
6443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6448 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6449 lt_cv_sys_max_cmd_len=196608
6453 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6454 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6455 # nice to cause kernel panics so lets avoid the loop below.
6456 # First set a reasonable default.
6457 lt_cv_sys_max_cmd_len=16384
6459 if test -x /sbin/sysconfig; then
6460 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6461 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6466 lt_cv_sys_max_cmd_len=102400
6468 sysv5* | sco5v6* | sysv4.2uw2*)
6469 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6470 if test -n "$kargmax"; then
6471 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6473 lt_cv_sys_max_cmd_len=32768
6477 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6478 if test -n "$lt_cv_sys_max_cmd_len"; then
6479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6482 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6483 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6484 = "XX$teststring") >/dev/null 2>&1 &&
6485 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6486 lt_cv_sys_max_cmd_len=$new_result &&
6487 test $i != 17 # 1/2 MB should be enough
6490 teststring=$teststring$teststring
6493 # Add a significant safety factor because C++ compilers can tack on massive
6494 # amounts of additional arguments before passing them to the linker.
6495 # It appears as though 1/2 is a usable value.
6496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6503 if test -n $lt_cv_sys_max_cmd_len ; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6505 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6508 $as_echo "none" >&6; }
6515 # Check for command to grab the raw symbol name followed by C symbol from nm.
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6517 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6518 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6519 $as_echo_n "(cached) " >&6
6522 # These are sane defaults that work on at least a few old systems.
6523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6525 # Character class describing NM global symbol codes.
6526 symcode='[BCDEGRST]'
6528 # Regexp to match symbols that can be accessed directly from C.
6529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531 # Transform an extracted symbol line into a proper C declaration
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 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'"
6537 # Define system-specific variables.
6542 cygwin* | mingw* | pw32*)
6543 symcode='[ABCDGISTW]'
6545 hpux*) # Its linker distinguishes data from code symbols
6546 if test "$host_cpu" = ia64; then
6547 symcode='[ABCDEGRST]'
6549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550 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'"
6552 linux* | k*bsd*-gnu)
6553 if test "$host_cpu" = ia64; then
6554 symcode='[ABCDGIRSTW]'
6555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556 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'"
6560 symcode='[BCDEGRST]'
6563 symcode='[BCDEGQRST]'
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6582 # Handle CRLF in mingw tool chain
6586 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6590 # If we're using GNU nm, then use its standard symbol codes.
6591 case `$NM -V 2>&1` in
6592 *GNU* | *'with BFD'*)
6593 symcode='[ABCDGIRSTW]' ;;
6596 # Try without a prefix undercore, then with it.
6597 for ac_symprfx in "" "_"; do
6599 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6600 symxfrm="\\1 $ac_symprfx\\2 \\2"
6602 # Write the raw and C identifiers.
6603 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6605 # Check to see that the pipe works correctly.
6609 cat > conftest.$ac_ext <<EOF
6614 void nm_test_func(){}
6618 int main(){nm_test_var='a';nm_test_func();return(0);}
6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6622 (eval $ac_compile) 2>&5
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 # Now try to grab the symbols.
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; } && test -s "$nlist"; then
6633 # Try sorting and uniquifying the output.
6634 if sort "$nlist" | uniq > "$nlist"T; then
6635 mv -f "$nlist"T "$nlist"
6640 # Make sure that we snagged all the symbols we need.
6641 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6642 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6643 cat <<EOF > conftest.$ac_ext
6649 # Now generate the symbol file.
6650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6652 cat <<EOF >> conftest.$ac_ext
6653 #if defined (__STDC__) && __STDC__
6654 # define lt_ptr_t void *
6656 # define lt_ptr_t char *
6660 /* The mapping between symbol names and symbols. */
6665 lt_preloaded_symbols[] =
6668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6669 cat <<\EOF >> conftest.$ac_ext
6677 # Now try linking the two files.
6678 mv conftest.$ac_objext conftstm.$ac_objext
6679 lt_save_LIBS="$LIBS"
6680 lt_save_CFLAGS="$CFLAGS"
6681 LIBS="conftstm.$ac_objext"
6682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6684 (eval $ac_link) 2>&5
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6690 LIBS="$lt_save_LIBS"
6691 CFLAGS="$lt_save_CFLAGS"
6693 echo "cannot find nm_test_func in $nlist" >&5
6696 echo "cannot find nm_test_var in $nlist" >&5
6699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6702 echo "$progname: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 rm -rf conftest* conftst*
6707 # Do not use the global_symbol_pipe unless it works.
6708 if test "$pipe_works" = yes; then
6711 lt_cv_sys_global_symbol_pipe=
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718 lt_cv_sys_global_symbol_to_cdecl=
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6722 $as_echo "failed" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6725 $as_echo "ok" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6729 $as_echo_n "checking for objdir... " >&6; }
6730 if ${lt_cv_objdir+:} false; then :
6731 $as_echo_n "(cached) " >&6
6733 rm -f .libs 2>/dev/null
6734 mkdir .libs 2>/dev/null
6735 if test -d .libs; then
6738 # MS-DOS does not allow filenames that begin with a dot.
6741 rmdir .libs 2>/dev/null
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6744 $as_echo "$lt_cv_objdir" >&6; }
6745 objdir=$lt_cv_objdir
6753 # AIX sometimes has problems with the GCC collect2 program. For some
6754 # reason, if we set the COLLECT_NAMES environment variable, the problems
6755 # vanish in a puff of smoke.
6756 if test "X${COLLECT_NAMES+set}" != Xset; then
6758 export COLLECT_NAMES
6763 # Sed substitution that helps us do robust quoting. It backslashifies
6764 # metacharacters that are still active within double-quoted strings.
6765 Xsed='sed -e 1s/^X//'
6766 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6768 # Same as above, but do not quote variable references.
6769 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6771 # Sed substitution to delay expansion of an escaped shell variable in a
6772 # double_quote_subst'ed string.
6773 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6775 # Sed substitution to avoid accidental globbing in evaled expressions
6776 no_glob_subst='s/\*/\\\*/g'
6782 default_ofile=libtool
6783 can_build_shared=yes
6785 # All known linkers require a `.a' archive for static linking (except MSVC,
6786 # which needs '.lib').
6788 ltmain="$ac_aux_dir/ltmain.sh"
6789 ofile="$default_ofile"
6790 with_gnu_ld="$lt_cv_prog_gnu_ld"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ar; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_AR+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$AR"; then
6801 ac_cv_prog_AR="$AR" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_AR="${ac_tool_prefix}ar"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 if test -n "$AR"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6823 $as_echo "$AR" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6831 if test -z "$ac_cv_prog_AR"; then
6833 # Extract the first word of "ar", so it can be a program name with args.
6834 set dummy ar; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$ac_ct_AR"; then
6841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_AR="ar"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6861 if test -n "$ac_ct_AR"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6863 $as_echo "$ac_ct_AR" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 if test "x$ac_ct_AR" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_RANLIB+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$RANLIB"; then
6893 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 RANLIB=$ac_cv_prog_RANLIB
6913 if test -n "$RANLIB"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6915 $as_echo "$RANLIB" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6923 if test -z "$ac_cv_prog_RANLIB"; then
6924 ac_ct_RANLIB=$RANLIB
6925 # Extract the first word of "ranlib", so it can be a program name with args.
6926 set dummy ranlib; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$ac_ct_RANLIB"; then
6933 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_RANLIB="ranlib"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6953 if test -n "$ac_ct_RANLIB"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6955 $as_echo "$ac_ct_RANLIB" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 if test "x$ac_ct_RANLIB" = x; then
6964 case $cross_compiling:$ac_tool_warned in
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6970 RANLIB=$ac_ct_RANLIB
6973 RANLIB="$ac_cv_prog_RANLIB"
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}strip; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_STRIP+:} false; then :
6982 $as_echo_n "(cached) " >&6
6984 if test -n "$STRIP"; then
6985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 STRIP=$ac_cv_prog_STRIP
7005 if test -n "$STRIP"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7007 $as_echo "$STRIP" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7015 if test -z "$ac_cv_prog_STRIP"; then
7017 # Extract the first word of "strip", so it can be a program name with args.
7018 set dummy strip; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$ac_ct_STRIP"; then
7025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_STRIP="strip"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7045 if test -n "$ac_ct_STRIP"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7047 $as_echo "$ac_ct_STRIP" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 if test "x$ac_ct_STRIP" = x; then
7056 case $cross_compiling:$ac_tool_warned in
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7065 STRIP="$ac_cv_prog_STRIP"
7070 old_CFLAGS="$CFLAGS"
7072 # Set sane defaults for various variables
7073 test -z "$AR" && AR=ar
7074 test -z "$AR_FLAGS" && AR_FLAGS=cru
7075 test -z "$AS" && AS=as
7076 test -z "$CC" && CC=cc
7077 test -z "$LTCC" && LTCC=$CC
7078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7079 test -z "$DLLTOOL" && DLLTOOL=dlltool
7080 test -z "$LD" && LD=ld
7081 test -z "$LN_S" && LN_S="ln -s"
7082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7083 test -z "$NM" && NM=nm
7084 test -z "$SED" && SED=sed
7085 test -z "$OBJDUMP" && OBJDUMP=objdump
7086 test -z "$RANLIB" && RANLIB=:
7087 test -z "$STRIP" && STRIP=:
7088 test -z "$ac_objext" && ac_objext=o
7090 # Determine commands to create old-style static archives.
7091 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7092 old_postinstall_cmds='chmod 644 $oldlib'
7093 old_postuninstall_cmds=
7095 if test -n "$RANLIB"; then
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7101 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7104 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7107 for cc_temp in $compiler""; do
7109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7118 # Only perform the check for file, if the check method requires it
7119 case $deplibs_check_method in
7121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7123 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7124 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7125 $as_echo_n "(cached) " >&6
7129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7132 lt_save_MAGIC_CMD="$MAGIC_CMD"
7133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7135 for ac_dir in $ac_dummy; do
7137 test -z "$ac_dir" && ac_dir=.
7138 if test -f $ac_dir/${ac_tool_prefix}file; then
7139 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7140 if test -n "$file_magic_test_file"; then
7141 case $deplibs_check_method in
7143 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7146 $EGREP "$file_magic_regex" > /dev/null; then
7151 *** Warning: the command libtool uses to detect shared libraries,
7152 *** $file_magic_cmd, produces output that libtool cannot recognize.
7153 *** The result is that libtool may fail to recognize shared libraries
7154 *** as such. This will affect the creation of libtool libraries that
7155 *** depend on shared libraries, but programs linked with such libtool
7156 *** libraries will work regardless of this problem. Nevertheless, you
7157 *** may want to report the problem to your system manager and/or to
7158 *** bug-libtool@gnu.org
7168 MAGIC_CMD="$lt_save_MAGIC_CMD"
7173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7174 if test -n "$MAGIC_CMD"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7176 $as_echo "$MAGIC_CMD" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7182 if test -z "$lt_cv_path_MAGIC_CMD"; then
7183 if test -n "$ac_tool_prefix"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7185 $as_echo_n "checking for file... " >&6; }
7186 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7187 $as_echo_n "(cached) " >&6
7191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7194 lt_save_MAGIC_CMD="$MAGIC_CMD"
7195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7197 for ac_dir in $ac_dummy; do
7199 test -z "$ac_dir" && ac_dir=.
7200 if test -f $ac_dir/file; then
7201 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7202 if test -n "$file_magic_test_file"; then
7203 case $deplibs_check_method in
7205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7208 $EGREP "$file_magic_regex" > /dev/null; then
7213 *** Warning: the command libtool uses to detect shared libraries,
7214 *** $file_magic_cmd, produces output that libtool cannot recognize.
7215 *** The result is that libtool may fail to recognize shared libraries
7216 *** as such. This will affect the creation of libtool libraries that
7217 *** depend on shared libraries, but programs linked with such libtool
7218 *** libraries will work regardless of this problem. Nevertheless, you
7219 *** may want to report the problem to your system manager and/or to
7220 *** bug-libtool@gnu.org
7230 MAGIC_CMD="$lt_save_MAGIC_CMD"
7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236 if test -n "$MAGIC_CMD"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7238 $as_echo "$MAGIC_CMD" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7255 rhapsody* | darwin*)
7256 if test -n "$ac_tool_prefix"; then
7257 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7258 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$DSYMUTIL"; then
7265 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7285 if test -n "$DSYMUTIL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7287 $as_echo "$DSYMUTIL" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7295 if test -z "$ac_cv_prog_DSYMUTIL"; then
7296 ac_ct_DSYMUTIL=$DSYMUTIL
7297 # Extract the first word of "dsymutil", so it can be a program name with args.
7298 set dummy dsymutil; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 if test -n "$ac_ct_DSYMUTIL"; then
7305 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7325 if test -n "$ac_ct_DSYMUTIL"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7327 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7333 if test "x$ac_ct_DSYMUTIL" = x; then
7336 case $cross_compiling:$ac_tool_warned in
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340 ac_tool_warned=yes ;;
7342 DSYMUTIL=$ac_ct_DSYMUTIL
7345 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_NMEDIT+:} false; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$NMEDIT"; then
7357 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 NMEDIT=$ac_cv_prog_NMEDIT
7377 if test -n "$NMEDIT"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7379 $as_echo "$NMEDIT" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7387 if test -z "$ac_cv_prog_NMEDIT"; then
7388 ac_ct_NMEDIT=$NMEDIT
7389 # Extract the first word of "nmedit", so it can be a program name with args.
7390 set dummy nmedit; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$ac_ct_NMEDIT"; then
7397 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7417 if test -n "$ac_ct_NMEDIT"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7419 $as_echo "$ac_ct_NMEDIT" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7425 if test "x$ac_ct_NMEDIT" = x; then
7428 case $cross_compiling:$ac_tool_warned in
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7434 NMEDIT=$ac_ct_NMEDIT
7437 NMEDIT="$ac_cv_prog_NMEDIT"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 lt_cv_apple_cc_single_mod=no
7447 if test -z "${LT_MULTI_MODULE}"; then
7448 # By default we will add the -single_module flag. You can override
7449 # by either setting the environment variable LT_MULTI_MODULE
7450 # non-empty at configure time, or by adding -multi_module to the
7452 echo "int foo(void){return 1;}" > conftest.c
7453 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7454 -dynamiclib ${wl}-single_module conftest.c
7455 if test -f libconftest.dylib; then
7456 lt_cv_apple_cc_single_mod=yes
7457 rm -rf libconftest.dylib*
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7466 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 lt_cv_ld_exported_symbols_list=no
7470 save_LDFLAGS=$LDFLAGS
7471 echo "_main" > conftest.sym
7472 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7484 if ac_fn_c_try_link "$LINENO"; then :
7485 lt_cv_ld_exported_symbols_list=yes
7487 lt_cv_ld_exported_symbols_list=no
7489 rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7491 LDFLAGS="$save_LDFLAGS"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7495 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7497 rhapsody* | darwin1.[0123])
7498 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7500 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7502 # if running on 10.5 or later, the deployment target defaults
7503 # to the OS version, if on x86, and 10.4, the deployment
7504 # target defaults to 10.4. Don't you love it?
7505 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7506 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7509 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7516 _lt_dar_single_mod='$single_module'
7518 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7519 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7521 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7523 if test "$DSYMUTIL" != ":"; then
7524 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7535 # Check whether --enable-libtool-lock was given.
7536 if test "${enable_libtool_lock+set}" = set; then :
7537 enableval=$enable_libtool_lock;
7540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7543 # Check whether --with-pic was given.
7544 if test "${with_pic+set}" = set; then :
7545 withval=$with_pic; pic_mode="$withval"
7550 test -z "$pic_mode" && pic_mode=default
7552 # Use C for the default configuration in the libtool script
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562 # Source file extension for C test sources.
7565 # Object file extension for compiled C test sources.
7569 # Code to be used in simple compile tests
7570 lt_simple_compile_test_code="int some_variable = 0;"
7572 # Code to be used in simple link tests
7573 lt_simple_link_test_code='int main(){return(0);}'
7576 # If no C compiler was specified, use CC.
7579 # If no C compiler flags were specified, use CFLAGS.
7580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7582 # Allow CC to be a program name with arguments.
7586 # save warnings/boilerplate of simple test code
7587 ac_outfile=conftest.$ac_objext
7588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7590 _lt_compiler_boilerplate=`cat conftest.err`
7593 ac_outfile=conftest.$ac_objext
7594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7596 _lt_linker_boilerplate=`cat conftest.err`
7601 lt_prog_compiler_no_builtin_flag=
7603 if test "$GCC" = yes; then
7604 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7608 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7609 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7610 $as_echo_n "(cached) " >&6
7612 lt_cv_prog_compiler_rtti_exceptions=no
7613 ac_outfile=conftest.$ac_objext
7614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7615 lt_compiler_flag="-fno-rtti -fno-exceptions"
7616 # Insert the option either (1) after the last *FLAGS variable, or
7617 # (2) before a word containing "conftest.", or (3) at the end.
7618 # Note that $ac_compile itself does not contain backslashes and begins
7619 # with a dollar sign (not a hyphen), so the echo should work correctly.
7620 # The option is referenced via a variable to avoid confusing sed.
7621 lt_compile=`echo "$ac_compile" | $SED \
7622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7624 -e 's:$: $lt_compiler_flag:'`
7625 (eval echo "\"\$as_me:7625: $lt_compile\"" >&5)
7626 (eval "$lt_compile" 2>conftest.err)
7628 cat conftest.err >&5
7629 echo "$as_me:7629: \$? = $ac_status" >&5
7630 if (exit $ac_status) && test -s "$ac_outfile"; then
7631 # The compiler can only warn and ignore the option if not recognized
7632 # So say no if there are warnings other than the usual output.
7633 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7636 lt_cv_prog_compiler_rtti_exceptions=yes
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7643 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7645 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7646 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7653 lt_prog_compiler_wl=
7654 lt_prog_compiler_pic=
7655 lt_prog_compiler_static=
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7658 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7660 if test "$GCC" = yes; then
7661 lt_prog_compiler_wl='-Wl,'
7662 lt_prog_compiler_static='-static'
7666 # All AIX code is PIC.
7667 if test "$host_cpu" = ia64; then
7668 # AIX 5 now supports IA64 processor
7669 lt_prog_compiler_static='-Bstatic'
7674 # FIXME: we need at least 68020 code to build shared libraries, but
7675 # adding the `-m68020' flag to GCC prevents building anything better,
7677 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7681 # PIC is the default for these OSes.
7684 mingw* | cygwin* | pw32* | os2*)
7685 # This hack is so that the source file can tell whether it is being
7686 # built for inclusion in a dll (and should export symbols for example).
7687 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7688 # (--disable-auto-import) libraries
7689 lt_prog_compiler_pic='-DDLL_EXPORT'
7692 darwin* | rhapsody*)
7693 # PIC is the default on this platform
7694 # Common symbols not allowed in MH_DYLIB files
7695 lt_prog_compiler_pic='-fno-common'
7699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7700 # Instead, we relocate shared libraries at runtime.
7704 # Just because we use GCC doesn't mean we suddenly get shared libraries
7705 # on systems that don't support them.
7706 lt_prog_compiler_can_build_shared=no
7711 if test -d /usr/nec; then
7712 lt_prog_compiler_pic=-Kconform_pic
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7724 lt_prog_compiler_pic='-fPIC'
7730 lt_prog_compiler_pic='-fPIC'
7734 # PORTME Check for flag to pass linker flags through the system compiler.
7737 lt_prog_compiler_wl='-Wl,'
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7746 # PIC is the default on this platform
7747 # Common symbols not allowed in MH_DYLIB files
7748 case $cc_basename in
7750 lt_prog_compiler_pic='-qnocommon'
7751 lt_prog_compiler_wl='-Wl,'
7756 mingw* | cygwin* | pw32* | os2*)
7757 # This hack is so that the source file can tell whether it is being
7758 # built for inclusion in a dll (and should export symbols for example).
7759 lt_prog_compiler_pic='-DDLL_EXPORT'
7762 hpux9* | hpux10* | hpux11*)
7763 lt_prog_compiler_wl='-Wl,'
7764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7771 lt_prog_compiler_pic='+Z'
7774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775 lt_prog_compiler_static='${wl}-a ${wl}archive'
7778 irix5* | irix6* | nonstopux*)
7779 lt_prog_compiler_wl='-Wl,'
7780 # PIC (with -KPIC) is the default.
7781 lt_prog_compiler_static='-non_shared'
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7789 linux* | k*bsd*-gnu)
7790 case $cc_basename in
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-static'
7796 pgcc* | pgf77* | pgf90* | pgf95*)
7797 # Portland Group compilers (*not* the Pentium gcc compiler,
7798 # which looks to be a dead project)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-fpic'
7801 lt_prog_compiler_static='-Bstatic'
7804 lt_prog_compiler_wl='-Wl,'
7805 # All Alpha code is PIC.
7806 lt_prog_compiler_static='-non_shared'
7809 case `$CC -V 2>&1 | sed 5q` in
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7814 lt_prog_compiler_wl='-Wl,'
7817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 lt_prog_compiler_wl=''
7827 osf3* | osf4* | osf5*)
7828 lt_prog_compiler_wl='-Wl,'
7829 # All OSF/1 code is PIC.
7830 lt_prog_compiler_static='-non_shared'
7834 lt_prog_compiler_static='-non_shared'
7838 lt_prog_compiler_pic='-KPIC'
7839 lt_prog_compiler_static='-Bstatic'
7840 case $cc_basename in
7842 lt_prog_compiler_wl='-Qoption ld ';;
7844 lt_prog_compiler_wl='-Wl,';;
7849 lt_prog_compiler_wl='-Qoption ld '
7850 lt_prog_compiler_pic='-PIC'
7851 lt_prog_compiler_static='-Bstatic'
7854 sysv4 | sysv4.2uw2* | sysv4.3*)
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7861 if test -d /usr/nec ;then
7862 lt_prog_compiler_pic='-Kconform_pic'
7863 lt_prog_compiler_static='-Bstatic'
7867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_pic='-KPIC'
7870 lt_prog_compiler_static='-Bstatic'
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_can_build_shared=no
7879 lt_prog_compiler_pic='-pic'
7880 lt_prog_compiler_static='-Bstatic'
7884 lt_prog_compiler_can_build_shared=no
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7890 $as_echo "$lt_prog_compiler_pic" >&6; }
7893 # Check to make sure the PIC flag actually works.
7895 if test -n "$lt_prog_compiler_pic"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7899 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7900 $as_echo_n "(cached) " >&6
7902 lt_cv_prog_compiler_pic_works=no
7903 ac_outfile=conftest.$ac_objext
7904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7905 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7906 # Insert the option either (1) after the last *FLAGS variable, or
7907 # (2) before a word containing "conftest.", or (3) at the end.
7908 # Note that $ac_compile itself does not contain backslashes and begins
7909 # with a dollar sign (not a hyphen), so the echo should work correctly.
7910 # The option is referenced via a variable to avoid confusing sed.
7911 lt_compile=`echo "$ac_compile" | $SED \
7912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914 -e 's:$: $lt_compiler_flag:'`
7915 (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916 (eval "$lt_compile" 2>conftest.err)
7918 cat conftest.err >&5
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 if (exit $ac_status) && test -s "$ac_outfile"; then
7921 # The compiler can only warn and ignore the option if not recognized
7922 # So say no if there are warnings other than the usual output.
7923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7926 lt_cv_prog_compiler_pic_works=yes
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7935 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7936 case $lt_prog_compiler_pic in
7938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7941 lt_prog_compiler_pic=
7942 lt_prog_compiler_can_build_shared=no
7947 # For platforms which do not support PIC, -DPIC is meaningless:
7949 lt_prog_compiler_pic=
7952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7957 # Check to make sure the static flag actually works.
7959 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7962 if ${lt_cv_prog_compiler_static_works+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 lt_cv_prog_compiler_static_works=no
7966 save_LDFLAGS="$LDFLAGS"
7967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7970 # The linker can only warn and ignore the option if not recognized
7971 # So say no if there are warnings
7972 if test -s conftest.err; then
7973 # Append any errors to the config.log.
7974 cat conftest.err 1>&5
7975 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977 if diff conftest.exp conftest.er2 >/dev/null; then
7978 lt_cv_prog_compiler_static_works=yes
7981 lt_cv_prog_compiler_static_works=yes
7985 LDFLAGS="$save_LDFLAGS"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7989 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7991 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7994 lt_prog_compiler_static=
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8000 if ${lt_cv_prog_compiler_c_o+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 lt_cv_prog_compiler_c_o=no
8004 $rm -r conftest 2>/dev/null
8008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8010 lt_compiler_flag="-o out/conftest2.$ac_objext"
8011 # Insert the option either (1) after the last *FLAGS variable, or
8012 # (2) before a word containing "conftest.", or (3) at the end.
8013 # Note that $ac_compile itself does not contain backslashes and begins
8014 # with a dollar sign (not a hyphen), so the echo should work correctly.
8015 lt_compile=`echo "$ac_compile" | $SED \
8016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018 -e 's:$: $lt_compiler_flag:'`
8019 (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
8020 (eval "$lt_compile" 2>out/conftest.err)
8022 cat out/conftest.err >&5
8023 echo "$as_me:8023: \$? = $ac_status" >&5
8024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026 # The compiler can only warn and ignore the option if not recognized
8027 # So say no if there are warnings
8028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031 lt_cv_prog_compiler_c_o=yes
8036 # SGI C++ compiler will create directory out/ii_files/ for
8037 # template instantiation
8038 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8039 $rm out/* && rmdir out
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8049 hard_links="nottested"
8050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8051 # do not overwrite the value of need_locks provided by the user
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8053 $as_echo_n "checking if we can lock with hard links... " >&6; }
8056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 ln conftest.a conftest.b 2>&5 || hard_links=no
8059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8061 $as_echo "$hard_links" >&6; }
8062 if test "$hard_links" = no; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8064 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8072 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8075 allow_undefined_flag=
8076 enable_shared_with_static_runtimes=no
8078 archive_expsym_cmds=
8079 old_archive_From_new_cmds=
8080 old_archive_from_expsyms_cmds=
8081 export_dynamic_flag_spec=
8082 whole_archive_flag_spec=
8083 thread_safe_flag_spec=
8084 hardcode_libdir_flag_spec=
8085 hardcode_libdir_flag_spec_ld=
8086 hardcode_libdir_separator=
8089 hardcode_shlibpath_var=unsupported
8090 link_all_deplibs=unknown
8091 hardcode_automatic=no
8094 always_export_symbols=no
8095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8096 # include_expsyms should be a list of space-separated symbols to be *always*
8097 # included in the symbol list
8099 # exclude_expsyms can be an extended regexp of symbols to exclude
8100 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8102 # as well as any symbol that contains `d'.
8103 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8105 # platforms (ab)use it in PIC code, but their linkers get confused if
8106 # the symbol is explicitly referenced. Since portable code cannot
8107 # rely on this symbol name, it's probably fine to never include it in
8108 # preloaded symbol tables.
8109 # Exclude shared library initialization/finalization symbols.
8110 extract_expsyms_cmds=
8111 # Just being paranoid about ensuring that cc_basename is set.
8112 for cc_temp in $compiler""; do
8114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8123 cygwin* | mingw* | pw32*)
8124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125 # When not using gcc, we currently assume that we are using
8126 # Microsoft Visual C++.
8127 if test "$GCC" != yes; then
8132 # we just hope/assume this is gcc and not c89 (= MSVC++)
8141 if test "$with_gnu_ld" = yes; then
8142 # If archive_cmds runs LD, not CC, wlarc should be empty
8145 # Set some defaults for GNU ld with shared library support. These
8146 # are reset later if shared libraries are not supported. Putting them
8147 # here allows them to be overridden if necessary.
8148 runpath_var=LD_RUN_PATH
8149 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8150 export_dynamic_flag_spec='${wl}--export-dynamic'
8151 # ancient GNU ld didn't support --whole-archive et. al.
8152 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8155 whole_archive_flag_spec=
8157 supports_anon_versioning=no
8158 case `$LD -v 2>/dev/null` in
8159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8162 *\ 2.11.*) ;; # other 2.11 versions
8163 *) supports_anon_versioning=yes ;;
8166 # See if GNU ld supports shared libraries.
8169 # On AIX/PPC, the GNU linker is very broken
8170 if test "$host_cpu" != ia64; then
8174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8175 *** to be unable to reliably create shared libraries on AIX.
8176 *** Therefore, libtool is disabling shared libraries support. If you
8177 *** really care for shared libraries, you may want to modify your PATH
8178 *** so that a non-GNU linker is found, and then restart.
8185 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)'
8186 hardcode_libdir_flag_spec='-L$libdir'
8187 hardcode_minus_L=yes
8189 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8190 # that the semantics of dynamic libraries on AmigaOS, at least up
8191 # to version 4, is to share data among multiple programs linked
8192 # with the same dynamic library. Since this doesn't match the
8193 # behavior of shared libraries on other platforms, we can't use
8199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8200 allow_undefined_flag=unsupported
8201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8202 # support --undefined. This deserves some investigation. FIXME
8203 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209 cygwin* | mingw* | pw32*)
8210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8211 # as there is no search path for DLLs.
8212 hardcode_libdir_flag_spec='-L$libdir'
8213 allow_undefined_flag=unsupported
8214 always_export_symbols=no
8215 enable_shared_with_static_runtimes=yes
8216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220 # If the export-symbols file already is a .def file (1st line
8221 # is EXPORTS), use it as is; otherwise, prepend...
8222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8223 cp $export_symbols $output_objdir/$soname.def;
8225 echo EXPORTS > $output_objdir/$soname.def;
8226 cat $export_symbols >> $output_objdir/$soname.def;
8228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8236 hardcode_shlibpath_var=no
8237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238 export_dynamic_flag_spec='${wl}-E'
8239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8240 # Instead, shared libraries are loaded at an image base (0x10000000 by
8241 # default) and relocated if they conflict, which is a slow very memory
8242 # consuming and fragmenting process. To avoid this, we pick a random,
8243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8244 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8246 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'
8249 gnu* | linux* | k*bsd*-gnu)
8250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252 case $cc_basename,$host_cpu in
8253 pgcc*) # Portland Group C compiler
8254 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'
8255 tmp_addflag=' $pic_flag'
8257 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8258 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'
8259 tmp_addflag=' $pic_flag -Mnomain' ;;
8260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8261 tmp_addflag=' -i_dynamic' ;;
8262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8263 tmp_addflag=' -i_dynamic -nofor_main' ;;
8264 ifc* | ifort*) # Intel Fortran compiler
8265 tmp_addflag=' -nofor_main' ;;
8267 case `$CC -V 2>&1 | sed 5q` in
8268 *Sun\ C*) # Sun C 5.9
8269 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'
8270 tmp_sharedflag='-G' ;;
8271 *Sun\ F*) # Sun Fortran 8.3
8272 tmp_sharedflag='-G' ;;
8274 tmp_sharedflag='-shared' ;;
8276 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278 if test $supports_anon_versioning = yes; then
8279 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8281 $echo "local: *; };" >> $output_objdir/$libname.ver~
8282 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8290 netbsd* | netbsdelf*-gnu)
8291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8292 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8301 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8305 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8306 *** create shared libraries on Solaris systems. Therefore, libtool
8307 *** is disabling shared libraries support. We urge you to upgrade GNU
8308 *** binutils to release 2.9.1 or newer. Another option is to modify
8309 *** your PATH or compiler configuration so that the native linker is
8310 *** used, and then restart.
8313 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8322 case `$LD -v 2>&1` in
8323 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8327 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8328 *** reliably create shared libraries on SCO systems. Therefore, libtool
8329 *** is disabling shared libraries support. We urge you to upgrade GNU
8330 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8331 *** your PATH or compiler configuration so that the native linker is
8332 *** used, and then restart.
8337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8352 hardcode_shlibpath_var=no
8356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8365 if test "$ld_shlibs" = no; then
8367 hardcode_libdir_flag_spec=
8368 export_dynamic_flag_spec=
8369 whole_archive_flag_spec=
8372 # PORTME fill in a description of your system's linker (not GNU ld)
8375 allow_undefined_flag=unsupported
8376 always_export_symbols=yes
8377 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'
8378 # Note: this linker hardcodes the directories in LIBPATH if there
8379 # are no directories specified by -L.
8380 hardcode_minus_L=yes
8381 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8382 # Neither direct hardcoding nor static linking is supported with a
8384 hardcode_direct=unsupported
8389 if test "$host_cpu" = ia64; then
8390 # On IA64, the linker does run time linking by default, so we don't
8391 # have to do anything special.
8392 aix_use_runtimelinking=no
8393 exp_sym_flag='-Bexport'
8396 # If we're using GNU nm, then we don't want the "-C" option.
8397 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8398 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8399 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'
8401 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'
8403 aix_use_runtimelinking=no
8405 # Test if we are trying to use run time linking or normal
8406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407 # need to do runtime linking.
8408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8409 for ld_flag in $LDFLAGS; do
8410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411 aix_use_runtimelinking=yes
8418 exp_sym_flag='-bexport'
8419 no_entry_flag='-bnoentry'
8422 # When large executables or shared objects are built, AIX ld can
8423 # have problems creating the table of contents. If linking a library
8424 # or program results in "error TOC overflow" add -mminimal-toc to
8425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8430 hardcode_libdir_separator=':'
8431 link_all_deplibs=yes
8433 if test "$GCC" = yes; then
8434 case $host_os in aix4.[012]|aix4.[012].*)
8435 # We only want to do this on AIX 4.2 and lower, the check
8436 # below for broken collect2 doesn't work under 4.3+
8437 collect2name=`${CC} -print-prog-name=collect2`
8438 if test -f "$collect2name" && \
8439 strings "$collect2name" | grep resolve_lib_name >/dev/null
8441 # We have reworked collect2
8444 # We have old collect2
8445 hardcode_direct=unsupported
8446 # It fails to find uninstalled libraries when the uninstalled
8447 # path is not listed in the libpath. Setting hardcode_minus_L
8448 # to unsupported forces relinking
8449 hardcode_minus_L=yes
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_libdir_separator=
8455 shared_flag='-shared'
8456 if test "$aix_use_runtimelinking" = yes; then
8457 shared_flag="$shared_flag "'${wl}-G'
8461 if test "$host_cpu" = ia64; then
8462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8463 # chokes on -Wl,-G. The following line is correct:
8466 if test "$aix_use_runtimelinking" = yes; then
8467 shared_flag='${wl}-G'
8469 shared_flag='${wl}-bM:SRE'
8474 # It seems that -bexpall does not export symbols beginning with
8475 # underscore (_), so it is better to generate a list of symbols to export.
8476 always_export_symbols=yes
8477 if test "$aix_use_runtimelinking" = yes; then
8478 # Warning - without using the other runtime loading flags (-brtl),
8479 # -berok will link without error, but may produce a broken library.
8480 allow_undefined_flag='-berok'
8481 # Determine the default libpath from the value encoded in an empty executable.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8493 if ac_fn_c_try_link "$LINENO"; then :
8495 lt_aix_libpath_sed='
8496 /Import File Strings/,/^$/ {
8502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 # Check for a 64-bit object if we didn't find anything.
8504 if test -z "$aix_libpath"; then
8505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513 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"
8515 if test "$host_cpu" = ia64; then
8516 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8517 allow_undefined_flag="-z nodefs"
8518 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"
8520 # Determine the default libpath from the value encoded in an empty executable.
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8532 if ac_fn_c_try_link "$LINENO"; then :
8534 lt_aix_libpath_sed='
8535 /Import File Strings/,/^$/ {
8541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8542 # Check for a 64-bit object if we didn't find anything.
8543 if test -z "$aix_libpath"; then
8544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552 # Warning - without using the other run time loading flags,
8553 # -berok will link without error, but may produce a broken library.
8554 no_undefined_flag=' ${wl}-bernotok'
8555 allow_undefined_flag=' ${wl}-berok'
8556 # Exported symbols can be pulled into shared objects from archives
8557 whole_archive_flag_spec='$convenience'
8558 archive_cmds_need_lc=yes
8559 # This is similar to how AIX traditionally builds its shared libraries.
8560 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'
8566 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)'
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_minus_L=yes
8569 # see comment about different semantics on the GNU ld section
8574 export_dynamic_flag_spec=-rdynamic
8577 cygwin* | mingw* | pw32*)
8578 # When not using gcc, we currently assume that we are using
8579 # Microsoft Visual C++.
8580 # hardcode_libdir_flag_spec is actually meaningless, as there is
8581 # no search path for DLLs.
8582 hardcode_libdir_flag_spec=' '
8583 allow_undefined_flag=unsupported
8584 # Tell ltmain to make .lib files, not .a files.
8586 # Tell ltmain to make .dll files, not .so files.
8588 # FIXME: Setting linknames here is a bad hack.
8589 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8590 # The linker will automatically build a .lib file if we build a DLL.
8591 old_archive_From_new_cmds='true'
8592 # FIXME: Should let the user specify the lib program.
8593 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8594 fix_srcfile_path='`cygpath -w "$srcfile"`'
8595 enable_shared_with_static_runtimes=yes
8598 darwin* | rhapsody*)
8600 rhapsody* | darwin1.[012])
8601 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8604 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8605 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8607 case ${MACOSX_DEPLOYMENT_TARGET} in
8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8612 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8618 archive_cmds_need_lc=no
8620 hardcode_automatic=yes
8621 hardcode_shlibpath_var=unsupported
8622 whole_archive_flag_spec=''
8623 link_all_deplibs=yes
8624 if test "$GCC" = yes ; then
8625 output_verbose_link_cmd='echo'
8626 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8627 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8628 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}"
8629 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}"
8631 case $cc_basename in
8633 output_verbose_link_cmd='echo'
8634 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8635 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8637 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}'
8638 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}'
8648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_shlibpath_var=no
8657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8658 # support. Future versions do this automatically, but an explicit c++rt0.o
8659 # does not break anything, and helps significantly (at the cost of a little
8662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8663 hardcode_libdir_flag_spec='-R$libdir'
8665 hardcode_shlibpath_var=no
8668 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672 hardcode_minus_L=yes
8673 hardcode_shlibpath_var=no
8676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8677 freebsd* | dragonfly*)
8678 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8679 hardcode_libdir_flag_spec='-R$libdir'
8681 hardcode_shlibpath_var=no
8685 if test "$GCC" = yes; then
8686 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'
8688 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'
8690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8691 hardcode_libdir_separator=:
8694 # hardcode_minus_L: Not really in the search PATH,
8695 # but as the default location of the library.
8696 hardcode_minus_L=yes
8697 export_dynamic_flag_spec='${wl}-E'
8701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8706 if test "$with_gnu_ld" = no; then
8707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8708 hardcode_libdir_separator=:
8711 export_dynamic_flag_spec='${wl}-E'
8713 # hardcode_minus_L: Not really in the search PATH,
8714 # but as the default location of the library.
8715 hardcode_minus_L=yes
8720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8723 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8745 if test "$with_gnu_ld" = no; then
8746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747 hardcode_libdir_separator=:
8751 hardcode_libdir_flag_spec_ld='+b $libdir'
8753 hardcode_shlibpath_var=no
8757 export_dynamic_flag_spec='${wl}-E'
8759 # hardcode_minus_L: Not really in the search PATH,
8760 # but as the default location of the library.
8761 hardcode_minus_L=yes
8767 irix5* | irix6* | nonstopux*)
8768 if test "$GCC" = yes; then
8769 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'
8771 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'
8772 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775 hardcode_libdir_separator=:
8776 link_all_deplibs=yes
8779 netbsd* | netbsdelf*-gnu)
8780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8785 hardcode_libdir_flag_spec='-R$libdir'
8787 hardcode_shlibpath_var=no
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 hardcode_shlibpath_var=no
8799 if test -f /usr/libexec/ld.so; then
8801 hardcode_shlibpath_var=no
8802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806 export_dynamic_flag_spec='${wl}-E'
8809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_libdir_flag_spec='-R$libdir'
8814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 allow_undefined_flag=unsupported
8828 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'
8829 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8833 if test "$GCC" = yes; then
8834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8835 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'
8837 allow_undefined_flag=' -expect_unresolved \*'
8838 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'
8840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841 hardcode_libdir_separator=:
8844 osf4* | osf5*) # as osf3* with the addition of -msym flag
8845 if test "$GCC" = yes; then
8846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8847 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'
8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 allow_undefined_flag=' -expect_unresolved \*'
8851 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'
8852 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8853 $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'
8855 # Both c and cxx compiler support -rpath directly
8856 hardcode_libdir_flag_spec='-rpath $libdir'
8858 hardcode_libdir_separator=:
8862 no_undefined_flag=' -z text'
8863 if test "$GCC" = yes; then
8865 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8867 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8874 hardcode_libdir_flag_spec='-R$libdir'
8875 hardcode_shlibpath_var=no
8877 solaris2.[0-5] | solaris2.[0-5].*) ;;
8879 # The compiler driver will combine and reorder linker options,
8880 # but understands `-z linker_flag'. GCC discards it without `$wl',
8881 # but is careful enough not to reorder.
8882 # Supported since Solaris 2.6 (maybe 2.5.1?)
8883 if test "$GCC" = yes; then
8884 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8890 link_all_deplibs=yes
8894 if test "x$host_vendor" = xsequent; then
8895 # Use $CC to link under sequent, because it throws in some extra .o
8896 # files that make .init and .fini sections work.
8897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_libdir_flag_spec='-L$libdir'
8903 hardcode_minus_L=yes
8904 hardcode_shlibpath_var=no
8908 case $host_vendor in
8910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911 hardcode_direct=yes # is this really true???
8914 ## LD is ld it makes a PLAMLIB
8915 ## CC just makes a GrossModule.
8916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8917 reload_cmds='$CC -r -o $output$reload_objs'
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8925 runpath_var='LD_RUN_PATH'
8926 hardcode_shlibpath_var=no
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_shlibpath_var=no
8932 export_dynamic_flag_spec='-Bexport'
8936 if test -d /usr/nec; then
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_shlibpath_var=no
8939 runpath_var=LD_RUN_PATH
8940 hardcode_runpath_var=yes
8945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8946 no_undefined_flag='${wl}-z,text'
8947 archive_cmds_need_lc=no
8948 hardcode_shlibpath_var=no
8949 runpath_var='LD_RUN_PATH'
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 sysv5* | sco3.2v5* | sco5v6*)
8961 # Note: We can NOT use -z defs as we might desire, because we do not
8962 # link with -lc, and that would cause any symbols used from libc to
8963 # always be unresolved, which means just about no library would
8964 # ever link correctly. If we're not using GNU ld we use -z text
8965 # though, which does catch some bad symbols but isn't as heavy-handed
8967 no_undefined_flag='${wl}-z,text'
8968 allow_undefined_flag='${wl}-z,nodefs'
8969 archive_cmds_need_lc=no
8970 hardcode_shlibpath_var=no
8971 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8972 hardcode_libdir_separator=':'
8973 link_all_deplibs=yes
8974 export_dynamic_flag_spec='${wl}-Bexport'
8975 runpath_var='LD_RUN_PATH'
8977 if test "$GCC" = yes; then
8978 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8999 $as_echo "$ld_shlibs" >&6; }
9000 test "$ld_shlibs" = no && can_build_shared=no
9003 # Do we need to explicitly link libc?
9005 case "x$archive_cmds_need_lc" in
9007 # Assume -lc should be added
9008 archive_cmds_need_lc=yes
9010 if test "$enable_shared" = yes && test "$GCC" = yes; then
9011 case $archive_cmds in
9013 # FIXME: we may have to deal with multi-command sequences.
9016 # Test whether the compiler implicitly links with -lc since on some
9017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9018 # to ld, don't add -lc before -lgcc.
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9020 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9025 (eval $ac_compile) 2>&5
9027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9028 test $ac_status = 0; } 2>conftest.err; then
9031 libobjs=conftest.$ac_objext
9033 wl=$lt_prog_compiler_wl
9034 pic_flag=$lt_prog_compiler_pic
9040 lt_save_allow_undefined_flag=$allow_undefined_flag
9041 allow_undefined_flag=
9042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9043 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9046 test $ac_status = 0; }
9048 archive_cmds_need_lc=no
9050 archive_cmds_need_lc=yes
9052 allow_undefined_flag=$lt_save_allow_undefined_flag
9054 cat conftest.err 1>&5
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9058 $as_echo "$archive_cmds_need_lc" >&6; }
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9068 libname_spec='lib$name'
9076 shlibpath_overrides_runpath=unknown
9078 dynamic_linker="$host_os ld.so"
9079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9081 if test "$GCC" = yes; then
9083 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9084 *) lt_awk_arg="/^libraries:/" ;;
9086 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9087 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9088 # if the path contains ";" then we assume it to be the separator
9089 # otherwise default to the standard path separator (i.e. ":") - it is
9090 # assumed that no part of a normal pathname contains ";" but that should
9091 # okay in the real world where ";" in dirpaths is itself problematic.
9092 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9094 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9096 # Ok, now we have the path, separated by spaces, we can step through it
9097 # and add multilib dir if necessary.
9098 lt_tmp_lt_search_path_spec=
9099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9100 for lt_sys_path in $lt_search_path_spec; do
9101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9104 test -d "$lt_sys_path" && \
9105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9108 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9109 BEGIN {RS=" "; FS="/|\n";} {
9112 for (lt_i = NF; lt_i > 0; lt_i--) {
9113 if ($lt_i != "" && $lt_i != ".") {
9114 if ($lt_i == "..") {
9117 if (lt_count == 0) {
9118 lt_foo="/" $lt_i lt_foo;
9125 if (lt_foo != "") { lt_freq[lt_foo]++; }
9126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9128 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9132 need_lib_prefix=unknown
9133 hardcode_into_libs=no
9135 # when you set need_version to no, make sure it does not cause -set_version
9136 # flags to be left without arguments
9137 need_version=unknown
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9143 shlibpath_var=LIBPATH
9145 # AIX 3 has no versioning support, so we append a major version to the name.
9146 soname_spec='${libname}${release}${shared_ext}$major'
9153 hardcode_into_libs=yes
9154 if test "$host_cpu" = ia64; then
9155 # AIX 5 supports IA64
9156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9157 shlibpath_var=LD_LIBRARY_PATH
9159 # With GCC up to 2.95.x, collect2 would create an import file
9160 # for dependence libraries. The import file would start with
9161 # the line `#! .'. This would cause the generated library to
9162 # depend on `.', always an invalid library. This was fixed in
9163 # development snapshots of GCC prior to 3.0.
9165 aix4 | aix4.[01] | aix4.[01].*)
9166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9168 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9176 # soname into executable. Probably we can add versioning support to
9177 # collect2, so additional links can be useful in future.
9178 if test "$aix_use_runtimelinking" = yes; then
9179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9180 # instead of lib<name>.a to let people know that these are not
9181 # typical AIX shared libraries.
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 # We preserve .a as extension for shared libraries through AIX4.2
9185 # and later when we are not doing run time linking.
9186 library_names_spec='${libname}${release}.a $libname.a'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LIBPATH
9194 library_names_spec='$libname.ixlibrary $libname.a'
9195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9196 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'
9200 library_names_spec='${libname}${shared_ext}'
9201 dynamic_linker="$host_os ld.so"
9202 shlibpath_var=LIBRARY_PATH
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9214 # the default ld.so.conf also contains /usr/contrib/lib and
9215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9216 # libtool to hard-code these into programs
9219 cygwin* | mingw* | pw32*)
9220 version_type=windows
9225 case $GCC,$host_os in
9226 yes,cygwin* | yes,mingw* | yes,pw32*)
9227 library_names_spec='$libname.dll.a'
9228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9229 postinstall_cmds='base_file=`basename \${file}`~
9230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9231 dldir=$destdir/`dirname \$dlpath`~
9232 test -d \$dldir || mkdir -p \$dldir~
9233 $install_prog $dir/$dlname \$dldir/$dlname~
9234 chmod a+x \$dldir/$dlname'
9235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9236 dlpath=$dir/\$dldll~
9238 shlibpath_overrides_runpath=yes
9242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9247 # MinGW DLLs use traditional 'lib' prefix
9248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9251 # It is most probably a Windows format PATH printed by
9252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9253 # path with ; separators, and with drive letters. We can handle the
9254 # drive letters (cygwin fileutils understands them), so leave them,
9255 # especially as we might pass files found there to a mingw objdump,
9256 # which wouldn't understand a cygwinified path. Ahh.
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9263 # pw32 DLLs use 'pw' prefix rather than 'lib'
9264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9273 dynamic_linker='Win32 ld.exe'
9274 # FIXME: first we should search . and the directory the executable is in
9278 darwin* | rhapsody*)
9279 dynamic_linker="$host_os dyld"
9283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9284 soname_spec='${libname}${release}${major}$shared_ext'
9285 shlibpath_overrides_runpath=yes
9286 shlibpath_var=DYLD_LIBRARY_PATH
9287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9306 freebsd* | dragonfly*)
9307 # DragonFly does not have aout. When/if they implement a new
9308 # versioning mechanism, adjust this.
9309 if test -x /usr/bin/objformat; then
9310 objformat=`/usr/bin/objformat`
9313 freebsd[123]*) objformat=aout ;;
9317 version_type=freebsd-$objformat
9318 case $version_type in
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9329 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=yes
9334 freebsd3.[01]* | freebsdelf3.[01]*)
9335 shlibpath_overrides_runpath=yes
9336 hardcode_into_libs=yes
9338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9340 shlibpath_overrides_runpath=no
9341 hardcode_into_libs=yes
9343 *) # from 4.6 on, and DragonFly
9344 shlibpath_overrides_runpath=yes
9345 hardcode_into_libs=yes
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 hardcode_into_libs=yes
9360 hpux9* | hpux10* | hpux11*)
9361 # Give a soname corresponding to the major version so that dld.sl refuses to
9362 # link against other versions.
9369 hardcode_into_libs=yes
9370 dynamic_linker="$host_os dld.so"
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 if test "X$HPUX_IA64_MODE" = X32; then
9376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9384 hardcode_into_libs=yes
9385 dynamic_linker="$host_os dld.sl"
9386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9395 dynamic_linker="$host_os dld.sl"
9396 shlibpath_var=SHLIB_PATH
9397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9403 postinstall_cmds='chmod 555 $lib'
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=no
9415 hardcode_into_libs=yes
9418 irix5* | irix6* | nonstopux*)
9420 nonstopux*) version_type=nonstopux ;;
9422 if test "$lt_cv_prog_gnu_ld" = yes; then
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9433 irix5* | nonstopux*)
9437 case $LD in # libtool.m4 will add one of these switches to LD
9438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9439 libsuff= shlibsuff= libmagic=32-bit;;
9440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9441 libsuff=32 shlibsuff=N32 libmagic=N32;;
9442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9444 *) libsuff= shlibsuff= libmagic=never-match;;
9448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9449 shlibpath_overrides_runpath=no
9450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9452 hardcode_into_libs=yes
9455 # No shared lib support for Linux oldld, aout, or coff.
9456 linux*oldld* | linux*aout* | linux*coff*)
9460 # This must be Linux ELF.
9461 linux* | k*bsd*-gnu)
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 shlibpath_overrides_runpath=no
9470 # This implies no fast_install, which is unacceptable.
9471 # Some rework will be needed to allow for fast_install
9472 # before this can be enabled.
9473 hardcode_into_libs=yes
9475 # Append ld.so.conf contents to the search path
9476 if test -f /etc/ld.so.conf; then
9477 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' ' '`
9478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9481 # We used to test for /lib/ld.so.1 and disable shared libraries on
9482 # powerpc, because MkLinux only supported shared libraries with the
9483 # GNU dynamic linker. Since this was broken with cross compilers,
9484 # most powerpc-linux boxes support dynamic linking these days and
9485 # people can always --disable-shared, the test was removed, and we
9486 # assume the GNU/Linux dynamic linker is in use.
9487 dynamic_linker='GNU/Linux ld.so'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 shlibpath_overrides_runpath=no
9498 hardcode_into_libs=yes
9499 dynamic_linker='NetBSD ld.elf_so'
9506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509 dynamic_linker='NetBSD (a.out) ld.so'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 dynamic_linker='NetBSD ld.elf_so'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=yes
9517 hardcode_into_libs=yes
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=yes
9539 sys_lib_dlsearch_path_spec="/usr/lib"
9541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9544 *) need_version=no ;;
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 openbsd2.[89] | openbsd2.[89].*)
9552 shlibpath_overrides_runpath=no
9555 shlibpath_overrides_runpath=yes
9559 shlibpath_overrides_runpath=yes
9564 libname_spec='$name'
9567 library_names_spec='$libname${shared_ext} $libname.a'
9568 dynamic_linker='OS/2 ld.exe'
9569 shlibpath_var=LIBPATH
9572 osf3* | osf4* | osf5*)
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 hardcode_into_libs=yes
9596 # ldd complains unless libraries are executable
9597 postinstall_cmds='chmod +x $lib'
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 if test "$with_gnu_ld" = yes; then
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 soname_spec='${libname}${release}${shared_ext}$major'
9616 shlibpath_var=LD_LIBRARY_PATH
9617 case $host_vendor in
9619 shlibpath_overrides_runpath=no
9621 export_dynamic_flag_spec='${wl}-Blargedynsym'
9622 runpath_var=LD_RUN_PATH
9630 shlibpath_overrides_runpath=no
9631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9637 if test -d /usr/nec ;then
9639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9640 soname_spec='$libname${shared_ext}.$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9646 version_type=freebsd-elf
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 hardcode_into_libs=yes
9653 if test "$with_gnu_ld" = yes; then
9654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9655 shlibpath_overrides_runpath=no
9657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9658 shlibpath_overrides_runpath=yes
9661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9665 sys_lib_dlsearch_path_spec='/usr/lib'
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9680 $as_echo "$dynamic_linker" >&6; }
9681 test "$dynamic_linker" = no && can_build_shared=no
9683 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9684 $as_echo_n "(cached) " >&6
9686 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9690 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9691 $as_echo_n "(cached) " >&6
9693 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699 if test "$GCC" = yes; then
9700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9706 if test -n "$hardcode_libdir_flag_spec" || \
9707 test -n "$runpath_var" || \
9708 test "X$hardcode_automatic" = "Xyes" ; then
9710 # We can hardcode non-existant directories.
9711 if test "$hardcode_direct" != no &&
9712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9713 # have to relink, otherwise we might link with an installed library
9714 # when we should be linking with a yet-to-be-installed one
9715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9716 test "$hardcode_minus_L" != no; then
9717 # Linking always hardcodes the temporary library directory.
9718 hardcode_action=relink
9720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9721 hardcode_action=immediate
9724 # We cannot hardcode anything, or else we can only hardcode existing
9726 hardcode_action=unsupported
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9729 $as_echo "$hardcode_action" >&6; }
9731 if test "$hardcode_action" = relink; then
9732 # Fast installation is not supported
9733 enable_fast_install=no
9734 elif test "$shlibpath_overrides_runpath" = yes ||
9735 test "$enable_shared" = no; then
9736 # Fast installation is not necessary
9737 enable_fast_install=needless
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9743 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9744 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9745 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9746 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9748 $as_echo "yes" >&6; }
9750 # FIXME - insert some real tests, host_os isn't really good enough
9753 if test -n "$STRIP" ; then
9754 striplib="$STRIP -x"
9755 old_striplib="$STRIP -S"
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9757 $as_echo "yes" >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9770 if test "x$enable_dlopen" != xyes; then
9771 enable_dlopen=unknown
9772 enable_dlopen_self=unknown
9773 enable_dlopen_self_static=unknown
9780 lt_cv_dlopen="load_add_on"
9782 lt_cv_dlopen_self=yes
9786 lt_cv_dlopen="LoadLibrary"
9791 lt_cv_dlopen="dlopen"
9796 # if libdl is installed we need to link against it
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9799 if ${ac_cv_lib_dl_dlopen+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 ac_check_lib_save_LIBS=$LIBS
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9822 if ac_fn_c_try_link "$LINENO"; then :
9823 ac_cv_lib_dl_dlopen=yes
9825 ac_cv_lib_dl_dlopen=no
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9839 lt_cv_dlopen_self=yes
9846 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9847 if test "x$ac_cv_func_shl_load" = xyes; then :
9848 lt_cv_dlopen="shl_load"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9851 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9852 if ${ac_cv_lib_dld_shl_load+:} false; then :
9853 $as_echo_n "(cached) " >&6
9855 ac_check_lib_save_LIBS=$LIBS
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9875 if ac_fn_c_try_link "$LINENO"; then :
9876 ac_cv_lib_dld_shl_load=yes
9878 ac_cv_lib_dld_shl_load=no
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9885 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9886 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9889 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9890 if test "x$ac_cv_func_dlopen" = xyes; then :
9891 lt_cv_dlopen="dlopen"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9895 if ${ac_cv_lib_dl_dlopen+:} false; then :
9896 $as_echo_n "(cached) " >&6
9898 ac_check_lib_save_LIBS=$LIBS
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9918 if ac_fn_c_try_link "$LINENO"; then :
9919 ac_cv_lib_dl_dlopen=yes
9921 ac_cv_lib_dl_dlopen=no
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 LIBS=$ac_check_lib_save_LIBS
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9934 if ${ac_cv_lib_svld_dlopen+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 ac_check_lib_save_LIBS=$LIBS
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9957 if ac_fn_c_try_link "$LINENO"; then :
9958 ac_cv_lib_svld_dlopen=yes
9960 ac_cv_lib_svld_dlopen=no
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9967 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9968 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9972 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9973 if ${ac_cv_lib_dld_dld_link+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 ac_check_lib_save_LIBS=$LIBS
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9996 if ac_fn_c_try_link "$LINENO"; then :
9997 ac_cv_lib_dld_dld_link=yes
9999 ac_cv_lib_dld_dld_link=no
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10006 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10007 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10029 if test "x$lt_cv_dlopen" != xno; then
10035 case $lt_cv_dlopen in
10037 save_CPPFLAGS="$CPPFLAGS"
10038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10040 save_LDFLAGS="$LDFLAGS"
10041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10044 LIBS="$lt_cv_dlopen_libs $LIBS"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10047 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10048 if ${lt_cv_dlopen_self+:} false; then :
10049 $as_echo_n "(cached) " >&6
10051 if test "$cross_compiling" = yes; then :
10052 lt_cv_dlopen_self=cross
10054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10055 lt_status=$lt_dlunknown
10056 cat > conftest.$ac_ext <<EOF
10057 #line 10057 "configure"
10058 #include "confdefs.h"
10067 # define LT_DLGLOBAL RTLD_GLOBAL
10070 # define LT_DLGLOBAL DL_GLOBAL
10072 # define LT_DLGLOBAL 0
10076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10077 find out it does not work in some platform. */
10078 #ifndef LT_DLLAZY_OR_NOW
10080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10083 # define LT_DLLAZY_OR_NOW DL_LAZY
10086 # define LT_DLLAZY_OR_NOW RTLD_NOW
10089 # define LT_DLLAZY_OR_NOW DL_NOW
10091 # define LT_DLLAZY_OR_NOW 0
10099 extern "C" void exit (int);
10102 void fnord() { int i=42;}
10105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10106 int status = $lt_dlunknown;
10110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10112 /* dlclose (self); */
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10121 (eval $ac_link) 2>&5
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10125 (./conftest; exit; ) >&5 2>/dev/null
10127 case x$lt_status in
10128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10133 # compilation failed
10134 lt_cv_dlopen_self=no
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10142 $as_echo "$lt_cv_dlopen_self" >&6; }
10144 if test "x$lt_cv_dlopen_self" = xyes; then
10145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10148 if ${lt_cv_dlopen_self_static+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 if test "$cross_compiling" = yes; then :
10152 lt_cv_dlopen_self_static=cross
10154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10155 lt_status=$lt_dlunknown
10156 cat > conftest.$ac_ext <<EOF
10157 #line 10157 "configure"
10158 #include "confdefs.h"
10167 # define LT_DLGLOBAL RTLD_GLOBAL
10170 # define LT_DLGLOBAL DL_GLOBAL
10172 # define LT_DLGLOBAL 0
10176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10177 find out it does not work in some platform. */
10178 #ifndef LT_DLLAZY_OR_NOW
10180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10183 # define LT_DLLAZY_OR_NOW DL_LAZY
10186 # define LT_DLLAZY_OR_NOW RTLD_NOW
10189 # define LT_DLLAZY_OR_NOW DL_NOW
10191 # define LT_DLLAZY_OR_NOW 0
10199 extern "C" void exit (int);
10202 void fnord() { int i=42;}
10205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10206 int status = $lt_dlunknown;
10210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10212 /* dlclose (self); */
10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10221 (eval $ac_link) 2>&5
10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10225 (./conftest; exit; ) >&5 2>/dev/null
10227 case x$lt_status in
10228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10233 # compilation failed
10234 lt_cv_dlopen_self_static=no
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10242 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10245 CPPFLAGS="$save_CPPFLAGS"
10246 LDFLAGS="$save_LDFLAGS"
10251 case $lt_cv_dlopen_self in
10252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10253 *) enable_dlopen_self=unknown ;;
10256 case $lt_cv_dlopen_self_static in
10257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10258 *) enable_dlopen_self_static=unknown ;;
10263 # Report which library types will actually be built
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10265 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10267 $as_echo "$can_build_shared" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10270 $as_echo_n "checking whether to build shared libraries... " >&6; }
10271 test "$can_build_shared" = "no" && enable_shared=no
10273 # On AIX, shared libraries and static libraries use the same namespace, and
10274 # are all built from PIC.
10277 test "$enable_shared" = yes && enable_static=no
10278 if test -n "$RANLIB"; then
10279 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10280 postinstall_cmds='$RANLIB $lib'
10285 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10286 test "$enable_shared" = yes && enable_static=no
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10291 $as_echo "$enable_shared" >&6; }
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10294 $as_echo_n "checking whether to build static libraries... " >&6; }
10295 # Make sure either enable_shared or enable_static is yes.
10296 test "$enable_shared" = yes || enable_static=yes
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10298 $as_echo "$enable_static" >&6; }
10300 # The else clause should only fire when bootstrapping the
10301 # libtool distribution, otherwise you forgot to ship ltmain.sh
10302 # with your package, and you will get complaints that there are
10303 # no rules to generate ltmain.sh.
10304 if test -f "$ltmain"; then
10305 # See if we are running on zsh, and set the options which allow our commands through
10306 # without removal of \ escapes.
10307 if test -n "${ZSH_VERSION+set}" ; then
10308 setopt NO_GLOB_SUBST
10310 # Now quote all the things that may contain metacharacters while being
10311 # careful not to overquote the AC_SUBSTed values. We take copies of the
10312 # variables and quote the copies for generation of the libtool script.
10313 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10317 deplibs_check_method reload_flag reload_cmds need_locks \
10318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10319 lt_cv_sys_global_symbol_to_c_name_address \
10320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10321 old_postinstall_cmds old_postuninstall_cmds \
10325 lt_prog_compiler_wl \
10326 lt_prog_compiler_pic \
10327 lt_prog_compiler_static \
10328 lt_prog_compiler_no_builtin_flag \
10329 export_dynamic_flag_spec \
10330 thread_safe_flag_spec \
10331 whole_archive_flag_spec \
10332 enable_shared_with_static_runtimes \
10334 old_archive_from_new_cmds \
10339 compiler_lib_search_path \
10340 compiler_lib_search_dirs \
10342 archive_expsym_cmds \
10344 postuninstall_cmds \
10345 old_archive_from_expsyms_cmds \
10346 allow_undefined_flag \
10347 no_undefined_flag \
10348 export_symbols_cmds \
10349 hardcode_libdir_flag_spec \
10350 hardcode_libdir_flag_spec_ld \
10351 hardcode_libdir_separator \
10352 hardcode_automatic \
10354 module_expsym_cmds \
10355 lt_cv_prog_compiler_c_o \
10358 include_expsyms; do
10361 old_archive_cmds | \
10362 old_archive_from_new_cmds | \
10364 archive_expsym_cmds | \
10366 module_expsym_cmds | \
10367 old_archive_from_expsyms_cmds | \
10368 export_symbols_cmds | \
10369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10370 postinstall_cmds | postuninstall_cmds | \
10371 old_postinstall_cmds | old_postuninstall_cmds | \
10372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10373 # Double-quote double-evaled strings.
10374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10383 *'\$0 --fallback-echo"')
10384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10388 cfgfile="${ofile}T"
10389 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10392 $as_echo "$as_me: creating $ofile" >&6;}
10394 cat <<__EOF__ >> "$cfgfile"
10397 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10398 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10399 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10401 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10402 # Free Software Foundation, Inc.
10404 # This file is part of GNU Libtool:
10405 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10407 # This program is free software; you can redistribute it and/or modify
10408 # it under the terms of the GNU General Public License as published by
10409 # the Free Software Foundation; either version 2 of the License, or
10410 # (at your option) any later version.
10412 # This program is distributed in the hope that it will be useful, but
10413 # WITHOUT ANY WARRANTY; without even the implied warranty of
10414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10415 # General Public License for more details.
10417 # You should have received a copy of the GNU General Public License
10418 # along with this program; if not, write to the Free Software
10419 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10421 # As a special exception to the GNU General Public License, if you
10422 # distribute this file as part of a program that contains a
10423 # configuration script generated by Autoconf, you may include it under
10424 # the same distribution terms that you use for the rest of that program.
10426 # A sed program that does not truncate output.
10429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10430 Xsed="$SED -e 1s/^X//"
10432 # The HP-UX ksh and POSIX shell print the target directory to stdout
10433 # if CDPATH is set.
10434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10436 # The names of the tagged configurations supported by this script.
10439 # ### BEGIN LIBTOOL CONFIG
10441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10443 # Shell to use when invoking shell scripts.
10446 # Whether or not to build shared libraries.
10447 build_libtool_libs=$enable_shared
10449 # Whether or not to build static libraries.
10450 build_old_libs=$enable_static
10452 # Whether or not to add -lc for building shared libraries.
10453 build_libtool_need_lc=$archive_cmds_need_lc
10455 # Whether or not to disallow shared libs when runtime libs are static
10456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10458 # Whether or not to optimize for fast installation.
10459 fast_install=$enable_fast_install
10462 host_alias=$host_alias
10466 # The build system.
10467 build_alias=$build_alias
10471 # An echo program that does not interpret backslashes.
10476 AR_FLAGS=$lt_AR_FLAGS
10481 # LTCC compiler flags.
10482 LTCFLAGS=$lt_LTCFLAGS
10484 # A language-specific compiler.
10487 # Is the compiler the GNU C compiler?
10493 # The linker used to build libraries.
10496 # Whether we need hard or soft links.
10499 # A BSD-compatible nm program.
10502 # A symbol stripping program
10505 # Used to examine libraries when file_magic_cmd begins "file"
10506 MAGIC_CMD=$MAGIC_CMD
10508 # Used on cygwin: DLL creation program.
10511 # Used on cygwin: object dumper.
10514 # Used on cygwin: assembler.
10517 # The name of the directory that contains temporary libtool files.
10520 # How to create reloadable object files.
10521 reload_flag=$lt_reload_flag
10522 reload_cmds=$lt_reload_cmds
10524 # How to pass a linker flag through the compiler.
10525 wl=$lt_lt_prog_compiler_wl
10527 # Object file suffix (normally "o").
10528 objext="$ac_objext"
10530 # Old archive suffix (normally "a").
10533 # Shared library suffix (normally ".so").
10534 shrext_cmds='$shrext_cmds'
10536 # Executable file suffix (normally "").
10539 # Additional compiler flags for building library objects.
10540 pic_flag=$lt_lt_prog_compiler_pic
10543 # What is the maximum length of a command?
10544 max_cmd_len=$lt_cv_sys_max_cmd_len
10546 # Does compiler simultaneously support -c and -o options?
10547 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10549 # Must we lock files when doing compilation?
10550 need_locks=$lt_need_locks
10552 # Do we need the lib prefix for modules?
10553 need_lib_prefix=$need_lib_prefix
10555 # Do we need a version for libraries?
10556 need_version=$need_version
10558 # Whether dlopen is supported.
10559 dlopen_support=$enable_dlopen
10561 # Whether dlopen of programs is supported.
10562 dlopen_self=$enable_dlopen_self
10564 # Whether dlopen of statically linked programs is supported.
10565 dlopen_self_static=$enable_dlopen_self_static
10567 # Compiler flag to prevent dynamic linking.
10568 link_static_flag=$lt_lt_prog_compiler_static
10570 # Compiler flag to turn off builtin functions.
10571 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10573 # Compiler flag to allow reflexive dlopens.
10574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10576 # Compiler flag to generate shared objects directly from archives.
10577 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10579 # Compiler flag to generate thread-safe objects.
10580 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10582 # Library versioning type.
10583 version_type=$version_type
10585 # Format of library name prefix.
10586 libname_spec=$lt_libname_spec
10588 # List of archive names. First name is the real one, the rest are links.
10589 # The last name is the one that the linker finds with -lNAME.
10590 library_names_spec=$lt_library_names_spec
10592 # The coded name of the library, if different from the real name.
10593 soname_spec=$lt_soname_spec
10595 # Commands used to build and install an old-style archive.
10597 old_archive_cmds=$lt_old_archive_cmds
10598 old_postinstall_cmds=$lt_old_postinstall_cmds
10599 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10601 # Create an old-style archive from a shared archive.
10602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10604 # Create a temporary old-style archive to link instead of a shared archive.
10605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10607 # Commands used to build and install a shared archive.
10608 archive_cmds=$lt_archive_cmds
10609 archive_expsym_cmds=$lt_archive_expsym_cmds
10610 postinstall_cmds=$lt_postinstall_cmds
10611 postuninstall_cmds=$lt_postuninstall_cmds
10613 # Commands used to build a loadable module (assumed same as above if empty)
10614 module_cmds=$lt_module_cmds
10615 module_expsym_cmds=$lt_module_expsym_cmds
10617 # Commands to strip libraries.
10618 old_striplib=$lt_old_striplib
10619 striplib=$lt_striplib
10621 # Dependencies to place before the objects being linked to create a
10623 predep_objects=$lt_predep_objects
10625 # Dependencies to place after the objects being linked to create a
10627 postdep_objects=$lt_postdep_objects
10629 # Dependencies to place before the objects being linked to create a
10631 predeps=$lt_predeps
10633 # Dependencies to place after the objects being linked to create a
10635 postdeps=$lt_postdeps
10637 # The directories searched by this compiler when creating a shared
10639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10641 # The library search path used internally by the compiler when linking
10642 # a shared library.
10643 compiler_lib_search_path=$lt_compiler_lib_search_path
10645 # Method to check whether dependent libraries are shared objects.
10646 deplibs_check_method=$lt_deplibs_check_method
10648 # Command to use when deplibs_check_method == file_magic.
10649 file_magic_cmd=$lt_file_magic_cmd
10651 # Flag that allows shared libraries with undefined symbols to be built.
10652 allow_undefined_flag=$lt_allow_undefined_flag
10654 # Flag that forces no undefined symbols.
10655 no_undefined_flag=$lt_no_undefined_flag
10657 # Commands used to finish a libtool library installation in a directory.
10658 finish_cmds=$lt_finish_cmds
10660 # Same as above, but a single script fragment to be evaled but not shown.
10661 finish_eval=$lt_finish_eval
10663 # Take the output of nm and produce a listing of raw symbols and C names.
10664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10666 # Transform the output of nm in a proper C declaration
10667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10669 # Transform the output of nm in a C name address pair
10670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10672 # This is the shared library runtime path variable.
10673 runpath_var=$runpath_var
10675 # This is the shared library path variable.
10676 shlibpath_var=$shlibpath_var
10678 # Is shlibpath searched before the hard-coded library search path?
10679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10681 # How to hardcode a shared library path into an executable.
10682 hardcode_action=$hardcode_action
10684 # Whether we should hardcode library paths into libraries.
10685 hardcode_into_libs=$hardcode_into_libs
10687 # Flag to hardcode \$libdir into a binary during linking.
10688 # This must work even if \$libdir does not exist.
10689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10691 # If ld is used when linking, flag to hardcode \$libdir into
10692 # a binary during linking. This must work even if \$libdir does
10694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10696 # Whether we need a single -rpath flag with a separated argument.
10697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10700 # resulting binary.
10701 hardcode_direct=$hardcode_direct
10703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10704 # resulting binary.
10705 hardcode_minus_L=$hardcode_minus_L
10707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10708 # the resulting binary.
10709 hardcode_shlibpath_var=$hardcode_shlibpath_var
10711 # Set to yes if building a shared library automatically hardcodes DIR into the library
10712 # and all subsequent libraries and executables linked against it.
10713 hardcode_automatic=$hardcode_automatic
10715 # Variables whose values should be saved in libtool wrapper scripts and
10716 # restored at relink time.
10717 variables_saved_for_relink="$variables_saved_for_relink"
10719 # Whether libtool must link a program against all its dependency libraries.
10720 link_all_deplibs=$link_all_deplibs
10722 # Compile-time system search path for libraries
10723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10725 # Run-time system search path for libraries
10726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10728 # Fix the shell variable \$srcfile for the compiler.
10729 fix_srcfile_path=$lt_fix_srcfile_path
10731 # Set to yes if exported symbols are required.
10732 always_export_symbols=$always_export_symbols
10734 # The commands to list exported symbols.
10735 export_symbols_cmds=$lt_export_symbols_cmds
10737 # The commands to extract the exported symbol list from a shared archive.
10738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10740 # Symbols that should not be listed in the preloaded symbols.
10741 exclude_expsyms=$lt_exclude_expsyms
10743 # Symbols that must always be exported.
10744 include_expsyms=$lt_include_expsyms
10746 # ### END LIBTOOL CONFIG
10753 cat <<\EOF >> "$cfgfile"
10755 # AIX sometimes has problems with the GCC collect2 program. For some
10756 # reason, if we set the COLLECT_NAMES environment variable, the problems
10757 # vanish in a puff of smoke.
10758 if test "X${COLLECT_NAMES+set}" != Xset; then
10760 export COLLECT_NAMES
10766 # We use sed instead of cat because bash on DJGPP gets confused if
10767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10768 # text mode, it properly converts lines to CR/LF. This bash problem
10769 # is reportedly fixed, but why not run on old versions too?
10770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10772 mv -f "$cfgfile" "$ofile" || \
10773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10777 # If there is no Makefile yet, we rely on a make rule to execute
10778 # `config.status --recheck' to rerun these tests and create the
10779 # libtool script then.
10780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10781 if test -f "$ltmain_in"; then
10782 test -f Makefile && make "$ltmain"
10788 ac_cpp='$CPP $CPPFLAGS'
10789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10796 # Check whether --with-tags was given.
10797 if test "${with_tags+set}" = set; then :
10798 withval=$with_tags; tagnames="$withval"
10802 if test -f "$ltmain" && test -n "$tagnames"; then
10803 if test ! -f "${ofile}"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10805 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10808 if test -z "$LTCC"; then
10809 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10810 if test -z "$LTCC"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10812 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10815 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10818 if test -z "$LTCFLAGS"; then
10819 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10822 # Extract list of available tagged configurations in $ofile.
10823 # Note that this assumes the entire list is on one line.
10824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10827 for tagname in $tagnames; do
10829 # Check whether tagname contains only valid characters
10830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10832 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10836 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10838 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10841 # Update the list of available tags.
10842 if test -n "$tagname"; then
10843 echo appending configuration tag \"$tagname\" to $ofile
10847 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10848 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10849 (test "X$CXX" != "Xg++"))) ; then
10851 ac_cpp='$CXXCPP $CPPFLAGS'
10852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10859 archive_cmds_need_lc_CXX=no
10860 allow_undefined_flag_CXX=
10861 always_export_symbols_CXX=no
10862 archive_expsym_cmds_CXX=
10863 export_dynamic_flag_spec_CXX=
10864 hardcode_direct_CXX=no
10865 hardcode_libdir_flag_spec_CXX=
10866 hardcode_libdir_flag_spec_ld_CXX=
10867 hardcode_libdir_separator_CXX=
10868 hardcode_minus_L_CXX=no
10869 hardcode_shlibpath_var_CXX=unsupported
10870 hardcode_automatic_CXX=no
10872 module_expsym_cmds_CXX=
10873 link_all_deplibs_CXX=unknown
10874 old_archive_cmds_CXX=$old_archive_cmds
10875 no_undefined_flag_CXX=
10876 whole_archive_flag_spec_CXX=
10877 enable_shared_with_static_runtimes_CXX=no
10879 # Dependencies to place before and after the object being linked:
10880 predep_objects_CXX=
10881 postdep_objects_CXX=
10884 compiler_lib_search_path_CXX=
10885 compiler_lib_search_dirs_CXX=
10887 # Source file extension for C++ test sources.
10890 # Object file extension for compiled C++ test sources.
10894 # Code to be used in simple compile tests
10895 lt_simple_compile_test_code="int some_variable = 0;"
10897 # Code to be used in simple link tests
10898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10902 # If no C compiler was specified, use CC.
10905 # If no C compiler flags were specified, use CFLAGS.
10906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10908 # Allow CC to be a program name with arguments.
10912 # save warnings/boilerplate of simple test code
10913 ac_outfile=conftest.$ac_objext
10914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10916 _lt_compiler_boilerplate=`cat conftest.err`
10919 ac_outfile=conftest.$ac_objext
10920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10922 _lt_linker_boilerplate=`cat conftest.err`
10926 # Allow CC to be a program name with arguments.
10931 lt_save_with_gnu_ld=$with_gnu_ld
10932 lt_save_path_LD=$lt_cv_path_LD
10933 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10934 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10936 $as_unset lt_cv_prog_gnu_ld
10938 if test -n "${lt_cv_path_LDCXX+set}"; then
10939 lt_cv_path_LD=$lt_cv_path_LDCXX
10941 $as_unset lt_cv_path_LD
10943 test -z "${LDCXX+set}" || LD=$LDCXX
10947 for cc_temp in $compiler""; do
10949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10955 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10958 # We don't want -fno-exception wen compiling C++ code, so set the
10959 # no_builtin_flag separately
10960 if test "$GXX" = yes; then
10961 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10963 lt_prog_compiler_no_builtin_flag_CXX=
10966 if test "$GXX" = yes; then
10967 # Set up default GNU C++ configuration
10970 # Check whether --with-gnu-ld was given.
10971 if test "${with_gnu_ld+set}" = set; then :
10972 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10978 if test "$GCC" = yes; then
10979 # Check if gcc -print-prog-name=ld gives a path.
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10981 $as_echo_n "checking for ld used by $CC... " >&6; }
10984 # gcc leaves a trailing carriage return which upsets mingw
10985 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10987 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10990 # Accept absolute paths.
10992 re_direlt='/[^/][^/]*/\.\./'
10993 # Canonicalize the pathname of ld
10994 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10995 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10996 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10998 test -z "$LD" && LD="$ac_prog"
11001 # If it fails, then pretend we aren't using GCC.
11005 # If it is relative, then search for the first ld in PATH.
11006 with_gnu_ld=unknown
11009 elif test "$with_gnu_ld" = yes; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11011 $as_echo_n "checking for GNU ld... " >&6; }
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11014 $as_echo_n "checking for non-GNU ld... " >&6; }
11016 if ${lt_cv_path_LD+:} false; then :
11017 $as_echo_n "(cached) " >&6
11019 if test -z "$LD"; then
11020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11021 for ac_dir in $PATH; do
11023 test -z "$ac_dir" && ac_dir=.
11024 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11025 lt_cv_path_LD="$ac_dir/$ac_prog"
11026 # Check to see if the program is GNU ld. I'd rather use --version,
11027 # but apparently some variants of GNU ld only accept -v.
11028 # Break only if it was the GNU/non-GNU ld that we prefer.
11029 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11030 *GNU* | *'with BFD'*)
11031 test "$with_gnu_ld" != no && break
11034 test "$with_gnu_ld" != yes && break
11041 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11045 LD="$lt_cv_path_LD"
11046 if test -n "$LD"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11048 $as_echo "$LD" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051 $as_echo "no" >&6; }
11053 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11055 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11056 if ${lt_cv_prog_gnu_ld+:} false; then :
11057 $as_echo_n "(cached) " >&6
11059 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11060 case `$LD -v 2>&1 </dev/null` in
11061 *GNU* | *'with BFD'*)
11062 lt_cv_prog_gnu_ld=yes
11065 lt_cv_prog_gnu_ld=no
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11070 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11071 with_gnu_ld=$lt_cv_prog_gnu_ld
11075 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11076 # archiving commands below assume that GNU ld is being used.
11077 if test "$with_gnu_ld" = yes; then
11078 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079 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'
11081 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11084 # If archive_cmds runs LD, not CC, wlarc should be empty
11085 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11086 # investigate it a little bit more. (MM)
11089 # ancient GNU ld didn't support --whole-archive et. al.
11090 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11091 grep 'no-whole-archive' > /dev/null; then
11092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11094 whole_archive_flag_spec_CXX=
11100 # A generic and very simple default shared library creation
11101 # command for GNU C++ for the case where it uses the native
11102 # linker, instead of GNU ld. If possible, this setting should
11103 # overridden to take advantage of the native linker features on
11104 # the platform it is being used on.
11105 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11108 # Commands to make compiler produce verbose output that lists
11109 # what "hidden" libraries, object files and flags are used when
11110 # linking a shared library.
11111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11119 # PORTME: fill in a description of your system's C++ link characteristics
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11125 # FIXME: insert proper C++ library support
11129 if test "$host_cpu" = ia64; then
11130 # On IA64, the linker does run time linking by default, so we don't
11131 # have to do anything special.
11132 aix_use_runtimelinking=no
11133 exp_sym_flag='-Bexport'
11136 aix_use_runtimelinking=no
11138 # Test if we are trying to use run time linking or normal
11139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11140 # need to do runtime linking.
11141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11142 for ld_flag in $LDFLAGS; do
11145 aix_use_runtimelinking=yes
11153 exp_sym_flag='-bexport'
11154 no_entry_flag='-bnoentry'
11157 # When large executables or shared objects are built, AIX ld can
11158 # have problems creating the table of contents. If linking a library
11159 # or program results in "error TOC overflow" add -mminimal-toc to
11160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11163 archive_cmds_CXX=''
11164 hardcode_direct_CXX=yes
11165 hardcode_libdir_separator_CXX=':'
11166 link_all_deplibs_CXX=yes
11168 if test "$GXX" = yes; then
11169 case $host_os in aix4.[012]|aix4.[012].*)
11170 # We only want to do this on AIX 4.2 and lower, the check
11171 # below for broken collect2 doesn't work under 4.3+
11172 collect2name=`${CC} -print-prog-name=collect2`
11173 if test -f "$collect2name" && \
11174 strings "$collect2name" | grep resolve_lib_name >/dev/null
11176 # We have reworked collect2
11179 # We have old collect2
11180 hardcode_direct_CXX=unsupported
11181 # It fails to find uninstalled libraries when the uninstalled
11182 # path is not listed in the libpath. Setting hardcode_minus_L
11183 # to unsupported forces relinking
11184 hardcode_minus_L_CXX=yes
11185 hardcode_libdir_flag_spec_CXX='-L$libdir'
11186 hardcode_libdir_separator_CXX=
11190 shared_flag='-shared'
11191 if test "$aix_use_runtimelinking" = yes; then
11192 shared_flag="$shared_flag "'${wl}-G'
11196 if test "$host_cpu" = ia64; then
11197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11198 # chokes on -Wl,-G. The following line is correct:
11201 if test "$aix_use_runtimelinking" = yes; then
11202 shared_flag='${wl}-G'
11204 shared_flag='${wl}-bM:SRE'
11209 # It seems that -bexpall does not export symbols beginning with
11210 # underscore (_), so it is better to generate a list of symbols to export.
11211 always_export_symbols_CXX=yes
11212 if test "$aix_use_runtimelinking" = yes; then
11213 # Warning - without using the other runtime loading flags (-brtl),
11214 # -berok will link without error, but may produce a broken library.
11215 allow_undefined_flag_CXX='-berok'
11216 # Determine the default libpath from the value encoded in an empty executable.
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11228 if ac_fn_cxx_try_link "$LINENO"; then :
11230 lt_aix_libpath_sed='
11231 /Import File Strings/,/^$/ {
11237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11238 # Check for a 64-bit object if we didn't find anything.
11239 if test -z "$aix_libpath"; then
11240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11247 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11249 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"
11251 if test "$host_cpu" = ia64; then
11252 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11253 allow_undefined_flag_CXX="-z nodefs"
11254 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"
11256 # Determine the default libpath from the value encoded in an empty executable.
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11268 if ac_fn_cxx_try_link "$LINENO"; then :
11270 lt_aix_libpath_sed='
11271 /Import File Strings/,/^$/ {
11277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11278 # Check for a 64-bit object if we didn't find anything.
11279 if test -z "$aix_libpath"; then
11280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11288 # Warning - without using the other run time loading flags,
11289 # -berok will link without error, but may produce a broken library.
11290 no_undefined_flag_CXX=' ${wl}-bernotok'
11291 allow_undefined_flag_CXX=' ${wl}-berok'
11292 # Exported symbols can be pulled into shared objects from archives
11293 whole_archive_flag_spec_CXX='$convenience'
11294 archive_cmds_need_lc_CXX=yes
11295 # This is similar to how AIX traditionally builds its shared libraries.
11296 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'
11302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11303 allow_undefined_flag_CXX=unsupported
11304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11305 # support --undefined. This deserves some investigation. FIXME
11306 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11313 case $cc_basename in
11315 # FIXME: insert proper C++ library support
11321 cygwin* | mingw* | pw32*)
11322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11323 # as there is no search path for DLLs.
11324 hardcode_libdir_flag_spec_CXX='-L$libdir'
11325 allow_undefined_flag_CXX=unsupported
11326 always_export_symbols_CXX=no
11327 enable_shared_with_static_runtimes_CXX=yes
11329 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11330 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'
11331 # If the export-symbols file already is a .def file (1st line
11332 # is EXPORTS), use it as is; otherwise, prepend...
11333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11334 cp $export_symbols $output_objdir/$soname.def;
11336 echo EXPORTS > $output_objdir/$soname.def;
11337 cat $export_symbols >> $output_objdir/$soname.def;
11339 $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'
11344 darwin* | rhapsody*)
11345 archive_cmds_need_lc_CXX=no
11346 hardcode_direct_CXX=no
11347 hardcode_automatic_CXX=yes
11348 hardcode_shlibpath_var_CXX=unsupported
11349 whole_archive_flag_spec_CXX=''
11350 link_all_deplibs_CXX=yes
11351 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11352 if test "$GXX" = yes ; then
11353 output_verbose_link_cmd='echo'
11354 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}"
11355 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11356 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}"
11357 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}"
11358 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11359 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}"
11360 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}"
11363 case $cc_basename in
11365 output_verbose_link_cmd='echo'
11366 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'
11367 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11368 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11369 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}'
11370 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}'
11380 case $cc_basename in
11382 # FIXME: insert proper C++ library support
11386 # Green Hills C++ Compiler
11387 # FIXME: insert proper C++ library support
11391 # FIXME: insert proper C++ library support
11397 # C++ shared libraries reported to be fairly broken before switch to ELF
11401 archive_cmds_need_lc_CXX=no
11403 freebsd* | dragonfly*)
11404 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11412 hardcode_libdir_separator_CXX=:
11413 export_dynamic_flag_spec_CXX='${wl}-E'
11414 hardcode_direct_CXX=yes
11415 hardcode_minus_L_CXX=yes # Not in the search PATH,
11416 # but as the default
11417 # location of the library.
11419 case $cc_basename in
11421 # FIXME: insert proper C++ library support
11425 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'
11426 # Commands to make compiler produce verbose output that lists
11427 # what "hidden" libraries, object files and flags are used when
11428 # linking a shared library.
11430 # There doesn't appear to be a way to prevent this compiler from
11431 # explicitly linking system object files so we need to strip them
11432 # from the output so that they don't get included in the library
11434 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'
11437 if test "$GXX" = yes; then
11438 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'
11440 # FIXME: insert proper C++ library support
11447 if test $with_gnu_ld = no; then
11448 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11449 hardcode_libdir_separator_CXX=:
11454 export_dynamic_flag_spec_CXX='${wl}-E'
11460 hardcode_direct_CXX=no
11461 hardcode_shlibpath_var_CXX=no
11464 hardcode_direct_CXX=yes
11465 hardcode_minus_L_CXX=yes # Not in the search PATH,
11466 # but as the default
11467 # location of the library.
11471 case $cc_basename in
11473 # FIXME: insert proper C++ library support
11479 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11482 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11485 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11488 # Commands to make compiler produce verbose output that lists
11489 # what "hidden" libraries, object files and flags are used when
11490 # linking a shared library.
11492 # There doesn't appear to be a way to prevent this compiler from
11493 # explicitly linking system object files so we need to strip them
11494 # from the output so that they don't get included in the library
11496 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'
11499 if test "$GXX" = yes; then
11500 if test $with_gnu_ld = no; then
11503 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11506 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11509 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'
11514 # FIXME: insert proper C++ library support
11521 hardcode_direct_CXX=no
11522 hardcode_shlibpath_var_CXX=no
11523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11524 export_dynamic_flag_spec_CXX='${wl}-E'
11525 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11526 # Instead, shared libraries are loaded at an image base (0x10000000 by
11527 # default) and relocated if they conflict, which is a slow very memory
11528 # consuming and fragmenting process. To avoid this, we pick a random,
11529 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11530 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11531 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'
11532 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'
11535 case $cc_basename in
11538 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'
11540 # Archives containing C++ object files must be created using
11541 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11542 # necessary to make sure instantiated templates are included
11544 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11547 if test "$GXX" = yes; then
11548 if test "$with_gnu_ld" = no; then
11549 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'
11551 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'
11554 link_all_deplibs_CXX=yes
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558 hardcode_libdir_separator_CXX=:
11560 linux* | k*bsd*-gnu)
11561 case $cc_basename in
11563 # Kuck and Associates, Inc. (KAI) C++ Compiler
11565 # KCC will only create a shared library if the output file
11566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11567 # to its proper name (with version) after linking.
11568 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'
11569 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'
11570 # Commands to make compiler produce verbose output that lists
11571 # what "hidden" libraries, object files and flags are used when
11572 # linking a shared library.
11574 # There doesn't appear to be a way to prevent this compiler from
11575 # explicitly linking system object files so we need to strip them
11576 # from the output so that they don't get included in the library
11578 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'
11580 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11583 # Archives containing C++ object files must be created using
11584 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11585 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11590 # version 8.0 and above of icpc choke on multiply defined symbols
11591 # if we add $predep_objects and $postdep_objects, however 7.1 and
11592 # earlier do not add the objects themselves.
11593 case `$CC -V 2>&1` in
11595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11596 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'
11598 *) # Version 8.0 or newer
11601 ia64*) tmp_idyn=' -i_dynamic';;
11603 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11604 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'
11607 archive_cmds_need_lc_CXX=no
11608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11610 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11613 # Portland Group C++ compiler
11614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11615 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'
11617 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11618 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11619 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'
11623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11624 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'
11626 runpath_var=LD_RUN_PATH
11627 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11628 hardcode_libdir_separator_CXX=:
11630 # Commands to make compiler produce verbose output that lists
11631 # what "hidden" libraries, object files and flags are used when
11632 # linking a shared library.
11634 # There doesn't appear to be a way to prevent this compiler from
11635 # explicitly linking system object files so we need to strip them
11636 # from the output so that they don't get included in the library
11638 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'
11641 case `$CC -V 2>&1 | sed 5q` in
11644 no_undefined_flag_CXX=' -zdefs'
11645 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11646 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'
11647 hardcode_libdir_flag_spec_CXX='-R$libdir'
11648 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'
11650 # Not sure whether something based on
11651 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11653 output_verbose_link_cmd='echo'
11655 # Archives containing C++ object files must be created using
11656 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11657 # necessary to make sure instantiated templates are included
11659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11666 # FIXME: insert proper C++ library support
11670 # FIXME: insert proper C++ library support
11674 case $cc_basename in
11676 # FIXME: insert proper C++ library support
11680 # FIXME: insert proper C++ library support
11685 netbsd* | netbsdelf*-gnu)
11686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11687 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11689 hardcode_libdir_flag_spec_CXX='-R$libdir'
11690 hardcode_direct_CXX=yes
11691 hardcode_shlibpath_var_CXX=no
11693 # Workaround some broken pre-1.5 toolchains
11694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11697 # C++ shared libraries are fairly broken
11701 if test -f /usr/libexec/ld.so; then
11702 hardcode_direct_CXX=yes
11703 hardcode_shlibpath_var_CXX=no
11704 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11707 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11708 export_dynamic_flag_spec_CXX='${wl}-E'
11709 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11711 output_verbose_link_cmd='echo'
11717 case $cc_basename in
11719 # Kuck and Associates, Inc. (KAI) C++ Compiler
11721 # KCC will only create a shared library if the output file
11722 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11723 # to its proper name (with version) after linking.
11724 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'
11726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11727 hardcode_libdir_separator_CXX=:
11729 # Archives containing C++ object files must be created using
11730 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11731 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11735 # Rational C++ 2.4.1
11736 # FIXME: insert proper C++ library support
11740 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11741 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'
11743 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11744 hardcode_libdir_separator_CXX=:
11746 # Commands to make compiler produce verbose output that lists
11747 # what "hidden" libraries, object files and flags are used when
11748 # linking a shared library.
11750 # There doesn't appear to be a way to prevent this compiler from
11751 # explicitly linking system object files so we need to strip them
11752 # from the output so that they don't get included in the library
11754 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'
11757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11759 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'
11761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11762 hardcode_libdir_separator_CXX=:
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11770 # FIXME: insert proper C++ library support
11777 case $cc_basename in
11779 # Kuck and Associates, Inc. (KAI) C++ Compiler
11781 # KCC will only create a shared library if the output file
11782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11783 # to its proper name (with version) after linking.
11784 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'
11786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11787 hardcode_libdir_separator_CXX=:
11789 # Archives containing C++ object files must be created using
11790 # the KAI C++ compiler.
11791 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11794 # Rational C++ 2.4.1
11795 # FIXME: insert proper C++ library support
11799 allow_undefined_flag_CXX=' -expect_unresolved \*'
11800 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'
11801 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11802 echo "-hidden">> $lib.exp~
11803 $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~
11806 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11807 hardcode_libdir_separator_CXX=:
11809 # Commands to make compiler produce verbose output that lists
11810 # what "hidden" libraries, object files and flags are used when
11811 # linking a shared library.
11813 # There doesn't appear to be a way to prevent this compiler from
11814 # explicitly linking system object files so we need to strip them
11815 # from the output so that they don't get included in the library
11817 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'
11820 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11821 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11822 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'
11824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11825 hardcode_libdir_separator_CXX=:
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11833 # FIXME: insert proper C++ library support
11840 # FIXME: insert proper C++ library support
11844 case $cc_basename in
11847 # FIXME: insert proper C++ library support
11852 # FIXME: insert proper C++ library support
11856 # FIXME: insert proper C++ library support
11862 case $cc_basename in
11864 # Sun C++ 4.2, 5.x and Centerline C++
11865 archive_cmds_need_lc_CXX=yes
11866 no_undefined_flag_CXX=' -zdefs'
11867 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11869 $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'
11871 hardcode_libdir_flag_spec_CXX='-R$libdir'
11872 hardcode_shlibpath_var_CXX=no
11874 solaris2.[0-5] | solaris2.[0-5].*) ;;
11876 # The compiler driver will combine and reorder linker options,
11877 # but understands `-z linker_flag'.
11878 # Supported since Solaris 2.6 (maybe 2.5.1?)
11879 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11882 link_all_deplibs_CXX=yes
11884 output_verbose_link_cmd='echo'
11886 # Archives containing C++ object files must be created using
11887 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11888 # necessary to make sure instantiated templates are included
11890 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11893 # Green Hills C++ Compiler
11894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11896 # The C++ compiler must be used to create the archive.
11897 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11900 # GNU C++ compiler with Solaris linker
11901 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11902 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11903 if $CC --version | grep -v '^2\.7' > /dev/null; then
11904 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11905 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11906 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11908 # Commands to make compiler produce verbose output that lists
11909 # what "hidden" libraries, object files and flags are used when
11910 # linking a shared library.
11911 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11913 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11915 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11917 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11919 # Commands to make compiler produce verbose output that lists
11920 # what "hidden" libraries, object files and flags are used when
11921 # linking a shared library.
11922 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11925 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11927 solaris2.[0-5] | solaris2.[0-5].*) ;;
11929 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11936 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11937 no_undefined_flag_CXX='${wl}-z,text'
11938 archive_cmds_need_lc_CXX=no
11939 hardcode_shlibpath_var_CXX=no
11940 runpath_var='LD_RUN_PATH'
11942 case $cc_basename in
11944 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 sysv5* | sco3.2v5* | sco5v6*)
11954 # Note: We can NOT use -z defs as we might desire, because we do not
11955 # link with -lc, and that would cause any symbols used from libc to
11956 # always be unresolved, which means just about no library would
11957 # ever link correctly. If we're not using GNU ld we use -z text
11958 # though, which does catch some bad symbols but isn't as heavy-handed
11960 # For security reasons, it is highly recommended that you always
11961 # use absolute paths for naming shared libraries, and exclude the
11962 # DT_RUNPATH tag from executables and libraries. But doing so
11963 # requires that you compile everything twice, which is a pain.
11964 # So that behaviour is only enabled if SCOABSPATH is set to a
11965 # non-empty value in the environment. Most likely only useful for
11966 # creating official distributions of packages.
11967 # This is a hack until libtool officially supports absolute path
11968 # names for shared libraries.
11969 no_undefined_flag_CXX='${wl}-z,text'
11970 allow_undefined_flag_CXX='${wl}-z,nodefs'
11971 archive_cmds_need_lc_CXX=no
11972 hardcode_shlibpath_var_CXX=no
11973 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11974 hardcode_libdir_separator_CXX=':'
11975 link_all_deplibs_CXX=yes
11976 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11977 runpath_var='LD_RUN_PATH'
11979 case $cc_basename in
11981 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11985 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 case $cc_basename in
11993 # NonStop-UX NCC 3.20
11994 # FIXME: insert proper C++ library support
11998 # FIXME: insert proper C++ library support
12004 # FIXME: insert proper C++ library support
12008 # FIXME: insert proper C++ library support
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12013 $as_echo "$ld_shlibs_CXX" >&6; }
12014 test "$ld_shlibs_CXX" = no && can_build_shared=no
12019 cat > conftest.$ac_ext <<EOF
12023 Foo (void) { a = 0; }
12029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12030 (eval $ac_compile) 2>&5
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }; then
12034 # Parse the compiler output and extract the necessary
12035 # objects, libraries and library flags.
12037 # Sentinel used to keep track of whether or not we are before
12038 # the conftest object file.
12039 pre_test_object_deps_done=no
12041 # The `*' in the case matches for architectures that use `case' in
12042 # $output_verbose_cmd can trigger glob expansion during the loop
12043 # eval without this substitution.
12044 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12046 for p in `eval $output_verbose_link_cmd`; do
12050 # Some compilers place space between "-{L,R}" and the path.
12051 # Remove the space.
12052 if test $p = "-L" \
12053 || test $p = "-R"; then
12060 if test "$pre_test_object_deps_done" = no; then
12063 # Internal compiler library paths should come after those
12064 # provided the user. The postdeps already come after the
12065 # user supplied libs so there is no need to process them.
12066 if test -z "$compiler_lib_search_path_CXX"; then
12067 compiler_lib_search_path_CXX="${prev}${p}"
12069 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12072 # The "-l" case would never come before the object being
12073 # linked, so don't bother handling this case.
12076 if test -z "$postdeps_CXX"; then
12077 postdeps_CXX="${prev}${p}"
12079 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12085 # This assumes that the test object file only shows up
12086 # once in the compiler output.
12087 if test "$p" = "conftest.$objext"; then
12088 pre_test_object_deps_done=yes
12092 if test "$pre_test_object_deps_done" = no; then
12093 if test -z "$predep_objects_CXX"; then
12094 predep_objects_CXX="$p"
12096 predep_objects_CXX="$predep_objects_CXX $p"
12099 if test -z "$postdep_objects_CXX"; then
12100 postdep_objects_CXX="$p"
12102 postdep_objects_CXX="$postdep_objects_CXX $p"
12107 *) ;; # Ignore the rest.
12115 echo "libtool.m4: error: problem compiling CXX test program"
12118 $rm -f confest.$objext
12120 compiler_lib_search_dirs_CXX=
12121 if test -n "$compiler_lib_search_path_CXX"; then
12122 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12125 # PORTME: override above test on systems where it is broken
12128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12129 # hack all around it, let's just trust "g++" to DTRT.
12130 predep_objects_CXX=
12131 postdep_objects_CXX=
12136 case `$CC -V 2>&1 | sed 5q` in
12140 # The more standards-conforming stlport4 library is
12141 # incompatible with the Cstd library. Avoid specifying
12142 # it if it's in CXXFLAGS. Ignore libCrun as
12143 # -library=stlport4 depends on it.
12144 case " $CXX $CXXFLAGS " in
12145 *" -library=stlport4 "*)
12146 solaris_use_stlport4=yes
12149 if test "$solaris_use_stlport4" != yes; then
12150 postdeps_CXX='-library=Cstd -library=Crun'
12157 case $cc_basename in
12159 # The more standards-conforming stlport4 library is
12160 # incompatible with the Cstd library. Avoid specifying
12161 # it if it's in CXXFLAGS. Ignore libCrun as
12162 # -library=stlport4 depends on it.
12163 case " $CXX $CXXFLAGS " in
12164 *" -library=stlport4 "*)
12165 solaris_use_stlport4=yes
12169 # Adding this requires a known-good setup of shared libraries for
12170 # Sun compiler versions before 5.6, else PIC objects from an old
12171 # archive will be linked into the output, leading to subtle bugs.
12172 if test "$solaris_use_stlport4" != yes; then
12173 postdeps_CXX='-library=Cstd -library=Crun'
12180 case " $postdeps_CXX " in
12181 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12184 lt_prog_compiler_wl_CXX=
12185 lt_prog_compiler_pic_CXX=
12186 lt_prog_compiler_static_CXX=
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12191 # C++ specific cases for pic, static, wl, etc.
12192 if test "$GXX" = yes; then
12193 lt_prog_compiler_wl_CXX='-Wl,'
12194 lt_prog_compiler_static_CXX='-static'
12198 # All AIX code is PIC.
12199 if test "$host_cpu" = ia64; then
12200 # AIX 5 now supports IA64 processor
12201 lt_prog_compiler_static_CXX='-Bstatic'
12205 # FIXME: we need at least 68020 code to build shared libraries, but
12206 # adding the `-m68020' flag to GCC prevents building anything better,
12208 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12211 # PIC is the default for these OSes.
12213 mingw* | cygwin* | os2* | pw32*)
12214 # This hack is so that the source file can tell whether it is being
12215 # built for inclusion in a dll (and should export symbols for example).
12216 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12217 # (--disable-auto-import) libraries
12218 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12220 darwin* | rhapsody*)
12221 # PIC is the default on this platform
12222 # Common symbols not allowed in MH_DYLIB files
12223 lt_prog_compiler_pic_CXX='-fno-common'
12226 # DJGPP does not support shared libraries at all
12227 lt_prog_compiler_pic_CXX=
12230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12231 # Instead, we relocate shared libraries at runtime.
12234 if test -d /usr/nec; then
12235 lt_prog_compiler_pic_CXX=-Kconform_pic
12239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12240 # not for PA HP-UX.
12245 lt_prog_compiler_pic_CXX='-fPIC'
12250 lt_prog_compiler_pic_CXX='-fPIC'
12256 # All AIX code is PIC.
12257 if test "$host_cpu" = ia64; then
12258 # AIX 5 now supports IA64 processor
12259 lt_prog_compiler_static_CXX='-Bstatic'
12261 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12265 case $cc_basename in
12267 # Green Hills C++ Compiler
12268 # _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"
12273 # PIC is the default on this platform
12274 # Common symbols not allowed in MH_DYLIB files
12275 case $cc_basename in
12277 lt_prog_compiler_pic_CXX='-qnocommon'
12278 lt_prog_compiler_wl_CXX='-Wl,'
12283 case $cc_basename in
12285 lt_prog_compiler_pic_CXX='-KPIC'
12288 # Green Hills C++ Compiler
12289 lt_prog_compiler_pic_CXX='-pic'
12295 freebsd* | dragonfly*)
12296 # FreeBSD uses GNU C++
12298 hpux9* | hpux10* | hpux11*)
12299 case $cc_basename in
12301 lt_prog_compiler_wl_CXX='-Wl,'
12302 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12303 if test "$host_cpu" != ia64; then
12304 lt_prog_compiler_pic_CXX='+Z'
12308 lt_prog_compiler_wl_CXX='-Wl,'
12309 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12315 lt_prog_compiler_pic_CXX='+Z'
12324 # This is c89, which is MS Visual C++ (no shared libs)
12325 # Anyone wants to do a port?
12327 irix5* | irix6* | nonstopux*)
12328 case $cc_basename in
12330 lt_prog_compiler_wl_CXX='-Wl,'
12331 lt_prog_compiler_static_CXX='-non_shared'
12332 # CC pic flag -KPIC is the default.
12338 linux* | k*bsd*-gnu)
12339 case $cc_basename in
12342 lt_prog_compiler_wl_CXX='--backend -Wl,'
12343 lt_prog_compiler_pic_CXX='-fPIC'
12347 lt_prog_compiler_wl_CXX='-Wl,'
12348 lt_prog_compiler_pic_CXX='-KPIC'
12349 lt_prog_compiler_static_CXX='-static'
12352 # Portland Group C++ compiler.
12353 lt_prog_compiler_wl_CXX='-Wl,'
12354 lt_prog_compiler_pic_CXX='-fpic'
12355 lt_prog_compiler_static_CXX='-Bstatic'
12359 # Make sure the PIC flag is empty. It appears that all Alpha
12360 # Linux and Compaq Tru64 Unix objects are PIC.
12361 lt_prog_compiler_pic_CXX=
12362 lt_prog_compiler_static_CXX='-non_shared'
12365 case `$CC -V 2>&1 | sed 5q` in
12368 lt_prog_compiler_pic_CXX='-KPIC'
12369 lt_prog_compiler_static_CXX='-Bstatic'
12370 lt_prog_compiler_wl_CXX='-Qoption ld '
12381 case $cc_basename in
12383 lt_prog_compiler_pic_CXX='-W c,exportall'
12389 netbsd* | netbsdelf*-gnu)
12391 osf3* | osf4* | osf5*)
12392 case $cc_basename in
12394 lt_prog_compiler_wl_CXX='--backend -Wl,'
12397 # Rational C++ 2.4.1
12398 lt_prog_compiler_pic_CXX='-pic'
12401 # Digital/Compaq C++
12402 lt_prog_compiler_wl_CXX='-Wl,'
12403 # Make sure the PIC flag is empty. It appears that all Alpha
12404 # Linux and Compaq Tru64 Unix objects are PIC.
12405 lt_prog_compiler_pic_CXX=
12406 lt_prog_compiler_static_CXX='-non_shared'
12415 case $cc_basename in
12417 # Sun C++ 4.2, 5.x and Centerline C++
12418 lt_prog_compiler_pic_CXX='-KPIC'
12419 lt_prog_compiler_static_CXX='-Bstatic'
12420 lt_prog_compiler_wl_CXX='-Qoption ld '
12423 # Green Hills C++ Compiler
12424 lt_prog_compiler_pic_CXX='-PIC'
12431 case $cc_basename in
12434 lt_prog_compiler_pic_CXX='-pic'
12435 lt_prog_compiler_static_CXX='-Bstatic'
12439 lt_prog_compiler_pic_CXX='-pic'
12446 case $cc_basename in
12448 # NonStop-UX NCC 3.20
12449 lt_prog_compiler_pic_CXX='-KPIC'
12455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12456 case $cc_basename in
12458 lt_prog_compiler_wl_CXX='-Wl,'
12459 lt_prog_compiler_pic_CXX='-KPIC'
12460 lt_prog_compiler_static_CXX='-Bstatic'
12467 lt_prog_compiler_can_build_shared_CXX=no
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12473 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12476 # Check to make sure the PIC flag actually works.
12478 if test -n "$lt_prog_compiler_pic_CXX"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12481 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12482 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12483 $as_echo_n "(cached) " >&6
12485 lt_cv_prog_compiler_pic_works_CXX=no
12486 ac_outfile=conftest.$ac_objext
12487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12488 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12489 # Insert the option either (1) after the last *FLAGS variable, or
12490 # (2) before a word containing "conftest.", or (3) at the end.
12491 # Note that $ac_compile itself does not contain backslashes and begins
12492 # with a dollar sign (not a hyphen), so the echo should work correctly.
12493 # The option is referenced via a variable to avoid confusing sed.
12494 lt_compile=`echo "$ac_compile" | $SED \
12495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12497 -e 's:$: $lt_compiler_flag:'`
12498 (eval echo "\"\$as_me:12498: $lt_compile\"" >&5)
12499 (eval "$lt_compile" 2>conftest.err)
12501 cat conftest.err >&5
12502 echo "$as_me:12502: \$? = $ac_status" >&5
12503 if (exit $ac_status) && test -s "$ac_outfile"; then
12504 # The compiler can only warn and ignore the option if not recognized
12505 # So say no if there are warnings other than the usual output.
12506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12509 lt_cv_prog_compiler_pic_works_CXX=yes
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12516 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12518 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12519 case $lt_prog_compiler_pic_CXX in
12521 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12524 lt_prog_compiler_pic_CXX=
12525 lt_prog_compiler_can_build_shared_CXX=no
12530 # For platforms which do not support PIC, -DPIC is meaningless:
12532 lt_prog_compiler_pic_CXX=
12535 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12540 # Check to make sure the static flag actually works.
12542 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12545 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12546 $as_echo_n "(cached) " >&6
12548 lt_cv_prog_compiler_static_works_CXX=no
12549 save_LDFLAGS="$LDFLAGS"
12550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12553 # The linker can only warn and ignore the option if not recognized
12554 # So say no if there are warnings
12555 if test -s conftest.err; then
12556 # Append any errors to the config.log.
12557 cat conftest.err 1>&5
12558 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12560 if diff conftest.exp conftest.er2 >/dev/null; then
12561 lt_cv_prog_compiler_static_works_CXX=yes
12564 lt_cv_prog_compiler_static_works_CXX=yes
12568 LDFLAGS="$save_LDFLAGS"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12572 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12574 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12577 lt_prog_compiler_static_CXX=
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12583 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12584 $as_echo_n "(cached) " >&6
12586 lt_cv_prog_compiler_c_o_CXX=no
12587 $rm -r conftest 2>/dev/null
12591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12593 lt_compiler_flag="-o out/conftest2.$ac_objext"
12594 # Insert the option either (1) after the last *FLAGS variable, or
12595 # (2) before a word containing "conftest.", or (3) at the end.
12596 # Note that $ac_compile itself does not contain backslashes and begins
12597 # with a dollar sign (not a hyphen), so the echo should work correctly.
12598 lt_compile=`echo "$ac_compile" | $SED \
12599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12601 -e 's:$: $lt_compiler_flag:'`
12602 (eval echo "\"\$as_me:12602: $lt_compile\"" >&5)
12603 (eval "$lt_compile" 2>out/conftest.err)
12605 cat out/conftest.err >&5
12606 echo "$as_me:12606: \$? = $ac_status" >&5
12607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12609 # The compiler can only warn and ignore the option if not recognized
12610 # So say no if there are warnings
12611 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12614 lt_cv_prog_compiler_c_o_CXX=yes
12619 # SGI C++ compiler will create directory out/ii_files/ for
12620 # template instantiation
12621 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12622 $rm out/* && rmdir out
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12629 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12632 hard_links="nottested"
12633 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12634 # do not overwrite the value of need_locks provided by the user
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12636 $as_echo_n "checking if we can lock with hard links... " >&6; }
12639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12641 ln conftest.a conftest.b 2>&5 || hard_links=no
12642 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12644 $as_echo "$hard_links" >&6; }
12645 if test "$hard_links" = no; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12647 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12655 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12660 # If we're using GNU nm, then we don't want the "-C" option.
12661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12662 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12663 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'
12665 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'
12669 export_symbols_cmds_CXX="$ltdll_cmds"
12672 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'
12674 linux* | k*bsd*-gnu)
12675 link_all_deplibs_CXX=no
12678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12681 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12684 $as_echo "$ld_shlibs_CXX" >&6; }
12685 test "$ld_shlibs_CXX" = no && can_build_shared=no
12688 # Do we need to explicitly link libc?
12690 case "x$archive_cmds_need_lc_CXX" in
12692 # Assume -lc should be added
12693 archive_cmds_need_lc_CXX=yes
12695 if test "$enable_shared" = yes && test "$GCC" = yes; then
12696 case $archive_cmds_CXX in
12698 # FIXME: we may have to deal with multi-command sequences.
12701 # Test whether the compiler implicitly links with -lc since on some
12702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12703 # to ld, don't add -lc before -lgcc.
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12710 (eval $ac_compile) 2>&5
12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713 test $ac_status = 0; } 2>conftest.err; then
12716 libobjs=conftest.$ac_objext
12718 wl=$lt_prog_compiler_wl_CXX
12719 pic_flag=$lt_prog_compiler_pic_CXX
12725 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12726 allow_undefined_flag_CXX=
12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12728 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; }
12733 archive_cmds_need_lc_CXX=no
12735 archive_cmds_need_lc_CXX=yes
12737 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12739 cat conftest.err 1>&5
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12743 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12751 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12752 library_names_spec=
12753 libname_spec='lib$name'
12757 postuninstall_cmds=
12761 shlibpath_overrides_runpath=unknown
12763 dynamic_linker="$host_os ld.so"
12764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12766 need_lib_prefix=unknown
12767 hardcode_into_libs=no
12769 # when you set need_version to no, make sure it does not cause -set_version
12770 # flags to be left without arguments
12771 need_version=unknown
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12777 shlibpath_var=LIBPATH
12779 # AIX 3 has no versioning support, so we append a major version to the name.
12780 soname_spec='${libname}${release}${shared_ext}$major'
12787 hardcode_into_libs=yes
12788 if test "$host_cpu" = ia64; then
12789 # AIX 5 supports IA64
12790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12791 shlibpath_var=LD_LIBRARY_PATH
12793 # With GCC up to 2.95.x, collect2 would create an import file
12794 # for dependence libraries. The import file would start with
12795 # the line `#! .'. This would cause the generated library to
12796 # depend on `.', always an invalid library. This was fixed in
12797 # development snapshots of GCC prior to 3.0.
12799 aix4 | aix4.[01] | aix4.[01].*)
12800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12802 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12805 can_build_shared=no
12809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12810 # soname into executable. Probably we can add versioning support to
12811 # collect2, so additional links can be useful in future.
12812 if test "$aix_use_runtimelinking" = yes; then
12813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12814 # instead of lib<name>.a to let people know that these are not
12815 # typical AIX shared libraries.
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 # We preserve .a as extension for shared libraries through AIX4.2
12819 # and later when we are not doing run time linking.
12820 library_names_spec='${libname}${release}.a $libname.a'
12821 soname_spec='${libname}${release}${shared_ext}$major'
12823 shlibpath_var=LIBPATH
12828 library_names_spec='$libname.ixlibrary $libname.a'
12829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12830 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'
12834 library_names_spec='${libname}${shared_ext}'
12835 dynamic_linker="$host_os ld.so"
12836 shlibpath_var=LIBRARY_PATH
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12848 # the default ld.so.conf also contains /usr/contrib/lib and
12849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12850 # libtool to hard-code these into programs
12853 cygwin* | mingw* | pw32*)
12854 version_type=windows
12859 case $GCC,$host_os in
12860 yes,cygwin* | yes,mingw* | yes,pw32*)
12861 library_names_spec='$libname.dll.a'
12862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12863 postinstall_cmds='base_file=`basename \${file}`~
12864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12865 dldir=$destdir/`dirname \$dlpath`~
12866 test -d \$dldir || mkdir -p \$dldir~
12867 $install_prog $dir/$dlname \$dldir/$dlname~
12868 chmod a+x \$dldir/$dlname'
12869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12870 dlpath=$dir/\$dldll~
12872 shlibpath_overrides_runpath=yes
12876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12877 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12878 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12881 # MinGW DLLs use traditional 'lib' prefix
12882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12884 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12885 # It is most probably a Windows format PATH printed by
12886 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12887 # path with ; separators, and with drive letters. We can handle the
12888 # drive letters (cygwin fileutils understands them), so leave them,
12889 # especially as we might pass files found there to a mingw objdump,
12890 # which wouldn't understand a cygwinified path. Ahh.
12891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12897 # pw32 DLLs use 'pw' prefix rather than 'lib'
12898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12907 dynamic_linker='Win32 ld.exe'
12908 # FIXME: first we should search . and the directory the executable is in
12912 darwin* | rhapsody*)
12913 dynamic_linker="$host_os dyld"
12914 version_type=darwin
12917 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12918 soname_spec='${libname}${release}${major}$shared_ext'
12919 shlibpath_overrides_runpath=yes
12920 shlibpath_var=DYLD_LIBRARY_PATH
12921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12931 soname_spec='${libname}${release}${shared_ext}$major'
12932 shlibpath_var=LD_LIBRARY_PATH
12939 freebsd* | dragonfly*)
12940 # DragonFly does not have aout. When/if they implement a new
12941 # versioning mechanism, adjust this.
12942 if test -x /usr/bin/objformat; then
12943 objformat=`/usr/bin/objformat`
12946 freebsd[123]*) objformat=aout ;;
12947 *) objformat=elf ;;
12950 version_type=freebsd-$objformat
12951 case $version_type in
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12962 shlibpath_var=LD_LIBRARY_PATH
12965 shlibpath_overrides_runpath=yes
12967 freebsd3.[01]* | freebsdelf3.[01]*)
12968 shlibpath_overrides_runpath=yes
12969 hardcode_into_libs=yes
12971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12973 shlibpath_overrides_runpath=no
12974 hardcode_into_libs=yes
12976 *) # from 4.6 on, and DragonFly
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12988 soname_spec='${libname}${release}${shared_ext}$major'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 hardcode_into_libs=yes
12993 hpux9* | hpux10* | hpux11*)
12994 # Give a soname corresponding to the major version so that dld.sl refuses to
12995 # link against other versions.
13002 hardcode_into_libs=yes
13003 dynamic_linker="$host_os dld.so"
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13008 if test "X$HPUX_IA64_MODE" = X32; then
13009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13017 hardcode_into_libs=yes
13018 dynamic_linker="$host_os dld.sl"
13019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13028 dynamic_linker="$host_os dld.sl"
13029 shlibpath_var=SHLIB_PATH
13030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13035 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13036 postinstall_cmds='chmod 555 $lib'
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13044 soname_spec='${libname}${release}${shared_ext}$major'
13045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 shlibpath_overrides_runpath=no
13048 hardcode_into_libs=yes
13051 irix5* | irix6* | nonstopux*)
13053 nonstopux*) version_type=nonstopux ;;
13055 if test "$lt_cv_prog_gnu_ld" = yes; then
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13066 irix5* | nonstopux*)
13067 libsuff= shlibsuff=
13070 case $LD in # libtool.m4 will add one of these switches to LD
13071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13072 libsuff= shlibsuff= libmagic=32-bit;;
13073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13074 libsuff=32 shlibsuff=N32 libmagic=N32;;
13075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13077 *) libsuff= shlibsuff= libmagic=never-match;;
13081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13082 shlibpath_overrides_runpath=no
13083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13085 hardcode_into_libs=yes
13088 # No shared lib support for Linux oldld, aout, or coff.
13089 linux*oldld* | linux*aout* | linux*coff*)
13093 # This must be Linux ELF.
13094 linux* | k*bsd*-gnu)
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13099 soname_spec='${libname}${release}${shared_ext}$major'
13100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=no
13103 # This implies no fast_install, which is unacceptable.
13104 # Some rework will be needed to allow for fast_install
13105 # before this can be enabled.
13106 hardcode_into_libs=yes
13108 # Append ld.so.conf contents to the search path
13109 if test -f /etc/ld.so.conf; then
13110 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' ' '`
13111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13114 # We used to test for /lib/ld.so.1 and disable shared libraries on
13115 # powerpc, because MkLinux only supported shared libraries with the
13116 # GNU dynamic linker. Since this was broken with cross compilers,
13117 # most powerpc-linux boxes support dynamic linking these days and
13118 # people can always --disable-shared, the test was removed, and we
13119 # assume the GNU/Linux dynamic linker is in use.
13120 dynamic_linker='GNU/Linux ld.so'
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 shlibpath_overrides_runpath=no
13131 hardcode_into_libs=yes
13132 dynamic_linker='NetBSD ld.elf_so'
13139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13142 dynamic_linker='NetBSD (a.out) ld.so'
13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13145 soname_spec='${libname}${release}${shared_ext}$major'
13146 dynamic_linker='NetBSD ld.elf_so'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=yes
13150 hardcode_into_libs=yes
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 shlibpath_overrides_runpath=yes
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13165 soname_spec='${libname}${release}${shared_ext}$major'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 shlibpath_overrides_runpath=yes
13172 sys_lib_dlsearch_path_spec="/usr/lib"
13174 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13176 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13177 *) need_version=no ;;
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13184 openbsd2.[89] | openbsd2.[89].*)
13185 shlibpath_overrides_runpath=no
13188 shlibpath_overrides_runpath=yes
13192 shlibpath_overrides_runpath=yes
13197 libname_spec='$name'
13200 library_names_spec='$libname${shared_ext} $libname.a'
13201 dynamic_linker='OS/2 ld.exe'
13202 shlibpath_var=LIBPATH
13205 osf3* | osf4* | osf5*)
13209 soname_spec='${libname}${release}${shared_ext}$major'
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13213 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13225 soname_spec='${libname}${release}${shared_ext}$major'
13226 shlibpath_var=LD_LIBRARY_PATH
13227 shlibpath_overrides_runpath=yes
13228 hardcode_into_libs=yes
13229 # ldd complains unless libraries are executable
13230 postinstall_cmds='chmod +x $lib'
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=yes
13239 if test "$with_gnu_ld" = yes; then
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 case $host_vendor in
13252 shlibpath_overrides_runpath=no
13254 export_dynamic_flag_spec='${wl}-Blargedynsym'
13255 runpath_var=LD_RUN_PATH
13263 shlibpath_overrides_runpath=no
13264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13270 if test -d /usr/nec ;then
13272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13273 soname_spec='$libname${shared_ext}.$major'
13274 shlibpath_var=LD_LIBRARY_PATH
13278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13279 version_type=freebsd-elf
13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13283 soname_spec='${libname}${release}${shared_ext}$major'
13284 shlibpath_var=LD_LIBRARY_PATH
13285 hardcode_into_libs=yes
13286 if test "$with_gnu_ld" = yes; then
13287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13288 shlibpath_overrides_runpath=no
13290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13291 shlibpath_overrides_runpath=yes
13294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13298 sys_lib_dlsearch_path_spec='/usr/lib'
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13313 $as_echo "$dynamic_linker" >&6; }
13314 test "$dynamic_linker" = no && can_build_shared=no
13316 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13317 $as_echo_n "(cached) " >&6
13319 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13322 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13323 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13332 if test "$GCC" = yes; then
13333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13337 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13338 hardcode_action_CXX=
13339 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13340 test -n "$runpath_var_CXX" || \
13341 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13343 # We can hardcode non-existant directories.
13344 if test "$hardcode_direct_CXX" != no &&
13345 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13346 # have to relink, otherwise we might link with an installed library
13347 # when we should be linking with a yet-to-be-installed one
13348 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13349 test "$hardcode_minus_L_CXX" != no; then
13350 # Linking always hardcodes the temporary library directory.
13351 hardcode_action_CXX=relink
13353 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13354 hardcode_action_CXX=immediate
13357 # We cannot hardcode anything, or else we can only hardcode existing
13359 hardcode_action_CXX=unsupported
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13362 $as_echo "$hardcode_action_CXX" >&6; }
13364 if test "$hardcode_action_CXX" = relink; then
13365 # Fast installation is not supported
13366 enable_fast_install=no
13367 elif test "$shlibpath_overrides_runpath" = yes ||
13368 test "$enable_shared" = no; then
13369 # Fast installation is not necessary
13370 enable_fast_install=needless
13374 # The else clause should only fire when bootstrapping the
13375 # libtool distribution, otherwise you forgot to ship ltmain.sh
13376 # with your package, and you will get complaints that there are
13377 # no rules to generate ltmain.sh.
13378 if test -f "$ltmain"; then
13379 # See if we are running on zsh, and set the options which allow our commands through
13380 # without removal of \ escapes.
13381 if test -n "${ZSH_VERSION+set}" ; then
13382 setopt NO_GLOB_SUBST
13384 # Now quote all the things that may contain metacharacters while being
13385 # careful not to overquote the AC_SUBSTed values. We take copies of the
13386 # variables and quote the copies for generation of the libtool script.
13387 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13389 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13390 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13391 deplibs_check_method reload_flag reload_cmds need_locks \
13392 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13393 lt_cv_sys_global_symbol_to_c_name_address \
13394 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13395 old_postinstall_cmds old_postuninstall_cmds \
13399 lt_prog_compiler_wl_CXX \
13400 lt_prog_compiler_pic_CXX \
13401 lt_prog_compiler_static_CXX \
13402 lt_prog_compiler_no_builtin_flag_CXX \
13403 export_dynamic_flag_spec_CXX \
13404 thread_safe_flag_spec_CXX \
13405 whole_archive_flag_spec_CXX \
13406 enable_shared_with_static_runtimes_CXX \
13407 old_archive_cmds_CXX \
13408 old_archive_from_new_cmds_CXX \
13409 predep_objects_CXX \
13410 postdep_objects_CXX \
13413 compiler_lib_search_path_CXX \
13414 compiler_lib_search_dirs_CXX \
13416 archive_expsym_cmds_CXX \
13417 postinstall_cmds_CXX \
13418 postuninstall_cmds_CXX \
13419 old_archive_from_expsyms_cmds_CXX \
13420 allow_undefined_flag_CXX \
13421 no_undefined_flag_CXX \
13422 export_symbols_cmds_CXX \
13423 hardcode_libdir_flag_spec_CXX \
13424 hardcode_libdir_flag_spec_ld_CXX \
13425 hardcode_libdir_separator_CXX \
13426 hardcode_automatic_CXX \
13428 module_expsym_cmds_CXX \
13429 lt_cv_prog_compiler_c_o_CXX \
13430 fix_srcfile_path_CXX \
13431 exclude_expsyms_CXX \
13432 include_expsyms_CXX; do
13435 old_archive_cmds_CXX | \
13436 old_archive_from_new_cmds_CXX | \
13437 archive_cmds_CXX | \
13438 archive_expsym_cmds_CXX | \
13439 module_cmds_CXX | \
13440 module_expsym_cmds_CXX | \
13441 old_archive_from_expsyms_cmds_CXX | \
13442 export_symbols_cmds_CXX | \
13443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13444 postinstall_cmds | postuninstall_cmds | \
13445 old_postinstall_cmds | old_postuninstall_cmds | \
13446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13447 # Double-quote double-evaled strings.
13448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13457 *'\$0 --fallback-echo"')
13458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13464 cat <<__EOF__ >> "$cfgfile"
13465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13469 # Shell to use when invoking shell scripts.
13472 # Whether or not to build shared libraries.
13473 build_libtool_libs=$enable_shared
13475 # Whether or not to build static libraries.
13476 build_old_libs=$enable_static
13478 # Whether or not to add -lc for building shared libraries.
13479 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13481 # Whether or not to disallow shared libs when runtime libs are static
13482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13484 # Whether or not to optimize for fast installation.
13485 fast_install=$enable_fast_install
13488 host_alias=$host_alias
13492 # The build system.
13493 build_alias=$build_alias
13497 # An echo program that does not interpret backslashes.
13502 AR_FLAGS=$lt_AR_FLAGS
13507 # LTCC compiler flags.
13508 LTCFLAGS=$lt_LTCFLAGS
13510 # A language-specific compiler.
13511 CC=$lt_compiler_CXX
13513 # Is the compiler the GNU C compiler?
13519 # The linker used to build libraries.
13522 # Whether we need hard or soft links.
13525 # A BSD-compatible nm program.
13528 # A symbol stripping program
13531 # Used to examine libraries when file_magic_cmd begins "file"
13532 MAGIC_CMD=$MAGIC_CMD
13534 # Used on cygwin: DLL creation program.
13537 # Used on cygwin: object dumper.
13540 # Used on cygwin: assembler.
13543 # The name of the directory that contains temporary libtool files.
13546 # How to create reloadable object files.
13547 reload_flag=$lt_reload_flag
13548 reload_cmds=$lt_reload_cmds
13550 # How to pass a linker flag through the compiler.
13551 wl=$lt_lt_prog_compiler_wl_CXX
13553 # Object file suffix (normally "o").
13554 objext="$ac_objext"
13556 # Old archive suffix (normally "a").
13559 # Shared library suffix (normally ".so").
13560 shrext_cmds='$shrext_cmds'
13562 # Executable file suffix (normally "").
13565 # Additional compiler flags for building library objects.
13566 pic_flag=$lt_lt_prog_compiler_pic_CXX
13569 # What is the maximum length of a command?
13570 max_cmd_len=$lt_cv_sys_max_cmd_len
13572 # Does compiler simultaneously support -c and -o options?
13573 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13575 # Must we lock files when doing compilation?
13576 need_locks=$lt_need_locks
13578 # Do we need the lib prefix for modules?
13579 need_lib_prefix=$need_lib_prefix
13581 # Do we need a version for libraries?
13582 need_version=$need_version
13584 # Whether dlopen is supported.
13585 dlopen_support=$enable_dlopen
13587 # Whether dlopen of programs is supported.
13588 dlopen_self=$enable_dlopen_self
13590 # Whether dlopen of statically linked programs is supported.
13591 dlopen_self_static=$enable_dlopen_self_static
13593 # Compiler flag to prevent dynamic linking.
13594 link_static_flag=$lt_lt_prog_compiler_static_CXX
13596 # Compiler flag to turn off builtin functions.
13597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13599 # Compiler flag to allow reflexive dlopens.
13600 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13602 # Compiler flag to generate shared objects directly from archives.
13603 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13605 # Compiler flag to generate thread-safe objects.
13606 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13608 # Library versioning type.
13609 version_type=$version_type
13611 # Format of library name prefix.
13612 libname_spec=$lt_libname_spec
13614 # List of archive names. First name is the real one, the rest are links.
13615 # The last name is the one that the linker finds with -lNAME.
13616 library_names_spec=$lt_library_names_spec
13618 # The coded name of the library, if different from the real name.
13619 soname_spec=$lt_soname_spec
13621 # Commands used to build and install an old-style archive.
13623 old_archive_cmds=$lt_old_archive_cmds_CXX
13624 old_postinstall_cmds=$lt_old_postinstall_cmds
13625 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13627 # Create an old-style archive from a shared archive.
13628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13630 # Create a temporary old-style archive to link instead of a shared archive.
13631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13633 # Commands used to build and install a shared archive.
13634 archive_cmds=$lt_archive_cmds_CXX
13635 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13636 postinstall_cmds=$lt_postinstall_cmds
13637 postuninstall_cmds=$lt_postuninstall_cmds
13639 # Commands used to build a loadable module (assumed same as above if empty)
13640 module_cmds=$lt_module_cmds_CXX
13641 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13643 # Commands to strip libraries.
13644 old_striplib=$lt_old_striplib
13645 striplib=$lt_striplib
13647 # Dependencies to place before the objects being linked to create a
13649 predep_objects=$lt_predep_objects_CXX
13651 # Dependencies to place after the objects being linked to create a
13653 postdep_objects=$lt_postdep_objects_CXX
13655 # Dependencies to place before the objects being linked to create a
13657 predeps=$lt_predeps_CXX
13659 # Dependencies to place after the objects being linked to create a
13661 postdeps=$lt_postdeps_CXX
13663 # The directories searched by this compiler when creating a shared
13665 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13667 # The library search path used internally by the compiler when linking
13668 # a shared library.
13669 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13671 # Method to check whether dependent libraries are shared objects.
13672 deplibs_check_method=$lt_deplibs_check_method
13674 # Command to use when deplibs_check_method == file_magic.
13675 file_magic_cmd=$lt_file_magic_cmd
13677 # Flag that allows shared libraries with undefined symbols to be built.
13678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13680 # Flag that forces no undefined symbols.
13681 no_undefined_flag=$lt_no_undefined_flag_CXX
13683 # Commands used to finish a libtool library installation in a directory.
13684 finish_cmds=$lt_finish_cmds
13686 # Same as above, but a single script fragment to be evaled but not shown.
13687 finish_eval=$lt_finish_eval
13689 # Take the output of nm and produce a listing of raw symbols and C names.
13690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13692 # Transform the output of nm in a proper C declaration
13693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13695 # Transform the output of nm in a C name address pair
13696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13698 # This is the shared library runtime path variable.
13699 runpath_var=$runpath_var
13701 # This is the shared library path variable.
13702 shlibpath_var=$shlibpath_var
13704 # Is shlibpath searched before the hard-coded library search path?
13705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13707 # How to hardcode a shared library path into an executable.
13708 hardcode_action=$hardcode_action_CXX
13710 # Whether we should hardcode library paths into libraries.
13711 hardcode_into_libs=$hardcode_into_libs
13713 # Flag to hardcode \$libdir into a binary during linking.
13714 # This must work even if \$libdir does not exist.
13715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13717 # If ld is used when linking, flag to hardcode \$libdir into
13718 # a binary during linking. This must work even if \$libdir does
13720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13722 # Whether we need a single -rpath flag with a separated argument.
13723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13726 # resulting binary.
13727 hardcode_direct=$hardcode_direct_CXX
13729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13730 # resulting binary.
13731 hardcode_minus_L=$hardcode_minus_L_CXX
13733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13734 # the resulting binary.
13735 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13737 # Set to yes if building a shared library automatically hardcodes DIR into the library
13738 # and all subsequent libraries and executables linked against it.
13739 hardcode_automatic=$hardcode_automatic_CXX
13741 # Variables whose values should be saved in libtool wrapper scripts and
13742 # restored at relink time.
13743 variables_saved_for_relink="$variables_saved_for_relink"
13745 # Whether libtool must link a program against all its dependency libraries.
13746 link_all_deplibs=$link_all_deplibs_CXX
13748 # Compile-time system search path for libraries
13749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13751 # Run-time system search path for libraries
13752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13754 # Fix the shell variable \$srcfile for the compiler.
13755 fix_srcfile_path=$lt_fix_srcfile_path
13757 # Set to yes if exported symbols are required.
13758 always_export_symbols=$always_export_symbols_CXX
13760 # The commands to list exported symbols.
13761 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13763 # The commands to extract the exported symbol list from a shared archive.
13764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13766 # Symbols that should not be listed in the preloaded symbols.
13767 exclude_expsyms=$lt_exclude_expsyms_CXX
13769 # Symbols that must always be exported.
13770 include_expsyms=$lt_include_expsyms_CXX
13772 # ### END LIBTOOL TAG CONFIG: $tagname
13778 # If there is no Makefile yet, we rely on a make rule to execute
13779 # `config.status --recheck' to rerun these tests and create the
13780 # libtool script then.
13781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13782 if test -f "$ltmain_in"; then
13783 test -f Makefile && make "$ltmain"
13789 ac_cpp='$CPP $CPPFLAGS'
13790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13798 with_gnu_ldcxx=$with_gnu_ld
13799 with_gnu_ld=$lt_save_with_gnu_ld
13800 lt_cv_path_LDCXX=$lt_cv_path_LD
13801 lt_cv_path_LD=$lt_save_path_LD
13802 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13803 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13811 if test -n "$F77" && test "X$F77" != "Xno"; then
13814 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13815 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13819 archive_cmds_need_lc_F77=no
13820 allow_undefined_flag_F77=
13821 always_export_symbols_F77=no
13822 archive_expsym_cmds_F77=
13823 export_dynamic_flag_spec_F77=
13824 hardcode_direct_F77=no
13825 hardcode_libdir_flag_spec_F77=
13826 hardcode_libdir_flag_spec_ld_F77=
13827 hardcode_libdir_separator_F77=
13828 hardcode_minus_L_F77=no
13829 hardcode_automatic_F77=no
13831 module_expsym_cmds_F77=
13832 link_all_deplibs_F77=unknown
13833 old_archive_cmds_F77=$old_archive_cmds
13834 no_undefined_flag_F77=
13835 whole_archive_flag_spec_F77=
13836 enable_shared_with_static_runtimes_F77=no
13838 # Source file extension for f77 test sources.
13841 # Object file extension for compiled f77 test sources.
13845 # Code to be used in simple compile tests
13846 lt_simple_compile_test_code="\
13852 # Code to be used in simple link tests
13853 lt_simple_link_test_code="\
13858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13860 # If no C compiler was specified, use CC.
13863 # If no C compiler flags were specified, use CFLAGS.
13864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13866 # Allow CC to be a program name with arguments.
13870 # save warnings/boilerplate of simple test code
13871 ac_outfile=conftest.$ac_objext
13872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13874 _lt_compiler_boilerplate=`cat conftest.err`
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_linker_boilerplate=`cat conftest.err`
13884 # Allow CC to be a program name with arguments.
13889 for cc_temp in $compiler""; do
13891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13903 $as_echo "$can_build_shared" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13906 $as_echo_n "checking whether to build shared libraries... " >&6; }
13907 test "$can_build_shared" = "no" && enable_shared=no
13909 # On AIX, shared libraries and static libraries use the same namespace, and
13910 # are all built from PIC.
13913 test "$enable_shared" = yes && enable_static=no
13914 if test -n "$RANLIB"; then
13915 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13916 postinstall_cmds='$RANLIB $lib'
13920 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13921 test "$enable_shared" = yes && enable_static=no
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13926 $as_echo "$enable_shared" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13929 $as_echo_n "checking whether to build static libraries... " >&6; }
13930 # Make sure either enable_shared or enable_static is yes.
13931 test "$enable_shared" = yes || enable_static=yes
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13933 $as_echo "$enable_static" >&6; }
13938 lt_prog_compiler_wl_F77=
13939 lt_prog_compiler_pic_F77=
13940 lt_prog_compiler_static_F77=
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13945 if test "$GCC" = yes; then
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 lt_prog_compiler_static_F77='-static'
13951 # All AIX code is PIC.
13952 if test "$host_cpu" = ia64; then
13953 # AIX 5 now supports IA64 processor
13954 lt_prog_compiler_static_F77='-Bstatic'
13959 # FIXME: we need at least 68020 code to build shared libraries, but
13960 # adding the `-m68020' flag to GCC prevents building anything better,
13962 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13966 # PIC is the default for these OSes.
13969 mingw* | cygwin* | pw32* | os2*)
13970 # This hack is so that the source file can tell whether it is being
13971 # built for inclusion in a dll (and should export symbols for example).
13972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13973 # (--disable-auto-import) libraries
13974 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13977 darwin* | rhapsody*)
13978 # PIC is the default on this platform
13979 # Common symbols not allowed in MH_DYLIB files
13980 lt_prog_compiler_pic_F77='-fno-common'
13984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13985 # Instead, we relocate shared libraries at runtime.
13989 # Just because we use GCC doesn't mean we suddenly get shared libraries
13990 # on systems that don't support them.
13991 lt_prog_compiler_can_build_shared_F77=no
13996 if test -d /usr/nec; then
13997 lt_prog_compiler_pic_F77=-Kconform_pic
14002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14003 # not for PA HP-UX.
14009 lt_prog_compiler_pic_F77='-fPIC'
14015 lt_prog_compiler_pic_F77='-fPIC'
14019 # PORTME Check for flag to pass linker flags through the system compiler.
14022 lt_prog_compiler_wl_F77='-Wl,'
14023 if test "$host_cpu" = ia64; then
14024 # AIX 5 now supports IA64 processor
14025 lt_prog_compiler_static_F77='-Bstatic'
14027 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14031 # PIC is the default on this platform
14032 # Common symbols not allowed in MH_DYLIB files
14033 case $cc_basename in
14035 lt_prog_compiler_pic_F77='-qnocommon'
14036 lt_prog_compiler_wl_F77='-Wl,'
14041 mingw* | cygwin* | pw32* | os2*)
14042 # This hack is so that the source file can tell whether it is being
14043 # built for inclusion in a dll (and should export symbols for example).
14044 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14047 hpux9* | hpux10* | hpux11*)
14048 lt_prog_compiler_wl_F77='-Wl,'
14049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14050 # not for PA HP-UX.
14056 lt_prog_compiler_pic_F77='+Z'
14059 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14060 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14063 irix5* | irix6* | nonstopux*)
14064 lt_prog_compiler_wl_F77='-Wl,'
14065 # PIC (with -KPIC) is the default.
14066 lt_prog_compiler_static_F77='-non_shared'
14070 lt_prog_compiler_pic_F77='-KPIC'
14071 lt_prog_compiler_static_F77='-Bstatic'
14074 linux* | k*bsd*-gnu)
14075 case $cc_basename in
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_pic_F77='-KPIC'
14079 lt_prog_compiler_static_F77='-static'
14081 pgcc* | pgf77* | pgf90* | pgf95*)
14082 # Portland Group compilers (*not* the Pentium gcc compiler,
14083 # which looks to be a dead project)
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_pic_F77='-fpic'
14086 lt_prog_compiler_static_F77='-Bstatic'
14089 lt_prog_compiler_wl_F77='-Wl,'
14090 # All Alpha code is PIC.
14091 lt_prog_compiler_static_F77='-non_shared'
14094 case `$CC -V 2>&1 | sed 5q` in
14097 lt_prog_compiler_pic_F77='-KPIC'
14098 lt_prog_compiler_static_F77='-Bstatic'
14099 lt_prog_compiler_wl_F77='-Wl,'
14102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14103 lt_prog_compiler_pic_F77='-KPIC'
14104 lt_prog_compiler_static_F77='-Bstatic'
14105 lt_prog_compiler_wl_F77=''
14112 osf3* | osf4* | osf5*)
14113 lt_prog_compiler_wl_F77='-Wl,'
14114 # All OSF/1 code is PIC.
14115 lt_prog_compiler_static_F77='-non_shared'
14119 lt_prog_compiler_static_F77='-non_shared'
14123 lt_prog_compiler_pic_F77='-KPIC'
14124 lt_prog_compiler_static_F77='-Bstatic'
14125 case $cc_basename in
14126 f77* | f90* | f95*)
14127 lt_prog_compiler_wl_F77='-Qoption ld ';;
14129 lt_prog_compiler_wl_F77='-Wl,';;
14134 lt_prog_compiler_wl_F77='-Qoption ld '
14135 lt_prog_compiler_pic_F77='-PIC'
14136 lt_prog_compiler_static_F77='-Bstatic'
14139 sysv4 | sysv4.2uw2* | sysv4.3*)
14140 lt_prog_compiler_wl_F77='-Wl,'
14141 lt_prog_compiler_pic_F77='-KPIC'
14142 lt_prog_compiler_static_F77='-Bstatic'
14146 if test -d /usr/nec ;then
14147 lt_prog_compiler_pic_F77='-Kconform_pic'
14148 lt_prog_compiler_static_F77='-Bstatic'
14152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14153 lt_prog_compiler_wl_F77='-Wl,'
14154 lt_prog_compiler_pic_F77='-KPIC'
14155 lt_prog_compiler_static_F77='-Bstatic'
14159 lt_prog_compiler_wl_F77='-Wl,'
14160 lt_prog_compiler_can_build_shared_F77=no
14164 lt_prog_compiler_pic_F77='-pic'
14165 lt_prog_compiler_static_F77='-Bstatic'
14169 lt_prog_compiler_can_build_shared_F77=no
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14175 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14178 # Check to make sure the PIC flag actually works.
14180 if test -n "$lt_prog_compiler_pic_F77"; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14184 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
14185 $as_echo_n "(cached) " >&6
14187 lt_cv_prog_compiler_pic_works_F77=no
14188 ac_outfile=conftest.$ac_objext
14189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14190 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14191 # Insert the option either (1) after the last *FLAGS variable, or
14192 # (2) before a word containing "conftest.", or (3) at the end.
14193 # Note that $ac_compile itself does not contain backslashes and begins
14194 # with a dollar sign (not a hyphen), so the echo should work correctly.
14195 # The option is referenced via a variable to avoid confusing sed.
14196 lt_compile=`echo "$ac_compile" | $SED \
14197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14199 -e 's:$: $lt_compiler_flag:'`
14200 (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14201 (eval "$lt_compile" 2>conftest.err)
14203 cat conftest.err >&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 if (exit $ac_status) && test -s "$ac_outfile"; then
14206 # The compiler can only warn and ignore the option if not recognized
14207 # So say no if there are warnings other than the usual output.
14208 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14210 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14211 lt_cv_prog_compiler_pic_works_F77=yes
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14218 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14220 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14221 case $lt_prog_compiler_pic_F77 in
14223 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14226 lt_prog_compiler_pic_F77=
14227 lt_prog_compiler_can_build_shared_F77=no
14232 # For platforms which do not support PIC, -DPIC is meaningless:
14234 lt_prog_compiler_pic_F77=
14237 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14242 # Check to make sure the static flag actually works.
14244 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14247 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
14248 $as_echo_n "(cached) " >&6
14250 lt_cv_prog_compiler_static_works_F77=no
14251 save_LDFLAGS="$LDFLAGS"
14252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14255 # The linker can only warn and ignore the option if not recognized
14256 # So say no if there are warnings
14257 if test -s conftest.err; then
14258 # Append any errors to the config.log.
14259 cat conftest.err 1>&5
14260 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14262 if diff conftest.exp conftest.er2 >/dev/null; then
14263 lt_cv_prog_compiler_static_works_F77=yes
14266 lt_cv_prog_compiler_static_works_F77=yes
14270 LDFLAGS="$save_LDFLAGS"
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14274 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14276 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14279 lt_prog_compiler_static_F77=
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14285 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14286 $as_echo_n "(cached) " >&6
14288 lt_cv_prog_compiler_c_o_F77=no
14289 $rm -r conftest 2>/dev/null
14293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14295 lt_compiler_flag="-o out/conftest2.$ac_objext"
14296 # Insert the option either (1) after the last *FLAGS variable, or
14297 # (2) before a word containing "conftest.", or (3) at the end.
14298 # Note that $ac_compile itself does not contain backslashes and begins
14299 # with a dollar sign (not a hyphen), so the echo should work correctly.
14300 lt_compile=`echo "$ac_compile" | $SED \
14301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14303 -e 's:$: $lt_compiler_flag:'`
14304 (eval echo "\"\$as_me:14304: $lt_compile\"" >&5)
14305 (eval "$lt_compile" 2>out/conftest.err)
14307 cat out/conftest.err >&5
14308 echo "$as_me:14308: \$? = $ac_status" >&5
14309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14311 # The compiler can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
14313 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14316 lt_cv_prog_compiler_c_o_F77=yes
14321 # SGI C++ compiler will create directory out/ii_files/ for
14322 # template instantiation
14323 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14324 $rm out/* && rmdir out
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14331 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14334 hard_links="nottested"
14335 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14336 # do not overwrite the value of need_locks provided by the user
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14338 $as_echo_n "checking if we can lock with hard links... " >&6; }
14341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14343 ln conftest.a conftest.b 2>&5 || hard_links=no
14344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14346 $as_echo "$hard_links" >&6; }
14347 if test "$hard_links" = no; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14349 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14360 allow_undefined_flag_F77=
14361 enable_shared_with_static_runtimes_F77=no
14363 archive_expsym_cmds_F77=
14364 old_archive_From_new_cmds_F77=
14365 old_archive_from_expsyms_cmds_F77=
14366 export_dynamic_flag_spec_F77=
14367 whole_archive_flag_spec_F77=
14368 thread_safe_flag_spec_F77=
14369 hardcode_libdir_flag_spec_F77=
14370 hardcode_libdir_flag_spec_ld_F77=
14371 hardcode_libdir_separator_F77=
14372 hardcode_direct_F77=no
14373 hardcode_minus_L_F77=no
14374 hardcode_shlibpath_var_F77=unsupported
14375 link_all_deplibs_F77=unknown
14376 hardcode_automatic_F77=no
14378 module_expsym_cmds_F77=
14379 always_export_symbols_F77=no
14380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14381 # include_expsyms should be a list of space-separated symbols to be *always*
14382 # included in the symbol list
14383 include_expsyms_F77=
14384 # exclude_expsyms can be an extended regexp of symbols to exclude
14385 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14386 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14387 # as well as any symbol that contains `d'.
14388 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14389 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14390 # platforms (ab)use it in PIC code, but their linkers get confused if
14391 # the symbol is explicitly referenced. Since portable code cannot
14392 # rely on this symbol name, it's probably fine to never include it in
14393 # preloaded symbol tables.
14394 # Exclude shared library initialization/finalization symbols.
14395 extract_expsyms_cmds=
14396 # Just being paranoid about ensuring that cc_basename is set.
14397 for cc_temp in $compiler""; do
14399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14405 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14408 cygwin* | mingw* | pw32*)
14409 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14410 # When not using gcc, we currently assume that we are using
14411 # Microsoft Visual C++.
14412 if test "$GCC" != yes; then
14417 # we just hope/assume this is gcc and not c89 (= MSVC++)
14426 if test "$with_gnu_ld" = yes; then
14427 # If archive_cmds runs LD, not CC, wlarc should be empty
14430 # Set some defaults for GNU ld with shared library support. These
14431 # are reset later if shared libraries are not supported. Putting them
14432 # here allows them to be overridden if necessary.
14433 runpath_var=LD_RUN_PATH
14434 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14435 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14436 # ancient GNU ld didn't support --whole-archive et. al.
14437 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14438 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14440 whole_archive_flag_spec_F77=
14442 supports_anon_versioning=no
14443 case `$LD -v 2>/dev/null` in
14444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14447 *\ 2.11.*) ;; # other 2.11 versions
14448 *) supports_anon_versioning=yes ;;
14451 # See if GNU ld supports shared libraries.
14454 # On AIX/PPC, the GNU linker is very broken
14455 if test "$host_cpu" != ia64; then
14459 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14460 *** to be unable to reliably create shared libraries on AIX.
14461 *** Therefore, libtool is disabling shared libraries support. If you
14462 *** really care for shared libraries, you may want to modify your PATH
14463 *** so that a non-GNU linker is found, and then restart.
14470 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)'
14471 hardcode_libdir_flag_spec_F77='-L$libdir'
14472 hardcode_minus_L_F77=yes
14474 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14475 # that the semantics of dynamic libraries on AmigaOS, at least up
14476 # to version 4, is to share data among multiple programs linked
14477 # with the same dynamic library. Since this doesn't match the
14478 # behavior of shared libraries on other platforms, we can't use
14484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14485 allow_undefined_flag_F77=unsupported
14486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14487 # support --undefined. This deserves some investigation. FIXME
14488 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494 cygwin* | mingw* | pw32*)
14495 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14496 # as there is no search path for DLLs.
14497 hardcode_libdir_flag_spec_F77='-L$libdir'
14498 allow_undefined_flag_F77=unsupported
14499 always_export_symbols_F77=no
14500 enable_shared_with_static_runtimes_F77=yes
14501 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14503 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14504 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14505 # If the export-symbols file already is a .def file (1st line
14506 # is EXPORTS), use it as is; otherwise, prepend...
14507 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14508 cp $export_symbols $output_objdir/$soname.def;
14510 echo EXPORTS > $output_objdir/$soname.def;
14511 cat $export_symbols >> $output_objdir/$soname.def;
14513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14520 hardcode_direct_F77=no
14521 hardcode_shlibpath_var_F77=no
14522 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14523 export_dynamic_flag_spec_F77='${wl}-E'
14524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14525 # Instead, shared libraries are loaded at an image base (0x10000000 by
14526 # default) and relocated if they conflict, which is a slow very memory
14527 # consuming and fragmenting process. To avoid this, we pick a random,
14528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14530 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'
14531 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'
14534 gnu* | linux* | k*bsd*-gnu)
14535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14537 case $cc_basename,$host_cpu in
14538 pgcc*) # Portland Group C compiler
14539 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'
14540 tmp_addflag=' $pic_flag'
14542 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14543 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'
14544 tmp_addflag=' $pic_flag -Mnomain' ;;
14545 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14546 tmp_addflag=' -i_dynamic' ;;
14547 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14548 tmp_addflag=' -i_dynamic -nofor_main' ;;
14549 ifc* | ifort*) # Intel Fortran compiler
14550 tmp_addflag=' -nofor_main' ;;
14552 case `$CC -V 2>&1 | sed 5q` in
14553 *Sun\ C*) # Sun C 5.9
14554 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'
14555 tmp_sharedflag='-G' ;;
14556 *Sun\ F*) # Sun Fortran 8.3
14557 tmp_sharedflag='-G' ;;
14559 tmp_sharedflag='-shared' ;;
14561 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14563 if test $supports_anon_versioning = yes; then
14564 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14566 $echo "local: *; };" >> $output_objdir/$libname.ver~
14567 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14569 link_all_deplibs_F77=no
14575 netbsd* | netbsdelf*-gnu)
14576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14577 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14580 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14581 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14586 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14591 *** create shared libraries on Solaris systems. Therefore, libtool
14592 *** is disabling shared libraries support. We urge you to upgrade GNU
14593 *** binutils to release 2.9.1 or newer. Another option is to modify
14594 *** your PATH or compiler configuration so that the native linker is
14595 *** used, and then restart.
14598 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14599 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14600 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14607 case `$LD -v 2>&1` in
14608 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14613 *** reliably create shared libraries on SCO systems. Therefore, libtool
14614 *** is disabling shared libraries support. We urge you to upgrade GNU
14615 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14616 *** your PATH or compiler configuration so that the native linker is
14617 *** used, and then restart.
14622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14623 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14624 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14625 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14634 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14636 hardcode_direct_F77=yes
14637 hardcode_shlibpath_var_F77=no
14641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14643 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14650 if test "$ld_shlibs_F77" = no; then
14652 hardcode_libdir_flag_spec_F77=
14653 export_dynamic_flag_spec_F77=
14654 whole_archive_flag_spec_F77=
14657 # PORTME fill in a description of your system's linker (not GNU ld)
14660 allow_undefined_flag_F77=unsupported
14661 always_export_symbols_F77=yes
14662 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'
14663 # Note: this linker hardcodes the directories in LIBPATH if there
14664 # are no directories specified by -L.
14665 hardcode_minus_L_F77=yes
14666 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14667 # Neither direct hardcoding nor static linking is supported with a
14669 hardcode_direct_F77=unsupported
14674 if test "$host_cpu" = ia64; then
14675 # On IA64, the linker does run time linking by default, so we don't
14676 # have to do anything special.
14677 aix_use_runtimelinking=no
14678 exp_sym_flag='-Bexport'
14681 # If we're using GNU nm, then we don't want the "-C" option.
14682 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14683 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14684 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'
14686 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'
14688 aix_use_runtimelinking=no
14690 # Test if we are trying to use run time linking or normal
14691 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14692 # need to do runtime linking.
14693 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14694 for ld_flag in $LDFLAGS; do
14695 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14696 aix_use_runtimelinking=yes
14703 exp_sym_flag='-bexport'
14704 no_entry_flag='-bnoentry'
14707 # When large executables or shared objects are built, AIX ld can
14708 # have problems creating the table of contents. If linking a library
14709 # or program results in "error TOC overflow" add -mminimal-toc to
14710 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14711 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14713 archive_cmds_F77=''
14714 hardcode_direct_F77=yes
14715 hardcode_libdir_separator_F77=':'
14716 link_all_deplibs_F77=yes
14718 if test "$GCC" = yes; then
14719 case $host_os in aix4.[012]|aix4.[012].*)
14720 # We only want to do this on AIX 4.2 and lower, the check
14721 # below for broken collect2 doesn't work under 4.3+
14722 collect2name=`${CC} -print-prog-name=collect2`
14723 if test -f "$collect2name" && \
14724 strings "$collect2name" | grep resolve_lib_name >/dev/null
14726 # We have reworked collect2
14729 # We have old collect2
14730 hardcode_direct_F77=unsupported
14731 # It fails to find uninstalled libraries when the uninstalled
14732 # path is not listed in the libpath. Setting hardcode_minus_L
14733 # to unsupported forces relinking
14734 hardcode_minus_L_F77=yes
14735 hardcode_libdir_flag_spec_F77='-L$libdir'
14736 hardcode_libdir_separator_F77=
14740 shared_flag='-shared'
14741 if test "$aix_use_runtimelinking" = yes; then
14742 shared_flag="$shared_flag "'${wl}-G'
14746 if test "$host_cpu" = ia64; then
14747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14748 # chokes on -Wl,-G. The following line is correct:
14751 if test "$aix_use_runtimelinking" = yes; then
14752 shared_flag='${wl}-G'
14754 shared_flag='${wl}-bM:SRE'
14759 # It seems that -bexpall does not export symbols beginning with
14760 # underscore (_), so it is better to generate a list of symbols to export.
14761 always_export_symbols_F77=yes
14762 if test "$aix_use_runtimelinking" = yes; then
14763 # Warning - without using the other runtime loading flags (-brtl),
14764 # -berok will link without error, but may produce a broken library.
14765 allow_undefined_flag_F77='-berok'
14766 # Determine the default libpath from the value encoded in an empty executable.
14767 cat > conftest.$ac_ext <<_ACEOF
14772 if ac_fn_f77_try_link "$LINENO"; then :
14774 lt_aix_libpath_sed='
14775 /Import File Strings/,/^$/ {
14781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14782 # Check for a 64-bit object if we didn't find anything.
14783 if test -z "$aix_libpath"; then
14784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14791 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14792 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"
14794 if test "$host_cpu" = ia64; then
14795 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14796 allow_undefined_flag_F77="-z nodefs"
14797 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"
14799 # Determine the default libpath from the value encoded in an empty executable.
14800 cat > conftest.$ac_ext <<_ACEOF
14805 if ac_fn_f77_try_link "$LINENO"; then :
14807 lt_aix_libpath_sed='
14808 /Import File Strings/,/^$/ {
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14815 # Check for a 64-bit object if we didn't find anything.
14816 if test -z "$aix_libpath"; then
14817 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14824 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14825 # Warning - without using the other run time loading flags,
14826 # -berok will link without error, but may produce a broken library.
14827 no_undefined_flag_F77=' ${wl}-bernotok'
14828 allow_undefined_flag_F77=' ${wl}-berok'
14829 # Exported symbols can be pulled into shared objects from archives
14830 whole_archive_flag_spec_F77='$convenience'
14831 archive_cmds_need_lc_F77=yes
14832 # This is similar to how AIX traditionally builds its shared libraries.
14833 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'
14839 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)'
14840 hardcode_libdir_flag_spec_F77='-L$libdir'
14841 hardcode_minus_L_F77=yes
14842 # see comment about different semantics on the GNU ld section
14847 export_dynamic_flag_spec_F77=-rdynamic
14850 cygwin* | mingw* | pw32*)
14851 # When not using gcc, we currently assume that we are using
14852 # Microsoft Visual C++.
14853 # hardcode_libdir_flag_spec is actually meaningless, as there is
14854 # no search path for DLLs.
14855 hardcode_libdir_flag_spec_F77=' '
14856 allow_undefined_flag_F77=unsupported
14857 # Tell ltmain to make .lib files, not .a files.
14859 # Tell ltmain to make .dll files, not .so files.
14861 # FIXME: Setting linknames here is a bad hack.
14862 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14863 # The linker will automatically build a .lib file if we build a DLL.
14864 old_archive_From_new_cmds_F77='true'
14865 # FIXME: Should let the user specify the lib program.
14866 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14867 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14868 enable_shared_with_static_runtimes_F77=yes
14871 darwin* | rhapsody*)
14873 rhapsody* | darwin1.[012])
14874 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14878 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14880 case ${MACOSX_DEPLOYMENT_TARGET} in
14882 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14885 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14891 archive_cmds_need_lc_F77=no
14892 hardcode_direct_F77=no
14893 hardcode_automatic_F77=yes
14894 hardcode_shlibpath_var_F77=unsupported
14895 whole_archive_flag_spec_F77=''
14896 link_all_deplibs_F77=yes
14897 if test "$GCC" = yes ; then
14898 output_verbose_link_cmd='echo'
14899 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}"
14900 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14901 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}"
14902 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}"
14904 case $cc_basename in
14906 output_verbose_link_cmd='echo'
14907 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14908 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14909 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14910 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}'
14911 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}'
14921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14922 hardcode_libdir_flag_spec_F77='-L$libdir'
14923 hardcode_shlibpath_var_F77=no
14930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14931 # support. Future versions do this automatically, but an explicit c++rt0.o
14932 # does not break anything, and helps significantly (at the cost of a little
14935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14936 hardcode_libdir_flag_spec_F77='-R$libdir'
14937 hardcode_direct_F77=yes
14938 hardcode_shlibpath_var_F77=no
14941 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14943 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_direct_F77=yes
14945 hardcode_minus_L_F77=yes
14946 hardcode_shlibpath_var_F77=no
14949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14950 freebsd* | dragonfly*)
14951 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14952 hardcode_libdir_flag_spec_F77='-R$libdir'
14953 hardcode_direct_F77=yes
14954 hardcode_shlibpath_var_F77=no
14958 if test "$GCC" = yes; then
14959 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'
14961 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'
14963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964 hardcode_libdir_separator_F77=:
14965 hardcode_direct_F77=yes
14967 # hardcode_minus_L: Not really in the search PATH,
14968 # but as the default location of the library.
14969 hardcode_minus_L_F77=yes
14970 export_dynamic_flag_spec_F77='${wl}-E'
14974 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14975 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14977 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14979 if test "$with_gnu_ld" = no; then
14980 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14981 hardcode_libdir_separator_F77=:
14983 hardcode_direct_F77=yes
14984 export_dynamic_flag_spec_F77='${wl}-E'
14986 # hardcode_minus_L: Not really in the search PATH,
14987 # but as the default location of the library.
14988 hardcode_minus_L_F77=yes
14993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14996 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14999 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15002 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15008 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15018 if test "$with_gnu_ld" = no; then
15019 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15020 hardcode_libdir_separator_F77=:
15024 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15025 hardcode_direct_F77=no
15026 hardcode_shlibpath_var_F77=no
15029 hardcode_direct_F77=yes
15030 export_dynamic_flag_spec_F77='${wl}-E'
15032 # hardcode_minus_L: Not really in the search PATH,
15033 # but as the default location of the library.
15034 hardcode_minus_L_F77=yes
15040 irix5* | irix6* | nonstopux*)
15041 if test "$GCC" = yes; then
15042 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'
15044 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'
15045 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15047 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15048 hardcode_libdir_separator_F77=:
15049 link_all_deplibs_F77=yes
15052 netbsd* | netbsdelf*-gnu)
15053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15056 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15058 hardcode_libdir_flag_spec_F77='-R$libdir'
15059 hardcode_direct_F77=yes
15060 hardcode_shlibpath_var_F77=no
15064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065 hardcode_direct_F77=yes
15066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15067 hardcode_libdir_separator_F77=:
15068 hardcode_shlibpath_var_F77=no
15072 if test -f /usr/libexec/ld.so; then
15073 hardcode_direct_F77=yes
15074 hardcode_shlibpath_var_F77=no
15075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15076 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15078 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15079 export_dynamic_flag_spec_F77='${wl}-E'
15082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15083 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_libdir_flag_spec_F77='-R$libdir'
15087 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15088 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15098 hardcode_libdir_flag_spec_F77='-L$libdir'
15099 hardcode_minus_L_F77=yes
15100 allow_undefined_flag_F77=unsupported
15101 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'
15102 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15106 if test "$GCC" = yes; then
15107 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15108 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'
15110 allow_undefined_flag_F77=' -expect_unresolved \*'
15111 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'
15113 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15114 hardcode_libdir_separator_F77=:
15117 osf4* | osf5*) # as osf3* with the addition of -msym flag
15118 if test "$GCC" = yes; then
15119 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15120 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'
15121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15123 allow_undefined_flag_F77=' -expect_unresolved \*'
15124 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'
15125 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~
15126 $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'
15128 # Both c and cxx compiler support -rpath directly
15129 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15131 hardcode_libdir_separator_F77=:
15135 no_undefined_flag_F77=' -z text'
15136 if test "$GCC" = yes; then
15138 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15140 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15143 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15147 hardcode_libdir_flag_spec_F77='-R$libdir'
15148 hardcode_shlibpath_var_F77=no
15150 solaris2.[0-5] | solaris2.[0-5].*) ;;
15152 # The compiler driver will combine and reorder linker options,
15153 # but understands `-z linker_flag'. GCC discards it without `$wl',
15154 # but is careful enough not to reorder.
15155 # Supported since Solaris 2.6 (maybe 2.5.1?)
15156 if test "$GCC" = yes; then
15157 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15159 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15163 link_all_deplibs_F77=yes
15167 if test "x$host_vendor" = xsequent; then
15168 # Use $CC to link under sequent, because it throws in some extra .o
15169 # files that make .init and .fini sections work.
15170 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_libdir_flag_spec_F77='-L$libdir'
15175 hardcode_direct_F77=yes
15176 hardcode_minus_L_F77=yes
15177 hardcode_shlibpath_var_F77=no
15181 case $host_vendor in
15183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184 hardcode_direct_F77=yes # is this really true???
15187 ## LD is ld it makes a PLAMLIB
15188 ## CC just makes a GrossModule.
15189 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15190 reload_cmds_F77='$CC -r -o $output$reload_objs'
15191 hardcode_direct_F77=no
15194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15195 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15198 runpath_var='LD_RUN_PATH'
15199 hardcode_shlibpath_var_F77=no
15203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204 hardcode_shlibpath_var_F77=no
15205 export_dynamic_flag_spec_F77='-Bexport'
15209 if test -d /usr/nec; then
15210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211 hardcode_shlibpath_var_F77=no
15212 runpath_var=LD_RUN_PATH
15213 hardcode_runpath_var=yes
15218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15219 no_undefined_flag_F77='${wl}-z,text'
15220 archive_cmds_need_lc_F77=no
15221 hardcode_shlibpath_var_F77=no
15222 runpath_var='LD_RUN_PATH'
15224 if test "$GCC" = yes; then
15225 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233 sysv5* | sco3.2v5* | sco5v6*)
15234 # Note: We can NOT use -z defs as we might desire, because we do not
15235 # link with -lc, and that would cause any symbols used from libc to
15236 # always be unresolved, which means just about no library would
15237 # ever link correctly. If we're not using GNU ld we use -z text
15238 # though, which does catch some bad symbols but isn't as heavy-handed
15240 no_undefined_flag_F77='${wl}-z,text'
15241 allow_undefined_flag_F77='${wl}-z,nodefs'
15242 archive_cmds_need_lc_F77=no
15243 hardcode_shlibpath_var_F77=no
15244 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15245 hardcode_libdir_separator_F77=':'
15246 link_all_deplibs_F77=yes
15247 export_dynamic_flag_spec_F77='${wl}-Bexport'
15248 runpath_var='LD_RUN_PATH'
15250 if test "$GCC" = yes; then
15251 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15261 hardcode_libdir_flag_spec_F77='-L$libdir'
15262 hardcode_shlibpath_var_F77=no
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15272 $as_echo "$ld_shlibs_F77" >&6; }
15273 test "$ld_shlibs_F77" = no && can_build_shared=no
15276 # Do we need to explicitly link libc?
15278 case "x$archive_cmds_need_lc_F77" in
15280 # Assume -lc should be added
15281 archive_cmds_need_lc_F77=yes
15283 if test "$enable_shared" = yes && test "$GCC" = yes; then
15284 case $archive_cmds_F77 in
15286 # FIXME: we may have to deal with multi-command sequences.
15289 # Test whether the compiler implicitly links with -lc since on some
15290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15291 # to ld, don't add -lc before -lgcc.
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15293 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15298 (eval $ac_compile) 2>&5
15300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15301 test $ac_status = 0; } 2>conftest.err; then
15304 libobjs=conftest.$ac_objext
15306 wl=$lt_prog_compiler_wl_F77
15307 pic_flag=$lt_prog_compiler_pic_F77
15313 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15314 allow_undefined_flag_F77=
15315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15316 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15319 test $ac_status = 0; }
15321 archive_cmds_need_lc_F77=no
15323 archive_cmds_need_lc_F77=yes
15325 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15327 cat conftest.err 1>&5
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15331 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15339 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15340 library_names_spec=
15341 libname_spec='lib$name'
15345 postuninstall_cmds=
15349 shlibpath_overrides_runpath=unknown
15351 dynamic_linker="$host_os ld.so"
15352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15354 need_lib_prefix=unknown
15355 hardcode_into_libs=no
15357 # when you set need_version to no, make sure it does not cause -set_version
15358 # flags to be left without arguments
15359 need_version=unknown
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15365 shlibpath_var=LIBPATH
15367 # AIX 3 has no versioning support, so we append a major version to the name.
15368 soname_spec='${libname}${release}${shared_ext}$major'
15375 hardcode_into_libs=yes
15376 if test "$host_cpu" = ia64; then
15377 # AIX 5 supports IA64
15378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15379 shlibpath_var=LD_LIBRARY_PATH
15381 # With GCC up to 2.95.x, collect2 would create an import file
15382 # for dependence libraries. The import file would start with
15383 # the line `#! .'. This would cause the generated library to
15384 # depend on `.', always an invalid library. This was fixed in
15385 # development snapshots of GCC prior to 3.0.
15387 aix4 | aix4.[01] | aix4.[01].*)
15388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15393 can_build_shared=no
15397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15398 # soname into executable. Probably we can add versioning support to
15399 # collect2, so additional links can be useful in future.
15400 if test "$aix_use_runtimelinking" = yes; then
15401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15402 # instead of lib<name>.a to let people know that these are not
15403 # typical AIX shared libraries.
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406 # We preserve .a as extension for shared libraries through AIX4.2
15407 # and later when we are not doing run time linking.
15408 library_names_spec='${libname}${release}.a $libname.a'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15411 shlibpath_var=LIBPATH
15416 library_names_spec='$libname.ixlibrary $libname.a'
15417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15418 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'
15422 library_names_spec='${libname}${shared_ext}'
15423 dynamic_linker="$host_os ld.so"
15424 shlibpath_var=LIBRARY_PATH
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431 soname_spec='${libname}${release}${shared_ext}$major'
15432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15436 # the default ld.so.conf also contains /usr/contrib/lib and
15437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15438 # libtool to hard-code these into programs
15441 cygwin* | mingw* | pw32*)
15442 version_type=windows
15447 case $GCC,$host_os in
15448 yes,cygwin* | yes,mingw* | yes,pw32*)
15449 library_names_spec='$libname.dll.a'
15450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15451 postinstall_cmds='base_file=`basename \${file}`~
15452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15453 dldir=$destdir/`dirname \$dlpath`~
15454 test -d \$dldir || mkdir -p \$dldir~
15455 $install_prog $dir/$dlname \$dldir/$dlname~
15456 chmod a+x \$dldir/$dlname'
15457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15458 dlpath=$dir/\$dldll~
15460 shlibpath_overrides_runpath=yes
15464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15469 # MinGW DLLs use traditional 'lib' prefix
15470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15473 # It is most probably a Windows format PATH printed by
15474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15475 # path with ; separators, and with drive letters. We can handle the
15476 # drive letters (cygwin fileutils understands them), so leave them,
15477 # especially as we might pass files found there to a mingw objdump,
15478 # which wouldn't understand a cygwinified path. Ahh.
15479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15485 # pw32 DLLs use 'pw' prefix rather than 'lib'
15486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15495 dynamic_linker='Win32 ld.exe'
15496 # FIXME: first we should search . and the directory the executable is in
15500 darwin* | rhapsody*)
15501 dynamic_linker="$host_os dyld"
15502 version_type=darwin
15505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15506 soname_spec='${libname}${release}${major}$shared_ext'
15507 shlibpath_overrides_runpath=yes
15508 shlibpath_var=DYLD_LIBRARY_PATH
15509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15527 freebsd* | dragonfly*)
15528 # DragonFly does not have aout. When/if they implement a new
15529 # versioning mechanism, adjust this.
15530 if test -x /usr/bin/objformat; then
15531 objformat=`/usr/bin/objformat`
15534 freebsd[123]*) objformat=aout ;;
15535 *) objformat=elf ;;
15538 version_type=freebsd-$objformat
15539 case $version_type in
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15550 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=yes
15555 freebsd3.[01]* | freebsdelf3.[01]*)
15556 shlibpath_overrides_runpath=yes
15557 hardcode_into_libs=yes
15559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15561 shlibpath_overrides_runpath=no
15562 hardcode_into_libs=yes
15564 *) # from 4.6 on, and DragonFly
15565 shlibpath_overrides_runpath=yes
15566 hardcode_into_libs=yes
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 hardcode_into_libs=yes
15581 hpux9* | hpux10* | hpux11*)
15582 # Give a soname corresponding to the major version so that dld.sl refuses to
15583 # link against other versions.
15590 hardcode_into_libs=yes
15591 dynamic_linker="$host_os dld.so"
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 if test "X$HPUX_IA64_MODE" = X32; then
15597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15605 hardcode_into_libs=yes
15606 dynamic_linker="$host_os dld.sl"
15607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15616 dynamic_linker="$host_os dld.sl"
15617 shlibpath_var=SHLIB_PATH
15618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15623 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15624 postinstall_cmds='chmod 555 $lib'
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=no
15636 hardcode_into_libs=yes
15639 irix5* | irix6* | nonstopux*)
15641 nonstopux*) version_type=nonstopux ;;
15643 if test "$lt_cv_prog_gnu_ld" = yes; then
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15654 irix5* | nonstopux*)
15655 libsuff= shlibsuff=
15658 case $LD in # libtool.m4 will add one of these switches to LD
15659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15660 libsuff= shlibsuff= libmagic=32-bit;;
15661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15662 libsuff=32 shlibsuff=N32 libmagic=N32;;
15663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15665 *) libsuff= shlibsuff= libmagic=never-match;;
15669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15670 shlibpath_overrides_runpath=no
15671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15673 hardcode_into_libs=yes
15676 # No shared lib support for Linux oldld, aout, or coff.
15677 linux*oldld* | linux*aout* | linux*coff*)
15681 # This must be Linux ELF.
15682 linux* | k*bsd*-gnu)
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=no
15691 # This implies no fast_install, which is unacceptable.
15692 # Some rework will be needed to allow for fast_install
15693 # before this can be enabled.
15694 hardcode_into_libs=yes
15696 # Append ld.so.conf contents to the search path
15697 if test -f /etc/ld.so.conf; then
15698 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' ' '`
15699 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15702 # We used to test for /lib/ld.so.1 and disable shared libraries on
15703 # powerpc, because MkLinux only supported shared libraries with the
15704 # GNU dynamic linker. Since this was broken with cross compilers,
15705 # most powerpc-linux boxes support dynamic linking these days and
15706 # people can always --disable-shared, the test was removed, and we
15707 # assume the GNU/Linux dynamic linker is in use.
15708 dynamic_linker='GNU/Linux ld.so'
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=no
15719 hardcode_into_libs=yes
15720 dynamic_linker='NetBSD ld.elf_so'
15727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15730 dynamic_linker='NetBSD (a.out) ld.so'
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 dynamic_linker='NetBSD ld.elf_so'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes
15738 hardcode_into_libs=yes
15743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 shlibpath_overrides_runpath=yes
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15760 sys_lib_dlsearch_path_spec="/usr/lib"
15762 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15764 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15765 *) need_version=no ;;
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15772 openbsd2.[89] | openbsd2.[89].*)
15773 shlibpath_overrides_runpath=no
15776 shlibpath_overrides_runpath=yes
15780 shlibpath_overrides_runpath=yes
15785 libname_spec='$name'
15788 library_names_spec='$libname${shared_ext} $libname.a'
15789 dynamic_linker='OS/2 ld.exe'
15790 shlibpath_var=LIBPATH
15793 osf3* | osf4* | osf5*)
15797 soname_spec='${libname}${release}${shared_ext}$major'
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 shlibpath_var=LD_LIBRARY_PATH
15800 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15801 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=yes
15816 hardcode_into_libs=yes
15817 # ldd complains unless libraries are executable
15818 postinstall_cmds='chmod +x $lib'
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 if test "$with_gnu_ld" = yes; then
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 case $host_vendor in
15840 shlibpath_overrides_runpath=no
15842 export_dynamic_flag_spec='${wl}-Blargedynsym'
15843 runpath_var=LD_RUN_PATH
15851 shlibpath_overrides_runpath=no
15852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15858 if test -d /usr/nec ;then
15860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15861 soname_spec='$libname${shared_ext}.$major'
15862 shlibpath_var=LD_LIBRARY_PATH
15866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15867 version_type=freebsd-elf
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 hardcode_into_libs=yes
15874 if test "$with_gnu_ld" = yes; then
15875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15876 shlibpath_overrides_runpath=no
15878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15879 shlibpath_overrides_runpath=yes
15882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15886 sys_lib_dlsearch_path_spec='/usr/lib'
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15901 $as_echo "$dynamic_linker" >&6; }
15902 test "$dynamic_linker" = no && can_build_shared=no
15904 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15905 $as_echo_n "(cached) " >&6
15907 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15911 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15912 $as_echo_n "(cached) " >&6
15914 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15920 if test "$GCC" = yes; then
15921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15925 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15926 hardcode_action_F77=
15927 if test -n "$hardcode_libdir_flag_spec_F77" || \
15928 test -n "$runpath_var_F77" || \
15929 test "X$hardcode_automatic_F77" = "Xyes" ; then
15931 # We can hardcode non-existant directories.
15932 if test "$hardcode_direct_F77" != no &&
15933 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15934 # have to relink, otherwise we might link with an installed library
15935 # when we should be linking with a yet-to-be-installed one
15936 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15937 test "$hardcode_minus_L_F77" != no; then
15938 # Linking always hardcodes the temporary library directory.
15939 hardcode_action_F77=relink
15941 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15942 hardcode_action_F77=immediate
15945 # We cannot hardcode anything, or else we can only hardcode existing
15947 hardcode_action_F77=unsupported
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15950 $as_echo "$hardcode_action_F77" >&6; }
15952 if test "$hardcode_action_F77" = relink; then
15953 # Fast installation is not supported
15954 enable_fast_install=no
15955 elif test "$shlibpath_overrides_runpath" = yes ||
15956 test "$enable_shared" = no; then
15957 # Fast installation is not necessary
15958 enable_fast_install=needless
15962 # The else clause should only fire when bootstrapping the
15963 # libtool distribution, otherwise you forgot to ship ltmain.sh
15964 # with your package, and you will get complaints that there are
15965 # no rules to generate ltmain.sh.
15966 if test -f "$ltmain"; then
15967 # See if we are running on zsh, and set the options which allow our commands through
15968 # without removal of \ escapes.
15969 if test -n "${ZSH_VERSION+set}" ; then
15970 setopt NO_GLOB_SUBST
15972 # Now quote all the things that may contain metacharacters while being
15973 # careful not to overquote the AC_SUBSTed values. We take copies of the
15974 # variables and quote the copies for generation of the libtool script.
15975 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15977 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15978 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15979 deplibs_check_method reload_flag reload_cmds need_locks \
15980 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15981 lt_cv_sys_global_symbol_to_c_name_address \
15982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15983 old_postinstall_cmds old_postuninstall_cmds \
15987 lt_prog_compiler_wl_F77 \
15988 lt_prog_compiler_pic_F77 \
15989 lt_prog_compiler_static_F77 \
15990 lt_prog_compiler_no_builtin_flag_F77 \
15991 export_dynamic_flag_spec_F77 \
15992 thread_safe_flag_spec_F77 \
15993 whole_archive_flag_spec_F77 \
15994 enable_shared_with_static_runtimes_F77 \
15995 old_archive_cmds_F77 \
15996 old_archive_from_new_cmds_F77 \
15997 predep_objects_F77 \
15998 postdep_objects_F77 \
16001 compiler_lib_search_path_F77 \
16002 compiler_lib_search_dirs_F77 \
16004 archive_expsym_cmds_F77 \
16005 postinstall_cmds_F77 \
16006 postuninstall_cmds_F77 \
16007 old_archive_from_expsyms_cmds_F77 \
16008 allow_undefined_flag_F77 \
16009 no_undefined_flag_F77 \
16010 export_symbols_cmds_F77 \
16011 hardcode_libdir_flag_spec_F77 \
16012 hardcode_libdir_flag_spec_ld_F77 \
16013 hardcode_libdir_separator_F77 \
16014 hardcode_automatic_F77 \
16016 module_expsym_cmds_F77 \
16017 lt_cv_prog_compiler_c_o_F77 \
16018 fix_srcfile_path_F77 \
16019 exclude_expsyms_F77 \
16020 include_expsyms_F77; do
16023 old_archive_cmds_F77 | \
16024 old_archive_from_new_cmds_F77 | \
16025 archive_cmds_F77 | \
16026 archive_expsym_cmds_F77 | \
16027 module_cmds_F77 | \
16028 module_expsym_cmds_F77 | \
16029 old_archive_from_expsyms_cmds_F77 | \
16030 export_symbols_cmds_F77 | \
16031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16032 postinstall_cmds | postuninstall_cmds | \
16033 old_postinstall_cmds | old_postuninstall_cmds | \
16034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16035 # Double-quote double-evaled strings.
16036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16045 *'\$0 --fallback-echo"')
16046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16052 cat <<__EOF__ >> "$cfgfile"
16053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16057 # Shell to use when invoking shell scripts.
16060 # Whether or not to build shared libraries.
16061 build_libtool_libs=$enable_shared
16063 # Whether or not to build static libraries.
16064 build_old_libs=$enable_static
16066 # Whether or not to add -lc for building shared libraries.
16067 build_libtool_need_lc=$archive_cmds_need_lc_F77
16069 # Whether or not to disallow shared libs when runtime libs are static
16070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16072 # Whether or not to optimize for fast installation.
16073 fast_install=$enable_fast_install
16076 host_alias=$host_alias
16080 # The build system.
16081 build_alias=$build_alias
16085 # An echo program that does not interpret backslashes.
16090 AR_FLAGS=$lt_AR_FLAGS
16095 # LTCC compiler flags.
16096 LTCFLAGS=$lt_LTCFLAGS
16098 # A language-specific compiler.
16099 CC=$lt_compiler_F77
16101 # Is the compiler the GNU C compiler?
16107 # The linker used to build libraries.
16110 # Whether we need hard or soft links.
16113 # A BSD-compatible nm program.
16116 # A symbol stripping program
16119 # Used to examine libraries when file_magic_cmd begins "file"
16120 MAGIC_CMD=$MAGIC_CMD
16122 # Used on cygwin: DLL creation program.
16125 # Used on cygwin: object dumper.
16128 # Used on cygwin: assembler.
16131 # The name of the directory that contains temporary libtool files.
16134 # How to create reloadable object files.
16135 reload_flag=$lt_reload_flag
16136 reload_cmds=$lt_reload_cmds
16138 # How to pass a linker flag through the compiler.
16139 wl=$lt_lt_prog_compiler_wl_F77
16141 # Object file suffix (normally "o").
16142 objext="$ac_objext"
16144 # Old archive suffix (normally "a").
16147 # Shared library suffix (normally ".so").
16148 shrext_cmds='$shrext_cmds'
16150 # Executable file suffix (normally "").
16153 # Additional compiler flags for building library objects.
16154 pic_flag=$lt_lt_prog_compiler_pic_F77
16157 # What is the maximum length of a command?
16158 max_cmd_len=$lt_cv_sys_max_cmd_len
16160 # Does compiler simultaneously support -c and -o options?
16161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16163 # Must we lock files when doing compilation?
16164 need_locks=$lt_need_locks
16166 # Do we need the lib prefix for modules?
16167 need_lib_prefix=$need_lib_prefix
16169 # Do we need a version for libraries?
16170 need_version=$need_version
16172 # Whether dlopen is supported.
16173 dlopen_support=$enable_dlopen
16175 # Whether dlopen of programs is supported.
16176 dlopen_self=$enable_dlopen_self
16178 # Whether dlopen of statically linked programs is supported.
16179 dlopen_self_static=$enable_dlopen_self_static
16181 # Compiler flag to prevent dynamic linking.
16182 link_static_flag=$lt_lt_prog_compiler_static_F77
16184 # Compiler flag to turn off builtin functions.
16185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16187 # Compiler flag to allow reflexive dlopens.
16188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16190 # Compiler flag to generate shared objects directly from archives.
16191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16193 # Compiler flag to generate thread-safe objects.
16194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16196 # Library versioning type.
16197 version_type=$version_type
16199 # Format of library name prefix.
16200 libname_spec=$lt_libname_spec
16202 # List of archive names. First name is the real one, the rest are links.
16203 # The last name is the one that the linker finds with -lNAME.
16204 library_names_spec=$lt_library_names_spec
16206 # The coded name of the library, if different from the real name.
16207 soname_spec=$lt_soname_spec
16209 # Commands used to build and install an old-style archive.
16211 old_archive_cmds=$lt_old_archive_cmds_F77
16212 old_postinstall_cmds=$lt_old_postinstall_cmds
16213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16215 # Create an old-style archive from a shared archive.
16216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16218 # Create a temporary old-style archive to link instead of a shared archive.
16219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16221 # Commands used to build and install a shared archive.
16222 archive_cmds=$lt_archive_cmds_F77
16223 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16224 postinstall_cmds=$lt_postinstall_cmds
16225 postuninstall_cmds=$lt_postuninstall_cmds
16227 # Commands used to build a loadable module (assumed same as above if empty)
16228 module_cmds=$lt_module_cmds_F77
16229 module_expsym_cmds=$lt_module_expsym_cmds_F77
16231 # Commands to strip libraries.
16232 old_striplib=$lt_old_striplib
16233 striplib=$lt_striplib
16235 # Dependencies to place before the objects being linked to create a
16237 predep_objects=$lt_predep_objects_F77
16239 # Dependencies to place after the objects being linked to create a
16241 postdep_objects=$lt_postdep_objects_F77
16243 # Dependencies to place before the objects being linked to create a
16245 predeps=$lt_predeps_F77
16247 # Dependencies to place after the objects being linked to create a
16249 postdeps=$lt_postdeps_F77
16251 # The directories searched by this compiler when creating a shared
16253 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16255 # The library search path used internally by the compiler when linking
16256 # a shared library.
16257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16259 # Method to check whether dependent libraries are shared objects.
16260 deplibs_check_method=$lt_deplibs_check_method
16262 # Command to use when deplibs_check_method == file_magic.
16263 file_magic_cmd=$lt_file_magic_cmd
16265 # Flag that allows shared libraries with undefined symbols to be built.
16266 allow_undefined_flag=$lt_allow_undefined_flag_F77
16268 # Flag that forces no undefined symbols.
16269 no_undefined_flag=$lt_no_undefined_flag_F77
16271 # Commands used to finish a libtool library installation in a directory.
16272 finish_cmds=$lt_finish_cmds
16274 # Same as above, but a single script fragment to be evaled but not shown.
16275 finish_eval=$lt_finish_eval
16277 # Take the output of nm and produce a listing of raw symbols and C names.
16278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16280 # Transform the output of nm in a proper C declaration
16281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16283 # Transform the output of nm in a C name address pair
16284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16286 # This is the shared library runtime path variable.
16287 runpath_var=$runpath_var
16289 # This is the shared library path variable.
16290 shlibpath_var=$shlibpath_var
16292 # Is shlibpath searched before the hard-coded library search path?
16293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16295 # How to hardcode a shared library path into an executable.
16296 hardcode_action=$hardcode_action_F77
16298 # Whether we should hardcode library paths into libraries.
16299 hardcode_into_libs=$hardcode_into_libs
16301 # Flag to hardcode \$libdir into a binary during linking.
16302 # This must work even if \$libdir does not exist.
16303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16305 # If ld is used when linking, flag to hardcode \$libdir into
16306 # a binary during linking. This must work even if \$libdir does
16308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16310 # Whether we need a single -rpath flag with a separated argument.
16311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314 # resulting binary.
16315 hardcode_direct=$hardcode_direct_F77
16317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318 # resulting binary.
16319 hardcode_minus_L=$hardcode_minus_L_F77
16321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322 # the resulting binary.
16323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16325 # Set to yes if building a shared library automatically hardcodes DIR into the library
16326 # and all subsequent libraries and executables linked against it.
16327 hardcode_automatic=$hardcode_automatic_F77
16329 # Variables whose values should be saved in libtool wrapper scripts and
16330 # restored at relink time.
16331 variables_saved_for_relink="$variables_saved_for_relink"
16333 # Whether libtool must link a program against all its dependency libraries.
16334 link_all_deplibs=$link_all_deplibs_F77
16336 # Compile-time system search path for libraries
16337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16339 # Run-time system search path for libraries
16340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16342 # Fix the shell variable \$srcfile for the compiler.
16343 fix_srcfile_path=$lt_fix_srcfile_path
16345 # Set to yes if exported symbols are required.
16346 always_export_symbols=$always_export_symbols_F77
16348 # The commands to list exported symbols.
16349 export_symbols_cmds=$lt_export_symbols_cmds_F77
16351 # The commands to extract the exported symbol list from a shared archive.
16352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16354 # Symbols that should not be listed in the preloaded symbols.
16355 exclude_expsyms=$lt_exclude_expsyms_F77
16357 # Symbols that must always be exported.
16358 include_expsyms=$lt_include_expsyms_F77
16360 # ### END LIBTOOL TAG CONFIG: $tagname
16366 # If there is no Makefile yet, we rely on a make rule to execute
16367 # `config.status --recheck' to rerun these tests and create the
16368 # libtool script then.
16369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370 if test -f "$ltmain_in"; then
16371 test -f Makefile && make "$ltmain"
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16390 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16393 # Source file extension for Java test sources.
16396 # Object file extension for compiled Java test sources.
16400 # Code to be used in simple compile tests
16401 lt_simple_compile_test_code="class foo {}"
16403 # Code to be used in simple link tests
16404 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16408 # If no C compiler was specified, use CC.
16411 # If no C compiler flags were specified, use CFLAGS.
16412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16414 # Allow CC to be a program name with arguments.
16418 # save warnings/boilerplate of simple test code
16419 ac_outfile=conftest.$ac_objext
16420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422 _lt_compiler_boilerplate=`cat conftest.err`
16425 ac_outfile=conftest.$ac_objext
16426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428 _lt_linker_boilerplate=`cat conftest.err`
16432 # Allow CC to be a program name with arguments.
16437 for cc_temp in $compiler""; do
16439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16448 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16449 archive_cmds_need_lc_GCJ=no
16451 old_archive_cmds_GCJ=$old_archive_cmds
16454 lt_prog_compiler_no_builtin_flag_GCJ=
16456 if test "$GCC" = yes; then
16457 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16462 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16463 $as_echo_n "(cached) " >&6
16465 lt_cv_prog_compiler_rtti_exceptions=no
16466 ac_outfile=conftest.$ac_objext
16467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468 lt_compiler_flag="-fno-rtti -fno-exceptions"
16469 # Insert the option either (1) after the last *FLAGS variable, or
16470 # (2) before a word containing "conftest.", or (3) at the end.
16471 # Note that $ac_compile itself does not contain backslashes and begins
16472 # with a dollar sign (not a hyphen), so the echo should work correctly.
16473 # The option is referenced via a variable to avoid confusing sed.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
16478 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479 (eval "$lt_compile" 2>conftest.err)
16481 cat conftest.err >&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 if (exit $ac_status) && test -s "$ac_outfile"; then
16484 # The compiler can only warn and ignore the option if not recognized
16485 # So say no if there are warnings other than the usual output.
16486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489 lt_cv_prog_compiler_rtti_exceptions=yes
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16506 lt_prog_compiler_wl_GCJ=
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_static_GCJ=
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16511 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16513 if test "$GCC" = yes; then
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_static_GCJ='-static'
16519 # All AIX code is PIC.
16520 if test "$host_cpu" = ia64; then
16521 # AIX 5 now supports IA64 processor
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16527 # FIXME: we need at least 68020 code to build shared libraries, but
16528 # adding the `-m68020' flag to GCC prevents building anything better,
16530 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534 # PIC is the default for these OSes.
16537 mingw* | cygwin* | pw32* | os2*)
16538 # This hack is so that the source file can tell whether it is being
16539 # built for inclusion in a dll (and should export symbols for example).
16540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16541 # (--disable-auto-import) libraries
16545 darwin* | rhapsody*)
16546 # PIC is the default on this platform
16547 # Common symbols not allowed in MH_DYLIB files
16548 lt_prog_compiler_pic_GCJ='-fno-common'
16552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16553 # Instead, we relocate shared libraries at runtime.
16557 # Just because we use GCC doesn't mean we suddenly get shared libraries
16558 # on systems that don't support them.
16559 lt_prog_compiler_can_build_shared_GCJ=no
16564 if test -d /usr/nec; then
16565 lt_prog_compiler_pic_GCJ=-Kconform_pic
16570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16571 # not for PA HP-UX.
16577 lt_prog_compiler_pic_GCJ='-fPIC'
16583 lt_prog_compiler_pic_GCJ='-fPIC'
16587 # PORTME Check for flag to pass linker flags through the system compiler.
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 if test "$host_cpu" = ia64; then
16592 # AIX 5 now supports IA64 processor
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16595 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16599 # PIC is the default on this platform
16600 # Common symbols not allowed in MH_DYLIB files
16601 case $cc_basename in
16603 lt_prog_compiler_pic_GCJ='-qnocommon'
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16609 mingw* | cygwin* | pw32* | os2*)
16610 # This hack is so that the source file can tell whether it is being
16611 # built for inclusion in a dll (and should export symbols for example).
16615 hpux9* | hpux10* | hpux11*)
16616 lt_prog_compiler_wl_GCJ='-Wl,'
16617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16618 # not for PA HP-UX.
16624 lt_prog_compiler_pic_GCJ='+Z'
16627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16628 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16631 irix5* | irix6* | nonstopux*)
16632 lt_prog_compiler_wl_GCJ='-Wl,'
16633 # PIC (with -KPIC) is the default.
16634 lt_prog_compiler_static_GCJ='-non_shared'
16638 lt_prog_compiler_pic_GCJ='-KPIC'
16639 lt_prog_compiler_static_GCJ='-Bstatic'
16642 linux* | k*bsd*-gnu)
16643 case $cc_basename in
16645 lt_prog_compiler_wl_GCJ='-Wl,'
16646 lt_prog_compiler_pic_GCJ='-KPIC'
16647 lt_prog_compiler_static_GCJ='-static'
16649 pgcc* | pgf77* | pgf90* | pgf95*)
16650 # Portland Group compilers (*not* the Pentium gcc compiler,
16651 # which looks to be a dead project)
16652 lt_prog_compiler_wl_GCJ='-Wl,'
16653 lt_prog_compiler_pic_GCJ='-fpic'
16654 lt_prog_compiler_static_GCJ='-Bstatic'
16657 lt_prog_compiler_wl_GCJ='-Wl,'
16658 # All Alpha code is PIC.
16659 lt_prog_compiler_static_GCJ='-non_shared'
16662 case `$CC -V 2>&1 | sed 5q` in
16665 lt_prog_compiler_pic_GCJ='-KPIC'
16666 lt_prog_compiler_static_GCJ='-Bstatic'
16667 lt_prog_compiler_wl_GCJ='-Wl,'
16670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16671 lt_prog_compiler_pic_GCJ='-KPIC'
16672 lt_prog_compiler_static_GCJ='-Bstatic'
16673 lt_prog_compiler_wl_GCJ=''
16680 osf3* | osf4* | osf5*)
16681 lt_prog_compiler_wl_GCJ='-Wl,'
16682 # All OSF/1 code is PIC.
16683 lt_prog_compiler_static_GCJ='-non_shared'
16687 lt_prog_compiler_static_GCJ='-non_shared'
16691 lt_prog_compiler_pic_GCJ='-KPIC'
16692 lt_prog_compiler_static_GCJ='-Bstatic'
16693 case $cc_basename in
16694 f77* | f90* | f95*)
16695 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16697 lt_prog_compiler_wl_GCJ='-Wl,';;
16702 lt_prog_compiler_wl_GCJ='-Qoption ld '
16703 lt_prog_compiler_pic_GCJ='-PIC'
16704 lt_prog_compiler_static_GCJ='-Bstatic'
16707 sysv4 | sysv4.2uw2* | sysv4.3*)
16708 lt_prog_compiler_wl_GCJ='-Wl,'
16709 lt_prog_compiler_pic_GCJ='-KPIC'
16710 lt_prog_compiler_static_GCJ='-Bstatic'
16714 if test -d /usr/nec ;then
16715 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16716 lt_prog_compiler_static_GCJ='-Bstatic'
16720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16721 lt_prog_compiler_wl_GCJ='-Wl,'
16722 lt_prog_compiler_pic_GCJ='-KPIC'
16723 lt_prog_compiler_static_GCJ='-Bstatic'
16727 lt_prog_compiler_wl_GCJ='-Wl,'
16728 lt_prog_compiler_can_build_shared_GCJ=no
16732 lt_prog_compiler_pic_GCJ='-pic'
16733 lt_prog_compiler_static_GCJ='-Bstatic'
16737 lt_prog_compiler_can_build_shared_GCJ=no
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16743 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16746 # Check to make sure the PIC flag actually works.
16748 if test -n "$lt_prog_compiler_pic_GCJ"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16752 if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16753 $as_echo_n "(cached) " >&6
16755 lt_cv_prog_compiler_pic_works_GCJ=no
16756 ac_outfile=conftest.$ac_objext
16757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16758 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16759 # Insert the option either (1) after the last *FLAGS variable, or
16760 # (2) before a word containing "conftest.", or (3) at the end.
16761 # Note that $ac_compile itself does not contain backslashes and begins
16762 # with a dollar sign (not a hyphen), so the echo should work correctly.
16763 # The option is referenced via a variable to avoid confusing sed.
16764 lt_compile=`echo "$ac_compile" | $SED \
16765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16767 -e 's:$: $lt_compiler_flag:'`
16768 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16769 (eval "$lt_compile" 2>conftest.err)
16771 cat conftest.err >&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 if (exit $ac_status) && test -s "$ac_outfile"; then
16774 # The compiler can only warn and ignore the option if not recognized
16775 # So say no if there are warnings other than the usual output.
16776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16779 lt_cv_prog_compiler_pic_works_GCJ=yes
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16786 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16788 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16789 case $lt_prog_compiler_pic_GCJ in
16791 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16794 lt_prog_compiler_pic_GCJ=
16795 lt_prog_compiler_can_build_shared_GCJ=no
16800 # For platforms which do not support PIC, -DPIC is meaningless:
16802 lt_prog_compiler_pic_GCJ=
16805 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16810 # Check to make sure the static flag actually works.
16812 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16814 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16815 if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16816 $as_echo_n "(cached) " >&6
16818 lt_cv_prog_compiler_static_works_GCJ=no
16819 save_LDFLAGS="$LDFLAGS"
16820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16823 # The linker can only warn and ignore the option if not recognized
16824 # So say no if there are warnings
16825 if test -s conftest.err; then
16826 # Append any errors to the config.log.
16827 cat conftest.err 1>&5
16828 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16830 if diff conftest.exp conftest.er2 >/dev/null; then
16831 lt_cv_prog_compiler_static_works_GCJ=yes
16834 lt_cv_prog_compiler_static_works_GCJ=yes
16838 LDFLAGS="$save_LDFLAGS"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16842 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16844 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16847 lt_prog_compiler_static_GCJ=
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16852 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16853 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16854 $as_echo_n "(cached) " >&6
16856 lt_cv_prog_compiler_c_o_GCJ=no
16857 $rm -r conftest 2>/dev/null
16861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16863 lt_compiler_flag="-o out/conftest2.$ac_objext"
16864 # Insert the option either (1) after the last *FLAGS variable, or
16865 # (2) before a word containing "conftest.", or (3) at the end.
16866 # Note that $ac_compile itself does not contain backslashes and begins
16867 # with a dollar sign (not a hyphen), so the echo should work correctly.
16868 lt_compile=`echo "$ac_compile" | $SED \
16869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16871 -e 's:$: $lt_compiler_flag:'`
16872 (eval echo "\"\$as_me:16872: $lt_compile\"" >&5)
16873 (eval "$lt_compile" 2>out/conftest.err)
16875 cat out/conftest.err >&5
16876 echo "$as_me:16876: \$? = $ac_status" >&5
16877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16879 # The compiler can only warn and ignore the option if not recognized
16880 # So say no if there are warnings
16881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16884 lt_cv_prog_compiler_c_o_GCJ=yes
16889 # SGI C++ compiler will create directory out/ii_files/ for
16890 # template instantiation
16891 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16892 $rm out/* && rmdir out
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16899 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16902 hard_links="nottested"
16903 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16904 # do not overwrite the value of need_locks provided by the user
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16906 $as_echo_n "checking if we can lock with hard links... " >&6; }
16909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16911 ln conftest.a conftest.b 2>&5 || hard_links=no
16912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16914 $as_echo "$hard_links" >&6; }
16915 if test "$hard_links" = no; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16928 allow_undefined_flag_GCJ=
16929 enable_shared_with_static_runtimes_GCJ=no
16931 archive_expsym_cmds_GCJ=
16932 old_archive_From_new_cmds_GCJ=
16933 old_archive_from_expsyms_cmds_GCJ=
16934 export_dynamic_flag_spec_GCJ=
16935 whole_archive_flag_spec_GCJ=
16936 thread_safe_flag_spec_GCJ=
16937 hardcode_libdir_flag_spec_GCJ=
16938 hardcode_libdir_flag_spec_ld_GCJ=
16939 hardcode_libdir_separator_GCJ=
16940 hardcode_direct_GCJ=no
16941 hardcode_minus_L_GCJ=no
16942 hardcode_shlibpath_var_GCJ=unsupported
16943 link_all_deplibs_GCJ=unknown
16944 hardcode_automatic_GCJ=no
16946 module_expsym_cmds_GCJ=
16947 always_export_symbols_GCJ=no
16948 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16949 # include_expsyms should be a list of space-separated symbols to be *always*
16950 # included in the symbol list
16951 include_expsyms_GCJ=
16952 # exclude_expsyms can be an extended regexp of symbols to exclude
16953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16955 # as well as any symbol that contains `d'.
16956 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16958 # platforms (ab)use it in PIC code, but their linkers get confused if
16959 # the symbol is explicitly referenced. Since portable code cannot
16960 # rely on this symbol name, it's probably fine to never include it in
16961 # preloaded symbol tables.
16962 # Exclude shared library initialization/finalization symbols.
16963 extract_expsyms_cmds=
16964 # Just being paranoid about ensuring that cc_basename is set.
16965 for cc_temp in $compiler""; do
16967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16976 cygwin* | mingw* | pw32*)
16977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16978 # When not using gcc, we currently assume that we are using
16979 # Microsoft Visual C++.
16980 if test "$GCC" != yes; then
16985 # we just hope/assume this is gcc and not c89 (= MSVC++)
16994 if test "$with_gnu_ld" = yes; then
16995 # If archive_cmds runs LD, not CC, wlarc should be empty
16998 # Set some defaults for GNU ld with shared library support. These
16999 # are reset later if shared libraries are not supported. Putting them
17000 # here allows them to be overridden if necessary.
17001 runpath_var=LD_RUN_PATH
17002 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17003 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17004 # ancient GNU ld didn't support --whole-archive et. al.
17005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17006 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17008 whole_archive_flag_spec_GCJ=
17010 supports_anon_versioning=no
17011 case `$LD -v 2>/dev/null` in
17012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17015 *\ 2.11.*) ;; # other 2.11 versions
17016 *) supports_anon_versioning=yes ;;
17019 # See if GNU ld supports shared libraries.
17022 # On AIX/PPC, the GNU linker is very broken
17023 if test "$host_cpu" != ia64; then
17027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17028 *** to be unable to reliably create shared libraries on AIX.
17029 *** Therefore, libtool is disabling shared libraries support. If you
17030 *** really care for shared libraries, you may want to modify your PATH
17031 *** so that a non-GNU linker is found, and then restart.
17038 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)'
17039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040 hardcode_minus_L_GCJ=yes
17042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17043 # that the semantics of dynamic libraries on AmigaOS, at least up
17044 # to version 4, is to share data among multiple programs linked
17045 # with the same dynamic library. Since this doesn't match the
17046 # behavior of shared libraries on other platforms, we can't use
17052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17053 allow_undefined_flag_GCJ=unsupported
17054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17055 # support --undefined. This deserves some investigation. FIXME
17056 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062 cygwin* | mingw* | pw32*)
17063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17064 # as there is no search path for DLLs.
17065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066 allow_undefined_flag_GCJ=unsupported
17067 always_export_symbols_GCJ=no
17068 enable_shared_with_static_runtimes_GCJ=yes
17069 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17073 # If the export-symbols file already is a .def file (1st line
17074 # is EXPORTS), use it as is; otherwise, prepend...
17075 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17076 cp $export_symbols $output_objdir/$soname.def;
17078 echo EXPORTS > $output_objdir/$soname.def;
17079 cat $export_symbols >> $output_objdir/$soname.def;
17081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17088 hardcode_direct_GCJ=no
17089 hardcode_shlibpath_var_GCJ=no
17090 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17091 export_dynamic_flag_spec_GCJ='${wl}-E'
17092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17093 # Instead, shared libraries are loaded at an image base (0x10000000 by
17094 # default) and relocated if they conflict, which is a slow very memory
17095 # consuming and fragmenting process. To avoid this, we pick a random,
17096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17098 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'
17099 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'
17102 gnu* | linux* | k*bsd*-gnu)
17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17105 case $cc_basename,$host_cpu in
17106 pgcc*) # Portland Group C compiler
17107 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'
17108 tmp_addflag=' $pic_flag'
17110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17111 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'
17112 tmp_addflag=' $pic_flag -Mnomain' ;;
17113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17114 tmp_addflag=' -i_dynamic' ;;
17115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17116 tmp_addflag=' -i_dynamic -nofor_main' ;;
17117 ifc* | ifort*) # Intel Fortran compiler
17118 tmp_addflag=' -nofor_main' ;;
17120 case `$CC -V 2>&1 | sed 5q` in
17121 *Sun\ C*) # Sun C 5.9
17122 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'
17123 tmp_sharedflag='-G' ;;
17124 *Sun\ F*) # Sun Fortran 8.3
17125 tmp_sharedflag='-G' ;;
17127 tmp_sharedflag='-shared' ;;
17129 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17131 if test $supports_anon_versioning = yes; then
17132 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17134 $echo "local: *; };" >> $output_objdir/$libname.ver~
17135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17137 link_all_deplibs_GCJ=no
17143 netbsd* | netbsdelf*-gnu)
17144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17145 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17148 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17149 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17159 *** create shared libraries on Solaris systems. Therefore, libtool
17160 *** is disabling shared libraries support. We urge you to upgrade GNU
17161 *** binutils to release 2.9.1 or newer. Another option is to modify
17162 *** your PATH or compiler configuration so that the native linker is
17163 *** used, and then restart.
17166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17175 case `$LD -v 2>&1` in
17176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17181 *** reliably create shared libraries on SCO systems. Therefore, libtool
17182 *** is disabling shared libraries support. We urge you to upgrade GNU
17183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17184 *** your PATH or compiler configuration so that the native linker is
17185 *** used, and then restart.
17190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17191 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17202 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17204 hardcode_direct_GCJ=yes
17205 hardcode_shlibpath_var_GCJ=no
17209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17210 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17211 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17218 if test "$ld_shlibs_GCJ" = no; then
17220 hardcode_libdir_flag_spec_GCJ=
17221 export_dynamic_flag_spec_GCJ=
17222 whole_archive_flag_spec_GCJ=
17225 # PORTME fill in a description of your system's linker (not GNU ld)
17228 allow_undefined_flag_GCJ=unsupported
17229 always_export_symbols_GCJ=yes
17230 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'
17231 # Note: this linker hardcodes the directories in LIBPATH if there
17232 # are no directories specified by -L.
17233 hardcode_minus_L_GCJ=yes
17234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17235 # Neither direct hardcoding nor static linking is supported with a
17237 hardcode_direct_GCJ=unsupported
17242 if test "$host_cpu" = ia64; then
17243 # On IA64, the linker does run time linking by default, so we don't
17244 # have to do anything special.
17245 aix_use_runtimelinking=no
17246 exp_sym_flag='-Bexport'
17249 # If we're using GNU nm, then we don't want the "-C" option.
17250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17252 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'
17254 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'
17256 aix_use_runtimelinking=no
17258 # Test if we are trying to use run time linking or normal
17259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17260 # need to do runtime linking.
17261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17262 for ld_flag in $LDFLAGS; do
17263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17264 aix_use_runtimelinking=yes
17271 exp_sym_flag='-bexport'
17272 no_entry_flag='-bnoentry'
17275 # When large executables or shared objects are built, AIX ld can
17276 # have problems creating the table of contents. If linking a library
17277 # or program results in "error TOC overflow" add -mminimal-toc to
17278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17281 archive_cmds_GCJ=''
17282 hardcode_direct_GCJ=yes
17283 hardcode_libdir_separator_GCJ=':'
17284 link_all_deplibs_GCJ=yes
17286 if test "$GCC" = yes; then
17287 case $host_os in aix4.[012]|aix4.[012].*)
17288 # We only want to do this on AIX 4.2 and lower, the check
17289 # below for broken collect2 doesn't work under 4.3+
17290 collect2name=`${CC} -print-prog-name=collect2`
17291 if test -f "$collect2name" && \
17292 strings "$collect2name" | grep resolve_lib_name >/dev/null
17294 # We have reworked collect2
17297 # We have old collect2
17298 hardcode_direct_GCJ=unsupported
17299 # It fails to find uninstalled libraries when the uninstalled
17300 # path is not listed in the libpath. Setting hardcode_minus_L
17301 # to unsupported forces relinking
17302 hardcode_minus_L_GCJ=yes
17303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17304 hardcode_libdir_separator_GCJ=
17308 shared_flag='-shared'
17309 if test "$aix_use_runtimelinking" = yes; then
17310 shared_flag="$shared_flag "'${wl}-G'
17314 if test "$host_cpu" = ia64; then
17315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17316 # chokes on -Wl,-G. The following line is correct:
17319 if test "$aix_use_runtimelinking" = yes; then
17320 shared_flag='${wl}-G'
17322 shared_flag='${wl}-bM:SRE'
17327 # It seems that -bexpall does not export symbols beginning with
17328 # underscore (_), so it is better to generate a list of symbols to export.
17329 always_export_symbols_GCJ=yes
17330 if test "$aix_use_runtimelinking" = yes; then
17331 # Warning - without using the other runtime loading flags (-brtl),
17332 # -berok will link without error, but may produce a broken library.
17333 allow_undefined_flag_GCJ='-berok'
17334 # Determine the default libpath from the value encoded in an empty executable.
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17346 if ac_fn_c_try_link "$LINENO"; then :
17348 lt_aix_libpath_sed='
17349 /Import File Strings/,/^$/ {
17355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17356 # Check for a 64-bit object if we didn't find anything.
17357 if test -z "$aix_libpath"; then
17358 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17365 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17366 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"
17368 if test "$host_cpu" = ia64; then
17369 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17370 allow_undefined_flag_GCJ="-z nodefs"
17371 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"
17373 # Determine the default libpath from the value encoded in an empty executable.
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17385 if ac_fn_c_try_link "$LINENO"; then :
17387 lt_aix_libpath_sed='
17388 /Import File Strings/,/^$/ {
17394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17395 # Check for a 64-bit object if we didn't find anything.
17396 if test -z "$aix_libpath"; then
17397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17404 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17405 # Warning - without using the other run time loading flags,
17406 # -berok will link without error, but may produce a broken library.
17407 no_undefined_flag_GCJ=' ${wl}-bernotok'
17408 allow_undefined_flag_GCJ=' ${wl}-berok'
17409 # Exported symbols can be pulled into shared objects from archives
17410 whole_archive_flag_spec_GCJ='$convenience'
17411 archive_cmds_need_lc_GCJ=yes
17412 # This is similar to how AIX traditionally builds its shared libraries.
17413 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'
17419 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)'
17420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17421 hardcode_minus_L_GCJ=yes
17422 # see comment about different semantics on the GNU ld section
17427 export_dynamic_flag_spec_GCJ=-rdynamic
17430 cygwin* | mingw* | pw32*)
17431 # When not using gcc, we currently assume that we are using
17432 # Microsoft Visual C++.
17433 # hardcode_libdir_flag_spec is actually meaningless, as there is
17434 # no search path for DLLs.
17435 hardcode_libdir_flag_spec_GCJ=' '
17436 allow_undefined_flag_GCJ=unsupported
17437 # Tell ltmain to make .lib files, not .a files.
17439 # Tell ltmain to make .dll files, not .so files.
17441 # FIXME: Setting linknames here is a bad hack.
17442 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17443 # The linker will automatically build a .lib file if we build a DLL.
17444 old_archive_From_new_cmds_GCJ='true'
17445 # FIXME: Should let the user specify the lib program.
17446 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17447 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17448 enable_shared_with_static_runtimes_GCJ=yes
17451 darwin* | rhapsody*)
17453 rhapsody* | darwin1.[012])
17454 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17458 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17460 case ${MACOSX_DEPLOYMENT_TARGET} in
17462 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17465 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17471 archive_cmds_need_lc_GCJ=no
17472 hardcode_direct_GCJ=no
17473 hardcode_automatic_GCJ=yes
17474 hardcode_shlibpath_var_GCJ=unsupported
17475 whole_archive_flag_spec_GCJ=''
17476 link_all_deplibs_GCJ=yes
17477 if test "$GCC" = yes ; then
17478 output_verbose_link_cmd='echo'
17479 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}"
17480 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17481 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}"
17482 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}"
17484 case $cc_basename in
17486 output_verbose_link_cmd='echo'
17487 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17488 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17490 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}'
17491 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}'
17501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17503 hardcode_shlibpath_var_GCJ=no
17510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17511 # support. Future versions do this automatically, but an explicit c++rt0.o
17512 # does not break anything, and helps significantly (at the cost of a little
17515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17517 hardcode_direct_GCJ=yes
17518 hardcode_shlibpath_var_GCJ=no
17521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17524 hardcode_direct_GCJ=yes
17525 hardcode_minus_L_GCJ=yes
17526 hardcode_shlibpath_var_GCJ=no
17529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17530 freebsd* | dragonfly*)
17531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17533 hardcode_direct_GCJ=yes
17534 hardcode_shlibpath_var_GCJ=no
17538 if test "$GCC" = yes; then
17539 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'
17541 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'
17543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17544 hardcode_libdir_separator_GCJ=:
17545 hardcode_direct_GCJ=yes
17547 # hardcode_minus_L: Not really in the search PATH,
17548 # but as the default location of the library.
17549 hardcode_minus_L_GCJ=yes
17550 export_dynamic_flag_spec_GCJ='${wl}-E'
17554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17555 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17559 if test "$with_gnu_ld" = no; then
17560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator_GCJ=:
17563 hardcode_direct_GCJ=yes
17564 export_dynamic_flag_spec_GCJ='${wl}-E'
17566 # hardcode_minus_L: Not really in the search PATH,
17567 # but as the default location of the library.
17568 hardcode_minus_L_GCJ=yes
17573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17576 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17579 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17582 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17594 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17598 if test "$with_gnu_ld" = no; then
17599 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17600 hardcode_libdir_separator_GCJ=:
17604 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17605 hardcode_direct_GCJ=no
17606 hardcode_shlibpath_var_GCJ=no
17609 hardcode_direct_GCJ=yes
17610 export_dynamic_flag_spec_GCJ='${wl}-E'
17612 # hardcode_minus_L: Not really in the search PATH,
17613 # but as the default location of the library.
17614 hardcode_minus_L_GCJ=yes
17620 irix5* | irix6* | nonstopux*)
17621 if test "$GCC" = yes; then
17622 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'
17624 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'
17625 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17628 hardcode_libdir_separator_GCJ=:
17629 link_all_deplibs_GCJ=yes
17632 netbsd* | netbsdelf*-gnu)
17633 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17636 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17639 hardcode_direct_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=no
17644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17645 hardcode_direct_GCJ=yes
17646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647 hardcode_libdir_separator_GCJ=:
17648 hardcode_shlibpath_var_GCJ=no
17652 if test -f /usr/libexec/ld.so; then
17653 hardcode_direct_GCJ=yes
17654 hardcode_shlibpath_var_GCJ=no
17655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17656 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17659 export_dynamic_flag_spec_GCJ='${wl}-E'
17662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17663 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17667 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17668 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679 hardcode_minus_L_GCJ=yes
17680 allow_undefined_flag_GCJ=unsupported
17681 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'
17682 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17686 if test "$GCC" = yes; then
17687 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17688 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'
17690 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691 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'
17693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694 hardcode_libdir_separator_GCJ=:
17697 osf4* | osf5*) # as osf3* with the addition of -msym flag
17698 if test "$GCC" = yes; then
17699 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17700 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'
17701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17703 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704 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'
17705 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~
17706 $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'
17708 # Both c and cxx compiler support -rpath directly
17709 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17711 hardcode_libdir_separator_GCJ=:
17715 no_undefined_flag_GCJ=' -z text'
17716 if test "$GCC" = yes; then
17718 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17719 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17720 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17723 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17727 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728 hardcode_shlibpath_var_GCJ=no
17730 solaris2.[0-5] | solaris2.[0-5].*) ;;
17732 # The compiler driver will combine and reorder linker options,
17733 # but understands `-z linker_flag'. GCC discards it without `$wl',
17734 # but is careful enough not to reorder.
17735 # Supported since Solaris 2.6 (maybe 2.5.1?)
17736 if test "$GCC" = yes; then
17737 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17739 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17743 link_all_deplibs_GCJ=yes
17747 if test "x$host_vendor" = xsequent; then
17748 # Use $CC to link under sequent, because it throws in some extra .o
17749 # files that make .init and .fini sections work.
17750 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17752 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17755 hardcode_direct_GCJ=yes
17756 hardcode_minus_L_GCJ=yes
17757 hardcode_shlibpath_var_GCJ=no
17761 case $host_vendor in
17763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17764 hardcode_direct_GCJ=yes # is this really true???
17767 ## LD is ld it makes a PLAMLIB
17768 ## CC just makes a GrossModule.
17769 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17770 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17771 hardcode_direct_GCJ=no
17774 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17775 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17778 runpath_var='LD_RUN_PATH'
17779 hardcode_shlibpath_var_GCJ=no
17783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17784 hardcode_shlibpath_var_GCJ=no
17785 export_dynamic_flag_spec_GCJ='-Bexport'
17789 if test -d /usr/nec; then
17790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17791 hardcode_shlibpath_var_GCJ=no
17792 runpath_var=LD_RUN_PATH
17793 hardcode_runpath_var=yes
17798 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17799 no_undefined_flag_GCJ='${wl}-z,text'
17800 archive_cmds_need_lc_GCJ=no
17801 hardcode_shlibpath_var_GCJ=no
17802 runpath_var='LD_RUN_PATH'
17804 if test "$GCC" = yes; then
17805 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17806 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 sysv5* | sco3.2v5* | sco5v6*)
17814 # Note: We can NOT use -z defs as we might desire, because we do not
17815 # link with -lc, and that would cause any symbols used from libc to
17816 # always be unresolved, which means just about no library would
17817 # ever link correctly. If we're not using GNU ld we use -z text
17818 # though, which does catch some bad symbols but isn't as heavy-handed
17820 no_undefined_flag_GCJ='${wl}-z,text'
17821 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17822 archive_cmds_need_lc_GCJ=no
17823 hardcode_shlibpath_var_GCJ=no
17824 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17825 hardcode_libdir_separator_GCJ=':'
17826 link_all_deplibs_GCJ=yes
17827 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17828 runpath_var='LD_RUN_PATH'
17830 if test "$GCC" = yes; then
17831 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17842 hardcode_shlibpath_var_GCJ=no
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17852 $as_echo "$ld_shlibs_GCJ" >&6; }
17853 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17856 # Do we need to explicitly link libc?
17858 case "x$archive_cmds_need_lc_GCJ" in
17860 # Assume -lc should be added
17861 archive_cmds_need_lc_GCJ=yes
17863 if test "$enable_shared" = yes && test "$GCC" = yes; then
17864 case $archive_cmds_GCJ in
17866 # FIXME: we may have to deal with multi-command sequences.
17869 # Test whether the compiler implicitly links with -lc since on some
17870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17871 # to ld, don't add -lc before -lgcc.
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17878 (eval $ac_compile) 2>&5
17880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17881 test $ac_status = 0; } 2>conftest.err; then
17884 libobjs=conftest.$ac_objext
17886 wl=$lt_prog_compiler_wl_GCJ
17887 pic_flag=$lt_prog_compiler_pic_GCJ
17893 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17894 allow_undefined_flag_GCJ=
17895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17896 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; }
17901 archive_cmds_need_lc_GCJ=no
17903 archive_cmds_need_lc_GCJ=yes
17905 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17907 cat conftest.err 1>&5
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17911 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17920 library_names_spec=
17921 libname_spec='lib$name'
17925 postuninstall_cmds=
17929 shlibpath_overrides_runpath=unknown
17931 dynamic_linker="$host_os ld.so"
17932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17934 need_lib_prefix=unknown
17935 hardcode_into_libs=no
17937 # when you set need_version to no, make sure it does not cause -set_version
17938 # flags to be left without arguments
17939 need_version=unknown
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17945 shlibpath_var=LIBPATH
17947 # AIX 3 has no versioning support, so we append a major version to the name.
17948 soname_spec='${libname}${release}${shared_ext}$major'
17955 hardcode_into_libs=yes
17956 if test "$host_cpu" = ia64; then
17957 # AIX 5 supports IA64
17958 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17959 shlibpath_var=LD_LIBRARY_PATH
17961 # With GCC up to 2.95.x, collect2 would create an import file
17962 # for dependence libraries. The import file would start with
17963 # the line `#! .'. This would cause the generated library to
17964 # depend on `.', always an invalid library. This was fixed in
17965 # development snapshots of GCC prior to 3.0.
17967 aix4 | aix4.[01] | aix4.[01].*)
17968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17970 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17973 can_build_shared=no
17977 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17978 # soname into executable. Probably we can add versioning support to
17979 # collect2, so additional links can be useful in future.
17980 if test "$aix_use_runtimelinking" = yes; then
17981 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17982 # instead of lib<name>.a to let people know that these are not
17983 # typical AIX shared libraries.
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17986 # We preserve .a as extension for shared libraries through AIX4.2
17987 # and later when we are not doing run time linking.
17988 library_names_spec='${libname}${release}.a $libname.a'
17989 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LIBPATH
17996 library_names_spec='$libname.ixlibrary $libname.a'
17997 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17998 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'
18002 library_names_spec='${libname}${shared_ext}'
18003 dynamic_linker="$host_os ld.so"
18004 shlibpath_var=LIBRARY_PATH
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18013 shlibpath_var=LD_LIBRARY_PATH
18014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18016 # the default ld.so.conf also contains /usr/contrib/lib and
18017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18018 # libtool to hard-code these into programs
18021 cygwin* | mingw* | pw32*)
18022 version_type=windows
18027 case $GCC,$host_os in
18028 yes,cygwin* | yes,mingw* | yes,pw32*)
18029 library_names_spec='$libname.dll.a'
18030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18031 postinstall_cmds='base_file=`basename \${file}`~
18032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18033 dldir=$destdir/`dirname \$dlpath`~
18034 test -d \$dldir || mkdir -p \$dldir~
18035 $install_prog $dir/$dlname \$dldir/$dlname~
18036 chmod a+x \$dldir/$dlname'
18037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18038 dlpath=$dir/\$dldll~
18040 shlibpath_overrides_runpath=yes
18044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18045 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18046 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18049 # MinGW DLLs use traditional 'lib' prefix
18050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18052 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18053 # It is most probably a Windows format PATH printed by
18054 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18055 # path with ; separators, and with drive letters. We can handle the
18056 # drive letters (cygwin fileutils understands them), so leave them,
18057 # especially as we might pass files found there to a mingw objdump,
18058 # which wouldn't understand a cygwinified path. Ahh.
18059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18065 # pw32 DLLs use 'pw' prefix rather than 'lib'
18066 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18072 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18075 dynamic_linker='Win32 ld.exe'
18076 # FIXME: first we should search . and the directory the executable is in
18080 darwin* | rhapsody*)
18081 dynamic_linker="$host_os dyld"
18082 version_type=darwin
18085 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18086 soname_spec='${libname}${release}${major}$shared_ext'
18087 shlibpath_overrides_runpath=yes
18088 shlibpath_var=DYLD_LIBRARY_PATH
18089 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 shlibpath_var=LD_LIBRARY_PATH
18107 freebsd* | dragonfly*)
18108 # DragonFly does not have aout. When/if they implement a new
18109 # versioning mechanism, adjust this.
18110 if test -x /usr/bin/objformat; then
18111 objformat=`/usr/bin/objformat`
18114 freebsd[123]*) objformat=aout ;;
18115 *) objformat=elf ;;
18118 version_type=freebsd-$objformat
18119 case $version_type in
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18130 shlibpath_var=LD_LIBRARY_PATH
18133 shlibpath_overrides_runpath=yes
18135 freebsd3.[01]* | freebsdelf3.[01]*)
18136 shlibpath_overrides_runpath=yes
18137 hardcode_into_libs=yes
18139 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18140 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18141 shlibpath_overrides_runpath=no
18142 hardcode_into_libs=yes
18144 *) # from 4.6 on, and DragonFly
18145 shlibpath_overrides_runpath=yes
18146 hardcode_into_libs=yes
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 hardcode_into_libs=yes
18161 hpux9* | hpux10* | hpux11*)
18162 # Give a soname corresponding to the major version so that dld.sl refuses to
18163 # link against other versions.
18170 hardcode_into_libs=yes
18171 dynamic_linker="$host_os dld.so"
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 soname_spec='${libname}${release}${shared_ext}$major'
18176 if test "X$HPUX_IA64_MODE" = X32; then
18177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185 hardcode_into_libs=yes
18186 dynamic_linker="$host_os dld.sl"
18187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18196 dynamic_linker="$host_os dld.sl"
18197 shlibpath_var=SHLIB_PATH
18198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18203 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18204 postinstall_cmds='chmod 555 $lib'
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 shlibpath_overrides_runpath=no
18216 hardcode_into_libs=yes
18219 irix5* | irix6* | nonstopux*)
18221 nonstopux*) version_type=nonstopux ;;
18223 if test "$lt_cv_prog_gnu_ld" = yes; then
18231 soname_spec='${libname}${release}${shared_ext}$major'
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18234 irix5* | nonstopux*)
18235 libsuff= shlibsuff=
18238 case $LD in # libtool.m4 will add one of these switches to LD
18239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18240 libsuff= shlibsuff= libmagic=32-bit;;
18241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18242 libsuff=32 shlibsuff=N32 libmagic=N32;;
18243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18244 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18245 *) libsuff= shlibsuff= libmagic=never-match;;
18249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18250 shlibpath_overrides_runpath=no
18251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18253 hardcode_into_libs=yes
18256 # No shared lib support for Linux oldld, aout, or coff.
18257 linux*oldld* | linux*aout* | linux*coff*)
18261 # This must be Linux ELF.
18262 linux* | k*bsd*-gnu)
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18267 soname_spec='${libname}${release}${shared_ext}$major'
18268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=no
18271 # This implies no fast_install, which is unacceptable.
18272 # Some rework will be needed to allow for fast_install
18273 # before this can be enabled.
18274 hardcode_into_libs=yes
18276 # Append ld.so.conf contents to the search path
18277 if test -f /etc/ld.so.conf; then
18278 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' ' '`
18279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18282 # We used to test for /lib/ld.so.1 and disable shared libraries on
18283 # powerpc, because MkLinux only supported shared libraries with the
18284 # GNU dynamic linker. Since this was broken with cross compilers,
18285 # most powerpc-linux boxes support dynamic linking these days and
18286 # people can always --disable-shared, the test was removed, and we
18287 # assume the GNU/Linux dynamic linker is in use.
18288 dynamic_linker='GNU/Linux ld.so'
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=no
18299 hardcode_into_libs=yes
18300 dynamic_linker='NetBSD ld.elf_so'
18307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18310 dynamic_linker='NetBSD (a.out) ld.so'
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 dynamic_linker='NetBSD ld.elf_so'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 shlibpath_overrides_runpath=yes
18318 hardcode_into_libs=yes
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=yes
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333 soname_spec='${libname}${release}${shared_ext}$major'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 shlibpath_overrides_runpath=yes
18340 sys_lib_dlsearch_path_spec="/usr/lib"
18342 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18344 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18345 *) need_version=no ;;
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18352 openbsd2.[89] | openbsd2.[89].*)
18353 shlibpath_overrides_runpath=no
18356 shlibpath_overrides_runpath=yes
18360 shlibpath_overrides_runpath=yes
18365 libname_spec='$name'
18368 library_names_spec='$libname${shared_ext} $libname.a'
18369 dynamic_linker='OS/2 ld.exe'
18370 shlibpath_var=LIBPATH
18373 osf3* | osf4* | osf5*)
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18381 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 shlibpath_overrides_runpath=yes
18396 hardcode_into_libs=yes
18397 # ldd complains unless libraries are executable
18398 postinstall_cmds='chmod +x $lib'
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18405 shlibpath_var=LD_LIBRARY_PATH
18406 shlibpath_overrides_runpath=yes
18407 if test "$with_gnu_ld" = yes; then
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 case $host_vendor in
18420 shlibpath_overrides_runpath=no
18422 export_dynamic_flag_spec='${wl}-Blargedynsym'
18423 runpath_var=LD_RUN_PATH
18431 shlibpath_overrides_runpath=no
18432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18438 if test -d /usr/nec ;then
18440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18441 soname_spec='$libname${shared_ext}.$major'
18442 shlibpath_var=LD_LIBRARY_PATH
18446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18447 version_type=freebsd-elf
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18453 hardcode_into_libs=yes
18454 if test "$with_gnu_ld" = yes; then
18455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18456 shlibpath_overrides_runpath=no
18458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18459 shlibpath_overrides_runpath=yes
18462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18466 sys_lib_dlsearch_path_spec='/usr/lib'
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 shlibpath_var=LD_LIBRARY_PATH
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18481 $as_echo "$dynamic_linker" >&6; }
18482 test "$dynamic_linker" = no && can_build_shared=no
18484 if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18485 $as_echo_n "(cached) " >&6
18487 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18490 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18491 if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18492 $as_echo_n "(cached) " >&6
18494 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18497 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18500 if test "$GCC" = yes; then
18501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18506 hardcode_action_GCJ=
18507 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18508 test -n "$runpath_var_GCJ" || \
18509 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18511 # We can hardcode non-existant directories.
18512 if test "$hardcode_direct_GCJ" != no &&
18513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18514 # have to relink, otherwise we might link with an installed library
18515 # when we should be linking with a yet-to-be-installed one
18516 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18517 test "$hardcode_minus_L_GCJ" != no; then
18518 # Linking always hardcodes the temporary library directory.
18519 hardcode_action_GCJ=relink
18521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18522 hardcode_action_GCJ=immediate
18525 # We cannot hardcode anything, or else we can only hardcode existing
18527 hardcode_action_GCJ=unsupported
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18530 $as_echo "$hardcode_action_GCJ" >&6; }
18532 if test "$hardcode_action_GCJ" = relink; then
18533 # Fast installation is not supported
18534 enable_fast_install=no
18535 elif test "$shlibpath_overrides_runpath" = yes ||
18536 test "$enable_shared" = no; then
18537 # Fast installation is not necessary
18538 enable_fast_install=needless
18542 # The else clause should only fire when bootstrapping the
18543 # libtool distribution, otherwise you forgot to ship ltmain.sh
18544 # with your package, and you will get complaints that there are
18545 # no rules to generate ltmain.sh.
18546 if test -f "$ltmain"; then
18547 # See if we are running on zsh, and set the options which allow our commands through
18548 # without removal of \ escapes.
18549 if test -n "${ZSH_VERSION+set}" ; then
18550 setopt NO_GLOB_SUBST
18552 # Now quote all the things that may contain metacharacters while being
18553 # careful not to overquote the AC_SUBSTed values. We take copies of the
18554 # variables and quote the copies for generation of the libtool script.
18555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18559 deplibs_check_method reload_flag reload_cmds need_locks \
18560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18561 lt_cv_sys_global_symbol_to_c_name_address \
18562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18563 old_postinstall_cmds old_postuninstall_cmds \
18567 lt_prog_compiler_wl_GCJ \
18568 lt_prog_compiler_pic_GCJ \
18569 lt_prog_compiler_static_GCJ \
18570 lt_prog_compiler_no_builtin_flag_GCJ \
18571 export_dynamic_flag_spec_GCJ \
18572 thread_safe_flag_spec_GCJ \
18573 whole_archive_flag_spec_GCJ \
18574 enable_shared_with_static_runtimes_GCJ \
18575 old_archive_cmds_GCJ \
18576 old_archive_from_new_cmds_GCJ \
18577 predep_objects_GCJ \
18578 postdep_objects_GCJ \
18581 compiler_lib_search_path_GCJ \
18582 compiler_lib_search_dirs_GCJ \
18584 archive_expsym_cmds_GCJ \
18585 postinstall_cmds_GCJ \
18586 postuninstall_cmds_GCJ \
18587 old_archive_from_expsyms_cmds_GCJ \
18588 allow_undefined_flag_GCJ \
18589 no_undefined_flag_GCJ \
18590 export_symbols_cmds_GCJ \
18591 hardcode_libdir_flag_spec_GCJ \
18592 hardcode_libdir_flag_spec_ld_GCJ \
18593 hardcode_libdir_separator_GCJ \
18594 hardcode_automatic_GCJ \
18596 module_expsym_cmds_GCJ \
18597 lt_cv_prog_compiler_c_o_GCJ \
18598 fix_srcfile_path_GCJ \
18599 exclude_expsyms_GCJ \
18600 include_expsyms_GCJ; do
18603 old_archive_cmds_GCJ | \
18604 old_archive_from_new_cmds_GCJ | \
18605 archive_cmds_GCJ | \
18606 archive_expsym_cmds_GCJ | \
18607 module_cmds_GCJ | \
18608 module_expsym_cmds_GCJ | \
18609 old_archive_from_expsyms_cmds_GCJ | \
18610 export_symbols_cmds_GCJ | \
18611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18612 postinstall_cmds | postuninstall_cmds | \
18613 old_postinstall_cmds | old_postuninstall_cmds | \
18614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18615 # Double-quote double-evaled strings.
18616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18625 *'\$0 --fallback-echo"')
18626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18632 cat <<__EOF__ >> "$cfgfile"
18633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18637 # Shell to use when invoking shell scripts.
18640 # Whether or not to build shared libraries.
18641 build_libtool_libs=$enable_shared
18643 # Whether or not to build static libraries.
18644 build_old_libs=$enable_static
18646 # Whether or not to add -lc for building shared libraries.
18647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18649 # Whether or not to disallow shared libs when runtime libs are static
18650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18652 # Whether or not to optimize for fast installation.
18653 fast_install=$enable_fast_install
18656 host_alias=$host_alias
18660 # The build system.
18661 build_alias=$build_alias
18665 # An echo program that does not interpret backslashes.
18670 AR_FLAGS=$lt_AR_FLAGS
18675 # LTCC compiler flags.
18676 LTCFLAGS=$lt_LTCFLAGS
18678 # A language-specific compiler.
18679 CC=$lt_compiler_GCJ
18681 # Is the compiler the GNU C compiler?
18687 # The linker used to build libraries.
18690 # Whether we need hard or soft links.
18693 # A BSD-compatible nm program.
18696 # A symbol stripping program
18699 # Used to examine libraries when file_magic_cmd begins "file"
18700 MAGIC_CMD=$MAGIC_CMD
18702 # Used on cygwin: DLL creation program.
18705 # Used on cygwin: object dumper.
18708 # Used on cygwin: assembler.
18711 # The name of the directory that contains temporary libtool files.
18714 # How to create reloadable object files.
18715 reload_flag=$lt_reload_flag
18716 reload_cmds=$lt_reload_cmds
18718 # How to pass a linker flag through the compiler.
18719 wl=$lt_lt_prog_compiler_wl_GCJ
18721 # Object file suffix (normally "o").
18722 objext="$ac_objext"
18724 # Old archive suffix (normally "a").
18727 # Shared library suffix (normally ".so").
18728 shrext_cmds='$shrext_cmds'
18730 # Executable file suffix (normally "").
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18737 # What is the maximum length of a command?
18738 max_cmd_len=$lt_cv_sys_max_cmd_len
18740 # Does compiler simultaneously support -c and -o options?
18741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18743 # Must we lock files when doing compilation?
18744 need_locks=$lt_need_locks
18746 # Do we need the lib prefix for modules?
18747 need_lib_prefix=$need_lib_prefix
18749 # Do we need a version for libraries?
18750 need_version=$need_version
18752 # Whether dlopen is supported.
18753 dlopen_support=$enable_dlopen
18755 # Whether dlopen of programs is supported.
18756 dlopen_self=$enable_dlopen_self
18758 # Whether dlopen of statically linked programs is supported.
18759 dlopen_self_static=$enable_dlopen_self_static
18761 # Compiler flag to prevent dynamic linking.
18762 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18764 # Compiler flag to turn off builtin functions.
18765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18767 # Compiler flag to allow reflexive dlopens.
18768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18770 # Compiler flag to generate shared objects directly from archives.
18771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18773 # Compiler flag to generate thread-safe objects.
18774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18776 # Library versioning type.
18777 version_type=$version_type
18779 # Format of library name prefix.
18780 libname_spec=$lt_libname_spec
18782 # List of archive names. First name is the real one, the rest are links.
18783 # The last name is the one that the linker finds with -lNAME.
18784 library_names_spec=$lt_library_names_spec
18786 # The coded name of the library, if different from the real name.
18787 soname_spec=$lt_soname_spec
18789 # Commands used to build and install an old-style archive.
18791 old_archive_cmds=$lt_old_archive_cmds_GCJ
18792 old_postinstall_cmds=$lt_old_postinstall_cmds
18793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18795 # Create an old-style archive from a shared archive.
18796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18798 # Create a temporary old-style archive to link instead of a shared archive.
18799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18801 # Commands used to build and install a shared archive.
18802 archive_cmds=$lt_archive_cmds_GCJ
18803 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18804 postinstall_cmds=$lt_postinstall_cmds
18805 postuninstall_cmds=$lt_postuninstall_cmds
18807 # Commands used to build a loadable module (assumed same as above if empty)
18808 module_cmds=$lt_module_cmds_GCJ
18809 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18811 # Commands to strip libraries.
18812 old_striplib=$lt_old_striplib
18813 striplib=$lt_striplib
18815 # Dependencies to place before the objects being linked to create a
18817 predep_objects=$lt_predep_objects_GCJ
18819 # Dependencies to place after the objects being linked to create a
18821 postdep_objects=$lt_postdep_objects_GCJ
18823 # Dependencies to place before the objects being linked to create a
18825 predeps=$lt_predeps_GCJ
18827 # Dependencies to place after the objects being linked to create a
18829 postdeps=$lt_postdeps_GCJ
18831 # The directories searched by this compiler when creating a shared
18833 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18835 # The library search path used internally by the compiler when linking
18836 # a shared library.
18837 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18839 # Method to check whether dependent libraries are shared objects.
18840 deplibs_check_method=$lt_deplibs_check_method
18842 # Command to use when deplibs_check_method == file_magic.
18843 file_magic_cmd=$lt_file_magic_cmd
18845 # Flag that allows shared libraries with undefined symbols to be built.
18846 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18848 # Flag that forces no undefined symbols.
18849 no_undefined_flag=$lt_no_undefined_flag_GCJ
18851 # Commands used to finish a libtool library installation in a directory.
18852 finish_cmds=$lt_finish_cmds
18854 # Same as above, but a single script fragment to be evaled but not shown.
18855 finish_eval=$lt_finish_eval
18857 # Take the output of nm and produce a listing of raw symbols and C names.
18858 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18860 # Transform the output of nm in a proper C declaration
18861 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18863 # Transform the output of nm in a C name address pair
18864 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18866 # This is the shared library runtime path variable.
18867 runpath_var=$runpath_var
18869 # This is the shared library path variable.
18870 shlibpath_var=$shlibpath_var
18872 # Is shlibpath searched before the hard-coded library search path?
18873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18875 # How to hardcode a shared library path into an executable.
18876 hardcode_action=$hardcode_action_GCJ
18878 # Whether we should hardcode library paths into libraries.
18879 hardcode_into_libs=$hardcode_into_libs
18881 # Flag to hardcode \$libdir into a binary during linking.
18882 # This must work even if \$libdir does not exist.
18883 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18885 # If ld is used when linking, flag to hardcode \$libdir into
18886 # a binary during linking. This must work even if \$libdir does
18888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18890 # Whether we need a single -rpath flag with a separated argument.
18891 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18893 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18894 # resulting binary.
18895 hardcode_direct=$hardcode_direct_GCJ
18897 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18898 # resulting binary.
18899 hardcode_minus_L=$hardcode_minus_L_GCJ
18901 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18902 # the resulting binary.
18903 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18905 # Set to yes if building a shared library automatically hardcodes DIR into the library
18906 # and all subsequent libraries and executables linked against it.
18907 hardcode_automatic=$hardcode_automatic_GCJ
18909 # Variables whose values should be saved in libtool wrapper scripts and
18910 # restored at relink time.
18911 variables_saved_for_relink="$variables_saved_for_relink"
18913 # Whether libtool must link a program against all its dependency libraries.
18914 link_all_deplibs=$link_all_deplibs_GCJ
18916 # Compile-time system search path for libraries
18917 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18919 # Run-time system search path for libraries
18920 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18922 # Fix the shell variable \$srcfile for the compiler.
18923 fix_srcfile_path=$lt_fix_srcfile_path
18925 # Set to yes if exported symbols are required.
18926 always_export_symbols=$always_export_symbols_GCJ
18928 # The commands to list exported symbols.
18929 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18931 # The commands to extract the exported symbol list from a shared archive.
18932 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18934 # Symbols that should not be listed in the preloaded symbols.
18935 exclude_expsyms=$lt_exclude_expsyms_GCJ
18937 # Symbols that must always be exported.
18938 include_expsyms=$lt_include_expsyms_GCJ
18940 # ### END LIBTOOL TAG CONFIG: $tagname
18946 # If there is no Makefile yet, we rely on a make rule to execute
18947 # `config.status --recheck' to rerun these tests and create the
18948 # libtool script then.
18949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18950 if test -f "$ltmain_in"; then
18951 test -f Makefile && make "$ltmain"
18957 ac_cpp='$CPP $CPPFLAGS'
18958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18972 # Source file extension for RC test sources.
18975 # Object file extension for compiled RC test sources.
18979 # Code to be used in simple compile tests
18980 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18982 # Code to be used in simple link tests
18983 lt_simple_link_test_code="$lt_simple_compile_test_code"
18985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18987 # If no C compiler was specified, use CC.
18990 # If no C compiler flags were specified, use CFLAGS.
18991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18993 # Allow CC to be a program name with arguments.
18997 # save warnings/boilerplate of simple test code
18998 ac_outfile=conftest.$ac_objext
18999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19001 _lt_compiler_boilerplate=`cat conftest.err`
19004 ac_outfile=conftest.$ac_objext
19005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19007 _lt_linker_boilerplate=`cat conftest.err`
19011 # Allow CC to be a program name with arguments.
19016 for cc_temp in $compiler""; do
19018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19026 lt_cv_prog_compiler_c_o_RC=yes
19028 # The else clause should only fire when bootstrapping the
19029 # libtool distribution, otherwise you forgot to ship ltmain.sh
19030 # with your package, and you will get complaints that there are
19031 # no rules to generate ltmain.sh.
19032 if test -f "$ltmain"; then
19033 # See if we are running on zsh, and set the options which allow our commands through
19034 # without removal of \ escapes.
19035 if test -n "${ZSH_VERSION+set}" ; then
19036 setopt NO_GLOB_SUBST
19038 # Now quote all the things that may contain metacharacters while being
19039 # careful not to overquote the AC_SUBSTed values. We take copies of the
19040 # variables and quote the copies for generation of the libtool script.
19041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19045 deplibs_check_method reload_flag reload_cmds need_locks \
19046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19047 lt_cv_sys_global_symbol_to_c_name_address \
19048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19049 old_postinstall_cmds old_postuninstall_cmds \
19053 lt_prog_compiler_wl_RC \
19054 lt_prog_compiler_pic_RC \
19055 lt_prog_compiler_static_RC \
19056 lt_prog_compiler_no_builtin_flag_RC \
19057 export_dynamic_flag_spec_RC \
19058 thread_safe_flag_spec_RC \
19059 whole_archive_flag_spec_RC \
19060 enable_shared_with_static_runtimes_RC \
19061 old_archive_cmds_RC \
19062 old_archive_from_new_cmds_RC \
19063 predep_objects_RC \
19064 postdep_objects_RC \
19067 compiler_lib_search_path_RC \
19068 compiler_lib_search_dirs_RC \
19070 archive_expsym_cmds_RC \
19071 postinstall_cmds_RC \
19072 postuninstall_cmds_RC \
19073 old_archive_from_expsyms_cmds_RC \
19074 allow_undefined_flag_RC \
19075 no_undefined_flag_RC \
19076 export_symbols_cmds_RC \
19077 hardcode_libdir_flag_spec_RC \
19078 hardcode_libdir_flag_spec_ld_RC \
19079 hardcode_libdir_separator_RC \
19080 hardcode_automatic_RC \
19082 module_expsym_cmds_RC \
19083 lt_cv_prog_compiler_c_o_RC \
19084 fix_srcfile_path_RC \
19085 exclude_expsyms_RC \
19086 include_expsyms_RC; do
19089 old_archive_cmds_RC | \
19090 old_archive_from_new_cmds_RC | \
19091 archive_cmds_RC | \
19092 archive_expsym_cmds_RC | \
19094 module_expsym_cmds_RC | \
19095 old_archive_from_expsyms_cmds_RC | \
19096 export_symbols_cmds_RC | \
19097 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19098 postinstall_cmds | postuninstall_cmds | \
19099 old_postinstall_cmds | old_postuninstall_cmds | \
19100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19101 # Double-quote double-evaled strings.
19102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19111 *'\$0 --fallback-echo"')
19112 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19118 cat <<__EOF__ >> "$cfgfile"
19119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19123 # Shell to use when invoking shell scripts.
19126 # Whether or not to build shared libraries.
19127 build_libtool_libs=$enable_shared
19129 # Whether or not to build static libraries.
19130 build_old_libs=$enable_static
19132 # Whether or not to add -lc for building shared libraries.
19133 build_libtool_need_lc=$archive_cmds_need_lc_RC
19135 # Whether or not to disallow shared libs when runtime libs are static
19136 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19138 # Whether or not to optimize for fast installation.
19139 fast_install=$enable_fast_install
19142 host_alias=$host_alias
19146 # The build system.
19147 build_alias=$build_alias
19151 # An echo program that does not interpret backslashes.
19156 AR_FLAGS=$lt_AR_FLAGS
19161 # LTCC compiler flags.
19162 LTCFLAGS=$lt_LTCFLAGS
19164 # A language-specific compiler.
19167 # Is the compiler the GNU C compiler?
19173 # The linker used to build libraries.
19176 # Whether we need hard or soft links.
19179 # A BSD-compatible nm program.
19182 # A symbol stripping program
19185 # Used to examine libraries when file_magic_cmd begins "file"
19186 MAGIC_CMD=$MAGIC_CMD
19188 # Used on cygwin: DLL creation program.
19191 # Used on cygwin: object dumper.
19194 # Used on cygwin: assembler.
19197 # The name of the directory that contains temporary libtool files.
19200 # How to create reloadable object files.
19201 reload_flag=$lt_reload_flag
19202 reload_cmds=$lt_reload_cmds
19204 # How to pass a linker flag through the compiler.
19205 wl=$lt_lt_prog_compiler_wl_RC
19207 # Object file suffix (normally "o").
19208 objext="$ac_objext"
19210 # Old archive suffix (normally "a").
19213 # Shared library suffix (normally ".so").
19214 shrext_cmds='$shrext_cmds'
19216 # Executable file suffix (normally "").
19219 # Additional compiler flags for building library objects.
19220 pic_flag=$lt_lt_prog_compiler_pic_RC
19223 # What is the maximum length of a command?
19224 max_cmd_len=$lt_cv_sys_max_cmd_len
19226 # Does compiler simultaneously support -c and -o options?
19227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19229 # Must we lock files when doing compilation?
19230 need_locks=$lt_need_locks
19232 # Do we need the lib prefix for modules?
19233 need_lib_prefix=$need_lib_prefix
19235 # Do we need a version for libraries?
19236 need_version=$need_version
19238 # Whether dlopen is supported.
19239 dlopen_support=$enable_dlopen
19241 # Whether dlopen of programs is supported.
19242 dlopen_self=$enable_dlopen_self
19244 # Whether dlopen of statically linked programs is supported.
19245 dlopen_self_static=$enable_dlopen_self_static
19247 # Compiler flag to prevent dynamic linking.
19248 link_static_flag=$lt_lt_prog_compiler_static_RC
19250 # Compiler flag to turn off builtin functions.
19251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19259 # Compiler flag to generate thread-safe objects.
19260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19262 # Library versioning type.
19263 version_type=$version_type
19265 # Format of library name prefix.
19266 libname_spec=$lt_libname_spec
19268 # List of archive names. First name is the real one, the rest are links.
19269 # The last name is the one that the linker finds with -lNAME.
19270 library_names_spec=$lt_library_names_spec
19272 # The coded name of the library, if different from the real name.
19273 soname_spec=$lt_soname_spec
19275 # Commands used to build and install an old-style archive.
19277 old_archive_cmds=$lt_old_archive_cmds_RC
19278 old_postinstall_cmds=$lt_old_postinstall_cmds
19279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19281 # Create an old-style archive from a shared archive.
19282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19284 # Create a temporary old-style archive to link instead of a shared archive.
19285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19287 # Commands used to build and install a shared archive.
19288 archive_cmds=$lt_archive_cmds_RC
19289 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19290 postinstall_cmds=$lt_postinstall_cmds
19291 postuninstall_cmds=$lt_postuninstall_cmds
19293 # Commands used to build a loadable module (assumed same as above if empty)
19294 module_cmds=$lt_module_cmds_RC
19295 module_expsym_cmds=$lt_module_expsym_cmds_RC
19297 # Commands to strip libraries.
19298 old_striplib=$lt_old_striplib
19299 striplib=$lt_striplib
19301 # Dependencies to place before the objects being linked to create a
19303 predep_objects=$lt_predep_objects_RC
19305 # Dependencies to place after the objects being linked to create a
19307 postdep_objects=$lt_postdep_objects_RC
19309 # Dependencies to place before the objects being linked to create a
19311 predeps=$lt_predeps_RC
19313 # Dependencies to place after the objects being linked to create a
19315 postdeps=$lt_postdeps_RC
19317 # The directories searched by this compiler when creating a shared
19319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19321 # The library search path used internally by the compiler when linking
19322 # a shared library.
19323 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19325 # Method to check whether dependent libraries are shared objects.
19326 deplibs_check_method=$lt_deplibs_check_method
19328 # Command to use when deplibs_check_method == file_magic.
19329 file_magic_cmd=$lt_file_magic_cmd
19331 # Flag that allows shared libraries with undefined symbols to be built.
19332 allow_undefined_flag=$lt_allow_undefined_flag_RC
19334 # Flag that forces no undefined symbols.
19335 no_undefined_flag=$lt_no_undefined_flag_RC
19337 # Commands used to finish a libtool library installation in a directory.
19338 finish_cmds=$lt_finish_cmds
19340 # Same as above, but a single script fragment to be evaled but not shown.
19341 finish_eval=$lt_finish_eval
19343 # Take the output of nm and produce a listing of raw symbols and C names.
19344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19346 # Transform the output of nm in a proper C declaration
19347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19349 # Transform the output of nm in a C name address pair
19350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19352 # This is the shared library runtime path variable.
19353 runpath_var=$runpath_var
19355 # This is the shared library path variable.
19356 shlibpath_var=$shlibpath_var
19358 # Is shlibpath searched before the hard-coded library search path?
19359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19361 # How to hardcode a shared library path into an executable.
19362 hardcode_action=$hardcode_action_RC
19364 # Whether we should hardcode library paths into libraries.
19365 hardcode_into_libs=$hardcode_into_libs
19367 # Flag to hardcode \$libdir into a binary during linking.
19368 # This must work even if \$libdir does not exist.
19369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19371 # If ld is used when linking, flag to hardcode \$libdir into
19372 # a binary during linking. This must work even if \$libdir does
19374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19376 # Whether we need a single -rpath flag with a separated argument.
19377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19380 # resulting binary.
19381 hardcode_direct=$hardcode_direct_RC
19383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19384 # resulting binary.
19385 hardcode_minus_L=$hardcode_minus_L_RC
19387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19388 # the resulting binary.
19389 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19391 # Set to yes if building a shared library automatically hardcodes DIR into the library
19392 # and all subsequent libraries and executables linked against it.
19393 hardcode_automatic=$hardcode_automatic_RC
19395 # Variables whose values should be saved in libtool wrapper scripts and
19396 # restored at relink time.
19397 variables_saved_for_relink="$variables_saved_for_relink"
19399 # Whether libtool must link a program against all its dependency libraries.
19400 link_all_deplibs=$link_all_deplibs_RC
19402 # Compile-time system search path for libraries
19403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19405 # Run-time system search path for libraries
19406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19408 # Fix the shell variable \$srcfile for the compiler.
19409 fix_srcfile_path=$lt_fix_srcfile_path
19411 # Set to yes if exported symbols are required.
19412 always_export_symbols=$always_export_symbols_RC
19414 # The commands to list exported symbols.
19415 export_symbols_cmds=$lt_export_symbols_cmds_RC
19417 # The commands to extract the exported symbol list from a shared archive.
19418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19420 # Symbols that should not be listed in the preloaded symbols.
19421 exclude_expsyms=$lt_exclude_expsyms_RC
19423 # Symbols that must always be exported.
19424 include_expsyms=$lt_include_expsyms_RC
19426 # ### END LIBTOOL TAG CONFIG: $tagname
19432 # If there is no Makefile yet, we rely on a make rule to execute
19433 # `config.status --recheck' to rerun these tests and create the
19434 # libtool script then.
19435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19436 if test -f "$ltmain_in"; then
19437 test -f Makefile && make "$ltmain"
19443 ac_cpp='$CPP $CPPFLAGS'
19444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19453 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19457 # Append the new tag name to the list of available tags.
19458 if test -n "$tagname" ; then
19459 available_tags="$available_tags $tagname"
19465 # Now substitute the updated list of available tags.
19466 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19467 mv "${ofile}T" "$ofile"
19471 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19477 # This can be used to rebuild libtool when needed
19478 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19480 # Always use our own libtool.
19481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19483 # Prevent multiple expansion
19496 # Check whether --with-system-libtool was given.
19497 if test "${with_system_libtool+set}" = set; then :
19498 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19499 set dummy libtool; ac_word=$2
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if ${ac_cv_path_LIBTOOL+:} false; then :
19503 $as_echo_n "(cached) " >&6
19507 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 as_dummy="$PATH:/usr/local/bin"
19512 for as_dir in $as_dummy
19515 test -z "$as_dir" && as_dir=.
19516 for ac_exec_ext in '' $ac_executable_extensions; do
19517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19518 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19529 LIBTOOL=$ac_cv_path_LIBTOOL
19530 if test -n "$LIBTOOL"; then
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
19532 $as_echo "$LIBTOOL" >&6; }
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 $as_echo "no" >&6; }
19551 LIBTOOL="`pwd`/libtool"
19563 # Check whether --enable-strict-dependencies was given.
19564 if test "${enable_strict_dependencies+set}" = set; then :
19565 enableval=$enable_strict_dependencies;
19569 docdir='${datadir}/doc/freeradius'
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
19571 $as_echo_n "checking docdir... " >&6; }
19573 # Check whether --with-docdir was given.
19574 if test "${with_docdir+set}" = set; then :
19575 withval=$with_docdir; case "$withval" in
19581 [\\/$]* | ?:[\\/]* )
19585 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
19593 $as_echo "$docdir" >&6; }
19594 if test "x$docdir" = xno; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
19596 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19599 logdir='${localstatedir}/log/radius'
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
19601 $as_echo_n "checking logdir... " >&6; }
19603 # Check whether --with-logdir was given.
19604 if test "${with_logdir+set}" = set; then :
19605 withval=$with_logdir; case "$withval" in
19607 as_fn_error $? "Need logdir" "$LINENO" 5
19611 [\\/$]* | ?:[\\/]* )
19615 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
19623 $as_echo "$logdir" >&6; }
19625 radacctdir='${logdir}/radacct'
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
19627 $as_echo_n "checking radacctdir... " >&6; }
19629 # Check whether --with-radacctdir was given.
19630 if test "${with_radacctdir+set}" = set; then :
19631 withval=$with_radacctdir; case "$withval" in
19633 as_fn_error $? "Need radacctdir" "$LINENO" 5
19637 [\\/$]* | ?:[\\/]* )
19638 radacctdir="$withval"
19641 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
19649 $as_echo "$radacctdir" >&6; }
19651 raddbdir='${sysconfdir}/raddb'
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
19653 $as_echo_n "checking raddbdir... " >&6; }
19655 # Check whether --with-raddbdir was given.
19656 if test "${with_raddbdir+set}" = set; then :
19657 withval=$with_raddbdir; case "$withval" in
19659 as_fn_error $? "Need raddbdir" "$LINENO" 5
19663 [\\/$]* | ?:[\\/]* )
19664 raddbdir="$withval"
19667 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
19675 $as_echo "$raddbdir" >&6; }
19679 # Check whether --with-ascend-binary was given.
19680 if test "${with_ascend_binary+set}" = set; then :
19681 withval=$with_ascend_binary; case "$withval" in
19690 if test "X$ASCEND_BINARY" = "Xyes"; then
19692 $as_echo "#define ASCEND_BINARY /**/" >>confdefs.h
19698 # Check whether --with-threads was given.
19699 if test "${with_threads+set}" = set; then :
19700 withval=$with_threads; case "$withval" in
19712 # Check whether --with-vmps was given.
19713 if test "${with_vmps+set}" = set; then :
19714 withval=$with_vmps; case "$withval" in
19723 if test "x$WITH_VMPS" = "xyes"; then
19725 $as_echo "#define WITH_VMPS 1" >>confdefs.h
19731 # Check whether --with-dhcp was given.
19732 if test "${with_dhcp+set}" = set; then :
19733 withval=$with_dhcp; case "$withval" in
19742 if test "x$WITH_DHCP" = "xyes"; then
19744 $as_echo "#define WITH_DHCP 1" >>confdefs.h
19749 WITH_POST_PROXY_AUTHORIZE=
19751 # Check whether --with-post-proxy-authorize was given.
19752 if test "${with_post_proxy_authorize+set}" = set; then :
19753 withval=$with_post_proxy_authorize; case "$withval" in
19755 WITH_POST_PROXY_AUTHORIZE=""
19766 # Check whether --with-static_modules was given.
19767 if test "${with_static_modules+set}" = set; then :
19768 withval=$with_static_modules;
19769 for i in $withval; do
19770 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19778 # Check whether --with-modules was given.
19779 if test "${with_modules+set}" = set; then :
19780 withval=$with_modules;
19781 for i in $withval; do
19782 MODULES="$MODULES $i"
19788 # Check whether --enable-developer was given.
19789 if test "${enable_developer+set}" = set; then :
19790 enableval=$enable_developer; case "$enableval" in
19801 if test -d $srcdir/.git; then
19802 if test "x$developer" != "xno"; then
19806 if test "x$GIT" = "xyes"; then
19807 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
19813 # Check whether --with-experimental-modules was given.
19814 if test "${with_experimental_modules+set}" = set; then :
19815 withval=$with_experimental_modules; case "$withval" in
19827 # Check whether --with-openssl was given.
19828 if test "${with_openssl+set}" = set; then :
19829 withval=$with_openssl; case "$withval" in
19841 OPENSSL_INCLUDE_DIR=
19843 # Check whether --with-openssl-includes was given.
19844 if test "${with_openssl_includes+set}" = set; then :
19845 withval=$with_openssl_includes; case "$withval" in
19846 *) OPENSSL_INCLUDE_DIR="$withval"
19855 # Check whether --with-openssl-libraries was given.
19856 if test "${with_openssl_libraries+set}" = set; then :
19857 withval=$with_openssl_libraries; case "$withval" in
19858 *) OPENSSL_LIB_DIR="$withval"
19867 # Check whether --with-rlm-FOO-lib-dir was given.
19868 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
19869 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19878 # Check whether --with-rlm-FOO-include-dir was given.
19879 if test "${with_rlm_FOO_include_dir+set}" = set; then :
19880 withval=$with_rlm_FOO_include_dir; case "$withval" in
19891 # Check whether --with-udpfromto was given.
19892 if test "${with_udpfromto+set}" = set; then :
19893 withval=$with_udpfromto; case "$withval" in
19904 if test "x$WITH_UDPFROMTO" = "xyes"; then
19906 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
19911 CHECKRAD=checkrad.pl
19912 # Extract the first word of "perl", so it can be a program name with args.
19913 set dummy perl; ac_word=$2
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19915 $as_echo_n "checking for $ac_word... " >&6; }
19916 if ${ac_cv_path_PERL+:} false; then :
19917 $as_echo_n "(cached) " >&6
19921 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925 for as_dir in $PATH
19928 test -z "$as_dir" && as_dir=.
19929 for ac_exec_ext in '' $ac_executable_extensions; do
19930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19931 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19939 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19943 PERL=$ac_cv_path_PERL
19944 if test -n "$PERL"; then
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19946 $as_echo "$PERL" >&6; }
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19949 $as_echo "no" >&6; }
19953 if test "x$ac_cv_path_PERL" = "x"; then
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19955 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19957 # Extract the first word of "snmpget", so it can be a program name with args.
19958 set dummy snmpget; ac_word=$2
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19960 $as_echo_n "checking for $ac_word... " >&6; }
19961 if ${ac_cv_path_SNMPGET+:} false; then :
19962 $as_echo_n "(cached) " >&6
19966 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19976 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19987 SNMPGET=$ac_cv_path_SNMPGET
19988 if test -n "$SNMPGET"; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
19990 $as_echo "$SNMPGET" >&6; }
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19993 $as_echo "no" >&6; }
19997 if test "x$ac_cv_path_SNMPGET" = "x"; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19999 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20002 # Extract the first word of "snmpwalk", so it can be a program name with args.
20003 set dummy snmpwalk; ac_word=$2
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20005 $as_echo_n "checking for $ac_word... " >&6; }
20006 if ${ac_cv_path_SNMPWALK+:} false; then :
20007 $as_echo_n "(cached) " >&6
20011 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20018 test -z "$as_dir" && as_dir=.
20019 for ac_exec_ext in '' $ac_executable_extensions; do
20020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20021 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20032 SNMPWALK=$ac_cv_path_SNMPWALK
20033 if test -n "$SNMPWALK"; then
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
20035 $as_echo "$SNMPWALK" >&6; }
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 $as_echo "no" >&6; }
20042 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20044 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20047 # Extract the first word of "rusers", so it can be a program name with args.
20048 set dummy rusers; ac_word=$2
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 $as_echo_n "checking for $ac_word... " >&6; }
20051 if ${ac_cv_path_RUSERS+:} false; then :
20052 $as_echo_n "(cached) " >&6
20056 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 for as_dir in $PATH
20063 test -z "$as_dir" && as_dir=.
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20066 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20074 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20078 RUSERS=$ac_cv_path_RUSERS
20079 if test -n "$RUSERS"; then
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
20081 $as_echo "$RUSERS" >&6; }
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20084 $as_echo "no" >&6; }
20089 missing_dir=`cd $ac_aux_dir && pwd`
20090 # expand $ac_aux_dir to an absolute path
20091 am_aux_dir=`cd $ac_aux_dir && pwd`
20093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20094 # Use eval to expand $SHELL
20095 if eval "$MISSING --run true"; then
20096 am_missing_run="$MISSING --run "
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
20100 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20113 # Extract the first word of "locate", so it can be a program name with args.
20114 set dummy locate; ac_word=$2
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 $as_echo_n "checking for $ac_word... " >&6; }
20117 if ${ac_cv_path_LOCATE+:} false; then :
20118 $as_echo_n "(cached) " >&6
20122 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20129 test -z "$as_dir" && as_dir=.
20130 for ac_exec_ext in '' $ac_executable_extensions; do
20131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20132 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20143 LOCATE=$ac_cv_path_LOCATE
20144 if test -n "$LOCATE"; then
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
20146 $as_echo "$LOCATE" >&6; }
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20153 # Extract the first word of "dirname", so it can be a program name with args.
20154 set dummy dirname; ac_word=$2
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if ${ac_cv_path_DIRNAME+:} false; then :
20158 $as_echo_n "(cached) " >&6
20162 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20172 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20183 DIRNAME=$ac_cv_path_DIRNAME
20184 if test -n "$DIRNAME"; then
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
20186 $as_echo "$DIRNAME" >&6; }
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20189 $as_echo "no" >&6; }
20193 # Extract the first word of "grep", so it can be a program name with args.
20194 set dummy grep; ac_word=$2
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20196 $as_echo_n "checking for $ac_word... " >&6; }
20197 if ${ac_cv_path_GREP+:} false; then :
20198 $as_echo_n "(cached) " >&6
20202 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20206 for as_dir in $PATH
20209 test -z "$as_dir" && as_dir=.
20210 for ac_exec_ext in '' $ac_executable_extensions; do
20211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20212 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20223 GREP=$ac_cv_path_GREP
20224 if test -n "$GREP"; then
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
20226 $as_echo "$GREP" >&6; }
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229 $as_echo "no" >&6; }
20236 if test "x$WITH_THREADS" = "xyes"; then
20237 if test $ac_cv_prog_suncc = "yes"; then
20238 CFLAGS="$CFLAGS -mt"
20241 for ac_header in pthread.h
20243 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20244 if test "x$ac_cv_header_pthread_h" = xyes; then :
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_PTHREAD_H 1
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20257 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
20258 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
20259 $as_echo_n "(cached) " >&6
20261 ac_check_lib_save_LIBS=$LIBS
20262 LIBS="-lpthread $LIBS"
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20272 char pthread_create ();
20276 return pthread_create ();
20281 if ac_fn_c_try_link "$LINENO"; then :
20282 ac_cv_lib_pthread_pthread_create=yes
20284 ac_cv_lib_pthread_pthread_create=no
20286 rm -f core conftest.err conftest.$ac_objext \
20287 conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20291 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
20292 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
20293 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20294 LIBS="-lpthread $LIBS"
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
20297 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
20298 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
20299 $as_echo_n "(cached) " >&6
20301 ac_check_lib_save_LIBS=$LIBS
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h. */
20306 /* Override any GCC internal prototype to avoid an error.
20307 Use char because int might match the return type of a GCC
20308 builtin and then its argument prototype would still apply. */
20312 char pthread_create ();
20316 return pthread_create ();
20321 if ac_fn_c_try_link "$LINENO"; then :
20322 ac_cv_lib_c_r_pthread_create=yes
20324 ac_cv_lib_c_r_pthread_create=no
20326 rm -f core conftest.err conftest.$ac_objext \
20327 conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
20331 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
20332 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
20333 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20344 if test "x$WITH_THREADS" != "xyes"; then
20346 ac_cv_header_pthread_h="no"
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
20351 $as_echo_n "checking for library containing sem_init... " >&6; }
20352 if ${ac_cv_search_sem_init+:} false; then :
20353 $as_echo_n "(cached) " >&6
20355 ac_func_search_save_LIBS=$LIBS
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20359 /* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20369 return sem_init ();
20374 for ac_lib in '' pthread sem posix4 rt semaphore; do
20375 if test -z "$ac_lib"; then
20376 ac_res="none required"
20379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20381 if ac_fn_c_try_link "$LINENO"; then :
20382 ac_cv_search_sem_init=$ac_res
20384 rm -f core conftest.err conftest.$ac_objext \
20386 if ${ac_cv_search_sem_init+:} false; then :
20390 if ${ac_cv_search_sem_init+:} false; then :
20393 ac_cv_search_sem_init=no
20395 rm conftest.$ac_ext
20396 LIBS=$ac_func_search_save_LIBS
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
20399 $as_echo "$ac_cv_search_sem_init" >&6; }
20400 ac_res=$ac_cv_search_sem_init
20401 if test "$ac_res" != no; then :
20402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20405 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
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
20412 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
20413 if ${ac_cv_lib_socket_getsockname+:} false; then :
20414 $as_echo_n "(cached) " >&6
20416 ac_check_lib_save_LIBS=$LIBS
20417 LIBS="-lsocket $LIBS"
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20427 char getsockname ();
20431 return getsockname ();
20436 if ac_fn_c_try_link "$LINENO"; then :
20437 ac_cv_lib_socket_getsockname=yes
20439 ac_cv_lib_socket_getsockname=no
20441 rm -f core conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
20446 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
20447 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
20448 cat >>confdefs.h <<_ACEOF
20449 #define HAVE_LIBSOCKET 1
20452 LIBS="-lsocket $LIBS"
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
20458 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
20459 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
20460 $as_echo_n "(cached) " >&6
20462 ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-lresolv $LIBS"
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20467 /* Override any GCC internal prototype to avoid an error.
20468 Use char because int might match the return type of a GCC
20469 builtin and then its argument prototype would still apply. */
20477 return inet_aton ();
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 ac_cv_lib_resolv_inet_aton=yes
20485 ac_cv_lib_resolv_inet_aton=no
20487 rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
20492 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
20493 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_LIBRESOLV 1
20498 LIBS="-lresolv $LIBS"
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
20504 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
20505 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
20506 $as_echo_n "(cached) " >&6
20508 ac_check_lib_save_LIBS=$LIBS
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h. */
20513 /* Override any GCC internal prototype to avoid an error.
20514 Use char because int might match the return type of a GCC
20515 builtin and then its argument prototype would still apply. */
20523 return inet_ntoa ();
20528 if ac_fn_c_try_link "$LINENO"; then :
20529 ac_cv_lib_nsl_inet_ntoa=yes
20531 ac_cv_lib_nsl_inet_ntoa=no
20533 rm -f core conftest.err conftest.$ac_objext \
20534 conftest$ac_exeext conftest.$ac_ext
20535 LIBS=$ac_check_lib_save_LIBS
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20538 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
20539 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_LIBNSL 1
20550 if test "x$WITH_OPENSSL" = xyes; then
20552 old_LDFLAGS="$LDFLAGS"
20553 if test "x$OPENSSL_LIB_DIR" != "x"; then
20554 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
20557 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
20558 if ${ac_cv_lib_crypto_DH_new+:} false; then :
20559 $as_echo_n "(cached) " >&6
20561 ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lcrypto $LIBS"
20563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h. */
20566 /* Override any GCC internal prototype to avoid an error.
20567 Use char because int might match the return type of a GCC
20568 builtin and then its argument prototype would still apply. */
20581 if ac_fn_c_try_link "$LINENO"; then :
20582 ac_cv_lib_crypto_DH_new=yes
20584 ac_cv_lib_crypto_DH_new=no
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
20591 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
20592 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
20594 LIBS="-lcrypto $LIBS"
20596 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
20599 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
20600 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
20601 $as_echo_n "(cached) " >&6
20603 ac_check_lib_save_LIBS=$LIBS
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20608 /* Override any GCC internal prototype to avoid an error.
20609 Use char because int might match the return type of a GCC
20610 builtin and then its argument prototype would still apply. */
20623 if ac_fn_c_try_link "$LINENO"; then :
20624 ac_cv_lib_ssl_SSL_new=yes
20626 ac_cv_lib_ssl_SSL_new=no
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
20633 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
20634 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
20637 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
20639 if test "x$OPENSSL_LIB_DIR" != "x"; then
20640 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20642 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20650 LDFLAGS="$old_LDFLAGS"
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
20654 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
20655 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
20656 $as_echo_n "(cached) " >&6
20658 ac_check_lib_save_LIBS=$LIBS
20659 LIBS="-lws2_32 $LIBS"
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 /* Override any GCC internal prototype to avoid an error.
20664 Use char because int might match the return type of a GCC
20665 builtin and then its argument prototype would still apply. */
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 ac_cv_lib_ws2_32_htonl=yes
20681 ac_cv_lib_ws2_32_htonl=no
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
20688 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
20689 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBWS2_32 1
20694 LIBS="-lws2_32 $LIBS"
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
20701 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
20702 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
20703 $as_echo_n "(cached) " >&6
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-lpcap $LIBS"
20707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708 /* end confdefs.h. */
20710 /* Override any GCC internal prototype to avoid an error.
20711 Use char because int might match the return type of a GCC
20712 builtin and then its argument prototype would still apply. */
20716 char pcap_open_live ();
20720 return pcap_open_live ();
20725 if ac_fn_c_try_link "$LINENO"; then :
20726 ac_cv_lib_pcap_pcap_open_live=yes
20728 ac_cv_lib_pcap_pcap_open_live=no
20730 rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20732 LIBS=$ac_check_lib_save_LIBS
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20735 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
20736 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
20739 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20744 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20750 $as_echo_n "checking for a readline compatible library... " >&6; }
20751 if ${ac_cv_lib_readline+:} false; then :
20752 $as_echo_n "(cached) " >&6
20756 for readline_lib in readline edit editline; do
20757 for termcap_lib in "" termcap curses ncurses; do
20758 if test -z "$termcap_lib"; then
20759 TRY_LIB="-l$readline_lib"
20761 TRY_LIB="-l$readline_lib -l$termcap_lib"
20763 LIBS="$ORIG_LIBS $TRY_LIB"
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20767 /* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply. */
20777 return readline ();
20782 if ac_fn_c_try_link "$LINENO"; then :
20783 ac_cv_lib_readline="$TRY_LIB"
20785 rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext conftest.$ac_ext
20787 if test -n "$ac_cv_lib_readline"; then
20791 if test -n "$ac_cv_lib_readline"; then
20795 if test -z "$ac_cv_lib_readline"; then
20796 ac_cv_lib_readline="no"
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
20802 $as_echo "$ac_cv_lib_readline" >&6; }
20804 if test "$ac_cv_lib_readline" != "no"; then
20805 LIBREADLINE="$ac_cv_lib_readline"
20807 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20809 for ac_header in readline.h readline/readline.h
20811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20814 cat >>confdefs.h <<_ACEOF
20815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20823 $as_echo_n "checking whether readline supports history... " >&6; }
20824 if ${ac_cv_lib_readline_history+:} false; then :
20825 $as_echo_n "(cached) " >&6
20828 ac_cv_lib_readline_history="no"
20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h. */
20832 /* Override any GCC internal prototype to avoid an error.
20833 Use char because int might match the return type of a GCC
20834 builtin and then its argument prototype would still apply. */
20838 char add_history ();
20842 return add_history ();
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 ac_cv_lib_readline_history="yes"
20850 rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
20855 $as_echo "$ac_cv_lib_readline_history" >&6; }
20856 if test "$ac_cv_lib_readline_history" = "yes"; then
20858 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20860 for ac_header in history.h readline/history.h
20862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20863 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20865 cat >>confdefs.h <<_ACEOF
20866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20881 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20884 CFLAGS="$CFLAGS -DDARWIN"
20885 LIBS="-framework DirectoryService $LIBS"
20889 ac_header_dirent=no
20890 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20891 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20893 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20894 if eval \${$as_ac_Header+:} false; then :
20895 $as_echo_n "(cached) " >&6
20897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898 /* end confdefs.h. */
20899 #include <sys/types.h>
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912 eval "$as_ac_Header=yes"
20914 eval "$as_ac_Header=no"
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 eval ac_res=\$$as_ac_Header
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20920 $as_echo "$ac_res" >&6; }
20921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20922 cat >>confdefs.h <<_ACEOF
20923 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20926 ac_header_dirent=$ac_hdr; break
20930 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20931 if test $ac_header_dirent = dirent.h; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20933 $as_echo_n "checking for library containing opendir... " >&6; }
20934 if ${ac_cv_search_opendir+:} false; then :
20935 $as_echo_n "(cached) " >&6
20937 ac_func_search_save_LIBS=$LIBS
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20941 /* Override any GCC internal prototype to avoid an error.
20942 Use char because int might match the return type of a GCC
20943 builtin and then its argument prototype would still apply. */
20956 for ac_lib in '' dir; do
20957 if test -z "$ac_lib"; then
20958 ac_res="none required"
20961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20963 if ac_fn_c_try_link "$LINENO"; then :
20964 ac_cv_search_opendir=$ac_res
20966 rm -f core conftest.err conftest.$ac_objext \
20968 if ${ac_cv_search_opendir+:} false; then :
20972 if ${ac_cv_search_opendir+:} false; then :
20975 ac_cv_search_opendir=no
20977 rm conftest.$ac_ext
20978 LIBS=$ac_func_search_save_LIBS
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20981 $as_echo "$ac_cv_search_opendir" >&6; }
20982 ac_res=$ac_cv_search_opendir
20983 if test "$ac_res" != no; then :
20984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20990 $as_echo_n "checking for library containing opendir... " >&6; }
20991 if ${ac_cv_search_opendir+:} false; then :
20992 $as_echo_n "(cached) " >&6
20994 ac_func_search_save_LIBS=$LIBS
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21013 for ac_lib in '' x; do
21014 if test -z "$ac_lib"; then
21015 ac_res="none required"
21018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21020 if ac_fn_c_try_link "$LINENO"; then :
21021 ac_cv_search_opendir=$ac_res
21023 rm -f core conftest.err conftest.$ac_objext \
21025 if ${ac_cv_search_opendir+:} false; then :
21029 if ${ac_cv_search_opendir+:} false; then :
21032 ac_cv_search_opendir=no
21034 rm conftest.$ac_ext
21035 LIBS=$ac_func_search_save_LIBS
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21038 $as_echo "$ac_cv_search_opendir" >&6; }
21039 ac_res=$ac_cv_search_opendir
21040 if test "$ac_res" != no; then :
21041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21048 $as_echo_n "checking for ANSI C header files... " >&6; }
21049 if ${ac_cv_header_stdc+:} false; then :
21050 $as_echo_n "(cached) " >&6
21052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053 /* end confdefs.h. */
21054 #include <stdlib.h>
21055 #include <stdarg.h>
21056 #include <string.h>
21067 if ac_fn_c_try_compile "$LINENO"; then :
21068 ac_cv_header_stdc=yes
21070 ac_cv_header_stdc=no
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 if test $ac_cv_header_stdc = yes; then
21075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21077 /* end confdefs.h. */
21078 #include <string.h>
21081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21082 $EGREP "memchr" >/dev/null 2>&1; then :
21085 ac_cv_header_stdc=no
21091 if test $ac_cv_header_stdc = yes; then
21092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21095 #include <stdlib.h>
21098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21099 $EGREP "free" >/dev/null 2>&1; then :
21102 ac_cv_header_stdc=no
21108 if test $ac_cv_header_stdc = yes; then
21109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21110 if test "$cross_compiling" = yes; then :
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21116 #include <stdlib.h>
21117 #if ((' ' & 0x0FF) == 0x020)
21118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21121 # define ISLOWER(c) \
21122 (('a' <= (c) && (c) <= 'i') \
21123 || ('j' <= (c) && (c) <= 'r') \
21124 || ('s' <= (c) && (c) <= 'z'))
21125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21133 for (i = 0; i < 256; i++)
21134 if (XOR (islower (i), ISLOWER (i))
21135 || toupper (i) != TOUPPER (i))
21140 if ac_fn_c_try_run "$LINENO"; then :
21143 ac_cv_header_stdc=no
21145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21146 conftest.$ac_objext conftest.beam conftest.$ac_ext
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21152 $as_echo "$ac_cv_header_stdc" >&6; }
21153 if test $ac_cv_header_stdc = yes; then
21155 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21161 if ${ac_cv_header_time+:} false; then :
21162 $as_echo_n "(cached) " >&6
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21165 /* end confdefs.h. */
21166 #include <sys/types.h>
21167 #include <sys/time.h>
21173 if ((struct tm *) 0)
21179 if ac_fn_c_try_compile "$LINENO"; then :
21180 ac_cv_header_time=yes
21182 ac_cv_header_time=no
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21187 $as_echo "$ac_cv_header_time" >&6; }
21188 if test $ac_cv_header_time = yes; then
21190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21195 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21196 if ${ac_cv_header_sys_wait_h+:} false; then :
21197 $as_echo_n "(cached) " >&6
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201 #include <sys/types.h>
21202 #include <sys/wait.h>
21203 #ifndef WEXITSTATUS
21204 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21207 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21215 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21220 if ac_fn_c_try_compile "$LINENO"; then :
21221 ac_cv_header_sys_wait_h=yes
21223 ac_cv_header_sys_wait_h=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21228 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
21229 if test $ac_cv_header_sys_wait_h = yes; then
21231 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21279 cat >>confdefs.h <<_ACEOF
21280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21288 for ac_header in net/if.h
21290 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21291 # include <sys/socket.h>
21295 if test "x$ac_cv_header_net_if_h" = xyes; then :
21296 cat >>confdefs.h <<_ACEOF
21297 #define HAVE_NET_IF_H 1
21306 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
21307 if test "x$ac_cv_header_regex_h" = xyes; then :
21309 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
21314 if test "x$ac_cv_header_regex_h" = "xyes"; then
21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h. */
21320 #ifdef REG_EXTENDED
21325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21326 $EGREP "yes" >/dev/null 2>&1; then :
21328 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
21337 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21340 $as_echo "#define OSFC2 /**/" >>confdefs.h
21344 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21347 $as_echo "#define OSFSIA /**/" >>confdefs.h
21351 if test "x$WITH_OPENSSL" = xyes; then
21353 old_LDFLAGS="$LDFLAGS"
21355 OPENSSL_INCLUDE="-DNO_OPENSSL"
21357 if test "x$OPENSSL_LIB_DIR" != "x"; then
21358 LDFLAGS="-L$OPENSSL_LIB_DIR $LDFLAGS"
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
21362 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
21363 if ${ac_cv_lib_crypto_DH_new+:} false; then :
21364 $as_echo_n "(cached) " >&6
21366 ac_check_lib_save_LIBS=$LIBS
21367 LIBS="-lcrypto $LIBS"
21368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369 /* end confdefs.h. */
21371 /* Override any GCC internal prototype to avoid an error.
21372 Use char because int might match the return type of a GCC
21373 builtin and then its argument prototype would still apply. */
21386 if ac_fn_c_try_link "$LINENO"; then :
21387 ac_cv_lib_crypto_DH_new=yes
21389 ac_cv_lib_crypto_DH_new=no
21391 rm -f core conftest.err conftest.$ac_objext \
21392 conftest$ac_exeext conftest.$ac_ext
21393 LIBS=$ac_check_lib_save_LIBS
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
21396 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
21397 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
21399 LIBS="-lcrypto $LIBS"
21401 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
21404 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
21405 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
21406 $as_echo_n "(cached) " >&6
21408 ac_check_lib_save_LIBS=$LIBS
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h. */
21413 /* Override any GCC internal prototype to avoid an error.
21414 Use char because int might match the return type of a GCC
21415 builtin and then its argument prototype would still apply. */
21428 if ac_fn_c_try_link "$LINENO"; then :
21429 ac_cv_lib_ssl_SSL_new=yes
21431 ac_cv_lib_ssl_SSL_new=no
21433 rm -f core conftest.err conftest.$ac_objext \
21434 conftest$ac_exeext conftest.$ac_ext
21435 LIBS=$ac_check_lib_save_LIBS
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
21438 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
21439 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
21442 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
21444 if test "x$OPENSSL_LIB_DIR" != "x"; then
21445 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21447 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21448 LIBS="$OPENSSL_LIBS $LIBS"
21452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21454 as_fn_error $? "failed linking to libssl
21455 See \`config.log' for more details" "$LINENO" 5; }
21464 old_CPPFLAGS=$CPPFLAGS
21466 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21467 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21468 CFLAGS="-I$OPENSSL_INCLUDE_DIR $CFLAGS"
21471 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21486 cat >>confdefs.h <<_ACEOF
21487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21494 as_fn_error $? "failed locating OpenSSL headers
21495 See \`config.log' for more details" "$LINENO" 5; }
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
21504 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
21505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21507 #include <openssl/crypto.h>
21508 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21514 $EGREP "yes" >/dev/null 2>&1; then :
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21517 $as_echo "yes" >&6; }
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21522 $as_echo "no" >&6; }
21523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21525 as_fn_error $? "OpenSSL version too old
21526 See \`config.log' for more details" "$LINENO" 5; }
21533 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21534 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21536 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library and header version consistency" >&5
21540 $as_echo_n "checking OpenSSL library and header version consistency... " >&6; }
21541 if test "$cross_compiling" = yes; then :
21542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21544 as_fn_error $? "cannot run test program while cross compiling
21545 See \`config.log' for more details" "$LINENO" 5; }
21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21551 #include <openssl/opensslv.h>
21552 #include <openssl/crypto.h>
21558 if (SSLeay() == OPENSSL_VERSION_NUMBER) {
21561 printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
21570 if ac_fn_c_try_run "$LINENO"; then :
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21573 $as_echo "yes" >&6; }
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21581 as_fn_error $? "OpenSSL library version does not match header version
21582 See \`config.log' for more details" "$LINENO" 5; }
21586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21587 conftest.$ac_objext conftest.beam conftest.$ac_ext
21591 if test "x$OPENSSL_LIBS" = x; then
21593 LDFLAGS="$old_LDFLAGS"
21595 if test "x$OPENSSL_INCLUDE" = x; then
21596 CPPFLAGS=$old_CPPFLAGS
21603 export OPENSSL_LIBS
21605 if test "x$PCAP_LIBS" = x; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
21607 $as_echo "$as_me: skipping test for pcap.h." >&6;}
21609 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
21610 if test "x$ac_cv_header_pcap_h" = xyes; then :
21612 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
21617 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
21624 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
21625 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
21626 $as_echo_n "(cached) " >&6
21628 ac_check_lib_save_LIBS=$LIBS
21629 LIBS="-lpcap $LIBS"
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21633 /* Override any GCC internal prototype to avoid an error.
21634 Use char because int might match the return type of a GCC
21635 builtin and then its argument prototype would still apply. */
21639 char pcap_fopen_offline ();
21643 return pcap_fopen_offline ();
21648 if ac_fn_c_try_link "$LINENO"; then :
21649 ac_cv_lib_pcap_pcap_fopen_offline=yes
21651 ac_cv_lib_pcap_pcap_fopen_offline=no
21653 rm -f core conftest.err conftest.$ac_objext \
21654 conftest$ac_exeext conftest.$ac_ext
21655 LIBS=$ac_check_lib_save_LIBS
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
21658 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
21659 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
21661 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
21667 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
21668 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
21669 $as_echo_n "(cached) " >&6
21671 ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lpcap $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h. */
21676 /* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21682 char pcap_dump_fopen ();
21686 return pcap_dump_fopen ();
21691 if ac_fn_c_try_link "$LINENO"; then :
21692 ac_cv_lib_pcap_pcap_dump_fopen=yes
21694 ac_cv_lib_pcap_pcap_dump_fopen=no
21696 rm -f core conftest.err conftest.$ac_objext \
21697 conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
21701 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
21702 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
21704 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
21713 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21714 if test "x$ac_cv_type_off_t" = xyes; then :
21718 cat >>confdefs.h <<_ACEOF
21719 #define off_t long int
21724 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21725 if test "x$ac_cv_type_pid_t" = xyes; then :
21729 cat >>confdefs.h <<_ACEOF
21735 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21736 if test "x$ac_cv_type_size_t" = xyes; then :
21740 cat >>confdefs.h <<_ACEOF
21741 #define size_t unsigned int
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21747 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21748 if ${ac_cv_type_uid_t+:} false; then :
21749 $as_echo_n "(cached) " >&6
21751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h. */
21753 #include <sys/types.h>
21756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21757 $EGREP "uid_t" >/dev/null 2>&1; then :
21758 ac_cv_type_uid_t=yes
21760 ac_cv_type_uid_t=no
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21766 $as_echo "$ac_cv_type_uid_t" >&6; }
21767 if test $ac_cv_type_uid_t = no; then
21769 $as_echo "#define uid_t int" >>confdefs.h
21772 $as_echo "#define gid_t int" >>confdefs.h
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
21779 $as_echo_n "checking for socklen_t... " >&6; }
21780 if ${ac_cv_type_socklen_t+:} false; then :
21781 $as_echo_n "(cached) " >&6
21783 ac_cv_type_socklen_t=no
21784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21786 #ifdef HAVE_SYS_TYPES_H
21787 #include <sys/types.h>
21789 #ifdef HAVE_SYS_SOCKET_H
21790 #include <sys/socket.h>
21801 if ac_fn_c_try_compile "$LINENO"; then :
21802 ac_cv_type_socklen_t=yes
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
21809 $as_echo "$ac_cv_type_socklen_t" >&6; }
21811 if test "$ac_cv_type_socklen_t" != "yes"; then
21813 $as_echo "#define socklen_t int" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
21820 $as_echo_n "checking for uint8_t... " >&6; }
21821 if ${ac_cv_type_uint8_t+:} false; then :
21822 $as_echo_n "(cached) " >&6
21824 ac_cv_type_uint8_t=no
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21827 #ifdef HAVE_INTTYPES_H
21828 #include <inttypes.h>
21830 #ifdef HAVE_STDINT_H
21831 #include <stdint.h>
21842 if ac_fn_c_try_compile "$LINENO"; then :
21843 ac_cv_type_uint8_t=yes
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
21850 $as_echo "$ac_cv_type_uint8_t" >&6; }
21852 if test "$ac_cv_type_uint8_t" != "yes"; then
21854 $as_echo "#define uint8_t unsigned char" >>confdefs.h
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
21861 $as_echo_n "checking for uint16_t... " >&6; }
21862 if ${ac_cv_type_uint16_t+:} false; then :
21863 $as_echo_n "(cached) " >&6
21865 ac_cv_type_uint16_t=no
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21868 #ifdef HAVE_INTTYPES_H
21869 #include <inttypes.h>
21871 #ifdef HAVE_STDINT_H
21872 #include <stdint.h>
21883 if ac_fn_c_try_compile "$LINENO"; then :
21884 ac_cv_type_uint16_t=yes
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
21891 $as_echo "$ac_cv_type_uint16_t" >&6; }
21893 if test "$ac_cv_type_uint16_t" != "yes"; then
21895 $as_echo "#define uint16_t unsigned short" >>confdefs.h
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
21902 $as_echo_n "checking for uint32_t... " >&6; }
21903 if ${ac_cv_type_uint32_t+:} false; then :
21904 $as_echo_n "(cached) " >&6
21906 ac_cv_type_uint32_t=no
21907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21908 /* end confdefs.h. */
21909 #ifdef HAVE_INTTYPES_H
21910 #include <inttypes.h>
21912 #ifdef HAVE_STDINT_H
21913 #include <stdint.h>
21924 if ac_fn_c_try_compile "$LINENO"; then :
21925 ac_cv_type_uint32_t=yes
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
21932 $as_echo "$ac_cv_type_uint32_t" >&6; }
21934 if test "$ac_cv_type_uint32_t" != "yes"; then
21936 $as_echo "#define uint32_t unsigned int" >>confdefs.h
21941 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
21942 #ifdef HAVE_NETINET_IN_H
21943 #include <netinet/in.h>
21947 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
21949 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
21954 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
21955 #ifdef HAVE_NETINET_IN_H
21956 #include <netinet/in.h>
21958 #ifdef HAVE_SYS_SOCKET_H
21959 #include <sys/socket.h>
21963 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
21965 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
21970 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
21971 #ifdef HAVE_NETINET_IN_H
21972 #include <netinet/in.h>
21976 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
21978 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
21983 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
21984 #ifdef HAVE_SYS_TYPES_H
21985 #include <sys/types.h>
21987 #ifdef HAVE_SYS_SOCKET_H
21988 #include <sys/socket.h>
21990 #ifdef HAVE_NETDB_H
21995 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
21997 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
22037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22040 cat >>confdefs.h <<_ACEOF
22041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
22058 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
22059 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
22060 $as_echo_n "(cached) " >&6
22062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063 /* end confdefs.h. */
22066 #include <string.h>
22067 #ifdef HAVE_UNISTD_H
22068 #include <unistd.h>
22070 #ifdef HAVE_CRYPT_H
22073 #ifdef HAVE_ERRNO_H
22076 #ifdef HAVE_RESOURCE_H
22077 #include <resource.h>
22079 #ifdef HAVE_GETOPT_H
22080 #include <getopt.h>
22082 #ifdef HAVE_MALLOC_H
22083 #include <malloc.h>
22088 #ifdef HAVE_UTMPX_H
22091 #ifdef HAVE_SYS_SELECT_H
22092 #include <sys/select.h>
22094 #ifdef HAVE_DLFCN_H
22097 #ifdef HAVE_REGEX_H
22100 #ifdef HAVE_SYSLOG_H
22101 #include <syslog.h>
22103 #ifdef HAVE_INTTYPES_H
22104 #include <inttypes.h>
22106 #ifdef HAVE_STDINT_H
22107 #include <stdint.h>
22109 #ifdef HAVE_ARPA_INET_H
22110 #include <arpa/inet.h>
22116 char *(*pfn) = (char *(*)) $ac_func
22121 if ac_fn_c_try_compile "$LINENO"; then :
22122 eval "radius_cv_decl_needed_$ac_func=no"
22124 eval "radius_cv_decl_needed_$ac_func=yes"
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22131 $as_echo "yes" >&6; }
22132 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22133 cat >>confdefs.h <<_ACEOF
22134 #define $radius_tr_decl 1
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139 $as_echo "no" >&6; }
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22146 $as_echo_n "checking return type of signal handlers... " >&6; }
22147 if ${ac_cv_type_signal+:} false; then :
22148 $as_echo_n "(cached) " >&6
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22152 #include <sys/types.h>
22153 #include <signal.h>
22158 return *(signal (0, 0)) (0) == 1;
22163 if ac_fn_c_try_compile "$LINENO"; then :
22164 ac_cv_type_signal=int
22166 ac_cv_type_signal=void
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22171 $as_echo "$ac_cv_type_signal" >&6; }
22173 cat >>confdefs.h <<_ACEOF
22174 #define RETSIGTYPE $ac_cv_type_signal
22179 if test "x$ac_cv_header_utmpx_h" = "xyes"
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
22183 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
22186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h. */
22190 #ifdef HAVE_STDDEF_H
22191 #include <stddef.h>
22194 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22200 int foo = offsetof(struct utmpx, ut_xtime)
22205 if ac_fn_c_try_compile "$LINENO"; then :
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22213 if test "x$has_element" != "x"; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22219 $as_echo "no" >&6; }
22220 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22223 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22226 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
22233 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
22236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h. */
22239 #include <netinet/in.h>
22240 #ifdef HAVE_STDDEF_H
22241 #include <stddef.h>
22244 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22250 int foo = offsetof(struct in_pktinfo, ipi_addr)
22255 if ac_fn_c_try_compile "$LINENO"; then :
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22262 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22263 if test "x$has_element" != "x"; then
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265 $as_echo "yes" >&6; }
22266 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22269 $as_echo "no" >&6; }
22270 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22273 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22276 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
22282 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 #include <netinet/in.h>
22289 #ifdef HAVE_STDDEF_H
22290 #include <stddef.h>
22293 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22299 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22304 if ac_fn_c_try_compile "$LINENO"; then :
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22311 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22312 if test "x$has_element" != "x"; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22314 $as_echo "yes" >&6; }
22315 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22322 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22325 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22331 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22332 if ${ac_cv_c_const+:} false; then :
22333 $as_echo_n "(cached) " >&6
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22342 #ifndef __cplusplus
22343 /* Ultrix mips cc rejects this sort of thing. */
22344 typedef int charset[2];
22345 const charset cs = { 0, 0 };
22346 /* SunOS 4.1.1 cc rejects this. */
22347 char const *const *pcpcc;
22349 /* NEC SVR4.0.2 mips cc rejects this. */
22350 struct point {int x, y;};
22351 static struct point const zero = {0,0};
22352 /* AIX XL C 1.02.0.0 rejects this.
22353 It does not let you subtract one const X* pointer from another in
22354 an arm of an if-expression whose if-part is not a constant
22356 const char *g = "string";
22357 pcpcc = &g + (g ? g-g : 0);
22358 /* HPUX 7.0 cc rejects these. */
22360 ppc = (char**) pcpcc;
22361 pcpcc = (char const *const *) ppc;
22362 { /* SCO 3.2v4 cc rejects this sort of thing. */
22365 char const *s = 0 ? (char *) 0 : (char const *) 0;
22370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22371 int x[] = {25, 17};
22372 const int *foo = &x[0];
22375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22376 typedef const int *iptr;
22380 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22382 struct s { int j; const int *ap[3]; } bx;
22383 struct s *b = &bx; b->j = 5;
22385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22386 const int foo = 10;
22387 if (!foo) return 0;
22389 return !cs[0] && !zero.x;
22396 if ac_fn_c_try_compile "$LINENO"; then :
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22404 $as_echo "$ac_cv_c_const" >&6; }
22405 if test $ac_cv_c_const = no; then
22407 $as_echo "#define const /**/" >>confdefs.h
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
22413 $as_echo_n "checking type of OS... " >&6; }
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
22416 $as_echo "$OS" >&6; }
22417 if test "$OS" = "OS/2"; then
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
22425 $as_echo_n "checking for developer gcc flags... " >&6; }
22426 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22427 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22428 CFLAGS="$CFLAGS $devflags"
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
22431 $as_echo "yes. Using $devflags" >&6; }
22434 CFLAGS="$CFLAGS -DNDEBUG"
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
22437 $as_echo "no." >&6; }
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22442 $as_echo_n "checking for TLS... " >&6; }
22443 if test "$cross_compiling" = yes; then :
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22448 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
22450 if ac_fn_c_try_run "$LINENO"; then :
22455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22456 conftest.$ac_objext conftest.beam conftest.$ac_ext
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
22460 $as_echo "$have_tls" >&6; }
22461 if test "$have_tls" = "yes"; then
22463 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
22470 LIBS="$LIBS $LIBLTDL"
22471 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
22472 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
22474 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22481 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22482 if ${ac_cv_lib_crypt_crypt+:} false; then :
22483 $as_echo_n "(cached) " >&6
22485 ac_check_lib_save_LIBS=$LIBS
22486 LIBS="-lcrypt $LIBS"
22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h. */
22490 /* Override any GCC internal prototype to avoid an error.
22491 Use char because int might match the return type of a GCC
22492 builtin and then its argument prototype would still apply. */
22505 if ac_fn_c_try_link "$LINENO"; then :
22506 ac_cv_lib_crypt_crypt=yes
22508 ac_cv_lib_crypt_crypt=no
22510 rm -f core conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22515 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22516 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22521 if test "$CRYPTLIB" != ""; then
22523 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22526 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22527 if test "x$ac_cv_func_crypt" = xyes; then :
22529 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
22536 $as_echo_n "checking for setkey in -lcipher... " >&6; }
22537 if ${ac_cv_lib_cipher_setkey+:} false; then :
22538 $as_echo_n "(cached) " >&6
22540 ac_check_lib_save_LIBS=$LIBS
22541 LIBS="-lcipher $LIBS"
22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22560 if ac_fn_c_try_link "$LINENO"; then :
22561 ac_cv_lib_cipher_setkey=yes
22563 ac_cv_lib_cipher_setkey=no
22565 rm -f core conftest.err conftest.$ac_objext \
22566 conftest$ac_exeext conftest.$ac_ext
22567 LIBS=$ac_check_lib_save_LIBS
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
22570 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
22571 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
22572 CRYPTLIB="${CRYPTLIB} -lcipher"
22579 $as_echo "#define GNUSTYLE 1" >>confdefs.h
22582 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
22585 $as_echo "#define BSDSTYLE 3" >>confdefs.h
22587 gethostbyaddrrstyle=""
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
22589 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
22592 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
22593 #ifdef HAVE_NETDB_H
22598 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
22604 cat >>confdefs.h <<_ACEOF
22605 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
22607 if test $ac_have_decl = 1; then :
22612 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22614 gethostbyaddrrstyle=BSD
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
22616 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22622 if test "x$gethostbyaddrrstyle" = "x"; then
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22632 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22637 if ac_fn_c_try_link "$LINENO"; then :
22640 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
22642 gethostbyaddrrstyle=GNU
22645 rm -f core conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
22648 if test "x$gethostbyaddrrstyle" = "x"; then
22649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650 /* end confdefs.h. */
22658 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22663 if ac_fn_c_try_link "$LINENO"; then :
22666 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
22668 gethostbyaddrrstyle=SYSV
22671 rm -f core conftest.err conftest.$ac_objext \
22672 conftest$ac_exeext conftest.$ac_ext
22674 if test "x$gethostbyaddrrstyle" = "x"; then
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22684 gethostbyaddr(NULL, 0, 0)
22689 if ac_fn_c_try_link "$LINENO"; then :
22692 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
22694 gethostbyaddrrstyle=BSD
22697 rm -f core conftest.err conftest.$ac_objext \
22698 conftest$ac_exeext conftest.$ac_ext
22701 if test "x$gethostbyaddrrstyle" = "x"; then
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22703 $as_echo "none! It must not exist, here." >&6; }
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
22706 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
22709 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22711 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22714 gethostbynamerstyle=""
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
22716 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22726 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22731 if ac_fn_c_try_link "$LINENO"; then :
22734 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
22736 gethostbynamerstyle=GNU
22739 rm -f core conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
22741 if test "x$gethostbynamerstyle" = "x"; then
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22751 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
22756 if ac_fn_c_try_link "$LINENO"; then :
22759 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
22761 gethostbynamerstyle=SYSV
22764 rm -f core conftest.err conftest.$ac_objext \
22765 conftest$ac_exeext conftest.$ac_ext
22767 if test "x$gethostbynamerstyle" = "x"; then
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22777 gethostbyname(NULL)
22782 if ac_fn_c_try_link "$LINENO"; then :
22785 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
22787 gethostbynamerstyle=BSD
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22794 if test "x$gethostbynamerstyle" = "x"; then
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22796 $as_echo "none! It must not exist, here." >&6; }
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
22799 $as_echo "${gethostbynamerstyle}-style" >&6; }
22802 if test "x$gethostbynamerstyle" = "xBSD"; then
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
22804 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
22808 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
22811 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
22815 $as_echo_n "checking ctime_r() syntax... " >&6; }
22816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22817 /* end confdefs.h. */
22824 ctime_r(NULL, NULL, 0)
22829 if ac_fn_c_try_link "$LINENO"; then :
22832 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
22834 ctimerstyle="SOLARIS"
22837 rm -f core conftest.err conftest.$ac_objext \
22838 conftest$ac_exeext conftest.$ac_ext
22839 if test "x$ctimerstyle" = "x"; then
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22848 ctime_r(NULL, NULL)
22853 if ac_fn_c_try_link "$LINENO"; then :
22856 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
22858 ctimerstyle="POSIX"
22861 rm -f core conftest.err conftest.$ac_objext \
22862 conftest$ac_exeext conftest.$ac_ext
22865 if test "x$ctimerstyle" = "x"; then
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
22867 $as_echo "none! It must not exist, here." >&6; }
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
22870 $as_echo "${ctimerstyle}-style" >&6; }
22876 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
22878 $as_echo "#define WITH_POST_PROXY_AUTHORIZE 1" >>confdefs.h
22884 export top_builddir
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
22886 $as_echo "top_builddir=$top_builddir" >&6; }
22892 mysubdirs="$LIBLTDLPATH"
22893 if test "x$EXPERIMENTAL" = "xyes"; then
22894 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
22895 mysubdirs=`echo $mysubdirs $bar`
22897 for bar in `cat "${srcdir}"/src/modules/stable`; do
22898 if test -f "${srcdir}"/src/modules/$bar/configure; then
22899 mysubdirs="$mysubdirs src/modules/$bar"
22904 if test "x$EXPERIMENTAL" = "xyes"; then
22905 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
22906 MODULES="$MODULES $foo"
22909 for foo in `cat "${srcdir}"/src/modules/stable`; do
22910 MODULES="$MODULES $foo"
22916 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
22921 ac_config_commands="$ac_config_commands stamp-h"
22923 ac_config_commands="$ac_config_commands build-radpaths-h"
22925 ac_config_commands="$ac_config_commands main-chmod"
22927 ac_config_commands="$ac_config_commands scripts-chmod"
22933 USE_SHARED_LIBS=$enable_shared
22935 USE_STATIC_LIBS=$enable_static
22946 unset ac_cv_env_LIBS_set
22947 unset ac_cv_env_LIBS_value
22949 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"
22951 cat >confcache <<\_ACEOF
22952 # This file is a shell script that caches the results of configure
22953 # tests run on this system so they can be shared between configure
22954 # scripts and configure runs, see configure's option --config-cache.
22955 # It is not useful on other systems. If it contains results you don't
22956 # want to keep, you may remove or edit it.
22958 # config.status only pays attention to the cache file if you give it
22959 # the --recheck option to rerun configure.
22961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22963 # following values.
22967 # The following way of writing the cache mishandles newlines in values,
22968 # but we know of no workaround that is simple, portable, and efficient.
22969 # So, we kill variables containing newlines.
22970 # Ultrix sh set writes to stderr and can't be redirected directly,
22971 # and sets the high bit in the cache file unless we assign to the vars.
22973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22974 eval ac_val=\$$ac_var
22978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22982 _ | IFS | as_nl) ;; #(
22983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22984 *) { eval $ac_var=; unset $ac_var;} ;;
22990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22991 *${as_nl}ac_space=\ *)
22992 # `set' does not quote correctly, so add quotes: double-quote
22993 # substitution turns \\\\ into \\, and sed turns \\ into \.
22996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22999 # `set' quotes correctly as required by POSIX, so do not add quotes.
23000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23014 if test -w "$cache_file"; then
23015 if test "x$cache_file" != "x/dev/null"; then
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23017 $as_echo "$as_me: updating cache $cache_file" >&6;}
23018 if test ! -f "$cache_file" || test -h "$cache_file"; then
23019 cat confcache >"$cache_file"
23021 case $cache_file in #(
23023 mv -f confcache "$cache_file"$$ &&
23024 mv -f "$cache_file"$$ "$cache_file" ;; #(
23026 mv -f confcache "$cache_file" ;;
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23038 # Let make expand exec_prefix.
23039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23041 DEFS=-DHAVE_CONFIG_H
23046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23047 # 1. Remove the extension, and $U if already installed.
23048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23051 # will be set to the directory where LIBOBJS objects are built.
23052 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23053 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23055 LIBOBJS=$ac_libobjs
23057 LTLIBOBJS=$ac_ltlibobjs
23062 : "${CONFIG_STATUS=./config.status}"
23064 ac_clean_files_save=$ac_clean_files
23065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23071 # Generated by $as_me.
23072 # Run this file to recreate the current configuration.
23073 # Compiler output produced by configure, useful for debugging
23074 # configure, is in config.log if it exists.
23077 ac_cs_recheck=false
23080 SHELL=\${CONFIG_SHELL-$SHELL}
23083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23084 ## -------------------- ##
23085 ## M4sh Initialization. ##
23086 ## -------------------- ##
23088 # Be more Bourne compatible
23089 DUALCASE=1; export DUALCASE # for MKS sh
23090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23094 # is contrary to our usage. Disable this feature.
23095 alias -g '${1+"$@"}'='"$@"'
23096 setopt NO_GLOB_SUBST
23098 case `(set -o) 2>/dev/null` in #(
23110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23111 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23114 # Prefer a ksh shell builtin over an external printf program on Solaris,
23115 # but without wasting forks for bash or zsh.
23116 if test -z "$BASH_VERSION$ZSH_VERSION" \
23117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23118 as_echo='print -r --'
23119 as_echo_n='print -rn --'
23120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23121 as_echo='printf %s\n'
23122 as_echo_n='printf %s'
23124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23125 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23126 as_echo_n='/usr/ucb/echo -n'
23128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23129 as_echo_n_body='eval
23133 expr "X$arg" : "X\\(.*\\)$as_nl";
23134 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23136 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23138 export as_echo_n_body
23139 as_echo_n='sh -c $as_echo_n_body as_echo'
23141 export as_echo_body
23142 as_echo='sh -c $as_echo_body as_echo'
23145 # The user is always right.
23146 if test "${PATH_SEPARATOR+set}" != set; then
23148 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23149 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23156 # We need space, tab and new line, in precisely that order. Quoting is
23157 # there to prevent editors from complaining about space-tab.
23158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23159 # splitting by setting IFS to empty value.)
23162 # Find who we are. Look in the path if we contain no directory separator.
23165 *[\\/]* ) as_myself=$0 ;;
23166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23167 for as_dir in $PATH
23170 test -z "$as_dir" && as_dir=.
23171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23177 # We did not find ourselves, most probably we were run as `sh COMMAND'
23178 # in which case we are not to be found in the path.
23179 if test "x$as_myself" = x; then
23182 if test ! -f "$as_myself"; then
23183 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23187 # Unset variables that we do not need and which cause bugs (e.g. in
23188 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23189 # suppresses any "Segmentation fault" message there. '((' could
23190 # trigger a bug in pdksh 5.2.14.
23191 for as_var in BASH_ENV ENV MAIL MAILPATH
23192 do eval test x\${$as_var+set} = xset \
23193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23209 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23210 # ----------------------------------------
23211 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23212 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23213 # script with STATUS, using 1 if that was 0.
23216 as_status=$1; test $as_status -eq 0 && as_status=1
23218 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23219 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23221 $as_echo "$as_me: error: $2" >&2
23222 as_fn_exit $as_status
23226 # as_fn_set_status STATUS
23227 # -----------------------
23228 # Set $? to STATUS, without forking.
23229 as_fn_set_status ()
23232 } # as_fn_set_status
23234 # as_fn_exit STATUS
23235 # -----------------
23236 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23240 as_fn_set_status $1
23246 # Portably unset VAR.
23249 { eval $1=; unset $1;}
23251 as_unset=as_fn_unset
23252 # as_fn_append VAR VALUE
23253 # ----------------------
23254 # Append the text in VALUE to the end of the definition contained in VAR. Take
23255 # advantage of any shell optimizations that allow amortized linear growth over
23256 # repeated appends, instead of the typical quadratic growth present in naive
23258 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23259 eval 'as_fn_append ()
23270 # as_fn_arith ARG...
23271 # ------------------
23272 # Perform arithmetic evaluation on the ARGs, and store the result in the
23273 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23274 # must be portable across $(()) and expr.
23275 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23276 eval 'as_fn_arith ()
23283 as_val=`expr "$@" || test $? -eq 1`
23288 if expr a : '\(a\)' >/dev/null 2>&1 &&
23289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23296 as_basename=basename
23301 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23307 as_me=`$as_basename -- "$0" ||
23308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23309 X"$0" : 'X\(//\)$' \| \
23310 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23312 sed '/^.*\/\([^/][^/]*\)\/*$/{
23326 # Avoid depending upon Character Ranges.
23327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23330 as_cr_digits='0123456789'
23331 as_cr_alnum=$as_cr_Letters$as_cr_digits
23333 ECHO_C= ECHO_N= ECHO_T=
23334 case `echo -n x` in #(((((
23336 case `echo 'xy\c'` in
23337 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23339 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23346 rm -f conf$$ conf$$.exe conf$$.file
23347 if test -d conf$$.dir; then
23348 rm -f conf$$.dir/conf$$.file
23351 mkdir conf$$.dir 2>/dev/null
23353 if (echo >conf$$.file) 2>/dev/null; then
23354 if ln -s conf$$.file conf$$ 2>/dev/null; then
23356 # ... but there are two gotchas:
23357 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23358 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23359 # In both cases, we have to default to `cp -pR'.
23360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23362 elif ln conf$$.file conf$$ 2>/dev/null; then
23370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23371 rmdir conf$$.dir 2>/dev/null
23376 # Create "$as_dir" as a directory, including parents if necessary.
23381 -*) as_dir=./$as_dir;;
23383 test -d "$as_dir" || eval $as_mkdir_p || {
23387 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23388 *) as_qdir=$as_dir;;
23390 as_dirs="'$as_qdir' $as_dirs"
23391 as_dir=`$as_dirname -- "$as_dir" ||
23392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23393 X"$as_dir" : 'X\(//\)[^/]' \| \
23394 X"$as_dir" : 'X\(//\)$' \| \
23395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23396 $as_echo X"$as_dir" |
23397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23401 /^X\(\/\/\)[^/].*/{
23414 test -d "$as_dir" && break
23416 test -z "$as_dirs" || eval "mkdir $as_dirs"
23417 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23421 if mkdir -p . 2>/dev/null; then
23422 as_mkdir_p='mkdir -p "$as_dir"'
23424 test -d ./-p && rmdir ./-p
23429 # as_fn_executable_p FILE
23430 # -----------------------
23431 # Test if FILE is an executable regular file.
23432 as_fn_executable_p ()
23434 test -f "$1" && test -x "$1"
23435 } # as_fn_executable_p
23436 as_test_x='test -x'
23437 as_executable_p=as_fn_executable_p
23439 # Sed expression to map a string onto a valid CPP name.
23440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23442 # Sed expression to map a string onto a valid variable name.
23443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23447 ## ----------------------------------- ##
23448 ## Main body of $CONFIG_STATUS script. ##
23449 ## ----------------------------------- ##
23451 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23454 # Save the log message, to keep $0 and so on meaningful, and to
23455 # report actual input values of CONFIG_FILES etc. instead of their
23456 # values after options handling.
23458 This file was extended by $as_me, which was
23459 generated by GNU Autoconf 2.69. Invocation command line was
23461 CONFIG_FILES = $CONFIG_FILES
23462 CONFIG_HEADERS = $CONFIG_HEADERS
23463 CONFIG_LINKS = $CONFIG_LINKS
23464 CONFIG_COMMANDS = $CONFIG_COMMANDS
23467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23472 case $ac_config_files in *"
23473 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23476 case $ac_config_headers in *"
23477 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23482 # Files that config.status was made for.
23483 config_files="$ac_config_files"
23484 config_headers="$ac_config_headers"
23485 config_commands="$ac_config_commands"
23489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23491 \`$as_me' instantiates files and other configuration actions
23492 from templates according to the current configuration. Unless the files
23493 and actions are specified as TAGs, all are instantiated by default.
23495 Usage: $0 [OPTION]... [TAG]...
23497 -h, --help print this help, then exit
23498 -V, --version print version number and configuration settings, then exit
23499 --config print configuration, then exit
23500 -q, --quiet, --silent
23501 do not print progress messages
23502 -d, --debug don't remove temporary files
23503 --recheck update $as_me by reconfiguring in the same conditions
23504 --file=FILE[:TEMPLATE]
23505 instantiate the configuration file FILE
23506 --header=FILE[:TEMPLATE]
23507 instantiate the configuration header FILE
23509 Configuration files:
23512 Configuration headers:
23515 Configuration commands:
23518 Report bugs to the package provider."
23521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23525 configured by $0, generated by GNU Autoconf 2.69,
23526 with options \\"\$ac_cs_config\\"
23528 Copyright (C) 2012 Free Software Foundation, Inc.
23529 This config.status script is free software; the Free Software Foundation
23530 gives unlimited permission to copy, distribute and modify it."
23534 test -n "\$AWK" || AWK=awk
23537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538 # The default lists apply if the user does not specify any file.
23544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23561 # Handling of the options.
23562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23565 $as_echo "$ac_cs_version"; exit ;;
23566 --config | --confi | --conf | --con | --co | --c )
23567 $as_echo "$ac_cs_config"; exit ;;
23568 --debug | --debu | --deb | --de | --d | -d )
23570 --file | --fil | --fi | --f )
23573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23574 '') as_fn_error $? "missing file argument" ;;
23576 as_fn_append CONFIG_FILES " '$ac_optarg'"
23577 ac_need_defaults=false;;
23578 --header | --heade | --head | --hea )
23581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23583 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23584 ac_need_defaults=false;;
23586 # Conflict between --help and --header
23587 as_fn_error $? "ambiguous option: \`$1'
23588 Try \`$0 --help' for more information.";;
23589 --help | --hel | -h )
23590 $as_echo "$ac_cs_usage"; exit ;;
23591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23595 # This is an error.
23596 -*) as_fn_error $? "unrecognized option: \`$1'
23597 Try \`$0 --help' for more information." ;;
23599 *) as_fn_append ac_config_targets " $1"
23600 ac_need_defaults=false ;;
23606 ac_configure_extra_args=
23608 if $ac_cs_silent; then
23610 ac_configure_extra_args="$ac_configure_extra_args --silent"
23614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23615 if \$ac_cs_recheck; then
23616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23619 CONFIG_SHELL='$SHELL'
23620 export CONFIG_SHELL
23625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23630 ## Running $as_me. ##
23636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23641 # Handling of arguments.
23642 for ac_config_target in $ac_config_targets
23644 case $ac_config_target in
23645 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23646 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
23647 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
23648 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
23649 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
23650 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23651 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23652 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23653 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23654 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23655 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23656 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23657 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23658 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23659 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23660 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23661 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23662 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
23663 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23665 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23670 # If the user did not use the arguments to specify the items to instantiate,
23671 # then the envvar interface is used. Set only those that are not.
23672 # We use the long form for the default assignment because of an extremely
23673 # bizarre bug on SunOS 4.1.3.
23674 if $ac_need_defaults; then
23675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23680 # Have a temporary directory for convenience. Make it in the build tree
23681 # simply because there is no reason against having it here, and in addition,
23682 # creating and moving files from /tmp can sometimes cause problems.
23683 # Hook for its removal unless debugging.
23684 # Note that there is a small window in which the directory will not be cleaned:
23685 # after its creation but before its name has been assigned to `$tmp'.
23689 trap 'exit_status=$?
23690 : "${ac_tmp:=$tmp}"
23691 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23693 trap 'as_fn_exit 1' 1 2 13 15
23695 # Create a (secure) tmp directory for tmp files.
23698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23702 tmp=./conf$$-$RANDOM
23703 (umask 077 && mkdir "$tmp")
23704 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23707 # Set up the scripts for CONFIG_FILES section.
23708 # No need to generate them if there are no CONFIG_FILES.
23709 # This happens for instance with `./config.status config.h'.
23710 if test -n "$CONFIG_FILES"; then
23713 ac_cr=`echo X | tr X '\015'`
23714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23715 # But we know of no other shell where ac_cr would be empty at this
23716 # point, so we can use a bashism as a fallback.
23717 if test "x$ac_cr" = x; then
23718 eval ac_cr=\$\'\\r\'
23720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23724 ac_cs_awk_cr=$ac_cr
23727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23732 echo "cat >conf$$subs.awk <<_ACEOF" &&
23733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23735 } >conf$$subs.sh ||
23736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23739 for ac_last_try in false false false false false :; do
23740 . ./conf$$subs.sh ||
23741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23744 if test $ac_delim_n = $ac_delim_num; then
23746 elif $ac_last_try; then
23747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23752 rm -f conf$$subs.sh
23754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23755 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23759 s/^/S["/; s/!.*/"]=/
23769 s/\(.\{148\}\)..*/\1/
23771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23783 s/\(.\{148\}\)..*/\1/
23785 s/["\\]/\\&/g; s/^/"/; s/$/"/
23789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23794 ' <conf$$subs.awk | sed '
23799 ' >>$CONFIG_STATUS || ac_write_fail=1
23800 rm -f conf$$subs.awk
23801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23803 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23804 for (key in S) S_is_set[key] = 1
23810 nfields = split(line, field, "@")
23812 len = length(field[1])
23813 for (i = 2; i < nfields; i++) {
23815 keylen = length(key)
23816 if (S_is_set[key]) {
23818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23819 len += length(value) + length(field[++i])
23830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23835 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23836 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23839 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23840 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23841 # trailing colons and then remove the whole line if VPATH becomes empty
23842 # (actually we leave an empty line to preserve line numbers).
23843 if test "x$srcdir" = x.; then
23844 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23863 fi # test -n "$CONFIG_FILES"
23865 # Set up the scripts for CONFIG_HEADERS section.
23866 # No need to generate them if there are no CONFIG_HEADERS.
23867 # This happens for instance with `./config.status Makefile'.
23868 if test -n "$CONFIG_HEADERS"; then
23869 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23873 # Transform confdefs.h into an awk script `defines.awk', embedded as
23874 # here-document in config.status, that substitutes the proper values into
23875 # config.h.in to produce config.h.
23877 # Create a delimiter string that does not exist in confdefs.h, to ease
23878 # handling of long lines.
23880 for ac_last_try in false false :; do
23881 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23882 if test -z "$ac_tt"; then
23884 elif $ac_last_try; then
23885 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23891 # For the awk script, D is an array of macro values keyed by name,
23892 # likewise P contains macro parameters if any. Preserve backslash
23893 # newline sequences.
23895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23897 s/.\{148\}/&'"$ac_delim"'/g
23900 s/^[ ]*#[ ]*define[ ][ ]*/ /
23907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23914 D["\1"]=" \3\\\\\\n"\\/p
23916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23921 s/.\{148\}/&'"$ac_delim"'/g
23926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23931 ' <confdefs.h | sed '
23932 s/'"$ac_delim"'/"\\\
23933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23936 for (key in D) D_is_set[key] = 1
23939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23941 split(line, arg, " ")
23942 if (arg[1] == "#") {
23946 defundef = substr(arg[1], 2)
23949 split(mac1, mac2, "(") #)
23951 prefix = substr(line, 1, index(line, defundef) - 1)
23952 if (D_is_set[macro]) {
23953 # Preserve the white space surrounding the "#".
23954 print prefix "define", macro P[macro] D[macro]
23957 # Replace #undef with comments. This is necessary, for example,
23958 # in the case of _POSIX_SOURCE, which is predefined and required
23959 # on some systems where configure will not decide to define it.
23960 if (defundef == "undef") {
23961 print "/*", prefix defundef, macro, "*/"
23969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23970 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23971 fi # test -n "$CONFIG_HEADERS"
23974 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23979 :[FHLC]) ac_mode=$ac_tag; continue;;
23981 case $ac_mode$ac_tag in
23983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23984 :[FH]-) ac_tag=-:-;;
23985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24002 -) ac_f="$ac_tmp/stdin";;
24003 *) # Look for the file first in the build tree, then in the source tree
24004 # (if the path is not absolute). The absolute path cannot be DOS-style,
24005 # because $ac_f cannot contain `:'.
24009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24014 as_fn_append ac_file_inputs " '$ac_f'"
24017 # Let's still pretend it is `configure' which instantiates (i.e., don't
24018 # use $as_me), people would be surprised to read:
24019 # /* config.h. Generated by config.status. */
24020 configure_input='Generated from '`
24021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24023 if test x"$ac_file" != x-; then
24024 configure_input="$ac_file. $configure_input"
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24026 $as_echo "$as_me: creating $ac_file" >&6;}
24028 # Neutralize special characters interpreted by sed in replacement strings.
24029 case $configure_input in #(
24030 *\&* | *\|* | *\\* )
24031 ac_sed_conf_input=`$as_echo "$configure_input" |
24032 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24033 *) ac_sed_conf_input=$configure_input;;
24037 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24043 ac_dir=`$as_dirname -- "$ac_file" ||
24044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045 X"$ac_file" : 'X\(//\)[^/]' \| \
24046 X"$ac_file" : 'X\(//\)$' \| \
24047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24048 $as_echo X"$ac_file" |
24049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24053 /^X\(\/\/\)[^/].*/{
24066 as_dir="$ac_dir"; as_fn_mkdir_p
24070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24073 # A ".." for each directory in $ac_dir_suffix.
24074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24075 case $ac_top_builddir_sub in
24076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24080 ac_abs_top_builddir=$ac_pwd
24081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24082 # for backward compatibility:
24083 ac_top_builddir=$ac_top_build_prefix
24086 .) # We are building in place.
24088 ac_top_srcdir=$ac_top_builddir_sub
24089 ac_abs_top_srcdir=$ac_pwd ;;
24090 [\\/]* | ?:[\\/]* ) # Absolute name.
24091 ac_srcdir=$srcdir$ac_dir_suffix;
24092 ac_top_srcdir=$srcdir
24093 ac_abs_top_srcdir=$srcdir ;;
24094 *) # Relative name.
24095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24096 ac_top_srcdir=$ac_top_build_prefix$srcdir
24097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24111 # If the template does not know about datarootdir, expand it.
24112 # FIXME: This hack should be removed a few years after 2.60.
24113 ac_datarootdir_hack=; ac_datarootdir_seen=
24124 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24125 *datarootdir*) ac_datarootdir_seen=yes;;
24126 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24128 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24131 ac_datarootdir_hack='
24132 s&@datadir@&$datadir&g
24133 s&@docdir@&$docdir&g
24134 s&@infodir@&$infodir&g
24135 s&@localedir@&$localedir&g
24136 s&@mandir@&$mandir&g
24137 s&\\\${datarootdir}&$datarootdir&g' ;;
24141 # Neutralize VPATH when `$srcdir' = `.'.
24142 # Shell code in configure.ac might set extrasub.
24143 # FIXME: do we really want to maintain this feature?
24144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24145 ac_sed_extra="$ac_vpsub
24148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24151 s|@configure_input@|$ac_sed_conf_input|;t t
24152 s&@top_builddir@&$ac_top_builddir_sub&;t t
24153 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24154 s&@srcdir@&$ac_srcdir&;t t
24155 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24156 s&@top_srcdir@&$ac_top_srcdir&;t t
24157 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24158 s&@builddir@&$ac_builddir&;t t
24159 s&@abs_builddir@&$ac_abs_builddir&;t t
24160 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24161 $ac_datarootdir_hack
24163 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24164 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24167 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24168 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24169 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24171 which seems to be undefined. Please make sure it is defined" >&5
24172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24173 which seems to be undefined. Please make sure it is defined" >&2;}
24175 rm -f "$ac_tmp/stdin"
24177 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24178 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24186 if test x"$ac_file" != x-; then
24188 $as_echo "/* $configure_input */" \
24189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24190 } >"$ac_tmp/config.h" \
24191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24192 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24194 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24197 mv "$ac_tmp/config.h" "$ac_file" \
24198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24201 $as_echo "/* $configure_input */" \
24202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24203 || as_fn_error $? "could not create -" "$LINENO" 5
24207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24208 $as_echo "$as_me: executing $ac_file commands" >&6;}
24213 case $ac_file$ac_mode in
24214 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
24215 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
24216 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
24217 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
24225 ac_clean_files=$ac_clean_files_save
24227 test $ac_write_fail = 0 ||
24228 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24231 # configure is writing to config.log, and then calls config.status.
24232 # config.status does its own redirection, appending to config.log.
24233 # Unfortunately, on DOS this fails, as config.log is still kept open
24234 # by configure, so config.status won't be able to write to it; its
24235 # output is simply discarded. So we exec the FD to /dev/null,
24236 # effectively closing config.log, so it can be properly (re)opened and
24237 # appended to by config.status. When coming back to configure, we
24238 # need to make the FD available again.
24239 if test "$no_create" != yes; then
24241 ac_config_status_args=
24242 test "$silent" = yes &&
24243 ac_config_status_args="$ac_config_status_args --quiet"
24245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24248 # would make configure fail if this is the last instruction.
24249 $ac_cs_success || as_fn_exit 1
24253 # CONFIG_SUBDIRS section.
24255 if test "$no_recursion" != yes; then
24257 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24258 # so they do not pile up.
24259 ac_sub_configure_args=
24261 eval "set x $ac_configure_args"
24265 if test -n "$ac_prev"; then
24270 -cache-file | --cache-file | --cache-fil | --cache-fi \
24271 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24272 ac_prev=cache_file ;;
24273 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24274 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24277 --config-cache | -C)
24279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24287 --disable-option-checking)
24291 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24293 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
24297 # Always prepend --prefix to ensure using the same prefix
24298 # in subdir configurations.
24299 ac_arg="--prefix=$prefix"
24301 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24303 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
24306 if test "$silent" = yes; then
24307 ac_sub_configure_args="--silent $ac_sub_configure_args"
24310 # Always prepend --disable-option-checking to silence warnings, since
24311 # different subdirs can have different --enable and --with options.
24312 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24315 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24317 # Do not complain, so a configure script can configure whichever
24318 # parts of a large source tree are present.
24319 test -d "$srcdir/$ac_dir" || continue
24321 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24322 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
24323 $as_echo "$ac_msg" >&6
24324 as_dir="$ac_dir"; as_fn_mkdir_p
24328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24331 # A ".." for each directory in $ac_dir_suffix.
24332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24333 case $ac_top_builddir_sub in
24334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24338 ac_abs_top_builddir=$ac_pwd
24339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24340 # for backward compatibility:
24341 ac_top_builddir=$ac_top_build_prefix
24344 .) # We are building in place.
24346 ac_top_srcdir=$ac_top_builddir_sub
24347 ac_abs_top_srcdir=$ac_pwd ;;
24348 [\\/]* | ?:[\\/]* ) # Absolute name.
24349 ac_srcdir=$srcdir$ac_dir_suffix;
24350 ac_top_srcdir=$srcdir
24351 ac_abs_top_srcdir=$srcdir ;;
24352 *) # Relative name.
24353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24354 ac_top_srcdir=$ac_top_build_prefix$srcdir
24355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24362 # Check for guested configure; otherwise get Cygnus style configure.
24363 if test -f "$ac_srcdir/configure.gnu"; then
24364 ac_sub_configure=$ac_srcdir/configure.gnu
24365 elif test -f "$ac_srcdir/configure"; then
24366 ac_sub_configure=$ac_srcdir/configure
24367 elif test -f "$ac_srcdir/configure.in"; then
24368 # This should be Cygnus configure.
24369 ac_sub_configure=$ac_aux_dir/configure
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
24372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24376 # The recursion is here.
24377 if test -n "$ac_sub_configure"; then
24378 # Make the cache file name correct relative to the subdirectory.
24379 case $cache_file in
24380 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24381 *) # Relative name.
24382 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24385 { $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
24386 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24387 # The eval makes quoting arguments work.
24388 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24389 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24390 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
24396 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24398 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}