2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for neard 0.6.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='neard'
590 PACKAGE_VERSION='0.6'
591 PACKAGE_STRING='neard 0.6'
595 ac_default_prefix=/usr/local
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
713 MAINTAINER_MODE_FALSE
727 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
784 enable_maintainer_mode
785 enable_dependency_tracking
804 ac_precious_vars='build_alias
828 # Initialize some variables set by options.
830 ac_init_version=false
831 ac_unrecognized_opts=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
986 -help | --help | --hel | --he | -h)
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1135 -site=* | --site=* | --sit=*)
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1262 # Be sure to have absolute directory names.
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1366 \`configure' configures neard 0.6 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/neard]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of neard 0.6:";;
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-silent-rules less verbose build output (undo: `make V=1')
1445 --disable-silent-rules verbose build output (undo: `make V=0')
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --disable-dependency-tracking speeds up one-time build
1449 --enable-dependency-tracking do not reject slow dependency extractors
1450 --enable-static[=PKGS] build static libraries [default=no]
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --disable-optimization disable code optimization through compiler
1456 --enable-debug enable compiling with debugging information
1457 --enable-pie enable position independent executables flag
1458 --enable-test enable test/example scripts
1459 --enable-tools enable testing tools
1460 --disable-nfctype1 disable NFC forum type 1 tags support
1461 --disable-nfctype2 disable NFC forum type 2 tags support
1462 --disable-nfctype3 disable NFC forum type 3 tags support
1463 --disable-nfctype4 disable NFC forum type 4 tags support
1464 --disable-p2p disable NFC peer to peer support
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-sysroot=DIR Search for dependent libraries within DIR
1473 (or the compiler's sysroot if not specified).
1475 Some influential environment variables:
1476 PKG_CONFIG path to pkg-config utility
1478 directories to add to pkg-config's search path
1480 path overriding pkg-config's built-in search path
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1489 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1491 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1492 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1494 C compiler flags for LIBNL3, overriding pkg-config
1495 LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config
1497 C compiler flags for LIBNL2, overriding pkg-config
1498 LIBNL2_LIBS linker flags for LIBNL2, overriding pkg-config
1500 C compiler flags for LIBNL1, overriding pkg-config
1501 LIBNL1_LIBS linker flags for LIBNL1, overriding pkg-config
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 Report bugs to the package provider.
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1536 .) # We are building in place.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1570 generated by GNU Autoconf 2.69
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_compile
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_link
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile "$LINENO"; then :
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 } # ac_fn_c_check_header_compile
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=$ac_status
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1800 # include <limits.h>
1802 # include <assert.h>
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1829 if ac_fn_c_try_link "$LINENO"; then :
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_func
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1847 It was created by neard $as_me 0.6, which was
1848 generated by GNU Autoconf 2.69. Invocation command line was
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 $as_echo "PATH: $as_dir"
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_must_keep_next=false
1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916 | -silent | --silent | --silen | --sile | --sil)
1919 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1924 as_fn_append ac_configure_args1 " '$ac_arg'"
1925 if test $ac_must_keep_next = true; then
1926 ac_must_keep_next=false # Got value, back to normal.
1929 *=* | --config-cache | -C | -disable-* | --disable-* \
1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932 | -with-* | --with-* | -without-* | --without-* | --x)
1933 case "$ac_configure_args0 " in
1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937 -* ) ac_must_keep_next=true ;;
1940 as_fn_append ac_configure_args " '$ac_arg'"
1945 { ac_configure_args0=; unset ac_configure_args0;}
1946 { ac_configure_args1=; unset ac_configure_args1;}
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log. We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954 # Save into config.log some information that might help in debugging.
1958 $as_echo "## ---------------- ##
1959 ## Cache variables. ##
1960 ## ---------------- ##"
1962 # The following way of writing the cache mishandles newlines in values,
1964 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1965 eval ac_val=\$$ac_var
1969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973 _ | IFS | as_nl) ;; #(
1974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1975 *) { eval $ac_var=; unset $ac_var;} ;;
1980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981 *${as_nl}ac_space=\ *)
1983 "s/'\''/'\''\\\\'\'''\''/g;
1984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1994 $as_echo "## ----------------- ##
1995 ## Output variables. ##
1996 ## ----------------- ##"
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 $as_echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2009 $as_echo "## ------------------- ##
2010 ## File substitutions. ##
2011 ## ------------------- ##"
2013 for ac_var in $ac_subst_files
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 $as_echo "$ac_var='\''$ac_val'\''"
2024 if test -s confdefs.h; then
2025 $as_echo "## ----------- ##
2032 test "$ac_signal" != 0 &&
2033 $as_echo "$as_me: caught signal $ac_signal"
2034 $as_echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 $as_echo "/* confdefs.h */" > confdefs.h
2050 # Predefined preprocessor variables.
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_STRING "$PACKAGE_STRING"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_URL "$PACKAGE_URL"
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2081 if test -n "$CONFIG_SITE"; then
2082 # We do not want a PATH search for config.site.
2083 case $CONFIG_SITE in #((
2084 -*) ac_site_file1=./$CONFIG_SITE;;
2085 */*) ac_site_file1=$CONFIG_SITE;;
2086 *) ac_site_file1=./$CONFIG_SITE;;
2088 elif test "x$prefix" != xNONE; then
2089 ac_site_file1=$prefix/share/config.site
2090 ac_site_file2=$prefix/etc/config.site
2092 ac_site_file1=$ac_default_prefix/share/config.site
2093 ac_site_file2=$ac_default_prefix/etc/config.site
2095 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2097 test "x$ac_site_file" = xNONE && continue
2098 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2100 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2103 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2105 as_fn_error $? "failed to load site script $ac_site_file
2106 See \`config.log' for more details" "$LINENO" 5; }
2110 if test -r "$cache_file"; then
2111 # Some versions of bash will fail to source /dev/null (special files
2112 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2113 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2115 $as_echo "$as_me: loading cache $cache_file" >&6;}
2117 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118 *) . "./$cache_file";;
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2123 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 # Check that the precious variables saved in the cache have kept the same
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132 eval ac_new_set=\$ac_env_${ac_var}_set
2133 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134 eval ac_new_val=\$ac_env_${ac_var}_value
2135 case $ac_old_set,$ac_new_set in
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2142 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2146 if test "x$ac_old_val" != "x$ac_new_val"; then
2147 # differences in whitespace do not lead to failure.
2148 ac_old_val_w=`echo x $ac_old_val`
2149 ac_new_val_w=`echo x $ac_new_val`
2150 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2152 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2153 ac_cache_corrupted=:
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2156 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2157 eval $ac_var=\$ac_old_val
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2160 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2162 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2165 # Pass precious variables to config.status.
2166 if test "$ac_new_set" = set; then
2168 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 *) ac_arg=$ac_var=$ac_new_val ;;
2171 case " $ac_configure_args " in
2172 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2173 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 if $ac_cache_corrupted; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2181 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2182 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2184 ## -------------------- ##
2185 ## Main body of script. ##
2186 ## -------------------- ##
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 am__api_version='1.11'
2199 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200 if test -f "$ac_dir/install-sh"; then
2202 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 elif test -f "$ac_dir/install.sh"; then
2206 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 elif test -f "$ac_dir/shtool"; then
2210 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 if test -z "$ac_aux_dir"; then
2215 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2218 # These three variables are undocumented and unsupported,
2219 # and are intended to be withdrawn in a future Autoconf release.
2220 # They can cause serious problems if a builder's source tree is in a directory
2221 # whose full name contains unusual characters.
2222 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2223 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2224 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2227 # Find a good install program. We prefer a C program (faster),
2228 # so one script is as good as another. But avoid the broken or
2229 # incompatible versions:
2230 # SysV /etc/install, /usr/sbin/install
2231 # SunOS /usr/etc/install
2232 # IRIX /sbin/install
2234 # AmigaOS /C/install, which installs bootblocks on floppy discs
2235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2238 # OS/2's system install, which has a completely different semantic
2239 # ./install, which can be erroneously created by make from ./install.sh.
2240 # Reject install programs that cannot install multiple files.
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2242 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2243 if test -z "$INSTALL"; then
2244 if ${ac_cv_path_install+:} false; then :
2245 $as_echo_n "(cached) " >&6
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 test -z "$as_dir" && as_dir=.
2252 # Account for people who put trailing slashes in PATH elements.
2253 case $as_dir/ in #((
2254 ./ | .// | /[cC]/* | \
2255 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2256 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2259 # OSF1 and SCO ODT 3.0 have their own names for install.
2260 # Don't use installbsd from OSF since it installs stuff as root
2262 for ac_prog in ginstall scoinst install; do
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2265 if test $ac_prog = install &&
2266 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267 # AIX install. It has an incompatible calling convention.
2269 elif test $ac_prog = install &&
2270 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # program-specific install script used by HP pwplus--don't use.
2274 rm -rf conftest.one conftest.two conftest.dir
2275 echo one > conftest.one
2276 echo two > conftest.two
2278 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2279 test -s conftest.one && test -s conftest.two &&
2280 test -s conftest.dir/conftest.one &&
2281 test -s conftest.dir/conftest.two
2283 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2296 rm -rf conftest.one conftest.two conftest.dir
2299 if test "${ac_cv_path_install+set}" = set; then
2300 INSTALL=$ac_cv_path_install
2302 # As a last resort, use the slow shell script. Don't cache a
2303 # value for INSTALL within a source directory, because that will
2304 # break other packages using the cache if that directory is
2305 # removed, or if the value is a relative name.
2306 INSTALL=$ac_install_sh
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2310 $as_echo "$INSTALL" >&6; }
2312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2313 # It thinks the first close brace ends the variable substitution.
2314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2321 $as_echo_n "checking whether build environment is sane... " >&6; }
2324 echo timestamp > conftest.file
2325 # Reject unsafe characters in $srcdir or the absolute working directory
2326 # name. Accept space and tab only in the latter.
2330 *[\\\"\#\$\&\'\`$am_lf]*)
2331 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2334 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2335 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2338 # Do `set' in a subshell so we don't clobber the current shell's
2339 # arguments. Must try -L first in case configure is actually a
2340 # symlink; some systems play weird games with the mod time of symlinks
2341 # (eg FreeBSD returns the mod time of the symlink's containing
2344 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2345 if test "$*" = "X"; then
2347 set X `ls -t "$srcdir/configure" conftest.file`
2350 if test "$*" != "X $srcdir/configure conftest.file" \
2351 && test "$*" != "X conftest.file $srcdir/configure"; then
2353 # If neither matched, then we have a broken ls. This can happen
2354 # if, for instance, CONFIG_SHELL is bash and it inherits a
2355 # broken ls alias from the environment. This has actually
2356 # happened. Such a system could not be considered "sane".
2357 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2358 alias in your environment" "$LINENO" 5
2361 test "$2" = conftest.file
2367 as_fn_error $? "newly created file is older than distributed files!
2368 Check your system clock" "$LINENO" 5
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2371 $as_echo "yes" >&6; }
2372 test "$program_prefix" != NONE &&
2373 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2374 # Use a double $ so make ignores it.
2375 test "$program_suffix" != NONE &&
2376 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2377 # Double any \ or $.
2378 # By default was `s,x,x', remove it if useless.
2379 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2380 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2382 # expand $ac_aux_dir to an absolute path
2383 am_aux_dir=`cd $ac_aux_dir && pwd`
2385 if test x"${MISSING+set}" != xset; then
2388 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2390 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2393 # Use eval to expand $SHELL
2394 if eval "$MISSING --run true"; then
2395 am_missing_run="$MISSING --run "
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2399 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2402 if test x"${install_sh}" != xset; then
2405 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2407 install_sh="\${SHELL} $am_aux_dir/install-sh"
2411 # Installed binaries are usually stripped using `strip' when the user
2412 # run `make install-strip'. However `strip' might not be the right
2413 # tool to use in cross-compilation environments, therefore Automake
2414 # will honor the `STRIP' environment variable to overrule this program.
2415 if test "$cross_compiling" != no; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}strip; ac_word=$2
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if ${ac_cv_prog_STRIP+:} false; then :
2422 $as_echo_n "(cached) " >&6
2424 if test -n "$STRIP"; then
2425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2434 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 STRIP=$ac_cv_prog_STRIP
2445 if test -n "$STRIP"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2447 $as_echo "$STRIP" >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2455 if test -z "$ac_cv_prog_STRIP"; then
2457 # Extract the first word of "strip", so it can be a program name with args.
2458 set dummy strip; ac_word=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2462 $as_echo_n "(cached) " >&6
2464 if test -n "$ac_ct_STRIP"; then
2465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_STRIP="strip"
2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2485 if test -n "$ac_ct_STRIP"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2487 $as_echo "$ac_ct_STRIP" >&6; }
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2493 if test "x$ac_ct_STRIP" = x; then
2496 case $cross_compiling:$ac_tool_warned in
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2500 ac_tool_warned=yes ;;
2505 STRIP="$ac_cv_prog_STRIP"
2509 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2512 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2513 if test -z "$MKDIR_P"; then
2514 if ${ac_cv_path_mkdir+:} false; then :
2515 $as_echo_n "(cached) " >&6
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2521 test -z "$as_dir" && as_dir=.
2522 for ac_prog in mkdir gmkdir; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2525 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2526 'mkdir (GNU coreutils) '* | \
2527 'mkdir (coreutils) '* | \
2528 'mkdir (fileutils) '4.1*)
2529 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2539 test -d ./--version && rmdir ./--version
2540 if test "${ac_cv_path_mkdir+set}" = set; then
2541 MKDIR_P="$ac_cv_path_mkdir -p"
2543 # As a last resort, use the slow shell script. Don't cache a
2544 # value for MKDIR_P within a source directory, because that will
2545 # break other packages using the cache if that directory is
2546 # removed, or if the value is a relative name.
2547 MKDIR_P="$ac_install_sh -d"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2551 $as_echo "$MKDIR_P" >&6; }
2555 [\\/$]* | ?:[\\/]*) ;;
2556 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2559 for ac_prog in gawk mawk nawk awk
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_AWK+:} false; then :
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$AWK"; then
2569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_AWK="$ac_prog"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test -n "$AWK"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2591 $as_echo "$AWK" >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2598 test -n "$AWK" && break
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2602 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2604 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2605 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 cat >conftest.make <<\_ACEOF
2611 @echo '@@@%%%=$(MAKE)=@@@%%%'
2613 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2614 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2616 eval ac_cv_prog_make_${ac_make}_set=yes;;
2618 eval ac_cv_prog_make_${ac_make}_set=no;;
2622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629 SET_MAKE="MAKE=${MAKE-make}"
2632 rm -rf .tst 2>/dev/null
2633 mkdir .tst 2>/dev/null
2634 if test -d .tst; then
2639 rmdir .tst 2>/dev/null
2641 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2643 # is not polluted with repeated "-I."
2644 am__isrc=' -I$(srcdir)'
2645 # test to see if srcdir already configured
2646 if test -f $srcdir/config.status; then
2647 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2651 # test whether we have cygpath
2652 if test -z "$CYGPATH_W"; then
2653 if (cygpath --version) >/dev/null 2>/dev/null; then
2654 CYGPATH_W='cygpath -w'
2661 # Define the identity of the package.
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE "$PACKAGE"
2671 cat >>confdefs.h <<_ACEOF
2672 #define VERSION "$VERSION"
2675 # Some tools Automake needs.
2677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2691 # We need awk for the "check" target. The system "awk" is bad on
2693 # Always define AMTAR for backward compatibility. Yes, it's still used
2694 # in the wild :-( We should find a proper way to deprecate it ...
2697 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2703 ac_config_headers="$ac_config_headers config.h"
2706 # Check whether --enable-silent-rules was given.
2707 if test "${enable_silent_rules+set}" = set; then :
2708 enableval=$enable_silent_rules;
2711 case $enable_silent_rules in
2712 yes) AM_DEFAULT_VERBOSITY=0;;
2713 no) AM_DEFAULT_VERBOSITY=1;;
2714 *) AM_DEFAULT_VERBOSITY=0;;
2716 am_make=${MAKE-make}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2718 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2719 if ${am_cv_make_support_nested_variables+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 if $as_echo 'TRUE=$(BAR$(V))
2728 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2729 am_cv_make_support_nested_variables=yes
2731 am_cv_make_support_nested_variables=no
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2735 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2736 if test $am_cv_make_support_nested_variables = yes; then
2738 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2740 AM_V=$AM_DEFAULT_VERBOSITY
2741 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2748 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2749 # Check whether --enable-maintainer-mode was given.
2750 if test "${enable_maintainer_mode+set}" = set; then :
2751 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2753 USE_MAINTAINER_MODE=no
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2757 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2758 if test $USE_MAINTAINER_MODE = yes; then
2759 MAINTAINER_MODE_TRUE=
2760 MAINTAINER_MODE_FALSE='#'
2762 MAINTAINER_MODE_TRUE='#'
2763 MAINTAINER_MODE_FALSE=
2766 MAINT=$MAINTAINER_MODE_TRUE
2772 if (test "${libdir}" = '${exec_prefix}/lib'); then
2773 libdir="${prefix}/lib"
2776 plugindir="${libdir}/near/plugins"
2785 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2792 $as_echo_n "(cached) " >&6
2796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2818 if test -n "$PKG_CONFIG"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2820 $as_echo "$PKG_CONFIG" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2828 if test -z "$ac_cv_path_PKG_CONFIG"; then
2829 ac_pt_PKG_CONFIG=$PKG_CONFIG
2830 # Extract the first word of "pkg-config", so it can be a program name with args.
2831 set dummy pkg-config; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 case $ac_pt_PKG_CONFIG in
2839 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2861 if test -n "$ac_pt_PKG_CONFIG"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2863 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2869 if test "x$ac_pt_PKG_CONFIG" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2878 PKG_CONFIG=$ac_pt_PKG_CONFIG
2881 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2885 if test -n "$PKG_CONFIG"; then
2886 _pkg_min_version=0.9.0
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2888 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2889 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2900 if (test "${CFLAGS}" = ""); then
2901 CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"
2903 if (test "$USE_MAINTAINER_MODE" = "yes"); then
2904 CFLAGS+=" -Werror -Wextra"
2905 CFLAGS+=" -Wno-unused-parameter"
2906 CFLAGS+=" -Wno-missing-field-initializers"
2907 CFLAGS+=" -Wdeclaration-after-statement"
2908 CFLAGS+=" -Wmissing-declarations"
2909 CFLAGS+=" -Wredundant-decls"
2910 CFLAGS+=" -Wcast-align"
2911 CFLAGS+=" -DG_DISABLE_DEPRECATED"
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2966 if test -z "$ac_cv_prog_CC"; then
2968 # Extract the first word of "gcc", so it can be a program name with args.
2969 set dummy gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CC="gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3004 if test "x$ac_ct_CC" = x; then
3007 case $cross_compiling:$ac_tool_warned in
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3060 if test -z "$CC"; then
3061 # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080 ac_prog_rejected=yes
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test $ac_prog_rejected = yes; then
3092 # We found a bogon in the path, so make sure we never use it.
3093 set dummy $ac_cv_prog_CC
3095 if test $# != 0; then
3096 # We chose a different compiler from the bogus one.
3097 # However, it has the same basename, so the bogon will be chosen
3098 # first if we set CC to just the basename; use the full file name.
3100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$CC" && break
3160 if test -z "$CC"; then
3162 for ac_prog in cl.exe
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CC="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$ac_ct_CC" && break
3204 if test "x$ac_ct_CC" = x; then
3207 case $cross_compiling:$ac_tool_warned in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3220 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details" "$LINENO" 5; }
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3229 for ac_option in --version -v -V -qversion; do
3230 { { ac_try="$ac_compiler $ac_option >&5"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239 if test -s conftest.err; then
3241 ... rest of stderr output deleted ...
3242 10q' conftest.err >conftest.er1
3243 cat conftest.er1 >&5
3245 rm -f conftest.er1 conftest.err
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267 $as_echo_n "checking whether the C compiler works... " >&6; }
3268 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270 # The possible output files:
3271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3274 for ac_file in $ac_files
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3283 if { { ac_try="$ac_link_default"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link_default") 2>&5
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3299 for ac_file in $ac_files ''
3301 test -f "$ac_file" || continue
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306 # We found the default executable, but exeext='' is most
3310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 # We set ac_cv_exeext here because the later test for it is not
3315 # safe: cross compilers may not add the suffix if given an `-o'
3316 # argument, so we may need to know it at that point already.
3317 # Even if this section looks crufty: it has the advantage of
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329 if test -z "$ac_file"; then :
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error 77 "C compiler cannot create executables
3338 See \`config.log' for more details" "$LINENO" 5; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3344 $as_echo_n "checking for C compiler default output file name... " >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3346 $as_echo "$ac_file" >&6; }
3347 ac_exeext=$ac_cv_exeext
3349 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3352 $as_echo_n "checking for suffix of executables... " >&6; }
3353 if { { ac_try="$ac_link"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3366 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 for ac_file in conftest.exe conftest conftest.*; do
3369 test -f "$ac_file" || continue
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 rm -f conftest conftest$ac_cv_exeext
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3385 $as_echo "$ac_cv_exeext" >&6; }
3387 rm -f conftest.$ac_ext
3388 EXEEXT=$ac_cv_exeext
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3396 FILE *f = fopen ("conftest.out", "w");
3397 return ferror (f) || fclose (f) != 0;
3403 ac_clean_files="$ac_clean_files conftest.out"
3404 # Check that the compiler produces executables we can run. If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 if test "$cross_compiling" != yes; then
3409 { { ac_try="$ac_link"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420 if { ac_try='./conftest$ac_cv_exeext'
3421 { { case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_try") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; }; then
3433 if test "$cross_compiling" = maybe; then
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot run C compiled programs.
3439 If you meant to cross compile, use \`--host'.
3440 See \`config.log' for more details" "$LINENO" 5; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445 $as_echo "$cross_compiling" >&6; }
3447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450 $as_echo_n "checking for suffix of object files... " >&6; }
3451 if ${ac_cv_objext+:} false; then :
3452 $as_echo_n "(cached) " >&6
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3465 rm -f conftest.o conftest.obj
3466 if { { ac_try="$ac_compile"
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compile") 2>&5
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details" "$LINENO" 5; }
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497 $as_echo "$ac_cv_objext" >&6; }
3498 OBJEXT=$ac_cv_objext
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502 if ${ac_cv_c_compiler_gnu+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530 if test $ac_compiler_gnu = yes; then
3535 ac_test_CFLAGS=${CFLAGS+set}
3536 ac_save_CFLAGS=$CFLAGS
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3539 if ${ac_cv_prog_cc_g+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 ac_save_c_werror_flag=$ac_c_werror_flag
3543 ac_c_werror_flag=yes
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3572 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile "$LINENO"; then :
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3609 if test "$GCC" = yes; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if ${ac_cv_prog_cc_c89+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 ac_cv_prog_cc_c89=no
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3628 struct buf { int x; };
3629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630 static char *e (p, i)
3636 static char *f (char * (*g) (char **, int), char **p, ...)
3641 s = g (p, va_arg (v,int));
3646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3647 function prototypes and stuff, but not '\xHH' hex character constants.
3648 These don't provoke an error unfortunately, instead are silently treated
3649 as 'x'. The following induces an error, until -std is added to get
3650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3651 array size at least. It's necessary to write '\x00'==0 to get something
3652 that's true only with -std. */
3653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656 inside strings and character constants. */
3658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3677 CC="$ac_save_CC $ac_arg"
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_cv_prog_cc_c89=$ac_arg
3681 rm -f core conftest.err conftest.$ac_objext
3682 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 rm -f conftest.$ac_ext
3689 case "x$ac_cv_prog_cc_c89" in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3692 $as_echo "none needed" >&6; } ;;
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3695 $as_echo "unsupported" >&6; } ;;
3697 CC="$CC $ac_cv_prog_cc_c89"
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3712 ac_config_commands="$ac_config_commands depfiles"
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3718 @echo this is the am__doit target
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then :
3756 enableval=$enable_dependency_tracking;
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3764 if test "x$enable_dependency_tracking" != xno; then
3774 depcc="$CC" am_compiler_list=
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named `D' -- because `-MD' means `put the output
3789 # Copy depcomp to subdir because otherwise we won't find it if we're
3790 # using a relative directory.
3791 cp "$am_depcomp" conftest.dir
3793 # We will build objects and dependencies in a subdirectory because
3794 # it helps to detect inapplicable dependency modes. For instance
3795 # both Tru64's cc and ICC support -MD to output dependencies as a
3796 # side effect of compilation, but ICC will put the dependencies in
3797 # the current directory while Tru64 will put them in the object
3801 am_cv_CC_dependencies_compiler_type=none
3802 if test "$am_compiler_list" = ""; then
3803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806 case " $depcc " in #(
3807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822 # Solaris 8's {/usr,}/bin/sh.
3823 touch sub/conftst$i.h
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle `-M -o', and we need to detect this. Also, some Intel
3830 # versions had trouble with output in subdirs
3831 am__obj=sub/conftest.${OBJEXT-o}
3832 am__minus_obj="-o $am__obj"
3835 # This depmode causes a compiler race in universal mode.
3836 test "$am__universal" = false || continue
3839 # after this tag, mechanisms are not by side-effect, so they'll
3840 # only be used when explicitly requested
3841 if test "x$enable_dependency_tracking" = xyes; then
3847 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848 # This compiler won't grok `-c -o', but also, the minuso test has
3849 # not run yet. These depmodes are late enough in the game, and
3850 # so weak that their functioning should not be impacted.
3851 am__obj=conftest.${OBJEXT-o}
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=$am__obj \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3883 am_cv_CC_dependencies_compiler_type=none
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_FALSE='#'
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
3904 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
3905 if ${ac_cv_prog_cc_pie+:} false; then :
3906 $as_echo_n "(cached) " >&6
3909 echo 'void f(){}' > conftest.c
3910 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
3911 ac_cv_prog_cc_pie=yes
3913 ac_cv_prog_cc_pie=no
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
3919 $as_echo "$ac_cv_prog_cc_pie" >&6; }
3926 # Check whether --enable-static was given.
3927 if test "${enable_static+set}" = set; then :
3928 enableval=$enable_static; p=${PACKAGE-default}
3930 yes) enable_static=yes ;;
3931 no) enable_static=no ;;
3934 # Look at the argument we got. We use all the common list separators.
3935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3936 for pkg in $enableval; do
3938 if test "X$pkg" = "X$p"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3960 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3965 macro_version='2.4.2'
3966 macro_revision='1.3337'
3980 ltmain="$ac_aux_dir/ltmain.sh"
3982 # Make sure we can run config.sub.
3983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3984 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3987 $as_echo_n "checking build system type... " >&6; }
3988 if ${ac_cv_build+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_build_alias=$build_alias
3992 test "x$ac_build_alias" = x &&
3993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3994 test "x$ac_build_alias" = x &&
3995 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3996 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3997 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4001 $as_echo "$ac_cv_build" >&6; }
4002 case $ac_cv_build in
4004 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4007 ac_save_IFS=$IFS; IFS='-'
4013 # Remember, the first character of IFS is used to create $*,
4014 # except with old shells:
4017 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4021 $as_echo_n "checking host system type... " >&6; }
4022 if ${ac_cv_host+:} false; then :
4023 $as_echo_n "(cached) " >&6
4025 if test "x$host_alias" = x; then
4026 ac_cv_host=$ac_cv_build
4028 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4029 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4034 $as_echo "$ac_cv_host" >&6; }
4037 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4040 ac_save_IFS=$IFS; IFS='-'
4046 # Remember, the first character of IFS is used to create $*,
4047 # except with old shells:
4050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4053 # Backslashify metacharacters that are still active within
4054 # double-quoted strings.
4055 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4057 # Same as above, but do not quote variable references.
4058 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4060 # Sed substitution to delay expansion of an escaped shell variable in a
4061 # double_quote_subst'ed string.
4062 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4064 # Sed substitution to delay expansion of an escaped single quote.
4065 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4067 # Sed substitution to avoid accidental globbing in evaled expressions
4068 no_glob_subst='s/\*/\\\*/g'
4070 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4071 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4075 $as_echo_n "checking how to print strings... " >&6; }
4076 # Test print first, because it will be a builtin if present.
4077 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4078 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4080 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4083 # Use this function as a fallback that always works.
4084 func_fallback_echo ()
4086 eval 'cat <<_LTECHO_EOF
4090 ECHO='func_fallback_echo'
4093 # func_echo_all arg...
4094 # Invoke $ECHO with all args, space-separated.
4101 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4102 $as_echo "printf" >&6; } ;;
4103 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4104 $as_echo "print -r" >&6; } ;;
4105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4106 $as_echo "cat" >&6; } ;;
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4124 if ${ac_cv_path_SED+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4128 for ac_i in 1 2 3 4 5 6 7; do
4129 ac_script="$ac_script$as_nl$ac_script"
4131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4132 { ac_script=; unset ac_script;}
4133 if test -z "$SED"; then
4134 ac_path_SED_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in sed gsed; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4144 as_fn_executable_p "$ac_path_SED" || continue
4145 # Check for GNU ac_path_SED and select it if it is found.
4146 # Check for GNU $ac_path_SED
4147 case `"$ac_path_SED" --version 2>&1` in
4149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152 $as_echo_n 0123456789 >"conftest.in"
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo '' >> "conftest.nl"
4159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_SED_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_SED="$ac_path_SED"
4165 ac_path_SED_max=$ac_count
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 $ac_path_SED_found && break 3
4178 if test -z "$ac_cv_path_SED"; then
4179 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4187 $as_echo "$ac_cv_path_SED" >&6; }
4188 SED="$ac_cv_path_SED"
4191 test -z "$SED" && SED=sed
4192 Xsed="$SED -e 1s/^X//"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if ${ac_cv_path_GREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 as_fn_executable_p "$ac_path_GREP" || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 $as_echo_n 0123456789 >"conftest.in"
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 $ac_path_GREP_found && break 3
4254 if test -z "$ac_cv_path_GREP"; then
4255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258 ac_cv_path_GREP=$GREP
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263 $as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268 $as_echo_n "checking for egrep... " >&6; }
4269 if ${ac_cv_path_EGREP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286 as_fn_executable_p "$ac_path_EGREP" || continue
4287 # Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289 case `"$ac_path_EGREP" --version 2>&1` in
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294 $as_echo_n 0123456789 >"conftest.in"
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 $ac_path_EGREP_found && break 3
4320 if test -z "$ac_cv_path_EGREP"; then
4321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4324 ac_cv_path_EGREP=$EGREP
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330 $as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4335 $as_echo_n "checking for fgrep... " >&6; }
4336 if ${ac_cv_path_FGREP+:} false; then :
4337 $as_echo_n "(cached) " >&6
4339 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4340 then ac_cv_path_FGREP="$GREP -F"
4342 if test -z "$FGREP"; then
4343 ac_path_FGREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in fgrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p "$ac_path_FGREP" || continue
4354 # Check for GNU ac_path_FGREP and select it if it is found.
4355 # Check for GNU $ac_path_FGREP
4356 case `"$ac_path_FGREP" --version 2>&1` in
4358 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4361 $as_echo_n 0123456789 >"conftest.in"
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'FGREP' >> "conftest.nl"
4368 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_FGREP="$ac_path_FGREP"
4374 ac_path_FGREP_max=$ac_count
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382 $ac_path_FGREP_found && break 3
4387 if test -z "$ac_cv_path_FGREP"; then
4388 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391 ac_cv_path_FGREP=$FGREP
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4397 $as_echo "$ac_cv_path_FGREP" >&6; }
4398 FGREP="$ac_cv_path_FGREP"
4401 test -z "$GREP" && GREP=grep
4421 # Check whether --with-gnu-ld was given.
4422 if test "${with_gnu_ld+set}" = set; then :
4423 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4429 if test "$GCC" = yes; then
4430 # Check if gcc -print-prog-name=ld gives a path.
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4432 $as_echo_n "checking for ld used by $CC... " >&6; }
4435 # gcc leaves a trailing carriage return which upsets mingw
4436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4441 # Accept absolute paths.
4443 re_direlt='/[^/][^/]*/\.\./'
4444 # Canonicalize the pathname of ld
4445 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4446 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4447 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4449 test -z "$LD" && LD="$ac_prog"
4452 # If it fails, then pretend we aren't using GCC.
4456 # If it is relative, then search for the first ld in PATH.
4460 elif test "$with_gnu_ld" = yes; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4462 $as_echo_n "checking for GNU ld... " >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4465 $as_echo_n "checking for non-GNU ld... " >&6; }
4467 if ${lt_cv_path_LD+:} false; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -z "$LD"; then
4471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4472 for ac_dir in $PATH; do
4474 test -z "$ac_dir" && ac_dir=.
4475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4476 lt_cv_path_LD="$ac_dir/$ac_prog"
4477 # Check to see if the program is GNU ld. I'd rather use --version,
4478 # but apparently some variants of GNU ld only accept -v.
4479 # Break only if it was the GNU/non-GNU ld that we prefer.
4480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4481 *GNU* | *'with BFD'*)
4482 test "$with_gnu_ld" != no && break
4485 test "$with_gnu_ld" != yes && break
4492 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4497 if test -n "$LD"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4499 $as_echo "$LD" >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4507 if ${lt_cv_prog_gnu_ld+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4511 case `$LD -v 2>&1 </dev/null` in
4512 *GNU* | *'with BFD'*)
4513 lt_cv_prog_gnu_ld=yes
4516 lt_cv_prog_gnu_ld=no
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4522 with_gnu_ld=$lt_cv_prog_gnu_ld
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4533 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4534 if ${lt_cv_path_NM+:} false; then :
4535 $as_echo_n "(cached) " >&6
4537 if test -n "$NM"; then
4538 # Let the user override the test.
4541 lt_nm_to_check="${ac_tool_prefix}nm"
4542 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4543 lt_nm_to_check="$lt_nm_to_check nm"
4545 for lt_tmp_nm in $lt_nm_to_check; do
4546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4547 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4549 test -z "$ac_dir" && ac_dir=.
4550 tmp_nm="$ac_dir/$lt_tmp_nm"
4551 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4552 # Check to see if the nm accepts a BSD-compat flag.
4553 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4554 # nm: unknown option "B" ignored
4555 # Tru64's nm complains that /dev/null is an invalid object file
4556 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4557 */dev/null* | *'Invalid file or object type'*)
4558 lt_cv_path_NM="$tmp_nm -B"
4562 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4564 lt_cv_path_NM="$tmp_nm -p"
4568 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4569 continue # so that we can try to find one that supports BSD flags
4578 : ${lt_cv_path_NM=no}
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4582 $as_echo "$lt_cv_path_NM" >&6; }
4583 if test "$lt_cv_path_NM" != "no"; then
4586 # Didn't find any BSD compatible name lister, look for dumpbin.
4587 if test -n "$DUMPBIN"; then :
4588 # Let the user override the test.
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in dumpbin "link -dump"
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_DUMPBIN+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$DUMPBIN"; then
4601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 DUMPBIN=$ac_cv_prog_DUMPBIN
4621 if test -n "$DUMPBIN"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4623 $as_echo "$DUMPBIN" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$DUMPBIN" && break
4633 if test -z "$DUMPBIN"; then
4634 ac_ct_DUMPBIN=$DUMPBIN
4635 for ac_prog in dumpbin "link -dump"
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$ac_ct_DUMPBIN"; then
4645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4665 if test -n "$ac_ct_DUMPBIN"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4667 $as_echo "$ac_ct_DUMPBIN" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$ac_ct_DUMPBIN" && break
4677 if test "x$ac_ct_DUMPBIN" = x; then
4680 case $cross_compiling:$ac_tool_warned in
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4686 DUMPBIN=$ac_ct_DUMPBIN
4690 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4692 DUMPBIN="$DUMPBIN -symbols"
4700 if test "$DUMPBIN" != ":"; then
4704 test -z "$NM" && NM=nm
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4713 if ${lt_cv_nm_interface+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 lt_cv_nm_interface="BSD nm"
4717 echo "int some_variable = 0;" > conftest.$ac_ext
4718 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4719 (eval "$ac_compile" 2>conftest.err)
4720 cat conftest.err >&5
4721 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4722 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4723 cat conftest.err >&5
4724 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4725 cat conftest.out >&5
4726 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4727 lt_cv_nm_interface="MS dumpbin"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4732 $as_echo "$lt_cv_nm_interface" >&6; }
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4735 $as_echo_n "checking whether ln -s works... " >&6; }
4737 if test "$LN_S" = "ln -s"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4739 $as_echo "yes" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4742 $as_echo "no, using $LN_S" >&6; }
4745 # find the maximum length of command line arguments
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4748 if ${lt_cv_sys_max_cmd_len+:} false; then :
4749 $as_echo_n "(cached) " >&6
4756 # On DJGPP, this test can blow up pretty badly due to problems in libc
4757 # (any single argument exceeding 2000 bytes causes a buffer overrun
4758 # during glob expansion). Even if it were fixed, the result of this
4759 # check would be larger than it should be.
4760 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4764 # Under GNU Hurd, this test is not required because there is
4765 # no limit to the length of command line arguments.
4766 # Libtool will interpret -1 as no limit whatsoever
4767 lt_cv_sys_max_cmd_len=-1;
4770 cygwin* | mingw* | cegcc*)
4771 # On Win9x/ME, this test blows up -- it succeeds, but takes
4772 # about 5 minutes as the teststring grows exponentially.
4773 # Worse, since 9x/ME are not pre-emptively multitasking,
4774 # you end up with a "frozen" computer, even though with patience
4775 # the test eventually succeeds (with a max line length of 256k).
4776 # Instead, let's just punt: use the minimum linelength reported by
4777 # all of the supported platforms: 8192 (on NT/2K/XP).
4778 lt_cv_sys_max_cmd_len=8192;
4782 # On MiNT this can take a long time and run out of memory.
4783 lt_cv_sys_max_cmd_len=8192;
4787 # On AmigaOS with pdksh, this test takes hours, literally.
4788 # So we just punt and use a minimum line length of 8192.
4789 lt_cv_sys_max_cmd_len=8192;
4792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4793 # This has been around since 386BSD, at least. Likely further.
4794 if test -x /sbin/sysctl; then
4795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4796 elif test -x /usr/sbin/sysctl; then
4797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4801 # And add a safety zone
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4808 lt_cv_sys_max_cmd_len=196608
4812 # The test takes a long time on OS/2.
4813 lt_cv_sys_max_cmd_len=8192
4817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4819 # nice to cause kernel panics so lets avoid the loop below.
4820 # First set a reasonable default.
4821 lt_cv_sys_max_cmd_len=16384
4823 if test -x /sbin/sysconfig; then
4824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4825 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4830 lt_cv_sys_max_cmd_len=102400
4832 sysv5* | sco5v6* | sysv4.2uw2*)
4833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4834 if test -n "$kargmax"; then
4835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4837 lt_cv_sys_max_cmd_len=32768
4841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4842 if test -n "$lt_cv_sys_max_cmd_len"; then
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4846 # Make teststring a little bigger before we do anything with it.
4847 # a 1K string should be a reasonable start.
4848 for i in 1 2 3 4 5 6 7 8 ; do
4849 teststring=$teststring$teststring
4851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4852 # If test is not a shell built-in, we'll probably end up computing a
4853 # maximum length that is only half of the actual maximum length, but
4855 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4856 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4857 test $i != 17 # 1/2 MB should be enough
4860 teststring=$teststring$teststring
4862 # Only check the string length outside the loop.
4863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4865 # Add a significant safety factor because C++ compilers can tack on
4866 # massive amounts of additional arguments before passing them to the
4867 # linker. It appears as though 1/2 is a usable value.
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875 if test -n $lt_cv_sys_max_cmd_len ; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4877 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4880 $as_echo "none" >&6; }
4882 max_cmd_len=$lt_cv_sys_max_cmd_len
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4894 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4895 # Try some XSI features
4898 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4900 && eval 'test $(( 1 + 1 )) -eq 2 \
4901 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4904 $as_echo "$xsi_shell" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4908 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4910 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4912 && lt_shell_append=yes
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4914 $as_echo "$lt_shell_append" >&6; }
4917 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4927 # test EBCDIC or ASCII
4928 case `echo X|tr X '\101'` in
4929 A) # ASCII based system
4930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4931 lt_SP2NL='tr \040 \012'
4932 lt_NL2SP='tr \015\012 \040\040'
4934 *) # EBCDIC based system
4935 lt_SP2NL='tr \100 \n'
4936 lt_NL2SP='tr \r\n \100\100'
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4949 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4950 if ${lt_cv_to_host_file_cmd+:} false; then :
4951 $as_echo_n "(cached) " >&6
4956 *-*-mingw* ) # actually msys
4957 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4960 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4962 * ) # otherwise, assume *nix
4963 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4969 *-*-mingw* ) # actually msys
4970 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4973 lt_cv_to_host_file_cmd=func_convert_file_noop
4975 * ) # otherwise, assume *nix
4976 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4980 * ) # unhandled hosts (and "normal" native builds)
4981 lt_cv_to_host_file_cmd=func_convert_file_noop
4987 to_host_file_cmd=$lt_cv_to_host_file_cmd
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4989 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4996 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4997 if ${lt_cv_to_tool_file_cmd+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 #assume ordinary cross tools, or native build.
5001 lt_cv_to_tool_file_cmd=func_convert_file_noop
5005 *-*-mingw* ) # actually msys
5006 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5014 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5016 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5024 if ${lt_cv_ld_reload_flag+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 lt_cv_ld_reload_flag='-r'
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5031 reload_flag=$lt_cv_ld_reload_flag
5032 case $reload_flag in
5034 *) reload_flag=" $reload_flag" ;;
5036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5038 cygwin* | mingw* | pw32* | cegcc*)
5039 if test "$GCC" != yes; then
5044 if test "$GCC" = yes; then
5045 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_OBJDUMP+:} false; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$OBJDUMP"; then
5069 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 OBJDUMP=$ac_cv_prog_OBJDUMP
5089 if test -n "$OBJDUMP"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5091 $as_echo "$OBJDUMP" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5099 if test -z "$ac_cv_prog_OBJDUMP"; then
5100 ac_ct_OBJDUMP=$OBJDUMP
5101 # Extract the first word of "objdump", so it can be a program name with args.
5102 set dummy objdump; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$ac_ct_OBJDUMP"; then
5109 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5129 if test -n "$ac_ct_OBJDUMP"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5131 $as_echo "$ac_ct_OBJDUMP" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5137 if test "x$ac_ct_OBJDUMP" = x; then
5140 case $cross_compiling:$ac_tool_warned in
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5146 OBJDUMP=$ac_ct_OBJDUMP
5149 OBJDUMP="$ac_cv_prog_OBJDUMP"
5152 test -z "$OBJDUMP" && OBJDUMP=objdump
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5163 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5164 if ${lt_cv_deplibs_check_method+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 lt_cv_file_magic_cmd='$MAGIC_CMD'
5168 lt_cv_file_magic_test_file=
5169 lt_cv_deplibs_check_method='unknown'
5170 # Need to set the preceding variable on all platforms that support
5171 # interlibrary dependencies.
5172 # 'none' -- dependencies not supported.
5173 # `unknown' -- same as none, but documents that we really don't know.
5174 # 'pass_all' -- all dependencies passed with no checks.
5175 # 'test_compile' -- check by making test program.
5176 # 'file_magic [[regex]]' -- check by looking for files in library path
5177 # which responds to the $file_magic_cmd with a given extended regex.
5178 # If you have `file' or equivalent on your system and you're not sure
5179 # whether `pass_all' will *always* work, you probably want this one.
5183 lt_cv_deplibs_check_method=pass_all
5187 lt_cv_deplibs_check_method=pass_all
5191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5192 lt_cv_file_magic_cmd='/usr/bin/file -L'
5193 lt_cv_file_magic_test_file=/shlib/libc.so
5197 # func_win32_libid is a shell function defined in ltmain.sh
5198 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5199 lt_cv_file_magic_cmd='func_win32_libid'
5203 # Base MSYS/MinGW do not provide the 'file' command needed by
5204 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5205 # unless we find 'file', for example because we are cross-compiling.
5206 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5207 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5209 lt_cv_file_magic_cmd='func_win32_libid'
5211 # Keep this pattern in sync with the one in func_win32_libid.
5212 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5213 lt_cv_file_magic_cmd='$OBJDUMP -f'
5218 # use the weaker test based on 'objdump'. See mingw*.
5219 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5220 lt_cv_file_magic_cmd='$OBJDUMP -f'
5223 darwin* | rhapsody*)
5224 lt_cv_deplibs_check_method=pass_all
5227 freebsd* | dragonfly*)
5228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5231 # Not sure whether the presence of OpenBSD here was a mistake.
5232 # Let's accept both of them until this is cleared up.
5233 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5234 lt_cv_file_magic_cmd=/usr/bin/file
5235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5239 lt_cv_deplibs_check_method=pass_all
5244 lt_cv_deplibs_check_method=pass_all
5247 hpux10.20* | hpux11*)
5248 lt_cv_file_magic_cmd=/usr/bin/file
5251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5252 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5255 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]'
5256 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5260 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5266 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5270 irix5* | irix6* | nonstopux*)
5272 *-32|*"-32 ") libmagic=32-bit;;
5273 *-n32|*"-n32 ") libmagic=N32;;
5274 *-64|*"-64 ") libmagic=64-bit;;
5275 *) libmagic=never-match;;
5277 lt_cv_deplibs_check_method=pass_all
5280 # This must be glibc/ELF.
5281 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5282 lt_cv_deplibs_check_method=pass_all
5285 netbsd* | netbsdelf*-gnu)
5286 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5295 lt_cv_file_magic_cmd=/usr/bin/file
5296 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5300 lt_cv_deplibs_check_method=pass_all
5304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311 osf3* | osf4* | osf5*)
5312 lt_cv_deplibs_check_method=pass_all
5316 lt_cv_deplibs_check_method=pass_all
5320 lt_cv_deplibs_check_method=pass_all
5323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5324 lt_cv_deplibs_check_method=pass_all
5328 case $host_vendor in
5330 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]'
5331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5334 lt_cv_deplibs_check_method=pass_all
5337 lt_cv_file_magic_cmd='/bin/file'
5338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5341 lt_cv_file_magic_cmd='/bin/file'
5342 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5343 lt_cv_file_magic_test_file=/lib/libc.so
5346 lt_cv_deplibs_check_method=pass_all
5349 lt_cv_deplibs_check_method=pass_all
5355 lt_cv_deplibs_check_method=pass_all
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5361 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5365 if test "$build" = "$host"; then
5368 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5371 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5377 file_magic_cmd=$lt_cv_file_magic_cmd
5378 deplibs_check_method=$lt_cv_deplibs_check_method
5379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5402 if test -n "$ac_tool_prefix"; then
5403 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5404 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_DLLTOOL+:} false; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$DLLTOOL"; then
5411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 DLLTOOL=$ac_cv_prog_DLLTOOL
5431 if test -n "$DLLTOOL"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5433 $as_echo "$DLLTOOL" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5441 if test -z "$ac_cv_prog_DLLTOOL"; then
5442 ac_ct_DLLTOOL=$DLLTOOL
5443 # Extract the first word of "dlltool", so it can be a program name with args.
5444 set dummy dlltool; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5448 $as_echo_n "(cached) " >&6
5450 if test -n "$ac_ct_DLLTOOL"; then
5451 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5471 if test -n "$ac_ct_DLLTOOL"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5473 $as_echo "$ac_ct_DLLTOOL" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5479 if test "x$ac_ct_DLLTOOL" = x; then
5482 case $cross_compiling:$ac_tool_warned in
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5486 ac_tool_warned=yes ;;
5488 DLLTOOL=$ac_ct_DLLTOOL
5491 DLLTOOL="$ac_cv_prog_DLLTOOL"
5494 test -z "$DLLTOOL" && DLLTOOL=dlltool
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5506 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5507 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 lt_cv_sharedlib_from_linklib_cmd='unknown'
5513 cygwin* | mingw* | pw32* | cegcc*)
5514 # two different shell functions defined in ltmain.sh
5515 # decide which to use based on capabilities of $DLLTOOL
5516 case `$DLLTOOL --help 2>&1` in
5517 *--identify-strict*)
5518 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5521 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5526 # fallback: assume linklib IS sharedlib
5527 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5533 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5534 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5535 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5544 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_AR+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 if test -n "$AR"; then
5555 ac_cv_prog_AR="$AR" # Let the user override the test.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 if test -n "$AR"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5577 $as_echo "$AR" >&6; }
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5584 test -n "$AR" && break
5587 if test -z "$AR"; then
5591 # Extract the first word of "$ac_prog", so it can be a program name with args.
5592 set dummy $ac_prog; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 if test -n "$ac_ct_AR"; then
5599 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_ac_ct_AR="$ac_prog"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5619 if test -n "$ac_ct_AR"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5621 $as_echo "$ac_ct_AR" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5628 test -n "$ac_ct_AR" && break
5631 if test "x$ac_ct_AR" = x; then
5634 case $cross_compiling:$ac_tool_warned in
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5658 $as_echo_n "checking for archiver @FILE support... " >&6; }
5659 if ${lt_cv_ar_at_file+:} false; then :
5660 $as_echo_n "(cached) " >&6
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5674 if ac_fn_c_try_compile "$LINENO"; then :
5675 echo conftest.$ac_objext > conftest.lst
5676 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5678 (eval $lt_ar_try) 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }
5682 if test "$ac_status" -eq 0; then
5683 # Ensure the archiver fails upon bogus file names.
5684 rm -f conftest.$ac_objext libconftest.a
5685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5686 (eval $lt_ar_try) 2>&5
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; }
5690 if test "$ac_status" -ne 0; then
5694 rm -f conftest.* libconftest.a
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5701 $as_echo "$lt_cv_ar_at_file" >&6; }
5703 if test "x$lt_cv_ar_at_file" = xno; then
5706 archiver_list_spec=$lt_cv_ar_at_file
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}strip; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_STRIP+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$STRIP"; then
5724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 STRIP=$ac_cv_prog_STRIP
5744 if test -n "$STRIP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746 $as_echo "$STRIP" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_STRIP"; then
5756 # Extract the first word of "strip", so it can be a program name with args.
5757 set dummy strip; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$ac_ct_STRIP"; then
5764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_ac_ct_STRIP="strip"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784 if test -n "$ac_ct_STRIP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786 $as_echo "$ac_ct_STRIP" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_STRIP" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5804 STRIP="$ac_cv_prog_STRIP"
5807 test -z "$STRIP" && STRIP=:
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_RANLIB+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$RANLIB"; then
5823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845 $as_echo "$RANLIB" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856 set dummy ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883 if test -n "$ac_ct_RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885 $as_echo "$ac_ct_RANLIB" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_RANLIB" = x; then
5894 case $cross_compiling:$ac_tool_warned in
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5900 RANLIB=$ac_ct_RANLIB
5903 RANLIB="$ac_cv_prog_RANLIB"
5906 test -z "$RANLIB" && RANLIB=:
5913 # Determine commands to create old-style static archives.
5914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915 old_postinstall_cmds='chmod 644 $oldlib'
5916 old_postuninstall_cmds=
5918 if test -n "$RANLIB"; then
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5932 lock_old_archive_extraction=yes ;;
5934 lock_old_archive_extraction=no ;;
5975 # If no C compiler was specified, use CC.
5978 # If no C compiler flags were specified, use CFLAGS.
5979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5981 # Allow CC to be a program name with arguments.
5985 # Check for command to grab the raw symbol name followed by C symbol from nm.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5989 $as_echo_n "(cached) " >&6
5992 # These are sane defaults that work on at least a few old systems.
5993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5995 # Character class describing NM global symbol codes.
5996 symcode='[BCDEGRST]'
5998 # Regexp to match symbols that can be accessed directly from C.
5999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6001 # Define system-specific variables.
6006 cygwin* | mingw* | pw32* | cegcc*)
6007 symcode='[ABCDGISTW]'
6010 if test "$host_cpu" = ia64; then
6011 symcode='[ABCDEGRST]'
6015 symcode='[BCDEGRST]'
6018 symcode='[BCDEGQRST]'
6029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6037 # If we're using GNU nm, then use its standard symbol codes.
6038 case `$NM -V 2>&1` in
6039 *GNU* | *'with BFD'*)
6040 symcode='[ABCDGIRSTW]' ;;
6043 # Transform an extracted symbol line into a proper C declaration.
6044 # Some systems (esp. on ia64) link data and code symbols differently,
6045 # so use this general approach.
6046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 # Transform an extracted symbol line into symbol name and symbol address
6049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6050 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'"
6052 # Handle CRLF in mingw tool chain
6056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6060 # Try without a prefix underscore, then with it.
6061 for ac_symprfx in "" "_"; do
6063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064 symxfrm="\\1 $ac_symprfx\\2 \\2"
6066 # Write the raw and C identifiers.
6067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068 # Fake it for dumpbin and say T for any non-static function
6069 # and D for any global variable.
6070 # Also find C++ and __fastcall symbols from MSVC++,
6071 # which start with @ or ?.
6072 lt_cv_sys_global_symbol_pipe="$AWK '"\
6073 " {last_section=section; section=\$ 3};"\
6074 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6075 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6076 " \$ 0!~/External *\|/{next};"\
6077 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6078 " {if(hide[section]) next};"\
6079 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6080 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6081 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6082 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6083 " ' prfx=^$ac_symprfx"
6085 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6089 # Check to see that the pipe works correctly.
6093 cat > conftest.$ac_ext <<_LT_EOF
6098 void nm_test_func(void);
6099 void nm_test_func(void){}
6103 int main(){nm_test_var='a';nm_test_func();return(0);}
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 # Now try to grab the symbols.
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; } && test -s "$nlist"; then
6118 # Try sorting and uniquifying the output.
6119 if sort "$nlist" | uniq > "$nlist"T; then
6120 mv -f "$nlist"T "$nlist"
6125 # Make sure that we snagged all the symbols we need.
6126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128 cat <<_LT_EOF > conftest.$ac_ext
6129 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6130 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6131 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6132 relocations are performed -- see ld's documentation on pseudo-relocs. */
6133 # define LT_DLSYM_CONST
6134 #elif defined(__osf__)
6135 /* This system does not cope well with relocations in const data. */
6136 # define LT_DLSYM_CONST
6138 # define LT_DLSYM_CONST const
6146 # Now generate the symbol file.
6147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149 cat <<_LT_EOF >> conftest.$ac_ext
6151 /* The mapping between symbol names and symbols. */
6152 LT_DLSYM_CONST struct {
6156 lt__PROGRAM__LTX_preloaded_symbols[] =
6158 { "@PROGRAM@", (void *) 0 },
6160 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6161 cat <<\_LT_EOF >> conftest.$ac_ext
6165 /* This works around a problem in FreeBSD linker */
6166 #ifdef FREEBSD_WORKAROUND
6167 static const void *lt_preloaded_setup() {
6168 return lt__PROGRAM__LTX_preloaded_symbols;
6176 # Now try linking the two files.
6177 mv conftest.$ac_objext conftstm.$ac_objext
6178 lt_globsym_save_LIBS=$LIBS
6179 lt_globsym_save_CFLAGS=$CFLAGS
6180 LIBS="conftstm.$ac_objext"
6181 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6183 (eval $ac_link) 2>&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6189 LIBS=$lt_globsym_save_LIBS
6190 CFLAGS=$lt_globsym_save_CFLAGS
6192 echo "cannot find nm_test_func in $nlist" >&5
6195 echo "cannot find nm_test_var in $nlist" >&5
6198 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6201 echo "$progname: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 rm -rf conftest* conftst*
6206 # Do not use the global_symbol_pipe unless it works.
6207 if test "$pipe_works" = yes; then
6210 lt_cv_sys_global_symbol_pipe=
6216 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6217 lt_cv_sys_global_symbol_to_cdecl=
6219 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6221 $as_echo "failed" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6224 $as_echo "ok" >&6; }
6227 # Response file support.
6228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6229 nm_file_list_spec='@'
6230 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6231 nm_file_list_spec='@'
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6261 $as_echo_n "checking for sysroot... " >&6; }
6263 # Check whether --with-sysroot was given.
6264 if test "${with_sysroot+set}" = set; then :
6265 withval=$with_sysroot;
6272 case ${with_sysroot} in #(
6274 if test "$GCC" = yes; then
6275 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6279 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6285 $as_echo "${with_sysroot}" >&6; }
6286 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6291 $as_echo "${lt_sysroot:-no}" >&6; }
6297 # Check whether --enable-libtool-lock was given.
6298 if test "${enable_libtool_lock+set}" = set; then :
6299 enableval=$enable_libtool_lock;
6302 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6304 # Some flags need to be propagated to the compiler or linker for good
6308 # Find out which ABI we are using.
6309 echo 'int i;' > conftest.$ac_ext
6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6311 (eval $ac_compile) 2>&5
6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314 test $ac_status = 0; }; then
6315 case `/usr/bin/file conftest.$ac_objext` in
6327 # Find out which ABI we are using.
6328 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6330 (eval $ac_compile) 2>&5
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }; then
6334 if test "$lt_cv_prog_gnu_ld" = yes; then
6335 case `/usr/bin/file conftest.$ac_objext` in
6337 LD="${LD-ld} -melf32bsmip"
6340 LD="${LD-ld} -melf32bmipn32"
6343 LD="${LD-ld} -melf64bmip"
6347 case `/usr/bin/file conftest.$ac_objext` in
6363 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6364 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6365 # Find out which ABI we are using.
6366 echo 'int i;' > conftest.$ac_ext
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368 (eval $ac_compile) 2>&5
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; }; then
6372 case `/usr/bin/file conftest.o` in
6375 x86_64-*kfreebsd*-gnu)
6376 LD="${LD-ld} -m elf_i386_fbsd"
6379 LD="${LD-ld} -m elf_i386"
6381 ppc64-*linux*|powerpc64-*linux*)
6382 LD="${LD-ld} -m elf32ppclinux"
6385 LD="${LD-ld} -m elf_s390"
6388 LD="${LD-ld} -m elf32_sparc"
6394 x86_64-*kfreebsd*-gnu)
6395 LD="${LD-ld} -m elf_x86_64_fbsd"
6398 LD="${LD-ld} -m elf_x86_64"
6400 ppc*-*linux*|powerpc*-*linux*)
6401 LD="${LD-ld} -m elf64ppc"
6403 s390*-*linux*|s390*-*tpf*)
6404 LD="${LD-ld} -m elf64_s390"
6407 LD="${LD-ld} -m elf64_sparc"
6417 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6418 SAVE_CFLAGS="$CFLAGS"
6419 CFLAGS="$CFLAGS -belf"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6421 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6422 if ${lt_cv_cc_needs_belf+:} false; then :
6423 $as_echo_n "(cached) " >&6
6426 ac_cpp='$CPP $CPPFLAGS'
6427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6442 if ac_fn_c_try_link "$LINENO"; then :
6443 lt_cv_cc_needs_belf=yes
6445 lt_cv_cc_needs_belf=no
6447 rm -f core conftest.err conftest.$ac_objext \
6448 conftest$ac_exeext conftest.$ac_ext
6450 ac_cpp='$CPP $CPPFLAGS'
6451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6457 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6458 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6459 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6460 CFLAGS="$SAVE_CFLAGS"
6464 # Find out which ABI we are using.
6465 echo 'int i;' > conftest.$ac_ext
6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467 (eval $ac_compile) 2>&5
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; then
6471 case `/usr/bin/file conftest.o` in
6473 case $lt_cv_prog_gnu_ld in
6477 LD="${LD-ld} -m elf_x86_64"
6480 LD="${LD-ld} -m elf64_sparc"
6483 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6484 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6489 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6501 need_locks="$enable_libtool_lock"
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}mt; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -n "$MANIFEST_TOOL"; then
6512 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6532 if test -n "$MANIFEST_TOOL"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6534 $as_echo "$MANIFEST_TOOL" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6543 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6544 # Extract the first word of "mt", so it can be a program name with args.
6545 set dummy mt; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$ac_ct_MANIFEST_TOOL"; then
6552 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6572 if test -n "$ac_ct_MANIFEST_TOOL"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6574 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6583 case $cross_compiling:$ac_tool_warned in
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6589 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6592 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6595 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6597 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6598 if ${lt_cv_path_mainfest_tool+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 lt_cv_path_mainfest_tool=no
6602 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6603 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6604 cat conftest.err >&5
6605 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6606 lt_cv_path_mainfest_tool=yes
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6611 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6612 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6622 rhapsody* | darwin*)
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$DSYMUTIL"; then
6632 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6652 if test -n "$DSYMUTIL"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6654 $as_echo "$DSYMUTIL" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_DSYMUTIL"; then
6663 ac_ct_DSYMUTIL=$DSYMUTIL
6664 # Extract the first word of "dsymutil", so it can be a program name with args.
6665 set dummy dsymutil; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$ac_ct_DSYMUTIL"; then
6672 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6692 if test -n "$ac_ct_DSYMUTIL"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6694 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_DSYMUTIL" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6709 DSYMUTIL=$ac_ct_DSYMUTIL
6712 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_NMEDIT+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$NMEDIT"; then
6724 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 NMEDIT=$ac_cv_prog_NMEDIT
6744 if test -n "$NMEDIT"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6746 $as_echo "$NMEDIT" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6754 if test -z "$ac_cv_prog_NMEDIT"; then
6755 ac_ct_NMEDIT=$NMEDIT
6756 # Extract the first word of "nmedit", so it can be a program name with args.
6757 set dummy nmedit; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$ac_ct_NMEDIT"; then
6764 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6784 if test -n "$ac_ct_NMEDIT"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6786 $as_echo "$ac_ct_NMEDIT" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6792 if test "x$ac_ct_NMEDIT" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6801 NMEDIT=$ac_ct_NMEDIT
6804 NMEDIT="$ac_cv_prog_NMEDIT"
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_LIPO+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$LIPO"; then
6816 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 LIPO=$ac_cv_prog_LIPO
6836 if test -n "$LIPO"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6838 $as_echo "$LIPO" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6846 if test -z "$ac_cv_prog_LIPO"; then
6848 # Extract the first word of "lipo", so it can be a program name with args.
6849 set dummy lipo; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6853 $as_echo_n "(cached) " >&6
6855 if test -n "$ac_ct_LIPO"; then
6856 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865 ac_cv_prog_ac_ct_LIPO="lipo"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6876 if test -n "$ac_ct_LIPO"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6878 $as_echo "$ac_ct_LIPO" >&6; }
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6884 if test "x$ac_ct_LIPO" = x; then
6887 case $cross_compiling:$ac_tool_warned in
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6896 LIPO="$ac_cv_prog_LIPO"
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}otool; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_OTOOL+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 if test -n "$OTOOL"; then
6908 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 OTOOL=$ac_cv_prog_OTOOL
6928 if test -n "$OTOOL"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6930 $as_echo "$OTOOL" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6938 if test -z "$ac_cv_prog_OTOOL"; then
6940 # Extract the first word of "otool", so it can be a program name with args.
6941 set dummy otool; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6945 $as_echo_n "(cached) " >&6
6947 if test -n "$ac_ct_OTOOL"; then
6948 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957 ac_cv_prog_ac_ct_OTOOL="otool"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6968 if test -n "$ac_ct_OTOOL"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6970 $as_echo "$ac_ct_OTOOL" >&6; }
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6976 if test "x$ac_ct_OTOOL" = x; then
6979 case $cross_compiling:$ac_tool_warned in
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6988 OTOOL="$ac_cv_prog_OTOOL"
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_OTOOL64+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 if test -n "$OTOOL64"; then
7000 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 OTOOL64=$ac_cv_prog_OTOOL64
7020 if test -n "$OTOOL64"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7022 $as_echo "$OTOOL64" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7030 if test -z "$ac_cv_prog_OTOOL64"; then
7031 ac_ct_OTOOL64=$OTOOL64
7032 # Extract the first word of "otool64", so it can be a program name with args.
7033 set dummy otool64; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7037 $as_echo_n "(cached) " >&6
7039 if test -n "$ac_ct_OTOOL64"; then
7040 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_OTOOL64="otool64"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7060 if test -n "$ac_ct_OTOOL64"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7062 $as_echo "$ac_ct_OTOOL64" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7068 if test "x$ac_ct_OTOOL64" = x; then
7071 case $cross_compiling:$ac_tool_warned in
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7077 OTOOL64=$ac_ct_OTOOL64
7080 OTOOL64="$ac_cv_prog_OTOOL64"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7110 $as_echo_n "checking for -single_module linker flag... " >&6; }
7111 if ${lt_cv_apple_cc_single_mod+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 lt_cv_apple_cc_single_mod=no
7115 if test -z "${LT_MULTI_MODULE}"; then
7116 # By default we will add the -single_module flag. You can override
7117 # by either setting the environment variable LT_MULTI_MODULE
7118 # non-empty at configure time, or by adding -multi_module to the
7120 rm -rf libconftest.dylib*
7121 echo "int foo(void){return 1;}" > conftest.c
7122 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7123 -dynamiclib -Wl,-single_module conftest.c" >&5
7124 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7125 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7127 # If there is a non-empty error log, and "single_module"
7128 # appears in it, assume the flag caused a linker warning
7129 if test -s conftest.err && $GREP single_module conftest.err; then
7130 cat conftest.err >&5
7131 # Otherwise, if the output was created with a 0 exit code from
7132 # the compiler, it worked.
7133 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7134 lt_cv_apple_cc_single_mod=yes
7136 cat conftest.err >&5
7138 rm -rf libconftest.dylib*
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7143 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7146 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7147 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 lt_cv_ld_exported_symbols_list=no
7151 save_LDFLAGS=$LDFLAGS
7152 echo "_main" > conftest.sym
7153 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 lt_cv_ld_exported_symbols_list=yes
7168 lt_cv_ld_exported_symbols_list=no
7170 rm -f core conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 LDFLAGS="$save_LDFLAGS"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7176 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7179 $as_echo_n "checking for -force_load linker flag... " >&6; }
7180 if ${lt_cv_ld_force_load+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 lt_cv_ld_force_load=no
7184 cat > conftest.c << _LT_EOF
7185 int forced_loaded() { return 2;}
7187 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7188 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7189 echo "$AR cru libconftest.a conftest.o" >&5
7190 $AR cru libconftest.a conftest.o 2>&5
7191 echo "$RANLIB libconftest.a" >&5
7192 $RANLIB libconftest.a 2>&5
7193 cat > conftest.c << _LT_EOF
7194 int main() { return 0;}
7196 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7197 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7199 if test -s conftest.err && $GREP force_load conftest.err; then
7200 cat conftest.err >&5
7201 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7202 lt_cv_ld_force_load=yes
7204 cat conftest.err >&5
7206 rm -f conftest.err libconftest.a conftest conftest.c
7207 rm -rf conftest.dSYM
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7211 $as_echo "$lt_cv_ld_force_load" >&6; }
7213 rhapsody* | darwin1.[012])
7214 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7216 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217 darwin*) # darwin 5.x on
7218 # if running on 10.5 or later, the deployment target defaults
7219 # to the OS version, if on x86, and 10.4, the deployment
7220 # target defaults to 10.4. Don't you love it?
7221 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7222 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7232 _lt_dar_single_mod='$single_module'
7234 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7235 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7237 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7239 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7240 _lt_dsymutil='~$DSYMUTIL $lib || :'
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7253 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7258 if test -z "$CPP"; then
7259 if ${ac_cv_prog_CPP+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 # Double quotes because CPP needs to be expanded
7263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7266 for ac_c_preproc_warn_flag in '' yes
7268 # Use a header file that comes with gcc, so configuring glibc
7269 # with a fresh cross-compiler works.
7270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 # <limits.h> exists even on freestanding compilers.
7272 # On the NeXT, cc -E runs the code through the compiler's parser,
7273 # not just through cpp. "Syntax error" is here to catch this case.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7277 # include <limits.h>
7279 # include <assert.h>
7283 if ac_fn_c_try_cpp "$LINENO"; then :
7286 # Broken: fails on valid input.
7289 rm -f conftest.err conftest.i conftest.$ac_ext
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <ac_nonexistent.h>
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7298 # Broken: success on invalid input.
7301 # Passes both tests.
7305 rm -f conftest.err conftest.i conftest.$ac_ext
7308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309 rm -f conftest.i conftest.err conftest.$ac_ext
7310 if $ac_preproc_ok; then :
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7323 $as_echo "$CPP" >&6; }
7325 for ac_c_preproc_warn_flag in '' yes
7327 # Use a header file that comes with gcc, so configuring glibc
7328 # with a fresh cross-compiler works.
7329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330 # <limits.h> exists even on freestanding compilers.
7331 # On the NeXT, cc -E runs the code through the compiler's parser,
7332 # not just through cpp. "Syntax error" is here to catch this case.
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7336 # include <limits.h>
7338 # include <assert.h>
7342 if ac_fn_c_try_cpp "$LINENO"; then :
7345 # Broken: fails on valid input.
7348 rm -f conftest.err conftest.i conftest.$ac_ext
7350 # OK, works on sane cases. Now check whether nonexistent headers
7351 # can be detected and how.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <ac_nonexistent.h>
7356 if ac_fn_c_try_cpp "$LINENO"; then :
7357 # Broken: success on invalid input.
7360 # Passes both tests.
7364 rm -f conftest.err conftest.i conftest.$ac_ext
7367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7368 rm -f conftest.i conftest.err conftest.$ac_ext
7369 if $ac_preproc_ok; then :
7372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7374 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7375 See \`config.log' for more details" "$LINENO" 5; }
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7386 $as_echo_n "checking for ANSI C header files... " >&6; }
7387 if ${ac_cv_header_stdc+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_header_stdc=yes
7408 ac_cv_header_stdc=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 if test $ac_cv_header_stdc = yes; then
7413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420 $EGREP "memchr" >/dev/null 2>&1; then :
7423 ac_cv_header_stdc=no
7429 if test $ac_cv_header_stdc = yes; then
7430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437 $EGREP "free" >/dev/null 2>&1; then :
7440 ac_cv_header_stdc=no
7446 if test $ac_cv_header_stdc = yes; then
7447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7448 if test "$cross_compiling" = yes; then :
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7455 #if ((' ' & 0x0FF) == 0x020)
7456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7459 # define ISLOWER(c) \
7460 (('a' <= (c) && (c) <= 'i') \
7461 || ('j' <= (c) && (c) <= 'r') \
7462 || ('s' <= (c) && (c) <= 'z'))
7463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7471 for (i = 0; i < 256; i++)
7472 if (XOR (islower (i), ISLOWER (i))
7473 || toupper (i) != TOUPPER (i))
7478 if ac_fn_c_try_run "$LINENO"; then :
7481 ac_cv_header_stdc=no
7483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7484 conftest.$ac_objext conftest.beam conftest.$ac_ext
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7490 $as_echo "$ac_cv_header_stdc" >&6; }
7491 if test $ac_cv_header_stdc = yes; then
7493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7499 inttypes.h stdint.h unistd.h
7501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7505 cat >>confdefs.h <<_ACEOF
7506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 for ac_header in dlfcn.h
7516 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7518 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7519 cat >>confdefs.h <<_ACEOF
7520 #define HAVE_DLFCN_H 1
7541 # Check whether --enable-shared was given.
7542 if test "${enable_shared+set}" = set; then :
7543 enableval=$enable_shared; p=${PACKAGE-default}
7545 yes) enable_shared=yes ;;
7546 no) enable_shared=no ;;
7549 # Look at the argument we got. We use all the common list separators.
7550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7551 for pkg in $enableval; do
7553 if test "X$pkg" = "X$p"; then
7574 # Check whether --with-pic was given.
7575 if test "${with_pic+set}" = set; then :
7576 withval=$with_pic; lt_p=${PACKAGE-default}
7578 yes|no) pic_mode=$withval ;;
7581 # Look at the argument we got. We use all the common list separators.
7582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7583 for lt_pkg in $withval; do
7585 if test "X$lt_pkg" = "X$lt_p"; then
7597 test -z "$pic_mode" && pic_mode=default
7605 # Check whether --enable-fast-install was given.
7606 if test "${enable_fast_install+set}" = set; then :
7607 enableval=$enable_fast_install; p=${PACKAGE-default}
7609 yes) enable_fast_install=yes ;;
7610 no) enable_fast_install=no ;;
7612 enable_fast_install=no
7613 # Look at the argument we got. We use all the common list separators.
7614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7615 for pkg in $enableval; do
7617 if test "X$pkg" = "X$p"; then
7618 enable_fast_install=yes
7625 enable_fast_install=yes
7638 # This can be used to rebuild libtool when needed
7639 LIBTOOL_DEPS="$ltmain"
7641 # Always use our own libtool.
7642 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7673 test -z "$LN_S" && LN_S="ln -s"
7688 if test -n "${ZSH_VERSION+set}" ; then
7689 setopt NO_GLOB_SUBST
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7693 $as_echo_n "checking for objdir... " >&6; }
7694 if ${lt_cv_objdir+:} false; then :
7695 $as_echo_n "(cached) " >&6
7697 rm -f .libs 2>/dev/null
7698 mkdir .libs 2>/dev/null
7699 if test -d .libs; then
7702 # MS-DOS does not allow filenames that begin with a dot.
7705 rmdir .libs 2>/dev/null
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7708 $as_echo "$lt_cv_objdir" >&6; }
7709 objdir=$lt_cv_objdir
7715 cat >>confdefs.h <<_ACEOF
7716 #define LT_OBJDIR "$lt_cv_objdir/"
7724 # AIX sometimes has problems with the GCC collect2 program. For some
7725 # reason, if we set the COLLECT_NAMES environment variable, the problems
7726 # vanish in a puff of smoke.
7727 if test "X${COLLECT_NAMES+set}" != Xset; then
7729 export COLLECT_NAMES
7736 can_build_shared=yes
7738 # All known linkers require a `.a' archive for static linking (except MSVC,
7739 # which needs '.lib').
7742 with_gnu_ld="$lt_cv_prog_gnu_ld"
7745 old_CFLAGS="$CFLAGS"
7747 # Set sane defaults for various variables
7748 test -z "$CC" && CC=cc
7749 test -z "$LTCC" && LTCC=$CC
7750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7751 test -z "$LD" && LD=ld
7752 test -z "$ac_objext" && ac_objext=o
7754 for cc_temp in $compiler""; do
7756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7762 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7765 # Only perform the check for file, if the check method requires it
7766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7767 case $deplibs_check_method in
7769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7772 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7773 $as_echo_n "(cached) " >&6
7777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7780 lt_save_MAGIC_CMD="$MAGIC_CMD"
7781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7783 for ac_dir in $ac_dummy; do
7785 test -z "$ac_dir" && ac_dir=.
7786 if test -f $ac_dir/${ac_tool_prefix}file; then
7787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7788 if test -n "$file_magic_test_file"; then
7789 case $deplibs_check_method in
7791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7794 $EGREP "$file_magic_regex" > /dev/null; then
7799 *** Warning: the command libtool uses to detect shared libraries,
7800 *** $file_magic_cmd, produces output that libtool cannot recognize.
7801 *** The result is that libtool may fail to recognize shared libraries
7802 *** as such. This will affect the creation of libtool libraries that
7803 *** depend on shared libraries, but programs linked with such libtool
7804 *** libraries will work regardless of this problem. Nevertheless, you
7805 *** may want to report the problem to your system manager and/or to
7806 *** bug-libtool@gnu.org
7816 MAGIC_CMD="$lt_save_MAGIC_CMD"
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if test -n "$MAGIC_CMD"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7824 $as_echo "$MAGIC_CMD" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7834 if test -z "$lt_cv_path_MAGIC_CMD"; then
7835 if test -n "$ac_tool_prefix"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7837 $as_echo_n "checking for file... " >&6; }
7838 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7839 $as_echo_n "(cached) " >&6
7843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7846 lt_save_MAGIC_CMD="$MAGIC_CMD"
7847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7849 for ac_dir in $ac_dummy; do
7851 test -z "$ac_dir" && ac_dir=.
7852 if test -f $ac_dir/file; then
7853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7854 if test -n "$file_magic_test_file"; then
7855 case $deplibs_check_method in
7857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7860 $EGREP "$file_magic_regex" > /dev/null; then
7865 *** Warning: the command libtool uses to detect shared libraries,
7866 *** $file_magic_cmd, produces output that libtool cannot recognize.
7867 *** The result is that libtool may fail to recognize shared libraries
7868 *** as such. This will affect the creation of libtool libraries that
7869 *** depend on shared libraries, but programs linked with such libtool
7870 *** libraries will work regardless of this problem. Nevertheless, you
7871 *** may want to report the problem to your system manager and/or to
7872 *** bug-libtool@gnu.org
7882 MAGIC_CMD="$lt_save_MAGIC_CMD"
7887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7888 if test -n "$MAGIC_CMD"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7890 $as_echo "$MAGIC_CMD" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7906 # Use C for the default configuration in the libtool script
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 # Source file extension for C test sources.
7919 # Object file extension for compiled C test sources.
7923 # Code to be used in simple compile tests
7924 lt_simple_compile_test_code="int some_variable = 0;"
7926 # Code to be used in simple link tests
7927 lt_simple_link_test_code='int main(){return(0);}'
7935 # If no C compiler was specified, use CC.
7938 # If no C compiler flags were specified, use CFLAGS.
7939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7941 # Allow CC to be a program name with arguments.
7944 # Save the default compiler, since it gets overwritten when the other
7945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7946 compiler_DEFAULT=$CC
7948 # save warnings/boilerplate of simple test code
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_compiler_boilerplate=`cat conftest.err`
7955 ac_outfile=conftest.$ac_objext
7956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7958 _lt_linker_boilerplate=`cat conftest.err`
7962 if test -n "$compiler"; then
7964 lt_prog_compiler_no_builtin_flag=
7966 if test "$GCC" = yes; then
7967 case $cc_basename in
7969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7975 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7976 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7977 $as_echo_n "(cached) " >&6
7979 lt_cv_prog_compiler_rtti_exceptions=no
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982 lt_compiler_flag="-fno-rtti -fno-exceptions"
7983 # Insert the option either (1) after the last *FLAGS variable, or
7984 # (2) before a word containing "conftest.", or (3) at the end.
7985 # Note that $ac_compile itself does not contain backslashes and begins
7986 # with a dollar sign (not a hyphen), so the echo should work correctly.
7987 # The option is referenced via a variable to avoid confusing sed.
7988 lt_compile=`echo "$ac_compile" | $SED \
7989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991 -e 's:$: $lt_compiler_flag:'`
7992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7993 (eval "$lt_compile" 2>conftest.err)
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 if (exit $ac_status) && test -s "$ac_outfile"; then
7998 # The compiler can only warn and ignore the option if not recognized
7999 # So say no if there are warnings other than the usual output.
8000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003 lt_cv_prog_compiler_rtti_exceptions=yes
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8010 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8012 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8025 lt_prog_compiler_wl=
8026 lt_prog_compiler_pic=
8027 lt_prog_compiler_static=
8030 if test "$GCC" = yes; then
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_static='-static'
8036 # All AIX code is PIC.
8037 if test "$host_cpu" = ia64; then
8038 # AIX 5 now supports IA64 processor
8039 lt_prog_compiler_static='-Bstatic'
8046 # see comment about AmigaOS4 .so support
8047 lt_prog_compiler_pic='-fPIC'
8050 # FIXME: we need at least 68020 code to build shared libraries, but
8051 # adding the `-m68020' flag to GCC prevents building anything better,
8053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8059 # PIC is the default for these OSes.
8062 mingw* | cygwin* | pw32* | os2* | cegcc*)
8063 # This hack is so that the source file can tell whether it is being
8064 # built for inclusion in a dll (and should export symbols for example).
8065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8066 # (--disable-auto-import) libraries
8067 lt_prog_compiler_pic='-DDLL_EXPORT'
8070 darwin* | rhapsody*)
8071 # PIC is the default on this platform
8072 # Common symbols not allowed in MH_DYLIB files
8073 lt_prog_compiler_pic='-fno-common'
8077 # PIC is the default for Haiku.
8078 # The "-static" flag exists, but is broken.
8079 lt_prog_compiler_static=
8083 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8084 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8085 # sets the default TLS model and affects inlining.
8091 lt_prog_compiler_pic='-fPIC'
8097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8098 # Instead, we relocate shared libraries at runtime.
8102 # Just because we use GCC doesn't mean we suddenly get shared libraries
8103 # on systems that don't support them.
8104 lt_prog_compiler_can_build_shared=no
8109 # QNX uses GNU C++, but need to define -shared option too, otherwise
8111 lt_prog_compiler_pic='-fPIC -shared'
8115 if test -d /usr/nec; then
8116 lt_prog_compiler_pic=-Kconform_pic
8121 lt_prog_compiler_pic='-fPIC'
8125 case $cc_basename in
8126 nvcc*) # Cuda Compiler Driver 2.2
8127 lt_prog_compiler_wl='-Xlinker '
8128 if test -n "$lt_prog_compiler_pic"; then
8129 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8134 # PORTME Check for flag to pass linker flags through the system compiler.
8137 lt_prog_compiler_wl='-Wl,'
8138 if test "$host_cpu" = ia64; then
8139 # AIX 5 now supports IA64 processor
8140 lt_prog_compiler_static='-Bstatic'
8142 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8146 mingw* | cygwin* | pw32* | os2* | cegcc*)
8147 # This hack is so that the source file can tell whether it is being
8148 # built for inclusion in a dll (and should export symbols for example).
8149 lt_prog_compiler_pic='-DDLL_EXPORT'
8152 hpux9* | hpux10* | hpux11*)
8153 lt_prog_compiler_wl='-Wl,'
8154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8161 lt_prog_compiler_pic='+Z'
8164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8165 lt_prog_compiler_static='${wl}-a ${wl}archive'
8168 irix5* | irix6* | nonstopux*)
8169 lt_prog_compiler_wl='-Wl,'
8170 # PIC (with -KPIC) is the default.
8171 lt_prog_compiler_static='-non_shared'
8174 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8175 case $cc_basename in
8176 # old Intel for x86_64 which still supported -KPIC.
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-KPIC'
8180 lt_prog_compiler_static='-static'
8182 # icc used to be incompatible with GCC.
8183 # ICC 10 doesn't accept -KPIC any more.
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-fPIC'
8187 lt_prog_compiler_static='-static'
8189 # Lahey Fortran 8.1.
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='--shared'
8193 lt_prog_compiler_static='--static'
8196 # NAG Fortran compiler
8197 lt_prog_compiler_wl='-Wl,-Wl,,'
8198 lt_prog_compiler_pic='-PIC'
8199 lt_prog_compiler_static='-Bstatic'
8201 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8202 # Portland Group compilers (*not* the Pentium gcc compiler,
8203 # which looks to be a dead project)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_pic='-fpic'
8206 lt_prog_compiler_static='-Bstatic'
8209 lt_prog_compiler_wl='-Wl,'
8210 # All Alpha code is PIC.
8211 lt_prog_compiler_static='-non_shared'
8213 xl* | bgxl* | bgf* | mpixl*)
8214 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_pic='-qpic'
8217 lt_prog_compiler_static='-qstaticlink'
8220 case `$CC -V 2>&1 | sed 5q` in
8221 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8222 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8223 lt_prog_compiler_pic='-KPIC'
8224 lt_prog_compiler_static='-Bstatic'
8225 lt_prog_compiler_wl=''
8227 *Sun\ F* | *Sun*Fortran*)
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 lt_prog_compiler_wl='-Qoption ld '
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 lt_prog_compiler_wl='-Wl,'
8238 *Intel*\ [CF]*Compiler*)
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_pic='-fPIC'
8241 lt_prog_compiler_static='-static'
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-fpic'
8246 lt_prog_compiler_static='-Bstatic'
8254 lt_prog_compiler_pic='-KPIC'
8255 lt_prog_compiler_static='-Bstatic'
8259 # QNX uses GNU C++, but need to define -shared option too, otherwise
8261 lt_prog_compiler_pic='-fPIC -shared'
8264 osf3* | osf4* | osf5*)
8265 lt_prog_compiler_wl='-Wl,'
8266 # All OSF/1 code is PIC.
8267 lt_prog_compiler_static='-non_shared'
8271 lt_prog_compiler_static='-non_shared'
8275 lt_prog_compiler_pic='-KPIC'
8276 lt_prog_compiler_static='-Bstatic'
8277 case $cc_basename in
8278 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8279 lt_prog_compiler_wl='-Qoption ld ';;
8281 lt_prog_compiler_wl='-Wl,';;
8286 lt_prog_compiler_wl='-Qoption ld '
8287 lt_prog_compiler_pic='-PIC'
8288 lt_prog_compiler_static='-Bstatic'
8291 sysv4 | sysv4.2uw2* | sysv4.3*)
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_pic='-KPIC'
8294 lt_prog_compiler_static='-Bstatic'
8298 if test -d /usr/nec ;then
8299 lt_prog_compiler_pic='-Kconform_pic'
8300 lt_prog_compiler_static='-Bstatic'
8304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-KPIC'
8307 lt_prog_compiler_static='-Bstatic'
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_can_build_shared=no
8316 lt_prog_compiler_pic='-pic'
8317 lt_prog_compiler_static='-Bstatic'
8321 lt_prog_compiler_can_build_shared=no
8327 # For platforms which do not support PIC, -DPIC is meaningless:
8329 lt_prog_compiler_pic=
8332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8337 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8338 if ${lt_cv_prog_compiler_pic+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8344 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8345 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8348 # Check to make sure the PIC flag actually works.
8350 if test -n "$lt_prog_compiler_pic"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8352 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8353 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 lt_cv_prog_compiler_pic_works=no
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8360 # Insert the option either (1) after the last *FLAGS variable, or
8361 # (2) before a word containing "conftest.", or (3) at the end.
8362 # Note that $ac_compile itself does not contain backslashes and begins
8363 # with a dollar sign (not a hyphen), so the echo should work correctly.
8364 # The option is referenced via a variable to avoid confusing sed.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>conftest.err)
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s "$ac_outfile"; then
8375 # The compiler can only warn and ignore the option if not recognized
8376 # So say no if there are warnings other than the usual output.
8377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_cv_prog_compiler_pic_works=yes
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8387 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8389 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8390 case $lt_prog_compiler_pic in
8392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8395 lt_prog_compiler_pic=
8396 lt_prog_compiler_can_build_shared=no
8412 # Check to make sure the static flag actually works.
8414 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8417 if ${lt_cv_prog_compiler_static_works+:} false; then :
8418 $as_echo_n "(cached) " >&6
8420 lt_cv_prog_compiler_static_works=no
8421 save_LDFLAGS="$LDFLAGS"
8422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8425 # The linker can only warn and ignore the option if not recognized
8426 # So say no if there are warnings
8427 if test -s conftest.err; then
8428 # Append any errors to the config.log.
8429 cat conftest.err 1>&5
8430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432 if diff conftest.exp conftest.er2 >/dev/null; then
8433 lt_cv_prog_compiler_static_works=yes
8436 lt_cv_prog_compiler_static_works=yes
8440 LDFLAGS="$save_LDFLAGS"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8444 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8446 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8449 lt_prog_compiler_static=
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8459 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8460 if ${lt_cv_prog_compiler_c_o+:} false; then :
8461 $as_echo_n "(cached) " >&6
8463 lt_cv_prog_compiler_c_o=no
8464 $RM -r conftest 2>/dev/null
8468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8470 lt_compiler_flag="-o out/conftest2.$ac_objext"
8471 # Insert the option either (1) after the last *FLAGS variable, or
8472 # (2) before a word containing "conftest.", or (3) at the end.
8473 # Note that $ac_compile itself does not contain backslashes and begins
8474 # with a dollar sign (not a hyphen), so the echo should work correctly.
8475 lt_compile=`echo "$ac_compile" | $SED \
8476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8478 -e 's:$: $lt_compiler_flag:'`
8479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8480 (eval "$lt_compile" 2>out/conftest.err)
8482 cat out/conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8486 # The compiler can only warn and ignore the option if not recognized
8487 # So say no if there are warnings
8488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8491 lt_cv_prog_compiler_c_o=yes
8496 # SGI C++ compiler will create directory out/ii_files/ for
8497 # template instantiation
8498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8499 $RM out/* && rmdir out
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8506 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8515 if ${lt_cv_prog_compiler_c_o+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 lt_cv_prog_compiler_c_o=no
8519 $RM -r conftest 2>/dev/null
8523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8525 lt_compiler_flag="-o out/conftest2.$ac_objext"
8526 # Insert the option either (1) after the last *FLAGS variable, or
8527 # (2) before a word containing "conftest.", or (3) at the end.
8528 # Note that $ac_compile itself does not contain backslashes and begins
8529 # with a dollar sign (not a hyphen), so the echo should work correctly.
8530 lt_compile=`echo "$ac_compile" | $SED \
8531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533 -e 's:$: $lt_compiler_flag:'`
8534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8535 (eval "$lt_compile" 2>out/conftest.err)
8537 cat out/conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8541 # The compiler can only warn and ignore the option if not recognized
8542 # So say no if there are warnings
8543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8546 lt_cv_prog_compiler_c_o=yes
8551 # SGI C++ compiler will create directory out/ii_files/ for
8552 # template instantiation
8553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8554 $RM out/* && rmdir out
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8561 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8566 hard_links="nottested"
8567 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8568 # do not overwrite the value of need_locks provided by the user
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8570 $as_echo_n "checking if we can lock with hard links... " >&6; }
8573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8575 ln conftest.a conftest.b 2>&5 || hard_links=no
8576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8578 $as_echo "$hard_links" >&6; }
8579 if test "$hard_links" = no; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8581 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8597 allow_undefined_flag=
8598 always_export_symbols=no
8600 archive_expsym_cmds=
8601 compiler_needs_object=no
8602 enable_shared_with_static_runtimes=no
8603 export_dynamic_flag_spec=
8604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8605 hardcode_automatic=no
8607 hardcode_direct_absolute=no
8608 hardcode_libdir_flag_spec=
8609 hardcode_libdir_separator=
8611 hardcode_shlibpath_var=unsupported
8613 link_all_deplibs=unknown
8616 old_archive_from_new_cmds=
8617 old_archive_from_expsyms_cmds=
8618 thread_safe_flag_spec=
8619 whole_archive_flag_spec=
8620 # include_expsyms should be a list of space-separated symbols to be *always*
8621 # included in the symbol list
8623 # exclude_expsyms can be an extended regexp of symbols to exclude
8624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8626 # as well as any symbol that contains `d'.
8627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8629 # platforms (ab)use it in PIC code, but their linkers get confused if
8630 # the symbol is explicitly referenced. Since portable code cannot
8631 # rely on this symbol name, it's probably fine to never include it in
8632 # preloaded symbol tables.
8633 # Exclude shared library initialization/finalization symbols.
8634 extract_expsyms_cmds=
8637 cygwin* | mingw* | pw32* | cegcc*)
8638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8639 # When not using gcc, we currently assume that we are using
8640 # Microsoft Visual C++.
8641 if test "$GCC" != yes; then
8646 # we just hope/assume this is gcc and not c89 (= MSVC++)
8652 linux* | k*bsd*-gnu | gnu*)
8659 # On some targets, GNU ld is compatible enough with the native linker
8660 # that we're better off using the native interface for both.
8661 lt_use_gnu_ld_interface=no
8662 if test "$with_gnu_ld" = yes; then
8665 # The AIX port of GNU ld has always aspired to compatibility
8666 # with the native linker. However, as the warning in the GNU ld
8667 # block says, versions before 2.19.5* couldn't really create working
8668 # shared libraries, regardless of the interface used.
8669 case `$LD -v 2>&1` in
8670 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8671 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8672 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8674 lt_use_gnu_ld_interface=yes
8679 lt_use_gnu_ld_interface=yes
8684 if test "$lt_use_gnu_ld_interface" = yes; then
8685 # If archive_cmds runs LD, not CC, wlarc should be empty
8688 # Set some defaults for GNU ld with shared library support. These
8689 # are reset later if shared libraries are not supported. Putting them
8690 # here allows them to be overridden if necessary.
8691 runpath_var=LD_RUN_PATH
8692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693 export_dynamic_flag_spec='${wl}--export-dynamic'
8694 # ancient GNU ld didn't support --whole-archive et. al.
8695 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8696 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8698 whole_archive_flag_spec=
8700 supports_anon_versioning=no
8701 case `$LD -v 2>&1` in
8702 *GNU\ gold*) supports_anon_versioning=yes ;;
8703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8706 *\ 2.11.*) ;; # other 2.11 versions
8707 *) supports_anon_versioning=yes ;;
8710 # See if GNU ld supports shared libraries.
8713 # On AIX/PPC, the GNU linker is very broken
8714 if test "$host_cpu" != ia64; then
8718 *** Warning: the GNU linker, at least up to release 2.19, is reported
8719 *** to be unable to reliably create shared libraries on AIX.
8720 *** Therefore, libtool is disabling shared libraries support. If you
8721 *** really care for shared libraries, you may want to install binutils
8722 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8723 *** You will then need to restart the configuration process.
8732 # see comment about AmigaOS4 .so support
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 archive_expsym_cmds=''
8737 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)'
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_minus_L=yes
8745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746 allow_undefined_flag=unsupported
8747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8748 # support --undefined. This deserves some investigation. FIXME
8749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755 cygwin* | mingw* | pw32* | cegcc*)
8756 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8757 # as there is no search path for DLLs.
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 export_dynamic_flag_spec='${wl}--export-all-symbols'
8760 allow_undefined_flag=unsupported
8761 always_export_symbols=no
8762 enable_shared_with_static_runtimes=yes
8763 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'
8764 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768 # If the export-symbols file already is a .def file (1st line
8769 # is EXPORTS), use it as is; otherwise, prepend...
8770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8771 cp $export_symbols $output_objdir/$soname.def;
8773 echo EXPORTS > $output_objdir/$soname.def;
8774 cat $export_symbols >> $output_objdir/$soname.def;
8776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 link_all_deplibs=yes
8789 hardcode_shlibpath_var=no
8790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8791 export_dynamic_flag_spec='${wl}-E'
8792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8793 # Instead, shared libraries are loaded at an image base (0x10000000 by
8794 # default) and relocated if they conflict, which is a slow very memory
8795 # consuming and fragmenting process. To avoid this, we pick a random,
8796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8799 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'
8802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8804 if test "$host_os" = linux-dietlibc; then
8805 case $cc_basename in
8806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8810 && test "$tmp_diet" = no
8812 tmp_addflag=' $pic_flag'
8813 tmp_sharedflag='-shared'
8814 case $cc_basename,$host_cpu in
8815 pgcc*) # Portland Group C compiler
8816 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'
8817 tmp_addflag=' $pic_flag'
8819 pgf77* | pgf90* | pgf95* | pgfortran*)
8820 # Portland Group f77 and f90 compilers
8821 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'
8822 tmp_addflag=' $pic_flag -Mnomain' ;;
8823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8824 tmp_addflag=' -i_dynamic' ;;
8825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8826 tmp_addflag=' -i_dynamic -nofor_main' ;;
8827 ifc* | ifort*) # Intel Fortran compiler
8828 tmp_addflag=' -nofor_main' ;;
8829 lf95*) # Lahey Fortran 8.1
8830 whole_archive_flag_spec=
8831 tmp_sharedflag='--shared' ;;
8832 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8833 tmp_sharedflag='-qmkshrobj'
8835 nvcc*) # Cuda Compiler Driver 2.2
8836 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'
8837 compiler_needs_object=yes
8840 case `$CC -V 2>&1 | sed 5q` in
8841 *Sun\ C*) # Sun C 5.9
8842 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'
8843 compiler_needs_object=yes
8844 tmp_sharedflag='-G' ;;
8845 *Sun\ F*) # Sun Fortran 8.3
8846 tmp_sharedflag='-G' ;;
8848 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 if test "x$supports_anon_versioning" = xyes; then
8851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8853 echo "local: *; };" >> $output_objdir/$libname.ver~
8854 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8857 case $cc_basename in
8858 xlf* | bgf* | bgxlf* | mpixlf*)
8859 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8860 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8863 if test "x$supports_anon_versioning" = xyes; then
8864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8866 echo "local: *; };" >> $output_objdir/$libname.ver~
8867 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8876 netbsd* | netbsdelf*-gnu)
8877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8878 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8892 *** create shared libraries on Solaris systems. Therefore, libtool
8893 *** is disabling shared libraries support. We urge you to upgrade GNU
8894 *** binutils to release 2.9.1 or newer. Another option is to modify
8895 *** your PATH or compiler configuration so that the native linker is
8896 *** used, and then restart.
8899 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8908 case `$LD -v 2>&1` in
8909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8913 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8914 *** reliably create shared libraries on SCO systems. Therefore, libtool
8915 *** is disabling shared libraries support. We urge you to upgrade GNU
8916 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8917 *** your PATH or compiler configuration so that the native linker is
8918 *** used, and then restart.
8923 # For security reasons, it is highly recommended that you always
8924 # use absolute paths for naming shared libraries, and exclude the
8925 # DT_RUNPATH tag from executables and libraries. But doing so
8926 # requires that you compile everything twice, which is a pain.
8927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_shlibpath_var=no
8946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8955 if test "$ld_shlibs" = no; then
8957 hardcode_libdir_flag_spec=
8958 export_dynamic_flag_spec=
8959 whole_archive_flag_spec=
8962 # PORTME fill in a description of your system's linker (not GNU ld)
8965 allow_undefined_flag=unsupported
8966 always_export_symbols=yes
8967 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'
8968 # Note: this linker hardcodes the directories in LIBPATH if there
8969 # are no directories specified by -L.
8970 hardcode_minus_L=yes
8971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8972 # Neither direct hardcoding nor static linking is supported with a
8974 hardcode_direct=unsupported
8979 if test "$host_cpu" = ia64; then
8980 # On IA64, the linker does run time linking by default, so we don't
8981 # have to do anything special.
8982 aix_use_runtimelinking=no
8983 exp_sym_flag='-Bexport'
8986 # If we're using GNU nm, then we don't want the "-C" option.
8987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8988 # Also, AIX nm treats weak defined symbols like other global
8989 # defined symbols, whereas GNU nm marks them as "W".
8990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8991 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'
8993 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'
8995 aix_use_runtimelinking=no
8997 # Test if we are trying to use run time linking or normal
8998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8999 # need to do runtime linking.
9000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9001 for ld_flag in $LDFLAGS; do
9002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9003 aix_use_runtimelinking=yes
9010 exp_sym_flag='-bexport'
9011 no_entry_flag='-bnoentry'
9014 # When large executables or shared objects are built, AIX ld can
9015 # have problems creating the table of contents. If linking a library
9016 # or program results in "error TOC overflow" add -mminimal-toc to
9017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9022 hardcode_direct_absolute=yes
9023 hardcode_libdir_separator=':'
9024 link_all_deplibs=yes
9025 file_list_spec='${wl}-f,'
9027 if test "$GCC" = yes; then
9028 case $host_os in aix4.[012]|aix4.[012].*)
9029 # We only want to do this on AIX 4.2 and lower, the check
9030 # below for broken collect2 doesn't work under 4.3+
9031 collect2name=`${CC} -print-prog-name=collect2`
9032 if test -f "$collect2name" &&
9033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9035 # We have reworked collect2
9038 # We have old collect2
9039 hardcode_direct=unsupported
9040 # It fails to find uninstalled libraries when the uninstalled
9041 # path is not listed in the libpath. Setting hardcode_minus_L
9042 # to unsupported forces relinking
9043 hardcode_minus_L=yes
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_libdir_separator=
9049 shared_flag='-shared'
9050 if test "$aix_use_runtimelinking" = yes; then
9051 shared_flag="$shared_flag "'${wl}-G'
9056 if test "$host_cpu" = ia64; then
9057 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9058 # chokes on -Wl,-G. The following line is correct:
9061 if test "$aix_use_runtimelinking" = yes; then
9062 shared_flag='${wl}-G'
9064 shared_flag='${wl}-bM:SRE'
9069 export_dynamic_flag_spec='${wl}-bexpall'
9070 # It seems that -bexpall does not export symbols beginning with
9071 # underscore (_), so it is better to generate a list of symbols to export.
9072 always_export_symbols=yes
9073 if test "$aix_use_runtimelinking" = yes; then
9074 # Warning - without using the other runtime loading flags (-brtl),
9075 # -berok will link without error, but may produce a broken library.
9076 allow_undefined_flag='-berok'
9077 # Determine the default libpath from the value encoded in an
9079 if test "${lt_cv_aix_libpath+set}" = set; then
9080 aix_libpath=$lt_cv_aix_libpath
9082 if ${lt_cv_aix_libpath_+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9096 if ac_fn_c_try_link "$LINENO"; then :
9098 lt_aix_libpath_sed='
9099 /Import File Strings/,/^$/ {
9101 s/^0 *\([^ ]*\) *$/\1/
9105 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9106 # Check for a 64-bit object if we didn't find anything.
9107 if test -z "$lt_cv_aix_libpath_"; then
9108 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 if test -z "$lt_cv_aix_libpath_"; then
9114 lt_cv_aix_libpath_="/usr/lib:/lib"
9119 aix_libpath=$lt_cv_aix_libpath_
9122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9123 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"
9125 if test "$host_cpu" = ia64; then
9126 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9127 allow_undefined_flag="-z nodefs"
9128 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"
9130 # Determine the default libpath from the value encoded in an
9132 if test "${lt_cv_aix_libpath+set}" = set; then
9133 aix_libpath=$lt_cv_aix_libpath
9135 if ${lt_cv_aix_libpath_+:} false; then :
9136 $as_echo_n "(cached) " >&6
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9149 if ac_fn_c_try_link "$LINENO"; then :
9151 lt_aix_libpath_sed='
9152 /Import File Strings/,/^$/ {
9154 s/^0 *\([^ ]*\) *$/\1/
9158 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9159 # Check for a 64-bit object if we didn't find anything.
9160 if test -z "$lt_cv_aix_libpath_"; then
9161 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 if test -z "$lt_cv_aix_libpath_"; then
9167 lt_cv_aix_libpath_="/usr/lib:/lib"
9172 aix_libpath=$lt_cv_aix_libpath_
9175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9176 # Warning - without using the other run time loading flags,
9177 # -berok will link without error, but may produce a broken library.
9178 no_undefined_flag=' ${wl}-bernotok'
9179 allow_undefined_flag=' ${wl}-berok'
9180 if test "$with_gnu_ld" = yes; then
9181 # We only use this code for GNU lds that support --whole-archive.
9182 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9184 # Exported symbols can be pulled into shared objects from archives
9185 whole_archive_flag_spec='$convenience'
9187 archive_cmds_need_lc=yes
9188 # This is similar to how AIX traditionally builds its shared libraries.
9189 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'
9197 # see comment about AmigaOS4 .so support
9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199 archive_expsym_cmds=''
9202 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)'
9203 hardcode_libdir_flag_spec='-L$libdir'
9204 hardcode_minus_L=yes
9210 export_dynamic_flag_spec=-rdynamic
9213 cygwin* | mingw* | pw32* | cegcc*)
9214 # When not using gcc, we currently assume that we are using
9215 # Microsoft Visual C++.
9216 # hardcode_libdir_flag_spec is actually meaningless, as there is
9217 # no search path for DLLs.
9218 case $cc_basename in
9221 hardcode_libdir_flag_spec=' '
9222 allow_undefined_flag=unsupported
9223 always_export_symbols=yes
9225 # Tell ltmain to make .lib files, not .a files.
9227 # Tell ltmain to make .dll files, not .so files.
9229 # FIXME: Setting linknames here is a bad hack.
9230 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9231 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9232 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9234 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9236 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9238 # The linker will not automatically build a static lib if we build a DLL.
9239 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9240 enable_shared_with_static_runtimes=yes
9241 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9244 old_postinstall_cmds='chmod 644 $oldlib'
9245 postlink_cmds='lt_outputfile="@OUTPUT@"~
9246 lt_tool_outputfile="@TOOL_OUTPUT@"~
9247 case $lt_outputfile in
9250 lt_outputfile="$lt_outputfile.exe"
9251 lt_tool_outputfile="$lt_tool_outputfile.exe"
9254 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9255 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9256 $RM "$lt_outputfile.manifest";
9260 # Assume MSVC wrapper
9261 hardcode_libdir_flag_spec=' '
9262 allow_undefined_flag=unsupported
9263 # Tell ltmain to make .lib files, not .a files.
9265 # Tell ltmain to make .dll files, not .so files.
9267 # FIXME: Setting linknames here is a bad hack.
9268 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9269 # The linker will automatically build a .lib file if we build a DLL.
9270 old_archive_from_new_cmds='true'
9271 # FIXME: Should let the user specify the lib program.
9272 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9273 enable_shared_with_static_runtimes=yes
9278 darwin* | rhapsody*)
9281 archive_cmds_need_lc=no
9283 hardcode_automatic=yes
9284 hardcode_shlibpath_var=unsupported
9285 if test "$lt_cv_ld_force_load" = "yes"; then
9286 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\"`'
9289 whole_archive_flag_spec=''
9291 link_all_deplibs=yes
9292 allow_undefined_flag="$_lt_dar_allow_undefined"
9293 case $cc_basename in
9294 ifort*) _lt_dar_can_shared=yes ;;
9295 *) _lt_dar_can_shared=$GCC ;;
9297 if test "$_lt_dar_can_shared" = "yes"; then
9298 output_verbose_link_cmd=func_echo_all
9299 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9300 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9301 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}"
9302 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}"
9311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_shlibpath_var=no
9316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9317 # support. Future versions do this automatically, but an explicit c++rt0.o
9318 # does not break anything, and helps significantly (at the cost of a little
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9322 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_shlibpath_var=no
9327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9331 hardcode_minus_L=yes
9332 hardcode_shlibpath_var=no
9335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9336 freebsd* | dragonfly*)
9337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338 hardcode_libdir_flag_spec='-R$libdir'
9340 hardcode_shlibpath_var=no
9344 if test "$GCC" = yes; then
9345 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'
9347 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'
9349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9350 hardcode_libdir_separator=:
9353 # hardcode_minus_L: Not really in the search PATH,
9354 # but as the default location of the library.
9355 hardcode_minus_L=yes
9356 export_dynamic_flag_spec='${wl}-E'
9360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9361 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9365 if test "$with_gnu_ld" = no; then
9366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367 hardcode_libdir_separator=:
9369 hardcode_direct_absolute=yes
9370 export_dynamic_flag_spec='${wl}-E'
9371 # hardcode_minus_L: Not really in the search PATH,
9372 # but as the default location of the library.
9373 hardcode_minus_L=yes
9378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9381 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9400 # Older versions of the 11.00 compiler do not understand -b yet
9401 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9403 $as_echo_n "checking if $CC understands -b... " >&6; }
9404 if ${lt_cv_prog_compiler__b+:} false; then :
9405 $as_echo_n "(cached) " >&6
9407 lt_cv_prog_compiler__b=no
9408 save_LDFLAGS="$LDFLAGS"
9409 LDFLAGS="$LDFLAGS -b"
9410 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9412 # The linker can only warn and ignore the option if not recognized
9413 # So say no if there are warnings
9414 if test -s conftest.err; then
9415 # Append any errors to the config.log.
9416 cat conftest.err 1>&5
9417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9419 if diff conftest.exp conftest.er2 >/dev/null; then
9420 lt_cv_prog_compiler__b=yes
9423 lt_cv_prog_compiler__b=yes
9427 LDFLAGS="$save_LDFLAGS"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9431 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9433 if test x"$lt_cv_prog_compiler__b" = xyes; then
9434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9442 if test "$with_gnu_ld" = no; then
9443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444 hardcode_libdir_separator=:
9449 hardcode_shlibpath_var=no
9453 hardcode_direct_absolute=yes
9454 export_dynamic_flag_spec='${wl}-E'
9456 # hardcode_minus_L: Not really in the search PATH,
9457 # but as the default location of the library.
9458 hardcode_minus_L=yes
9464 irix5* | irix6* | nonstopux*)
9465 if test "$GCC" = yes; then
9466 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'
9467 # Try to use the -exported_symbol ld option, if it does not
9468 # work, assume that -exports_file does not work either and
9469 # implicitly export all symbols.
9470 # This should be the same for all languages, so no per-tag cache variable.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9472 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9473 if ${lt_cv_irix_exported_symbol+:} false; then :
9474 $as_echo_n "(cached) " >&6
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 int foo (void) { return 0; }
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 lt_cv_irix_exported_symbol=yes
9485 lt_cv_irix_exported_symbol=no
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LDFLAGS="$save_LDFLAGS"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9492 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9493 if test "$lt_cv_irix_exported_symbol" = yes; then
9494 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'
9497 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'
9498 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'
9500 archive_cmds_need_lc='no'
9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502 hardcode_libdir_separator=:
9504 link_all_deplibs=yes
9507 netbsd* | netbsdelf*-gnu)
9508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9511 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9513 hardcode_libdir_flag_spec='-R$libdir'
9515 hardcode_shlibpath_var=no
9519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 hardcode_shlibpath_var=no
9530 if test -f /usr/libexec/ld.so; then
9532 hardcode_shlibpath_var=no
9533 hardcode_direct_absolute=yes
9534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec='${wl}-E'
9541 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_libdir_flag_spec='-R$libdir'
9546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557 hardcode_libdir_flag_spec='-L$libdir'
9558 hardcode_minus_L=yes
9559 allow_undefined_flag=unsupported
9560 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'
9561 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9565 if test "$GCC" = yes; then
9566 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9567 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'
9569 allow_undefined_flag=' -expect_unresolved \*'
9570 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'
9572 archive_cmds_need_lc='no'
9573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574 hardcode_libdir_separator=:
9577 osf4* | osf5*) # as osf3* with the addition of -msym flag
9578 if test "$GCC" = yes; then
9579 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9580 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'
9581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 allow_undefined_flag=' -expect_unresolved \*'
9584 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'
9585 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~
9586 $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'
9588 # Both c and cxx compiler support -rpath directly
9589 hardcode_libdir_flag_spec='-rpath $libdir'
9591 archive_cmds_need_lc='no'
9592 hardcode_libdir_separator=:
9596 no_undefined_flag=' -z defs'
9597 if test "$GCC" = yes; then
9599 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9601 $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'
9603 case `$CC -V 2>&1` in
9606 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9612 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 hardcode_libdir_flag_spec='-R$libdir'
9619 hardcode_shlibpath_var=no
9621 solaris2.[0-5] | solaris2.[0-5].*) ;;
9623 # The compiler driver will combine and reorder linker options,
9624 # but understands `-z linker_flag'. GCC discards it without `$wl',
9625 # but is careful enough not to reorder.
9626 # Supported since Solaris 2.6 (maybe 2.5.1?)
9627 if test "$GCC" = yes; then
9628 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9630 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9634 link_all_deplibs=yes
9638 if test "x$host_vendor" = xsequent; then
9639 # Use $CC to link under sequent, because it throws in some extra .o
9640 # files that make .init and .fini sections work.
9641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_minus_L=yes
9648 hardcode_shlibpath_var=no
9652 case $host_vendor in
9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 hardcode_direct=yes # is this really true???
9658 ## LD is ld it makes a PLAMLIB
9659 ## CC just makes a GrossModule.
9660 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9661 reload_cmds='$CC -r -o $output$reload_objs'
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9669 runpath_var='LD_RUN_PATH'
9670 hardcode_shlibpath_var=no
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_shlibpath_var=no
9676 export_dynamic_flag_spec='-Bexport'
9680 if test -d /usr/nec; then
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_shlibpath_var=no
9683 runpath_var=LD_RUN_PATH
9684 hardcode_runpath_var=yes
9689 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9690 no_undefined_flag='${wl}-z,text'
9691 archive_cmds_need_lc=no
9692 hardcode_shlibpath_var=no
9693 runpath_var='LD_RUN_PATH'
9695 if test "$GCC" = yes; then
9696 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 sysv5* | sco3.2v5* | sco5v6*)
9705 # Note: We can NOT use -z defs as we might desire, because we do not
9706 # link with -lc, and that would cause any symbols used from libc to
9707 # always be unresolved, which means just about no library would
9708 # ever link correctly. If we're not using GNU ld we use -z text
9709 # though, which does catch some bad symbols but isn't as heavy-handed
9711 no_undefined_flag='${wl}-z,text'
9712 allow_undefined_flag='${wl}-z,nodefs'
9713 archive_cmds_need_lc=no
9714 hardcode_shlibpath_var=no
9715 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9716 hardcode_libdir_separator=':'
9717 link_all_deplibs=yes
9718 export_dynamic_flag_spec='${wl}-Bexport'
9719 runpath_var='LD_RUN_PATH'
9721 if test "$GCC" = yes; then
9722 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_shlibpath_var=no
9741 if test x$host_vendor = xsni; then
9743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9744 export_dynamic_flag_spec='${wl}-Blargedynsym'
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9751 $as_echo "$ld_shlibs" >&6; }
9752 test "$ld_shlibs" = no && can_build_shared=no
9754 with_gnu_ld=$with_gnu_ld
9771 # Do we need to explicitly link libc?
9773 case "x$archive_cmds_need_lc" in
9775 # Assume -lc should be added
9776 archive_cmds_need_lc=yes
9778 if test "$enable_shared" = yes && test "$GCC" = yes; then
9779 case $archive_cmds in
9781 # FIXME: we may have to deal with multi-command sequences.
9784 # Test whether the compiler implicitly links with -lc since on some
9785 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9786 # to ld, don't add -lc before -lgcc.
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9788 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9789 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9790 $as_echo_n "(cached) " >&6
9793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9796 (eval $ac_compile) 2>&5
9798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9799 test $ac_status = 0; } 2>conftest.err; then
9802 libobjs=conftest.$ac_objext
9804 wl=$lt_prog_compiler_wl
9805 pic_flag=$lt_prog_compiler_pic
9811 lt_save_allow_undefined_flag=$allow_undefined_flag
9812 allow_undefined_flag=
9813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817 test $ac_status = 0; }
9819 lt_cv_archive_cmds_need_lc=no
9821 lt_cv_archive_cmds_need_lc=yes
9823 allow_undefined_flag=$lt_save_allow_undefined_flag
9825 cat conftest.err 1>&5
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9831 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9832 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9991 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9993 if test "$GCC" = yes; then
9995 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9996 *) lt_awk_arg="/^libraries:/" ;;
9999 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10000 *) lt_sed_strip_eq="s,=/,/,g" ;;
10002 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10003 case $lt_search_path_spec in
10005 # if the path contains ";" then we assume it to be the separator
10006 # otherwise default to the standard path separator (i.e. ":") - it is
10007 # assumed that no part of a normal pathname contains ";" but that should
10008 # okay in the real world where ";" in dirpaths is itself problematic.
10009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10015 # Ok, now we have the path, separated by spaces, we can step through it
10016 # and add multilib dir if necessary.
10017 lt_tmp_lt_search_path_spec=
10018 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10019 for lt_sys_path in $lt_search_path_spec; do
10020 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10021 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10023 test -d "$lt_sys_path" && \
10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10027 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10028 BEGIN {RS=" "; FS="/|\n";} {
10031 for (lt_i = NF; lt_i > 0; lt_i--) {
10032 if ($lt_i != "" && $lt_i != ".") {
10033 if ($lt_i == "..") {
10036 if (lt_count == 0) {
10037 lt_foo="/" $lt_i lt_foo;
10044 if (lt_foo != "") { lt_freq[lt_foo]++; }
10045 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10047 # AWK program above erroneously prepends '/' to C:/dos/paths
10050 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10051 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10053 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10057 library_names_spec=
10058 libname_spec='lib$name'
10062 postuninstall_cmds=
10066 shlibpath_overrides_runpath=unknown
10068 dynamic_linker="$host_os ld.so"
10069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10070 need_lib_prefix=unknown
10071 hardcode_into_libs=no
10073 # when you set need_version to no, make sure it does not cause -set_version
10074 # flags to be left without arguments
10075 need_version=unknown
10079 version_type=linux # correct to gnu/linux during the next big refactor
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10081 shlibpath_var=LIBPATH
10083 # AIX 3 has no versioning support, so we append a major version to the name.
10084 soname_spec='${libname}${release}${shared_ext}$major'
10088 version_type=linux # correct to gnu/linux during the next big refactor
10091 hardcode_into_libs=yes
10092 if test "$host_cpu" = ia64; then
10093 # AIX 5 supports IA64
10094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10095 shlibpath_var=LD_LIBRARY_PATH
10097 # With GCC up to 2.95.x, collect2 would create an import file
10098 # for dependence libraries. The import file would start with
10099 # the line `#! .'. This would cause the generated library to
10100 # depend on `.', always an invalid library. This was fixed in
10101 # development snapshots of GCC prior to 3.0.
10103 aix4 | aix4.[01] | aix4.[01].*)
10104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10106 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10109 can_build_shared=no
10113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10114 # soname into executable. Probably we can add versioning support to
10115 # collect2, so additional links can be useful in future.
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10118 # instead of lib<name>.a to let people know that these are not
10119 # typical AIX shared libraries.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 # We preserve .a as extension for shared libraries through AIX4.2
10123 # and later when we are not doing run time linking.
10124 library_names_spec='${libname}${release}.a $libname.a'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LIBPATH
10134 # Since July 2007 AmigaOS4 officially supports .so libraries.
10135 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 library_names_spec='$libname.ixlibrary $libname.a'
10140 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10141 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'
10147 library_names_spec='${libname}${shared_ext}'
10148 dynamic_linker="$host_os ld.so"
10149 shlibpath_var=LIBRARY_PATH
10153 version_type=linux # correct to gnu/linux during the next big refactor
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10161 # the default ld.so.conf also contains /usr/contrib/lib and
10162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10163 # libtool to hard-code these into programs
10166 cygwin* | mingw* | pw32* | cegcc*)
10167 version_type=windows
10172 case $GCC,$cc_basename in
10175 library_names_spec='$libname.dll.a'
10176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10177 postinstall_cmds='base_file=`basename \${file}`~
10178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10179 dldir=$destdir/`dirname \$dlpath`~
10180 test -d \$dldir || mkdir -p \$dldir~
10181 $install_prog $dir/$dlname \$dldir/$dlname~
10182 chmod a+x \$dldir/$dlname~
10183 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10184 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10187 dlpath=$dir/\$dldll~
10189 shlibpath_overrides_runpath=yes
10193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10199 # MinGW DLLs use traditional 'lib' prefix
10200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 # pw32 DLLs use 'pw' prefix rather than 'lib'
10204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 dynamic_linker='Win32 ld.exe'
10212 libname_spec='$name'
10213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214 library_names_spec='${libname}.dll.lib'
10218 sys_lib_search_path_spec=
10221 for lt_path in $LIB
10224 # Let DOS variable expansion print the short 8.3 style file name.
10225 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10226 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10229 # Convert to MSYS style.
10230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10233 # Convert to unix form, then to dos form, then back to unix form
10234 # but this time dos style (no spaces!) so that the unix form looks
10235 # like /cygdrive/c/PROGRA~1:/cygdr...
10236 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10237 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10238 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10241 sys_lib_search_path_spec="$LIB"
10242 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10243 # It is most probably a Windows format PATH.
10244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10248 # FIXME: find the short name or the path components, as spaces are
10249 # common. (e.g. "Program Files" -> "PROGRA~1")
10253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10254 postinstall_cmds='base_file=`basename \${file}`~
10255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10256 dldir=$destdir/`dirname \$dlpath`~
10257 test -d \$dldir || mkdir -p \$dldir~
10258 $install_prog $dir/$dlname \$dldir/$dlname'
10259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10260 dlpath=$dir/\$dldll~
10262 shlibpath_overrides_runpath=yes
10263 dynamic_linker='Win32 link.exe'
10267 # Assume MSVC wrapper
10268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10269 dynamic_linker='Win32 ld.exe'
10272 # FIXME: first we should search . and the directory the executable is in
10276 darwin* | rhapsody*)
10277 dynamic_linker="$host_os dyld"
10278 version_type=darwin
10281 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10282 soname_spec='${libname}${release}${major}$shared_ext'
10283 shlibpath_overrides_runpath=yes
10284 shlibpath_var=DYLD_LIBRARY_PATH
10285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10287 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10292 version_type=linux # correct to gnu/linux during the next big refactor
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10300 freebsd* | dragonfly*)
10301 # DragonFly does not have aout. When/if they implement a new
10302 # versioning mechanism, adjust this.
10303 if test -x /usr/bin/objformat; then
10304 objformat=`/usr/bin/objformat`
10307 freebsd[23].*) objformat=aout ;;
10308 *) objformat=elf ;;
10311 version_type=freebsd-$objformat
10312 case $version_type in
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10323 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10328 freebsd3.[01]* | freebsdelf3.[01]*)
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10334 shlibpath_overrides_runpath=no
10335 hardcode_into_libs=yes
10337 *) # from 4.6 on, and DragonFly
10338 shlibpath_overrides_runpath=yes
10339 hardcode_into_libs=yes
10345 version_type=linux # correct to gnu/linux during the next big refactor
10348 dynamic_linker="$host_os runtime_loader"
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10354 hardcode_into_libs=yes
10357 hpux9* | hpux10* | hpux11*)
10358 # Give a soname corresponding to the major version so that dld.sl refuses to
10359 # link against other versions.
10366 hardcode_into_libs=yes
10367 dynamic_linker="$host_os dld.so"
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 if test "X$HPUX_IA64_MODE" = X32; then
10373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10381 hardcode_into_libs=yes
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10392 dynamic_linker="$host_os dld.sl"
10393 shlibpath_var=SHLIB_PATH
10394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10400 postinstall_cmds='chmod 555 $lib'
10401 # or fails outright, so override atomically:
10402 install_override_mode=555
10406 version_type=linux # correct to gnu/linux during the next big refactor
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=no
10414 hardcode_into_libs=yes
10417 irix5* | irix6* | nonstopux*)
10419 nonstopux*) version_type=nonstopux ;;
10421 if test "$lt_cv_prog_gnu_ld" = yes; then
10422 version_type=linux # correct to gnu/linux during the next big refactor
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10432 irix5* | nonstopux*)
10433 libsuff= shlibsuff=
10436 case $LD in # libtool.m4 will add one of these switches to LD
10437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10438 libsuff= shlibsuff= libmagic=32-bit;;
10439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10440 libsuff=32 shlibsuff=N32 libmagic=N32;;
10441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10443 *) libsuff= shlibsuff= libmagic=never-match;;
10447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10448 shlibpath_overrides_runpath=no
10449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10451 hardcode_into_libs=yes
10454 # No shared lib support for Linux oldld, aout, or coff.
10455 linux*oldld* | linux*aout* | linux*coff*)
10459 # This must be glibc/ELF.
10460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10461 version_type=linux # correct to gnu/linux during the next big refactor
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10470 # Some binutils ld are patched to set DT_RUNPATH
10471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10472 $as_echo_n "(cached) " >&6
10474 lt_cv_shlibpath_overrides_runpath=no
10475 save_LDFLAGS=$LDFLAGS
10476 save_libdir=$libdir
10477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10492 lt_cv_shlibpath_overrides_runpath=yes
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 libdir=$save_libdir
10502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10504 # This implies no fast_install, which is unacceptable.
10505 # Some rework will be needed to allow for fast_install
10506 # before this can be enabled.
10507 hardcode_into_libs=yes
10509 # Append ld.so.conf contents to the search path
10510 if test -f /etc/ld.so.conf; then
10511 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' ' '`
10512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10515 # We used to test for /lib/ld.so.1 and disable shared libraries on
10516 # powerpc, because MkLinux only supported shared libraries with the
10517 # GNU dynamic linker. Since this was broken with cross compilers,
10518 # most powerpc-linux boxes support dynamic linking these days and
10519 # people can always --disable-shared, the test was removed, and we
10520 # assume the GNU/Linux dynamic linker is in use.
10521 dynamic_linker='GNU/Linux ld.so'
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10533 dynamic_linker='NetBSD ld.elf_so'
10540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543 dynamic_linker='NetBSD (a.out) ld.so'
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 dynamic_linker='NetBSD ld.elf_so'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10555 version_type=linux # correct to gnu/linux during the next big refactor
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=yes
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 shlibpath_overrides_runpath=no
10569 hardcode_into_libs=yes
10570 dynamic_linker='ldqnx.so'
10575 sys_lib_dlsearch_path_spec="/usr/lib"
10577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10580 *) need_version=no ;;
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10587 openbsd2.[89] | openbsd2.[89].*)
10588 shlibpath_overrides_runpath=no
10591 shlibpath_overrides_runpath=yes
10595 shlibpath_overrides_runpath=yes
10600 libname_spec='$name'
10603 library_names_spec='$libname${shared_ext} $libname.a'
10604 dynamic_linker='OS/2 ld.exe'
10605 shlibpath_var=LIBPATH
10608 osf3* | osf4* | osf5*)
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10624 version_type=linux # correct to gnu/linux during the next big refactor
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 # ldd complains unless libraries are executable
10633 postinstall_cmds='chmod +x $lib'
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 if test "$with_gnu_ld" = yes; then
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 case $host_vendor in
10655 shlibpath_overrides_runpath=no
10657 runpath_var=LD_RUN_PATH
10665 shlibpath_overrides_runpath=no
10666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10672 if test -d /usr/nec ;then
10673 version_type=linux # correct to gnu/linux during the next big refactor
10674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10675 soname_spec='$libname${shared_ext}.$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10681 version_type=freebsd-elf
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 if test "$with_gnu_ld" = yes; then
10690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10699 sys_lib_dlsearch_path_spec='/usr/lib'
10703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10704 version_type=linux # correct to gnu/linux during the next big refactor
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=no
10710 hardcode_into_libs=yes
10714 version_type=linux # correct to gnu/linux during the next big refactor
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10725 $as_echo "$dynamic_linker" >&6; }
10726 test "$dynamic_linker" = no && can_build_shared=no
10728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10729 if test "$GCC" = yes; then
10730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10834 if test -n "$hardcode_libdir_flag_spec" ||
10835 test -n "$runpath_var" ||
10836 test "X$hardcode_automatic" = "Xyes" ; then
10838 # We can hardcode non-existent directories.
10839 if test "$hardcode_direct" != no &&
10840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10841 # have to relink, otherwise we might link with an installed library
10842 # when we should be linking with a yet-to-be-installed one
10843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10844 test "$hardcode_minus_L" != no; then
10845 # Linking always hardcodes the temporary library directory.
10846 hardcode_action=relink
10848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10849 hardcode_action=immediate
10852 # We cannot hardcode anything, or else we can only hardcode existing
10854 hardcode_action=unsupported
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10857 $as_echo "$hardcode_action" >&6; }
10859 if test "$hardcode_action" = relink ||
10860 test "$inherit_rpath" = yes; then
10861 # Fast installation is not supported
10862 enable_fast_install=no
10863 elif test "$shlibpath_overrides_runpath" = yes ||
10864 test "$enable_shared" = no; then
10865 # Fast installation is not necessary
10866 enable_fast_install=needless
10874 if test "x$enable_dlopen" != xyes; then
10875 enable_dlopen=unknown
10876 enable_dlopen_self=unknown
10877 enable_dlopen_self_static=unknown
10884 lt_cv_dlopen="load_add_on"
10886 lt_cv_dlopen_self=yes
10889 mingw* | pw32* | cegcc*)
10890 lt_cv_dlopen="LoadLibrary"
10895 lt_cv_dlopen="dlopen"
10900 # if libdl is installed we need to link against it
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10903 if ${ac_cv_lib_dl_dlopen+:} false; then :
10904 $as_echo_n "(cached) " >&6
10906 ac_check_lib_save_LIBS=$LIBS
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_dl_dlopen=yes
10929 ac_cv_lib_dl_dlopen=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10941 lt_cv_dlopen="dyld"
10943 lt_cv_dlopen_self=yes
10950 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10951 if test "x$ac_cv_func_shl_load" = xyes; then :
10952 lt_cv_dlopen="shl_load"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10956 if ${ac_cv_lib_dld_shl_load+:} false; then :
10957 $as_echo_n "(cached) " >&6
10959 ac_check_lib_save_LIBS=$LIBS
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10974 return shl_load ();
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 ac_cv_lib_dld_shl_load=yes
10982 ac_cv_lib_dld_shl_load=no
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10990 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10993 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10994 if test "x$ac_cv_func_dlopen" = xyes; then :
10995 lt_cv_dlopen="dlopen"
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10999 if ${ac_cv_lib_dl_dlopen+:} false; then :
11000 $as_echo_n "(cached) " >&6
11002 ac_check_lib_save_LIBS=$LIBS
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 ac_cv_lib_dl_dlopen=yes
11025 ac_cv_lib_dl_dlopen=no
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11033 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11038 if ${ac_cv_lib_svld_dlopen+:} false; then :
11039 $as_echo_n "(cached) " >&6
11041 ac_check_lib_save_LIBS=$LIBS
11042 LIBS="-lsvld $LIBS"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_svld_dlopen=yes
11064 ac_cv_lib_svld_dlopen=no
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11077 if ${ac_cv_lib_dld_dld_link+:} false; then :
11078 $as_echo_n "(cached) " >&6
11080 ac_check_lib_save_LIBS=$LIBS
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 /* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11095 return dld_link ();
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 ac_cv_lib_dld_dld_link=yes
11103 ac_cv_lib_dld_dld_link=no
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11111 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11133 if test "x$lt_cv_dlopen" != xno; then
11139 case $lt_cv_dlopen in
11141 save_CPPFLAGS="$CPPFLAGS"
11142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11144 save_LDFLAGS="$LDFLAGS"
11145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11148 LIBS="$lt_cv_dlopen_libs $LIBS"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11152 if ${lt_cv_dlopen_self+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 if test "$cross_compiling" = yes; then :
11156 lt_cv_dlopen_self=cross
11158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11159 lt_status=$lt_dlunknown
11160 cat > conftest.$ac_ext <<_LT_EOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11171 # define LT_DLGLOBAL RTLD_GLOBAL
11174 # define LT_DLGLOBAL DL_GLOBAL
11176 # define LT_DLGLOBAL 0
11180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11181 find out it does not work in some platform. */
11182 #ifndef LT_DLLAZY_OR_NOW
11184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11187 # define LT_DLLAZY_OR_NOW DL_LAZY
11190 # define LT_DLLAZY_OR_NOW RTLD_NOW
11193 # define LT_DLLAZY_OR_NOW DL_NOW
11195 # define LT_DLLAZY_OR_NOW 0
11202 /* When -fvisbility=hidden is used, assume the code has been annotated
11203 correspondingly for the symbols needed. */
11204 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11205 int fnord () __attribute__((visibility("default")));
11208 int fnord () { return 42; }
11211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11212 int status = $lt_dlunknown;
11216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11219 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11220 else puts (dlerror ());
11222 /* dlclose (self); */
11230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11231 (eval $ac_link) 2>&5
11233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11243 # compilation failed
11244 lt_cv_dlopen_self=no
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11252 $as_echo "$lt_cv_dlopen_self" >&6; }
11254 if test "x$lt_cv_dlopen_self" = xyes; then
11255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11258 if ${lt_cv_dlopen_self_static+:} false; then :
11259 $as_echo_n "(cached) " >&6
11261 if test "$cross_compiling" = yes; then :
11262 lt_cv_dlopen_self_static=cross
11264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11265 lt_status=$lt_dlunknown
11266 cat > conftest.$ac_ext <<_LT_EOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11277 # define LT_DLGLOBAL RTLD_GLOBAL
11280 # define LT_DLGLOBAL DL_GLOBAL
11282 # define LT_DLGLOBAL 0
11286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11287 find out it does not work in some platform. */
11288 #ifndef LT_DLLAZY_OR_NOW
11290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11293 # define LT_DLLAZY_OR_NOW DL_LAZY
11296 # define LT_DLLAZY_OR_NOW RTLD_NOW
11299 # define LT_DLLAZY_OR_NOW DL_NOW
11301 # define LT_DLLAZY_OR_NOW 0
11308 /* When -fvisbility=hidden is used, assume the code has been annotated
11309 correspondingly for the symbols needed. */
11310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11311 int fnord () __attribute__((visibility("default")));
11314 int fnord () { return 42; }
11317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11318 int status = $lt_dlunknown;
11322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11326 else puts (dlerror ());
11328 /* dlclose (self); */
11336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11337 (eval $ac_link) 2>&5
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11341 (./conftest; exit; ) >&5 2>/dev/null
11343 case x$lt_status in
11344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11349 # compilation failed
11350 lt_cv_dlopen_self_static=no
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11361 CPPFLAGS="$save_CPPFLAGS"
11362 LDFLAGS="$save_LDFLAGS"
11367 case $lt_cv_dlopen_self in
11368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11369 *) enable_dlopen_self=unknown ;;
11372 case $lt_cv_dlopen_self_static in
11373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11374 *) enable_dlopen_self_static=unknown ;;
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11404 # FIXME - insert some real tests, host_os isn't really good enough
11407 if test -n "$STRIP" ; then
11408 striplib="$STRIP -x"
11409 old_striplib="$STRIP -S"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 $as_echo "yes" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11435 # Report which library types will actually be built
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11439 $as_echo "$can_build_shared" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11442 $as_echo_n "checking whether to build shared libraries... " >&6; }
11443 test "$can_build_shared" = "no" && enable_shared=no
11445 # On AIX, shared libraries and static libraries use the same namespace, and
11446 # are all built from PIC.
11449 test "$enable_shared" = yes && enable_static=no
11450 if test -n "$RANLIB"; then
11451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11452 postinstall_cmds='$RANLIB $lib'
11457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11458 test "$enable_shared" = yes && enable_static=no
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11463 $as_echo "$enable_shared" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11466 $as_echo_n "checking whether to build static libraries... " >&6; }
11467 # Make sure either enable_shared or enable_static is yes.
11468 test "$enable_shared" = yes || enable_static=yes
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11470 $as_echo "$enable_static" >&6; }
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498 ac_config_commands="$ac_config_commands libtool"
11503 # Only expand once:
11507 # Check whether --enable-optimization was given.
11508 if test "${enable_optimization+set}" = set; then :
11509 enableval=$enable_optimization;
11510 if (test "${enableval}" = "no"); then
11511 CFLAGS="$CFLAGS -O0"
11517 # Check whether --enable-debug was given.
11518 if test "${enable_debug+set}" = set; then :
11519 enableval=$enable_debug;
11520 if (test "${enableval}" = "yes" &&
11521 test "${ac_cv_prog_cc_g}" = "yes"); then
11522 CFLAGS="$CFLAGS -g"
11528 # Check whether --enable-pie was given.
11529 if test "${enable_pie+set}" = set; then :
11530 enableval=$enable_pie;
11531 if (test "${enableval}" = "yes" &&
11532 test "${ac_cv_prog_cc_pie}" = "yes"); then
11533 CFLAGS="$CFLAGS -fPIE"
11534 LDFLAGS="$LDFLAGS -pie"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11542 if ${ac_cv_lib_dl_dlopen+:} false; then :
11543 $as_echo_n "(cached) " >&6
11545 ac_check_lib_save_LIBS=$LIBS
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dl_dlopen=yes
11568 ac_cv_lib_dl_dlopen=no
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11576 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11579 as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
11586 $as_echo_n "checking for GLIB... " >&6; }
11588 if test -n "$GLIB_CFLAGS"; then
11589 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
11590 elif test -n "$PKG_CONFIG"; then
11591 if test -n "$PKG_CONFIG" && \
11592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11593 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596 test $ac_status = 0; }; then
11597 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
11598 test "x$?" != "x0" && pkg_failed=yes
11605 if test -n "$GLIB_LIBS"; then
11606 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
11607 elif test -n "$PKG_CONFIG"; then
11608 if test -n "$PKG_CONFIG" && \
11609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
11610 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
11612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613 test $ac_status = 0; }; then
11614 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
11615 test "x$?" != "x0" && pkg_failed=yes
11625 if test $pkg_failed = yes; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11630 _pkg_short_errors_supported=yes
11632 _pkg_short_errors_supported=no
11634 if test $_pkg_short_errors_supported = yes; then
11635 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11637 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
11639 # Put the nasty error message in config.log where it belongs
11640 echo "$GLIB_PKG_ERRORS" >&5
11642 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
11643 elif test $pkg_failed = untried; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
11648 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
11649 GLIB_LIBS=$pkg_cv_GLIB_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
11660 $as_echo_n "checking for DBUS... " >&6; }
11662 if test -n "$DBUS_CFLAGS"; then
11663 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
11664 elif test -n "$PKG_CONFIG"; then
11665 if test -n "$PKG_CONFIG" && \
11666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2\""; } >&5
11667 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2") 2>&5
11669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670 test $ac_status = 0; }; then
11671 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2" 2>/dev/null`
11672 test "x$?" != "x0" && pkg_failed=yes
11679 if test -n "$DBUS_LIBS"; then
11680 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
11681 elif test -n "$PKG_CONFIG"; then
11682 if test -n "$PKG_CONFIG" && \
11683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2\""; } >&5
11684 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2") 2>&5
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }; then
11688 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2" 2>/dev/null`
11689 test "x$?" != "x0" && pkg_failed=yes
11699 if test $pkg_failed = yes; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11704 _pkg_short_errors_supported=yes
11706 _pkg_short_errors_supported=no
11708 if test $_pkg_short_errors_supported = yes; then
11709 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.2" 2>&1`
11711 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.2" 2>&1`
11713 # Put the nasty error message in config.log where it belongs
11714 echo "$DBUS_PKG_ERRORS" >&5
11716 as_fn_error $? "D-Bus >= 1.2 is required" "$LINENO" 5
11717 elif test $pkg_failed = untried; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720 as_fn_error $? "D-Bus >= 1.2 is required" "$LINENO" 5
11722 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
11723 DBUS_LIBS=$pkg_cv_DBUS_LIBS
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 $as_echo "yes" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5
11734 $as_echo_n "checking for LIBNL3... " >&6; }
11736 if test -n "$LIBNL3_CFLAGS"; then
11737 pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS"
11738 elif test -n "$PKG_CONFIG"; then
11739 if test -n "$PKG_CONFIG" && \
11740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 libnl-genl-3.0\""; } >&5
11741 ($PKG_CONFIG --exists --print-errors "libnl-3.0 libnl-genl-3.0") 2>&5
11743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744 test $ac_status = 0; }; then
11745 pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0 libnl-genl-3.0" 2>/dev/null`
11746 test "x$?" != "x0" && pkg_failed=yes
11753 if test -n "$LIBNL3_LIBS"; then
11754 pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS"
11755 elif test -n "$PKG_CONFIG"; then
11756 if test -n "$PKG_CONFIG" && \
11757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 libnl-genl-3.0\""; } >&5
11758 ($PKG_CONFIG --exists --print-errors "libnl-3.0 libnl-genl-3.0") 2>&5
11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761 test $ac_status = 0; }; then
11762 pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0 libnl-genl-3.0" 2>/dev/null`
11763 test "x$?" != "x0" && pkg_failed=yes
11773 if test $pkg_failed = yes; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11778 _pkg_short_errors_supported=yes
11780 _pkg_short_errors_supported=no
11782 if test $_pkg_short_errors_supported = yes; then
11783 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0 libnl-genl-3.0" 2>&1`
11785 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0 libnl-genl-3.0" 2>&1`
11787 # Put the nasty error message in config.log where it belongs
11788 echo "$LIBNL3_PKG_ERRORS" >&5
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL2" >&5
11794 $as_echo_n "checking for LIBNL2... " >&6; }
11796 if test -n "$LIBNL2_CFLAGS"; then
11797 pkg_cv_LIBNL2_CFLAGS="$LIBNL2_CFLAGS"
11798 elif test -n "$PKG_CONFIG"; then
11799 if test -n "$PKG_CONFIG" && \
11800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
11801 ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
11803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804 test $ac_status = 0; }; then
11805 pkg_cv_LIBNL2_CFLAGS=`$PKG_CONFIG --cflags "libnl-2.0" 2>/dev/null`
11806 test "x$?" != "x0" && pkg_failed=yes
11813 if test -n "$LIBNL2_LIBS"; then
11814 pkg_cv_LIBNL2_LIBS="$LIBNL2_LIBS"
11815 elif test -n "$PKG_CONFIG"; then
11816 if test -n "$PKG_CONFIG" && \
11817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
11818 ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; }; then
11822 pkg_cv_LIBNL2_LIBS=`$PKG_CONFIG --libs "libnl-2.0" 2>/dev/null`
11823 test "x$?" != "x0" && pkg_failed=yes
11833 if test $pkg_failed = yes; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11838 _pkg_short_errors_supported=yes
11840 _pkg_short_errors_supported=no
11842 if test $_pkg_short_errors_supported = yes; then
11843 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-2.0" 2>&1`
11845 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-2.0" 2>&1`
11847 # Put the nasty error message in config.log where it belongs
11848 echo "$LIBNL2_PKG_ERRORS" >&5
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
11854 $as_echo_n "checking for LIBNL1... " >&6; }
11856 if test -n "$LIBNL1_CFLAGS"; then
11857 pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
11858 elif test -n "$PKG_CONFIG"; then
11859 if test -n "$PKG_CONFIG" && \
11860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11861 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11864 test $ac_status = 0; }; then
11865 pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
11866 test "x$?" != "x0" && pkg_failed=yes
11873 if test -n "$LIBNL1_LIBS"; then
11874 pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
11875 elif test -n "$PKG_CONFIG"; then
11876 if test -n "$PKG_CONFIG" && \
11877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11878 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; }; then
11882 pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
11883 test "x$?" != "x0" && pkg_failed=yes
11893 if test $pkg_failed = yes; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11898 _pkg_short_errors_supported=yes
11900 _pkg_short_errors_supported=no
11902 if test $_pkg_short_errors_supported = yes; then
11903 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
11905 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
11907 # Put the nasty error message in config.log where it belongs
11908 echo "$LIBNL1_PKG_ERRORS" >&5
11910 as_fn_error $? "Netlink library is required" "$LINENO" 5
11911 elif test $pkg_failed = untried; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 as_fn_error $? "Netlink library is required" "$LINENO" 5
11916 LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
11917 LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11919 $as_echo "yes" >&6; }
11923 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
11925 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
11926 NETLINK_LIBS=${LIBNL1_LIBS}
11928 elif test $pkg_failed = untried; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
11935 $as_echo_n "checking for LIBNL1... " >&6; }
11937 if test -n "$LIBNL1_CFLAGS"; then
11938 pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
11939 elif test -n "$PKG_CONFIG"; then
11940 if test -n "$PKG_CONFIG" && \
11941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11942 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945 test $ac_status = 0; }; then
11946 pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
11947 test "x$?" != "x0" && pkg_failed=yes
11954 if test -n "$LIBNL1_LIBS"; then
11955 pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
11956 elif test -n "$PKG_CONFIG"; then
11957 if test -n "$PKG_CONFIG" && \
11958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
11959 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
11961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962 test $ac_status = 0; }; then
11963 pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
11964 test "x$?" != "x0" && pkg_failed=yes
11974 if test $pkg_failed = yes; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11979 _pkg_short_errors_supported=yes
11981 _pkg_short_errors_supported=no
11983 if test $_pkg_short_errors_supported = yes; then
11984 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
11986 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
11988 # Put the nasty error message in config.log where it belongs
11989 echo "$LIBNL1_PKG_ERRORS" >&5
11991 as_fn_error $? "Netlink library is required" "$LINENO" 5
11992 elif test $pkg_failed = untried; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 as_fn_error $? "Netlink library is required" "$LINENO" 5
11997 LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
11998 LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12004 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12006 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12007 NETLINK_LIBS=${LIBNL1_LIBS}
12010 LIBNL2_CFLAGS=$pkg_cv_LIBNL2_CFLAGS
12011 LIBNL2_LIBS=$pkg_cv_LIBNL2_LIBS
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013 $as_echo "yes" >&6; }
12015 NETLINK_CFLAGS=${LIBNL2_CFLAGS}
12016 NETLINK_LIBS=${LIBNL2_LIBS}
12020 elif test $pkg_failed = untried; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL2" >&5
12027 $as_echo_n "checking for LIBNL2... " >&6; }
12029 if test -n "$LIBNL2_CFLAGS"; then
12030 pkg_cv_LIBNL2_CFLAGS="$LIBNL2_CFLAGS"
12031 elif test -n "$PKG_CONFIG"; then
12032 if test -n "$PKG_CONFIG" && \
12033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
12034 ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
12036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037 test $ac_status = 0; }; then
12038 pkg_cv_LIBNL2_CFLAGS=`$PKG_CONFIG --cflags "libnl-2.0" 2>/dev/null`
12039 test "x$?" != "x0" && pkg_failed=yes
12046 if test -n "$LIBNL2_LIBS"; then
12047 pkg_cv_LIBNL2_LIBS="$LIBNL2_LIBS"
12048 elif test -n "$PKG_CONFIG"; then
12049 if test -n "$PKG_CONFIG" && \
12050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-2.0\""; } >&5
12051 ($PKG_CONFIG --exists --print-errors "libnl-2.0") 2>&5
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; }; then
12055 pkg_cv_LIBNL2_LIBS=`$PKG_CONFIG --libs "libnl-2.0" 2>/dev/null`
12056 test "x$?" != "x0" && pkg_failed=yes
12066 if test $pkg_failed = yes; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12071 _pkg_short_errors_supported=yes
12073 _pkg_short_errors_supported=no
12075 if test $_pkg_short_errors_supported = yes; then
12076 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-2.0" 2>&1`
12078 LIBNL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-2.0" 2>&1`
12080 # Put the nasty error message in config.log where it belongs
12081 echo "$LIBNL2_PKG_ERRORS" >&5
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
12087 $as_echo_n "checking for LIBNL1... " >&6; }
12089 if test -n "$LIBNL1_CFLAGS"; then
12090 pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
12091 elif test -n "$PKG_CONFIG"; then
12092 if test -n "$PKG_CONFIG" && \
12093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12094 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; then
12098 pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
12099 test "x$?" != "x0" && pkg_failed=yes
12106 if test -n "$LIBNL1_LIBS"; then
12107 pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
12108 elif test -n "$PKG_CONFIG"; then
12109 if test -n "$PKG_CONFIG" && \
12110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12111 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114 test $ac_status = 0; }; then
12115 pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
12116 test "x$?" != "x0" && pkg_failed=yes
12126 if test $pkg_failed = yes; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12131 _pkg_short_errors_supported=yes
12133 _pkg_short_errors_supported=no
12135 if test $_pkg_short_errors_supported = yes; then
12136 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
12138 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
12140 # Put the nasty error message in config.log where it belongs
12141 echo "$LIBNL1_PKG_ERRORS" >&5
12143 as_fn_error $? "Netlink library is required" "$LINENO" 5
12144 elif test $pkg_failed = untried; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 as_fn_error $? "Netlink library is required" "$LINENO" 5
12149 LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
12150 LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12156 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12158 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12159 NETLINK_LIBS=${LIBNL1_LIBS}
12161 elif test $pkg_failed = untried; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL1" >&5
12168 $as_echo_n "checking for LIBNL1... " >&6; }
12170 if test -n "$LIBNL1_CFLAGS"; then
12171 pkg_cv_LIBNL1_CFLAGS="$LIBNL1_CFLAGS"
12172 elif test -n "$PKG_CONFIG"; then
12173 if test -n "$PKG_CONFIG" && \
12174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12175 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178 test $ac_status = 0; }; then
12179 pkg_cv_LIBNL1_CFLAGS=`$PKG_CONFIG --cflags "libnl-1" 2>/dev/null`
12180 test "x$?" != "x0" && pkg_failed=yes
12187 if test -n "$LIBNL1_LIBS"; then
12188 pkg_cv_LIBNL1_LIBS="$LIBNL1_LIBS"
12189 elif test -n "$PKG_CONFIG"; then
12190 if test -n "$PKG_CONFIG" && \
12191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-1\""; } >&5
12192 ($PKG_CONFIG --exists --print-errors "libnl-1") 2>&5
12194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195 test $ac_status = 0; }; then
12196 pkg_cv_LIBNL1_LIBS=`$PKG_CONFIG --libs "libnl-1" 2>/dev/null`
12197 test "x$?" != "x0" && pkg_failed=yes
12207 if test $pkg_failed = yes; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12211 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12212 _pkg_short_errors_supported=yes
12214 _pkg_short_errors_supported=no
12216 if test $_pkg_short_errors_supported = yes; then
12217 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-1" 2>&1`
12219 LIBNL1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-1" 2>&1`
12221 # Put the nasty error message in config.log where it belongs
12222 echo "$LIBNL1_PKG_ERRORS" >&5
12224 as_fn_error $? "Netlink library is required" "$LINENO" 5
12225 elif test $pkg_failed = untried; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 as_fn_error $? "Netlink library is required" "$LINENO" 5
12230 LIBNL1_CFLAGS=$pkg_cv_LIBNL1_CFLAGS
12231 LIBNL1_LIBS=$pkg_cv_LIBNL1_LIBS
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12233 $as_echo "yes" >&6; }
12237 $as_echo "#define NEED_LIBNL_COMPAT 1" >>confdefs.h
12239 NETLINK_CFLAGS=${LIBNL1_CFLAGS}
12240 NETLINK_LIBS=${LIBNL1_LIBS}
12243 LIBNL2_CFLAGS=$pkg_cv_LIBNL2_CFLAGS
12244 LIBNL2_LIBS=$pkg_cv_LIBNL2_LIBS
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12248 NETLINK_CFLAGS=${LIBNL2_CFLAGS}
12249 NETLINK_LIBS=${LIBNL2_LIBS}
12254 LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS
12255 LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12259 NETLINK_CFLAGS=${LIBNL3_CFLAGS}
12260 NETLINK_LIBS=${LIBNL3_LIBS}
12266 # Check whether --enable-test was given.
12267 if test "${enable_test+set}" = set; then :
12268 enableval=$enable_test; enable_test=${enableval}
12271 if test "${enable_test}" = "yes"; then
12280 # Check whether --enable-tools was given.
12281 if test "${enable_tools+set}" = set; then :
12282 enableval=$enable_tools; enable_tools=${enableval}
12285 if test "${enable_tools}" = "yes"; then
12294 # Check whether --enable-nfctype1 was given.
12295 if test "${enable_nfctype1+set}" = set; then :
12296 enableval=$enable_nfctype1; enable_nfctype1=${enableval}
12299 if test "${enable_nfctype1}" != "no"; then
12308 # Check whether --enable-nfctype2 was given.
12309 if test "${enable_nfctype2+set}" = set; then :
12310 enableval=$enable_nfctype2; enable_nfctype2=${enableval}
12313 if test "${enable_nfctype2}" != "no"; then
12322 # Check whether --enable-nfctype3 was given.
12323 if test "${enable_nfctype3+set}" = set; then :
12324 enableval=$enable_nfctype3; enable_nfctype3=${enableval}
12327 if test "${enable_nfctype3}" != "no"; then
12336 # Check whether --enable-nfctype4 was given.
12337 if test "${enable_nfctype4+set}" = set; then :
12338 enableval=$enable_nfctype4; enable_nfctype4=${enableval}
12341 if test "${enable_nfctype4}" != "no"; then
12350 # Check whether --enable-p2p was given.
12351 if test "${enable_p2p+set}" = set; then :
12352 enableval=$enable_p2p; enable_p2p=${enableval}
12355 if test "${enable_p2p}" != "no"; then
12364 ac_config_files="$ac_config_files Makefile include/version.h neard.pc"
12366 cat >confcache <<\_ACEOF
12367 # This file is a shell script that caches the results of configure
12368 # tests run on this system so they can be shared between configure
12369 # scripts and configure runs, see configure's option --config-cache.
12370 # It is not useful on other systems. If it contains results you don't
12371 # want to keep, you may remove or edit it.
12373 # config.status only pays attention to the cache file if you give it
12374 # the --recheck option to rerun configure.
12376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12378 # following values.
12382 # The following way of writing the cache mishandles newlines in values,
12383 # but we know of no workaround that is simple, portable, and efficient.
12384 # So, we kill variables containing newlines.
12385 # Ultrix sh set writes to stderr and can't be redirected directly,
12386 # and sets the high bit in the cache file unless we assign to the vars.
12388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12389 eval ac_val=\$$ac_var
12393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12397 _ | IFS | as_nl) ;; #(
12398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12399 *) { eval $ac_var=; unset $ac_var;} ;;
12405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12406 *${as_nl}ac_space=\ *)
12407 # `set' does not quote correctly, so add quotes: double-quote
12408 # substitution turns \\\\ into \\, and sed turns \\ into \.
12411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12414 # `set' quotes correctly as required by POSIX, so do not add quotes.
12415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12429 if test -w "$cache_file"; then
12430 if test "x$cache_file" != "x/dev/null"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12432 $as_echo "$as_me: updating cache $cache_file" >&6;}
12433 if test ! -f "$cache_file" || test -h "$cache_file"; then
12434 cat confcache >"$cache_file"
12436 case $cache_file in #(
12438 mv -f confcache "$cache_file"$$ &&
12439 mv -f "$cache_file"$$ "$cache_file" ;; #(
12441 mv -f confcache "$cache_file" ;;
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12453 # Let make expand exec_prefix.
12454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12456 DEFS=-DHAVE_CONFIG_H
12461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12462 # 1. Remove the extension, and $U if already installed.
12463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12464 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12466 # will be set to the directory where LIBOBJS objects are built.
12467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12470 LIBOBJS=$ac_libobjs
12472 LTLIBOBJS=$ac_ltlibobjs
12475 if test -n "$EXEEXT"; then
12477 am__EXEEXT_FALSE='#'
12479 am__EXEEXT_TRUE='#'
12483 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12484 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12488 as_fn_error $? "conditional \"AMDEP\" was never defined.
12489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12492 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12495 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
12496 as_fn_error $? "conditional \"TEST\" was never defined.
12497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12499 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
12500 as_fn_error $? "conditional \"TOOLS\" was never defined.
12501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12503 if test -z "${NFCTYPE1_TRUE}" && test -z "${NFCTYPE1_FALSE}"; then
12504 as_fn_error $? "conditional \"NFCTYPE1\" was never defined.
12505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12507 if test -z "${NFCTYPE2_TRUE}" && test -z "${NFCTYPE2_FALSE}"; then
12508 as_fn_error $? "conditional \"NFCTYPE2\" was never defined.
12509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12511 if test -z "${NFCTYPE3_TRUE}" && test -z "${NFCTYPE3_FALSE}"; then
12512 as_fn_error $? "conditional \"NFCTYPE3\" was never defined.
12513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12515 if test -z "${NFCTYPE4_TRUE}" && test -z "${NFCTYPE4_FALSE}"; then
12516 as_fn_error $? "conditional \"NFCTYPE4\" was never defined.
12517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12519 if test -z "${P2P_TRUE}" && test -z "${P2P_FALSE}"; then
12520 as_fn_error $? "conditional \"P2P\" was never defined.
12521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12524 : "${CONFIG_STATUS=./config.status}"
12526 ac_clean_files_save=$ac_clean_files
12527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12529 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12531 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12533 # Generated by $as_me.
12534 # Run this file to recreate the current configuration.
12535 # Compiler output produced by configure, useful for debugging
12536 # configure, is in config.log if it exists.
12539 ac_cs_recheck=false
12542 SHELL=\${CONFIG_SHELL-$SHELL}
12545 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12546 ## -------------------- ##
12547 ## M4sh Initialization. ##
12548 ## -------------------- ##
12550 # Be more Bourne compatible
12551 DUALCASE=1; export DUALCASE # for MKS sh
12552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12555 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12556 # is contrary to our usage. Disable this feature.
12557 alias -g '${1+"$@"}'='"$@"'
12558 setopt NO_GLOB_SUBST
12560 case `(set -o) 2>/dev/null` in #(
12572 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12573 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12576 # Prefer a ksh shell builtin over an external printf program on Solaris,
12577 # but without wasting forks for bash or zsh.
12578 if test -z "$BASH_VERSION$ZSH_VERSION" \
12579 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12580 as_echo='print -r --'
12581 as_echo_n='print -rn --'
12582 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12583 as_echo='printf %s\n'
12584 as_echo_n='printf %s'
12586 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12587 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12588 as_echo_n='/usr/ucb/echo -n'
12590 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12591 as_echo_n_body='eval
12595 expr "X$arg" : "X\\(.*\\)$as_nl";
12596 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12598 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12600 export as_echo_n_body
12601 as_echo_n='sh -c $as_echo_n_body as_echo'
12603 export as_echo_body
12604 as_echo='sh -c $as_echo_body as_echo'
12607 # The user is always right.
12608 if test "${PATH_SEPARATOR+set}" != set; then
12610 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12611 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12618 # We need space, tab and new line, in precisely that order. Quoting is
12619 # there to prevent editors from complaining about space-tab.
12620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12621 # splitting by setting IFS to empty value.)
12624 # Find who we are. Look in the path if we contain no directory separator.
12627 *[\\/]* ) as_myself=$0 ;;
12628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12632 test -z "$as_dir" && as_dir=.
12633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12639 # We did not find ourselves, most probably we were run as `sh COMMAND'
12640 # in which case we are not to be found in the path.
12641 if test "x$as_myself" = x; then
12644 if test ! -f "$as_myself"; then
12645 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12649 # Unset variables that we do not need and which cause bugs (e.g. in
12650 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12651 # suppresses any "Segmentation fault" message there. '((' could
12652 # trigger a bug in pdksh 5.2.14.
12653 for as_var in BASH_ENV ENV MAIL MAILPATH
12654 do eval test x\${$as_var+set} = xset \
12655 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12671 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12672 # ----------------------------------------
12673 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12674 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12675 # script with STATUS, using 1 if that was 0.
12678 as_status=$1; test $as_status -eq 0 && as_status=1
12680 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12683 $as_echo "$as_me: error: $2" >&2
12684 as_fn_exit $as_status
12688 # as_fn_set_status STATUS
12689 # -----------------------
12690 # Set $? to STATUS, without forking.
12691 as_fn_set_status ()
12694 } # as_fn_set_status
12696 # as_fn_exit STATUS
12697 # -----------------
12698 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12702 as_fn_set_status $1
12708 # Portably unset VAR.
12711 { eval $1=; unset $1;}
12713 as_unset=as_fn_unset
12714 # as_fn_append VAR VALUE
12715 # ----------------------
12716 # Append the text in VALUE to the end of the definition contained in VAR. Take
12717 # advantage of any shell optimizations that allow amortized linear growth over
12718 # repeated appends, instead of the typical quadratic growth present in naive
12720 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12721 eval 'as_fn_append ()
12732 # as_fn_arith ARG...
12733 # ------------------
12734 # Perform arithmetic evaluation on the ARGs, and store the result in the
12735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12736 # must be portable across $(()) and expr.
12737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12738 eval 'as_fn_arith ()
12745 as_val=`expr "$@" || test $? -eq 1`
12750 if expr a : '\(a\)' >/dev/null 2>&1 &&
12751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12758 as_basename=basename
12763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12769 as_me=`$as_basename -- "$0" ||
12770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12771 X"$0" : 'X\(//\)$' \| \
12772 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12774 sed '/^.*\/\([^/][^/]*\)\/*$/{
12788 # Avoid depending upon Character Ranges.
12789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12792 as_cr_digits='0123456789'
12793 as_cr_alnum=$as_cr_Letters$as_cr_digits
12795 ECHO_C= ECHO_N= ECHO_T=
12796 case `echo -n x` in #(((((
12798 case `echo 'xy\c'` in
12799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12801 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12808 rm -f conf$$ conf$$.exe conf$$.file
12809 if test -d conf$$.dir; then
12810 rm -f conf$$.dir/conf$$.file
12813 mkdir conf$$.dir 2>/dev/null
12815 if (echo >conf$$.file) 2>/dev/null; then
12816 if ln -s conf$$.file conf$$ 2>/dev/null; then
12818 # ... but there are two gotchas:
12819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12821 # In both cases, we have to default to `cp -pR'.
12822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12824 elif ln conf$$.file conf$$ 2>/dev/null; then
12832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12833 rmdir conf$$.dir 2>/dev/null
12838 # Create "$as_dir" as a directory, including parents if necessary.
12843 -*) as_dir=./$as_dir;;
12845 test -d "$as_dir" || eval $as_mkdir_p || {
12849 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12850 *) as_qdir=$as_dir;;
12852 as_dirs="'$as_qdir' $as_dirs"
12853 as_dir=`$as_dirname -- "$as_dir" ||
12854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12855 X"$as_dir" : 'X\(//\)[^/]' \| \
12856 X"$as_dir" : 'X\(//\)$' \| \
12857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12858 $as_echo X"$as_dir" |
12859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12863 /^X\(\/\/\)[^/].*/{
12876 test -d "$as_dir" && break
12878 test -z "$as_dirs" || eval "mkdir $as_dirs"
12879 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12883 if mkdir -p . 2>/dev/null; then
12884 as_mkdir_p='mkdir -p "$as_dir"'
12886 test -d ./-p && rmdir ./-p
12891 # as_fn_executable_p FILE
12892 # -----------------------
12893 # Test if FILE is an executable regular file.
12894 as_fn_executable_p ()
12896 test -f "$1" && test -x "$1"
12897 } # as_fn_executable_p
12898 as_test_x='test -x'
12899 as_executable_p=as_fn_executable_p
12901 # Sed expression to map a string onto a valid CPP name.
12902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12904 # Sed expression to map a string onto a valid variable name.
12905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12909 ## ----------------------------------- ##
12910 ## Main body of $CONFIG_STATUS script. ##
12911 ## ----------------------------------- ##
12913 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916 # Save the log message, to keep $0 and so on meaningful, and to
12917 # report actual input values of CONFIG_FILES etc. instead of their
12918 # values after options handling.
12920 This file was extended by neard $as_me 0.6, which was
12921 generated by GNU Autoconf 2.69. Invocation command line was
12923 CONFIG_FILES = $CONFIG_FILES
12924 CONFIG_HEADERS = $CONFIG_HEADERS
12925 CONFIG_LINKS = $CONFIG_LINKS
12926 CONFIG_COMMANDS = $CONFIG_COMMANDS
12929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12934 case $ac_config_files in *"
12935 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12938 case $ac_config_headers in *"
12939 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12944 # Files that config.status was made for.
12945 config_files="$ac_config_files"
12946 config_headers="$ac_config_headers"
12947 config_commands="$ac_config_commands"
12951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12953 \`$as_me' instantiates files and other configuration actions
12954 from templates according to the current configuration. Unless the files
12955 and actions are specified as TAGs, all are instantiated by default.
12957 Usage: $0 [OPTION]... [TAG]...
12959 -h, --help print this help, then exit
12960 -V, --version print version number and configuration settings, then exit
12961 --config print configuration, then exit
12962 -q, --quiet, --silent
12963 do not print progress messages
12964 -d, --debug don't remove temporary files
12965 --recheck update $as_me by reconfiguring in the same conditions
12966 --file=FILE[:TEMPLATE]
12967 instantiate the configuration file FILE
12968 --header=FILE[:TEMPLATE]
12969 instantiate the configuration header FILE
12971 Configuration files:
12974 Configuration headers:
12977 Configuration commands:
12980 Report bugs to the package provider."
12983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12984 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12986 neard config.status 0.6
12987 configured by $0, generated by GNU Autoconf 2.69,
12988 with options \\"\$ac_cs_config\\"
12990 Copyright (C) 2012 Free Software Foundation, Inc.
12991 This config.status script is free software; the Free Software Foundation
12992 gives unlimited permission to copy, distribute and modify it."
12999 test -n "\$AWK" || AWK=awk
13002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13003 # The default lists apply if the user does not specify any file.
13009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13010 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13014 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13026 # Handling of the options.
13027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13029 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13030 $as_echo "$ac_cs_version"; exit ;;
13031 --config | --confi | --conf | --con | --co | --c )
13032 $as_echo "$ac_cs_config"; exit ;;
13033 --debug | --debu | --deb | --de | --d | -d )
13035 --file | --fil | --fi | --f )
13038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13039 '') as_fn_error $? "missing file argument" ;;
13041 as_fn_append CONFIG_FILES " '$ac_optarg'"
13042 ac_need_defaults=false;;
13043 --header | --heade | --head | --hea )
13046 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13048 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13049 ac_need_defaults=false;;
13051 # Conflict between --help and --header
13052 as_fn_error $? "ambiguous option: \`$1'
13053 Try \`$0 --help' for more information.";;
13054 --help | --hel | -h )
13055 $as_echo "$ac_cs_usage"; exit ;;
13056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13057 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13060 # This is an error.
13061 -*) as_fn_error $? "unrecognized option: \`$1'
13062 Try \`$0 --help' for more information." ;;
13064 *) as_fn_append ac_config_targets " $1"
13065 ac_need_defaults=false ;;
13071 ac_configure_extra_args=
13073 if $ac_cs_silent; then
13075 ac_configure_extra_args="$ac_configure_extra_args --silent"
13079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13080 if \$ac_cs_recheck; then
13081 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13083 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13084 CONFIG_SHELL='$SHELL'
13085 export CONFIG_SHELL
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13094 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13095 ## Running $as_me. ##
13101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13105 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13108 # The HP-UX ksh and POSIX shell print the target directory to stdout
13109 # if CDPATH is set.
13110 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13112 sed_quote_subst='$sed_quote_subst'
13113 double_quote_subst='$double_quote_subst'
13114 delay_variable_subst='$delay_variable_subst'
13115 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13116 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13117 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13118 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13119 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13120 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13121 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13122 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13123 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13124 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13125 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13126 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13127 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13128 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13129 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13130 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13131 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13132 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13133 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13134 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13135 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13136 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13137 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13138 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13139 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13140 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13141 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13142 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13143 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13144 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13145 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13146 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13147 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13148 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13149 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13150 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13151 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13152 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13153 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13154 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13155 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13156 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13157 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13158 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13159 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13160 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13161 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13162 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13163 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13164 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13165 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13166 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13167 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13168 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13169 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13170 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13171 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"`'
13172 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13173 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13174 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13175 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13176 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13177 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13178 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13179 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13180 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13181 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13182 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13183 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13184 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13185 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13186 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13187 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13188 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13189 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13190 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13191 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13192 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13193 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13194 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13195 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13196 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13197 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13198 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13199 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13200 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13201 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13202 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13203 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13204 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13205 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13206 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13207 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13208 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13209 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13210 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13211 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13212 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13213 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13214 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13215 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13216 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13217 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13218 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13219 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13220 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13221 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13222 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13223 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13224 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13225 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13226 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13227 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13228 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13229 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13230 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13231 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13232 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13233 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13234 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13235 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13236 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13237 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13238 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13239 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13240 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13241 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13242 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13243 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13244 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13247 LTCFLAGS='$LTCFLAGS'
13248 compiler='$compiler_DEFAULT'
13250 # A function that is used when there is no print builtin or printf.
13251 func_fallback_echo ()
13253 eval 'cat <<_LTECHO_EOF
13258 # Quote evaled strings.
13273 deplibs_check_method \
13278 sharedlib_from_linklib_cmd \
13281 archiver_list_spec \
13287 lt_cv_sys_global_symbol_pipe \
13288 lt_cv_sys_global_symbol_to_cdecl \
13289 lt_cv_sys_global_symbol_to_c_name_address \
13290 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13291 nm_file_list_spec \
13292 lt_prog_compiler_no_builtin_flag \
13293 lt_prog_compiler_pic \
13294 lt_prog_compiler_wl \
13295 lt_prog_compiler_static \
13296 lt_cv_prog_compiler_c_o \
13305 export_dynamic_flag_spec \
13306 whole_archive_flag_spec \
13307 compiler_needs_object \
13309 allow_undefined_flag \
13310 no_undefined_flag \
13311 hardcode_libdir_flag_spec \
13312 hardcode_libdir_separator \
13316 variables_saved_for_relink \
13318 library_names_spec \
13320 install_override_mode \
13324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13325 *[\\\\\\\`\\"\\\$]*)
13326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13334 # Double-quote double-evaled strings.
13335 for var in reload_cmds \
13336 old_postinstall_cmds \
13337 old_postuninstall_cmds \
13339 extract_expsyms_cmds \
13340 old_archive_from_new_cmds \
13341 old_archive_from_expsyms_cmds \
13343 archive_expsym_cmds \
13345 module_expsym_cmds \
13346 export_symbols_cmds \
13350 postuninstall_cmds \
13352 sys_lib_search_path_spec \
13353 sys_lib_dlsearch_path_spec; do
13354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13355 *[\\\\\\\`\\"\\\$]*)
13356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13364 ac_aux_dir='$ac_aux_dir'
13365 xsi_shell='$xsi_shell'
13366 lt_shell_append='$lt_shell_append'
13368 # See if we are running on zsh, and set the options which allow our
13369 # commands through without removal of \ escapes INIT.
13370 if test -n "\${ZSH_VERSION+set}" ; then
13371 setopt NO_GLOB_SUBST
13377 TIMESTAMP='$TIMESTAMP'
13386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13388 # Handling of arguments.
13389 for ac_config_target in $ac_config_targets
13391 case $ac_config_target in
13392 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13393 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13394 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13395 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13396 "include/version.h") CONFIG_FILES="$CONFIG_FILES include/version.h" ;;
13397 "neard.pc") CONFIG_FILES="$CONFIG_FILES neard.pc" ;;
13399 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13404 # If the user did not use the arguments to specify the items to instantiate,
13405 # then the envvar interface is used. Set only those that are not.
13406 # We use the long form for the default assignment because of an extremely
13407 # bizarre bug on SunOS 4.1.3.
13408 if $ac_need_defaults; then
13409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13414 # Have a temporary directory for convenience. Make it in the build tree
13415 # simply because there is no reason against having it here, and in addition,
13416 # creating and moving files from /tmp can sometimes cause problems.
13417 # Hook for its removal unless debugging.
13418 # Note that there is a small window in which the directory will not be cleaned:
13419 # after its creation but before its name has been assigned to `$tmp'.
13423 trap 'exit_status=$?
13424 : "${ac_tmp:=$tmp}"
13425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13427 trap 'as_fn_exit 1' 1 2 13 15
13429 # Create a (secure) tmp directory for tmp files.
13432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13436 tmp=./conf$$-$RANDOM
13437 (umask 077 && mkdir "$tmp")
13438 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13441 # Set up the scripts for CONFIG_FILES section.
13442 # No need to generate them if there are no CONFIG_FILES.
13443 # This happens for instance with `./config.status config.h'.
13444 if test -n "$CONFIG_FILES"; then
13447 ac_cr=`echo X | tr X '\015'`
13448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13449 # But we know of no other shell where ac_cr would be empty at this
13450 # point, so we can use a bashism as a fallback.
13451 if test "x$ac_cr" = x; then
13452 eval ac_cr=\$\'\\r\'
13454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13458 ac_cs_awk_cr=$ac_cr
13461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13466 echo "cat >conf$$subs.awk <<_ACEOF" &&
13467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13469 } >conf$$subs.sh ||
13470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13473 for ac_last_try in false false false false false :; do
13474 . ./conf$$subs.sh ||
13475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13478 if test $ac_delim_n = $ac_delim_num; then
13480 elif $ac_last_try; then
13481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13486 rm -f conf$$subs.sh
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13493 s/^/S["/; s/!.*/"]=/
13503 s/\(.\{148\}\)..*/\1/
13505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13517 s/\(.\{148\}\)..*/\1/
13519 s/["\\]/\\&/g; s/^/"/; s/$/"/
13523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13528 ' <conf$$subs.awk | sed '
13533 ' >>$CONFIG_STATUS || ac_write_fail=1
13534 rm -f conf$$subs.awk
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13537 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13538 for (key in S) S_is_set[key] = 1
13544 nfields = split(line, field, "@")
13546 len = length(field[1])
13547 for (i = 2; i < nfields; i++) {
13549 keylen = length(key)
13550 if (S_is_set[key]) {
13552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13553 len += length(value) + length(field[++i])
13564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13569 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13573 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13574 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13575 # trailing colons and then remove the whole line if VPATH becomes empty
13576 # (actually we leave an empty line to preserve line numbers).
13577 if test "x$srcdir" = x.; then
13578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597 fi # test -n "$CONFIG_FILES"
13599 # Set up the scripts for CONFIG_HEADERS section.
13600 # No need to generate them if there are no CONFIG_HEADERS.
13601 # This happens for instance with `./config.status Makefile'.
13602 if test -n "$CONFIG_HEADERS"; then
13603 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13607 # Transform confdefs.h into an awk script `defines.awk', embedded as
13608 # here-document in config.status, that substitutes the proper values into
13609 # config.h.in to produce config.h.
13611 # Create a delimiter string that does not exist in confdefs.h, to ease
13612 # handling of long lines.
13614 for ac_last_try in false false :; do
13615 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13616 if test -z "$ac_tt"; then
13618 elif $ac_last_try; then
13619 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13625 # For the awk script, D is an array of macro values keyed by name,
13626 # likewise P contains macro parameters if any. Preserve backslash
13627 # newline sequences.
13629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13631 s/.\{148\}/&'"$ac_delim"'/g
13634 s/^[ ]*#[ ]*define[ ][ ]*/ /
13641 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13647 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13648 D["\1"]=" \3\\\\\\n"\\/p
13650 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13655 s/.\{148\}/&'"$ac_delim"'/g
13660 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13663 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13665 ' <confdefs.h | sed '
13666 s/'"$ac_delim"'/"\\\
13667 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13670 for (key in D) D_is_set[key] = 1
13673 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13675 split(line, arg, " ")
13676 if (arg[1] == "#") {
13680 defundef = substr(arg[1], 2)
13683 split(mac1, mac2, "(") #)
13685 prefix = substr(line, 1, index(line, defundef) - 1)
13686 if (D_is_set[macro]) {
13687 # Preserve the white space surrounding the "#".
13688 print prefix "define", macro P[macro] D[macro]
13691 # Replace #undef with comments. This is necessary, for example,
13692 # in the case of _POSIX_SOURCE, which is predefined and required
13693 # on some systems where configure will not decide to define it.
13694 if (defundef == "undef") {
13695 print "/*", prefix defundef, macro, "*/"
13703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13704 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13705 fi # test -n "$CONFIG_HEADERS"
13708 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13713 :[FHLC]) ac_mode=$ac_tag; continue;;
13715 case $ac_mode$ac_tag in
13717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13718 :[FH]-) ac_tag=-:-;;
13719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13736 -) ac_f="$ac_tmp/stdin";;
13737 *) # Look for the file first in the build tree, then in the source tree
13738 # (if the path is not absolute). The absolute path cannot be DOS-style,
13739 # because $ac_f cannot contain `:'.
13743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13748 as_fn_append ac_file_inputs " '$ac_f'"
13751 # Let's still pretend it is `configure' which instantiates (i.e., don't
13752 # use $as_me), people would be surprised to read:
13753 # /* config.h. Generated by config.status. */
13754 configure_input='Generated from '`
13755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13757 if test x"$ac_file" != x-; then
13758 configure_input="$ac_file. $configure_input"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13760 $as_echo "$as_me: creating $ac_file" >&6;}
13762 # Neutralize special characters interpreted by sed in replacement strings.
13763 case $configure_input in #(
13764 *\&* | *\|* | *\\* )
13765 ac_sed_conf_input=`$as_echo "$configure_input" |
13766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13767 *) ac_sed_conf_input=$configure_input;;
13771 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13777 ac_dir=`$as_dirname -- "$ac_file" ||
13778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13779 X"$ac_file" : 'X\(//\)[^/]' \| \
13780 X"$ac_file" : 'X\(//\)$' \| \
13781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13782 $as_echo X"$ac_file" |
13783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13787 /^X\(\/\/\)[^/].*/{
13800 as_dir="$ac_dir"; as_fn_mkdir_p
13804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13807 # A ".." for each directory in $ac_dir_suffix.
13808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13809 case $ac_top_builddir_sub in
13810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13814 ac_abs_top_builddir=$ac_pwd
13815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13816 # for backward compatibility:
13817 ac_top_builddir=$ac_top_build_prefix
13820 .) # We are building in place.
13822 ac_top_srcdir=$ac_top_builddir_sub
13823 ac_abs_top_srcdir=$ac_pwd ;;
13824 [\\/]* | ?:[\\/]* ) # Absolute name.
13825 ac_srcdir=$srcdir$ac_dir_suffix;
13826 ac_top_srcdir=$srcdir
13827 ac_abs_top_srcdir=$srcdir ;;
13828 *) # Relative name.
13829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13830 ac_top_srcdir=$ac_top_build_prefix$srcdir
13831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13846 ac_MKDIR_P=$MKDIR_P
13848 [\\/$]* | ?:[\\/]* ) ;;
13849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13854 # If the template does not know about datarootdir, expand it.
13855 # FIXME: This hack should be removed a few years after 2.60.
13856 ac_datarootdir_hack=; ac_datarootdir_seen=
13867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13868 *datarootdir*) ac_datarootdir_seen=yes;;
13869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13874 ac_datarootdir_hack='
13875 s&@datadir@&$datadir&g
13876 s&@docdir@&$docdir&g
13877 s&@infodir@&$infodir&g
13878 s&@localedir@&$localedir&g
13879 s&@mandir@&$mandir&g
13880 s&\\\${datarootdir}&$datarootdir&g' ;;
13884 # Neutralize VPATH when `$srcdir' = `.'.
13885 # Shell code in configure.ac might set extrasub.
13886 # FIXME: do we really want to maintain this feature?
13887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13888 ac_sed_extra="$ac_vpsub
13891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13894 s|@configure_input@|$ac_sed_conf_input|;t t
13895 s&@top_builddir@&$ac_top_builddir_sub&;t t
13896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13897 s&@srcdir@&$ac_srcdir&;t t
13898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13899 s&@top_srcdir@&$ac_top_srcdir&;t t
13900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13901 s&@builddir@&$ac_builddir&;t t
13902 s&@abs_builddir@&$ac_abs_builddir&;t t
13903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13904 s&@INSTALL@&$ac_INSTALL&;t t
13905 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13906 $ac_datarootdir_hack
13908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13914 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13916 which seems to be undefined. Please make sure it is defined" >&5
13917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13918 which seems to be undefined. Please make sure it is defined" >&2;}
13920 rm -f "$ac_tmp/stdin"
13922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13931 if test x"$ac_file" != x-; then
13933 $as_echo "/* $configure_input */" \
13934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13935 } >"$ac_tmp/config.h" \
13936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13937 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13939 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13942 mv "$ac_tmp/config.h" "$ac_file" \
13943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13946 $as_echo "/* $configure_input */" \
13947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13948 || as_fn_error $? "could not create -" "$LINENO" 5
13950 # Compute "$ac_file"'s index in $config_headers.
13953 for _am_header in $config_headers :; do
13954 case $_am_header in
13955 $_am_arg | $_am_arg:* )
13958 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13961 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13962 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13963 X"$_am_arg" : 'X\(//\)[^/]' \| \
13964 X"$_am_arg" : 'X\(//\)$' \| \
13965 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13966 $as_echo X"$_am_arg" |
13967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13971 /^X\(\/\/\)[^/].*/{
13983 s/.*/./; q'`/stamp-h$_am_stamp_count
13986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13987 $as_echo "$as_me: executing $ac_file commands" >&6;}
13992 case $ac_file$ac_mode in
13993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13995 # are listed without --file. Let's play safe and only enable the eval
13996 # if we detect the quoting.
13997 case $CONFIG_FILES in
13998 *\'*) eval set x "$CONFIG_FILES" ;;
13999 *) set x $CONFIG_FILES ;;
14004 # Strip MF so we end up with the name of the file.
14005 mf=`echo "$mf" | sed -e 's/:.*$//'`
14006 # Check whether this is an Automake generated Makefile or not.
14007 # We used to match only the files named `Makefile.in', but
14008 # some people rename them; so instead we look at the file content.
14009 # Grep'ing the first line is not enough: some people post-process
14010 # each Makefile.in and add a new line on top of each file to say so.
14011 # Grep'ing the whole file is not good either: AIX grep has a line
14012 # limit of 2048, but all sed's we know have understand at least 4000.
14013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14014 dirpart=`$as_dirname -- "$mf" ||
14015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016 X"$mf" : 'X\(//\)[^/]' \| \
14017 X"$mf" : 'X\(//\)$' \| \
14018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14024 /^X\(\/\/\)[^/].*/{
14040 # Extract the definition of DEPDIR, am__include, and am__quote
14041 # from the Makefile without running `make'.
14042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14043 test -z "$DEPDIR" && continue
14044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14045 test -z "am__include" && continue
14046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14047 # When using ansi2knr, U may be empty or an underscore; expand it
14048 U=`sed -n 's/^U = //p' < "$mf"`
14049 # Find all dependency output files, they are included files with
14050 # $(DEPDIR) in their names. We invoke sed twice because it is the
14051 # simplest approach to changing $(DEPDIR) to its actual value in the
14053 for file in `sed -n "
14054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14056 # Make sure the directory exists.
14057 test -f "$dirpart/$file" && continue
14058 fdir=`$as_dirname -- "$file" ||
14059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14060 X"$file" : 'X\(//\)[^/]' \| \
14061 X"$file" : 'X\(//\)$' \| \
14062 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14063 $as_echo X"$file" |
14064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14068 /^X\(\/\/\)[^/].*/{
14081 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14082 # echo "creating $dirpart/$file"
14083 echo '# dummy' > "$dirpart/$file"
14090 # See if we are running on zsh, and set the options which allow our
14091 # commands through without removal of \ escapes.
14092 if test -n "${ZSH_VERSION+set}" ; then
14093 setopt NO_GLOB_SUBST
14096 cfgfile="${ofile}T"
14097 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14100 cat <<_LT_EOF >> "$cfgfile"
14103 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14104 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14108 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14109 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14111 # Written by Gordon Matzigkeit, 1996
14113 # This file is part of GNU Libtool.
14115 # GNU Libtool is free software; you can redistribute it and/or
14116 # modify it under the terms of the GNU General Public License as
14117 # published by the Free Software Foundation; either version 2 of
14118 # the License, or (at your option) any later version.
14120 # As a special exception to the GNU General Public License,
14121 # if you distribute this file as part of a program or library that
14122 # is built using GNU Libtool, you may include this file under the
14123 # same distribution terms that you use for the rest of that program.
14125 # GNU Libtool is distributed in the hope that it will be useful,
14126 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14127 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14128 # GNU General Public License for more details.
14130 # You should have received a copy of the GNU General Public License
14131 # along with GNU Libtool; see the file COPYING. If not, a copy
14132 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14133 # obtained by writing to the Free Software Foundation, Inc.,
14134 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14137 # The names of the tagged configurations supported by this script.
14140 # ### BEGIN LIBTOOL CONFIG
14142 # Whether or not to build static libraries.
14143 build_old_libs=$enable_static
14145 # Which release of libtool.m4 was used?
14146 macro_version=$macro_version
14147 macro_revision=$macro_revision
14149 # Whether or not to build shared libraries.
14150 build_libtool_libs=$enable_shared
14152 # What type of objects to build.
14155 # Whether or not to optimize for fast installation.
14156 fast_install=$enable_fast_install
14158 # Shell to use when invoking shell scripts.
14161 # An echo program that protects backslashes.
14164 # The PATH separator for the build system.
14165 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14168 host_alias=$host_alias
14172 # The build system.
14173 build_alias=$build_alias
14177 # A sed program that does not truncate output.
14180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14181 Xsed="\$SED -e 1s/^X//"
14183 # A grep program that handles long lines.
14189 # A literal string matcher.
14192 # A BSD- or MS-compatible name lister.
14195 # Whether we need soft or hard links.
14198 # What is the maximum length of a command?
14199 max_cmd_len=$max_cmd_len
14201 # Object file suffix (normally "o").
14204 # Executable file suffix (normally "").
14207 # whether the shell understands "unset".
14210 # turn spaces into newlines.
14213 # turn newlines into spaces.
14216 # convert \$build file names to \$host format.
14217 to_host_file_cmd=$lt_cv_to_host_file_cmd
14219 # convert \$build files to toolchain format.
14220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14222 # An object symbol dumper.
14223 OBJDUMP=$lt_OBJDUMP
14225 # Method to check whether dependent libraries are shared objects.
14226 deplibs_check_method=$lt_deplibs_check_method
14228 # Command to use when deplibs_check_method = "file_magic".
14229 file_magic_cmd=$lt_file_magic_cmd
14231 # How to find potential files when deplibs_check_method = "file_magic".
14232 file_magic_glob=$lt_file_magic_glob
14234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14235 want_nocaseglob=$lt_want_nocaseglob
14237 # DLL creation program.
14238 DLLTOOL=$lt_DLLTOOL
14240 # Command to associate shared and link libraries.
14241 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14246 # Flags to create an archive.
14247 AR_FLAGS=$lt_AR_FLAGS
14249 # How to feed a file listing to the archiver.
14250 archiver_list_spec=$lt_archiver_list_spec
14252 # A symbol stripping program.
14255 # Commands used to install an old-style archive.
14257 old_postinstall_cmds=$lt_old_postinstall_cmds
14258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14260 # Whether to use a lock for old archive extraction.
14261 lock_old_archive_extraction=$lock_old_archive_extraction
14266 # LTCC compiler flags.
14267 LTCFLAGS=$lt_CFLAGS
14269 # Take the output of nm and produce a listing of raw symbols and C names.
14270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14272 # Transform the output of nm in a proper C declaration.
14273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14275 # Transform the output of nm in a C name address pair.
14276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14278 # Transform the output of nm in a C name address pair when lib prefix is needed.
14279 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14281 # Specify filename containing input files for \$NM.
14282 nm_file_list_spec=$lt_nm_file_list_spec
14284 # The root where to search for dependent libraries,and in which our libraries should be installed.
14285 lt_sysroot=$lt_sysroot
14287 # The name of the directory that contains temporary libtool files.
14290 # Used to examine libraries when file_magic_cmd begins with "file".
14291 MAGIC_CMD=$MAGIC_CMD
14293 # Must we lock files when doing compilation?
14294 need_locks=$lt_need_locks
14297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14300 DSYMUTIL=$lt_DSYMUTIL
14302 # Tool to change global to local symbols on Mac OS X.
14305 # Tool to manipulate fat objects and archives on Mac OS X.
14308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14312 OTOOL64=$lt_OTOOL64
14314 # Old archive suffix (normally "a").
14317 # Shared library suffix (normally ".so").
14318 shrext_cmds=$lt_shrext_cmds
14320 # The commands to extract the exported symbol list from a shared archive.
14321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14323 # Variables whose values should be saved in libtool wrapper scripts and
14324 # restored at link time.
14325 variables_saved_for_relink=$lt_variables_saved_for_relink
14327 # Do we need the "lib" prefix for modules?
14328 need_lib_prefix=$need_lib_prefix
14330 # Do we need a version for libraries?
14331 need_version=$need_version
14333 # Library versioning type.
14334 version_type=$version_type
14336 # Shared library runtime path variable.
14337 runpath_var=$runpath_var
14339 # Shared library path variable.
14340 shlibpath_var=$shlibpath_var
14342 # Is shlibpath searched before the hard-coded library search path?
14343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14345 # Format of library name prefix.
14346 libname_spec=$lt_libname_spec
14348 # List of archive names. First name is the real one, the rest are links.
14349 # The last name is the one that the linker finds with -lNAME
14350 library_names_spec=$lt_library_names_spec
14352 # The coded name of the library, if different from the real name.
14353 soname_spec=$lt_soname_spec
14355 # Permission mode override for installation of shared libraries.
14356 install_override_mode=$lt_install_override_mode
14358 # Command to use after installation of a shared archive.
14359 postinstall_cmds=$lt_postinstall_cmds
14361 # Command to use after uninstallation of a shared archive.
14362 postuninstall_cmds=$lt_postuninstall_cmds
14364 # Commands used to finish a libtool library installation in a directory.
14365 finish_cmds=$lt_finish_cmds
14367 # As "finish_cmds", except a single script fragment to be evaled but
14369 finish_eval=$lt_finish_eval
14371 # Whether we should hardcode library paths into libraries.
14372 hardcode_into_libs=$hardcode_into_libs
14374 # Compile-time system search path for libraries.
14375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14377 # Run-time system search path for libraries.
14378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14380 # Whether dlopen is supported.
14381 dlopen_support=$enable_dlopen
14383 # Whether dlopen of programs is supported.
14384 dlopen_self=$enable_dlopen_self
14386 # Whether dlopen of statically linked programs is supported.
14387 dlopen_self_static=$enable_dlopen_self_static
14389 # Commands to strip libraries.
14390 old_striplib=$lt_old_striplib
14391 striplib=$lt_striplib
14394 # The linker used to build libraries.
14397 # How to create reloadable object files.
14398 reload_flag=$lt_reload_flag
14399 reload_cmds=$lt_reload_cmds
14401 # Commands used to build an old-style archive.
14402 old_archive_cmds=$lt_old_archive_cmds
14404 # A language specific compiler.
14407 # Is the compiler the GNU compiler?
14410 # Compiler flag to turn off builtin functions.
14411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14413 # Additional compiler flags for building library objects.
14414 pic_flag=$lt_lt_prog_compiler_pic
14416 # How to pass a linker flag through the compiler.
14417 wl=$lt_lt_prog_compiler_wl
14419 # Compiler flag to prevent dynamic linking.
14420 link_static_flag=$lt_lt_prog_compiler_static
14422 # Does compiler simultaneously support -c and -o options?
14423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14425 # Whether or not to add -lc for building shared libraries.
14426 build_libtool_need_lc=$archive_cmds_need_lc
14428 # Whether or not to disallow shared libs when runtime libs are static.
14429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14431 # Compiler flag to allow reflexive dlopens.
14432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14434 # Compiler flag to generate shared objects directly from archives.
14435 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14437 # Whether the compiler copes with passing no objects directly.
14438 compiler_needs_object=$lt_compiler_needs_object
14440 # Create an old-style archive from a shared archive.
14441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14443 # Create a temporary old-style archive to link instead of a shared archive.
14444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14446 # Commands used to build a shared archive.
14447 archive_cmds=$lt_archive_cmds
14448 archive_expsym_cmds=$lt_archive_expsym_cmds
14450 # Commands used to build a loadable module if different from building
14451 # a shared archive.
14452 module_cmds=$lt_module_cmds
14453 module_expsym_cmds=$lt_module_expsym_cmds
14455 # Whether we are building with GNU ld or not.
14456 with_gnu_ld=$lt_with_gnu_ld
14458 # Flag that allows shared libraries with undefined symbols to be built.
14459 allow_undefined_flag=$lt_allow_undefined_flag
14461 # Flag that enforces no undefined symbols.
14462 no_undefined_flag=$lt_no_undefined_flag
14464 # Flag to hardcode \$libdir into a binary during linking.
14465 # This must work even if \$libdir does not exist
14466 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14468 # Whether we need a single "-rpath" flag with a separated argument.
14469 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14472 # DIR into the resulting binary.
14473 hardcode_direct=$hardcode_direct
14475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14476 # DIR into the resulting binary and the resulting library dependency is
14477 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14478 # library is relocated.
14479 hardcode_direct_absolute=$hardcode_direct_absolute
14481 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14482 # into the resulting binary.
14483 hardcode_minus_L=$hardcode_minus_L
14485 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14486 # into the resulting binary.
14487 hardcode_shlibpath_var=$hardcode_shlibpath_var
14489 # Set to "yes" if building a shared library automatically hardcodes DIR
14490 # into the library and all subsequent libraries and executables linked
14492 hardcode_automatic=$hardcode_automatic
14494 # Set to yes if linker adds runtime paths of dependent libraries
14495 # to runtime path list.
14496 inherit_rpath=$inherit_rpath
14498 # Whether libtool must link a program against all its dependency libraries.
14499 link_all_deplibs=$link_all_deplibs
14501 # Set to "yes" if exported symbols are required.
14502 always_export_symbols=$always_export_symbols
14504 # The commands to list exported symbols.
14505 export_symbols_cmds=$lt_export_symbols_cmds
14507 # Symbols that should not be listed in the preloaded symbols.
14508 exclude_expsyms=$lt_exclude_expsyms
14510 # Symbols that must always be exported.
14511 include_expsyms=$lt_include_expsyms
14513 # Commands necessary for linking programs (against libraries) with templates.
14514 prelink_cmds=$lt_prelink_cmds
14516 # Commands necessary for finishing linking programs.
14517 postlink_cmds=$lt_postlink_cmds
14519 # Specify filename containing input files.
14520 file_list_spec=$lt_file_list_spec
14522 # How to hardcode a shared library path into an executable.
14523 hardcode_action=$hardcode_action
14525 # ### END LIBTOOL CONFIG
14531 cat <<\_LT_EOF >> "$cfgfile"
14532 # AIX sometimes has problems with the GCC collect2 program. For some
14533 # reason, if we set the COLLECT_NAMES environment variable, the problems
14534 # vanish in a puff of smoke.
14535 if test "X${COLLECT_NAMES+set}" != Xset; then
14537 export COLLECT_NAMES
14544 ltmain="$ac_aux_dir/ltmain.sh"
14547 # We use sed instead of cat because bash on DJGPP gets confused if
14548 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14549 # text mode, it properly converts lines to CR/LF. This bash problem
14550 # is reportedly fixed, but why not run on old versions too?
14551 sed '$q' "$ltmain" >> "$cfgfile" \
14552 || (rm -f "$cfgfile"; exit 1)
14554 if test x"$xsi_shell" = xyes; then
14555 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14559 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14560 \ * ) func_dirname_result="${3}" ;;\
14562 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14563 && mv -f "$cfgfile.tmp" "$cfgfile" \
14564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14565 test 0 -eq $? || _lt_function_replace_fail=:
14568 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14571 \ func_basename_result="${1##*/}"\
14572 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14573 && mv -f "$cfgfile.tmp" "$cfgfile" \
14574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14575 test 0 -eq $? || _lt_function_replace_fail=:
14578 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14579 func_dirname_and_basename ()\
14582 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14583 \ * ) func_dirname_result="${3}" ;;\
14585 \ func_basename_result="${1##*/}"\
14586 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14587 && mv -f "$cfgfile.tmp" "$cfgfile" \
14588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14589 test 0 -eq $? || _lt_function_replace_fail=:
14592 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14595 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14596 \ # positional parameters, so assign one to ordinary parameter first.\
14597 \ func_stripname_result=${3}\
14598 \ func_stripname_result=${func_stripname_result#"${1}"}\
14599 \ func_stripname_result=${func_stripname_result%"${2}"}\
14600 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14601 && mv -f "$cfgfile.tmp" "$cfgfile" \
14602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14603 test 0 -eq $? || _lt_function_replace_fail=:
14606 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14607 func_split_long_opt ()\
14609 \ func_split_long_opt_name=${1%%=*}\
14610 \ func_split_long_opt_arg=${1#*=}\
14611 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14612 && mv -f "$cfgfile.tmp" "$cfgfile" \
14613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14614 test 0 -eq $? || _lt_function_replace_fail=:
14617 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14618 func_split_short_opt ()\
14620 \ func_split_short_opt_arg=${1#??}\
14621 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14622 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14623 && mv -f "$cfgfile.tmp" "$cfgfile" \
14624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625 test 0 -eq $? || _lt_function_replace_fail=:
14628 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14632 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14633 \ *) func_lo2o_result=${1} ;;\
14635 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14636 && mv -f "$cfgfile.tmp" "$cfgfile" \
14637 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14638 test 0 -eq $? || _lt_function_replace_fail=:
14641 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14644 func_xform_result=${1%.*}.lo\
14645 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14646 && mv -f "$cfgfile.tmp" "$cfgfile" \
14647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14648 test 0 -eq $? || _lt_function_replace_fail=:
14651 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14654 func_arith_result=$(( $* ))\
14655 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14656 && mv -f "$cfgfile.tmp" "$cfgfile" \
14657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14658 test 0 -eq $? || _lt_function_replace_fail=:
14661 sed -e '/^func_len ()$/,/^} # func_len /c\
14664 func_len_result=${#1}\
14665 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14666 && mv -f "$cfgfile.tmp" "$cfgfile" \
14667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14668 test 0 -eq $? || _lt_function_replace_fail=:
14672 if test x"$lt_shell_append" = xyes; then
14673 sed -e '/^func_append ()$/,/^} # func_append /c\
14676 eval "${1}+=\\${2}"\
14677 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14678 && mv -f "$cfgfile.tmp" "$cfgfile" \
14679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14680 test 0 -eq $? || _lt_function_replace_fail=:
14683 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14684 func_append_quoted ()\
14686 \ func_quote_for_eval "${2}"\
14687 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14688 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14689 && mv -f "$cfgfile.tmp" "$cfgfile" \
14690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14694 # Save a `func_append' function call where possible by direct use of '+='
14695 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14696 && mv -f "$cfgfile.tmp" "$cfgfile" \
14697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698 test 0 -eq $? || _lt_function_replace_fail=:
14700 # Save a `func_append' function call even when '+=' is not available
14701 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14702 && mv -f "$cfgfile.tmp" "$cfgfile" \
14703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14704 test 0 -eq $? || _lt_function_replace_fail=:
14707 if test x"$_lt_function_replace_fail" = x":"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14709 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14713 mv -f "$cfgfile" "$ofile" ||
14714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14725 ac_clean_files=$ac_clean_files_save
14727 test $ac_write_fail = 0 ||
14728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14731 # configure is writing to config.log, and then calls config.status.
14732 # config.status does its own redirection, appending to config.log.
14733 # Unfortunately, on DOS this fails, as config.log is still kept open
14734 # by configure, so config.status won't be able to write to it; its
14735 # output is simply discarded. So we exec the FD to /dev/null,
14736 # effectively closing config.log, so it can be properly (re)opened and
14737 # appended to by config.status. When coming back to configure, we
14738 # need to make the FD available again.
14739 if test "$no_create" != yes; then
14741 ac_config_status_args=
14742 test "$silent" = yes &&
14743 ac_config_status_args="$ac_config_status_args --quiet"
14745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14748 # would make configure fail if this is the last instruction.
14749 $ac_cs_success || as_fn_exit 1
14751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}