2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libnl 3.2.22.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='libnl'
570 PACKAGE_VERSION='3.2.22'
571 PACKAGE_STRING='libnl 3.2.22'
573 PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
575 # Factoring default headers for most tests.
576 ac_includes_default="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 enable_option_checking=no
612 ac_subst_vars='am__EXEEXT_FALSE
619 DISABLE_PTHREADS_FALSE
620 DISABLE_PTHREADS_TRUE
624 ENABLE_UNIT_TESTS_FALSE
625 ENABLE_UNIT_TESTS_TRUE
699 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
756 enable_dependency_tracking
769 ac_precious_vars='build_alias
785 # Initialize some variables set by options.
787 ac_init_version=false
788 ac_unrecognized_opts=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name=s,x,x,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1148 eval with_$ac_useropt=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures libnl 3.2.22 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/libnl]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of libnl 3.2.22:";;
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-silent-rules less verbose build output (undo: `make V=1')
1404 --disable-silent-rules verbose build output (undo: `make V=0')
1405 --disable-dependency-tracking speeds up one-time build
1406 --enable-dependency-tracking do not reject slow dependency extractors
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-cli Do not build command line interface utils
1413 --disable-pthreads Disable pthreads support
1414 --disable-debug Do not include debugging statements
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1422 --with-sysroot=DIR Search for dependent libraries within DIR
1423 (or the compiler's sysroot if not specified).
1424 --with-pkgconfigdir=PATH
1425 Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1436 PKG_CONFIG path to pkg-config utility
1438 directories to add to pkg-config's search path
1440 path overriding pkg-config's built-in search path
1442 C compiler flags for CHECK, overriding pkg-config
1443 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to the package provider.
1449 libnl home page: <http://www.infradead.org/~tgr/libnl/>.
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1479 .) # We are building in place.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1512 libnl configure 3.2.22
1513 generated by GNU Autoconf 2.68
1515 Copyright (C) 2010 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_link
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1627 if ac_fn_c_try_compile "$LINENO"; then :
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 } # ac_fn_c_check_header_compile
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1712 ac_retval=$ac_status
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1743 # include <limits.h>
1745 # include <assert.h>
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1772 if ac_fn_c_try_link "$LINENO"; then :
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_func
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1790 It was created by libnl $as_me 3.2.22, which was
1791 generated by GNU Autoconf 2.68. Invocation command line was
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 $as_echo "PATH: $as_dir"
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1851 ac_must_keep_next=false
1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859 | -silent | --silent | --silen | --sile | --sil)
1862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1867 as_fn_append ac_configure_args1 " '$ac_arg'"
1868 if test $ac_must_keep_next = true; then
1869 ac_must_keep_next=false # Got value, back to normal.
1872 *=* | --config-cache | -C | -disable-* | --disable-* \
1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875 | -with-* | --with-* | -without-* | --without-* | --x)
1876 case "$ac_configure_args0 " in
1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 -* ) ac_must_keep_next=true ;;
1883 as_fn_append ac_configure_args " '$ac_arg'"
1888 { ac_configure_args0=; unset ac_configure_args0;}
1889 { ac_configure_args1=; unset ac_configure_args1;}
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log. We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897 # Save into config.log some information that might help in debugging.
1901 $as_echo "## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##"
1905 # The following way of writing the cache mishandles newlines in values,
1907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908 eval ac_val=\$$ac_var
1912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 _ | IFS | as_nl) ;; #(
1917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918 *) { eval $ac_var=; unset $ac_var;} ;;
1923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924 *${as_nl}ac_space=\ *)
1926 "s/'\''/'\''\\\\'\'''\''/g;
1927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 $as_echo "## ----------------- ##
1938 ## Output variables. ##
1939 ## ----------------- ##"
1941 for ac_var in $ac_subst_vars
1943 eval ac_val=\$$ac_var
1945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1947 $as_echo "$ac_var='\''$ac_val'\''"
1951 if test -n "$ac_subst_files"; then
1952 $as_echo "## ------------------- ##
1953 ## File substitutions. ##
1954 ## ------------------- ##"
1956 for ac_var in $ac_subst_files
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1967 if test -s confdefs.h; then
1968 $as_echo "## ----------- ##
1975 test "$ac_signal" != 0 &&
1976 $as_echo "$as_me: caught signal $ac_signal"
1977 $as_echo "$as_me: exit $exit_status"
1979 rm -f core *.core core.conftest.* &&
1980 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1983 for ac_signal in 1 2 13 15; do
1984 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1989 rm -f -r conftest* confdefs.h
1991 $as_echo "/* confdefs.h */" > confdefs.h
1993 # Predefined preprocessor variables.
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_STRING "$PACKAGE_STRING"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_URL "$PACKAGE_URL"
2020 # Let the site file select an alternate cache file if it wants to.
2021 # Prefer an explicitly selected file to automatically selected ones.
2024 if test -n "$CONFIG_SITE"; then
2025 # We do not want a PATH search for config.site.
2026 case $CONFIG_SITE in #((
2027 -*) ac_site_file1=./$CONFIG_SITE;;
2028 */*) ac_site_file1=$CONFIG_SITE;;
2029 *) ac_site_file1=./$CONFIG_SITE;;
2031 elif test "x$prefix" != xNONE; then
2032 ac_site_file1=$prefix/share/config.site
2033 ac_site_file2=$prefix/etc/config.site
2035 ac_site_file1=$ac_default_prefix/share/config.site
2036 ac_site_file2=$ac_default_prefix/etc/config.site
2038 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2040 test "x$ac_site_file" = xNONE && continue
2041 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2043 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2044 sed 's/^/| /' "$ac_site_file" >&5
2046 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048 as_fn_error $? "failed to load site script $ac_site_file
2049 See \`config.log' for more details" "$LINENO" 5; }
2053 if test -r "$cache_file"; then
2054 # Some versions of bash will fail to source /dev/null (special files
2055 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2056 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2058 $as_echo "$as_me: loading cache $cache_file" >&6;}
2060 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2061 *) . "./$cache_file";;
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066 $as_echo "$as_me: creating cache $cache_file" >&6;}
2070 # Check that the precious variables saved in the cache have kept the same
2072 ac_cache_corrupted=false
2073 for ac_var in $ac_precious_vars; do
2074 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2075 eval ac_new_set=\$ac_env_${ac_var}_set
2076 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2077 eval ac_new_val=\$ac_env_${ac_var}_value
2078 case $ac_old_set,$ac_new_set in
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2081 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2085 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2086 ac_cache_corrupted=: ;;
2089 if test "x$ac_old_val" != "x$ac_new_val"; then
2090 # differences in whitespace do not lead to failure.
2091 ac_old_val_w=`echo x $ac_old_val`
2092 ac_new_val_w=`echo x $ac_new_val`
2093 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2095 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2096 ac_cache_corrupted=:
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2099 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2100 eval $ac_var=\$ac_old_val
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2103 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2105 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2108 # Pass precious variables to config.status.
2109 if test "$ac_new_set" = set; then
2111 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 *) ac_arg=$ac_var=$ac_new_val ;;
2114 case " $ac_configure_args " in
2115 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2116 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2120 if $ac_cache_corrupted; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2124 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2125 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2127 ## -------------------- ##
2128 ## Main body of script. ##
2129 ## -------------------- ##
2132 ac_cpp='$CPP $CPPFLAGS'
2133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 ac_config_headers="$ac_config_headers lib/defs.h"
2141 for ac_dir in build-aux "$srcdir"/build-aux; do
2142 if test -f "$ac_dir/install-sh"; then
2144 ac_install_sh="$ac_aux_dir/install-sh -c"
2146 elif test -f "$ac_dir/install.sh"; then
2148 ac_install_sh="$ac_aux_dir/install.sh -c"
2150 elif test -f "$ac_dir/shtool"; then
2152 ac_install_sh="$ac_aux_dir/shtool install -c"
2156 if test -z "$ac_aux_dir"; then
2157 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2160 # These three variables are undocumented and unsupported,
2161 # and are intended to be withdrawn in a future Autoconf release.
2162 # They can cause serious problems if a builder's source tree is in a directory
2163 # whose full name contains unusual characters.
2164 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2165 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2166 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2170 am__api_version='1.11'
2172 # Find a good install program. We prefer a C program (faster),
2173 # so one script is as good as another. But avoid the broken or
2174 # incompatible versions:
2175 # SysV /etc/install, /usr/sbin/install
2176 # SunOS /usr/etc/install
2177 # IRIX /sbin/install
2179 # AmigaOS /C/install, which installs bootblocks on floppy discs
2180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2183 # OS/2's system install, which has a completely different semantic
2184 # ./install, which can be erroneously created by make from ./install.sh.
2185 # Reject install programs that cannot install multiple files.
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2187 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2188 if test -z "$INSTALL"; then
2189 if ${ac_cv_path_install+:} false; then :
2190 $as_echo_n "(cached) " >&6
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 # Account for people who put trailing slashes in PATH elements.
2198 case $as_dir/ in #((
2199 ./ | .// | /[cC]/* | \
2200 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2201 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2204 # OSF1 and SCO ODT 3.0 have their own names for install.
2205 # Don't use installbsd from OSF since it installs stuff as root
2207 for ac_prog in ginstall scoinst install; do
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2210 if test $ac_prog = install &&
2211 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2212 # AIX install. It has an incompatible calling convention.
2214 elif test $ac_prog = install &&
2215 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216 # program-specific install script used by HP pwplus--don't use.
2219 rm -rf conftest.one conftest.two conftest.dir
2220 echo one > conftest.one
2221 echo two > conftest.two
2223 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2224 test -s conftest.one && test -s conftest.two &&
2225 test -s conftest.dir/conftest.one &&
2226 test -s conftest.dir/conftest.two
2228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241 rm -rf conftest.one conftest.two conftest.dir
2244 if test "${ac_cv_path_install+set}" = set; then
2245 INSTALL=$ac_cv_path_install
2247 # As a last resort, use the slow shell script. Don't cache a
2248 # value for INSTALL within a source directory, because that will
2249 # break other packages using the cache if that directory is
2250 # removed, or if the value is a relative name.
2251 INSTALL=$ac_install_sh
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2255 $as_echo "$INSTALL" >&6; }
2257 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2258 # It thinks the first close brace ends the variable substitution.
2259 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2261 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2263 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2266 $as_echo_n "checking whether build environment is sane... " >&6; }
2269 echo timestamp > conftest.file
2270 # Reject unsafe characters in $srcdir or the absolute working directory
2271 # name. Accept space and tab only in the latter.
2275 *[\\\"\#\$\&\'\`$am_lf]*)
2276 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2279 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2280 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2283 # Do `set' in a subshell so we don't clobber the current shell's
2284 # arguments. Must try -L first in case configure is actually a
2285 # symlink; some systems play weird games with the mod time of symlinks
2286 # (eg FreeBSD returns the mod time of the symlink's containing
2289 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2290 if test "$*" = "X"; then
2292 set X `ls -t "$srcdir/configure" conftest.file`
2295 if test "$*" != "X $srcdir/configure conftest.file" \
2296 && test "$*" != "X conftest.file $srcdir/configure"; then
2298 # If neither matched, then we have a broken ls. This can happen
2299 # if, for instance, CONFIG_SHELL is bash and it inherits a
2300 # broken ls alias from the environment. This has actually
2301 # happened. Such a system could not be considered "sane".
2302 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2303 alias in your environment" "$LINENO" 5
2306 test "$2" = conftest.file
2312 as_fn_error $? "newly created file is older than distributed files!
2313 Check your system clock" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2316 $as_echo "yes" >&6; }
2317 test "$program_prefix" != NONE &&
2318 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2319 # Use a double $ so make ignores it.
2320 test "$program_suffix" != NONE &&
2321 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2322 # Double any \ or $.
2323 # By default was `s,x,x', remove it if useless.
2324 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2325 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2327 # expand $ac_aux_dir to an absolute path
2328 am_aux_dir=`cd $ac_aux_dir && pwd`
2330 if test x"${MISSING+set}" != xset; then
2333 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2335 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2338 # Use eval to expand $SHELL
2339 if eval "$MISSING --run true"; then
2340 am_missing_run="$MISSING --run "
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2344 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2347 if test x"${install_sh}" != xset; then
2350 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2352 install_sh="\${SHELL} $am_aux_dir/install-sh"
2356 # Installed binaries are usually stripped using `strip' when the user
2357 # run `make install-strip'. However `strip' might not be the right
2358 # tool to use in cross-compilation environments, therefore Automake
2359 # will honor the `STRIP' environment variable to overrule this program.
2360 if test "$cross_compiling" != no; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}strip; ac_word=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if ${ac_cv_prog_STRIP+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 if test -n "$STRIP"; then
2370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 STRIP=$ac_cv_prog_STRIP
2390 if test -n "$STRIP"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2392 $as_echo "$STRIP" >&6; }
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2400 if test -z "$ac_cv_prog_STRIP"; then
2402 # Extract the first word of "strip", so it can be a program name with args.
2403 set dummy strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$ac_ct_STRIP"; then
2410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_STRIP="strip"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2430 if test -n "$ac_ct_STRIP"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2432 $as_echo "$ac_ct_STRIP" >&6; }
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2438 if test "x$ac_ct_STRIP" = x; then
2441 case $cross_compiling:$ac_tool_warned in
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445 ac_tool_warned=yes ;;
2450 STRIP="$ac_cv_prog_STRIP"
2454 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2457 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2458 if test -z "$MKDIR_P"; then
2459 if ${ac_cv_path_mkdir+:} false; then :
2460 $as_echo_n "(cached) " >&6
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2466 test -z "$as_dir" && as_dir=.
2467 for ac_prog in mkdir gmkdir; do
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2470 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2471 'mkdir (GNU coreutils) '* | \
2472 'mkdir (coreutils) '* | \
2473 'mkdir (fileutils) '4.1*)
2474 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2484 test -d ./--version && rmdir ./--version
2485 if test "${ac_cv_path_mkdir+set}" = set; then
2486 MKDIR_P="$ac_cv_path_mkdir -p"
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for MKDIR_P within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 MKDIR_P="$ac_install_sh -d"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2496 $as_echo "$MKDIR_P" >&6; }
2500 [\\/$]* | ?:[\\/]*) ;;
2501 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2504 for ac_prog in gawk mawk nawk awk
2506 # Extract the first word of "$ac_prog", so it can be a program name with args.
2507 set dummy $ac_prog; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if ${ac_cv_prog_AWK+:} false; then :
2511 $as_echo_n "(cached) " >&6
2513 if test -n "$AWK"; then
2514 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_AWK="$ac_prog"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 if test -n "$AWK"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2536 $as_echo "$AWK" >&6; }
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2543 test -n "$AWK" && break
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2547 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2549 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2550 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2551 $as_echo_n "(cached) " >&6
2553 cat >conftest.make <<\_ACEOF
2556 @echo '@@@%%%=$(MAKE)=@@@%%%'
2558 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2561 eval ac_cv_prog_make_${ac_make}_set=yes;;
2563 eval ac_cv_prog_make_${ac_make}_set=no;;
2567 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 SET_MAKE="MAKE=${MAKE-make}"
2577 rm -rf .tst 2>/dev/null
2578 mkdir .tst 2>/dev/null
2579 if test -d .tst; then
2584 rmdir .tst 2>/dev/null
2586 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2587 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2588 # is not polluted with repeated "-I."
2589 am__isrc=' -I$(srcdir)'
2590 # test to see if srcdir already configured
2591 if test -f $srcdir/config.status; then
2592 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2596 # test whether we have cygpath
2597 if test -z "$CYGPATH_W"; then
2598 if (cygpath --version) >/dev/null 2>/dev/null; then
2599 CYGPATH_W='cygpath -w'
2606 # Define the identity of the package.
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE "$PACKAGE"
2616 cat >>confdefs.h <<_ACEOF
2617 #define VERSION "$VERSION"
2620 # Some tools Automake needs.
2622 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2625 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2628 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2631 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2634 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2636 # We need awk for the "check" target. The system "awk" is bad on
2638 # Always define AMTAR for backward compatibility. Yes, it's still used
2639 # in the wild :-( We should find a proper way to deprecate it ...
2642 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2648 # Check whether --enable-silent-rules was given.
2649 if test "${enable_silent_rules+set}" = set; then :
2650 enableval=$enable_silent_rules;
2653 case $enable_silent_rules in
2654 yes) AM_DEFAULT_VERBOSITY=0;;
2655 no) AM_DEFAULT_VERBOSITY=1;;
2656 *) AM_DEFAULT_VERBOSITY=0;;
2658 am_make=${MAKE-make}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2660 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2661 if ${am_cv_make_support_nested_variables+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if $as_echo 'TRUE=$(BAR$(V))
2670 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2671 am_cv_make_support_nested_variables=yes
2673 am_cv_make_support_nested_variables=no
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2677 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2678 if test $am_cv_make_support_nested_variables = yes; then
2680 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2682 AM_V=$AM_DEFAULT_VERBOSITY
2683 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2687 DEPDIR="${am__leading_dot}deps"
2689 ac_config_commands="$ac_config_commands depfiles"
2692 am_make=${MAKE-make}
2693 cat > confinc << 'END'
2695 @echo this is the am__doit target
2698 # If we don't find an include directive, just comment out the code.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2700 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2704 # First try GNU make style include.
2705 echo "include confinc" > confmf
2706 # Ignore all kinds of additional output from `make'.
2707 case `$am_make -s -f confmf 2> /dev/null` in #(
2708 *the\ am__doit\ target*)
2714 # Now try BSD make style include.
2715 if test "$am__include" = "#"; then
2716 echo '.include "confinc"' > confmf
2717 case `$am_make -s -f confmf 2> /dev/null` in #(
2718 *the\ am__doit\ target*)
2719 am__include=.include
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2728 $as_echo "$_am_result" >&6; }
2729 rm -f confinc confmf
2731 # Check whether --enable-dependency-tracking was given.
2732 if test "${enable_dependency_tracking+set}" = set; then :
2733 enableval=$enable_dependency_tracking;
2736 if test "x$enable_dependency_tracking" != xno; then
2737 am_depcomp="$ac_aux_dir/depcomp"
2741 if test "x$enable_dependency_tracking" != xno; then
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2794 if test -z "$ac_cv_prog_CC"; then
2796 # Extract the first word of "gcc", so it can be a program name with args.
2797 set dummy gcc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_ac_ct_CC="gcc"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824 if test -n "$ac_ct_CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826 $as_echo "$ac_ct_CC" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2832 if test "x$ac_ct_CC" = x; then
2835 case $cross_compiling:$ac_tool_warned in
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 ac_tool_warned=yes ;;
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}cc; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="${ac_tool_prefix}cc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected=yes
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test $ac_prog_rejected = yes; then
2920 # We found a bogon in the path, so make sure we never use it.
2921 set dummy $ac_cv_prog_CC
2923 if test $# != 0; then
2924 # We chose a different compiler from the bogus one.
2925 # However, it has the same basename, so the bogon will be chosen
2926 # first if we set CC to just the basename; use the full file name.
2928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 for ac_prog in cl.exe
2948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2985 test -n "$CC" && break
2988 if test -z "$CC"; then
2990 for ac_prog in cl.exe
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_CC="$ac_prog"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3029 test -n "$ac_ct_CC" && break
3032 if test "x$ac_ct_CC" = x; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details" "$LINENO" 5; }
3053 # Provide some information about the compiler.
3054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057 for ac_option in --version -v -V -qversion; do
3058 { { ac_try="$ac_compiler $ac_option >&5"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067 if test -s conftest.err; then
3069 ... rest of stderr output deleted ...
3070 10q' conftest.err >conftest.er1
3071 cat conftest.er1 >&5
3073 rm -f conftest.er1 conftest.err
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3089 ac_clean_files_save=$ac_clean_files
3090 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3091 # Try to create an executable without -o first, disregard a.out.
3092 # It will help us diagnose broken compilers, and finding out an intuition
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3095 $as_echo_n "checking whether the C compiler works... " >&6; }
3096 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098 # The possible output files:
3099 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3102 for ac_file in $ac_files
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111 if { { ac_try="$ac_link_default"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link_default") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3123 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3124 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3125 # so that the user can short-circuit this test for compilers unknown to
3127 for ac_file in $ac_files ''
3129 test -f "$ac_file" || continue
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3134 # We found the default executable, but exeext='' is most
3138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 # We set ac_cv_exeext here because the later test for it is not
3143 # safe: cross compilers may not add the suffix if given an `-o'
3144 # argument, so we may need to know it at that point already.
3145 # Even if this section looks crufty: it has the advantage of
3152 test "$ac_cv_exeext" = no && ac_cv_exeext=
3157 if test -z "$ac_file"; then :
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error 77 "C compiler cannot create executables
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3172 $as_echo_n "checking for C compiler default output file name... " >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3174 $as_echo "$ac_file" >&6; }
3175 ac_exeext=$ac_cv_exeext
3177 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3178 ac_clean_files=$ac_clean_files_save
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3180 $as_echo_n "checking for suffix of executables... " >&6; }
3181 if { { ac_try="$ac_link"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3194 # work properly (i.e., refer to `conftest.exe'), while it won't with
3196 for ac_file in conftest.exe conftest conftest.*; do
3197 test -f "$ac_file" || continue
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3209 See \`config.log' for more details" "$LINENO" 5; }
3211 rm -f conftest conftest$ac_cv_exeext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3213 $as_echo "$ac_cv_exeext" >&6; }
3215 rm -f conftest.$ac_ext
3216 EXEEXT=$ac_cv_exeext
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3224 FILE *f = fopen ("conftest.out", "w");
3225 return ferror (f) || fclose (f) != 0;
3231 ac_clean_files="$ac_clean_files conftest.out"
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 if test "$cross_compiling" != yes; then
3237 { { ac_try="$ac_link"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link") 2>&5
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3248 if { ac_try='./conftest$ac_cv_exeext'
3249 { { case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_try") 2>&5
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; }; then
3261 if test "$cross_compiling" = maybe; then
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details" "$LINENO" 5; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273 $as_echo "$cross_compiling" >&6; }
3275 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3276 ac_clean_files=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3278 $as_echo_n "checking for suffix of object files... " >&6; }
3279 if ${ac_cv_objext+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 rm -f conftest.o conftest.obj
3294 if { { ac_try="$ac_compile"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_compile") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 for ac_file in conftest.o conftest.obj conftest.*; do
3306 test -f "$ac_file" || continue;
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of object files: cannot compile
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3325 $as_echo "$ac_cv_objext" >&6; }
3326 OBJEXT=$ac_cv_objext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3330 if ${ac_cv_c_compiler_gnu+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3358 if test $ac_compiler_gnu = yes; then
3363 ac_test_CFLAGS=${CFLAGS+set}
3364 ac_save_CFLAGS=$CFLAGS
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3367 if ${ac_cv_prog_cc_g+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 ac_save_c_werror_flag=$ac_c_werror_flag
3371 ac_c_werror_flag=yes
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 if ac_fn_c_try_compile "$LINENO"; then :
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3400 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3416 if ac_fn_c_try_compile "$LINENO"; then :
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3427 $as_echo "$ac_cv_prog_cc_g" >&6; }
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3445 if ${ac_cv_prog_cc_c89+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_cv_prog_cc_c89=no
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3454 #include <sys/types.h>
3455 #include <sys/stat.h>
3456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3457 struct buf { int x; };
3458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3459 static char *e (p, i)
3465 static char *f (char * (*g) (char **, int), char **p, ...)
3470 s = g (p, va_arg (v,int));
3475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3476 function prototypes and stuff, but not '\xHH' hex character constants.
3477 These don't provoke an error unfortunately, instead are silently treated
3478 as 'x'. The following induces an error, until -std is added to get
3479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3480 array size at least. It's necessary to write '\x00'==0 to get something
3481 that's true only with -std. */
3482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3485 inside strings and character constants. */
3487 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3489 int test (int i, double x);
3490 struct s1 {int (*f) (int a);};
3491 struct s2 {int (*f) (double a);};
3492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3498 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC="$ac_save_CC $ac_arg"
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_c89=$ac_arg
3510 rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c89" != "xno" && break
3513 rm -f conftest.$ac_ext
3518 case "x$ac_cv_prog_cc_c89" in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 $as_echo "none needed" >&6; } ;;
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524 $as_echo "unsupported" >&6; } ;;
3526 CC="$CC $ac_cv_prog_cc_c89"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3528 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3530 if test "x$ac_cv_prog_cc_c89" != xno; then :
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 depcc="$CC" am_compiler_list=
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3543 $as_echo_n "checking dependency style of $depcc... " >&6; }
3544 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548 # We make a subdir and do the tests there. Otherwise we can end up
3549 # making bogus files that we don't know about and never remove. For
3550 # instance it was reported that on HP-UX the gcc test will end up
3551 # making a dummy file named `D' -- because `-MD' means `put the output
3555 # Copy depcomp to subdir because otherwise we won't find it if we're
3556 # using a relative directory.
3557 cp "$am_depcomp" conftest.dir
3559 # We will build objects and dependencies in a subdirectory because
3560 # it helps to detect inapplicable dependency modes. For instance
3561 # both Tru64's cc and ICC support -MD to output dependencies as a
3562 # side effect of compilation, but ICC will put the dependencies in
3563 # the current directory while Tru64 will put them in the object
3567 am_cv_CC_dependencies_compiler_type=none
3568 if test "$am_compiler_list" = ""; then
3569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3572 case " $depcc " in #(
3573 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3576 for depmode in $am_compiler_list; do
3577 # Setup a source with many dependencies, because some compilers
3578 # like to wrap large dependency lists on column 80 (with \), and
3579 # we should not choose a depcomp mode which is confused by this.
3581 # We need to recreate these files for each test, as the compiler may
3582 # overwrite some of them when testing with obscure command lines.
3583 # This happens at least with the AIX C compiler.
3585 for i in 1 2 3 4 5 6; do
3586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588 # Solaris 8's {/usr,}/bin/sh.
3589 touch sub/conftst$i.h
3591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3593 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3594 # mode. It turns out that the SunPro C++ compiler does not properly
3595 # handle `-M -o', and we need to detect this. Also, some Intel
3596 # versions had trouble with output in subdirs
3597 am__obj=sub/conftest.${OBJEXT-o}
3598 am__minus_obj="-o $am__obj"
3601 # This depmode causes a compiler race in universal mode.
3602 test "$am__universal" = false || continue
3605 # after this tag, mechanisms are not by side-effect, so they'll
3606 # only be used when explicitly requested
3607 if test "x$enable_dependency_tracking" = xyes; then
3613 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3614 # This compiler won't grok `-c -o', but also, the minuso test has
3615 # not run yet. These depmodes are late enough in the game, and
3616 # so weak that their functioning should not be impacted.
3617 am__obj=conftest.${OBJEXT-o}
3622 if depmode=$depmode \
3623 source=sub/conftest.c object=$am__obj \
3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3626 >/dev/null 2>conftest.err &&
3627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3631 # icc doesn't choke on unknown options, it will just issue warnings
3632 # or remarks (even with -Werror). So we grep stderr for any message
3633 # that says an option was ignored or not supported.
3634 # When given -MP, icc 7.0 and 7.1 complain thusly:
3635 # icc: Command line warning: ignoring option '-M'; no argument required
3636 # The diagnosis changed in icc 8.0:
3637 # icc: Command line remark: option '-MP' not supported
3638 if (grep 'ignoring option' conftest.err ||
3639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3640 am_cv_CC_dependencies_compiler_type=$depmode
3649 am_cv_CC_dependencies_compiler_type=none
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3654 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3658 test "x$enable_dependency_tracking" != xno \
3659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3661 am__fastdepCC_FALSE='#'
3663 am__fastdepCC_TRUE='#'
3664 am__fastdepCC_FALSE=
3669 if test -n "$ac_tool_prefix"; then
3670 for ac_prog in ar lib "link -lib"
3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_prog_AR+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$AR"; then
3680 ac_cv_prog_AR="$AR" # Let the user override the test.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 if test -n "$AR"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3702 $as_echo "$AR" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3709 test -n "$AR" && break
3712 if test -z "$AR"; then
3714 for ac_prog in ar lib "link -lib"
3716 # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_AR"; then
3724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_AR="$ac_prog"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3744 if test -n "$ac_ct_AR"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3746 $as_echo "$ac_ct_AR" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3753 test -n "$ac_ct_AR" && break
3756 if test "x$ac_ct_AR" = x; then
3759 case $cross_compiling:$ac_tool_warned in
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3763 ac_tool_warned=yes ;;
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3772 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3773 if ${am_cv_ar_interface+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 am_cv_ar_interface=ar
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 int some_variable = 0;
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3784 (eval $am_ar_try) 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 if test "$ac_status" -eq 0; then
3789 am_cv_ar_interface=ar
3791 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3793 (eval $am_ar_try) 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 if test "$ac_status" -eq 0; then
3798 am_cv_ar_interface=lib
3800 am_cv_ar_interface=unknown
3803 rm -f conftest.lib libconftest.a
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3810 $as_echo "$am_cv_ar_interface" >&6; }
3812 case $am_cv_ar_interface in
3816 # Microsoft lib, so override with the ar-lib wrapper script.
3817 # FIXME: It is wrong to rewrite AR.
3818 # But if we don't then we get into trouble of one sort or another.
3819 # A longer-term fix would be to have automake use am__AR in this case,
3820 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3822 AR="$am_aux_dir/ar-lib $AR"
3825 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3836 LIBNL_VERSION=3.2.22
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3890 if test -z "$ac_cv_prog_CC"; then
3892 # Extract the first word of "gcc", so it can be a program name with args.
3893 set dummy gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_ac_ct_CC="gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3928 if test "x$ac_ct_CC" = x; then
3931 case $cross_compiling:$ac_tool_warned in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_CC="${ac_tool_prefix}cc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 if test -n "$CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975 $as_echo "$CC" >&6; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3984 if test -z "$CC"; then
3985 # Extract the first word of "cc", so it can be a program name with args.
3986 set dummy cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4004 ac_prog_rejected=yes
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 if test $ac_prog_rejected = yes; then
4016 # We found a bogon in the path, so make sure we never use it.
4017 set dummy $ac_cv_prog_CC
4019 if test $# != 0; then
4020 # We chose a different compiler from the bogus one.
4021 # However, it has the same basename, so the bogon will be chosen
4022 # first if we set CC to just the basename; use the full file name.
4024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 for ac_prog in cl.exe
4044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 test -n "$CC" && break
4084 if test -z "$CC"; then
4086 for ac_prog in cl.exe
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 if test -n "$ac_ct_CC"; then
4096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105 ac_cv_prog_ac_ct_CC="$ac_prog"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4116 if test -n "$ac_ct_CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4118 $as_echo "$ac_ct_CC" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4125 test -n "$ac_ct_CC" && break
4128 if test "x$ac_ct_CC" = x; then
4131 case $cross_compiling:$ac_tool_warned in
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4135 ac_tool_warned=yes ;;
4144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146 as_fn_error $? "no acceptable C compiler found in \$PATH
4147 See \`config.log' for more details" "$LINENO" 5; }
4149 # Provide some information about the compiler.
4150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153 for ac_option in --version -v -V -qversion; do
4154 { { ac_try="$ac_compiler $ac_option >&5"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4163 if test -s conftest.err; then
4165 ... rest of stderr output deleted ...
4166 10q' conftest.err >conftest.er1
4167 cat conftest.er1 >&5
4169 rm -f conftest.er1 conftest.err
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177 $as_echo_n "(cached) " >&6
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4193 if ac_fn_c_try_compile "$LINENO"; then :
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 ac_save_c_werror_flag=$ac_c_werror_flag
4217 ac_c_werror_flag=yes
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4231 if ac_fn_c_try_compile "$LINENO"; then :
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4262 if ac_fn_c_try_compile "$LINENO"; then :
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_c_werror_flag=$ac_save_c_werror_flag
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4283 if test "$GCC" = yes; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 ac_cv_prog_cc_c89=no
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4300 #include <sys/types.h>
4301 #include <sys/stat.h>
4302 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4303 struct buf { int x; };
4304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4305 static char *e (p, i)
4311 static char *f (char * (*g) (char **, int), char **p, ...)
4316 s = g (p, va_arg (v,int));
4321 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4322 function prototypes and stuff, but not '\xHH' hex character constants.
4323 These don't provoke an error unfortunately, instead are silently treated
4324 as 'x'. The following induces an error, until -std is added to get
4325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4326 array size at least. It's necessary to write '\x00'==0 to get something
4327 that's true only with -std. */
4328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4330 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4331 inside strings and character constants. */
4333 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4335 int test (int i, double x);
4336 struct s1 {int (*f) (int a);};
4337 struct s2 {int (*f) (double a);};
4338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4349 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4352 CC="$ac_save_CC $ac_arg"
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_cv_prog_cc_c89=$ac_arg
4356 rm -f core conftest.err conftest.$ac_objext
4357 test "x$ac_cv_prog_cc_c89" != "xno" && break
4359 rm -f conftest.$ac_ext
4364 case "x$ac_cv_prog_cc_c89" in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367 $as_echo "none needed" >&6; } ;;
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370 $as_echo "unsupported" >&6; } ;;
4372 CC="$CC $ac_cv_prog_cc_c89"
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4374 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4376 if test "x$ac_cv_prog_cc_c89" != xno; then :
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 depcc="$CC" am_compiler_list=
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4389 $as_echo_n "checking dependency style of $depcc... " >&6; }
4390 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4394 # We make a subdir and do the tests there. Otherwise we can end up
4395 # making bogus files that we don't know about and never remove. For
4396 # instance it was reported that on HP-UX the gcc test will end up
4397 # making a dummy file named `D' -- because `-MD' means `put the output
4401 # Copy depcomp to subdir because otherwise we won't find it if we're
4402 # using a relative directory.
4403 cp "$am_depcomp" conftest.dir
4405 # We will build objects and dependencies in a subdirectory because
4406 # it helps to detect inapplicable dependency modes. For instance
4407 # both Tru64's cc and ICC support -MD to output dependencies as a
4408 # side effect of compilation, but ICC will put the dependencies in
4409 # the current directory while Tru64 will put them in the object
4413 am_cv_CC_dependencies_compiler_type=none
4414 if test "$am_compiler_list" = ""; then
4415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4418 case " $depcc " in #(
4419 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4422 for depmode in $am_compiler_list; do
4423 # Setup a source with many dependencies, because some compilers
4424 # like to wrap large dependency lists on column 80 (with \), and
4425 # we should not choose a depcomp mode which is confused by this.
4427 # We need to recreate these files for each test, as the compiler may
4428 # overwrite some of them when testing with obscure command lines.
4429 # This happens at least with the AIX C compiler.
4431 for i in 1 2 3 4 5 6; do
4432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4434 # Solaris 8's {/usr,}/bin/sh.
4435 touch sub/conftst$i.h
4437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4440 # mode. It turns out that the SunPro C++ compiler does not properly
4441 # handle `-M -o', and we need to detect this. Also, some Intel
4442 # versions had trouble with output in subdirs
4443 am__obj=sub/conftest.${OBJEXT-o}
4444 am__minus_obj="-o $am__obj"
4447 # This depmode causes a compiler race in universal mode.
4448 test "$am__universal" = false || continue
4451 # after this tag, mechanisms are not by side-effect, so they'll
4452 # only be used when explicitly requested
4453 if test "x$enable_dependency_tracking" = xyes; then
4459 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4460 # This compiler won't grok `-c -o', but also, the minuso test has
4461 # not run yet. These depmodes are late enough in the game, and
4462 # so weak that their functioning should not be impacted.
4463 am__obj=conftest.${OBJEXT-o}
4468 if depmode=$depmode \
4469 source=sub/conftest.c object=$am__obj \
4470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4471 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4472 >/dev/null 2>conftest.err &&
4473 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4475 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4477 # icc doesn't choke on unknown options, it will just issue warnings
4478 # or remarks (even with -Werror). So we grep stderr for any message
4479 # that says an option was ignored or not supported.
4480 # When given -MP, icc 7.0 and 7.1 complain thusly:
4481 # icc: Command line warning: ignoring option '-M'; no argument required
4482 # The diagnosis changed in icc 8.0:
4483 # icc: Command line remark: option '-MP' not supported
4484 if (grep 'ignoring option' conftest.err ||
4485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4486 am_cv_CC_dependencies_compiler_type=$depmode
4495 am_cv_CC_dependencies_compiler_type=none
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4500 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4501 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4504 test "x$enable_dependency_tracking" != xno \
4505 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4507 am__fastdepCC_FALSE='#'
4509 am__fastdepCC_TRUE='#'
4510 am__fastdepCC_FALSE=
4514 if test "x$CC" != xcc; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4516 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4519 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4521 set dummy $CC; ac_cc=`$as_echo "$2" |
4522 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4523 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4537 # Make sure it works both with $CC and with simple cc.
4538 # We do the test twice because some compilers refuse to overwrite an
4539 # existing .o file with -o, though they will create one.
4540 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4542 if { { case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 $as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_try") 2>&5
4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; } &&
4552 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_try") 2>&5
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; };
4563 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4564 if test "x$CC" != xcc; then
4565 # Test first that cc exists at all.
4566 if { ac_try='cc -c conftest.$ac_ext >&5'
4567 { { case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_try") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; }; then
4577 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4579 if { { case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584 $as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_try") 2>&5
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; } &&
4589 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594 $as_echo "$ac_try_echo"; } >&5
4595 (eval "$ac_try") 2>&5
4597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; };
4603 # cc exists but doesn't like -o.
4604 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4609 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4611 rm -f core conftest*
4614 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4621 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4625 # FIXME: we rely on the cache variable name because
4626 # there is no other way.
4628 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4629 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4630 if test "$am_t" != yes; then
4631 # Losing compiler, so override with the script.
4632 # FIXME: It is wrong to rewrite CC.
4633 # But if we don't then we get into trouble of one sort or another.
4634 # A longer-term fix would be to have automake use am__CC in this case,
4635 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4636 CC="$am_aux_dir/compile $CC"
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4649 macro_version='2.4.2'
4650 macro_revision='1.3337'
4664 ltmain="$ac_aux_dir/ltmain.sh"
4666 # Make sure we can run config.sub.
4667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4671 $as_echo_n "checking build system type... " >&6; }
4672 if ${ac_cv_build+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 ac_build_alias=$build_alias
4676 test "x$ac_build_alias" = x &&
4677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4678 test "x$ac_build_alias" = x &&
4679 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4685 $as_echo "$ac_cv_build" >&6; }
4686 case $ac_cv_build in
4688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4691 ac_save_IFS=$IFS; IFS='-'
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4705 $as_echo_n "checking host system type... " >&6; }
4706 if ${ac_cv_host+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 if test "x$host_alias" = x; then
4710 ac_cv_host=$ac_cv_build
4712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 $as_echo "$ac_cv_host" >&6; }
4721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4724 ac_save_IFS=$IFS; IFS='-'
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4737 # Backslashify metacharacters that are still active within
4738 # double-quoted strings.
4739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4741 # Same as above, but do not quote variable references.
4742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4744 # Sed substitution to delay expansion of an escaped shell variable in a
4745 # double_quote_subst'ed string.
4746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4748 # Sed substitution to delay expansion of an escaped single quote.
4749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4751 # Sed substitution to avoid accidental globbing in evaled expressions
4752 no_glob_subst='s/\*/\\\*/g'
4754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4759 $as_echo_n "checking how to print strings... " >&6; }
4760 # Test print first, because it will be a builtin if present.
4761 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4762 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4767 # Use this function as a fallback that always works.
4768 func_fallback_echo ()
4770 eval 'cat <<_LTECHO_EOF
4774 ECHO='func_fallback_echo'
4777 # func_echo_all arg...
4778 # Invoke $ECHO with all args, space-separated.
4785 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4786 $as_echo "printf" >&6; } ;;
4787 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4788 $as_echo "print -r" >&6; } ;;
4789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4790 $as_echo "cat" >&6; } ;;
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4808 if ${ac_cv_path_SED+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4812 for ac_i in 1 2 3 4 5 6 7; do
4813 ac_script="$ac_script$as_nl$ac_script"
4815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4816 { ac_script=; unset ac_script;}
4817 if test -z "$SED"; then
4818 ac_path_SED_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_prog in sed gsed; do
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4828 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4829 # Check for GNU ac_path_SED and select it if it is found.
4830 # Check for GNU $ac_path_SED
4831 case `"$ac_path_SED" --version 2>&1` in
4833 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4836 $as_echo_n 0123456789 >"conftest.in"
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo '' >> "conftest.nl"
4843 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845 as_fn_arith $ac_count + 1 && ac_count=$as_val
4846 if test $ac_count -gt ${ac_path_SED_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_SED="$ac_path_SED"
4849 ac_path_SED_max=$ac_count
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857 $ac_path_SED_found && break 3
4862 if test -z "$ac_cv_path_SED"; then
4863 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4871 $as_echo "$ac_cv_path_SED" >&6; }
4872 SED="$ac_cv_path_SED"
4875 test -z "$SED" && SED=sed
4876 Xsed="$SED -e 1s/^X//"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4890 if ${ac_cv_path_GREP+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 if test -z "$GREP"; then
4894 ac_path_GREP_found=false
4895 # Loop through the user's path and test for each of PROGNAME-LIST
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4900 test -z "$as_dir" && as_dir=.
4901 for ac_prog in grep ggrep; do
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4904 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4905 # Check for GNU ac_path_GREP and select it if it is found.
4906 # Check for GNU $ac_path_GREP
4907 case `"$ac_path_GREP" --version 2>&1` in
4909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4912 $as_echo_n 0123456789 >"conftest.in"
4915 cat "conftest.in" "conftest.in" >"conftest.tmp"
4916 mv "conftest.tmp" "conftest.in"
4917 cp "conftest.in" "conftest.nl"
4918 $as_echo 'GREP' >> "conftest.nl"
4919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921 as_fn_arith $ac_count + 1 && ac_count=$as_val
4922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4923 # Best one so far, save it but keep looking for a better one
4924 ac_cv_path_GREP="$ac_path_GREP"
4925 ac_path_GREP_max=$ac_count
4927 # 10*(2^10) chars as input seems more than enough
4928 test $ac_count -gt 10 && break
4930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4933 $ac_path_GREP_found && break 3
4938 if test -z "$ac_cv_path_GREP"; then
4939 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942 ac_cv_path_GREP=$GREP
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4947 $as_echo "$ac_cv_path_GREP" >&6; }
4948 GREP="$ac_cv_path_GREP"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4952 $as_echo_n "checking for egrep... " >&6; }
4953 if ${ac_cv_path_EGREP+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4957 then ac_cv_path_EGREP="$GREP -E"
4959 if test -z "$EGREP"; then
4960 ac_path_EGREP_found=false
4961 # Loop through the user's path and test for each of PROGNAME-LIST
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4966 test -z "$as_dir" && as_dir=.
4967 for ac_prog in egrep; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4970 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4971 # Check for GNU ac_path_EGREP and select it if it is found.
4972 # Check for GNU $ac_path_EGREP
4973 case `"$ac_path_EGREP" --version 2>&1` in
4975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4978 $as_echo_n 0123456789 >"conftest.in"
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 $as_echo 'EGREP' >> "conftest.nl"
4985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_EGREP="$ac_path_EGREP"
4991 ac_path_EGREP_max=$ac_count
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4999 $ac_path_EGREP_found && break 3
5004 if test -z "$ac_cv_path_EGREP"; then
5005 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5008 ac_cv_path_EGREP=$EGREP
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5014 $as_echo "$ac_cv_path_EGREP" >&6; }
5015 EGREP="$ac_cv_path_EGREP"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5019 $as_echo_n "checking for fgrep... " >&6; }
5020 if ${ac_cv_path_FGREP+:} false; then :
5021 $as_echo_n "(cached) " >&6
5023 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5024 then ac_cv_path_FGREP="$GREP -F"
5026 if test -z "$FGREP"; then
5027 ac_path_FGREP_found=false
5028 # Loop through the user's path and test for each of PROGNAME-LIST
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5033 test -z "$as_dir" && as_dir=.
5034 for ac_prog in fgrep; do
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5037 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5038 # Check for GNU ac_path_FGREP and select it if it is found.
5039 # Check for GNU $ac_path_FGREP
5040 case `"$ac_path_FGREP" --version 2>&1` in
5042 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5045 $as_echo_n 0123456789 >"conftest.in"
5048 cat "conftest.in" "conftest.in" >"conftest.tmp"
5049 mv "conftest.tmp" "conftest.in"
5050 cp "conftest.in" "conftest.nl"
5051 $as_echo 'FGREP' >> "conftest.nl"
5052 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5054 as_fn_arith $ac_count + 1 && ac_count=$as_val
5055 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5056 # Best one so far, save it but keep looking for a better one
5057 ac_cv_path_FGREP="$ac_path_FGREP"
5058 ac_path_FGREP_max=$ac_count
5060 # 10*(2^10) chars as input seems more than enough
5061 test $ac_count -gt 10 && break
5063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066 $ac_path_FGREP_found && break 3
5071 if test -z "$ac_cv_path_FGREP"; then
5072 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5075 ac_cv_path_FGREP=$FGREP
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5081 $as_echo "$ac_cv_path_FGREP" >&6; }
5082 FGREP="$ac_cv_path_FGREP"
5085 test -z "$GREP" && GREP=grep
5105 # Check whether --with-gnu-ld was given.
5106 if test "${with_gnu_ld+set}" = set; then :
5107 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5113 if test "$GCC" = yes; then
5114 # Check if gcc -print-prog-name=ld gives a path.
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5116 $as_echo_n "checking for ld used by $CC... " >&6; }
5119 # gcc leaves a trailing carriage return which upsets mingw
5120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5125 # Accept absolute paths.
5127 re_direlt='/[^/][^/]*/\.\./'
5128 # Canonicalize the pathname of ld
5129 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5130 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5131 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5133 test -z "$LD" && LD="$ac_prog"
5136 # If it fails, then pretend we aren't using GCC.
5140 # If it is relative, then search for the first ld in PATH.
5144 elif test "$with_gnu_ld" = yes; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5146 $as_echo_n "checking for GNU ld... " >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5149 $as_echo_n "checking for non-GNU ld... " >&6; }
5151 if ${lt_cv_path_LD+:} false; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -z "$LD"; then
5155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5156 for ac_dir in $PATH; do
5158 test -z "$ac_dir" && ac_dir=.
5159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5160 lt_cv_path_LD="$ac_dir/$ac_prog"
5161 # Check to see if the program is GNU ld. I'd rather use --version,
5162 # but apparently some variants of GNU ld only accept -v.
5163 # Break only if it was the GNU/non-GNU ld that we prefer.
5164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166 test "$with_gnu_ld" != no && break
5169 test "$with_gnu_ld" != yes && break
5176 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5181 if test -n "$LD"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5183 $as_echo "$LD" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5188 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5190 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5191 if ${lt_cv_prog_gnu_ld+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5195 case `$LD -v 2>&1 </dev/null` in
5196 *GNU* | *'with BFD'*)
5197 lt_cv_prog_gnu_ld=yes
5200 lt_cv_prog_gnu_ld=no
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5205 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5206 with_gnu_ld=$lt_cv_prog_gnu_ld
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5217 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5218 if ${lt_cv_path_NM+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 if test -n "$NM"; then
5222 # Let the user override the test.
5225 lt_nm_to_check="${ac_tool_prefix}nm"
5226 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5227 lt_nm_to_check="$lt_nm_to_check nm"
5229 for lt_tmp_nm in $lt_nm_to_check; do
5230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5231 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5233 test -z "$ac_dir" && ac_dir=.
5234 tmp_nm="$ac_dir/$lt_tmp_nm"
5235 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5236 # Check to see if the nm accepts a BSD-compat flag.
5237 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5238 # nm: unknown option "B" ignored
5239 # Tru64's nm complains that /dev/null is an invalid object file
5240 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5241 */dev/null* | *'Invalid file or object type'*)
5242 lt_cv_path_NM="$tmp_nm -B"
5246 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5248 lt_cv_path_NM="$tmp_nm -p"
5252 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5253 continue # so that we can try to find one that supports BSD flags
5262 : ${lt_cv_path_NM=no}
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5266 $as_echo "$lt_cv_path_NM" >&6; }
5267 if test "$lt_cv_path_NM" != "no"; then
5270 # Didn't find any BSD compatible name lister, look for dumpbin.
5271 if test -n "$DUMPBIN"; then :
5272 # Let the user override the test.
5274 if test -n "$ac_tool_prefix"; then
5275 for ac_prog in dumpbin "link -dump"
5277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_DUMPBIN+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 if test -n "$DUMPBIN"; then
5285 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 DUMPBIN=$ac_cv_prog_DUMPBIN
5305 if test -n "$DUMPBIN"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5307 $as_echo "$DUMPBIN" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 test -n "$DUMPBIN" && break
5317 if test -z "$DUMPBIN"; then
5318 ac_ct_DUMPBIN=$DUMPBIN
5319 for ac_prog in dumpbin "link -dump"
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5326 $as_echo_n "(cached) " >&6
5328 if test -n "$ac_ct_DUMPBIN"; then
5329 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5349 if test -n "$ac_ct_DUMPBIN"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5351 $as_echo "$ac_ct_DUMPBIN" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 test -n "$ac_ct_DUMPBIN" && break
5361 if test "x$ac_ct_DUMPBIN" = x; then
5364 case $cross_compiling:$ac_tool_warned in
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5370 DUMPBIN=$ac_ct_DUMPBIN
5374 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5376 DUMPBIN="$DUMPBIN -symbols"
5384 if test "$DUMPBIN" != ":"; then
5388 test -z "$NM" && NM=nm
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5396 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5397 if ${lt_cv_nm_interface+:} false; then :
5398 $as_echo_n "(cached) " >&6
5400 lt_cv_nm_interface="BSD nm"
5401 echo "int some_variable = 0;" > conftest.$ac_ext
5402 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5403 (eval "$ac_compile" 2>conftest.err)
5404 cat conftest.err >&5
5405 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5406 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5407 cat conftest.err >&5
5408 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5409 cat conftest.out >&5
5410 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5411 lt_cv_nm_interface="MS dumpbin"
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5416 $as_echo "$lt_cv_nm_interface" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5419 $as_echo_n "checking whether ln -s works... " >&6; }
5421 if test "$LN_S" = "ln -s"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5423 $as_echo "yes" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5426 $as_echo "no, using $LN_S" >&6; }
5429 # find the maximum length of command line arguments
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5431 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5432 if ${lt_cv_sys_max_cmd_len+:} false; then :
5433 $as_echo_n "(cached) " >&6
5440 # On DJGPP, this test can blow up pretty badly due to problems in libc
5441 # (any single argument exceeding 2000 bytes causes a buffer overrun
5442 # during glob expansion). Even if it were fixed, the result of this
5443 # check would be larger than it should be.
5444 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5448 # Under GNU Hurd, this test is not required because there is
5449 # no limit to the length of command line arguments.
5450 # Libtool will interpret -1 as no limit whatsoever
5451 lt_cv_sys_max_cmd_len=-1;
5454 cygwin* | mingw* | cegcc*)
5455 # On Win9x/ME, this test blows up -- it succeeds, but takes
5456 # about 5 minutes as the teststring grows exponentially.
5457 # Worse, since 9x/ME are not pre-emptively multitasking,
5458 # you end up with a "frozen" computer, even though with patience
5459 # the test eventually succeeds (with a max line length of 256k).
5460 # Instead, let's just punt: use the minimum linelength reported by
5461 # all of the supported platforms: 8192 (on NT/2K/XP).
5462 lt_cv_sys_max_cmd_len=8192;
5466 # On MiNT this can take a long time and run out of memory.
5467 lt_cv_sys_max_cmd_len=8192;
5471 # On AmigaOS with pdksh, this test takes hours, literally.
5472 # So we just punt and use a minimum line length of 8192.
5473 lt_cv_sys_max_cmd_len=8192;
5476 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5477 # This has been around since 386BSD, at least. Likely further.
5478 if test -x /sbin/sysctl; then
5479 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5480 elif test -x /usr/sbin/sysctl; then
5481 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5483 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5485 # And add a safety zone
5486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5491 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5492 lt_cv_sys_max_cmd_len=196608
5496 # The test takes a long time on OS/2.
5497 lt_cv_sys_max_cmd_len=8192
5501 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5502 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5503 # nice to cause kernel panics so lets avoid the loop below.
5504 # First set a reasonable default.
5505 lt_cv_sys_max_cmd_len=16384
5507 if test -x /sbin/sysconfig; then
5508 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5509 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5514 lt_cv_sys_max_cmd_len=102400
5516 sysv5* | sco5v6* | sysv4.2uw2*)
5517 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5518 if test -n "$kargmax"; then
5519 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5521 lt_cv_sys_max_cmd_len=32768
5525 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5526 if test -n "$lt_cv_sys_max_cmd_len"; then
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5530 # Make teststring a little bigger before we do anything with it.
5531 # a 1K string should be a reasonable start.
5532 for i in 1 2 3 4 5 6 7 8 ; do
5533 teststring=$teststring$teststring
5535 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5536 # If test is not a shell built-in, we'll probably end up computing a
5537 # maximum length that is only half of the actual maximum length, but
5539 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5540 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5541 test $i != 17 # 1/2 MB should be enough
5544 teststring=$teststring$teststring
5546 # Only check the string length outside the loop.
5547 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5549 # Add a significant safety factor because C++ compilers can tack on
5550 # massive amounts of additional arguments before passing them to the
5551 # linker. It appears as though 1/2 is a usable value.
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5559 if test -n $lt_cv_sys_max_cmd_len ; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5561 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5564 $as_echo "none" >&6; }
5566 max_cmd_len=$lt_cv_sys_max_cmd_len
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5578 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5579 # Try some XSI features
5582 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5584 && eval 'test $(( 1 + 1 )) -eq 2 \
5585 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5588 $as_echo "$xsi_shell" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5592 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5594 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5596 && lt_shell_append=yes
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5598 $as_echo "$lt_shell_append" >&6; }
5601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5611 # test EBCDIC or ASCII
5612 case `echo X|tr X '\101'` in
5613 A) # ASCII based system
5614 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5615 lt_SP2NL='tr \040 \012'
5616 lt_NL2SP='tr \015\012 \040\040'
5618 *) # EBCDIC based system
5619 lt_SP2NL='tr \100 \n'
5620 lt_NL2SP='tr \r\n \100\100'
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5633 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5634 if ${lt_cv_to_host_file_cmd+:} false; then :
5635 $as_echo_n "(cached) " >&6
5640 *-*-mingw* ) # actually msys
5641 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5644 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5646 * ) # otherwise, assume *nix
5647 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5653 *-*-mingw* ) # actually msys
5654 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5657 lt_cv_to_host_file_cmd=func_convert_file_noop
5659 * ) # otherwise, assume *nix
5660 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5664 * ) # unhandled hosts (and "normal" native builds)
5665 lt_cv_to_host_file_cmd=func_convert_file_noop
5671 to_host_file_cmd=$lt_cv_to_host_file_cmd
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5673 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5680 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5681 if ${lt_cv_to_tool_file_cmd+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 #assume ordinary cross tools, or native build.
5685 lt_cv_to_tool_file_cmd=func_convert_file_noop
5689 *-*-mingw* ) # actually msys
5690 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5698 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5700 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5707 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5708 if ${lt_cv_ld_reload_flag+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 lt_cv_ld_reload_flag='-r'
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5714 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5715 reload_flag=$lt_cv_ld_reload_flag
5716 case $reload_flag in
5718 *) reload_flag=" $reload_flag" ;;
5720 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5722 cygwin* | mingw* | pw32* | cegcc*)
5723 if test "$GCC" != yes; then
5728 if test "$GCC" = yes; then
5729 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5731 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_OBJDUMP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5752 if test -n "$OBJDUMP"; then
5753 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 OBJDUMP=$ac_cv_prog_OBJDUMP
5773 if test -n "$OBJDUMP"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5775 $as_echo "$OBJDUMP" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5783 if test -z "$ac_cv_prog_OBJDUMP"; then
5784 ac_ct_OBJDUMP=$OBJDUMP
5785 # Extract the first word of "objdump", so it can be a program name with args.
5786 set dummy objdump; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$ac_ct_OBJDUMP"; then
5793 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5813 if test -n "$ac_ct_OBJDUMP"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5815 $as_echo "$ac_ct_OBJDUMP" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5821 if test "x$ac_ct_OBJDUMP" = x; then
5824 case $cross_compiling:$ac_tool_warned in
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5830 OBJDUMP=$ac_ct_OBJDUMP
5833 OBJDUMP="$ac_cv_prog_OBJDUMP"
5836 test -z "$OBJDUMP" && OBJDUMP=objdump
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5847 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5848 if ${lt_cv_deplibs_check_method+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 lt_cv_file_magic_cmd='$MAGIC_CMD'
5852 lt_cv_file_magic_test_file=
5853 lt_cv_deplibs_check_method='unknown'
5854 # Need to set the preceding variable on all platforms that support
5855 # interlibrary dependencies.
5856 # 'none' -- dependencies not supported.
5857 # `unknown' -- same as none, but documents that we really don't know.
5858 # 'pass_all' -- all dependencies passed with no checks.
5859 # 'test_compile' -- check by making test program.
5860 # 'file_magic [[regex]]' -- check by looking for files in library path
5861 # which responds to the $file_magic_cmd with a given extended regex.
5862 # If you have `file' or equivalent on your system and you're not sure
5863 # whether `pass_all' will *always* work, you probably want this one.
5867 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5876 lt_cv_file_magic_cmd='/usr/bin/file -L'
5877 lt_cv_file_magic_test_file=/shlib/libc.so
5881 # func_win32_libid is a shell function defined in ltmain.sh
5882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5883 lt_cv_file_magic_cmd='func_win32_libid'
5887 # Base MSYS/MinGW do not provide the 'file' command needed by
5888 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5889 # unless we find 'file', for example because we are cross-compiling.
5890 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5891 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5892 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5893 lt_cv_file_magic_cmd='func_win32_libid'
5895 # Keep this pattern in sync with the one in func_win32_libid.
5896 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5897 lt_cv_file_magic_cmd='$OBJDUMP -f'
5902 # use the weaker test based on 'objdump'. See mingw*.
5903 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5904 lt_cv_file_magic_cmd='$OBJDUMP -f'
5907 darwin* | rhapsody*)
5908 lt_cv_deplibs_check_method=pass_all
5911 freebsd* | dragonfly*)
5912 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915 # Not sure whether the presence of OpenBSD here was a mistake.
5916 # Let's accept both of them until this is cleared up.
5917 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5918 lt_cv_file_magic_cmd=/usr/bin/file
5919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5923 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method=pass_all
5932 lt_cv_deplibs_check_method=pass_all
5935 hpux10.20* | hpux11*)
5936 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5944 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5948 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5954 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5958 irix5* | irix6* | nonstopux*)
5960 *-32|*"-32 ") libmagic=32-bit;;
5961 *-n32|*"-n32 ") libmagic=N32;;
5962 *-64|*"-64 ") libmagic=64-bit;;
5963 *) libmagic=never-match;;
5965 lt_cv_deplibs_check_method=pass_all
5968 # This must be glibc/ELF.
5969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5970 lt_cv_deplibs_check_method=pass_all
5974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983 lt_cv_file_magic_cmd=/usr/bin/file
5984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5988 lt_cv_deplibs_check_method=pass_all
5992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999 osf3* | osf4* | osf5*)
6000 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6008 lt_cv_deplibs_check_method=pass_all
6011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012 lt_cv_deplibs_check_method=pass_all
6016 case $host_vendor in
6018 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]'
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6022 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_file_magic_cmd='/bin/file'
6026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6029 lt_cv_file_magic_cmd='/bin/file'
6030 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031 lt_cv_file_magic_test_file=/lib/libc.so
6034 lt_cv_deplibs_check_method=pass_all
6037 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6053 if test "$build" = "$host"; then
6056 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6059 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6065 file_magic_cmd=$lt_cv_file_magic_cmd
6066 deplibs_check_method=$lt_cv_deplibs_check_method
6067 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_DLLTOOL+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 if test -n "$DLLTOOL"; then
6099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 DLLTOOL=$ac_cv_prog_DLLTOOL
6119 if test -n "$DLLTOOL"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6121 $as_echo "$DLLTOOL" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_DLLTOOL"; then
6130 ac_ct_DLLTOOL=$DLLTOOL
6131 # Extract the first word of "dlltool", so it can be a program name with args.
6132 set dummy dlltool; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$ac_ct_DLLTOOL"; then
6139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6159 if test -n "$ac_ct_DLLTOOL"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6161 $as_echo "$ac_ct_DLLTOOL" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_DLLTOOL" = x; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6176 DLLTOOL=$ac_ct_DLLTOOL
6179 DLLTOOL="$ac_cv_prog_DLLTOOL"
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6194 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6195 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 lt_cv_sharedlib_from_linklib_cmd='unknown'
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 # two different shell functions defined in ltmain.sh
6203 # decide which to use based on capabilities of $DLLTOOL
6204 case `$DLLTOOL --help 2>&1` in
6205 *--identify-strict*)
6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6214 # fallback: assume linklib IS sharedlib
6215 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6221 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6222 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6223 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6231 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_AR+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 if test -n "$AR"; then
6242 ac_cv_prog_AR="$AR" # Let the user override the test.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 if test -n "$AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6264 $as_echo "$AR" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6271 test -n "$AR" && break
6274 if test -z "$AR"; then
6278 # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$ac_ct_AR"; then
6286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_ac_ct_AR="$ac_prog"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306 if test -n "$ac_ct_AR"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6308 $as_echo "$ac_ct_AR" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6315 test -n "$ac_ct_AR" && break
6318 if test "x$ac_ct_AR" = x; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6345 $as_echo_n "checking for archiver @FILE support... " >&6; }
6346 if ${lt_cv_ar_at_file+:} false; then :
6347 $as_echo_n "(cached) " >&6
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 echo conftest.$ac_objext > conftest.lst
6363 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365 (eval $lt_ar_try) 2>&5
6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368 test $ac_status = 0; }
6369 if test "$ac_status" -eq 0; then
6370 # Ensure the archiver fails upon bogus file names.
6371 rm -f conftest.$ac_objext libconftest.a
6372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6373 (eval $lt_ar_try) 2>&5
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }
6377 if test "$ac_status" -ne 0; then
6381 rm -f conftest.* libconftest.a
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6388 $as_echo "$lt_cv_ar_at_file" >&6; }
6390 if test "x$lt_cv_ar_at_file" = xno; then
6393 archiver_list_spec=$lt_cv_ar_at_file
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}strip; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_STRIP+:} false; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$STRIP"; then
6411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6433 $as_echo "$STRIP" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_STRIP"; then
6443 # Extract the first word of "strip", so it can be a program name with args.
6444 set dummy strip; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_STRIP"; then
6451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_STRIP="strip"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6471 if test -n "$ac_ct_STRIP"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6473 $as_echo "$ac_ct_STRIP" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_STRIP" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6491 STRIP="$ac_cv_prog_STRIP"
6494 test -z "$STRIP" && STRIP=:
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_RANLIB+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$RANLIB"; then
6510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 RANLIB=$ac_cv_prog_RANLIB
6530 if test -n "$RANLIB"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6532 $as_echo "$RANLIB" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_RANLIB"; then
6541 ac_ct_RANLIB=$RANLIB
6542 # Extract the first word of "ranlib", so it can be a program name with args.
6543 set dummy ranlib; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_RANLIB"; then
6550 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_RANLIB="ranlib"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 $as_echo "$ac_ct_RANLIB" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_RANLIB" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6587 RANLIB=$ac_ct_RANLIB
6590 RANLIB="$ac_cv_prog_RANLIB"
6593 test -z "$RANLIB" && RANLIB=:
6600 # Determine commands to create old-style static archives.
6601 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6602 old_postinstall_cmds='chmod 644 $oldlib'
6603 old_postuninstall_cmds=
6605 if test -n "$RANLIB"; then
6608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6614 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6619 lock_old_archive_extraction=yes ;;
6621 lock_old_archive_extraction=no ;;
6662 # If no C compiler was specified, use CC.
6665 # If no C compiler flags were specified, use CFLAGS.
6666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6668 # Allow CC to be a program name with arguments.
6672 # Check for command to grab the raw symbol name followed by C symbol from nm.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6676 $as_echo_n "(cached) " >&6
6679 # These are sane defaults that work on at least a few old systems.
6680 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6682 # Character class describing NM global symbol codes.
6683 symcode='[BCDEGRST]'
6685 # Regexp to match symbols that can be accessed directly from C.
6686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6688 # Define system-specific variables.
6693 cygwin* | mingw* | pw32* | cegcc*)
6694 symcode='[ABCDGISTW]'
6697 if test "$host_cpu" = ia64; then
6698 symcode='[ABCDEGRST]'
6702 symcode='[BCDEGRST]'
6705 symcode='[BCDEGQRST]'
6716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6724 # If we're using GNU nm, then use its standard symbol codes.
6725 case `$NM -V 2>&1` in
6726 *GNU* | *'with BFD'*)
6727 symcode='[ABCDGIRSTW]' ;;
6730 # Transform an extracted symbol line into a proper C declaration.
6731 # Some systems (esp. on ia64) link data and code symbols differently,
6732 # so use this general approach.
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6739 # Handle CRLF in mingw tool chain
6743 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6747 # Try without a prefix underscore, then with it.
6748 for ac_symprfx in "" "_"; do
6750 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6751 symxfrm="\\1 $ac_symprfx\\2 \\2"
6753 # Write the raw and C identifiers.
6754 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755 # Fake it for dumpbin and say T for any non-static function
6756 # and D for any global variable.
6757 # Also find C++ and __fastcall symbols from MSVC++,
6758 # which start with @ or ?.
6759 lt_cv_sys_global_symbol_pipe="$AWK '"\
6760 " {last_section=section; section=\$ 3};"\
6761 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6762 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6763 " \$ 0!~/External *\|/{next};"\
6764 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6765 " {if(hide[section]) next};"\
6766 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6767 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6768 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6769 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6770 " ' prfx=^$ac_symprfx"
6772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6774 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6776 # Check to see that the pipe works correctly.
6780 cat > conftest.$ac_ext <<_LT_EOF
6785 void nm_test_func(void);
6786 void nm_test_func(void){}
6790 int main(){nm_test_var='a';nm_test_func();return(0);}
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 # Now try to grab the symbols.
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6801 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s "$nlist"; then
6805 # Try sorting and uniquifying the output.
6806 if sort "$nlist" | uniq > "$nlist"T; then
6807 mv -f "$nlist"T "$nlist"
6812 # Make sure that we snagged all the symbols we need.
6813 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6814 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6815 cat <<_LT_EOF > conftest.$ac_ext
6816 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6817 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6818 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6819 relocations are performed -- see ld's documentation on pseudo-relocs. */
6820 # define LT_DLSYM_CONST
6821 #elif defined(__osf__)
6822 /* This system does not cope well with relocations in const data. */
6823 # define LT_DLSYM_CONST
6825 # define LT_DLSYM_CONST const
6833 # Now generate the symbol file.
6834 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6836 cat <<_LT_EOF >> conftest.$ac_ext
6838 /* The mapping between symbol names and symbols. */
6839 LT_DLSYM_CONST struct {
6843 lt__PROGRAM__LTX_preloaded_symbols[] =
6845 { "@PROGRAM@", (void *) 0 },
6847 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6848 cat <<\_LT_EOF >> conftest.$ac_ext
6852 /* This works around a problem in FreeBSD linker */
6853 #ifdef FREEBSD_WORKAROUND
6854 static const void *lt_preloaded_setup() {
6855 return lt__PROGRAM__LTX_preloaded_symbols;
6863 # Now try linking the two files.
6864 mv conftest.$ac_objext conftstm.$ac_objext
6865 lt_globsym_save_LIBS=$LIBS
6866 lt_globsym_save_CFLAGS=$CFLAGS
6867 LIBS="conftstm.$ac_objext"
6868 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6870 (eval $ac_link) 2>&5
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6876 LIBS=$lt_globsym_save_LIBS
6877 CFLAGS=$lt_globsym_save_CFLAGS
6879 echo "cannot find nm_test_func in $nlist" >&5
6882 echo "cannot find nm_test_var in $nlist" >&5
6885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6888 echo "$progname: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 rm -rf conftest* conftst*
6893 # Do not use the global_symbol_pipe unless it works.
6894 if test "$pipe_works" = yes; then
6897 lt_cv_sys_global_symbol_pipe=
6903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6904 lt_cv_sys_global_symbol_to_cdecl=
6906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6908 $as_echo "failed" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6911 $as_echo "ok" >&6; }
6914 # Response file support.
6915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916 nm_file_list_spec='@'
6917 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6918 nm_file_list_spec='@'
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6948 $as_echo_n "checking for sysroot... " >&6; }
6950 # Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952 withval=$with_sysroot;
6959 case ${with_sysroot} in #(
6961 if test "$GCC" = yes; then
6962 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6966 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6972 $as_echo "${with_sysroot}" >&6; }
6973 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6978 $as_echo "${lt_sysroot:-no}" >&6; }
6984 # Check whether --enable-libtool-lock was given.
6985 if test "${enable_libtool_lock+set}" = set; then :
6986 enableval=$enable_libtool_lock;
6989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991 # Some flags need to be propagated to the compiler or linker for good
6995 # Find out which ABI we are using.
6996 echo 'int i;' > conftest.$ac_ext
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998 (eval $ac_compile) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 case `/usr/bin/file conftest.$ac_objext` in
7014 # Find out which ABI we are using.
7015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7017 (eval $ac_compile) 2>&5
7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020 test $ac_status = 0; }; then
7021 if test "$lt_cv_prog_gnu_ld" = yes; then
7022 case `/usr/bin/file conftest.$ac_objext` in
7024 LD="${LD-ld} -melf32bsmip"
7027 LD="${LD-ld} -melf32bmipn32"
7030 LD="${LD-ld} -melf64bmip"
7034 case `/usr/bin/file conftest.$ac_objext` in
7050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7052 # Find out which ABI we are using.
7053 echo 'int i;' > conftest.$ac_ext
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055 (eval $ac_compile) 2>&5
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 case `/usr/bin/file conftest.o` in
7062 x86_64-*kfreebsd*-gnu)
7063 LD="${LD-ld} -m elf_i386_fbsd"
7066 LD="${LD-ld} -m elf_i386"
7068 ppc64-*linux*|powerpc64-*linux*)
7069 LD="${LD-ld} -m elf32ppclinux"
7072 LD="${LD-ld} -m elf_s390"
7075 LD="${LD-ld} -m elf32_sparc"
7081 x86_64-*kfreebsd*-gnu)
7082 LD="${LD-ld} -m elf_x86_64_fbsd"
7085 LD="${LD-ld} -m elf_x86_64"
7087 ppc*-*linux*|powerpc*-*linux*)
7088 LD="${LD-ld} -m elf64ppc"
7090 s390*-*linux*|s390*-*tpf*)
7091 LD="${LD-ld} -m elf64_s390"
7094 LD="${LD-ld} -m elf64_sparc"
7104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7105 SAVE_CFLAGS="$CFLAGS"
7106 CFLAGS="$CFLAGS -belf"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7109 if ${lt_cv_cc_needs_belf+:} false; then :
7110 $as_echo_n "(cached) " >&6
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_link "$LINENO"; then :
7130 lt_cv_cc_needs_belf=yes
7132 lt_cv_cc_needs_belf=no
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7145 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7146 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7147 CFLAGS="$SAVE_CFLAGS"
7151 # Find out which ABI we are using.
7152 echo 'int i;' > conftest.$ac_ext
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154 (eval $ac_compile) 2>&5
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }; then
7158 case `/usr/bin/file conftest.o` in
7160 case $lt_cv_prog_gnu_ld in
7164 LD="${LD-ld} -m elf_x86_64"
7167 LD="${LD-ld} -m elf64_sparc"
7170 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7171 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7176 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7188 need_locks="$enable_libtool_lock"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$MANIFEST_TOOL"; then
7199 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7219 if test -n "$MANIFEST_TOOL"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7221 $as_echo "$MANIFEST_TOOL" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7230 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7231 # Extract the first word of "mt", so it can be a program name with args.
7232 set dummy mt; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$ac_ct_MANIFEST_TOOL"; then
7239 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7259 if test -n "$ac_ct_MANIFEST_TOOL"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7261 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7267 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7276 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7279 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7282 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7284 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7285 if ${lt_cv_path_mainfest_tool+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 lt_cv_path_mainfest_tool=no
7289 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7290 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7291 cat conftest.err >&5
7292 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7293 lt_cv_path_mainfest_tool=yes
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7298 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7299 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7309 rhapsody* | darwin*)
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$DSYMUTIL"; then
7319 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7339 if test -n "$DSYMUTIL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7341 $as_echo "$DSYMUTIL" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7349 if test -z "$ac_cv_prog_DSYMUTIL"; then
7350 ac_ct_DSYMUTIL=$DSYMUTIL
7351 # Extract the first word of "dsymutil", so it can be a program name with args.
7352 set dummy dsymutil; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$ac_ct_DSYMUTIL"; then
7359 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7379 if test -n "$ac_ct_DSYMUTIL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7381 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7387 if test "x$ac_ct_DSYMUTIL" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7396 DSYMUTIL=$ac_ct_DSYMUTIL
7399 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_NMEDIT+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 if test -n "$NMEDIT"; then
7411 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 NMEDIT=$ac_cv_prog_NMEDIT
7431 if test -n "$NMEDIT"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7433 $as_echo "$NMEDIT" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_NMEDIT"; then
7442 ac_ct_NMEDIT=$NMEDIT
7443 # Extract the first word of "nmedit", so it can be a program name with args.
7444 set dummy nmedit; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$ac_ct_NMEDIT"; then
7451 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7471 if test -n "$ac_ct_NMEDIT"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7473 $as_echo "$ac_ct_NMEDIT" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479 if test "x$ac_ct_NMEDIT" = x; then
7482 case $cross_compiling:$ac_tool_warned in
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7488 NMEDIT=$ac_ct_NMEDIT
7491 NMEDIT="$ac_cv_prog_NMEDIT"
7494 if test -n "$ac_tool_prefix"; then
7495 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_LIPO+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 if test -n "$LIPO"; then
7503 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 LIPO=$ac_cv_prog_LIPO
7523 if test -n "$LIPO"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7525 $as_echo "$LIPO" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7533 if test -z "$ac_cv_prog_LIPO"; then
7535 # Extract the first word of "lipo", so it can be a program name with args.
7536 set dummy lipo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$ac_ct_LIPO"; then
7543 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_ac_ct_LIPO="lipo"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7563 if test -n "$ac_ct_LIPO"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7565 $as_echo "$ac_ct_LIPO" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7571 if test "x$ac_ct_LIPO" = x; then
7574 case $cross_compiling:$ac_tool_warned in
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7583 LIPO="$ac_cv_prog_LIPO"
7586 if test -n "$ac_tool_prefix"; then
7587 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 if test -n "$OTOOL"; then
7595 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 OTOOL=$ac_cv_prog_OTOOL
7615 if test -n "$OTOOL"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7617 $as_echo "$OTOOL" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7625 if test -z "$ac_cv_prog_OTOOL"; then
7627 # Extract the first word of "otool", so it can be a program name with args.
7628 set dummy otool; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$ac_ct_OTOOL"; then
7635 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_prog_ac_ct_OTOOL="otool"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7655 if test -n "$ac_ct_OTOOL"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7657 $as_echo "$ac_ct_OTOOL" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7663 if test "x$ac_ct_OTOOL" = x; then
7666 case $cross_compiling:$ac_tool_warned in
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7675 OTOOL="$ac_cv_prog_OTOOL"
7678 if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_OTOOL64+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 if test -n "$OTOOL64"; then
7687 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 OTOOL64=$ac_cv_prog_OTOOL64
7707 if test -n "$OTOOL64"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7709 $as_echo "$OTOOL64" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 if test -z "$ac_cv_prog_OTOOL64"; then
7718 ac_ct_OTOOL64=$OTOOL64
7719 # Extract the first word of "otool64", so it can be a program name with args.
7720 set dummy otool64; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$ac_ct_OTOOL64"; then
7727 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_ac_ct_OTOOL64="otool64"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7747 if test -n "$ac_ct_OTOOL64"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7749 $as_echo "$ac_ct_OTOOL64" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 if test "x$ac_ct_OTOOL64" = x; then
7758 case $cross_compiling:$ac_tool_warned in
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7764 OTOOL64=$ac_ct_OTOOL64
7767 OTOOL64="$ac_cv_prog_OTOOL64"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7797 $as_echo_n "checking for -single_module linker flag... " >&6; }
7798 if ${lt_cv_apple_cc_single_mod+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_apple_cc_single_mod=no
7802 if test -z "${LT_MULTI_MODULE}"; then
7803 # By default we will add the -single_module flag. You can override
7804 # by either setting the environment variable LT_MULTI_MODULE
7805 # non-empty at configure time, or by adding -multi_module to the
7807 rm -rf libconftest.dylib*
7808 echo "int foo(void){return 1;}" > conftest.c
7809 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810 -dynamiclib -Wl,-single_module conftest.c" >&5
7811 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7814 # If there is a non-empty error log, and "single_module"
7815 # appears in it, assume the flag caused a linker warning
7816 if test -s conftest.err && $GREP single_module conftest.err; then
7817 cat conftest.err >&5
7818 # Otherwise, if the output was created with a 0 exit code from
7819 # the compiler, it worked.
7820 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7821 lt_cv_apple_cc_single_mod=yes
7823 cat conftest.err >&5
7825 rm -rf libconftest.dylib*
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7833 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7834 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 lt_cv_ld_exported_symbols_list=no
7838 save_LDFLAGS=$LDFLAGS
7839 echo "_main" > conftest.sym
7840 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7852 if ac_fn_c_try_link "$LINENO"; then :
7853 lt_cv_ld_exported_symbols_list=yes
7855 lt_cv_ld_exported_symbols_list=no
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 LDFLAGS="$save_LDFLAGS"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7863 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if ${lt_cv_ld_force_load+:} false; then :
7868 $as_echo_n "(cached) " >&6
7870 lt_cv_ld_force_load=no
7871 cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7874 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876 echo "$AR cru libconftest.a conftest.o" >&5
7877 $AR cru libconftest.a conftest.o 2>&5
7878 echo "$RANLIB libconftest.a" >&5
7879 $RANLIB libconftest.a 2>&5
7880 cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7883 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7886 if test -s conftest.err && $GREP force_load conftest.err; then
7887 cat conftest.err >&5
7888 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7889 lt_cv_ld_force_load=yes
7891 cat conftest.err >&5
7893 rm -f conftest.err libconftest.a conftest conftest.c
7894 rm -rf conftest.dSYM
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7898 $as_echo "$lt_cv_ld_force_load" >&6; }
7900 rhapsody* | darwin1.[012])
7901 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7903 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7904 darwin*) # darwin 5.x on
7905 # if running on 10.5 or later, the deployment target defaults
7906 # to the OS version, if on x86, and 10.4, the deployment
7907 # target defaults to 10.4. Don't you love it?
7908 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7909 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7910 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7918 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7919 _lt_dar_single_mod='$single_module'
7921 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7922 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7924 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7926 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7927 _lt_dsymutil='~$DSYMUTIL $lib || :'
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7940 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7941 # On Suns, sometimes $CPP names a directory.
7942 if test -n "$CPP" && test -d "$CPP"; then
7945 if test -z "$CPP"; then
7946 if ${ac_cv_prog_CPP+:} false; then :
7947 $as_echo_n "(cached) " >&6
7949 # Double quotes because CPP needs to be expanded
7950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7953 for ac_c_preproc_warn_flag in '' yes
7955 # Use a header file that comes with gcc, so configuring glibc
7956 # with a fresh cross-compiler works.
7957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7958 # <limits.h> exists even on freestanding compilers.
7959 # On the NeXT, cc -E runs the code through the compiler's parser,
7960 # not just through cpp. "Syntax error" is here to catch this case.
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7964 # include <limits.h>
7966 # include <assert.h>
7970 if ac_fn_c_try_cpp "$LINENO"; then :
7973 # Broken: fails on valid input.
7976 rm -f conftest.err conftest.i conftest.$ac_ext
7978 # OK, works on sane cases. Now check whether nonexistent headers
7979 # can be detected and how.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <ac_nonexistent.h>
7984 if ac_fn_c_try_cpp "$LINENO"; then :
7985 # Broken: success on invalid input.
7988 # Passes both tests.
7992 rm -f conftest.err conftest.i conftest.$ac_ext
7995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7996 rm -f conftest.i conftest.err conftest.$ac_ext
7997 if $ac_preproc_ok; then :
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8010 $as_echo "$CPP" >&6; }
8012 for ac_c_preproc_warn_flag in '' yes
8014 # Use a header file that comes with gcc, so configuring glibc
8015 # with a fresh cross-compiler works.
8016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8017 # <limits.h> exists even on freestanding compilers.
8018 # On the NeXT, cc -E runs the code through the compiler's parser,
8019 # not just through cpp. "Syntax error" is here to catch this case.
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8023 # include <limits.h>
8025 # include <assert.h>
8029 if ac_fn_c_try_cpp "$LINENO"; then :
8032 # Broken: fails on valid input.
8035 rm -f conftest.err conftest.i conftest.$ac_ext
8037 # OK, works on sane cases. Now check whether nonexistent headers
8038 # can be detected and how.
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 #include <ac_nonexistent.h>
8043 if ac_fn_c_try_cpp "$LINENO"; then :
8044 # Broken: success on invalid input.
8047 # Passes both tests.
8051 rm -f conftest.err conftest.i conftest.$ac_ext
8054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8055 rm -f conftest.i conftest.err conftest.$ac_ext
8056 if $ac_preproc_ok; then :
8059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8061 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8062 See \`config.log' for more details" "$LINENO" 5; }
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8073 $as_echo_n "checking for ANSI C header files... " >&6; }
8074 if ${ac_cv_header_stdc+:} false; then :
8075 $as_echo_n "(cached) " >&6
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 ac_cv_header_stdc=yes
8095 ac_cv_header_stdc=no
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 if test $ac_cv_header_stdc = yes; then
8100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107 $EGREP "memchr" >/dev/null 2>&1; then :
8110 ac_cv_header_stdc=no
8116 if test $ac_cv_header_stdc = yes; then
8117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8124 $EGREP "free" >/dev/null 2>&1; then :
8127 ac_cv_header_stdc=no
8133 if test $ac_cv_header_stdc = yes; then
8134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8135 if test "$cross_compiling" = yes; then :
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8142 #if ((' ' & 0x0FF) == 0x020)
8143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8146 # define ISLOWER(c) \
8147 (('a' <= (c) && (c) <= 'i') \
8148 || ('j' <= (c) && (c) <= 'r') \
8149 || ('s' <= (c) && (c) <= 'z'))
8150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8158 for (i = 0; i < 256; i++)
8159 if (XOR (islower (i), ISLOWER (i))
8160 || toupper (i) != TOUPPER (i))
8165 if ac_fn_c_try_run "$LINENO"; then :
8168 ac_cv_header_stdc=no
8170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8171 conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8177 $as_echo "$ac_cv_header_stdc" >&6; }
8178 if test $ac_cv_header_stdc = yes; then
8180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8186 inttypes.h stdint.h unistd.h
8188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8192 cat >>confdefs.h <<_ACEOF
8193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8201 for ac_header in dlfcn.h
8203 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8205 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8206 cat >>confdefs.h <<_ACEOF
8207 #define HAVE_DLFCN_H 1
8228 # Check whether --enable-shared was given.
8229 if test "${enable_shared+set}" = set; then :
8230 enableval=$enable_shared; p=${PACKAGE-default}
8232 yes) enable_shared=yes ;;
8233 no) enable_shared=no ;;
8236 # Look at the argument we got. We use all the common list separators.
8237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8238 for pkg in $enableval; do
8240 if test "X$pkg" = "X$p"; then
8259 # Check whether --enable-static was given.
8260 if test "${enable_static+set}" = set; then :
8261 enableval=$enable_static; p=${PACKAGE-default}
8263 yes) enable_static=yes ;;
8264 no) enable_static=no ;;
8267 # Look at the argument we got. We use all the common list separators.
8268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8269 for pkg in $enableval; do
8271 if test "X$pkg" = "X$p"; then
8291 # Check whether --with-pic was given.
8292 if test "${with_pic+set}" = set; then :
8293 withval=$with_pic; lt_p=${PACKAGE-default}
8295 yes|no) pic_mode=$withval ;;
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for lt_pkg in $withval; do
8302 if test "X$lt_pkg" = "X$lt_p"; then
8314 test -z "$pic_mode" && pic_mode=default
8322 # Check whether --enable-fast-install was given.
8323 if test "${enable_fast_install+set}" = set; then :
8324 enableval=$enable_fast_install; p=${PACKAGE-default}
8326 yes) enable_fast_install=yes ;;
8327 no) enable_fast_install=no ;;
8329 enable_fast_install=no
8330 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8332 for pkg in $enableval; do
8334 if test "X$pkg" = "X$p"; then
8335 enable_fast_install=yes
8342 enable_fast_install=yes
8355 # This can be used to rebuild libtool when needed
8356 LIBTOOL_DEPS="$ltmain"
8358 # Always use our own libtool.
8359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8390 test -z "$LN_S" && LN_S="ln -s"
8405 if test -n "${ZSH_VERSION+set}" ; then
8406 setopt NO_GLOB_SUBST
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8410 $as_echo_n "checking for objdir... " >&6; }
8411 if ${lt_cv_objdir+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 rm -f .libs 2>/dev/null
8415 mkdir .libs 2>/dev/null
8416 if test -d .libs; then
8419 # MS-DOS does not allow filenames that begin with a dot.
8422 rmdir .libs 2>/dev/null
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8425 $as_echo "$lt_cv_objdir" >&6; }
8426 objdir=$lt_cv_objdir
8432 cat >>confdefs.h <<_ACEOF
8433 #define LT_OBJDIR "$lt_cv_objdir/"
8441 # AIX sometimes has problems with the GCC collect2 program. For some
8442 # reason, if we set the COLLECT_NAMES environment variable, the problems
8443 # vanish in a puff of smoke.
8444 if test "X${COLLECT_NAMES+set}" != Xset; then
8446 export COLLECT_NAMES
8453 can_build_shared=yes
8455 # All known linkers require a `.a' archive for static linking (except MSVC,
8456 # which needs '.lib').
8459 with_gnu_ld="$lt_cv_prog_gnu_ld"
8462 old_CFLAGS="$CFLAGS"
8464 # Set sane defaults for various variables
8465 test -z "$CC" && CC=cc
8466 test -z "$LTCC" && LTCC=$CC
8467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8468 test -z "$LD" && LD=ld
8469 test -z "$ac_objext" && ac_objext=o
8471 for cc_temp in $compiler""; do
8473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8479 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8482 # Only perform the check for file, if the check method requires it
8483 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8484 case $deplibs_check_method in
8486 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8488 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8490 $as_echo_n "(cached) " >&6
8494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8497 lt_save_MAGIC_CMD="$MAGIC_CMD"
8498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8500 for ac_dir in $ac_dummy; do
8502 test -z "$ac_dir" && ac_dir=.
8503 if test -f $ac_dir/${ac_tool_prefix}file; then
8504 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8505 if test -n "$file_magic_test_file"; then
8506 case $deplibs_check_method in
8508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8511 $EGREP "$file_magic_regex" > /dev/null; then
8516 *** Warning: the command libtool uses to detect shared libraries,
8517 *** $file_magic_cmd, produces output that libtool cannot recognize.
8518 *** The result is that libtool may fail to recognize shared libraries
8519 *** as such. This will affect the creation of libtool libraries that
8520 *** depend on shared libraries, but programs linked with such libtool
8521 *** libraries will work regardless of this problem. Nevertheless, you
8522 *** may want to report the problem to your system manager and/or to
8523 *** bug-libtool@gnu.org
8533 MAGIC_CMD="$lt_save_MAGIC_CMD"
8538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539 if test -n "$MAGIC_CMD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8541 $as_echo "$MAGIC_CMD" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8551 if test -z "$lt_cv_path_MAGIC_CMD"; then
8552 if test -n "$ac_tool_prefix"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8554 $as_echo_n "checking for file... " >&6; }
8555 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8556 $as_echo_n "(cached) " >&6
8560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8563 lt_save_MAGIC_CMD="$MAGIC_CMD"
8564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8566 for ac_dir in $ac_dummy; do
8568 test -z "$ac_dir" && ac_dir=.
8569 if test -f $ac_dir/file; then
8570 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8571 if test -n "$file_magic_test_file"; then
8572 case $deplibs_check_method in
8574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8577 $EGREP "$file_magic_regex" > /dev/null; then
8582 *** Warning: the command libtool uses to detect shared libraries,
8583 *** $file_magic_cmd, produces output that libtool cannot recognize.
8584 *** The result is that libtool may fail to recognize shared libraries
8585 *** as such. This will affect the creation of libtool libraries that
8586 *** depend on shared libraries, but programs linked with such libtool
8587 *** libraries will work regardless of this problem. Nevertheless, you
8588 *** may want to report the problem to your system manager and/or to
8589 *** bug-libtool@gnu.org
8599 MAGIC_CMD="$lt_save_MAGIC_CMD"
8604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8605 if test -n "$MAGIC_CMD"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8607 $as_echo "$MAGIC_CMD" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8623 # Use C for the default configuration in the libtool script
8627 ac_cpp='$CPP $CPPFLAGS'
8628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633 # Source file extension for C test sources.
8636 # Object file extension for compiled C test sources.
8640 # Code to be used in simple compile tests
8641 lt_simple_compile_test_code="int some_variable = 0;"
8643 # Code to be used in simple link tests
8644 lt_simple_link_test_code='int main(){return(0);}'
8652 # If no C compiler was specified, use CC.
8655 # If no C compiler flags were specified, use CFLAGS.
8656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8658 # Allow CC to be a program name with arguments.
8661 # Save the default compiler, since it gets overwritten when the other
8662 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8663 compiler_DEFAULT=$CC
8665 # save warnings/boilerplate of simple test code
8666 ac_outfile=conftest.$ac_objext
8667 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8668 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8669 _lt_compiler_boilerplate=`cat conftest.err`
8672 ac_outfile=conftest.$ac_objext
8673 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8674 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_linker_boilerplate=`cat conftest.err`
8680 ## There is no encapsulation within the following macros, do not change
8681 ## the running order or otherwise move them around unless you know exactly
8682 ## what you are doing...
8683 if test -n "$compiler"; then
8685 lt_prog_compiler_no_builtin_flag=
8687 if test "$GCC" = yes; then
8688 case $cc_basename in
8690 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8692 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8696 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8697 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 lt_cv_prog_compiler_rtti_exceptions=no
8701 ac_outfile=conftest.$ac_objext
8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703 lt_compiler_flag="-fno-rtti -fno-exceptions"
8704 # Insert the option either (1) after the last *FLAGS variable, or
8705 # (2) before a word containing "conftest.", or (3) at the end.
8706 # Note that $ac_compile itself does not contain backslashes and begins
8707 # with a dollar sign (not a hyphen), so the echo should work correctly.
8708 # The option is referenced via a variable to avoid confusing sed.
8709 lt_compile=`echo "$ac_compile" | $SED \
8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8712 -e 's:$: $lt_compiler_flag:'`
8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8714 (eval "$lt_compile" 2>conftest.err)
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 if (exit $ac_status) && test -s "$ac_outfile"; then
8719 # The compiler can only warn and ignore the option if not recognized
8720 # So say no if there are warnings other than the usual output.
8721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8724 lt_cv_prog_compiler_rtti_exceptions=yes
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8731 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8734 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8746 lt_prog_compiler_wl=
8747 lt_prog_compiler_pic=
8748 lt_prog_compiler_static=
8751 if test "$GCC" = yes; then
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_static='-static'
8757 # All AIX code is PIC.
8758 if test "$host_cpu" = ia64; then
8759 # AIX 5 now supports IA64 processor
8760 lt_prog_compiler_static='-Bstatic'
8767 # see comment about AmigaOS4 .so support
8768 lt_prog_compiler_pic='-fPIC'
8771 # FIXME: we need at least 68020 code to build shared libraries, but
8772 # adding the `-m68020' flag to GCC prevents building anything better,
8774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8779 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8780 # PIC is the default for these OSes.
8783 mingw* | cygwin* | pw32* | os2* | cegcc*)
8784 # This hack is so that the source file can tell whether it is being
8785 # built for inclusion in a dll (and should export symbols for example).
8786 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8787 # (--disable-auto-import) libraries
8788 lt_prog_compiler_pic='-DDLL_EXPORT'
8791 darwin* | rhapsody*)
8792 # PIC is the default on this platform
8793 # Common symbols not allowed in MH_DYLIB files
8794 lt_prog_compiler_pic='-fno-common'
8798 # PIC is the default for Haiku.
8799 # The "-static" flag exists, but is broken.
8800 lt_prog_compiler_static=
8804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8806 # sets the default TLS model and affects inlining.
8812 lt_prog_compiler_pic='-fPIC'
8818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8819 # Instead, we relocate shared libraries at runtime.
8823 # Just because we use GCC doesn't mean we suddenly get shared libraries
8824 # on systems that don't support them.
8825 lt_prog_compiler_can_build_shared=no
8830 # QNX uses GNU C++, but need to define -shared option too, otherwise
8832 lt_prog_compiler_pic='-fPIC -shared'
8836 if test -d /usr/nec; then
8837 lt_prog_compiler_pic=-Kconform_pic
8842 lt_prog_compiler_pic='-fPIC'
8846 case $cc_basename in
8847 nvcc*) # Cuda Compiler Driver 2.2
8848 lt_prog_compiler_wl='-Xlinker '
8849 if test -n "$lt_prog_compiler_pic"; then
8850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8855 # PORTME Check for flag to pass linker flags through the system compiler.
8858 lt_prog_compiler_wl='-Wl,'
8859 if test "$host_cpu" = ia64; then
8860 # AIX 5 now supports IA64 processor
8861 lt_prog_compiler_static='-Bstatic'
8863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8867 mingw* | cygwin* | pw32* | os2* | cegcc*)
8868 # This hack is so that the source file can tell whether it is being
8869 # built for inclusion in a dll (and should export symbols for example).
8870 lt_prog_compiler_pic='-DDLL_EXPORT'
8873 hpux9* | hpux10* | hpux11*)
8874 lt_prog_compiler_wl='-Wl,'
8875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8882 lt_prog_compiler_pic='+Z'
8885 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886 lt_prog_compiler_static='${wl}-a ${wl}archive'
8889 irix5* | irix6* | nonstopux*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC (with -KPIC) is the default.
8892 lt_prog_compiler_static='-non_shared'
8895 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8896 case $cc_basename in
8897 # old Intel for x86_64 which still supported -KPIC.
8899 lt_prog_compiler_wl='-Wl,'
8900 lt_prog_compiler_pic='-KPIC'
8901 lt_prog_compiler_static='-static'
8903 # icc used to be incompatible with GCC.
8904 # ICC 10 doesn't accept -KPIC any more.
8906 lt_prog_compiler_wl='-Wl,'
8907 lt_prog_compiler_pic='-fPIC'
8908 lt_prog_compiler_static='-static'
8910 # Lahey Fortran 8.1.
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='--shared'
8914 lt_prog_compiler_static='--static'
8917 # NAG Fortran compiler
8918 lt_prog_compiler_wl='-Wl,-Wl,,'
8919 lt_prog_compiler_pic='-PIC'
8920 lt_prog_compiler_static='-Bstatic'
8922 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8923 # Portland Group compilers (*not* the Pentium gcc compiler,
8924 # which looks to be a dead project)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-fpic'
8927 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_wl='-Wl,'
8931 # All Alpha code is PIC.
8932 lt_prog_compiler_static='-non_shared'
8934 xl* | bgxl* | bgf* | mpixl*)
8935 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_pic='-qpic'
8938 lt_prog_compiler_static='-qstaticlink'
8941 case `$CC -V 2>&1 | sed 5q` in
8942 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8943 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8946 lt_prog_compiler_wl=''
8948 *Sun\ F* | *Sun*Fortran*)
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_wl='-Qoption ld '
8955 lt_prog_compiler_pic='-KPIC'
8956 lt_prog_compiler_static='-Bstatic'
8957 lt_prog_compiler_wl='-Wl,'
8959 *Intel*\ [CF]*Compiler*)
8960 lt_prog_compiler_wl='-Wl,'
8961 lt_prog_compiler_pic='-fPIC'
8962 lt_prog_compiler_static='-static'
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-fpic'
8967 lt_prog_compiler_static='-Bstatic'
8975 lt_prog_compiler_pic='-KPIC'
8976 lt_prog_compiler_static='-Bstatic'
8980 # QNX uses GNU C++, but need to define -shared option too, otherwise
8982 lt_prog_compiler_pic='-fPIC -shared'
8985 osf3* | osf4* | osf5*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # All OSF/1 code is PIC.
8988 lt_prog_compiler_static='-non_shared'
8992 lt_prog_compiler_static='-non_shared'
8996 lt_prog_compiler_pic='-KPIC'
8997 lt_prog_compiler_static='-Bstatic'
8998 case $cc_basename in
8999 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9000 lt_prog_compiler_wl='-Qoption ld ';;
9002 lt_prog_compiler_wl='-Wl,';;
9007 lt_prog_compiler_wl='-Qoption ld '
9008 lt_prog_compiler_pic='-PIC'
9009 lt_prog_compiler_static='-Bstatic'
9012 sysv4 | sysv4.2uw2* | sysv4.3*)
9013 lt_prog_compiler_wl='-Wl,'
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9019 if test -d /usr/nec ;then
9020 lt_prog_compiler_pic='-Kconform_pic'
9021 lt_prog_compiler_static='-Bstatic'
9025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9026 lt_prog_compiler_wl='-Wl,'
9027 lt_prog_compiler_pic='-KPIC'
9028 lt_prog_compiler_static='-Bstatic'
9032 lt_prog_compiler_wl='-Wl,'
9033 lt_prog_compiler_can_build_shared=no
9037 lt_prog_compiler_pic='-pic'
9038 lt_prog_compiler_static='-Bstatic'
9042 lt_prog_compiler_can_build_shared=no
9048 # For platforms which do not support PIC, -DPIC is meaningless:
9050 lt_prog_compiler_pic=
9053 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9058 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9059 if ${lt_cv_prog_compiler_pic+:} false; then :
9060 $as_echo_n "(cached) " >&6
9062 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9065 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9069 # Check to make sure the PIC flag actually works.
9071 if test -n "$lt_prog_compiler_pic"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9074 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9075 $as_echo_n "(cached) " >&6
9077 lt_cv_prog_compiler_pic_works=no
9078 ac_outfile=conftest.$ac_objext
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9081 # Insert the option either (1) after the last *FLAGS variable, or
9082 # (2) before a word containing "conftest.", or (3) at the end.
9083 # Note that $ac_compile itself does not contain backslashes and begins
9084 # with a dollar sign (not a hyphen), so the echo should work correctly.
9085 # The option is referenced via a variable to avoid confusing sed.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>conftest.err)
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s "$ac_outfile"; then
9096 # The compiler can only warn and ignore the option if not recognized
9097 # So say no if there are warnings other than the usual output.
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101 lt_cv_prog_compiler_pic_works=yes
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9111 case $lt_prog_compiler_pic in
9113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9116 lt_prog_compiler_pic=
9117 lt_prog_compiler_can_build_shared=no
9133 # Check to make sure the static flag actually works.
9135 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9138 if ${lt_cv_prog_compiler_static_works+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 lt_cv_prog_compiler_static_works=no
9142 save_LDFLAGS="$LDFLAGS"
9143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9146 # The linker can only warn and ignore the option if not recognized
9147 # So say no if there are warnings
9148 if test -s conftest.err; then
9149 # Append any errors to the config.log.
9150 cat conftest.err 1>&5
9151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153 if diff conftest.exp conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_static_works=yes
9157 lt_cv_prog_compiler_static_works=yes
9161 LDFLAGS="$save_LDFLAGS"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9165 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9167 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9170 lt_prog_compiler_static=
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9181 if ${lt_cv_prog_compiler_c_o+:} false; then :
9182 $as_echo_n "(cached) " >&6
9184 lt_cv_prog_compiler_c_o=no
9185 $RM -r conftest 2>/dev/null
9189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9191 lt_compiler_flag="-o out/conftest2.$ac_objext"
9192 # Insert the option either (1) after the last *FLAGS variable, or
9193 # (2) before a word containing "conftest.", or (3) at the end.
9194 # Note that $ac_compile itself does not contain backslashes and begins
9195 # with a dollar sign (not a hyphen), so the echo should work correctly.
9196 lt_compile=`echo "$ac_compile" | $SED \
9197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9199 -e 's:$: $lt_compiler_flag:'`
9200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9201 (eval "$lt_compile" 2>out/conftest.err)
9203 cat out/conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9207 # The compiler can only warn and ignore the option if not recognized
9208 # So say no if there are warnings
9209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9212 lt_cv_prog_compiler_c_o=yes
9217 # SGI C++ compiler will create directory out/ii_files/ for
9218 # template instantiation
9219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9220 $RM out/* && rmdir out
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9236 if ${lt_cv_prog_compiler_c_o+:} false; then :
9237 $as_echo_n "(cached) " >&6
9239 lt_cv_prog_compiler_c_o=no
9240 $RM -r conftest 2>/dev/null
9244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246 lt_compiler_flag="-o out/conftest2.$ac_objext"
9247 # Insert the option either (1) after the last *FLAGS variable, or
9248 # (2) before a word containing "conftest.", or (3) at the end.
9249 # Note that $ac_compile itself does not contain backslashes and begins
9250 # with a dollar sign (not a hyphen), so the echo should work correctly.
9251 lt_compile=`echo "$ac_compile" | $SED \
9252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254 -e 's:$: $lt_compiler_flag:'`
9255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9256 (eval "$lt_compile" 2>out/conftest.err)
9258 cat out/conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9262 # The compiler can only warn and ignore the option if not recognized
9263 # So say no if there are warnings
9264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9267 lt_cv_prog_compiler_c_o=yes
9272 # SGI C++ compiler will create directory out/ii_files/ for
9273 # template instantiation
9274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9275 $RM out/* && rmdir out
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9282 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287 hard_links="nottested"
9288 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9289 # do not overwrite the value of need_locks provided by the user
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9291 $as_echo_n "checking if we can lock with hard links... " >&6; }
9294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9296 ln conftest.a conftest.b 2>&5 || hard_links=no
9297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9299 $as_echo "$hard_links" >&6; }
9300 if test "$hard_links" = no; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9318 allow_undefined_flag=
9319 always_export_symbols=no
9321 archive_expsym_cmds=
9322 compiler_needs_object=no
9323 enable_shared_with_static_runtimes=no
9324 export_dynamic_flag_spec=
9325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9326 hardcode_automatic=no
9328 hardcode_direct_absolute=no
9329 hardcode_libdir_flag_spec=
9330 hardcode_libdir_separator=
9332 hardcode_shlibpath_var=unsupported
9334 link_all_deplibs=unknown
9337 old_archive_from_new_cmds=
9338 old_archive_from_expsyms_cmds=
9339 thread_safe_flag_spec=
9340 whole_archive_flag_spec=
9341 # include_expsyms should be a list of space-separated symbols to be *always*
9342 # included in the symbol list
9344 # exclude_expsyms can be an extended regexp of symbols to exclude
9345 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9347 # as well as any symbol that contains `d'.
9348 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9350 # platforms (ab)use it in PIC code, but their linkers get confused if
9351 # the symbol is explicitly referenced. Since portable code cannot
9352 # rely on this symbol name, it's probably fine to never include it in
9353 # preloaded symbol tables.
9354 # Exclude shared library initialization/finalization symbols.
9355 extract_expsyms_cmds=
9358 cygwin* | mingw* | pw32* | cegcc*)
9359 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9360 # When not using gcc, we currently assume that we are using
9361 # Microsoft Visual C++.
9362 if test "$GCC" != yes; then
9367 # we just hope/assume this is gcc and not c89 (= MSVC++)
9377 # On some targets, GNU ld is compatible enough with the native linker
9378 # that we're better off using the native interface for both.
9379 lt_use_gnu_ld_interface=no
9380 if test "$with_gnu_ld" = yes; then
9383 # The AIX port of GNU ld has always aspired to compatibility
9384 # with the native linker. However, as the warning in the GNU ld
9385 # block says, versions before 2.19.5* couldn't really create working
9386 # shared libraries, regardless of the interface used.
9387 case `$LD -v 2>&1` in
9388 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9389 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9390 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9392 lt_use_gnu_ld_interface=yes
9397 lt_use_gnu_ld_interface=yes
9402 if test "$lt_use_gnu_ld_interface" = yes; then
9403 # If archive_cmds runs LD, not CC, wlarc should be empty
9406 # Set some defaults for GNU ld with shared library support. These
9407 # are reset later if shared libraries are not supported. Putting them
9408 # here allows them to be overridden if necessary.
9409 runpath_var=LD_RUN_PATH
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 export_dynamic_flag_spec='${wl}--export-dynamic'
9412 # ancient GNU ld didn't support --whole-archive et. al.
9413 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9414 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9416 whole_archive_flag_spec=
9418 supports_anon_versioning=no
9419 case `$LD -v 2>&1` in
9420 *GNU\ gold*) supports_anon_versioning=yes ;;
9421 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9422 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9423 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9424 *\ 2.11.*) ;; # other 2.11 versions
9425 *) supports_anon_versioning=yes ;;
9428 # See if GNU ld supports shared libraries.
9431 # On AIX/PPC, the GNU linker is very broken
9432 if test "$host_cpu" != ia64; then
9436 *** Warning: the GNU linker, at least up to release 2.19, is reported
9437 *** to be unable to reliably create shared libraries on AIX.
9438 *** Therefore, libtool is disabling shared libraries support. If you
9439 *** really care for shared libraries, you may want to install binutils
9440 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9441 *** You will then need to restart the configuration process.
9450 # see comment about AmigaOS4 .so support
9451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 archive_expsym_cmds=''
9455 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)'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_minus_L=yes
9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 allow_undefined_flag=unsupported
9465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9466 # support --undefined. This deserves some investigation. FIXME
9467 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 cygwin* | mingw* | pw32* | cegcc*)
9474 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9475 # as there is no search path for DLLs.
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 export_dynamic_flag_spec='${wl}--export-all-symbols'
9478 allow_undefined_flag=unsupported
9479 always_export_symbols=no
9480 enable_shared_with_static_runtimes=yes
9481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9482 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9486 # If the export-symbols file already is a .def file (1st line
9487 # is EXPORTS), use it as is; otherwise, prepend...
9488 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9489 cp $export_symbols $output_objdir/$soname.def;
9491 echo EXPORTS > $output_objdir/$soname.def;
9492 cat $export_symbols >> $output_objdir/$soname.def;
9494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 link_all_deplibs=yes
9507 hardcode_shlibpath_var=no
9508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509 export_dynamic_flag_spec='${wl}-E'
9510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9511 # Instead, shared libraries are loaded at an image base (0x10000000 by
9512 # default) and relocated if they conflict, which is a slow very memory
9513 # consuming and fragmenting process. To avoid this, we pick a random,
9514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9517 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'
9520 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9522 if test "$host_os" = linux-dietlibc; then
9523 case $cc_basename in
9524 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9527 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9528 && test "$tmp_diet" = no
9530 tmp_addflag=' $pic_flag'
9531 tmp_sharedflag='-shared'
9532 case $cc_basename,$host_cpu in
9533 pgcc*) # Portland Group C compiler
9534 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9535 tmp_addflag=' $pic_flag'
9537 pgf77* | pgf90* | pgf95* | pgfortran*)
9538 # Portland Group f77 and f90 compilers
9539 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9540 tmp_addflag=' $pic_flag -Mnomain' ;;
9541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9542 tmp_addflag=' -i_dynamic' ;;
9543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9544 tmp_addflag=' -i_dynamic -nofor_main' ;;
9545 ifc* | ifort*) # Intel Fortran compiler
9546 tmp_addflag=' -nofor_main' ;;
9547 lf95*) # Lahey Fortran 8.1
9548 whole_archive_flag_spec=
9549 tmp_sharedflag='--shared' ;;
9550 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9551 tmp_sharedflag='-qmkshrobj'
9553 nvcc*) # Cuda Compiler Driver 2.2
9554 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9555 compiler_needs_object=yes
9558 case `$CC -V 2>&1 | sed 5q` in
9559 *Sun\ C*) # Sun C 5.9
9560 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9561 compiler_needs_object=yes
9562 tmp_sharedflag='-G' ;;
9563 *Sun\ F*) # Sun Fortran 8.3
9564 tmp_sharedflag='-G' ;;
9566 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 if test "x$supports_anon_versioning" = xyes; then
9569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571 echo "local: *; };" >> $output_objdir/$libname.ver~
9572 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9575 case $cc_basename in
9576 xlf* | bgf* | bgxlf* | mpixlf*)
9577 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9578 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9581 if test "x$supports_anon_versioning" = xyes; then
9582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9584 echo "local: *; };" >> $output_objdir/$libname.ver~
9585 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9595 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9596 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9599 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9610 *** create shared libraries on Solaris systems. Therefore, libtool
9611 *** is disabling shared libraries support. We urge you to upgrade GNU
9612 *** binutils to release 2.9.1 or newer. Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9617 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9619 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9625 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9626 case `$LD -v 2>&1` in
9627 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9631 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9632 *** reliably create shared libraries on SCO systems. Therefore, libtool
9633 *** is disabling shared libraries support. We urge you to upgrade GNU
9634 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9635 *** your PATH or compiler configuration so that the native linker is
9636 *** used, and then restart.
9641 # For security reasons, it is highly recommended that you always
9642 # use absolute paths for naming shared libraries, and exclude the
9643 # DT_RUNPATH tag from executables and libraries. But doing so
9644 # requires that you compile everything twice, which is a pain.
9645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9657 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_shlibpath_var=no
9664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9673 if test "$ld_shlibs" = no; then
9675 hardcode_libdir_flag_spec=
9676 export_dynamic_flag_spec=
9677 whole_archive_flag_spec=
9680 # PORTME fill in a description of your system's linker (not GNU ld)
9683 allow_undefined_flag=unsupported
9684 always_export_symbols=yes
9685 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'
9686 # Note: this linker hardcodes the directories in LIBPATH if there
9687 # are no directories specified by -L.
9688 hardcode_minus_L=yes
9689 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9690 # Neither direct hardcoding nor static linking is supported with a
9692 hardcode_direct=unsupported
9697 if test "$host_cpu" = ia64; then
9698 # On IA64, the linker does run time linking by default, so we don't
9699 # have to do anything special.
9700 aix_use_runtimelinking=no
9701 exp_sym_flag='-Bexport'
9704 # If we're using GNU nm, then we don't want the "-C" option.
9705 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9706 # Also, AIX nm treats weak defined symbols like other global
9707 # defined symbols, whereas GNU nm marks them as "W".
9708 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9709 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9711 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'
9713 aix_use_runtimelinking=no
9715 # Test if we are trying to use run time linking or normal
9716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9717 # need to do runtime linking.
9718 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9719 for ld_flag in $LDFLAGS; do
9720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9721 aix_use_runtimelinking=yes
9728 exp_sym_flag='-bexport'
9729 no_entry_flag='-bnoentry'
9732 # When large executables or shared objects are built, AIX ld can
9733 # have problems creating the table of contents. If linking a library
9734 # or program results in "error TOC overflow" add -mminimal-toc to
9735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9740 hardcode_direct_absolute=yes
9741 hardcode_libdir_separator=':'
9742 link_all_deplibs=yes
9743 file_list_spec='${wl}-f,'
9745 if test "$GCC" = yes; then
9746 case $host_os in aix4.[012]|aix4.[012].*)
9747 # We only want to do this on AIX 4.2 and lower, the check
9748 # below for broken collect2 doesn't work under 4.3+
9749 collect2name=`${CC} -print-prog-name=collect2`
9750 if test -f "$collect2name" &&
9751 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9753 # We have reworked collect2
9756 # We have old collect2
9757 hardcode_direct=unsupported
9758 # It fails to find uninstalled libraries when the uninstalled
9759 # path is not listed in the libpath. Setting hardcode_minus_L
9760 # to unsupported forces relinking
9761 hardcode_minus_L=yes
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_libdir_separator=
9767 shared_flag='-shared'
9768 if test "$aix_use_runtimelinking" = yes; then
9769 shared_flag="$shared_flag "'${wl}-G'
9773 if test "$host_cpu" = ia64; then
9774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9775 # chokes on -Wl,-G. The following line is correct:
9778 if test "$aix_use_runtimelinking" = yes; then
9779 shared_flag='${wl}-G'
9781 shared_flag='${wl}-bM:SRE'
9786 export_dynamic_flag_spec='${wl}-bexpall'
9787 # It seems that -bexpall does not export symbols beginning with
9788 # underscore (_), so it is better to generate a list of symbols to export.
9789 always_export_symbols=yes
9790 if test "$aix_use_runtimelinking" = yes; then
9791 # Warning - without using the other runtime loading flags (-brtl),
9792 # -berok will link without error, but may produce a broken library.
9793 allow_undefined_flag='-berok'
9794 # Determine the default libpath from the value encoded in an
9796 if test "${lt_cv_aix_libpath+set}" = set; then
9797 aix_libpath=$lt_cv_aix_libpath
9799 if ${lt_cv_aix_libpath_+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9813 if ac_fn_c_try_link "$LINENO"; then :
9815 lt_aix_libpath_sed='
9816 /Import File Strings/,/^$/ {
9818 s/^0 *\([^ ]*\) *$/\1/
9822 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 # Check for a 64-bit object if we didn't find anything.
9824 if test -z "$lt_cv_aix_libpath_"; then
9825 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 if test -z "$lt_cv_aix_libpath_"; then
9831 lt_cv_aix_libpath_="/usr/lib:/lib"
9836 aix_libpath=$lt_cv_aix_libpath_
9839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9840 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9842 if test "$host_cpu" = ia64; then
9843 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9844 allow_undefined_flag="-z nodefs"
9845 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"
9847 # Determine the default libpath from the value encoded in an
9849 if test "${lt_cv_aix_libpath+set}" = set; then
9850 aix_libpath=$lt_cv_aix_libpath
9852 if ${lt_cv_aix_libpath_+:} false; then :
9853 $as_echo_n "(cached) " >&6
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9866 if ac_fn_c_try_link "$LINENO"; then :
9868 lt_aix_libpath_sed='
9869 /Import File Strings/,/^$/ {
9871 s/^0 *\([^ ]*\) *$/\1/
9875 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9876 # Check for a 64-bit object if we didn't find anything.
9877 if test -z "$lt_cv_aix_libpath_"; then
9878 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9881 rm -f core conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 if test -z "$lt_cv_aix_libpath_"; then
9884 lt_cv_aix_libpath_="/usr/lib:/lib"
9889 aix_libpath=$lt_cv_aix_libpath_
9892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9893 # Warning - without using the other run time loading flags,
9894 # -berok will link without error, but may produce a broken library.
9895 no_undefined_flag=' ${wl}-bernotok'
9896 allow_undefined_flag=' ${wl}-berok'
9897 if test "$with_gnu_ld" = yes; then
9898 # We only use this code for GNU lds that support --whole-archive.
9899 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9901 # Exported symbols can be pulled into shared objects from archives
9902 whole_archive_flag_spec='$convenience'
9904 archive_cmds_need_lc=yes
9905 # This is similar to how AIX traditionally builds its shared libraries.
9906 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'
9914 # see comment about AmigaOS4 .so support
9915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9916 archive_expsym_cmds=''
9919 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)'
9920 hardcode_libdir_flag_spec='-L$libdir'
9921 hardcode_minus_L=yes
9927 export_dynamic_flag_spec=-rdynamic
9930 cygwin* | mingw* | pw32* | cegcc*)
9931 # When not using gcc, we currently assume that we are using
9932 # Microsoft Visual C++.
9933 # hardcode_libdir_flag_spec is actually meaningless, as there is
9934 # no search path for DLLs.
9935 case $cc_basename in
9938 hardcode_libdir_flag_spec=' '
9939 allow_undefined_flag=unsupported
9940 always_export_symbols=yes
9942 # Tell ltmain to make .lib files, not .a files.
9944 # Tell ltmain to make .dll files, not .so files.
9946 # FIXME: Setting linknames here is a bad hack.
9947 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9948 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9949 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9951 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9955 # The linker will not automatically build a static lib if we build a DLL.
9956 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9957 enable_shared_with_static_runtimes=yes
9958 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9961 old_postinstall_cmds='chmod 644 $oldlib'
9962 postlink_cmds='lt_outputfile="@OUTPUT@"~
9963 lt_tool_outputfile="@TOOL_OUTPUT@"~
9964 case $lt_outputfile in
9967 lt_outputfile="$lt_outputfile.exe"
9968 lt_tool_outputfile="$lt_tool_outputfile.exe"
9971 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9973 $RM "$lt_outputfile.manifest";
9977 # Assume MSVC wrapper
9978 hardcode_libdir_flag_spec=' '
9979 allow_undefined_flag=unsupported
9980 # Tell ltmain to make .lib files, not .a files.
9982 # Tell ltmain to make .dll files, not .so files.
9984 # FIXME: Setting linknames here is a bad hack.
9985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9986 # The linker will automatically build a .lib file if we build a DLL.
9987 old_archive_from_new_cmds='true'
9988 # FIXME: Should let the user specify the lib program.
9989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9990 enable_shared_with_static_runtimes=yes
9995 darwin* | rhapsody*)
9998 archive_cmds_need_lc=no
10000 hardcode_automatic=yes
10001 hardcode_shlibpath_var=unsupported
10002 if test "$lt_cv_ld_force_load" = "yes"; then
10003 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10006 whole_archive_flag_spec=''
10008 link_all_deplibs=yes
10009 allow_undefined_flag="$_lt_dar_allow_undefined"
10010 case $cc_basename in
10011 ifort*) _lt_dar_can_shared=yes ;;
10012 *) _lt_dar_can_shared=$GCC ;;
10014 if test "$_lt_dar_can_shared" = "yes"; then
10015 output_verbose_link_cmd=func_echo_all
10016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10018 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}"
10019 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}"
10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec='-L$libdir'
10030 hardcode_shlibpath_var=no
10033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10034 # support. Future versions do this automatically, but an explicit c++rt0.o
10035 # does not break anything, and helps significantly (at the cost of a little
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10039 hardcode_libdir_flag_spec='-R$libdir'
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=yes
10048 hardcode_minus_L=yes
10049 hardcode_shlibpath_var=no
10052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10053 freebsd* | dragonfly*)
10054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10061 if test "$GCC" = yes; then
10062 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10064 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'
10066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067 hardcode_libdir_separator=:
10068 hardcode_direct=yes
10070 # hardcode_minus_L: Not really in the search PATH,
10071 # but as the default location of the library.
10072 hardcode_minus_L=yes
10073 export_dynamic_flag_spec='${wl}-E'
10077 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10078 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10082 if test "$with_gnu_ld" = no; then
10083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10084 hardcode_libdir_separator=:
10085 hardcode_direct=yes
10086 hardcode_direct_absolute=yes
10087 export_dynamic_flag_spec='${wl}-E'
10088 # hardcode_minus_L: Not really in the search PATH,
10089 # but as the default location of the library.
10090 hardcode_minus_L=yes
10095 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10098 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10117 # Older versions of the 11.00 compiler do not understand -b yet
10118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10120 $as_echo_n "checking if $CC understands -b... " >&6; }
10121 if ${lt_cv_prog_compiler__b+:} false; then :
10122 $as_echo_n "(cached) " >&6
10124 lt_cv_prog_compiler__b=no
10125 save_LDFLAGS="$LDFLAGS"
10126 LDFLAGS="$LDFLAGS -b"
10127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10129 # The linker can only warn and ignore the option if not recognized
10130 # So say no if there are warnings
10131 if test -s conftest.err; then
10132 # Append any errors to the config.log.
10133 cat conftest.err 1>&5
10134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10136 if diff conftest.exp conftest.er2 >/dev/null; then
10137 lt_cv_prog_compiler__b=yes
10140 lt_cv_prog_compiler__b=yes
10144 LDFLAGS="$save_LDFLAGS"
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10148 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10150 if test x"$lt_cv_prog_compiler__b" = xyes; then
10151 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10159 if test "$with_gnu_ld" = no; then
10160 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10161 hardcode_libdir_separator=:
10166 hardcode_shlibpath_var=no
10169 hardcode_direct=yes
10170 hardcode_direct_absolute=yes
10171 export_dynamic_flag_spec='${wl}-E'
10173 # hardcode_minus_L: Not really in the search PATH,
10174 # but as the default location of the library.
10175 hardcode_minus_L=yes
10181 irix5* | irix6* | nonstopux*)
10182 if test "$GCC" = yes; then
10183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10184 # Try to use the -exported_symbol ld option, if it does not
10185 # work, assume that -exports_file does not work either and
10186 # implicitly export all symbols.
10187 # This should be the same for all languages, so no per-tag cache variable.
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10189 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10190 if ${lt_cv_irix_exported_symbol+:} false; then :
10191 $as_echo_n "(cached) " >&6
10193 save_LDFLAGS="$LDFLAGS"
10194 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 int foo (void) { return 0; }
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 lt_cv_irix_exported_symbol=yes
10202 lt_cv_irix_exported_symbol=no
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LDFLAGS="$save_LDFLAGS"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10209 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10210 if test "$lt_cv_irix_exported_symbol" = yes; then
10211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10217 archive_cmds_need_lc='no'
10218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 hardcode_libdir_separator=:
10221 link_all_deplibs=yes
10225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10228 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10230 hardcode_libdir_flag_spec='-R$libdir'
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_direct=yes
10238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10239 hardcode_libdir_separator=:
10240 hardcode_shlibpath_var=no
10247 if test -f /usr/libexec/ld.so; then
10248 hardcode_direct=yes
10249 hardcode_shlibpath_var=no
10250 hardcode_direct_absolute=yes
10251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10255 export_dynamic_flag_spec='${wl}-E'
10258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_libdir_flag_spec='-R$libdir'
10263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_minus_L=yes
10276 allow_undefined_flag=unsupported
10277 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'
10278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10282 if test "$GCC" = yes; then
10283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10284 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10286 allow_undefined_flag=' -expect_unresolved \*'
10287 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10289 archive_cmds_need_lc='no'
10290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10291 hardcode_libdir_separator=:
10294 osf4* | osf5*) # as osf3* with the addition of -msym flag
10295 if test "$GCC" = yes; then
10296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10297 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10300 allow_undefined_flag=' -expect_unresolved \*'
10301 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10302 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10303 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10305 # Both c and cxx compiler support -rpath directly
10306 hardcode_libdir_flag_spec='-rpath $libdir'
10308 archive_cmds_need_lc='no'
10309 hardcode_libdir_separator=:
10313 no_undefined_flag=' -z defs'
10314 if test "$GCC" = yes; then
10316 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10318 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10320 case `$CC -V 2>&1` in
10323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10329 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10335 hardcode_libdir_flag_spec='-R$libdir'
10336 hardcode_shlibpath_var=no
10338 solaris2.[0-5] | solaris2.[0-5].*) ;;
10340 # The compiler driver will combine and reorder linker options,
10341 # but understands `-z linker_flag'. GCC discards it without `$wl',
10342 # but is careful enough not to reorder.
10343 # Supported since Solaris 2.6 (maybe 2.5.1?)
10344 if test "$GCC" = yes; then
10345 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10351 link_all_deplibs=yes
10355 if test "x$host_vendor" = xsequent; then
10356 # Use $CC to link under sequent, because it throws in some extra .o
10357 # files that make .init and .fini sections work.
10358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_libdir_flag_spec='-L$libdir'
10363 hardcode_direct=yes
10364 hardcode_minus_L=yes
10365 hardcode_shlibpath_var=no
10369 case $host_vendor in
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_direct=yes # is this really true???
10375 ## LD is ld it makes a PLAMLIB
10376 ## CC just makes a GrossModule.
10377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10378 reload_cmds='$CC -r -o $output$reload_objs'
10382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10386 runpath_var='LD_RUN_PATH'
10387 hardcode_shlibpath_var=no
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_shlibpath_var=no
10393 export_dynamic_flag_spec='-Bexport'
10397 if test -d /usr/nec; then
10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_shlibpath_var=no
10400 runpath_var=LD_RUN_PATH
10401 hardcode_runpath_var=yes
10406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10407 no_undefined_flag='${wl}-z,text'
10408 archive_cmds_need_lc=no
10409 hardcode_shlibpath_var=no
10410 runpath_var='LD_RUN_PATH'
10412 if test "$GCC" = yes; then
10413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 sysv5* | sco3.2v5* | sco5v6*)
10422 # Note: We can NOT use -z defs as we might desire, because we do not
10423 # link with -lc, and that would cause any symbols used from libc to
10424 # always be unresolved, which means just about no library would
10425 # ever link correctly. If we're not using GNU ld we use -z text
10426 # though, which does catch some bad symbols but isn't as heavy-handed
10428 no_undefined_flag='${wl}-z,text'
10429 allow_undefined_flag='${wl}-z,nodefs'
10430 archive_cmds_need_lc=no
10431 hardcode_shlibpath_var=no
10432 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10433 hardcode_libdir_separator=':'
10434 link_all_deplibs=yes
10435 export_dynamic_flag_spec='${wl}-Bexport'
10436 runpath_var='LD_RUN_PATH'
10438 if test "$GCC" = yes; then
10439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10449 hardcode_libdir_flag_spec='-L$libdir'
10450 hardcode_shlibpath_var=no
10458 if test x$host_vendor = xsni; then
10460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10461 export_dynamic_flag_spec='${wl}-Blargedynsym'
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10468 $as_echo "$ld_shlibs" >&6; }
10469 test "$ld_shlibs" = no && can_build_shared=no
10471 with_gnu_ld=$with_gnu_ld
10488 # Do we need to explicitly link libc?
10490 case "x$archive_cmds_need_lc" in
10492 # Assume -lc should be added
10493 archive_cmds_need_lc=yes
10495 if test "$enable_shared" = yes && test "$GCC" = yes; then
10496 case $archive_cmds in
10498 # FIXME: we may have to deal with multi-command sequences.
10501 # Test whether the compiler implicitly links with -lc since on some
10502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10503 # to ld, don't add -lc before -lgcc.
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10506 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10507 $as_echo_n "(cached) " >&6
10510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10513 (eval $ac_compile) 2>&5
10515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10516 test $ac_status = 0; } 2>conftest.err; then
10519 libobjs=conftest.$ac_objext
10521 wl=$lt_prog_compiler_wl
10522 pic_flag=$lt_prog_compiler_pic
10528 lt_save_allow_undefined_flag=$allow_undefined_flag
10529 allow_undefined_flag=
10530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534 test $ac_status = 0; }
10536 lt_cv_archive_cmds_need_lc=no
10538 lt_cv_archive_cmds_need_lc=yes
10540 allow_undefined_flag=$lt_save_allow_undefined_flag
10542 cat conftest.err 1>&5
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10549 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10708 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10710 if test "$GCC" = yes; then
10712 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10713 *) lt_awk_arg="/^libraries:/" ;;
10716 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10717 *) lt_sed_strip_eq="s,=/,/,g" ;;
10719 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10720 case $lt_search_path_spec in
10722 # if the path contains ";" then we assume it to be the separator
10723 # otherwise default to the standard path separator (i.e. ":") - it is
10724 # assumed that no part of a normal pathname contains ";" but that should
10725 # okay in the real world where ";" in dirpaths is itself problematic.
10726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10732 # Ok, now we have the path, separated by spaces, we can step through it
10733 # and add multilib dir if necessary.
10734 lt_tmp_lt_search_path_spec=
10735 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10736 for lt_sys_path in $lt_search_path_spec; do
10737 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10740 test -d "$lt_sys_path" && \
10741 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10744 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10745 BEGIN {RS=" "; FS="/|\n";} {
10748 for (lt_i = NF; lt_i > 0; lt_i--) {
10749 if ($lt_i != "" && $lt_i != ".") {
10750 if ($lt_i == "..") {
10753 if (lt_count == 0) {
10754 lt_foo="/" $lt_i lt_foo;
10761 if (lt_foo != "") { lt_freq[lt_foo]++; }
10762 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10764 # AWK program above erroneously prepends '/' to C:/dos/paths
10767 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10768 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10770 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10774 library_names_spec=
10775 libname_spec='lib$name'
10779 postuninstall_cmds=
10783 shlibpath_overrides_runpath=unknown
10785 dynamic_linker="$host_os ld.so"
10786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10787 need_lib_prefix=unknown
10788 hardcode_into_libs=no
10790 # when you set need_version to no, make sure it does not cause -set_version
10791 # flags to be left without arguments
10792 need_version=unknown
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10798 shlibpath_var=LIBPATH
10800 # AIX 3 has no versioning support, so we append a major version to the name.
10801 soname_spec='${libname}${release}${shared_ext}$major'
10805 version_type=linux # correct to gnu/linux during the next big refactor
10808 hardcode_into_libs=yes
10809 if test "$host_cpu" = ia64; then
10810 # AIX 5 supports IA64
10811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10812 shlibpath_var=LD_LIBRARY_PATH
10814 # With GCC up to 2.95.x, collect2 would create an import file
10815 # for dependence libraries. The import file would start with
10816 # the line `#! .'. This would cause the generated library to
10817 # depend on `.', always an invalid library. This was fixed in
10818 # development snapshots of GCC prior to 3.0.
10820 aix4 | aix4.[01] | aix4.[01].*)
10821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10823 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10826 can_build_shared=no
10830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10831 # soname into executable. Probably we can add versioning support to
10832 # collect2, so additional links can be useful in future.
10833 if test "$aix_use_runtimelinking" = yes; then
10834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10835 # instead of lib<name>.a to let people know that these are not
10836 # typical AIX shared libraries.
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 # We preserve .a as extension for shared libraries through AIX4.2
10840 # and later when we are not doing run time linking.
10841 library_names_spec='${libname}${release}.a $libname.a'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10844 shlibpath_var=LIBPATH
10851 # Since July 2007 AmigaOS4 officially supports .so libraries.
10852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 library_names_spec='$libname.ixlibrary $libname.a'
10857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10858 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10864 library_names_spec='${libname}${shared_ext}'
10865 dynamic_linker="$host_os ld.so"
10866 shlibpath_var=LIBRARY_PATH
10870 version_type=linux # correct to gnu/linux during the next big refactor
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10878 # the default ld.so.conf also contains /usr/contrib/lib and
10879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10880 # libtool to hard-code these into programs
10883 cygwin* | mingw* | pw32* | cegcc*)
10884 version_type=windows
10889 case $GCC,$cc_basename in
10892 library_names_spec='$libname.dll.a'
10893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10894 postinstall_cmds='base_file=`basename \${file}`~
10895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10896 dldir=$destdir/`dirname \$dlpath`~
10897 test -d \$dldir || mkdir -p \$dldir~
10898 $install_prog $dir/$dlname \$dldir/$dlname~
10899 chmod a+x \$dldir/$dlname~
10900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10904 dlpath=$dir/\$dldll~
10906 shlibpath_overrides_runpath=yes
10910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10916 # MinGW DLLs use traditional 'lib' prefix
10917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10920 # pw32 DLLs use 'pw' prefix rather than 'lib'
10921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10924 dynamic_linker='Win32 ld.exe'
10929 libname_spec='$name'
10930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10931 library_names_spec='${libname}.dll.lib'
10935 sys_lib_search_path_spec=
10938 for lt_path in $LIB
10941 # Let DOS variable expansion print the short 8.3 style file name.
10942 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10943 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10946 # Convert to MSYS style.
10947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10950 # Convert to unix form, then to dos form, then back to unix form
10951 # but this time dos style (no spaces!) so that the unix form looks
10952 # like /cygdrive/c/PROGRA~1:/cygdr...
10953 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10954 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10955 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10958 sys_lib_search_path_spec="$LIB"
10959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10960 # It is most probably a Windows format PATH.
10961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10965 # FIXME: find the short name or the path components, as spaces are
10966 # common. (e.g. "Program Files" -> "PROGRA~1")
10970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10971 postinstall_cmds='base_file=`basename \${file}`~
10972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10973 dldir=$destdir/`dirname \$dlpath`~
10974 test -d \$dldir || mkdir -p \$dldir~
10975 $install_prog $dir/$dlname \$dldir/$dlname'
10976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10977 dlpath=$dir/\$dldll~
10979 shlibpath_overrides_runpath=yes
10980 dynamic_linker='Win32 link.exe'
10984 # Assume MSVC wrapper
10985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10986 dynamic_linker='Win32 ld.exe'
10989 # FIXME: first we should search . and the directory the executable is in
10993 darwin* | rhapsody*)
10994 dynamic_linker="$host_os dyld"
10995 version_type=darwin
10998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10999 soname_spec='${libname}${release}${major}$shared_ext'
11000 shlibpath_overrides_runpath=yes
11001 shlibpath_var=DYLD_LIBRARY_PATH
11002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11009 version_type=linux # correct to gnu/linux during the next big refactor
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11017 freebsd* | dragonfly*)
11018 # DragonFly does not have aout. When/if they implement a new
11019 # versioning mechanism, adjust this.
11020 if test -x /usr/bin/objformat; then
11021 objformat=`/usr/bin/objformat`
11024 freebsd[23].*) objformat=aout ;;
11025 *) objformat=elf ;;
11028 version_type=freebsd-$objformat
11029 case $version_type in
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11040 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11045 freebsd3.[01]* | freebsdelf3.[01]*)
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11051 shlibpath_overrides_runpath=no
11052 hardcode_into_libs=yes
11054 *) # from 4.6 on, and DragonFly
11055 shlibpath_overrides_runpath=yes
11056 hardcode_into_libs=yes
11062 version_type=linux # correct to gnu/linux during the next big refactor
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=no
11069 hardcode_into_libs=yes
11073 version_type=linux # correct to gnu/linux during the next big refactor
11076 dynamic_linker="$host_os runtime_loader"
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 shlibpath_var=LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11082 hardcode_into_libs=yes
11085 hpux9* | hpux10* | hpux11*)
11086 # Give a soname corresponding to the major version so that dld.sl refuses to
11087 # link against other versions.
11094 hardcode_into_libs=yes
11095 dynamic_linker="$host_os dld.so"
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 if test "X$HPUX_IA64_MODE" = X32; then
11101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11109 hardcode_into_libs=yes
11110 dynamic_linker="$host_os dld.sl"
11111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11120 dynamic_linker="$host_os dld.sl"
11121 shlibpath_var=SHLIB_PATH
11122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11127 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11128 postinstall_cmds='chmod 555 $lib'
11129 # or fails outright, so override atomically:
11130 install_override_mode=555
11134 version_type=linux # correct to gnu/linux during the next big refactor
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=no
11142 hardcode_into_libs=yes
11145 irix5* | irix6* | nonstopux*)
11147 nonstopux*) version_type=nonstopux ;;
11149 if test "$lt_cv_prog_gnu_ld" = yes; then
11150 version_type=linux # correct to gnu/linux during the next big refactor
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11160 irix5* | nonstopux*)
11161 libsuff= shlibsuff=
11164 case $LD in # libtool.m4 will add one of these switches to LD
11165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11166 libsuff= shlibsuff= libmagic=32-bit;;
11167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11168 libsuff=32 shlibsuff=N32 libmagic=N32;;
11169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11171 *) libsuff= shlibsuff= libmagic=never-match;;
11175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11176 shlibpath_overrides_runpath=no
11177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11179 hardcode_into_libs=yes
11182 # No shared lib support for Linux oldld, aout, or coff.
11183 linux*oldld* | linux*aout* | linux*coff*)
11187 # This must be glibc/ELF.
11188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=no
11198 # Some binutils ld are patched to set DT_RUNPATH
11199 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11200 $as_echo_n "(cached) " >&6
11202 lt_cv_shlibpath_overrides_runpath=no
11203 save_LDFLAGS=$LDFLAGS
11204 save_libdir=$libdir
11205 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11206 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11218 if ac_fn_c_try_link "$LINENO"; then :
11219 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11220 lt_cv_shlibpath_overrides_runpath=yes
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LDFLAGS=$save_LDFLAGS
11226 libdir=$save_libdir
11230 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11232 # This implies no fast_install, which is unacceptable.
11233 # Some rework will be needed to allow for fast_install
11234 # before this can be enabled.
11235 hardcode_into_libs=yes
11237 # Add ABI-specific directories to the system library path.
11238 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11240 # Append ld.so.conf contents to the search path
11241 if test -f /etc/ld.so.conf; then
11242 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11243 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11247 # We used to test for /lib/ld.so.1 and disable shared libraries on
11248 # powerpc, because MkLinux only supported shared libraries with the
11249 # GNU dynamic linker. Since this was broken with cross compilers,
11250 # most powerpc-linux boxes support dynamic linking these days and
11251 # people can always --disable-shared, the test was removed, and we
11252 # assume the GNU/Linux dynamic linker is in use.
11253 dynamic_linker='GNU/Linux ld.so'
11260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11263 dynamic_linker='NetBSD (a.out) ld.so'
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 dynamic_linker='NetBSD ld.elf_so'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 hardcode_into_libs=yes
11275 version_type=linux # correct to gnu/linux during the next big refactor
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=yes
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11290 dynamic_linker='ldqnx.so'
11295 sys_lib_dlsearch_path_spec="/usr/lib"
11297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11299 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11300 *) need_version=no ;;
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11307 openbsd2.[89] | openbsd2.[89].*)
11308 shlibpath_overrides_runpath=no
11311 shlibpath_overrides_runpath=yes
11315 shlibpath_overrides_runpath=yes
11320 libname_spec='$name'
11323 library_names_spec='$libname${shared_ext} $libname.a'
11324 dynamic_linker='OS/2 ld.exe'
11325 shlibpath_var=LIBPATH
11328 osf3* | osf4* | osf5*)
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11344 version_type=linux # correct to gnu/linux during the next big refactor
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 hardcode_into_libs=yes
11352 # ldd complains unless libraries are executable
11353 postinstall_cmds='chmod +x $lib'
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=yes
11362 if test "$with_gnu_ld" = yes; then
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 case $host_vendor in
11375 shlibpath_overrides_runpath=no
11377 runpath_var=LD_RUN_PATH
11385 shlibpath_overrides_runpath=no
11386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11392 if test -d /usr/nec ;then
11393 version_type=linux # correct to gnu/linux during the next big refactor
11394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11395 soname_spec='$libname${shared_ext}.$major'
11396 shlibpath_var=LD_LIBRARY_PATH
11400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11401 version_type=freebsd-elf
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 shlibpath_overrides_runpath=yes
11408 hardcode_into_libs=yes
11409 if test "$with_gnu_ld" = yes; then
11410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11415 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11419 sys_lib_dlsearch_path_spec='/usr/lib'
11423 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11424 version_type=linux # correct to gnu/linux during the next big refactor
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11430 hardcode_into_libs=yes
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11445 $as_echo "$dynamic_linker" >&6; }
11446 test "$dynamic_linker" = no && can_build_shared=no
11448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11449 if test "$GCC" = yes; then
11450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11453 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11454 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11456 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11457 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11552 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11554 if test -n "$hardcode_libdir_flag_spec" ||
11555 test -n "$runpath_var" ||
11556 test "X$hardcode_automatic" = "Xyes" ; then
11558 # We can hardcode non-existent directories.
11559 if test "$hardcode_direct" != no &&
11560 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11561 # have to relink, otherwise we might link with an installed library
11562 # when we should be linking with a yet-to-be-installed one
11563 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11564 test "$hardcode_minus_L" != no; then
11565 # Linking always hardcodes the temporary library directory.
11566 hardcode_action=relink
11568 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11569 hardcode_action=immediate
11572 # We cannot hardcode anything, or else we can only hardcode existing
11574 hardcode_action=unsupported
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11577 $as_echo "$hardcode_action" >&6; }
11579 if test "$hardcode_action" = relink ||
11580 test "$inherit_rpath" = yes; then
11581 # Fast installation is not supported
11582 enable_fast_install=no
11583 elif test "$shlibpath_overrides_runpath" = yes ||
11584 test "$enable_shared" = no; then
11585 # Fast installation is not necessary
11586 enable_fast_install=needless
11594 if test "x$enable_dlopen" != xyes; then
11595 enable_dlopen=unknown
11596 enable_dlopen_self=unknown
11597 enable_dlopen_self_static=unknown
11604 lt_cv_dlopen="load_add_on"
11606 lt_cv_dlopen_self=yes
11609 mingw* | pw32* | cegcc*)
11610 lt_cv_dlopen="LoadLibrary"
11615 lt_cv_dlopen="dlopen"
11620 # if libdl is installed we need to link against it
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11623 if ${ac_cv_lib_dl_dlopen+:} false; then :
11624 $as_echo_n "(cached) " >&6
11626 ac_check_lib_save_LIBS=$LIBS
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_dl_dlopen=yes
11649 ac_cv_lib_dl_dlopen=no
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661 lt_cv_dlopen="dyld"
11663 lt_cv_dlopen_self=yes
11670 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11671 if test "x$ac_cv_func_shl_load" = xyes; then :
11672 lt_cv_dlopen="shl_load"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11675 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11676 if ${ac_cv_lib_dld_shl_load+:} false; then :
11677 $as_echo_n "(cached) " >&6
11679 ac_check_lib_save_LIBS=$LIBS
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11694 return shl_load ();
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 ac_cv_lib_dld_shl_load=yes
11702 ac_cv_lib_dld_shl_load=no
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11710 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11711 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11713 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11714 if test "x$ac_cv_func_dlopen" = xyes; then :
11715 lt_cv_dlopen="dlopen"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11719 if ${ac_cv_lib_dl_dlopen+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 ac_check_lib_save_LIBS=$LIBS
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11742 if ac_fn_c_try_link "$LINENO"; then :
11743 ac_cv_lib_dl_dlopen=yes
11745 ac_cv_lib_dl_dlopen=no
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LIBS=$ac_check_lib_save_LIBS
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11757 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11758 if ${ac_cv_lib_svld_dlopen+:} false; then :
11759 $as_echo_n "(cached) " >&6
11761 ac_check_lib_save_LIBS=$LIBS
11762 LIBS="-lsvld $LIBS"
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11781 if ac_fn_c_try_link "$LINENO"; then :
11782 ac_cv_lib_svld_dlopen=yes
11784 ac_cv_lib_svld_dlopen=no
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext conftest.$ac_ext
11788 LIBS=$ac_check_lib_save_LIBS
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11791 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11792 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11796 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11797 if ${ac_cv_lib_dld_dld_link+:} false; then :
11798 $as_echo_n "(cached) " >&6
11800 ac_check_lib_save_LIBS=$LIBS
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11805 /* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
11815 return dld_link ();
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 ac_cv_lib_dld_dld_link=yes
11823 ac_cv_lib_dld_dld_link=no
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11827 LIBS=$ac_check_lib_save_LIBS
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11830 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11831 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11853 if test "x$lt_cv_dlopen" != xno; then
11859 case $lt_cv_dlopen in
11861 save_CPPFLAGS="$CPPFLAGS"
11862 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11864 save_LDFLAGS="$LDFLAGS"
11865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11868 LIBS="$lt_cv_dlopen_libs $LIBS"
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11871 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11872 if ${lt_cv_dlopen_self+:} false; then :
11873 $as_echo_n "(cached) " >&6
11875 if test "$cross_compiling" = yes; then :
11876 lt_cv_dlopen_self=cross
11878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11879 lt_status=$lt_dlunknown
11880 cat > conftest.$ac_ext <<_LT_EOF
11881 #line $LINENO "configure"
11882 #include "confdefs.h"
11891 # define LT_DLGLOBAL RTLD_GLOBAL
11894 # define LT_DLGLOBAL DL_GLOBAL
11896 # define LT_DLGLOBAL 0
11900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11901 find out it does not work in some platform. */
11902 #ifndef LT_DLLAZY_OR_NOW
11904 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11907 # define LT_DLLAZY_OR_NOW DL_LAZY
11910 # define LT_DLLAZY_OR_NOW RTLD_NOW
11913 # define LT_DLLAZY_OR_NOW DL_NOW
11915 # define LT_DLLAZY_OR_NOW 0
11922 /* When -fvisbility=hidden is used, assume the code has been annotated
11923 correspondingly for the symbols needed. */
11924 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11925 int fnord () __attribute__((visibility("default")));
11928 int fnord () { return 42; }
11931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11932 int status = $lt_dlunknown;
11936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11939 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11940 else puts (dlerror ());
11942 /* dlclose (self); */
11950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11951 (eval $ac_link) 2>&5
11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11955 (./conftest; exit; ) >&5 2>/dev/null
11957 case x$lt_status in
11958 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11959 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11960 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11963 # compilation failed
11964 lt_cv_dlopen_self=no
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11972 $as_echo "$lt_cv_dlopen_self" >&6; }
11974 if test "x$lt_cv_dlopen_self" = xyes; then
11975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11977 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11978 if ${lt_cv_dlopen_self_static+:} false; then :
11979 $as_echo_n "(cached) " >&6
11981 if test "$cross_compiling" = yes; then :
11982 lt_cv_dlopen_self_static=cross
11984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11985 lt_status=$lt_dlunknown
11986 cat > conftest.$ac_ext <<_LT_EOF
11987 #line $LINENO "configure"
11988 #include "confdefs.h"
11997 # define LT_DLGLOBAL RTLD_GLOBAL
12000 # define LT_DLGLOBAL DL_GLOBAL
12002 # define LT_DLGLOBAL 0
12006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12007 find out it does not work in some platform. */
12008 #ifndef LT_DLLAZY_OR_NOW
12010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12013 # define LT_DLLAZY_OR_NOW DL_LAZY
12016 # define LT_DLLAZY_OR_NOW RTLD_NOW
12019 # define LT_DLLAZY_OR_NOW DL_NOW
12021 # define LT_DLLAZY_OR_NOW 0
12028 /* When -fvisbility=hidden is used, assume the code has been annotated
12029 correspondingly for the symbols needed. */
12030 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12031 int fnord () __attribute__((visibility("default")));
12034 int fnord () { return 42; }
12037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12038 int status = $lt_dlunknown;
12042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12045 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12046 else puts (dlerror ());
12048 /* dlclose (self); */
12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12057 (eval $ac_link) 2>&5
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12061 (./conftest; exit; ) >&5 2>/dev/null
12063 case x$lt_status in
12064 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12065 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12066 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12069 # compilation failed
12070 lt_cv_dlopen_self_static=no
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12078 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12081 CPPFLAGS="$save_CPPFLAGS"
12082 LDFLAGS="$save_LDFLAGS"
12087 case $lt_cv_dlopen_self in
12088 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12089 *) enable_dlopen_self=unknown ;;
12092 case $lt_cv_dlopen_self_static in
12093 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12094 *) enable_dlopen_self_static=unknown ;;
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12117 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12118 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12119 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12120 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122 $as_echo "yes" >&6; }
12124 # FIXME - insert some real tests, host_os isn't really good enough
12127 if test -n "$STRIP" ; then
12128 striplib="$STRIP -x"
12129 old_striplib="$STRIP -S"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12131 $as_echo "yes" >&6; }
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12155 # Report which library types will actually be built
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12157 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12159 $as_echo "$can_build_shared" >&6; }
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12162 $as_echo_n "checking whether to build shared libraries... " >&6; }
12163 test "$can_build_shared" = "no" && enable_shared=no
12165 # On AIX, shared libraries and static libraries use the same namespace, and
12166 # are all built from PIC.
12169 test "$enable_shared" = yes && enable_static=no
12170 if test -n "$RANLIB"; then
12171 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12172 postinstall_cmds='$RANLIB $lib'
12177 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12178 test "$enable_shared" = yes && enable_static=no
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12183 $as_echo "$enable_shared" >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12186 $as_echo_n "checking whether to build static libraries... " >&6; }
12187 # Make sure either enable_shared or enable_static is yes.
12188 test "$enable_shared" = yes || enable_static=yes
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12190 $as_echo "$enable_static" >&6; }
12197 ac_cpp='$CPP $CPPFLAGS'
12198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12218 ac_config_commands="$ac_config_commands libtool"
12223 # Only expand once:
12226 for ac_prog in 'flex'
12228 # Extract the first word of "$ac_prog", so it can be a program name with args.
12229 set dummy $ac_prog; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_FLEX+:} false; then :
12233 $as_echo_n "(cached) " >&6
12235 if test -n "$FLEX"; then
12236 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_FLEX="$ac_prog"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 FLEX=$ac_cv_prog_FLEX
12256 if test -n "$FLEX"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
12258 $as_echo "$FLEX" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12265 test -n "$FLEX" && break
12268 for ac_prog in 'bison -y'
12270 # Extract the first word of "$ac_prog", so it can be a program name with args.
12271 set dummy $ac_prog; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_YACC+:} false; then :
12275 $as_echo_n "(cached) " >&6
12277 if test -n "$YACC"; then
12278 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_YACC="$ac_prog"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 YACC=$ac_cv_prog_YACC
12298 if test -n "$YACC"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12300 $as_echo "$YACC" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12307 test -n "$YACC" && break
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12312 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12313 if ${ac_cv_c_const+:} false; then :
12314 $as_echo_n "(cached) " >&6
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12322 /* FIXME: Include the comments suggested by Paul. */
12323 #ifndef __cplusplus
12324 /* Ultrix mips cc rejects this. */
12325 typedef int charset[2];
12327 /* SunOS 4.1.1 cc rejects this. */
12328 char const *const *pcpcc;
12330 /* NEC SVR4.0.2 mips cc rejects this. */
12331 struct point {int x, y;};
12332 static struct point const zero = {0,0};
12333 /* AIX XL C 1.02.0.0 rejects this.
12334 It does not let you subtract one const X* pointer from another in
12335 an arm of an if-expression whose if-part is not a constant
12337 const char *g = "string";
12338 pcpcc = &g + (g ? g-g : 0);
12339 /* HPUX 7.0 cc rejects these. */
12341 ppc = (char**) pcpcc;
12342 pcpcc = (char const *const *) ppc;
12343 { /* SCO 3.2v4 cc rejects this. */
12345 char const *s = 0 ? (char *) 0 : (char const *) 0;
12350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12351 int x[] = {25, 17};
12352 const int *foo = &x[0];
12355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12356 typedef const int *iptr;
12360 { /* AIX XL C 1.02.0.0 rejects this saying
12361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12362 struct s { int j; const int *ap[3]; };
12363 struct s *b; b->j = 5;
12365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12366 const int foo = 10;
12367 if (!foo) return 0;
12369 return !cs[0] && !zero.x;
12376 if ac_fn_c_try_compile "$LINENO"; then :
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12384 $as_echo "$ac_cv_c_const" >&6; }
12385 if test $ac_cv_c_const = no; then
12387 $as_echo "#define const /**/" >>confdefs.h
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12392 $as_echo_n "checking for inline... " >&6; }
12393 if ${ac_cv_c_inline+:} false; then :
12394 $as_echo_n "(cached) " >&6
12397 for ac_kw in inline __inline__ __inline; do
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #ifndef __cplusplus
12402 static $ac_kw foo_t static_foo () {return 0; }
12403 $ac_kw foo_t foo () {return 0; }
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408 ac_cv_c_inline=$ac_kw
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 test "$ac_cv_c_inline" != no && break
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12416 $as_echo "$ac_cv_c_inline" >&6; }
12418 case $ac_cv_c_inline in
12421 case $ac_cv_c_inline in
12423 *) ac_val=$ac_cv_c_inline;;
12425 cat >>confdefs.h <<_ACEOF
12426 #ifndef __cplusplus
12427 #define inline $ac_val
12440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12441 if test -n "$ac_tool_prefix"; then
12442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12447 $as_echo_n "(cached) " >&6
12449 case $PKG_CONFIG in
12451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12473 if test -n "$PKG_CONFIG"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12475 $as_echo "$PKG_CONFIG" >&6; }
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12483 if test -z "$ac_cv_path_PKG_CONFIG"; then
12484 ac_pt_PKG_CONFIG=$PKG_CONFIG
12485 # Extract the first word of "pkg-config", so it can be a program name with args.
12486 set dummy pkg-config; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12490 $as_echo_n "(cached) " >&6
12492 case $ac_pt_PKG_CONFIG in
12494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12516 if test -n "$ac_pt_PKG_CONFIG"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12518 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12524 if test "x$ac_pt_PKG_CONFIG" = x; then
12527 case $cross_compiling:$ac_tool_warned in
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531 ac_tool_warned=yes ;;
12533 PKG_CONFIG=$ac_pt_PKG_CONFIG
12536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12540 if test -n "$PKG_CONFIG"; then
12541 _pkg_min_version=0.9.0
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12546 $as_echo "yes" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
12556 $as_echo_n "checking for CHECK... " >&6; }
12558 if test -n "$CHECK_CFLAGS"; then
12559 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
12560 elif test -n "$PKG_CONFIG"; then
12561 if test -n "$PKG_CONFIG" && \
12562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12563 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566 test $ac_status = 0; }; then
12567 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
12574 if test -n "$CHECK_LIBS"; then
12575 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
12576 elif test -n "$PKG_CONFIG"; then
12577 if test -n "$PKG_CONFIG" && \
12578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
12579 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
12581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; }; then
12583 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
12593 if test $pkg_failed = yes; then
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12598 _pkg_short_errors_supported=yes
12600 _pkg_short_errors_supported=no
12602 if test $_pkg_short_errors_supported = yes; then
12603 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.0" 2>&1`
12605 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.0" 2>&1`
12607 # Put the nasty error message in config.log where it belongs
12608 echo "$CHECK_PKG_ERRORS" >&5
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12611 $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12612 enable_unit_tests="no"
12613 elif test $pkg_failed = untried; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
12617 $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
12618 enable_unit_tests="no"
12620 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
12621 CHECK_LIBS=$pkg_cv_CHECK_LIBS
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623 $as_echo "yes" >&6; }
12624 enable_unit_tests="yes"
12627 if test "$enable_unit_tests" = "yes"; then
12628 ENABLE_UNIT_TESTS_TRUE=
12629 ENABLE_UNIT_TESTS_FALSE='#'
12631 ENABLE_UNIT_TESTS_TRUE='#'
12632 ENABLE_UNIT_TESTS_FALSE=
12637 # Check whether --with-pkgconfigdir was given.
12638 if test "${with_pkgconfigdir+set}" = set; then :
12639 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
12641 pkgconfigdir='${libdir}/pkgconfig'
12646 # Check whether --enable-cli was given.
12647 if test "${enable_cli+set}" = set; then :
12648 enableval=$enable_cli; enable_cli="$enableval"
12653 if test "$enable_cli" = "yes"; then
12655 ENABLE_CLI_FALSE='#'
12657 ENABLE_CLI_TRUE='#'
12662 # Check whether --enable-pthreads was given.
12663 if test "${enable_pthreads+set}" = set; then :
12664 enableval=$enable_pthreads; enable_pthreads="$enableval"
12666 enable_pthreads="yes"
12669 if test "$enable_pthreads" = "no"; then
12670 DISABLE_PTHREADS_TRUE=
12671 DISABLE_PTHREADS_FALSE='#'
12673 DISABLE_PTHREADS_TRUE='#'
12674 DISABLE_PTHREADS_FALSE=
12678 # Check whether --enable-debug was given.
12679 if test "${enable_debug+set}" = set; then :
12680 enableval=$enable_debug; enable_debug="$enableval"
12685 if test "$enable_debug" = "no" ; then
12687 ENABLE_DEBUG_FALSE='#'
12689 ENABLE_DEBUG_TRUE='#'
12690 ENABLE_DEBUG_FALSE=
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12695 $as_echo_n "checking for pow in -lm... " >&6; }
12696 if ${ac_cv_lib_m_pow+:} false; then :
12697 $as_echo_n "(cached) " >&6
12699 ac_check_lib_save_LIBS=$LIBS
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 /* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12719 if ac_fn_c_try_link "$LINENO"; then :
12720 ac_cv_lib_m_pow=yes
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12729 $as_echo "$ac_cv_lib_m_pow" >&6; }
12730 if test "x$ac_cv_lib_m_pow" = xyes; then :
12731 cat >>confdefs.h <<_ACEOF
12732 #define HAVE_LIBM 1
12738 as_fn_error $? "libm is required" "$LINENO" 5
12742 if test "x$enable_pthreads" = "xno"; then
12744 $as_echo "#define DISABLE_PTHREADS 1" >>confdefs.h
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
12748 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12749 if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
12750 $as_echo_n "(cached) " >&6
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lpthread $LIBS"
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12763 char pthread_mutex_lock ();
12767 return pthread_mutex_lock ();
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_pthread_pthread_mutex_lock=yes
12775 ac_cv_lib_pthread_pthread_mutex_lock=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12782 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12783 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBPTHREAD 1
12788 LIBS="-lpthread $LIBS"
12791 as_fn_error $? "libpthread is required" "$LINENO" 5
12796 if test "x$enable_debug" = "xyes"; then
12798 $as_echo "#define NL_DEBUG 1" >>confdefs.h
12804 subdirs="$subdirs doc"
12807 ac_config_files="$ac_config_files Makefile libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc lib/Makefile include/Makefile src/Makefile src/lib/Makefile tests/Makefile man/Makefile python/Makefile python/setup.py python/netlink/Makefile python/netlink/route/Makefile include/netlink/version.h"
12811 if test -z "$YACC"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
12813 $as_echo "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
12814 ac_errcount=$((ac_errcount + 1))
12816 if test -z "$FLEX"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
12818 $as_echo "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
12819 ac_errcount=$((ac_errcount + 1))
12821 if test $ac_errcount -gt 0; then
12822 as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
12825 cat >confcache <<\_ACEOF
12826 # This file is a shell script that caches the results of configure
12827 # tests run on this system so they can be shared between configure
12828 # scripts and configure runs, see configure's option --config-cache.
12829 # It is not useful on other systems. If it contains results you don't
12830 # want to keep, you may remove or edit it.
12832 # config.status only pays attention to the cache file if you give it
12833 # the --recheck option to rerun configure.
12835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12837 # following values.
12841 # The following way of writing the cache mishandles newlines in values,
12842 # but we know of no workaround that is simple, portable, and efficient.
12843 # So, we kill variables containing newlines.
12844 # Ultrix sh set writes to stderr and can't be redirected directly,
12845 # and sets the high bit in the cache file unless we assign to the vars.
12847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12848 eval ac_val=\$$ac_var
12852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12856 _ | IFS | as_nl) ;; #(
12857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12858 *) { eval $ac_var=; unset $ac_var;} ;;
12864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12865 *${as_nl}ac_space=\ *)
12866 # `set' does not quote correctly, so add quotes: double-quote
12867 # substitution turns \\\\ into \\, and sed turns \\ into \.
12870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12873 # `set' quotes correctly as required by POSIX, so do not add quotes.
12874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12888 if test -w "$cache_file"; then
12889 if test "x$cache_file" != "x/dev/null"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12891 $as_echo "$as_me: updating cache $cache_file" >&6;}
12892 if test ! -f "$cache_file" || test -h "$cache_file"; then
12893 cat confcache >"$cache_file"
12895 case $cache_file in #(
12897 mv -f confcache "$cache_file"$$ &&
12898 mv -f "$cache_file"$$ "$cache_file" ;; #(
12900 mv -f confcache "$cache_file" ;;
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912 # Let make expand exec_prefix.
12913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12915 DEFS=-DHAVE_CONFIG_H
12920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12921 # 1. Remove the extension, and $U if already installed.
12922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12925 # will be set to the directory where LIBOBJS objects are built.
12926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12929 LIBOBJS=$ac_libobjs
12931 LTLIBOBJS=$ac_ltlibobjs
12934 if test -n "$EXEEXT"; then
12936 am__EXEEXT_FALSE='#'
12938 am__EXEEXT_TRUE='#'
12942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12943 as_fn_error $? "conditional \"AMDEP\" was never defined.
12944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12947 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12954 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
12955 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
12956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12958 if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
12959 as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
12960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12962 if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
12963 as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
12964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966 if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
12967 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
12968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12971 : "${CONFIG_STATUS=./config.status}"
12973 ac_clean_files_save=$ac_clean_files
12974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12980 # Generated by $as_me.
12981 # Run this file to recreate the current configuration.
12982 # Compiler output produced by configure, useful for debugging
12983 # configure, is in config.log if it exists.
12986 ac_cs_recheck=false
12989 SHELL=\${CONFIG_SHELL-$SHELL}
12992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12993 ## -------------------- ##
12994 ## M4sh Initialization. ##
12995 ## -------------------- ##
12997 # Be more Bourne compatible
12998 DUALCASE=1; export DUALCASE # for MKS sh
12999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13003 # is contrary to our usage. Disable this feature.
13004 alias -g '${1+"$@"}'='"$@"'
13005 setopt NO_GLOB_SUBST
13007 case `(set -o) 2>/dev/null` in #(
13019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13023 # Prefer a ksh shell builtin over an external printf program on Solaris,
13024 # but without wasting forks for bash or zsh.
13025 if test -z "$BASH_VERSION$ZSH_VERSION" \
13026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13027 as_echo='print -r --'
13028 as_echo_n='print -rn --'
13029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13030 as_echo='printf %s\n'
13031 as_echo_n='printf %s'
13033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13035 as_echo_n='/usr/ucb/echo -n'
13037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13038 as_echo_n_body='eval
13042 expr "X$arg" : "X\\(.*\\)$as_nl";
13043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13047 export as_echo_n_body
13048 as_echo_n='sh -c $as_echo_n_body as_echo'
13050 export as_echo_body
13051 as_echo='sh -c $as_echo_body as_echo'
13054 # The user is always right.
13055 if test "${PATH_SEPARATOR+set}" != set; then
13057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13065 # We need space, tab and new line, in precisely that order. Quoting is
13066 # there to prevent editors from complaining about space-tab.
13067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13068 # splitting by setting IFS to empty value.)
13071 # Find who we are. Look in the path if we contain no directory separator.
13074 *[\\/]* ) as_myself=$0 ;;
13075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13086 # We did not find ourselves, most probably we were run as `sh COMMAND'
13087 # in which case we are not to be found in the path.
13088 if test "x$as_myself" = x; then
13091 if test ! -f "$as_myself"; then
13092 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13096 # Unset variables that we do not need and which cause bugs (e.g. in
13097 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13098 # suppresses any "Segmentation fault" message there. '((' could
13099 # trigger a bug in pdksh 5.2.14.
13100 for as_var in BASH_ENV ENV MAIL MAILPATH
13101 do eval test x\${$as_var+set} = xset \
13102 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13118 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13119 # ----------------------------------------
13120 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13121 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13122 # script with STATUS, using 1 if that was 0.
13125 as_status=$1; test $as_status -eq 0 && as_status=1
13127 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13128 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13130 $as_echo "$as_me: error: $2" >&2
13131 as_fn_exit $as_status
13135 # as_fn_set_status STATUS
13136 # -----------------------
13137 # Set $? to STATUS, without forking.
13138 as_fn_set_status ()
13141 } # as_fn_set_status
13143 # as_fn_exit STATUS
13144 # -----------------
13145 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13149 as_fn_set_status $1
13155 # Portably unset VAR.
13158 { eval $1=; unset $1;}
13160 as_unset=as_fn_unset
13161 # as_fn_append VAR VALUE
13162 # ----------------------
13163 # Append the text in VALUE to the end of the definition contained in VAR. Take
13164 # advantage of any shell optimizations that allow amortized linear growth over
13165 # repeated appends, instead of the typical quadratic growth present in naive
13167 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13168 eval 'as_fn_append ()
13179 # as_fn_arith ARG...
13180 # ------------------
13181 # Perform arithmetic evaluation on the ARGs, and store the result in the
13182 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13183 # must be portable across $(()) and expr.
13184 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13185 eval 'as_fn_arith ()
13192 as_val=`expr "$@" || test $? -eq 1`
13197 if expr a : '\(a\)' >/dev/null 2>&1 &&
13198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13204 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13205 as_basename=basename
13210 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13216 as_me=`$as_basename -- "$0" ||
13217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13218 X"$0" : 'X\(//\)$' \| \
13219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13221 sed '/^.*\/\([^/][^/]*\)\/*$/{
13235 # Avoid depending upon Character Ranges.
13236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13239 as_cr_digits='0123456789'
13240 as_cr_alnum=$as_cr_Letters$as_cr_digits
13242 ECHO_C= ECHO_N= ECHO_T=
13243 case `echo -n x` in #(((((
13245 case `echo 'xy\c'` in
13246 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13248 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13255 rm -f conf$$ conf$$.exe conf$$.file
13256 if test -d conf$$.dir; then
13257 rm -f conf$$.dir/conf$$.file
13260 mkdir conf$$.dir 2>/dev/null
13262 if (echo >conf$$.file) 2>/dev/null; then
13263 if ln -s conf$$.file conf$$ 2>/dev/null; then
13265 # ... but there are two gotchas:
13266 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13267 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13268 # In both cases, we have to default to `cp -p'.
13269 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13271 elif ln conf$$.file conf$$ 2>/dev/null; then
13279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13280 rmdir conf$$.dir 2>/dev/null
13285 # Create "$as_dir" as a directory, including parents if necessary.
13290 -*) as_dir=./$as_dir;;
13292 test -d "$as_dir" || eval $as_mkdir_p || {
13296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13297 *) as_qdir=$as_dir;;
13299 as_dirs="'$as_qdir' $as_dirs"
13300 as_dir=`$as_dirname -- "$as_dir" ||
13301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13302 X"$as_dir" : 'X\(//\)[^/]' \| \
13303 X"$as_dir" : 'X\(//\)$' \| \
13304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13305 $as_echo X"$as_dir" |
13306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13310 /^X\(\/\/\)[^/].*/{
13323 test -d "$as_dir" && break
13325 test -z "$as_dirs" || eval "mkdir $as_dirs"
13326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13330 if mkdir -p . 2>/dev/null; then
13331 as_mkdir_p='mkdir -p "$as_dir"'
13333 test -d ./-p && rmdir ./-p
13337 if test -x / >/dev/null 2>&1; then
13338 as_test_x='test -x'
13340 if ls -dL / >/dev/null 2>&1; then
13347 if test -d "$1"; then
13353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13354 ???[sx]*):;;*)false;;esac;fi
13358 as_executable_p=$as_test_x
13360 # Sed expression to map a string onto a valid CPP name.
13361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13363 # Sed expression to map a string onto a valid variable name.
13364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13368 ## ----------------------------------- ##
13369 ## Main body of $CONFIG_STATUS script. ##
13370 ## ----------------------------------- ##
13372 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13375 # Save the log message, to keep $0 and so on meaningful, and to
13376 # report actual input values of CONFIG_FILES etc. instead of their
13377 # values after options handling.
13379 This file was extended by libnl $as_me 3.2.22, which was
13380 generated by GNU Autoconf 2.68. Invocation command line was
13382 CONFIG_FILES = $CONFIG_FILES
13383 CONFIG_HEADERS = $CONFIG_HEADERS
13384 CONFIG_LINKS = $CONFIG_LINKS
13385 CONFIG_COMMANDS = $CONFIG_COMMANDS
13388 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13393 case $ac_config_files in *"
13394 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13397 case $ac_config_headers in *"
13398 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13403 # Files that config.status was made for.
13404 config_files="$ac_config_files"
13405 config_headers="$ac_config_headers"
13406 config_commands="$ac_config_commands"
13410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412 \`$as_me' instantiates files and other configuration actions
13413 from templates according to the current configuration. Unless the files
13414 and actions are specified as TAGs, all are instantiated by default.
13416 Usage: $0 [OPTION]... [TAG]...
13418 -h, --help print this help, then exit
13419 -V, --version print version number and configuration settings, then exit
13420 --config print configuration, then exit
13421 -q, --quiet, --silent
13422 do not print progress messages
13423 -d, --debug don't remove temporary files
13424 --recheck update $as_me by reconfiguring in the same conditions
13425 --file=FILE[:TEMPLATE]
13426 instantiate the configuration file FILE
13427 --header=FILE[:TEMPLATE]
13428 instantiate the configuration header FILE
13430 Configuration files:
13433 Configuration headers:
13436 Configuration commands:
13439 Report bugs to the package provider.
13440 libnl home page: <http://www.infradead.org/~tgr/libnl/>."
13443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13444 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13446 libnl config.status 3.2.22
13447 configured by $0, generated by GNU Autoconf 2.68,
13448 with options \\"\$ac_cs_config\\"
13450 Copyright (C) 2010 Free Software Foundation, Inc.
13451 This config.status script is free software; the Free Software Foundation
13452 gives unlimited permission to copy, distribute and modify it."
13459 test -n "\$AWK" || AWK=awk
13462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13463 # The default lists apply if the user does not specify any file.
13469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13474 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13486 # Handling of the options.
13487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13489 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13490 $as_echo "$ac_cs_version"; exit ;;
13491 --config | --confi | --conf | --con | --co | --c )
13492 $as_echo "$ac_cs_config"; exit ;;
13493 --debug | --debu | --deb | --de | --d | -d )
13495 --file | --fil | --fi | --f )
13498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13499 '') as_fn_error $? "missing file argument" ;;
13501 as_fn_append CONFIG_FILES " '$ac_optarg'"
13502 ac_need_defaults=false;;
13503 --header | --heade | --head | --hea )
13506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13508 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13509 ac_need_defaults=false;;
13511 # Conflict between --help and --header
13512 as_fn_error $? "ambiguous option: \`$1'
13513 Try \`$0 --help' for more information.";;
13514 --help | --hel | -h )
13515 $as_echo "$ac_cs_usage"; exit ;;
13516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13517 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13520 # This is an error.
13521 -*) as_fn_error $? "unrecognized option: \`$1'
13522 Try \`$0 --help' for more information." ;;
13524 *) as_fn_append ac_config_targets " $1"
13525 ac_need_defaults=false ;;
13531 ac_configure_extra_args=
13533 if $ac_cs_silent; then
13535 ac_configure_extra_args="$ac_configure_extra_args --silent"
13539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13540 if \$ac_cs_recheck; then
13541 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13544 CONFIG_SHELL='$SHELL'
13545 export CONFIG_SHELL
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13555 ## Running $as_me. ##
13561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13565 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13568 # The HP-UX ksh and POSIX shell print the target directory to stdout
13569 # if CDPATH is set.
13570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13572 sed_quote_subst='$sed_quote_subst'
13573 double_quote_subst='$double_quote_subst'
13574 delay_variable_subst='$delay_variable_subst'
13575 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13576 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13577 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13578 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13579 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13580 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13581 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13582 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13583 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13584 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13585 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13586 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13587 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13588 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13589 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13590 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13591 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13592 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13593 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13594 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13595 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13596 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13597 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13598 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13599 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13600 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13601 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13602 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13603 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13604 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13605 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13606 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13607 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13608 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13613 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13614 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13615 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13616 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13617 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13618 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13619 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13620 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13621 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13622 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13623 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13624 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13625 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13626 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13627 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13628 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13629 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13630 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13632 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13633 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13634 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13635 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13636 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13637 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13638 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13639 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13640 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13641 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13642 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13643 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13644 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13645 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13646 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13647 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13648 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13649 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13650 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13651 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13652 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13653 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13654 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13655 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13656 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13657 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13658 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13659 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13660 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13661 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13662 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13663 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13664 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13665 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13666 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13667 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13668 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13669 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13670 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13671 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13672 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13673 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13674 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13675 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13676 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13677 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13678 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13679 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13680 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13681 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13682 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13683 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13684 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13685 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13686 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13687 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13688 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13689 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13690 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13691 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13692 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13693 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13694 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13695 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13696 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13697 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13698 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13699 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13700 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13701 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13702 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13703 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13704 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13707 LTCFLAGS='$LTCFLAGS'
13708 compiler='$compiler_DEFAULT'
13710 # A function that is used when there is no print builtin or printf.
13711 func_fallback_echo ()
13713 eval 'cat <<_LTECHO_EOF
13718 # Quote evaled strings.
13733 deplibs_check_method \
13738 sharedlib_from_linklib_cmd \
13741 archiver_list_spec \
13747 lt_cv_sys_global_symbol_pipe \
13748 lt_cv_sys_global_symbol_to_cdecl \
13749 lt_cv_sys_global_symbol_to_c_name_address \
13750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13751 nm_file_list_spec \
13752 lt_prog_compiler_no_builtin_flag \
13753 lt_prog_compiler_pic \
13754 lt_prog_compiler_wl \
13755 lt_prog_compiler_static \
13756 lt_cv_prog_compiler_c_o \
13765 export_dynamic_flag_spec \
13766 whole_archive_flag_spec \
13767 compiler_needs_object \
13769 allow_undefined_flag \
13770 no_undefined_flag \
13771 hardcode_libdir_flag_spec \
13772 hardcode_libdir_separator \
13776 variables_saved_for_relink \
13778 library_names_spec \
13780 install_override_mode \
13784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13785 *[\\\\\\\`\\"\\\$]*)
13786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13794 # Double-quote double-evaled strings.
13795 for var in reload_cmds \
13796 old_postinstall_cmds \
13797 old_postuninstall_cmds \
13799 extract_expsyms_cmds \
13800 old_archive_from_new_cmds \
13801 old_archive_from_expsyms_cmds \
13803 archive_expsym_cmds \
13805 module_expsym_cmds \
13806 export_symbols_cmds \
13810 postuninstall_cmds \
13812 sys_lib_search_path_spec \
13813 sys_lib_dlsearch_path_spec; do
13814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13815 *[\\\\\\\`\\"\\\$]*)
13816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13824 ac_aux_dir='$ac_aux_dir'
13825 xsi_shell='$xsi_shell'
13826 lt_shell_append='$lt_shell_append'
13828 # See if we are running on zsh, and set the options which allow our
13829 # commands through without removal of \ escapes INIT.
13830 if test -n "\${ZSH_VERSION+set}" ; then
13831 setopt NO_GLOB_SUBST
13837 TIMESTAMP='$TIMESTAMP'
13846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13848 # Handling of arguments.
13849 for ac_config_target in $ac_config_targets
13851 case $ac_config_target in
13852 "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
13853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13854 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13855 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13856 "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
13857 "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
13858 "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
13859 "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
13860 "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
13861 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13862 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13863 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13864 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
13865 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13866 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13867 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13868 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
13869 "python/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/Makefile" ;;
13870 "python/netlink/route/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/route/Makefile" ;;
13871 "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
13873 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13878 # If the user did not use the arguments to specify the items to instantiate,
13879 # then the envvar interface is used. Set only those that are not.
13880 # We use the long form for the default assignment because of an extremely
13881 # bizarre bug on SunOS 4.1.3.
13882 if $ac_need_defaults; then
13883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13888 # Have a temporary directory for convenience. Make it in the build tree
13889 # simply because there is no reason against having it here, and in addition,
13890 # creating and moving files from /tmp can sometimes cause problems.
13891 # Hook for its removal unless debugging.
13892 # Note that there is a small window in which the directory will not be cleaned:
13893 # after its creation but before its name has been assigned to `$tmp'.
13897 trap 'exit_status=$?
13898 : "${ac_tmp:=$tmp}"
13899 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13901 trap 'as_fn_exit 1' 1 2 13 15
13903 # Create a (secure) tmp directory for tmp files.
13906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13910 tmp=./conf$$-$RANDOM
13911 (umask 077 && mkdir "$tmp")
13912 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13915 # Set up the scripts for CONFIG_FILES section.
13916 # No need to generate them if there are no CONFIG_FILES.
13917 # This happens for instance with `./config.status config.h'.
13918 if test -n "$CONFIG_FILES"; then
13921 ac_cr=`echo X | tr X '\015'`
13922 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13923 # But we know of no other shell where ac_cr would be empty at this
13924 # point, so we can use a bashism as a fallback.
13925 if test "x$ac_cr" = x; then
13926 eval ac_cr=\$\'\\r\'
13928 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13929 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13932 ac_cs_awk_cr=$ac_cr
13935 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13940 echo "cat >conf$$subs.awk <<_ACEOF" &&
13941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13943 } >conf$$subs.sh ||
13944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13947 for ac_last_try in false false false false false :; do
13948 . ./conf$$subs.sh ||
13949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13952 if test $ac_delim_n = $ac_delim_num; then
13954 elif $ac_last_try; then
13955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13960 rm -f conf$$subs.sh
13962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13963 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13967 s/^/S["/; s/!.*/"]=/
13977 s/\(.\{148\}\)..*/\1/
13979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13991 s/\(.\{148\}\)..*/\1/
13993 s/["\\]/\\&/g; s/^/"/; s/$/"/
13997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14002 ' <conf$$subs.awk | sed '
14007 ' >>$CONFIG_STATUS || ac_write_fail=1
14008 rm -f conf$$subs.awk
14009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14011 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14012 for (key in S) S_is_set[key] = 1
14018 nfields = split(line, field, "@")
14020 len = length(field[1])
14021 for (i = 2; i < nfields; i++) {
14023 keylen = length(key)
14024 if (S_is_set[key]) {
14026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14027 len += length(value) + length(field[++i])
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14040 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14043 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14044 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14047 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14048 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14049 # trailing colons and then remove the whole line if VPATH becomes empty
14050 # (actually we leave an empty line to preserve line numbers).
14051 if test "x$srcdir" = x.; then
14052 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071 fi # test -n "$CONFIG_FILES"
14073 # Set up the scripts for CONFIG_HEADERS section.
14074 # No need to generate them if there are no CONFIG_HEADERS.
14075 # This happens for instance with `./config.status Makefile'.
14076 if test -n "$CONFIG_HEADERS"; then
14077 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14081 # Transform confdefs.h into an awk script `defines.awk', embedded as
14082 # here-document in config.status, that substitutes the proper values into
14083 # config.h.in to produce config.h.
14085 # Create a delimiter string that does not exist in confdefs.h, to ease
14086 # handling of long lines.
14088 for ac_last_try in false false :; do
14089 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14090 if test -z "$ac_tt"; then
14092 elif $ac_last_try; then
14093 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14099 # For the awk script, D is an array of macro values keyed by name,
14100 # likewise P contains macro parameters if any. Preserve backslash
14101 # newline sequences.
14103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14105 s/.\{148\}/&'"$ac_delim"'/g
14108 s/^[ ]*#[ ]*define[ ][ ]*/ /
14115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14122 D["\1"]=" \3\\\\\\n"\\/p
14124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14129 s/.\{148\}/&'"$ac_delim"'/g
14134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14139 ' <confdefs.h | sed '
14140 s/'"$ac_delim"'/"\\\
14141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14144 for (key in D) D_is_set[key] = 1
14147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14149 split(line, arg, " ")
14150 if (arg[1] == "#") {
14154 defundef = substr(arg[1], 2)
14157 split(mac1, mac2, "(") #)
14159 prefix = substr(line, 1, index(line, defundef) - 1)
14160 if (D_is_set[macro]) {
14161 # Preserve the white space surrounding the "#".
14162 print prefix "define", macro P[macro] D[macro]
14165 # Replace #undef with comments. This is necessary, for example,
14166 # in the case of _POSIX_SOURCE, which is predefined and required
14167 # on some systems where configure will not decide to define it.
14168 if (defundef == "undef") {
14169 print "/*", prefix defundef, macro, "*/"
14177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14179 fi # test -n "$CONFIG_HEADERS"
14182 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14187 :[FHLC]) ac_mode=$ac_tag; continue;;
14189 case $ac_mode$ac_tag in
14191 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14192 :[FH]-) ac_tag=-:-;;
14193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14210 -) ac_f="$ac_tmp/stdin";;
14211 *) # Look for the file first in the build tree, then in the source tree
14212 # (if the path is not absolute). The absolute path cannot be DOS-style,
14213 # because $ac_f cannot contain `:'.
14217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14219 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14221 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14222 as_fn_append ac_file_inputs " '$ac_f'"
14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
14226 # use $as_me), people would be surprised to read:
14227 # /* config.h. Generated by config.status. */
14228 configure_input='Generated from '`
14229 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14231 if test x"$ac_file" != x-; then
14232 configure_input="$ac_file. $configure_input"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14234 $as_echo "$as_me: creating $ac_file" >&6;}
14236 # Neutralize special characters interpreted by sed in replacement strings.
14237 case $configure_input in #(
14238 *\&* | *\|* | *\\* )
14239 ac_sed_conf_input=`$as_echo "$configure_input" |
14240 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14241 *) ac_sed_conf_input=$configure_input;;
14245 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14251 ac_dir=`$as_dirname -- "$ac_file" ||
14252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14253 X"$ac_file" : 'X\(//\)[^/]' \| \
14254 X"$ac_file" : 'X\(//\)$' \| \
14255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14256 $as_echo X"$ac_file" |
14257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14261 /^X\(\/\/\)[^/].*/{
14274 as_dir="$ac_dir"; as_fn_mkdir_p
14278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14281 # A ".." for each directory in $ac_dir_suffix.
14282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14283 case $ac_top_builddir_sub in
14284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14288 ac_abs_top_builddir=$ac_pwd
14289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14290 # for backward compatibility:
14291 ac_top_builddir=$ac_top_build_prefix
14294 .) # We are building in place.
14296 ac_top_srcdir=$ac_top_builddir_sub
14297 ac_abs_top_srcdir=$ac_pwd ;;
14298 [\\/]* | ?:[\\/]* ) # Absolute name.
14299 ac_srcdir=$srcdir$ac_dir_suffix;
14300 ac_top_srcdir=$srcdir
14301 ac_abs_top_srcdir=$srcdir ;;
14302 *) # Relative name.
14303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14304 ac_top_srcdir=$ac_top_build_prefix$srcdir
14305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14320 ac_MKDIR_P=$MKDIR_P
14322 [\\/$]* | ?:[\\/]* ) ;;
14323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14328 # If the template does not know about datarootdir, expand it.
14329 # FIXME: This hack should be removed a few years after 2.60.
14330 ac_datarootdir_hack=; ac_datarootdir_seen=
14341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14342 *datarootdir*) ac_datarootdir_seen=yes;;
14343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14348 ac_datarootdir_hack='
14349 s&@datadir@&$datadir&g
14350 s&@docdir@&$docdir&g
14351 s&@infodir@&$infodir&g
14352 s&@localedir@&$localedir&g
14353 s&@mandir@&$mandir&g
14354 s&\\\${datarootdir}&$datarootdir&g' ;;
14358 # Neutralize VPATH when `$srcdir' = `.'.
14359 # Shell code in configure.ac might set extrasub.
14360 # FIXME: do we really want to maintain this feature?
14361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14362 ac_sed_extra="$ac_vpsub
14365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14368 s|@configure_input@|$ac_sed_conf_input|;t t
14369 s&@top_builddir@&$ac_top_builddir_sub&;t t
14370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14371 s&@srcdir@&$ac_srcdir&;t t
14372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14373 s&@top_srcdir@&$ac_top_srcdir&;t t
14374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14375 s&@builddir@&$ac_builddir&;t t
14376 s&@abs_builddir@&$ac_abs_builddir&;t t
14377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14378 s&@INSTALL@&$ac_INSTALL&;t t
14379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14380 $ac_datarootdir_hack
14382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14390 which seems to be undefined. Please make sure it is defined" >&5
14391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14392 which seems to be undefined. Please make sure it is defined" >&2;}
14394 rm -f "$ac_tmp/stdin"
14396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14405 if test x"$ac_file" != x-; then
14407 $as_echo "/* $configure_input */" \
14408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14409 } >"$ac_tmp/config.h" \
14410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14416 mv "$ac_tmp/config.h" "$ac_file" \
14417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14420 $as_echo "/* $configure_input */" \
14421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14422 || as_fn_error $? "could not create -" "$LINENO" 5
14424 # Compute "$ac_file"'s index in $config_headers.
14427 for _am_header in $config_headers :; do
14428 case $_am_header in
14429 $_am_arg | $_am_arg:* )
14432 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14435 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14436 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14437 X"$_am_arg" : 'X\(//\)[^/]' \| \
14438 X"$_am_arg" : 'X\(//\)$' \| \
14439 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14440 $as_echo X"$_am_arg" |
14441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14445 /^X\(\/\/\)[^/].*/{
14457 s/.*/./; q'`/stamp-h$_am_stamp_count
14460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14461 $as_echo "$as_me: executing $ac_file commands" >&6;}
14466 case $ac_file$ac_mode in
14467 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14468 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14469 # are listed without --file. Let's play safe and only enable the eval
14470 # if we detect the quoting.
14471 case $CONFIG_FILES in
14472 *\'*) eval set x "$CONFIG_FILES" ;;
14473 *) set x $CONFIG_FILES ;;
14478 # Strip MF so we end up with the name of the file.
14479 mf=`echo "$mf" | sed -e 's/:.*$//'`
14480 # Check whether this is an Automake generated Makefile or not.
14481 # We used to match only the files named `Makefile.in', but
14482 # some people rename them; so instead we look at the file content.
14483 # Grep'ing the first line is not enough: some people post-process
14484 # each Makefile.in and add a new line on top of each file to say so.
14485 # Grep'ing the whole file is not good either: AIX grep has a line
14486 # limit of 2048, but all sed's we know have understand at least 4000.
14487 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14488 dirpart=`$as_dirname -- "$mf" ||
14489 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14490 X"$mf" : 'X\(//\)[^/]' \| \
14491 X"$mf" : 'X\(//\)$' \| \
14492 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14498 /^X\(\/\/\)[^/].*/{
14514 # Extract the definition of DEPDIR, am__include, and am__quote
14515 # from the Makefile without running `make'.
14516 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14517 test -z "$DEPDIR" && continue
14518 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14519 test -z "am__include" && continue
14520 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14521 # When using ansi2knr, U may be empty or an underscore; expand it
14522 U=`sed -n 's/^U = //p' < "$mf"`
14523 # Find all dependency output files, they are included files with
14524 # $(DEPDIR) in their names. We invoke sed twice because it is the
14525 # simplest approach to changing $(DEPDIR) to its actual value in the
14527 for file in `sed -n "
14528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14530 # Make sure the directory exists.
14531 test -f "$dirpart/$file" && continue
14532 fdir=`$as_dirname -- "$file" ||
14533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14534 X"$file" : 'X\(//\)[^/]' \| \
14535 X"$file" : 'X\(//\)$' \| \
14536 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14537 $as_echo X"$file" |
14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14542 /^X\(\/\/\)[^/].*/{
14555 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14556 # echo "creating $dirpart/$file"
14557 echo '# dummy' > "$dirpart/$file"
14564 # See if we are running on zsh, and set the options which allow our
14565 # commands through without removal of \ escapes.
14566 if test -n "${ZSH_VERSION+set}" ; then
14567 setopt NO_GLOB_SUBST
14570 cfgfile="${ofile}T"
14571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14574 cat <<_LT_EOF >> "$cfgfile"
14577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14583 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14585 # Written by Gordon Matzigkeit, 1996
14587 # This file is part of GNU Libtool.
14589 # GNU Libtool is free software; you can redistribute it and/or
14590 # modify it under the terms of the GNU General Public License as
14591 # published by the Free Software Foundation; either version 2 of
14592 # the License, or (at your option) any later version.
14594 # As a special exception to the GNU General Public License,
14595 # if you distribute this file as part of a program or library that
14596 # is built using GNU Libtool, you may include this file under the
14597 # same distribution terms that you use for the rest of that program.
14599 # GNU Libtool is distributed in the hope that it will be useful,
14600 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14602 # GNU General Public License for more details.
14604 # You should have received a copy of the GNU General Public License
14605 # along with GNU Libtool; see the file COPYING. If not, a copy
14606 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14607 # obtained by writing to the Free Software Foundation, Inc.,
14608 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14611 # The names of the tagged configurations supported by this script.
14614 # ### BEGIN LIBTOOL CONFIG
14616 # Which release of libtool.m4 was used?
14617 macro_version=$macro_version
14618 macro_revision=$macro_revision
14620 # Whether or not to build shared libraries.
14621 build_libtool_libs=$enable_shared
14623 # Whether or not to build static libraries.
14624 build_old_libs=$enable_static
14626 # What type of objects to build.
14629 # Whether or not to optimize for fast installation.
14630 fast_install=$enable_fast_install
14632 # Shell to use when invoking shell scripts.
14635 # An echo program that protects backslashes.
14638 # The PATH separator for the build system.
14639 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14642 host_alias=$host_alias
14646 # The build system.
14647 build_alias=$build_alias
14651 # A sed program that does not truncate output.
14654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14655 Xsed="\$SED -e 1s/^X//"
14657 # A grep program that handles long lines.
14663 # A literal string matcher.
14666 # A BSD- or MS-compatible name lister.
14669 # Whether we need soft or hard links.
14672 # What is the maximum length of a command?
14673 max_cmd_len=$max_cmd_len
14675 # Object file suffix (normally "o").
14678 # Executable file suffix (normally "").
14681 # whether the shell understands "unset".
14684 # turn spaces into newlines.
14687 # turn newlines into spaces.
14690 # convert \$build file names to \$host format.
14691 to_host_file_cmd=$lt_cv_to_host_file_cmd
14693 # convert \$build files to toolchain format.
14694 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14696 # An object symbol dumper.
14697 OBJDUMP=$lt_OBJDUMP
14699 # Method to check whether dependent libraries are shared objects.
14700 deplibs_check_method=$lt_deplibs_check_method
14702 # Command to use when deplibs_check_method = "file_magic".
14703 file_magic_cmd=$lt_file_magic_cmd
14705 # How to find potential files when deplibs_check_method = "file_magic".
14706 file_magic_glob=$lt_file_magic_glob
14708 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14709 want_nocaseglob=$lt_want_nocaseglob
14711 # DLL creation program.
14712 DLLTOOL=$lt_DLLTOOL
14714 # Command to associate shared and link libraries.
14715 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14720 # Flags to create an archive.
14721 AR_FLAGS=$lt_AR_FLAGS
14723 # How to feed a file listing to the archiver.
14724 archiver_list_spec=$lt_archiver_list_spec
14726 # A symbol stripping program.
14729 # Commands used to install an old-style archive.
14731 old_postinstall_cmds=$lt_old_postinstall_cmds
14732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14734 # Whether to use a lock for old archive extraction.
14735 lock_old_archive_extraction=$lock_old_archive_extraction
14740 # LTCC compiler flags.
14741 LTCFLAGS=$lt_CFLAGS
14743 # Take the output of nm and produce a listing of raw symbols and C names.
14744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14746 # Transform the output of nm in a proper C declaration.
14747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14749 # Transform the output of nm in a C name address pair.
14750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14752 # Transform the output of nm in a C name address pair when lib prefix is needed.
14753 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14755 # Specify filename containing input files for \$NM.
14756 nm_file_list_spec=$lt_nm_file_list_spec
14758 # The root where to search for dependent libraries,and in which our libraries should be installed.
14759 lt_sysroot=$lt_sysroot
14761 # The name of the directory that contains temporary libtool files.
14764 # Used to examine libraries when file_magic_cmd begins with "file".
14765 MAGIC_CMD=$MAGIC_CMD
14767 # Must we lock files when doing compilation?
14768 need_locks=$lt_need_locks
14771 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14773 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14774 DSYMUTIL=$lt_DSYMUTIL
14776 # Tool to change global to local symbols on Mac OS X.
14779 # Tool to manipulate fat objects and archives on Mac OS X.
14782 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14785 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14786 OTOOL64=$lt_OTOOL64
14788 # Old archive suffix (normally "a").
14791 # Shared library suffix (normally ".so").
14792 shrext_cmds=$lt_shrext_cmds
14794 # The commands to extract the exported symbol list from a shared archive.
14795 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14797 # Variables whose values should be saved in libtool wrapper scripts and
14798 # restored at link time.
14799 variables_saved_for_relink=$lt_variables_saved_for_relink
14801 # Do we need the "lib" prefix for modules?
14802 need_lib_prefix=$need_lib_prefix
14804 # Do we need a version for libraries?
14805 need_version=$need_version
14807 # Library versioning type.
14808 version_type=$version_type
14810 # Shared library runtime path variable.
14811 runpath_var=$runpath_var
14813 # Shared library path variable.
14814 shlibpath_var=$shlibpath_var
14816 # Is shlibpath searched before the hard-coded library search path?
14817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14819 # Format of library name prefix.
14820 libname_spec=$lt_libname_spec
14822 # List of archive names. First name is the real one, the rest are links.
14823 # The last name is the one that the linker finds with -lNAME
14824 library_names_spec=$lt_library_names_spec
14826 # The coded name of the library, if different from the real name.
14827 soname_spec=$lt_soname_spec
14829 # Permission mode override for installation of shared libraries.
14830 install_override_mode=$lt_install_override_mode
14832 # Command to use after installation of a shared archive.
14833 postinstall_cmds=$lt_postinstall_cmds
14835 # Command to use after uninstallation of a shared archive.
14836 postuninstall_cmds=$lt_postuninstall_cmds
14838 # Commands used to finish a libtool library installation in a directory.
14839 finish_cmds=$lt_finish_cmds
14841 # As "finish_cmds", except a single script fragment to be evaled but
14843 finish_eval=$lt_finish_eval
14845 # Whether we should hardcode library paths into libraries.
14846 hardcode_into_libs=$hardcode_into_libs
14848 # Compile-time system search path for libraries.
14849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14851 # Run-time system search path for libraries.
14852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14854 # Whether dlopen is supported.
14855 dlopen_support=$enable_dlopen
14857 # Whether dlopen of programs is supported.
14858 dlopen_self=$enable_dlopen_self
14860 # Whether dlopen of statically linked programs is supported.
14861 dlopen_self_static=$enable_dlopen_self_static
14863 # Commands to strip libraries.
14864 old_striplib=$lt_old_striplib
14865 striplib=$lt_striplib
14868 # The linker used to build libraries.
14871 # How to create reloadable object files.
14872 reload_flag=$lt_reload_flag
14873 reload_cmds=$lt_reload_cmds
14875 # Commands used to build an old-style archive.
14876 old_archive_cmds=$lt_old_archive_cmds
14878 # A language specific compiler.
14881 # Is the compiler the GNU compiler?
14884 # Compiler flag to turn off builtin functions.
14885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14887 # Additional compiler flags for building library objects.
14888 pic_flag=$lt_lt_prog_compiler_pic
14890 # How to pass a linker flag through the compiler.
14891 wl=$lt_lt_prog_compiler_wl
14893 # Compiler flag to prevent dynamic linking.
14894 link_static_flag=$lt_lt_prog_compiler_static
14896 # Does compiler simultaneously support -c and -o options?
14897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14899 # Whether or not to add -lc for building shared libraries.
14900 build_libtool_need_lc=$archive_cmds_need_lc
14902 # Whether or not to disallow shared libs when runtime libs are static.
14903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14905 # Compiler flag to allow reflexive dlopens.
14906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14908 # Compiler flag to generate shared objects directly from archives.
14909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14911 # Whether the compiler copes with passing no objects directly.
14912 compiler_needs_object=$lt_compiler_needs_object
14914 # Create an old-style archive from a shared archive.
14915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14917 # Create a temporary old-style archive to link instead of a shared archive.
14918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14920 # Commands used to build a shared archive.
14921 archive_cmds=$lt_archive_cmds
14922 archive_expsym_cmds=$lt_archive_expsym_cmds
14924 # Commands used to build a loadable module if different from building
14925 # a shared archive.
14926 module_cmds=$lt_module_cmds
14927 module_expsym_cmds=$lt_module_expsym_cmds
14929 # Whether we are building with GNU ld or not.
14930 with_gnu_ld=$lt_with_gnu_ld
14932 # Flag that allows shared libraries with undefined symbols to be built.
14933 allow_undefined_flag=$lt_allow_undefined_flag
14935 # Flag that enforces no undefined symbols.
14936 no_undefined_flag=$lt_no_undefined_flag
14938 # Flag to hardcode \$libdir into a binary during linking.
14939 # This must work even if \$libdir does not exist
14940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14942 # Whether we need a single "-rpath" flag with a separated argument.
14943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14946 # DIR into the resulting binary.
14947 hardcode_direct=$hardcode_direct
14949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14950 # DIR into the resulting binary and the resulting library dependency is
14951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14952 # library is relocated.
14953 hardcode_direct_absolute=$hardcode_direct_absolute
14955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14956 # into the resulting binary.
14957 hardcode_minus_L=$hardcode_minus_L
14959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14960 # into the resulting binary.
14961 hardcode_shlibpath_var=$hardcode_shlibpath_var
14963 # Set to "yes" if building a shared library automatically hardcodes DIR
14964 # into the library and all subsequent libraries and executables linked
14966 hardcode_automatic=$hardcode_automatic
14968 # Set to yes if linker adds runtime paths of dependent libraries
14969 # to runtime path list.
14970 inherit_rpath=$inherit_rpath
14972 # Whether libtool must link a program against all its dependency libraries.
14973 link_all_deplibs=$link_all_deplibs
14975 # Set to "yes" if exported symbols are required.
14976 always_export_symbols=$always_export_symbols
14978 # The commands to list exported symbols.
14979 export_symbols_cmds=$lt_export_symbols_cmds
14981 # Symbols that should not be listed in the preloaded symbols.
14982 exclude_expsyms=$lt_exclude_expsyms
14984 # Symbols that must always be exported.
14985 include_expsyms=$lt_include_expsyms
14987 # Commands necessary for linking programs (against libraries) with templates.
14988 prelink_cmds=$lt_prelink_cmds
14990 # Commands necessary for finishing linking programs.
14991 postlink_cmds=$lt_postlink_cmds
14993 # Specify filename containing input files.
14994 file_list_spec=$lt_file_list_spec
14996 # How to hardcode a shared library path into an executable.
14997 hardcode_action=$hardcode_action
14999 # ### END LIBTOOL CONFIG
15005 cat <<\_LT_EOF >> "$cfgfile"
15006 # AIX sometimes has problems with the GCC collect2 program. For some
15007 # reason, if we set the COLLECT_NAMES environment variable, the problems
15008 # vanish in a puff of smoke.
15009 if test "X${COLLECT_NAMES+set}" != Xset; then
15011 export COLLECT_NAMES
15018 ltmain="$ac_aux_dir/ltmain.sh"
15021 # We use sed instead of cat because bash on DJGPP gets confused if
15022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15023 # text mode, it properly converts lines to CR/LF. This bash problem
15024 # is reportedly fixed, but why not run on old versions too?
15025 sed '$q' "$ltmain" >> "$cfgfile" \
15026 || (rm -f "$cfgfile"; exit 1)
15028 if test x"$xsi_shell" = xyes; then
15029 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15033 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15034 \ * ) func_dirname_result="${3}" ;;\
15036 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15037 && mv -f "$cfgfile.tmp" "$cfgfile" \
15038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15039 test 0 -eq $? || _lt_function_replace_fail=:
15042 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15045 \ func_basename_result="${1##*/}"\
15046 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15047 && mv -f "$cfgfile.tmp" "$cfgfile" \
15048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15049 test 0 -eq $? || _lt_function_replace_fail=:
15052 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15053 func_dirname_and_basename ()\
15056 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15057 \ * ) func_dirname_result="${3}" ;;\
15059 \ func_basename_result="${1##*/}"\
15060 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15061 && mv -f "$cfgfile.tmp" "$cfgfile" \
15062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15063 test 0 -eq $? || _lt_function_replace_fail=:
15066 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15069 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15070 \ # positional parameters, so assign one to ordinary parameter first.\
15071 \ func_stripname_result=${3}\
15072 \ func_stripname_result=${func_stripname_result#"${1}"}\
15073 \ func_stripname_result=${func_stripname_result%"${2}"}\
15074 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15075 && mv -f "$cfgfile.tmp" "$cfgfile" \
15076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15077 test 0 -eq $? || _lt_function_replace_fail=:
15080 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15081 func_split_long_opt ()\
15083 \ func_split_long_opt_name=${1%%=*}\
15084 \ func_split_long_opt_arg=${1#*=}\
15085 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15086 && mv -f "$cfgfile.tmp" "$cfgfile" \
15087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15088 test 0 -eq $? || _lt_function_replace_fail=:
15091 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15092 func_split_short_opt ()\
15094 \ func_split_short_opt_arg=${1#??}\
15095 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15096 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15097 && mv -f "$cfgfile.tmp" "$cfgfile" \
15098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15099 test 0 -eq $? || _lt_function_replace_fail=:
15102 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15106 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15107 \ *) func_lo2o_result=${1} ;;\
15109 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15110 && mv -f "$cfgfile.tmp" "$cfgfile" \
15111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15112 test 0 -eq $? || _lt_function_replace_fail=:
15115 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15118 func_xform_result=${1%.*}.lo\
15119 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15120 && mv -f "$cfgfile.tmp" "$cfgfile" \
15121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15122 test 0 -eq $? || _lt_function_replace_fail=:
15125 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15128 func_arith_result=$(( $* ))\
15129 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15130 && mv -f "$cfgfile.tmp" "$cfgfile" \
15131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15132 test 0 -eq $? || _lt_function_replace_fail=:
15135 sed -e '/^func_len ()$/,/^} # func_len /c\
15138 func_len_result=${#1}\
15139 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15140 && mv -f "$cfgfile.tmp" "$cfgfile" \
15141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15142 test 0 -eq $? || _lt_function_replace_fail=:
15146 if test x"$lt_shell_append" = xyes; then
15147 sed -e '/^func_append ()$/,/^} # func_append /c\
15150 eval "${1}+=\\${2}"\
15151 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15152 && mv -f "$cfgfile.tmp" "$cfgfile" \
15153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15154 test 0 -eq $? || _lt_function_replace_fail=:
15157 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15158 func_append_quoted ()\
15160 \ func_quote_for_eval "${2}"\
15161 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15162 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15163 && mv -f "$cfgfile.tmp" "$cfgfile" \
15164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15165 test 0 -eq $? || _lt_function_replace_fail=:
15168 # Save a `func_append' function call where possible by direct use of '+='
15169 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15170 && mv -f "$cfgfile.tmp" "$cfgfile" \
15171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15172 test 0 -eq $? || _lt_function_replace_fail=:
15174 # Save a `func_append' function call even when '+=' is not available
15175 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15176 && mv -f "$cfgfile.tmp" "$cfgfile" \
15177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15178 test 0 -eq $? || _lt_function_replace_fail=:
15181 if test x"$_lt_function_replace_fail" = x":"; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15183 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15187 mv -f "$cfgfile" "$ofile" ||
15188 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15199 ac_clean_files=$ac_clean_files_save
15201 test $ac_write_fail = 0 ||
15202 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15205 # configure is writing to config.log, and then calls config.status.
15206 # config.status does its own redirection, appending to config.log.
15207 # Unfortunately, on DOS this fails, as config.log is still kept open
15208 # by configure, so config.status won't be able to write to it; its
15209 # output is simply discarded. So we exec the FD to /dev/null,
15210 # effectively closing config.log, so it can be properly (re)opened and
15211 # appended to by config.status. When coming back to configure, we
15212 # need to make the FD available again.
15213 if test "$no_create" != yes; then
15215 ac_config_status_args=
15216 test "$silent" = yes &&
15217 ac_config_status_args="$ac_config_status_args --quiet"
15219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15222 # would make configure fail if this is the last instruction.
15223 $ac_cs_success || as_fn_exit 1
15227 # CONFIG_SUBDIRS section.
15229 if test "$no_recursion" != yes; then
15231 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15232 # so they do not pile up.
15233 ac_sub_configure_args=
15235 eval "set x $ac_configure_args"
15239 if test -n "$ac_prev"; then
15244 -cache-file | --cache-file | --cache-fil | --cache-fi \
15245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15246 ac_prev=cache_file ;;
15247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15251 --config-cache | -C)
15253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15261 --disable-option-checking)
15265 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15267 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15271 # Always prepend --prefix to ensure using the same prefix
15272 # in subdir configurations.
15273 ac_arg="--prefix=$prefix"
15275 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15277 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15280 if test "$silent" = yes; then
15281 ac_sub_configure_args="--silent $ac_sub_configure_args"
15284 # Always prepend --disable-option-checking to silence warnings, since
15285 # different subdirs can have different --enable and --with options.
15286 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15289 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15291 # Do not complain, so a configure script can configure whichever
15292 # parts of a large source tree are present.
15293 test -d "$srcdir/$ac_dir" || continue
15295 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15296 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15297 $as_echo "$ac_msg" >&6
15298 as_dir="$ac_dir"; as_fn_mkdir_p
15302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15305 # A ".." for each directory in $ac_dir_suffix.
15306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15307 case $ac_top_builddir_sub in
15308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15312 ac_abs_top_builddir=$ac_pwd
15313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15314 # for backward compatibility:
15315 ac_top_builddir=$ac_top_build_prefix
15318 .) # We are building in place.
15320 ac_top_srcdir=$ac_top_builddir_sub
15321 ac_abs_top_srcdir=$ac_pwd ;;
15322 [\\/]* | ?:[\\/]* ) # Absolute name.
15323 ac_srcdir=$srcdir$ac_dir_suffix;
15324 ac_top_srcdir=$srcdir
15325 ac_abs_top_srcdir=$srcdir ;;
15326 *) # Relative name.
15327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15328 ac_top_srcdir=$ac_top_build_prefix$srcdir
15329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15336 # Check for guested configure; otherwise get Cygnus style configure.
15337 if test -f "$ac_srcdir/configure.gnu"; then
15338 ac_sub_configure=$ac_srcdir/configure.gnu
15339 elif test -f "$ac_srcdir/configure"; then
15340 ac_sub_configure=$ac_srcdir/configure
15341 elif test -f "$ac_srcdir/configure.in"; then
15342 # This should be Cygnus configure.
15343 ac_sub_configure=$ac_aux_dir/configure
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15346 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15350 # The recursion is here.
15351 if test -n "$ac_sub_configure"; then
15352 # Make the cache file name correct relative to the subdirectory.
15353 case $cache_file in
15354 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15355 *) # Relative name.
15356 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15359 { $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
15360 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15361 # The eval makes quoting arguments work.
15362 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15363 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15364 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15376 echo "-------------------------------------------------------------------------------"
15379 echo " There have been some changes starting with 3.2 regarding where and how libnl"
15380 echo " is being installed on the system in order to allow multiple libnl versions"
15381 echo " to be installed in parallel:"
15383 echo " - Headers will be installed in ${includedir}/libnl${MAJ_VERSION}, therefore"
15384 echo " you will need to add \"-I/usr/include/libnl${MAJ_VERSION}\" to CFLAGS"
15386 echo " - The library basename was renamed to libnl-${MAJ_VERSION}, i.e. the SO names become"
15387 echo " libnl-${MAJ_VERSION}.so., libnl-route-${MAJ_VERSION}.so, etc."
15389 echo " - libtool versioning was assumed, to ease detection of compatible library"
15392 echo " If you are using pkg-config for detecting and linking against the library "
15393 echo " things will continue magically as if nothing every happened. If you are "
15394 echo " linking manually you need to adapt your Makefiles or switch to using "
15395 echo " pkg-config files."
15397 echo "-------------------------------------------------------------------------------"