2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for desktop-file-utils 0.16.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='desktop-file-utils'
747 PACKAGE_TARNAME='desktop-file-utils'
748 PACKAGE_VERSION='0.16'
749 PACKAGE_STRING='desktop-file-utils 0.16'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils'
752 ac_unique_file="src/validate.h"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
766 # ifdef HAVE_STDLIB_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
789 ac_subst_vars='am__EXEEXT_FALSE
796 DESKTOP_FILE_UTILS_LIBS
797 DESKTOP_FILE_UTILS_CFLAGS
844 MAINTAINER_MODE_FALSE
857 INSTALL_STRIP_PROGRAM
899 program_transform_name
911 enable_option_checking
913 enable_maintainer_mode
914 enable_dependency_tracking
923 ac_precious_vars='build_alias
933 DESKTOP_FILE_UTILS_CFLAGS
934 DESKTOP_FILE_UTILS_LIBS
939 # Initialize some variables set by options.
941 ac_init_version=false
942 ac_unrecognized_opts=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name=s,x,x,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1247 -site=* | --site=* | --sit=*)
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1360 { (exit 1); exit 1; }; } ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1384 { (exit 1); exit 1; }; }
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399 If a cross compiler is detected then cross compile mode will be used." >&2
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1415 { (exit 1); exit 1; }; }
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1418 { (exit 1); exit 1; }; }
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1458 { (exit 1); exit 1; }; }
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1463 { (exit 1); exit 1; }; }
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1489 \`configure' configures desktop-file-utils 0.16 to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root
1538 [DATAROOTDIR/doc/desktop-file-utils]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of desktop-file-utils 0.16:";;
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-silent-rules less verbose build output (undo: `make V=1')
1569 --disable-silent-rules verbose build output (undo: `make V=0')
1570 --enable-maintainer-mode enable make rules and dependencies not useful
1571 (and sometimes confusing) to the casual installer
1572 --disable-dependency-tracking speeds up one-time build
1573 --enable-dependency-tracking do not reject slow dependency extractors
1574 --enable-shared[=PKGS] build shared libraries [default=yes]
1575 --enable-static[=PKGS] build static libraries [default=yes]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation [default=yes]
1578 --disable-libtool-lock avoid locking (might break parallel builds)
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-lispdir override the default lisp directory
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1597 PKG_CONFIG path to pkg-config utility
1598 DESKTOP_FILE_UTILS_CFLAGS
1599 C compiler flags for DESKTOP_FILE_UTILS, overriding pkg-config
1600 DESKTOP_FILE_UTILS_LIBS
1601 linker flags for DESKTOP_FILE_UTILS, overriding pkg-config
1602 EMACS the Emacs editor command
1604 the Emacs library search path
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1609 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils>.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1639 .) # We are building in place.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1672 desktop-file-utils configure 0.16
1673 generated by GNU Autoconf 2.63
1675 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1676 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1682 cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1686 It was created by desktop-file-utils $as_me 0.16, which was
1687 generated by GNU Autoconf 2.63. Invocation command line was
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1712 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 $as_echo "PATH: $as_dir"
1739 # Keep a trace of the command line.
1740 # Strip out --no-create and --no-recursion so they do not pile up.
1741 # Strip out --silent because we don't want to record it for future runs.
1742 # Also quote any args containing shell meta-characters.
1743 # Make two passes to allow for proper duplicate-argument suppression.
1747 ac_must_keep_next=false
1753 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755 | -silent | --silent | --silen | --sile | --sil)
1758 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764 if test $ac_must_keep_next = true; then
1765 ac_must_keep_next=false # Got value, back to normal.
1768 *=* | --config-cache | -C | -disable-* | --disable-* \
1769 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771 | -with-* | --with-* | -without-* | --without-* | --x)
1772 case "$ac_configure_args0 " in
1773 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 -* ) ac_must_keep_next=true ;;
1779 ac_configure_args="$ac_configure_args '$ac_arg'"
1784 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1787 # When interrupted or exit'd, cleanup temporary files, and complete
1788 # config.log. We remove comments because anyway the quotes in there
1789 # would cause problems or look ugly.
1790 # WARNING: Use '\'' to represent an apostrophe within the trap.
1791 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1792 trap 'exit_status=$?
1793 # Save into config.log some information that might help in debugging.
1798 ## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##
1803 # The following way of writing the cache mishandles newlines in values,
1805 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806 eval ac_val=\$$ac_var
1810 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1811 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1814 _ | IFS | as_nl) ;; #(
1815 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1816 *) $as_unset $ac_var ;;
1821 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822 *${as_nl}ac_space=\ *)
1824 "s/'\''/'\''\\\\'\'''\''/g;
1825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1836 ## ----------------- ##
1837 ## Output variables. ##
1838 ## ----------------- ##
1841 for ac_var in $ac_subst_vars
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 $as_echo "$ac_var='\''$ac_val'\''"
1851 if test -n "$ac_subst_files"; then
1853 ## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##
1858 for ac_var in $ac_subst_files
1860 eval ac_val=\$$ac_var
1862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 $as_echo "$ac_var='\''$ac_val'\''"
1869 if test -s confdefs.h; then
1879 test "$ac_signal" != 0 &&
1880 $as_echo "$as_me: caught signal $ac_signal"
1881 $as_echo "$as_me: exit $exit_status"
1883 rm -f core *.core core.conftest.* &&
1884 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 for ac_signal in 1 2 13 15; do
1888 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1892 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1893 rm -f -r conftest* confdefs.h
1895 # Predefined preprocessor variables.
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_STRING "$PACKAGE_STRING"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1922 # Let the site file select an alternate cache file if it wants to.
1923 # Prefer an explicitly selected file to automatically selected ones.
1926 if test -n "$CONFIG_SITE"; then
1927 ac_site_file1=$CONFIG_SITE
1928 elif test "x$prefix" != xNONE; then
1929 ac_site_file1=$prefix/share/config.site
1930 ac_site_file2=$prefix/etc/config.site
1932 ac_site_file1=$ac_default_prefix/share/config.site
1933 ac_site_file2=$ac_default_prefix/etc/config.site
1935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937 test "x$ac_site_file" = xNONE && continue
1938 if test -r "$ac_site_file"; then
1939 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1941 sed 's/^/| /' "$ac_site_file" >&5
1946 if test -r "$cache_file"; then
1947 # Some versions of bash will fail to source /dev/null (special
1948 # files actually), so we avoid doing that.
1949 if test -f "$cache_file"; then
1950 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1951 $as_echo "$as_me: loading cache $cache_file" >&6;}
1953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1954 *) . "./$cache_file";;
1958 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1959 $as_echo "$as_me: creating cache $cache_file" >&6;}
1963 # Check that the precious variables saved in the cache have kept the same
1965 ac_cache_corrupted=false
1966 for ac_var in $ac_precious_vars; do
1967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968 eval ac_new_set=\$ac_env_${ac_var}_set
1969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970 eval ac_new_val=\$ac_env_${ac_var}_value
1971 case $ac_old_set,$ac_new_set in
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979 ac_cache_corrupted=: ;;
1982 if test "x$ac_old_val" != "x$ac_new_val"; then
1983 # differences in whitespace do not lead to failure.
1984 ac_old_val_w=`echo x $ac_old_val`
1985 ac_new_val_w=`echo x $ac_new_val`
1986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1989 ac_cache_corrupted=:
1991 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1993 eval $ac_var=\$ac_old_val
1995 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1997 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 *) ac_arg=$ac_var=$ac_new_val ;;
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 if $ac_cache_corrupted; then
2014 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2016 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056 am__api_version='1.11'
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 elif test -f "$ac_dir/install.sh"; then
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 elif test -f "$ac_dir/shtool"; then
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2074 if test -z "$ac_aux_dir"; then
2075 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # OS/2's system install, which has a completely different semantic
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 # Reject install programs that cannot install multiple files.
2103 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2104 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2105 if test -z "$INSTALL"; then
2106 if test "${ac_cv_path_install+set}" = set; then
2107 $as_echo_n "(cached) " >&6
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 # Account for people who put trailing slashes in PATH elements.
2116 ./ | .// | /cC/* | \
2117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2121 # OSF1 and SCO ODT 3.0 have their own names for install.
2122 # Don't use installbsd from OSF since it installs stuff as root
2124 for ac_prog in ginstall scoinst install; do
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127 if test $ac_prog = install &&
2128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129 # AIX install. It has an incompatible calling convention.
2131 elif test $ac_prog = install &&
2132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133 # program-specific install script used by HP pwplus--don't use.
2136 rm -rf conftest.one conftest.two conftest.dir
2137 echo one > conftest.one
2138 echo two > conftest.two
2140 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2141 test -s conftest.one && test -s conftest.two &&
2142 test -s conftest.dir/conftest.one &&
2143 test -s conftest.dir/conftest.two
2145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158 rm -rf conftest.one conftest.two conftest.dir
2161 if test "${ac_cv_path_install+set}" = set; then
2162 INSTALL=$ac_cv_path_install
2164 # As a last resort, use the slow shell script. Don't cache a
2165 # value for INSTALL within a source directory, because that will
2166 # break other packages using the cache if that directory is
2167 # removed, or if the value is a relative name.
2168 INSTALL=$ac_install_sh
2171 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2172 $as_echo "$INSTALL" >&6; }
2174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2175 # It thinks the first close brace ends the variable substitution.
2176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2182 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2183 $as_echo_n "checking whether build environment is sane... " >&6; }
2186 echo timestamp > conftest.file
2187 # Reject unsafe characters in $srcdir or the absolute working directory
2188 # name. Accept space and tab only in the latter.
2192 *[\\\"\#\$\&\'\`$am_lf]*)
2193 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2194 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2195 { (exit 1); exit 1; }; };;
2198 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2199 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2200 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2201 { (exit 1); exit 1; }; };;
2204 # Do `set' in a subshell so we don't clobber the current shell's
2205 # arguments. Must try -L first in case configure is actually a
2206 # symlink; some systems play weird games with the mod time of symlinks
2207 # (eg FreeBSD returns the mod time of the symlink's containing
2210 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2211 if test "$*" = "X"; then
2213 set X `ls -t "$srcdir/configure" conftest.file`
2216 if test "$*" != "X $srcdir/configure conftest.file" \
2217 && test "$*" != "X conftest.file $srcdir/configure"; then
2219 # If neither matched, then we have a broken ls. This can happen
2220 # if, for instance, CONFIG_SHELL is bash and it inherits a
2221 # broken ls alias from the environment. This has actually
2222 # happened. Such a system could not be considered "sane".
2223 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2224 alias in your environment" >&5
2225 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2226 alias in your environment" >&2;}
2227 { (exit 1); exit 1; }; }
2230 test "$2" = conftest.file
2236 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2237 Check your system clock" >&5
2238 $as_echo "$as_me: error: newly created file is older than distributed files!
2239 Check your system clock" >&2;}
2240 { (exit 1); exit 1; }; }
2242 { $as_echo "$as_me:$LINENO: result: yes" >&5
2243 $as_echo "yes" >&6; }
2244 test "$program_prefix" != NONE &&
2245 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2246 # Use a double $ so make ignores it.
2247 test "$program_suffix" != NONE &&
2248 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2249 # Double any \ or $.
2250 # By default was `s,x,x', remove it if useless.
2251 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2252 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2254 # expand $ac_aux_dir to an absolute path
2255 am_aux_dir=`cd $ac_aux_dir && pwd`
2257 if test x"${MISSING+set}" != xset; then
2260 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2262 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2270 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2271 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274 if test x"${install_sh}" != xset; then
2277 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2279 install_sh="\${SHELL} $am_aux_dir/install-sh"
2283 # Installed binaries are usually stripped using `strip' when the user
2284 # run `make install-strip'. However `strip' might not be the right
2285 # tool to use in cross-compilation environments, therefore Automake
2286 # will honor the `STRIP' environment variable to overrule this program.
2287 if test "$cross_compiling" != no; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}strip; ac_word=$2
2291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 $as_echo_n "checking for $ac_word... " >&6; }
2293 if test "${ac_cv_prog_STRIP+set}" = set; then
2294 $as_echo_n "(cached) " >&6
2296 if test -n "$STRIP"; then
2297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 STRIP=$ac_cv_prog_STRIP
2317 if test -n "$STRIP"; then
2318 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2319 $as_echo "$STRIP" >&6; }
2321 { $as_echo "$as_me:$LINENO: result: no" >&5
2322 $as_echo "no" >&6; }
2327 if test -z "$ac_cv_prog_STRIP"; then
2329 # Extract the first word of "strip", so it can be a program name with args.
2330 set dummy strip; ac_word=$2
2331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 $as_echo_n "checking for $ac_word... " >&6; }
2333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2334 $as_echo_n "(cached) " >&6
2336 if test -n "$ac_ct_STRIP"; then
2337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_ac_ct_STRIP="strip"
2347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2357 if test -n "$ac_ct_STRIP"; then
2358 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2359 $as_echo "$ac_ct_STRIP" >&6; }
2361 { $as_echo "$as_me:$LINENO: result: no" >&5
2362 $as_echo "no" >&6; }
2365 if test "x$ac_ct_STRIP" = x; then
2368 case $cross_compiling:$ac_tool_warned in
2370 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2372 ac_tool_warned=yes ;;
2377 STRIP="$ac_cv_prog_STRIP"
2381 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2383 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2384 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2385 if test -z "$MKDIR_P"; then
2386 if test "${ac_cv_path_mkdir+set}" = set; then
2387 $as_echo_n "(cached) " >&6
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2393 test -z "$as_dir" && as_dir=.
2394 for ac_prog in mkdir gmkdir; do
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2397 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2398 'mkdir (GNU coreutils) '* | \
2399 'mkdir (coreutils) '* | \
2400 'mkdir (fileutils) '4.1*)
2401 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2411 if test "${ac_cv_path_mkdir+set}" = set; then
2412 MKDIR_P="$ac_cv_path_mkdir -p"
2414 # As a last resort, use the slow shell script. Don't cache a
2415 # value for MKDIR_P within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the value is a relative name.
2418 test -d ./--version && rmdir ./--version
2419 MKDIR_P="$ac_install_sh -d"
2422 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2423 $as_echo "$MKDIR_P" >&6; }
2427 [\\/$]* | ?:[\\/]*) ;;
2428 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2431 for ac_prog in gawk mawk nawk awk
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if test "${ac_cv_prog_AWK+set}" = set; then
2438 $as_echo_n "(cached) " >&6
2440 if test -n "$AWK"; then
2441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_AWK="$ac_prog"
2451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 if test -n "$AWK"; then
2462 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2463 $as_echo "$AWK" >&6; }
2465 { $as_echo "$as_me:$LINENO: result: no" >&5
2466 $as_echo "no" >&6; }
2470 test -n "$AWK" && break
2473 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2474 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2476 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2477 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2478 $as_echo_n "(cached) " >&6
2480 cat >conftest.make <<\_ACEOF
2483 @echo '@@@%%%=$(MAKE)=@@@%%%'
2485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2488 eval ac_cv_prog_make_${ac_make}_set=yes;;
2490 eval ac_cv_prog_make_${ac_make}_set=no;;
2494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2495 { $as_echo "$as_me:$LINENO: result: yes" >&5
2496 $as_echo "yes" >&6; }
2499 { $as_echo "$as_me:$LINENO: result: no" >&5
2500 $as_echo "no" >&6; }
2501 SET_MAKE="MAKE=${MAKE-make}"
2504 rm -rf .tst 2>/dev/null
2505 mkdir .tst 2>/dev/null
2506 if test -d .tst; then
2511 rmdir .tst 2>/dev/null
2513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2515 # is not polluted with repeated "-I."
2516 am__isrc=' -I$(srcdir)'
2517 # test to see if srcdir already configured
2518 if test -f $srcdir/config.status; then
2519 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2520 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2521 { (exit 1); exit 1; }; }
2525 # test whether we have cygpath
2526 if test -z "$CYGPATH_W"; then
2527 if (cygpath --version) >/dev/null 2>/dev/null; then
2528 CYGPATH_W='cygpath -w'
2535 # Define the identity of the package.
2536 PACKAGE='desktop-file-utils'
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE "$PACKAGE"
2545 cat >>confdefs.h <<_ACEOF
2546 #define VERSION "$VERSION"
2549 # Some tools Automake needs.
2551 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2554 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2557 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2560 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2563 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2565 # We need awk for the "check" target. The system "awk" is bad on
2567 # Always define AMTAR for backward compatibility.
2569 AMTAR=${AMTAR-"${am_missing_run}tar"}
2571 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2577 # Check whether --enable-silent-rules was given.
2578 if test "${enable_silent_rules+set}" = set; then
2579 enableval=$enable_silent_rules;
2582 case $enable_silent_rules in
2583 yes) AM_DEFAULT_VERBOSITY=0;;
2584 no) AM_DEFAULT_VERBOSITY=1;;
2585 *) AM_DEFAULT_VERBOSITY=0;;
2590 ac_config_headers="$ac_config_headers config.h"
2593 # Honor aclocal flags
2594 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
2598 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2599 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2600 # Check whether --enable-maintainer-mode was given.
2601 if test "${enable_maintainer_mode+set}" = set; then
2602 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2604 USE_MAINTAINER_MODE=no
2607 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2608 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2609 if test $USE_MAINTAINER_MODE = yes; then
2610 MAINTAINER_MODE_TRUE=
2611 MAINTAINER_MODE_FALSE='#'
2613 MAINTAINER_MODE_TRUE='#'
2614 MAINTAINER_MODE_FALSE=
2617 MAINT=$MAINTAINER_MODE_TRUE
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2628 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_CC+set}" = set; then
2632 $as_echo_n "(cached) " >&6
2634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 if test -n "$CC"; then
2656 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2657 $as_echo "$CC" >&6; }
2659 { $as_echo "$as_me:$LINENO: result: no" >&5
2660 $as_echo "no" >&6; }
2665 if test -z "$ac_cv_prog_CC"; then
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc; ac_word=$2
2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_ac_ct_CC="gcc"
2685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2695 if test -n "$ac_ct_CC"; then
2696 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2697 $as_echo "$ac_ct_CC" >&6; }
2699 { $as_echo "$as_me:$LINENO: result: no" >&5
2700 $as_echo "no" >&6; }
2703 if test "x$ac_ct_CC" = x; then
2706 case $cross_compiling:$ac_tool_warned in
2708 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710 ac_tool_warned=yes ;;
2718 if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}cc; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="${ac_tool_prefix}cc"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2759 if test -z "$CC"; then
2760 # Extract the first word of "cc", so it can be a program name with args.
2761 set dummy cc; ac_word=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2779 ac_prog_rejected=yes
2783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 if test $ac_prog_rejected = yes; then
2791 # We found a bogon in the path, so make sure we never use it.
2792 set dummy $ac_cv_prog_CC
2794 if test $# != 0; then
2795 # We chose a different compiler from the bogus one.
2796 # However, it has the same basename, so the bogon will be chosen
2797 # first if we set CC to just the basename; use the full file name.
2799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2805 if test -n "$CC"; then
2806 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2809 { $as_echo "$as_me:$LINENO: result: no" >&5
2810 $as_echo "no" >&6; }
2815 if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in cl.exe
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then
2824 $as_echo_n "(cached) " >&6
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2851 { $as_echo "$as_me:$LINENO: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$CC" && break
2859 if test -z "$CC"; then
2861 for ac_prog in cl.exe
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868 $as_echo_n "(cached) " >&6
2870 if test -n "$ac_ct_CC"; then
2871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CC="$ac_prog"
2881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2891 if test -n "$ac_ct_CC"; then
2892 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2893 $as_echo "$ac_ct_CC" >&6; }
2895 { $as_echo "$as_me:$LINENO: result: no" >&5
2896 $as_echo "no" >&6; }
2900 test -n "$ac_ct_CC" && break
2903 if test "x$ac_ct_CC" = x; then
2906 case $cross_compiling:$ac_tool_warned in
2908 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910 ac_tool_warned=yes ;;
2919 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2922 See \`config.log' for more details." >&5
2923 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2924 See \`config.log' for more details." >&2;}
2925 { (exit 1); exit 1; }; }; }
2927 # Provide some information about the compiler.
2928 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2931 { (ac_try="$ac_compiler --version >&5"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2937 $as_echo "$ac_try_echo") >&5
2938 (eval "$ac_compiler --version >&5") 2>&5
2940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (ac_try="$ac_compiler -v >&5"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2948 $as_echo "$ac_try_echo") >&5
2949 (eval "$ac_compiler -v >&5") 2>&5
2951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }
2953 { (ac_try="$ac_compiler -V >&5"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959 $as_echo "$ac_try_echo") >&5
2960 (eval "$ac_compiler -V >&5") 2>&5
2962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2980 ac_clean_files_save=$ac_clean_files
2981 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2982 # Try to create an executable without -o first, disregard a.out.
2983 # It will help us diagnose broken compilers, and finding out an intuition
2985 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2986 $as_echo_n "checking for C compiler default output file name... " >&6; }
2987 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2989 # The possible output files:
2990 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2993 for ac_file in $ac_files
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 if { (ac_try="$ac_link_default"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3008 $as_echo "$ac_try_echo") >&5
3009 (eval "$ac_link_default") 2>&5
3011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; then
3013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3014 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3015 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3016 # so that the user can short-circuit this test for compilers unknown to
3018 for ac_file in $ac_files ''
3020 test -f "$ac_file" || continue
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3025 # We found the default executable, but exeext='' is most
3029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 # We set ac_cv_exeext here because the later test for it is not
3034 # safe: cross compilers may not add the suffix if given an `-o'
3035 # argument, so we may need to know it at that point already.
3036 # Even if this section looks crufty: it has the advantage of
3043 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 if test -z "$ac_file"; then
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3058 See \`config.log' for more details." >&5
3059 $as_echo "$as_me: error: C compiler cannot create executables
3060 See \`config.log' for more details." >&2;}
3061 { (exit 77); exit 77; }; }; }
3064 ac_exeext=$ac_cv_exeext
3066 # Check that the compiler produces executables we can run. If not, either
3067 # the compiler is broken, or we cross compile.
3068 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3069 $as_echo_n "checking whether the C compiler works... " >&6; }
3070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3071 # If not cross compiling, check that we can run a simple program.
3072 if test "$cross_compiling" != yes; then
3073 if { ac_try='./$ac_file'
3074 { (case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080 (eval "$ac_try") 2>&5
3082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3086 if test "$cross_compiling" = maybe; then
3089 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3092 If you meant to cross compile, use \`--host'.
3093 See \`config.log' for more details." >&5
3094 $as_echo "$as_me: error: cannot run C compiled programs.
3095 If you meant to cross compile, use \`--host'.
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }; }
3101 { $as_echo "$as_me:$LINENO: result: yes" >&5
3102 $as_echo "yes" >&6; }
3104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105 ac_clean_files=$ac_clean_files_save
3106 # Check that the compiler produces executables we can run. If not, either
3107 # the compiler is broken, or we cross compile.
3108 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3109 $as_echo_n "checking whether we are cross compiling... " >&6; }
3110 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3111 $as_echo "$cross_compiling" >&6; }
3113 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3114 $as_echo_n "checking for suffix of executables... " >&6; }
3115 if { (ac_try="$ac_link"
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_link") 2>&5
3124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; then
3126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3128 # work properly (i.e., refer to `conftest.exe'), while it won't with
3130 for ac_file in conftest.exe conftest conftest.*; do
3131 test -f "$ac_file" || continue
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&5
3144 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&2;}
3146 { (exit 1); exit 1; }; }; }
3149 rm -f conftest$ac_cv_exeext
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3151 $as_echo "$ac_cv_exeext" >&6; }
3153 rm -f conftest.$ac_ext
3154 EXEEXT=$ac_cv_exeext
3156 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if test "${ac_cv_objext+set}" = set; then
3159 $as_echo_n "(cached) " >&6
3161 cat >conftest.$ac_ext <<_ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.o conftest.obj
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183 $as_echo "$ac_try_echo") >&5
3184 (eval "$ac_compile") 2>&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; then
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details." >&5
3204 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3205 See \`config.log' for more details." >&2;}
3206 { (exit 1); exit 1; }; }; }
3209 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3212 $as_echo "$ac_cv_objext" >&6; }
3213 OBJEXT=$ac_cv_objext
3215 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3216 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3217 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3218 $as_echo_n "(cached) " >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } && {
3253 test -z "$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3255 } && test -s conftest.$ac_objext; then
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3269 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3270 if test $ac_compiler_gnu = yes; then
3275 ac_test_CFLAGS=${CFLAGS+set}
3276 ac_save_CFLAGS=$CFLAGS
3277 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3278 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3279 if test "${ac_cv_prog_cc_g+set}" = set; then
3280 $as_echo_n "(cached) " >&6
3282 ac_save_c_werror_flag=$ac_c_werror_flag
3283 ac_c_werror_flag=yes
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3301 rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3308 $as_echo "$ac_try_echo") >&5
3309 (eval "$ac_compile") 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } && {
3316 test -z "$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3318 } && test -s conftest.$ac_objext; then
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347 $as_echo "$ac_try_echo") >&5
3348 (eval "$ac_compile") 2>conftest.er1
3350 grep -v '^ *+' conftest.er1 >conftest.err
3352 cat conftest.err >&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } && {
3355 test -z "$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3357 } && test -s conftest.$ac_objext; then
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 ac_c_werror_flag=$ac_save_c_werror_flag
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387 $as_echo "$ac_try_echo") >&5
3388 (eval "$ac_compile") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest.$ac_objext; then
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3416 $as_echo "$ac_cv_prog_cc_g" >&6; }
3417 if test "$ac_test_CFLAGS" = set; then
3418 CFLAGS=$ac_save_CFLAGS
3419 elif test $ac_cv_prog_cc_g = yes; then
3420 if test "$GCC" = yes; then
3426 if test "$GCC" = yes; then
3432 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3434 if test "${ac_cv_prog_cc_c89+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3437 ac_cv_prog_cc_c89=no
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3463 s = g (p, va_arg (v,int));
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 CC="$ac_save_CC $ac_arg"
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507 $as_echo "$ac_try_echo") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_prog_cc_c89=$ac_arg
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3526 rm -f core conftest.err conftest.$ac_objext
3527 test "x$ac_cv_prog_cc_c89" != "xno" && break
3529 rm -f conftest.$ac_ext
3534 case "x$ac_cv_prog_cc_c89" in
3536 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3537 $as_echo "none needed" >&6; } ;;
3539 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3540 $as_echo "unsupported" >&6; } ;;
3542 CC="$CC $ac_cv_prog_cc_c89"
3543 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3544 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 DEPDIR="${am__leading_dot}deps"
3555 ac_config_commands="$ac_config_commands depfiles"
3558 am_make=${MAKE-make}
3559 cat > confinc << 'END'
3561 @echo this is the am__doit target
3564 # If we don't find an include directive, just comment out the code.
3565 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3566 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3570 # First try GNU make style include.
3571 echo "include confinc" > confmf
3572 # Ignore all kinds of additional output from `make'.
3573 case `$am_make -s -f confmf 2> /dev/null` in #(
3574 *the\ am__doit\ target*)
3580 # Now try BSD make style include.
3581 if test "$am__include" = "#"; then
3582 echo '.include "confinc"' > confmf
3583 case `$am_make -s -f confmf 2> /dev/null` in #(
3584 *the\ am__doit\ target*)
3585 am__include=.include
3593 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3594 $as_echo "$_am_result" >&6; }
3595 rm -f confinc confmf
3597 # Check whether --enable-dependency-tracking was given.
3598 if test "${enable_dependency_tracking+set}" = set; then
3599 enableval=$enable_dependency_tracking;
3602 if test "x$enable_dependency_tracking" != xno; then
3603 am_depcomp="$ac_aux_dir/depcomp"
3606 if test "x$enable_dependency_tracking" != xno; then
3616 depcc="$CC" am_compiler_list=
3618 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3619 $as_echo_n "checking dependency style of $depcc... " >&6; }
3620 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3624 # We make a subdir and do the tests there. Otherwise we can end up
3625 # making bogus files that we don't know about and never remove. For
3626 # instance it was reported that on HP-UX the gcc test will end up
3627 # making a dummy file named `D' -- because `-MD' means `put the output
3630 # Copy depcomp to subdir because otherwise we won't find it if we're
3631 # using a relative directory.
3632 cp "$am_depcomp" conftest.dir
3634 # We will build objects and dependencies in a subdirectory because
3635 # it helps to detect inapplicable dependency modes. For instance
3636 # both Tru64's cc and ICC support -MD to output dependencies as a
3637 # side effect of compilation, but ICC will put the dependencies in
3638 # the current directory while Tru64 will put them in the object
3642 am_cv_CC_dependencies_compiler_type=none
3643 if test "$am_compiler_list" = ""; then
3644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647 case " $depcc " in #(
3648 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3651 for depmode in $am_compiler_list; do
3652 # Setup a source with many dependencies, because some compilers
3653 # like to wrap large dependency lists on column 80 (with \), and
3654 # we should not choose a depcomp mode which is confused by this.
3656 # We need to recreate these files for each test, as the compiler may
3657 # overwrite some of them when testing with obscure command lines.
3658 # This happens at least with the AIX C compiler.
3660 for i in 1 2 3 4 5 6; do
3661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3663 # Solaris 8's {/usr,}/bin/sh.
3664 touch sub/conftst$i.h
3666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3669 # mode. It turns out that the SunPro C++ compiler does not properly
3670 # handle `-M -o', and we need to detect this. Also, some Intel
3671 # versions had trouble with output in subdirs
3672 am__obj=sub/conftest.${OBJEXT-o}
3673 am__minus_obj="-o $am__obj"
3676 # This depmode causes a compiler race in universal mode.
3677 test "$am__universal" = false || continue
3680 # after this tag, mechanisms are not by side-effect, so they'll
3681 # only be used when explicitly requested
3682 if test "x$enable_dependency_tracking" = xyes; then
3688 msvisualcpp | msvcmsys)
3689 # This compiler won't grok `-c -o', but also, the minuso test has
3690 # not run yet. These depmodes are late enough in the game, and
3691 # so weak that their functioning should not be impacted.
3692 am__obj=conftest.${OBJEXT-o}
3697 if depmode=$depmode \
3698 source=sub/conftest.c object=$am__obj \
3699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3701 >/dev/null 2>conftest.err &&
3702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3706 # icc doesn't choke on unknown options, it will just issue warnings
3707 # or remarks (even with -Werror). So we grep stderr for any message
3708 # that says an option was ignored or not supported.
3709 # When given -MP, icc 7.0 and 7.1 complain thusly:
3710 # icc: Command line warning: ignoring option '-M'; no argument required
3711 # The diagnosis changed in icc 8.0:
3712 # icc: Command line remark: option '-MP' not supported
3713 if (grep 'ignoring option' conftest.err ||
3714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3715 am_cv_CC_dependencies_compiler_type=$depmode
3724 am_cv_CC_dependencies_compiler_type=none
3728 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3729 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3730 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3733 test "x$enable_dependency_tracking" != xno \
3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3736 am__fastdepCC_FALSE='#'
3738 am__fastdepCC_TRUE='#'
3739 am__fastdepCC_FALSE=
3744 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3745 $as_echo_n "checking for library containing strerror... " >&6; }
3746 if test "${ac_cv_search_strerror+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 ac_func_search_save_LIBS=$LIBS
3750 cat >conftest.$ac_ext <<_ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3757 /* Override any GCC internal prototype to avoid an error.
3758 Use char because int might match the return type of a GCC
3759 builtin and then its argument prototype would still apply. */
3772 for ac_lib in '' cposix; do
3773 if test -z "$ac_lib"; then
3774 ac_res="none required"
3777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3779 rm -f conftest.$ac_objext conftest$ac_exeext
3780 if { (ac_try="$ac_link"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3786 $as_echo "$ac_try_echo") >&5
3787 (eval "$ac_link") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } && {
3794 test -z "$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 } && test -s conftest$ac_exeext && {
3797 test "$cross_compiling" = yes ||
3798 $as_test_x conftest$ac_exeext
3800 ac_cv_search_strerror=$ac_res
3802 $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -rf conftest.dSYM
3809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3811 if test "${ac_cv_search_strerror+set}" = set; then
3815 if test "${ac_cv_search_strerror+set}" = set; then
3818 ac_cv_search_strerror=no
3821 LIBS=$ac_func_search_save_LIBS
3823 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3824 $as_echo "$ac_cv_search_strerror" >&6; }
3825 ac_res=$ac_cv_search_strerror
3826 if test "$ac_res" != no; then
3827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3838 # On Suns, sometimes $CPP names a directory.
3839 if test -n "$CPP" && test -d "$CPP"; then
3842 if test -z "$CPP"; then
3843 if test "${ac_cv_prog_CPP+set}" = set; then
3844 $as_echo_n "(cached) " >&6
3846 # Double quotes because CPP needs to be expanded
3847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3850 for ac_c_preproc_warn_flag in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3877 $as_echo "$ac_try_echo") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3890 $as_echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3926 # Broken: success on invalid input.
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Passes both tests.
3937 rm -f conftest.err conftest.$ac_ext
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3954 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3955 $as_echo "$CPP" >&6; }
3957 for ac_c_preproc_warn_flag in '' yes
3959 # Use a header file that comes with gcc, so configuring glibc
3960 # with a fresh cross-compiler works.
3961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3962 # <limits.h> exists even on freestanding compilers.
3963 # On the NeXT, cc -E runs the code through the compiler's parser,
3964 # not just through cpp. "Syntax error" is here to catch this case.
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3972 # include <limits.h>
3974 # include <assert.h>
3978 if { (ac_try="$ac_cpp conftest.$ac_ext"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } >/dev/null && {
3992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 # Broken: fails on valid input.
4004 rm -f conftest.err conftest.$ac_ext
4006 # OK, works on sane cases. Now check whether nonexistent headers
4007 # can be detected and how.
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <ac_nonexistent.h>
4016 if { (ac_try="$ac_cpp conftest.$ac_ext"
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4022 $as_echo "$ac_try_echo") >&5
4023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null && {
4030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4031 test ! -s conftest.err
4033 # Broken: success on invalid input.
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Passes both tests.
4044 rm -f conftest.err conftest.$ac_ext
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok; then
4052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details." >&5
4056 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4057 See \`config.log' for more details." >&2;}
4058 { (exit 1); exit 1; }; }; }
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4069 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then
4071 $as_echo_n "(cached) " >&6
4073 if test -z "$GREP"; then
4074 ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in grep ggrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086 # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4092 $as_echo_n 0123456789 >"conftest.in"
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'GREP' >> "conftest.nl"
4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 ac_count=`expr $ac_count + 1`
4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_GREP="$ac_path_GREP"
4105 ac_path_GREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 $ac_path_GREP_found && break 3
4118 if test -z "$ac_cv_path_GREP"; then
4119 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4124 ac_cv_path_GREP=$GREP
4128 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4129 $as_echo "$ac_cv_path_GREP" >&6; }
4130 GREP="$ac_cv_path_GREP"
4133 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4134 $as_echo_n "checking for egrep... " >&6; }
4135 if test "${ac_cv_path_EGREP+set}" = set; then
4136 $as_echo_n "(cached) " >&6
4138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4139 then ac_cv_path_EGREP="$GREP -E"
4141 if test -z "$EGREP"; then
4142 ac_path_EGREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in egrep; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4152 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4153 # Check for GNU ac_path_EGREP and select it if it is found.
4154 # Check for GNU $ac_path_EGREP
4155 case `"$ac_path_EGREP" --version 2>&1` in
4157 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160 $as_echo_n 0123456789 >"conftest.in"
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo 'EGREP' >> "conftest.nl"
4167 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 ac_count=`expr $ac_count + 1`
4170 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_EGREP="$ac_path_EGREP"
4173 ac_path_EGREP_max=$ac_count
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 $ac_path_EGREP_found && break 3
4186 if test -z "$ac_cv_path_EGREP"; then
4187 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4188 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4189 { (exit 1); exit 1; }; }
4192 ac_cv_path_EGREP=$EGREP
4197 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4198 $as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4202 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 $as_echo_n "checking for ANSI C header files... " >&6; }
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 ac_cv_header_stdc=yes
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_header_stdc=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "memchr" >/dev/null 2>&1; then
4269 ac_cv_header_stdc=no
4275 if test $ac_cv_header_stdc = yes; then
4276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 $EGREP "free" >/dev/null 2>&1; then
4290 ac_cv_header_stdc=no
4296 if test $ac_cv_header_stdc = yes; then
4297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4298 if test "$cross_compiling" = yes; then
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4309 #if ((' ' & 0x0FF) == 0x020)
4310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4313 # define ISLOWER(c) \
4314 (('a' <= (c) && (c) <= 'i') \
4315 || ('j' <= (c) && (c) <= 'r') \
4316 || ('s' <= (c) && (c) <= 'z'))
4317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4325 for (i = 0; i < 256; i++)
4326 if (XOR (islower (i), ISLOWER (i))
4327 || toupper (i) != TOUPPER (i))
4332 rm -f conftest$ac_exeext
4333 if { (ac_try="$ac_link"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4339 $as_echo "$ac_try_echo") >&5
4340 (eval "$ac_link") 2>&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4349 $as_echo "$ac_try_echo") >&5
4350 (eval "$ac_try") 2>&5
4352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4356 $as_echo "$as_me: program exited with status $ac_status" >&5
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_header_stdc=no
4363 rm -rf conftest.dSYM
4364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4371 $as_echo "$ac_cv_header_stdc" >&6; }
4372 if test $ac_cv_header_stdc = yes; then
4374 cat >>confdefs.h <<\_ACEOF
4375 #define STDC_HEADERS 1
4382 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4383 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4388 macro_version='2.2.6'
4389 macro_revision='1.3012'
4403 ltmain="$ac_aux_dir/ltmain.sh"
4405 # Make sure we can run config.sub.
4406 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4407 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4408 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4409 { (exit 1); exit 1; }; }
4411 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4412 $as_echo_n "checking build system type... " >&6; }
4413 if test "${ac_cv_build+set}" = set; then
4414 $as_echo_n "(cached) " >&6
4416 ac_build_alias=$build_alias
4417 test "x$ac_build_alias" = x &&
4418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4419 test "x$ac_build_alias" = x &&
4420 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4421 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4422 { (exit 1); exit 1; }; }
4423 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4424 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4425 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4426 { (exit 1); exit 1; }; }
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4430 $as_echo "$ac_cv_build" >&6; }
4431 case $ac_cv_build in
4433 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4434 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4435 { (exit 1); exit 1; }; };;
4438 ac_save_IFS=$IFS; IFS='-'
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4451 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4452 $as_echo_n "checking host system type... " >&6; }
4453 if test "${ac_cv_host+set}" = set; then
4454 $as_echo_n "(cached) " >&6
4456 if test "x$host_alias" = x; then
4457 ac_cv_host=$ac_cv_build
4459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4461 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4462 { (exit 1); exit 1; }; }
4466 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4467 $as_echo "$ac_cv_host" >&6; }
4470 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4471 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4472 { (exit 1); exit 1; }; };;
4475 ac_save_IFS=$IFS; IFS='-'
4481 # Remember, the first character of IFS is used to create $*,
4482 # except with old shells:
4485 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4488 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4490 if test "${ac_cv_path_SED+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4494 for ac_i in 1 2 3 4 5 6 7; do
4495 ac_script="$ac_script$as_nl$ac_script"
4497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4498 $as_unset ac_script || ac_script=
4499 if test -z "$SED"; then
4500 ac_path_SED_found=false
4501 # Loop through the user's path and test for each of PROGNAME-LIST
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_prog in sed gsed; do
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4510 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4511 # Check for GNU ac_path_SED and select it if it is found.
4512 # Check for GNU $ac_path_SED
4513 case `"$ac_path_SED" --version 2>&1` in
4515 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4518 $as_echo_n 0123456789 >"conftest.in"
4521 cat "conftest.in" "conftest.in" >"conftest.tmp"
4522 mv "conftest.tmp" "conftest.in"
4523 cp "conftest.in" "conftest.nl"
4524 $as_echo '' >> "conftest.nl"
4525 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527 ac_count=`expr $ac_count + 1`
4528 if test $ac_count -gt ${ac_path_SED_max-0}; then
4529 # Best one so far, save it but keep looking for a better one
4530 ac_cv_path_SED="$ac_path_SED"
4531 ac_path_SED_max=$ac_count
4533 # 10*(2^10) chars as input seems more than enough
4534 test $ac_count -gt 10 && break
4536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4539 $ac_path_SED_found && break 3
4544 if test -z "$ac_cv_path_SED"; then
4545 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4546 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4547 { (exit 1); exit 1; }; }
4554 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4555 $as_echo "$ac_cv_path_SED" >&6; }
4556 SED="$ac_cv_path_SED"
4559 test -z "$SED" && SED=sed
4560 Xsed="$SED -e 1s/^X//"
4572 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4573 $as_echo_n "checking for fgrep... " >&6; }
4574 if test "${ac_cv_path_FGREP+set}" = set; then
4575 $as_echo_n "(cached) " >&6
4577 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4578 then ac_cv_path_FGREP="$GREP -F"
4580 if test -z "$FGREP"; then
4581 ac_path_FGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in fgrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4592 # Check for GNU ac_path_FGREP and select it if it is found.
4593 # Check for GNU $ac_path_FGREP
4594 case `"$ac_path_FGREP" --version 2>&1` in
4596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4599 $as_echo_n 0123456789 >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'FGREP' >> "conftest.nl"
4606 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 ac_count=`expr $ac_count + 1`
4609 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_FGREP="$ac_path_FGREP"
4612 ac_path_FGREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 $ac_path_FGREP_found && break 3
4625 if test -z "$ac_cv_path_FGREP"; then
4626 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4627 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4628 { (exit 1); exit 1; }; }
4631 ac_cv_path_FGREP=$FGREP
4636 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4637 $as_echo "$ac_cv_path_FGREP" >&6; }
4638 FGREP="$ac_cv_path_FGREP"
4641 test -z "$GREP" && GREP=grep
4661 # Check whether --with-gnu-ld was given.
4662 if test "${with_gnu_ld+set}" = set; then
4663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4669 if test "$GCC" = yes; then
4670 # Check if gcc -print-prog-name=ld gives a path.
4671 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4672 $as_echo_n "checking for ld used by $CC... " >&6; }
4675 # gcc leaves a trailing carriage return which upsets mingw
4676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4681 # Accept absolute paths.
4683 re_direlt='/[^/][^/]*/\.\./'
4684 # Canonicalize the pathname of ld
4685 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4686 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4687 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4689 test -z "$LD" && LD="$ac_prog"
4692 # If it fails, then pretend we aren't using GCC.
4696 # If it is relative, then search for the first ld in PATH.
4700 elif test "$with_gnu_ld" = yes; then
4701 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4702 $as_echo_n "checking for GNU ld... " >&6; }
4704 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4705 $as_echo_n "checking for non-GNU ld... " >&6; }
4707 if test "${lt_cv_path_LD+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 if test -z "$LD"; then
4711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4712 for ac_dir in $PATH; do
4714 test -z "$ac_dir" && ac_dir=.
4715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4716 lt_cv_path_LD="$ac_dir/$ac_prog"
4717 # Check to see if the program is GNU ld. I'd rather use --version,
4718 # but apparently some variants of GNU ld only accept -v.
4719 # Break only if it was the GNU/non-GNU ld that we prefer.
4720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4721 *GNU* | *'with BFD'*)
4722 test "$with_gnu_ld" != no && break
4725 test "$with_gnu_ld" != yes && break
4732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4737 if test -n "$LD"; then
4738 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4739 $as_echo "$LD" >&6; }
4741 { $as_echo "$as_me:$LINENO: result: no" >&5
4742 $as_echo "no" >&6; }
4744 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4745 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4750 $as_echo_n "(cached) " >&6
4752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4753 case `$LD -v 2>&1 </dev/null` in
4754 *GNU* | *'with BFD'*)
4755 lt_cv_prog_gnu_ld=yes
4758 lt_cv_prog_gnu_ld=no
4762 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4764 with_gnu_ld=$lt_cv_prog_gnu_ld
4774 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4775 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4776 if test "${lt_cv_path_NM+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4779 if test -n "$NM"; then
4780 # Let the user override the test.
4783 lt_nm_to_check="${ac_tool_prefix}nm"
4784 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4785 lt_nm_to_check="$lt_nm_to_check nm"
4787 for lt_tmp_nm in $lt_nm_to_check; do
4788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4789 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4791 test -z "$ac_dir" && ac_dir=.
4792 tmp_nm="$ac_dir/$lt_tmp_nm"
4793 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4794 # Check to see if the nm accepts a BSD-compat flag.
4795 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4796 # nm: unknown option "B" ignored
4797 # Tru64's nm complains that /dev/null is an invalid object file
4798 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4799 */dev/null* | *'Invalid file or object type'*)
4800 lt_cv_path_NM="$tmp_nm -B"
4804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4806 lt_cv_path_NM="$tmp_nm -p"
4810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4811 continue # so that we can try to find one that supports BSD flags
4820 : ${lt_cv_path_NM=no}
4823 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4824 $as_echo "$lt_cv_path_NM" >&6; }
4825 if test "$lt_cv_path_NM" != "no"; then
4828 # Didn't find any BSD compatible name lister, look for dumpbin.
4829 if test -n "$ac_tool_prefix"; then
4830 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$DUMPBIN"; then
4840 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 DUMPBIN=$ac_cv_prog_DUMPBIN
4860 if test -n "$DUMPBIN"; then
4861 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4862 $as_echo "$DUMPBIN" >&6; }
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865 $as_echo "no" >&6; }
4869 test -n "$DUMPBIN" && break
4872 if test -z "$DUMPBIN"; then
4873 ac_ct_DUMPBIN=$DUMPBIN
4874 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$ac_ct_DUMPBIN"; then
4884 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4904 if test -n "$ac_ct_DUMPBIN"; then
4905 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4906 $as_echo "$ac_ct_DUMPBIN" >&6; }
4908 { $as_echo "$as_me:$LINENO: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$ac_ct_DUMPBIN" && break
4916 if test "x$ac_ct_DUMPBIN" = x; then
4919 case $cross_compiling:$ac_tool_warned in
4921 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4925 DUMPBIN=$ac_ct_DUMPBIN
4930 if test "$DUMPBIN" != ":"; then
4934 test -z "$NM" && NM=nm
4941 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4942 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4943 if test "${lt_cv_nm_interface+set}" = set; then
4944 $as_echo_n "(cached) " >&6
4946 lt_cv_nm_interface="BSD nm"
4947 echo "int some_variable = 0;" > conftest.$ac_ext
4948 (eval echo "\"\$as_me:4948: $ac_compile\"" >&5)
4949 (eval "$ac_compile" 2>conftest.err)
4950 cat conftest.err >&5
4951 (eval echo "\"\$as_me:4951: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4952 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4953 cat conftest.err >&5
4954 (eval echo "\"\$as_me:4954: output\"" >&5)
4955 cat conftest.out >&5
4956 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4957 lt_cv_nm_interface="MS dumpbin"
4961 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4962 $as_echo "$lt_cv_nm_interface" >&6; }
4964 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4965 $as_echo_n "checking whether ln -s works... " >&6; }
4967 if test "$LN_S" = "ln -s"; then
4968 { $as_echo "$as_me:$LINENO: result: yes" >&5
4969 $as_echo "yes" >&6; }
4971 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4972 $as_echo "no, using $LN_S" >&6; }
4975 # find the maximum length of command line arguments
4976 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4978 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4979 $as_echo_n "(cached) " >&6
4986 # On DJGPP, this test can blow up pretty badly due to problems in libc
4987 # (any single argument exceeding 2000 bytes causes a buffer overrun
4988 # during glob expansion). Even if it were fixed, the result of this
4989 # check would be larger than it should be.
4990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4994 # Under GNU Hurd, this test is not required because there is
4995 # no limit to the length of command line arguments.
4996 # Libtool will interpret -1 as no limit whatsoever
4997 lt_cv_sys_max_cmd_len=-1;
5000 cygwin* | mingw* | cegcc*)
5001 # On Win9x/ME, this test blows up -- it succeeds, but takes
5002 # about 5 minutes as the teststring grows exponentially.
5003 # Worse, since 9x/ME are not pre-emptively multitasking,
5004 # you end up with a "frozen" computer, even though with patience
5005 # the test eventually succeeds (with a max line length of 256k).
5006 # Instead, let's just punt: use the minimum linelength reported by
5007 # all of the supported platforms: 8192 (on NT/2K/XP).
5008 lt_cv_sys_max_cmd_len=8192;
5012 # On AmigaOS with pdksh, this test takes hours, literally.
5013 # So we just punt and use a minimum line length of 8192.
5014 lt_cv_sys_max_cmd_len=8192;
5017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5018 # This has been around since 386BSD, at least. Likely further.
5019 if test -x /sbin/sysctl; then
5020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5021 elif test -x /usr/sbin/sysctl; then
5022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5026 # And add a safety zone
5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5033 lt_cv_sys_max_cmd_len=196608
5037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5039 # nice to cause kernel panics so lets avoid the loop below.
5040 # First set a reasonable default.
5041 lt_cv_sys_max_cmd_len=16384
5043 if test -x /sbin/sysconfig; then
5044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5045 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5050 lt_cv_sys_max_cmd_len=102400
5052 sysv5* | sco5v6* | sysv4.2uw2*)
5053 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5054 if test -n "$kargmax"; then
5055 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5057 lt_cv_sys_max_cmd_len=32768
5061 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5062 if test -n "$lt_cv_sys_max_cmd_len"; then
5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5066 # Make teststring a little bigger before we do anything with it.
5067 # a 1K string should be a reasonable start.
5068 for i in 1 2 3 4 5 6 7 8 ; do
5069 teststring=$teststring$teststring
5071 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5072 # If test is not a shell built-in, we'll probably end up computing a
5073 # maximum length that is only half of the actual maximum length, but
5075 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5076 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5077 test $i != 17 # 1/2 MB should be enough
5080 teststring=$teststring$teststring
5082 # Only check the string length outside the loop.
5083 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5085 # Add a significant safety factor because C++ compilers can tack on
5086 # massive amounts of additional arguments before passing them to the
5087 # linker. It appears as though 1/2 is a usable value.
5088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5095 if test -n $lt_cv_sys_max_cmd_len ; then
5096 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5097 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5099 { $as_echo "$as_me:$LINENO: result: none" >&5
5100 $as_echo "none" >&6; }
5102 max_cmd_len=$lt_cv_sys_max_cmd_len
5113 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5114 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5115 # Try some XSI features
5118 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5120 && eval 'test $(( 1 + 1 )) -eq 2 \
5121 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5123 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5124 $as_echo "$xsi_shell" >&6; }
5127 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5128 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5130 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5132 && lt_shell_append=yes
5133 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5134 $as_echo "$lt_shell_append" >&6; }
5137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5147 # test EBCDIC or ASCII
5148 case `echo X|tr X '\101'` in
5149 A) # ASCII based system
5150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5151 lt_SP2NL='tr \040 \012'
5152 lt_NL2SP='tr \015\012 \040\040'
5154 *) # EBCDIC based system
5155 lt_SP2NL='tr \100 \n'
5156 lt_NL2SP='tr \r\n \100\100'
5168 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5169 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5170 if test "${lt_cv_ld_reload_flag+set}" = set; then
5171 $as_echo_n "(cached) " >&6
5173 lt_cv_ld_reload_flag='-r'
5175 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5176 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5177 reload_flag=$lt_cv_ld_reload_flag
5178 case $reload_flag in
5180 *) reload_flag=" $reload_flag" ;;
5182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5185 if test "$GCC" = yes; then
5186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5203 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$OBJDUMP"; then
5210 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 OBJDUMP=$ac_cv_prog_OBJDUMP
5230 if test -n "$OBJDUMP"; then
5231 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5232 $as_echo "$OBJDUMP" >&6; }
5234 { $as_echo "$as_me:$LINENO: result: no" >&5
5235 $as_echo "no" >&6; }
5240 if test -z "$ac_cv_prog_OBJDUMP"; then
5241 ac_ct_OBJDUMP=$OBJDUMP
5242 # Extract the first word of "objdump", so it can be a program name with args.
5243 set dummy objdump; ac_word=$2
5244 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5247 $as_echo_n "(cached) " >&6
5249 if test -n "$ac_ct_OBJDUMP"; then
5250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5270 if test -n "$ac_ct_OBJDUMP"; then
5271 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5272 $as_echo "$ac_ct_OBJDUMP" >&6; }
5274 { $as_echo "$as_me:$LINENO: result: no" >&5
5275 $as_echo "no" >&6; }
5278 if test "x$ac_ct_OBJDUMP" = x; then
5281 case $cross_compiling:$ac_tool_warned in
5283 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5287 OBJDUMP=$ac_ct_OBJDUMP
5290 OBJDUMP="$ac_cv_prog_OBJDUMP"
5293 test -z "$OBJDUMP" && OBJDUMP=objdump
5303 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5304 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5305 if test "${lt_cv_deplibs_check_method+set}" = set; then
5306 $as_echo_n "(cached) " >&6
5308 lt_cv_file_magic_cmd='$MAGIC_CMD'
5309 lt_cv_file_magic_test_file=
5310 lt_cv_deplibs_check_method='unknown'
5311 # Need to set the preceding variable on all platforms that support
5312 # interlibrary dependencies.
5313 # 'none' -- dependencies not supported.
5314 # `unknown' -- same as none, but documents that we really don't know.
5315 # 'pass_all' -- all dependencies passed with no checks.
5316 # 'test_compile' -- check by making test program.
5317 # 'file_magic [[regex]]' -- check by looking for files in library path
5318 # which responds to the $file_magic_cmd with a given extended regex.
5319 # If you have `file' or equivalent on your system and you're not sure
5320 # whether `pass_all' will *always* work, you probably want this one.
5324 lt_cv_deplibs_check_method=pass_all
5328 lt_cv_deplibs_check_method=pass_all
5332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5333 lt_cv_file_magic_cmd='/usr/bin/file -L'
5334 lt_cv_file_magic_test_file=/shlib/libc.so
5338 # func_win32_libid is a shell function defined in ltmain.sh
5339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5340 lt_cv_file_magic_cmd='func_win32_libid'
5344 # Base MSYS/MinGW do not provide the 'file' command needed by
5345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5346 # unless we find 'file', for example because we are cross-compiling.
5347 if ( file / ) >/dev/null 2>&1; then
5348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5349 lt_cv_file_magic_cmd='func_win32_libid'
5351 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5352 lt_cv_file_magic_cmd='$OBJDUMP -f'
5357 # use the weaker test based on 'objdump'. See mingw*.
5358 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5359 lt_cv_file_magic_cmd='$OBJDUMP -f'
5362 darwin* | rhapsody*)
5363 lt_cv_deplibs_check_method=pass_all
5366 freebsd* | dragonfly*)
5367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5370 # Not sure whether the presence of OpenBSD here was a mistake.
5371 # Let's accept both of them until this is cleared up.
5372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5373 lt_cv_file_magic_cmd=/usr/bin/file
5374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5378 lt_cv_deplibs_check_method=pass_all
5383 lt_cv_deplibs_check_method=pass_all
5386 hpux10.20* | hpux11*)
5387 lt_cv_file_magic_cmd=/usr/bin/file
5390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5409 irix5* | irix6* | nonstopux*)
5411 *-32|*"-32 ") libmagic=32-bit;;
5412 *-n32|*"-n32 ") libmagic=N32;;
5413 *-64|*"-64 ") libmagic=64-bit;;
5414 *) libmagic=never-match;;
5416 lt_cv_deplibs_check_method=pass_all
5419 # This must be Linux ELF.
5420 linux* | k*bsd*-gnu)
5421 lt_cv_deplibs_check_method=pass_all
5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5434 lt_cv_file_magic_cmd=/usr/bin/file
5435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439 lt_cv_deplibs_check_method=pass_all
5443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450 osf3* | osf4* | osf5*)
5451 lt_cv_deplibs_check_method=pass_all
5455 lt_cv_deplibs_check_method=pass_all
5459 lt_cv_deplibs_check_method=pass_all
5462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5463 lt_cv_deplibs_check_method=pass_all
5467 case $host_vendor in
5469 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]'
5470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5473 lt_cv_deplibs_check_method=pass_all
5476 lt_cv_file_magic_cmd='/bin/file'
5477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5480 lt_cv_file_magic_cmd='/bin/file'
5481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5482 lt_cv_file_magic_test_file=/lib/libc.so
5485 lt_cv_deplibs_check_method=pass_all
5488 lt_cv_deplibs_check_method=pass_all
5494 lt_cv_deplibs_check_method=pass_all
5499 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5501 file_magic_cmd=$lt_cv_file_magic_cmd
5502 deplibs_check_method=$lt_cv_deplibs_check_method
5503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5516 if test -n "$ac_tool_prefix"; then
5517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5518 set dummy ${ac_tool_prefix}ar; ac_word=$2
5519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_AR+set}" = set; then
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$AR"; then
5525 ac_cv_prog_AR="$AR" # Let the user override the test.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_AR="${ac_tool_prefix}ar"
5535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 if test -n "$AR"; then
5546 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5547 $as_echo "$AR" >&6; }
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5555 if test -z "$ac_cv_prog_AR"; then
5557 # Extract the first word of "ar", so it can be a program name with args.
5558 set dummy ar; ac_word=$2
5559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5564 if test -n "$ac_ct_AR"; then
5565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_ac_ct_AR="ar"
5575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5585 if test -n "$ac_ct_AR"; then
5586 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5587 $as_echo "$ac_ct_AR" >&6; }
5589 { $as_echo "$as_me:$LINENO: result: no" >&5
5590 $as_echo "no" >&6; }
5593 if test "x$ac_ct_AR" = x; then
5596 case $cross_compiling:$ac_tool_warned in
5598 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5608 test -z "$AR" && AR=ar
5609 test -z "$AR_FLAGS" && AR_FLAGS=cru
5621 if test -n "$ac_tool_prefix"; then
5622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}strip; ac_word=$2
5624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_prog_STRIP+set}" = set; then
5627 $as_echo_n "(cached) " >&6
5629 if test -n "$STRIP"; then
5630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 STRIP=$ac_cv_prog_STRIP
5650 if test -n "$STRIP"; then
5651 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5652 $as_echo "$STRIP" >&6; }
5654 { $as_echo "$as_me:$LINENO: result: no" >&5
5655 $as_echo "no" >&6; }
5660 if test -z "$ac_cv_prog_STRIP"; then
5662 # Extract the first word of "strip", so it can be a program name with args.
5663 set dummy strip; ac_word=$2
5664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$ac_ct_STRIP"; then
5670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_STRIP="strip"
5680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5690 if test -n "$ac_ct_STRIP"; then
5691 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5692 $as_echo "$ac_ct_STRIP" >&6; }
5694 { $as_echo "$as_me:$LINENO: result: no" >&5
5695 $as_echo "no" >&6; }
5698 if test "x$ac_ct_STRIP" = x; then
5701 case $cross_compiling:$ac_tool_warned in
5703 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5710 STRIP="$ac_cv_prog_STRIP"
5713 test -z "$STRIP" && STRIP=:
5720 if test -n "$ac_tool_prefix"; then
5721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_RANLIB+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5728 if test -n "$RANLIB"; then
5729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 RANLIB=$ac_cv_prog_RANLIB
5749 if test -n "$RANLIB"; then
5750 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5751 $as_echo "$RANLIB" >&6; }
5753 { $as_echo "$as_me:$LINENO: result: no" >&5
5754 $as_echo "no" >&6; }
5759 if test -z "$ac_cv_prog_RANLIB"; then
5760 ac_ct_RANLIB=$RANLIB
5761 # Extract the first word of "ranlib", so it can be a program name with args.
5762 set dummy ranlib; ac_word=$2
5763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$ac_ct_RANLIB"; then
5769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_prog_ac_ct_RANLIB="ranlib"
5779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5789 if test -n "$ac_ct_RANLIB"; then
5790 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5791 $as_echo "$ac_ct_RANLIB" >&6; }
5793 { $as_echo "$as_me:$LINENO: result: no" >&5
5794 $as_echo "no" >&6; }
5797 if test "x$ac_ct_RANLIB" = x; then
5800 case $cross_compiling:$ac_tool_warned in
5802 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804 ac_tool_warned=yes ;;
5806 RANLIB=$ac_ct_RANLIB
5809 RANLIB="$ac_cv_prog_RANLIB"
5812 test -z "$RANLIB" && RANLIB=:
5819 # Determine commands to create old-style static archives.
5820 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5821 old_postinstall_cmds='chmod 644 $oldlib'
5822 old_postuninstall_cmds=
5824 if test -n "$RANLIB"; then
5827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5833 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5869 # If no C compiler was specified, use CC.
5872 # If no C compiler flags were specified, use CFLAGS.
5873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5875 # Allow CC to be a program name with arguments.
5879 # Check for command to grab the raw symbol name followed by C symbol from nm.
5880 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5881 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5882 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5886 # These are sane defaults that work on at least a few old systems.
5887 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5889 # Character class describing NM global symbol codes.
5890 symcode='[BCDEGRST]'
5892 # Regexp to match symbols that can be accessed directly from C.
5893 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5895 # Define system-specific variables.
5900 cygwin* | mingw* | pw32* | cegcc*)
5901 symcode='[ABCDGISTW]'
5904 if test "$host_cpu" = ia64; then
5905 symcode='[ABCDEGRST]'
5909 symcode='[BCDEGRST]'
5912 symcode='[BCDEGQRST]'
5923 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5931 # If we're using GNU nm, then use its standard symbol codes.
5932 case `$NM -V 2>&1` in
5933 *GNU* | *'with BFD'*)
5934 symcode='[ABCDGIRSTW]' ;;
5937 # Transform an extracted symbol line into a proper C declaration.
5938 # Some systems (esp. on ia64) link data and code symbols differently,
5939 # so use this general approach.
5940 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5942 # Transform an extracted symbol line into symbol name and symbol address
5943 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5944 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'"
5946 # Handle CRLF in mingw tool chain
5950 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5954 # Try without a prefix underscore, then with it.
5955 for ac_symprfx in "" "_"; do
5957 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5958 symxfrm="\\1 $ac_symprfx\\2 \\2"
5960 # Write the raw and C identifiers.
5961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5962 # Fake it for dumpbin and say T for any non-static function
5963 # and D for any global variable.
5964 # Also find C++ and __fastcall symbols from MSVC++,
5965 # which start with @ or ?.
5966 lt_cv_sys_global_symbol_pipe="$AWK '"\
5967 " {last_section=section; section=\$ 3};"\
5968 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5969 " \$ 0!~/External *\|/{next};"\
5970 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5971 " {if(hide[section]) next};"\
5972 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5973 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5974 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5975 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5976 " ' prfx=^$ac_symprfx"
5978 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5981 # Check to see that the pipe works correctly.
5985 cat > conftest.$ac_ext <<_LT_EOF
5990 void nm_test_func(void);
5991 void nm_test_func(void){}
5995 int main(){nm_test_var='a';nm_test_func();return(0);}
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>&5
6001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; then
6003 # Now try to grab the symbols.
6005 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && test -s "$nlist"; then
6010 # Try sorting and uniquifying the output.
6011 if sort "$nlist" | uniq > "$nlist"T; then
6012 mv -f "$nlist"T "$nlist"
6017 # Make sure that we snagged all the symbols we need.
6018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6020 cat <<_LT_EOF > conftest.$ac_ext
6026 # Now generate the symbol file.
6027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6029 cat <<_LT_EOF >> conftest.$ac_ext
6031 /* The mapping between symbol names and symbols. */
6036 lt__PROGRAM__LTX_preloaded_symbols[] =
6038 { "@PROGRAM@", (void *) 0 },
6040 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6041 cat <<\_LT_EOF >> conftest.$ac_ext
6045 /* This works around a problem in FreeBSD linker */
6046 #ifdef FREEBSD_WORKAROUND
6047 static const void *lt_preloaded_setup() {
6048 return lt__PROGRAM__LTX_preloaded_symbols;
6056 # Now try linking the two files.
6057 mv conftest.$ac_objext conftstm.$ac_objext
6058 lt_save_LIBS="$LIBS"
6059 lt_save_CFLAGS="$CFLAGS"
6060 LIBS="conftstm.$ac_objext"
6061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063 (eval $ac_link) 2>&5
6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6069 LIBS="$lt_save_LIBS"
6070 CFLAGS="$lt_save_CFLAGS"
6072 echo "cannot find nm_test_func in $nlist" >&5
6075 echo "cannot find nm_test_var in $nlist" >&5
6078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6081 echo "$progname: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6084 rm -rf conftest* conftst*
6086 # Do not use the global_symbol_pipe unless it works.
6087 if test "$pipe_works" = yes; then
6090 lt_cv_sys_global_symbol_pipe=
6096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6097 lt_cv_sys_global_symbol_to_cdecl=
6099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6100 { $as_echo "$as_me:$LINENO: result: failed" >&5
6101 $as_echo "failed" >&6; }
6103 { $as_echo "$as_me:$LINENO: result: ok" >&5
6104 $as_echo "ok" >&6; }
6128 # Check whether --enable-libtool-lock was given.
6129 if test "${enable_libtool_lock+set}" = set; then
6130 enableval=$enable_libtool_lock;
6133 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6135 # Some flags need to be propagated to the compiler or linker for good
6139 # Find out which ABI we are using.
6140 echo 'int i;' > conftest.$ac_ext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; then
6146 case `/usr/bin/file conftest.$ac_objext` in
6158 # Find out which ABI we are using.
6159 echo '#line 6159 "configure"' > conftest.$ac_ext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161 (eval $ac_compile) 2>&5
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; then
6165 if test "$lt_cv_prog_gnu_ld" = yes; then
6166 case `/usr/bin/file conftest.$ac_objext` in
6168 LD="${LD-ld} -melf32bsmip"
6171 LD="${LD-ld} -melf32bmipn32"
6174 LD="${LD-ld} -melf64bmip"
6178 case `/usr/bin/file conftest.$ac_objext` in
6194 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6195 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6196 # Find out which ABI we are using.
6197 echo 'int i;' > conftest.$ac_ext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; then
6203 case `/usr/bin/file conftest.o` in
6206 x86_64-*kfreebsd*-gnu)
6207 LD="${LD-ld} -m elf_i386_fbsd"
6210 LD="${LD-ld} -m elf_i386"
6212 ppc64-*linux*|powerpc64-*linux*)
6213 LD="${LD-ld} -m elf32ppclinux"
6216 LD="${LD-ld} -m elf_s390"
6219 LD="${LD-ld} -m elf32_sparc"
6225 x86_64-*kfreebsd*-gnu)
6226 LD="${LD-ld} -m elf_x86_64_fbsd"
6229 LD="${LD-ld} -m elf_x86_64"
6231 ppc*-*linux*|powerpc*-*linux*)
6232 LD="${LD-ld} -m elf64ppc"
6234 s390*-*linux*|s390*-*tpf*)
6235 LD="${LD-ld} -m elf64_s390"
6238 LD="${LD-ld} -m elf64_sparc"
6248 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6249 SAVE_CFLAGS="$CFLAGS"
6250 CFLAGS="$CFLAGS -belf"
6251 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6252 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6253 if test "${lt_cv_cc_needs_belf+set}" = set; then
6254 $as_echo_n "(cached) " >&6
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6284 $as_echo "$ac_try_echo") >&5
6285 (eval "$ac_link") 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest$ac_exeext && {
6295 test "$cross_compiling" = yes ||
6296 $as_test_x conftest$ac_exeext
6298 lt_cv_cc_needs_belf=yes
6300 $as_echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 lt_cv_cc_needs_belf=no
6306 rm -rf conftest.dSYM
6307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6308 conftest$ac_exeext conftest.$ac_ext
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6317 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6320 CFLAGS="$SAVE_CFLAGS"
6324 # Find out which ABI we are using.
6325 echo 'int i;' > conftest.$ac_ext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>&5
6329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; then
6331 case `/usr/bin/file conftest.o` in
6333 case $lt_cv_prog_gnu_ld in
6334 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6336 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6348 need_locks="$enable_libtool_lock"
6352 rhapsody* | darwin*)
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$DSYMUTIL"; then
6362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6382 if test -n "$DSYMUTIL"; then
6383 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6384 $as_echo "$DSYMUTIL" >&6; }
6386 { $as_echo "$as_me:$LINENO: result: no" >&5
6387 $as_echo "no" >&6; }
6392 if test -z "$ac_cv_prog_DSYMUTIL"; then
6393 ac_ct_DSYMUTIL=$DSYMUTIL
6394 # Extract the first word of "dsymutil", so it can be a program name with args.
6395 set dummy dsymutil; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$ac_ct_DSYMUTIL"; then
6402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6422 if test -n "$ac_ct_DSYMUTIL"; then
6423 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6424 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6426 { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6430 if test "x$ac_ct_DSYMUTIL" = x; then
6433 case $cross_compiling:$ac_tool_warned in
6435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6439 DSYMUTIL=$ac_ct_DSYMUTIL
6442 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$NMEDIT"; then
6454 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 NMEDIT=$ac_cv_prog_NMEDIT
6474 if test -n "$NMEDIT"; then
6475 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6476 $as_echo "$NMEDIT" >&6; }
6478 { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6484 if test -z "$ac_cv_prog_NMEDIT"; then
6485 ac_ct_NMEDIT=$NMEDIT
6486 # Extract the first word of "nmedit", so it can be a program name with args.
6487 set dummy nmedit; ac_word=$2
6488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$ac_ct_NMEDIT"; then
6494 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6514 if test -n "$ac_ct_NMEDIT"; then
6515 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6516 $as_echo "$ac_ct_NMEDIT" >&6; }
6518 { $as_echo "$as_me:$LINENO: result: no" >&5
6519 $as_echo "no" >&6; }
6522 if test "x$ac_ct_NMEDIT" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6531 NMEDIT=$ac_ct_NMEDIT
6534 NMEDIT="$ac_cv_prog_NMEDIT"
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_LIPO+set}" = set; then
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$LIPO"; then
6546 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 LIPO=$ac_cv_prog_LIPO
6566 if test -n "$LIPO"; then
6567 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6568 $as_echo "$LIPO" >&6; }
6570 { $as_echo "$as_me:$LINENO: result: no" >&5
6571 $as_echo "no" >&6; }
6576 if test -z "$ac_cv_prog_LIPO"; then
6578 # Extract the first word of "lipo", so it can be a program name with args.
6579 set dummy lipo; ac_word=$2
6580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$ac_ct_LIPO"; then
6586 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_LIPO="lipo"
6596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6606 if test -n "$ac_ct_LIPO"; then
6607 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6608 $as_echo "$ac_ct_LIPO" >&6; }
6610 { $as_echo "$as_me:$LINENO: result: no" >&5
6611 $as_echo "no" >&6; }
6614 if test "x$ac_ct_LIPO" = x; then
6617 case $cross_compiling:$ac_tool_warned in
6619 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6626 LIPO="$ac_cv_prog_LIPO"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}otool; ac_word=$2
6632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_OTOOL+set}" = set; then
6635 $as_echo_n "(cached) " >&6
6637 if test -n "$OTOOL"; then
6638 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 OTOOL=$ac_cv_prog_OTOOL
6658 if test -n "$OTOOL"; then
6659 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6660 $as_echo "$OTOOL" >&6; }
6662 { $as_echo "$as_me:$LINENO: result: no" >&5
6663 $as_echo "no" >&6; }
6668 if test -z "$ac_cv_prog_OTOOL"; then
6670 # Extract the first word of "otool", so it can be a program name with args.
6671 set dummy otool; ac_word=$2
6672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$ac_ct_OTOOL"; then
6678 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_OTOOL="otool"
6688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6698 if test -n "$ac_ct_OTOOL"; then
6699 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6700 $as_echo "$ac_ct_OTOOL" >&6; }
6702 { $as_echo "$as_me:$LINENO: result: no" >&5
6703 $as_echo "no" >&6; }
6706 if test "x$ac_ct_OTOOL" = x; then
6709 case $cross_compiling:$ac_tool_warned in
6711 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713 ac_tool_warned=yes ;;
6718 OTOOL="$ac_cv_prog_OTOOL"
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6727 $as_echo_n "(cached) " >&6
6729 if test -n "$OTOOL64"; then
6730 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 OTOOL64=$ac_cv_prog_OTOOL64
6750 if test -n "$OTOOL64"; then
6751 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6752 $as_echo "$OTOOL64" >&6; }
6754 { $as_echo "$as_me:$LINENO: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_prog_OTOOL64"; then
6761 ac_ct_OTOOL64=$OTOOL64
6762 # Extract the first word of "otool64", so it can be a program name with args.
6763 set dummy otool64; ac_word=$2
6764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$ac_ct_OTOOL64"; then
6770 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_OTOOL64="otool64"
6780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6790 if test -n "$ac_ct_OTOOL64"; then
6791 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6792 $as_echo "$ac_ct_OTOOL64" >&6; }
6794 { $as_echo "$as_me:$LINENO: result: no" >&5
6795 $as_echo "no" >&6; }
6798 if test "x$ac_ct_OTOOL64" = x; then
6801 case $cross_compiling:$ac_tool_warned in
6803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6807 OTOOL64=$ac_ct_OTOOL64
6810 OTOOL64="$ac_cv_prog_OTOOL64"
6839 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6840 $as_echo_n "checking for -single_module linker flag... " >&6; }
6841 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6842 $as_echo_n "(cached) " >&6
6844 lt_cv_apple_cc_single_mod=no
6845 if test -z "${LT_MULTI_MODULE}"; then
6846 # By default we will add the -single_module flag. You can override
6847 # by either setting the environment variable LT_MULTI_MODULE
6848 # non-empty at configure time, or by adding -multi_module to the
6850 rm -rf libconftest.dylib*
6851 echo "int foo(void){return 1;}" > conftest.c
6852 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6853 -dynamiclib -Wl,-single_module conftest.c" >&5
6854 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6855 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6857 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6858 lt_cv_apple_cc_single_mod=yes
6860 cat conftest.err >&5
6862 rm -rf libconftest.dylib*
6866 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6867 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6868 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6869 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6870 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6871 $as_echo_n "(cached) " >&6
6873 lt_cv_ld_exported_symbols_list=no
6874 save_LDFLAGS=$LDFLAGS
6875 echo "_main" > conftest.sym
6876 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (ac_try="$ac_link"
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_link") 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest$ac_exeext && {
6910 test "$cross_compiling" = yes ||
6911 $as_test_x conftest$ac_exeext
6913 lt_cv_ld_exported_symbols_list=yes
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 lt_cv_ld_exported_symbols_list=no
6921 rm -rf conftest.dSYM
6922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6923 conftest$ac_exeext conftest.$ac_ext
6924 LDFLAGS="$save_LDFLAGS"
6927 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6928 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6930 rhapsody* | darwin1.[012])
6931 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6933 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6934 darwin*) # darwin 5.x on
6935 # if running on 10.5 or later, the deployment target defaults
6936 # to the OS version, if on x86, and 10.4, the deployment
6937 # target defaults to 10.4. Don't you love it?
6938 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6939 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6940 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6944 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6948 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6949 _lt_dar_single_mod='$single_module'
6951 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6952 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6954 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6956 if test "$DSYMUTIL" != ":"; then
6957 _lt_dsymutil='~$DSYMUTIL $lib || :'
6964 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6974 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6975 inttypes.h stdint.h unistd.h
6977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6979 $as_echo_n "checking for $ac_header... " >&6; }
6980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6981 $as_echo_n "(cached) " >&6
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 #include <$ac_header>
6993 rm -f conftest.$ac_objext
6994 if { (ac_try="$ac_compile"
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 eval "$as_ac_Header=yes"
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 eval "$as_ac_Header=no"
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 ac_res=`eval 'as_val=${'$as_ac_Header'}
7022 $as_echo "$as_val"'`
7023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7024 $as_echo "$ac_res" >&6; }
7025 as_val=`eval 'as_val=${'$as_ac_Header'}
7026 $as_echo "$as_val"'`
7027 if test "x$as_val" = x""yes; then
7028 cat >>confdefs.h <<_ACEOF
7029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7038 for ac_header in dlfcn.h
7040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 $as_echo_n "checking for $ac_header... " >&6; }
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044 $as_echo_n "(cached) " >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7054 #include <$ac_header>
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7063 $as_echo "$ac_try_echo") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 eval "$as_ac_Header=yes"
7076 $as_echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 eval "$as_ac_Header=no"
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 ac_res=`eval 'as_val=${'$as_ac_Header'}
7085 $as_echo "$as_val"'`
7086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7087 $as_echo "$ac_res" >&6; }
7088 as_val=`eval 'as_val=${'$as_ac_Header'}
7089 $as_echo "$as_val"'`
7090 if test "x$as_val" = x""yes; then
7091 cat >>confdefs.h <<_ACEOF
7092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 # Check whether --enable-shared was given.
7112 if test "${enable_shared+set}" = set; then
7113 enableval=$enable_shared; p=${PACKAGE-default}
7115 yes) enable_shared=yes ;;
7116 no) enable_shared=no ;;
7119 # Look at the argument we got. We use all the common list separators.
7120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7121 for pkg in $enableval; do
7123 if test "X$pkg" = "X$p"; then
7142 # Check whether --enable-static was given.
7143 if test "${enable_static+set}" = set; then
7144 enableval=$enable_static; p=${PACKAGE-default}
7146 yes) enable_static=yes ;;
7147 no) enable_static=no ;;
7150 # Look at the argument we got. We use all the common list separators.
7151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7152 for pkg in $enableval; do
7154 if test "X$pkg" = "X$p"; then
7174 # Check whether --with-pic was given.
7175 if test "${with_pic+set}" = set; then
7176 withval=$with_pic; pic_mode="$withval"
7182 test -z "$pic_mode" && pic_mode=default
7190 # Check whether --enable-fast-install was given.
7191 if test "${enable_fast_install+set}" = set; then
7192 enableval=$enable_fast_install; p=${PACKAGE-default}
7194 yes) enable_fast_install=yes ;;
7195 no) enable_fast_install=no ;;
7197 enable_fast_install=no
7198 # Look at the argument we got. We use all the common list separators.
7199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7200 for pkg in $enableval; do
7202 if test "X$pkg" = "X$p"; then
7203 enable_fast_install=yes
7210 enable_fast_install=yes
7223 # This can be used to rebuild libtool when needed
7224 LIBTOOL_DEPS="$ltmain"
7226 # Always use our own libtool.
7227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7253 test -z "$LN_S" && LN_S="ln -s"
7268 if test -n "${ZSH_VERSION+set}" ; then
7269 setopt NO_GLOB_SUBST
7272 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7273 $as_echo_n "checking for objdir... " >&6; }
7274 if test "${lt_cv_objdir+set}" = set; then
7275 $as_echo_n "(cached) " >&6
7277 rm -f .libs 2>/dev/null
7278 mkdir .libs 2>/dev/null
7279 if test -d .libs; then
7282 # MS-DOS does not allow filenames that begin with a dot.
7285 rmdir .libs 2>/dev/null
7287 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7288 $as_echo "$lt_cv_objdir" >&6; }
7289 objdir=$lt_cv_objdir
7295 cat >>confdefs.h <<_ACEOF
7296 #define LT_OBJDIR "$lt_cv_objdir/"
7317 # AIX sometimes has problems with the GCC collect2 program. For some
7318 # reason, if we set the COLLECT_NAMES environment variable, the problems
7319 # vanish in a puff of smoke.
7320 if test "X${COLLECT_NAMES+set}" != Xset; then
7322 export COLLECT_NAMES
7327 # Sed substitution that helps us do robust quoting. It backslashifies
7328 # metacharacters that are still active within double-quoted strings.
7329 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7331 # Same as above, but do not quote variable references.
7332 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7334 # Sed substitution to delay expansion of an escaped shell variable in a
7335 # double_quote_subst'ed string.
7336 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7338 # Sed substitution to delay expansion of an escaped single quote.
7339 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7341 # Sed substitution to avoid accidental globbing in evaled expressions
7342 no_glob_subst='s/\*/\\\*/g'
7346 can_build_shared=yes
7348 # All known linkers require a `.a' archive for static linking (except MSVC,
7349 # which needs '.lib').
7352 with_gnu_ld="$lt_cv_prog_gnu_ld"
7355 old_CFLAGS="$CFLAGS"
7357 # Set sane defaults for various variables
7358 test -z "$CC" && CC=cc
7359 test -z "$LTCC" && LTCC=$CC
7360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7361 test -z "$LD" && LD=ld
7362 test -z "$ac_objext" && ac_objext=o
7364 for cc_temp in $compiler""; do
7366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7372 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7375 # Only perform the check for file, if the check method requires it
7376 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7377 case $deplibs_check_method in
7379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7380 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7381 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7382 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7383 $as_echo_n "(cached) " >&6
7387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7390 lt_save_MAGIC_CMD="$MAGIC_CMD"
7391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7393 for ac_dir in $ac_dummy; do
7395 test -z "$ac_dir" && ac_dir=.
7396 if test -f $ac_dir/${ac_tool_prefix}file; then
7397 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7398 if test -n "$file_magic_test_file"; then
7399 case $deplibs_check_method in
7401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7404 $EGREP "$file_magic_regex" > /dev/null; then
7409 *** Warning: the command libtool uses to detect shared libraries,
7410 *** $file_magic_cmd, produces output that libtool cannot recognize.
7411 *** The result is that libtool may fail to recognize shared libraries
7412 *** as such. This will affect the creation of libtool libraries that
7413 *** depend on shared libraries, but programs linked with such libtool
7414 *** libraries will work regardless of this problem. Nevertheless, you
7415 *** may want to report the problem to your system manager and/or to
7416 *** bug-libtool@gnu.org
7426 MAGIC_CMD="$lt_save_MAGIC_CMD"
7431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7432 if test -n "$MAGIC_CMD"; then
7433 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7434 $as_echo "$MAGIC_CMD" >&6; }
7436 { $as_echo "$as_me:$LINENO: result: no" >&5
7437 $as_echo "no" >&6; }
7444 if test -z "$lt_cv_path_MAGIC_CMD"; then
7445 if test -n "$ac_tool_prefix"; then
7446 { $as_echo "$as_me:$LINENO: checking for file" >&5
7447 $as_echo_n "checking for file... " >&6; }
7448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7449 $as_echo_n "(cached) " >&6
7453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7456 lt_save_MAGIC_CMD="$MAGIC_CMD"
7457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459 for ac_dir in $ac_dummy; do
7461 test -z "$ac_dir" && ac_dir=.
7462 if test -f $ac_dir/file; then
7463 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7464 if test -n "$file_magic_test_file"; then
7465 case $deplibs_check_method in
7467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470 $EGREP "$file_magic_regex" > /dev/null; then
7475 *** Warning: the command libtool uses to detect shared libraries,
7476 *** $file_magic_cmd, produces output that libtool cannot recognize.
7477 *** The result is that libtool may fail to recognize shared libraries
7478 *** as such. This will affect the creation of libtool libraries that
7479 *** depend on shared libraries, but programs linked with such libtool
7480 *** libraries will work regardless of this problem. Nevertheless, you
7481 *** may want to report the problem to your system manager and/or to
7482 *** bug-libtool@gnu.org
7492 MAGIC_CMD="$lt_save_MAGIC_CMD"
7497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498 if test -n "$MAGIC_CMD"; then
7499 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7500 $as_echo "$MAGIC_CMD" >&6; }
7502 { $as_echo "$as_me:$LINENO: result: no" >&5
7503 $as_echo "no" >&6; }
7516 # Use C for the default configuration in the libtool script
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526 # Source file extension for C test sources.
7529 # Object file extension for compiled C test sources.
7533 # Code to be used in simple compile tests
7534 lt_simple_compile_test_code="int some_variable = 0;"
7536 # Code to be used in simple link tests
7537 lt_simple_link_test_code='int main(){return(0);}'
7545 # If no C compiler was specified, use CC.
7548 # If no C compiler flags were specified, use CFLAGS.
7549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7551 # Allow CC to be a program name with arguments.
7554 # Save the default compiler, since it gets overwritten when the other
7555 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7556 compiler_DEFAULT=$CC
7558 # save warnings/boilerplate of simple test code
7559 ac_outfile=conftest.$ac_objext
7560 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7561 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7562 _lt_compiler_boilerplate=`cat conftest.err`
7565 ac_outfile=conftest.$ac_objext
7566 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7567 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7568 _lt_linker_boilerplate=`cat conftest.err`
7572 if test -n "$compiler"; then
7574 lt_prog_compiler_no_builtin_flag=
7576 if test "$GCC" = yes; then
7577 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7579 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7580 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7581 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7582 $as_echo_n "(cached) " >&6
7584 lt_cv_prog_compiler_rtti_exceptions=no
7585 ac_outfile=conftest.$ac_objext
7586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7587 lt_compiler_flag="-fno-rtti -fno-exceptions"
7588 # Insert the option either (1) after the last *FLAGS variable, or
7589 # (2) before a word containing "conftest.", or (3) at the end.
7590 # Note that $ac_compile itself does not contain backslashes and begins
7591 # with a dollar sign (not a hyphen), so the echo should work correctly.
7592 # The option is referenced via a variable to avoid confusing sed.
7593 lt_compile=`echo "$ac_compile" | $SED \
7594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7596 -e 's:$: $lt_compiler_flag:'`
7597 (eval echo "\"\$as_me:7597: $lt_compile\"" >&5)
7598 (eval "$lt_compile" 2>conftest.err)
7600 cat conftest.err >&5
7601 echo "$as_me:7601: \$? = $ac_status" >&5
7602 if (exit $ac_status) && test -s "$ac_outfile"; then
7603 # The compiler can only warn and ignore the option if not recognized
7604 # So say no if there are warnings other than the usual output.
7605 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7608 lt_cv_prog_compiler_rtti_exceptions=yes
7614 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7615 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7630 lt_prog_compiler_wl=
7631 lt_prog_compiler_pic=
7632 lt_prog_compiler_static=
7634 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7635 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7637 if test "$GCC" = yes; then
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_static='-static'
7643 # All AIX code is PIC.
7644 if test "$host_cpu" = ia64; then
7645 # AIX 5 now supports IA64 processor
7646 lt_prog_compiler_static='-Bstatic'
7653 # see comment about AmigaOS4 .so support
7654 lt_prog_compiler_pic='-fPIC'
7657 # FIXME: we need at least 68020 code to build shared libraries, but
7658 # adding the `-m68020' flag to GCC prevents building anything better,
7660 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7666 # PIC is the default for these OSes.
7669 mingw* | cygwin* | pw32* | os2* | cegcc*)
7670 # This hack is so that the source file can tell whether it is being
7671 # built for inclusion in a dll (and should export symbols for example).
7672 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7673 # (--disable-auto-import) libraries
7674 lt_prog_compiler_pic='-DDLL_EXPORT'
7677 darwin* | rhapsody*)
7678 # PIC is the default on this platform
7679 # Common symbols not allowed in MH_DYLIB files
7680 lt_prog_compiler_pic='-fno-common'
7684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7686 # sets the default TLS model and affects inlining.
7692 lt_prog_compiler_pic='-fPIC'
7698 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7699 # Instead, we relocate shared libraries at runtime.
7703 # Just because we use GCC doesn't mean we suddenly get shared libraries
7704 # on systems that don't support them.
7705 lt_prog_compiler_can_build_shared=no
7710 # QNX uses GNU C++, but need to define -shared option too, otherwise
7712 lt_prog_compiler_pic='-fPIC -shared'
7716 if test -d /usr/nec; then
7717 lt_prog_compiler_pic=-Kconform_pic
7722 lt_prog_compiler_pic='-fPIC'
7726 # PORTME Check for flag to pass linker flags through the system compiler.
7729 lt_prog_compiler_wl='-Wl,'
7730 if test "$host_cpu" = ia64; then
7731 # AIX 5 now supports IA64 processor
7732 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7738 mingw* | cygwin* | pw32* | os2* | cegcc*)
7739 # This hack is so that the source file can tell whether it is being
7740 # built for inclusion in a dll (and should export symbols for example).
7741 lt_prog_compiler_pic='-DDLL_EXPORT'
7744 hpux9* | hpux10* | hpux11*)
7745 lt_prog_compiler_wl='-Wl,'
7746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7753 lt_prog_compiler_pic='+Z'
7756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7757 lt_prog_compiler_static='${wl}-a ${wl}archive'
7760 irix5* | irix6* | nonstopux*)
7761 lt_prog_compiler_wl='-Wl,'
7762 # PIC (with -KPIC) is the default.
7763 lt_prog_compiler_static='-non_shared'
7766 linux* | k*bsd*-gnu)
7767 case $cc_basename in
7768 # old Intel for x86_64 which still supported -KPIC.
7770 lt_prog_compiler_wl='-Wl,'
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-static'
7774 # icc used to be incompatible with GCC.
7775 # ICC 10 doesn't accept -KPIC any more.
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-fPIC'
7779 lt_prog_compiler_static='-static'
7781 # Lahey Fortran 8.1.
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_pic='--shared'
7785 lt_prog_compiler_static='--static'
7787 pgcc* | pgf77* | pgf90* | pgf95*)
7788 # Portland Group compilers (*not* the Pentium gcc compiler,
7789 # which looks to be a dead project)
7790 lt_prog_compiler_wl='-Wl,'
7791 lt_prog_compiler_pic='-fpic'
7792 lt_prog_compiler_static='-Bstatic'
7795 lt_prog_compiler_wl='-Wl,'
7796 # All Alpha code is PIC.
7797 lt_prog_compiler_static='-non_shared'
7800 # IBM XL C 8.0/Fortran 10.1 on PPC
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-qpic'
7803 lt_prog_compiler_static='-qstaticlink'
7806 case `$CC -V 2>&1 | sed 5q` in
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 lt_prog_compiler_wl='-Wl,'
7814 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-Bstatic'
7817 lt_prog_compiler_wl=''
7825 lt_prog_compiler_pic='-KPIC'
7826 lt_prog_compiler_static='-Bstatic'
7830 # QNX uses GNU C++, but need to define -shared option too, otherwise
7832 lt_prog_compiler_pic='-fPIC -shared'
7835 osf3* | osf4* | osf5*)
7836 lt_prog_compiler_wl='-Wl,'
7837 # All OSF/1 code is PIC.
7838 lt_prog_compiler_static='-non_shared'
7842 lt_prog_compiler_static='-non_shared'
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7848 case $cc_basename in
7850 lt_prog_compiler_wl='-Qoption ld ';;
7852 lt_prog_compiler_wl='-Wl,';;
7857 lt_prog_compiler_wl='-Qoption ld '
7858 lt_prog_compiler_pic='-PIC'
7859 lt_prog_compiler_static='-Bstatic'
7862 sysv4 | sysv4.2uw2* | sysv4.3*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-Bstatic'
7869 if test -d /usr/nec ;then
7870 lt_prog_compiler_pic='-Kconform_pic'
7871 lt_prog_compiler_static='-Bstatic'
7875 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7876 lt_prog_compiler_wl='-Wl,'
7877 lt_prog_compiler_pic='-KPIC'
7878 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_wl='-Wl,'
7883 lt_prog_compiler_can_build_shared=no
7887 lt_prog_compiler_pic='-pic'
7888 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_can_build_shared=no
7898 # For platforms which do not support PIC, -DPIC is meaningless:
7900 lt_prog_compiler_pic=
7903 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7906 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7907 $as_echo "$lt_prog_compiler_pic" >&6; }
7915 # Check to make sure the PIC flag actually works.
7917 if test -n "$lt_prog_compiler_pic"; then
7918 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7920 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7921 $as_echo_n "(cached) " >&6
7923 lt_cv_prog_compiler_pic_works=no
7924 ac_outfile=conftest.$ac_objext
7925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7927 # Insert the option either (1) after the last *FLAGS variable, or
7928 # (2) before a word containing "conftest.", or (3) at the end.
7929 # Note that $ac_compile itself does not contain backslashes and begins
7930 # with a dollar sign (not a hyphen), so the echo should work correctly.
7931 # The option is referenced via a variable to avoid confusing sed.
7932 lt_compile=`echo "$ac_compile" | $SED \
7933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7935 -e 's:$: $lt_compiler_flag:'`
7936 (eval echo "\"\$as_me:7936: $lt_compile\"" >&5)
7937 (eval "$lt_compile" 2>conftest.err)
7939 cat conftest.err >&5
7940 echo "$as_me:7940: \$? = $ac_status" >&5
7941 if (exit $ac_status) && test -s "$ac_outfile"; then
7942 # The compiler can only warn and ignore the option if not recognized
7943 # So say no if there are warnings other than the usual output.
7944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7947 lt_cv_prog_compiler_pic_works=yes
7953 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7957 case $lt_prog_compiler_pic in
7959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7962 lt_prog_compiler_pic=
7963 lt_prog_compiler_can_build_shared=no
7974 # Check to make sure the static flag actually works.
7976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7977 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7979 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7980 $as_echo_n "(cached) " >&6
7982 lt_cv_prog_compiler_static_works=no
7983 save_LDFLAGS="$LDFLAGS"
7984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7987 # The linker can only warn and ignore the option if not recognized
7988 # So say no if there are warnings
7989 if test -s conftest.err; then
7990 # Append any errors to the config.log.
7991 cat conftest.err 1>&5
7992 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7994 if diff conftest.exp conftest.er2 >/dev/null; then
7995 lt_cv_prog_compiler_static_works=yes
7998 lt_cv_prog_compiler_static_works=yes
8002 LDFLAGS="$save_LDFLAGS"
8005 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8011 lt_prog_compiler_static=
8020 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8022 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8023 $as_echo_n "(cached) " >&6
8025 lt_cv_prog_compiler_c_o=no
8026 $RM -r conftest 2>/dev/null
8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032 lt_compiler_flag="-o out/conftest2.$ac_objext"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 lt_compile=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
8041 (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
8042 (eval "$lt_compile" 2>out/conftest.err)
8044 cat out/conftest.err >&5
8045 echo "$as_me:8045: \$? = $ac_status" >&5
8046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_c_o=yes
8058 # SGI C++ compiler will create directory out/ii_files/ for
8059 # template instantiation
8060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8061 $RM out/* && rmdir out
8067 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8075 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8078 $as_echo_n "(cached) " >&6
8080 lt_cv_prog_compiler_c_o=no
8081 $RM -r conftest 2>/dev/null
8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8087 lt_compiler_flag="-o out/conftest2.$ac_objext"
8088 # Insert the option either (1) after the last *FLAGS variable, or
8089 # (2) before a word containing "conftest.", or (3) at the end.
8090 # Note that $ac_compile itself does not contain backslashes and begins
8091 # with a dollar sign (not a hyphen), so the echo should work correctly.
8092 lt_compile=`echo "$ac_compile" | $SED \
8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095 -e 's:$: $lt_compiler_flag:'`
8096 (eval echo "\"\$as_me:8096: $lt_compile\"" >&5)
8097 (eval "$lt_compile" 2>out/conftest.err)
8099 cat out/conftest.err >&5
8100 echo "$as_me:8100: \$? = $ac_status" >&5
8101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8103 # The compiler can only warn and ignore the option if not recognized
8104 # So say no if there are warnings
8105 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108 lt_cv_prog_compiler_c_o=yes
8113 # SGI C++ compiler will create directory out/ii_files/ for
8114 # template instantiation
8115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8116 $RM out/* && rmdir out
8122 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8128 hard_links="nottested"
8129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8130 # do not overwrite the value of need_locks provided by the user
8131 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8132 $as_echo_n "checking if we can lock with hard links... " >&6; }
8135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137 ln conftest.a conftest.b 2>&5 || hard_links=no
8138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8139 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8140 $as_echo "$hard_links" >&6; }
8141 if test "$hard_links" = no; then
8142 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8143 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8155 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8159 allow_undefined_flag=
8160 always_export_symbols=no
8162 archive_expsym_cmds=
8163 compiler_needs_object=no
8164 enable_shared_with_static_runtimes=no
8165 export_dynamic_flag_spec=
8166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8167 hardcode_automatic=no
8169 hardcode_direct_absolute=no
8170 hardcode_libdir_flag_spec=
8171 hardcode_libdir_flag_spec_ld=
8172 hardcode_libdir_separator=
8174 hardcode_shlibpath_var=unsupported
8176 link_all_deplibs=unknown
8179 old_archive_from_new_cmds=
8180 old_archive_from_expsyms_cmds=
8181 thread_safe_flag_spec=
8182 whole_archive_flag_spec=
8183 # include_expsyms should be a list of space-separated symbols to be *always*
8184 # included in the symbol list
8186 # exclude_expsyms can be an extended regexp of symbols to exclude
8187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8189 # as well as any symbol that contains `d'.
8190 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8192 # platforms (ab)use it in PIC code, but their linkers get confused if
8193 # the symbol is explicitly referenced. Since portable code cannot
8194 # rely on this symbol name, it's probably fine to never include it in
8195 # preloaded symbol tables.
8196 # Exclude shared library initialization/finalization symbols.
8197 extract_expsyms_cmds=
8200 cygwin* | mingw* | pw32* | cegcc*)
8201 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8202 # When not using gcc, we currently assume that we are using
8203 # Microsoft Visual C++.
8204 if test "$GCC" != yes; then
8209 # we just hope/assume this is gcc and not c89 (= MSVC++)
8218 if test "$with_gnu_ld" = yes; then
8219 # If archive_cmds runs LD, not CC, wlarc should be empty
8222 # Set some defaults for GNU ld with shared library support. These
8223 # are reset later if shared libraries are not supported. Putting them
8224 # here allows them to be overridden if necessary.
8225 runpath_var=LD_RUN_PATH
8226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227 export_dynamic_flag_spec='${wl}--export-dynamic'
8228 # ancient GNU ld didn't support --whole-archive et. al.
8229 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8230 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8232 whole_archive_flag_spec=
8234 supports_anon_versioning=no
8235 case `$LD -v 2>&1` in
8236 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8237 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8238 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8239 *\ 2.11.*) ;; # other 2.11 versions
8240 *) supports_anon_versioning=yes ;;
8243 # See if GNU ld supports shared libraries.
8246 # On AIX/PPC, the GNU linker is very broken
8247 if test "$host_cpu" != ia64; then
8251 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8252 *** to be unable to reliably create shared libraries on AIX.
8253 *** Therefore, libtool is disabling shared libraries support. If you
8254 *** really care for shared libraries, you may want to modify your PATH
8255 *** so that a non-GNU linker is found, and then restart.
8264 # see comment about AmigaOS4 .so support
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 archive_expsym_cmds=''
8269 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)'
8270 hardcode_libdir_flag_spec='-L$libdir'
8271 hardcode_minus_L=yes
8277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8278 allow_undefined_flag=unsupported
8279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8280 # support --undefined. This deserves some investigation. FIXME
8281 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 cygwin* | mingw* | pw32* | cegcc*)
8288 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8289 # as there is no search path for DLLs.
8290 hardcode_libdir_flag_spec='-L$libdir'
8291 allow_undefined_flag=unsupported
8292 always_export_symbols=no
8293 enable_shared_with_static_runtimes=yes
8294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8298 # If the export-symbols file already is a .def file (1st line
8299 # is EXPORTS), use it as is; otherwise, prepend...
8300 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8301 cp $export_symbols $output_objdir/$soname.def;
8303 echo EXPORTS > $output_objdir/$soname.def;
8304 cat $export_symbols >> $output_objdir/$soname.def;
8306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8314 hardcode_shlibpath_var=no
8315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8316 export_dynamic_flag_spec='${wl}-E'
8317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8318 # Instead, shared libraries are loaded at an image base (0x10000000 by
8319 # default) and relocated if they conflict, which is a slow very memory
8320 # consuming and fragmenting process. To avoid this, we pick a random,
8321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8324 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'
8327 gnu* | linux* | tpf* | k*bsd*-gnu)
8329 if test "$host_os" = linux-dietlibc; then
8330 case $cc_basename in
8331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8335 && test "$tmp_diet" = no
8338 tmp_sharedflag='-shared'
8339 case $cc_basename,$host_cpu in
8340 pgcc*) # Portland Group C compiler
8341 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8342 tmp_addflag=' $pic_flag'
8344 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8345 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8346 tmp_addflag=' $pic_flag -Mnomain' ;;
8347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8348 tmp_addflag=' -i_dynamic' ;;
8349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8350 tmp_addflag=' -i_dynamic -nofor_main' ;;
8351 ifc* | ifort*) # Intel Fortran compiler
8352 tmp_addflag=' -nofor_main' ;;
8353 lf95*) # Lahey Fortran 8.1
8354 whole_archive_flag_spec=
8355 tmp_sharedflag='--shared' ;;
8356 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8357 tmp_sharedflag='-qmkshrobj'
8360 case `$CC -V 2>&1 | sed 5q` in
8361 *Sun\ C*) # Sun C 5.9
8362 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8363 compiler_needs_object=yes
8364 tmp_sharedflag='-G' ;;
8365 *Sun\ F*) # Sun Fortran 8.3
8366 tmp_sharedflag='-G' ;;
8368 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370 if test "x$supports_anon_versioning" = xyes; then
8371 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373 echo "local: *; };" >> $output_objdir/$libname.ver~
8374 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8377 case $cc_basename in
8379 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8380 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8381 hardcode_libdir_flag_spec=
8382 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8383 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8384 if test "x$supports_anon_versioning" = xyes; then
8385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8387 echo "local: *; };" >> $output_objdir/$libname.ver~
8388 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8399 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8412 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8413 *** create shared libraries on Solaris systems. Therefore, libtool
8414 *** is disabling shared libraries support. We urge you to upgrade GNU
8415 *** binutils to release 2.9.1 or newer. Another option is to modify
8416 *** your PATH or compiler configuration so that the native linker is
8417 *** used, and then restart.
8420 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8429 case `$LD -v 2>&1` in
8430 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8434 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8435 *** reliably create shared libraries on SCO systems. Therefore, libtool
8436 *** is disabling shared libraries support. We urge you to upgrade GNU
8437 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8438 *** your PATH or compiler configuration so that the native linker is
8439 *** used, and then restart.
8444 # For security reasons, it is highly recommended that you always
8445 # use absolute paths for naming shared libraries, and exclude the
8446 # DT_RUNPATH tag from executables and libraries. But doing so
8447 # requires that you compile everything twice, which is a pain.
8448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8460 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8463 hardcode_shlibpath_var=no
8467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 if test "$ld_shlibs" = no; then
8478 hardcode_libdir_flag_spec=
8479 export_dynamic_flag_spec=
8480 whole_archive_flag_spec=
8483 # PORTME fill in a description of your system's linker (not GNU ld)
8486 allow_undefined_flag=unsupported
8487 always_export_symbols=yes
8488 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'
8489 # Note: this linker hardcodes the directories in LIBPATH if there
8490 # are no directories specified by -L.
8491 hardcode_minus_L=yes
8492 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8493 # Neither direct hardcoding nor static linking is supported with a
8495 hardcode_direct=unsupported
8500 if test "$host_cpu" = ia64; then
8501 # On IA64, the linker does run time linking by default, so we don't
8502 # have to do anything special.
8503 aix_use_runtimelinking=no
8504 exp_sym_flag='-Bexport'
8507 # If we're using GNU nm, then we don't want the "-C" option.
8508 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8509 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8510 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8512 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'
8514 aix_use_runtimelinking=no
8516 # Test if we are trying to use run time linking or normal
8517 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8518 # need to do runtime linking.
8519 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8520 for ld_flag in $LDFLAGS; do
8521 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8522 aix_use_runtimelinking=yes
8529 exp_sym_flag='-bexport'
8530 no_entry_flag='-bnoentry'
8533 # When large executables or shared objects are built, AIX ld can
8534 # have problems creating the table of contents. If linking a library
8535 # or program results in "error TOC overflow" add -mminimal-toc to
8536 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8537 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8541 hardcode_direct_absolute=yes
8542 hardcode_libdir_separator=':'
8543 link_all_deplibs=yes
8544 file_list_spec='${wl}-f,'
8546 if test "$GCC" = yes; then
8547 case $host_os in aix4.[012]|aix4.[012].*)
8548 # We only want to do this on AIX 4.2 and lower, the check
8549 # below for broken collect2 doesn't work under 4.3+
8550 collect2name=`${CC} -print-prog-name=collect2`
8551 if test -f "$collect2name" &&
8552 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8554 # We have reworked collect2
8557 # We have old collect2
8558 hardcode_direct=unsupported
8559 # It fails to find uninstalled libraries when the uninstalled
8560 # path is not listed in the libpath. Setting hardcode_minus_L
8561 # to unsupported forces relinking
8562 hardcode_minus_L=yes
8563 hardcode_libdir_flag_spec='-L$libdir'
8564 hardcode_libdir_separator=
8568 shared_flag='-shared'
8569 if test "$aix_use_runtimelinking" = yes; then
8570 shared_flag="$shared_flag "'${wl}-G'
8574 if test "$host_cpu" = ia64; then
8575 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8576 # chokes on -Wl,-G. The following line is correct:
8579 if test "$aix_use_runtimelinking" = yes; then
8580 shared_flag='${wl}-G'
8582 shared_flag='${wl}-bM:SRE'
8587 export_dynamic_flag_spec='${wl}-bexpall'
8588 # It seems that -bexpall does not export symbols beginning with
8589 # underscore (_), so it is better to generate a list of symbols to export.
8590 always_export_symbols=yes
8591 if test "$aix_use_runtimelinking" = yes; then
8592 # Warning - without using the other runtime loading flags (-brtl),
8593 # -berok will link without error, but may produce a broken library.
8594 allow_undefined_flag='-berok'
8595 # Determine the default libpath from the value encoded in an
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (ac_try="$ac_link"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619 $as_echo "$ac_try_echo") >&5
8620 (eval "$ac_link") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest$ac_exeext && {
8630 test "$cross_compiling" = yes ||
8631 $as_test_x conftest$ac_exeext
8634 lt_aix_libpath_sed='
8635 /Import File Strings/,/^$/ {
8641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8642 # Check for a 64-bit object if we didn't find anything.
8643 if test -z "$aix_libpath"; then
8644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8647 $as_echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8653 rm -rf conftest.dSYM
8654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8655 conftest$ac_exeext conftest.$ac_ext
8656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8658 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8659 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8661 if test "$host_cpu" = ia64; then
8662 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8663 allow_undefined_flag="-z nodefs"
8664 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"
8666 # Determine the default libpath from the value encoded in an
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (ac_try="$ac_link"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8690 $as_echo "$ac_try_echo") >&5
8691 (eval "$ac_link") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest$ac_exeext && {
8701 test "$cross_compiling" = yes ||
8702 $as_test_x conftest$ac_exeext
8705 lt_aix_libpath_sed='
8706 /Import File Strings/,/^$/ {
8712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8713 # Check for a 64-bit object if we didn't find anything.
8714 if test -z "$aix_libpath"; then
8715 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8718 $as_echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8724 rm -rf conftest.dSYM
8725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8726 conftest$ac_exeext conftest.$ac_ext
8727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8730 # Warning - without using the other run time loading flags,
8731 # -berok will link without error, but may produce a broken library.
8732 no_undefined_flag=' ${wl}-bernotok'
8733 allow_undefined_flag=' ${wl}-berok'
8734 # Exported symbols can be pulled into shared objects from archives
8735 whole_archive_flag_spec='$convenience'
8736 archive_cmds_need_lc=yes
8737 # This is similar to how AIX traditionally builds its shared libraries.
8738 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'
8746 # see comment about AmigaOS4 .so support
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds=''
8751 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)'
8752 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_minus_L=yes
8759 export_dynamic_flag_spec=-rdynamic
8762 cygwin* | mingw* | pw32* | cegcc*)
8763 # When not using gcc, we currently assume that we are using
8764 # Microsoft Visual C++.
8765 # hardcode_libdir_flag_spec is actually meaningless, as there is
8766 # no search path for DLLs.
8767 hardcode_libdir_flag_spec=' '
8768 allow_undefined_flag=unsupported
8769 # Tell ltmain to make .lib files, not .a files.
8771 # Tell ltmain to make .dll files, not .so files.
8773 # FIXME: Setting linknames here is a bad hack.
8774 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8775 # The linker will automatically build a .lib file if we build a DLL.
8776 old_archive_from_new_cmds='true'
8777 # FIXME: Should let the user specify the lib program.
8778 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8779 fix_srcfile_path='`cygpath -w "$srcfile"`'
8780 enable_shared_with_static_runtimes=yes
8783 darwin* | rhapsody*)
8786 archive_cmds_need_lc=no
8788 hardcode_automatic=yes
8789 hardcode_shlibpath_var=unsupported
8790 whole_archive_flag_spec=''
8791 link_all_deplibs=yes
8792 allow_undefined_flag="$_lt_dar_allow_undefined"
8793 case $cc_basename in
8794 ifort*) _lt_dar_can_shared=yes ;;
8795 *) _lt_dar_can_shared=$GCC ;;
8797 if test "$_lt_dar_can_shared" = "yes"; then
8798 output_verbose_link_cmd=echo
8799 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8800 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8801 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}"
8802 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}"
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_shlibpath_var=no
8820 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8821 # support. Future versions do this automatically, but an explicit c++rt0.o
8822 # does not break anything, and helps significantly (at the cost of a little
8825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8826 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_shlibpath_var=no
8831 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_minus_L=yes
8836 hardcode_shlibpath_var=no
8839 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8840 freebsd* | dragonfly*)
8841 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8842 hardcode_libdir_flag_spec='-R$libdir'
8844 hardcode_shlibpath_var=no
8848 if test "$GCC" = yes; then
8849 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8851 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'
8853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854 hardcode_libdir_separator=:
8857 # hardcode_minus_L: Not really in the search PATH,
8858 # but as the default location of the library.
8859 hardcode_minus_L=yes
8860 export_dynamic_flag_spec='${wl}-E'
8864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8869 if test "$with_gnu_ld" = no; then
8870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871 hardcode_libdir_flag_spec_ld='+b $libdir'
8872 hardcode_libdir_separator=:
8874 hardcode_direct_absolute=yes
8875 export_dynamic_flag_spec='${wl}-E'
8876 # hardcode_minus_L: Not really in the search PATH,
8877 # but as the default location of the library.
8878 hardcode_minus_L=yes
8883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8886 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8898 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8908 if test "$with_gnu_ld" = no; then
8909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8910 hardcode_libdir_separator=:
8915 hardcode_shlibpath_var=no
8919 hardcode_direct_absolute=yes
8920 export_dynamic_flag_spec='${wl}-E'
8922 # hardcode_minus_L: Not really in the search PATH,
8923 # but as the default location of the library.
8924 hardcode_minus_L=yes
8930 irix5* | irix6* | nonstopux*)
8931 if test "$GCC" = yes; then
8932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8933 # Try to use the -exported_symbol ld option, if it does not
8934 # work, assume that -exports_file does not work either and
8935 # implicitly export all symbols.
8936 save_LDFLAGS="$LDFLAGS"
8937 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8938 cat >conftest.$ac_ext <<_ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (ac_try="$ac_link"
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949 (eval "$ac_link") 2>conftest.er1
8951 grep -v '^ *+' conftest.er1 >conftest.err
8953 cat conftest.err >&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest$ac_exeext && {
8959 test "$cross_compiling" = yes ||
8960 $as_test_x conftest$ac_exeext
8962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8965 $as_echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8971 rm -rf conftest.dSYM
8972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8973 conftest$ac_exeext conftest.$ac_ext
8974 LDFLAGS="$save_LDFLAGS"
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8979 archive_cmds_need_lc='no'
8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 hardcode_libdir_separator=:
8983 link_all_deplibs=yes
8987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8990 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8992 hardcode_libdir_flag_spec='-R$libdir'
8994 hardcode_shlibpath_var=no
8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9001 hardcode_libdir_separator=:
9002 hardcode_shlibpath_var=no
9009 if test -f /usr/libexec/ld.so; then
9011 hardcode_shlibpath_var=no
9012 hardcode_direct_absolute=yes
9013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9017 export_dynamic_flag_spec='${wl}-E'
9020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_libdir_flag_spec='-R$libdir'
9025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_minus_L=yes
9038 allow_undefined_flag=unsupported
9039 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'
9040 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9044 if test "$GCC" = yes; then
9045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9046 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9048 allow_undefined_flag=' -expect_unresolved \*'
9049 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9051 archive_cmds_need_lc='no'
9052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9053 hardcode_libdir_separator=:
9056 osf4* | osf5*) # as osf3* with the addition of -msym flag
9057 if test "$GCC" = yes; then
9058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9059 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062 allow_undefined_flag=' -expect_unresolved \*'
9063 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9064 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~
9065 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9067 # Both c and cxx compiler support -rpath directly
9068 hardcode_libdir_flag_spec='-rpath $libdir'
9070 archive_cmds_need_lc='no'
9071 hardcode_libdir_separator=:
9075 no_undefined_flag=' -z defs'
9076 if test "$GCC" = yes; then
9078 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9080 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9082 case `$CC -V 2>&1` in
9085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9091 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9097 hardcode_libdir_flag_spec='-R$libdir'
9098 hardcode_shlibpath_var=no
9100 solaris2.[0-5] | solaris2.[0-5].*) ;;
9102 # The compiler driver will combine and reorder linker options,
9103 # but understands `-z linker_flag'. GCC discards it without `$wl',
9104 # but is careful enough not to reorder.
9105 # Supported since Solaris 2.6 (maybe 2.5.1?)
9106 if test "$GCC" = yes; then
9107 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9109 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9113 link_all_deplibs=yes
9117 if test "x$host_vendor" = xsequent; then
9118 # Use $CC to link under sequent, because it throws in some extra .o
9119 # files that make .init and .fini sections work.
9120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9124 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_minus_L=yes
9127 hardcode_shlibpath_var=no
9131 case $host_vendor in
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_direct=yes # is this really true???
9137 ## LD is ld it makes a PLAMLIB
9138 ## CC just makes a GrossModule.
9139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9140 reload_cmds='$CC -r -o $output$reload_objs'
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9148 runpath_var='LD_RUN_PATH'
9149 hardcode_shlibpath_var=no
9153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154 hardcode_shlibpath_var=no
9155 export_dynamic_flag_spec='-Bexport'
9159 if test -d /usr/nec; then
9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_shlibpath_var=no
9162 runpath_var=LD_RUN_PATH
9163 hardcode_runpath_var=yes
9168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9169 no_undefined_flag='${wl}-z,text'
9170 archive_cmds_need_lc=no
9171 hardcode_shlibpath_var=no
9172 runpath_var='LD_RUN_PATH'
9174 if test "$GCC" = yes; then
9175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 sysv5* | sco3.2v5* | sco5v6*)
9184 # Note: We can NOT use -z defs as we might desire, because we do not
9185 # link with -lc, and that would cause any symbols used from libc to
9186 # always be unresolved, which means just about no library would
9187 # ever link correctly. If we're not using GNU ld we use -z text
9188 # though, which does catch some bad symbols but isn't as heavy-handed
9190 no_undefined_flag='${wl}-z,text'
9191 allow_undefined_flag='${wl}-z,nodefs'
9192 archive_cmds_need_lc=no
9193 hardcode_shlibpath_var=no
9194 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9195 hardcode_libdir_separator=':'
9196 link_all_deplibs=yes
9197 export_dynamic_flag_spec='${wl}-Bexport'
9198 runpath_var='LD_RUN_PATH'
9200 if test "$GCC" = yes; then
9201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9211 hardcode_libdir_flag_spec='-L$libdir'
9212 hardcode_shlibpath_var=no
9220 if test x$host_vendor = xsni; then
9222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9223 export_dynamic_flag_spec='${wl}-Blargedynsym'
9229 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9230 $as_echo "$ld_shlibs" >&6; }
9231 test "$ld_shlibs" = no && can_build_shared=no
9233 with_gnu_ld=$with_gnu_ld
9250 # Do we need to explicitly link libc?
9252 case "x$archive_cmds_need_lc" in
9254 # Assume -lc should be added
9255 archive_cmds_need_lc=yes
9257 if test "$enable_shared" = yes && test "$GCC" = yes; then
9258 case $archive_cmds in
9260 # FIXME: we may have to deal with multi-command sequences.
9263 # Test whether the compiler implicitly links with -lc since on some
9264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9265 # to ld, don't add -lc before -lgcc.
9266 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272 (eval $ac_compile) 2>&5
9274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } 2>conftest.err; then
9278 libobjs=conftest.$ac_objext
9280 wl=$lt_prog_compiler_wl
9281 pic_flag=$lt_prog_compiler_pic
9287 lt_save_allow_undefined_flag=$allow_undefined_flag
9288 allow_undefined_flag=
9289 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }
9295 archive_cmds_need_lc=no
9297 archive_cmds_need_lc=yes
9299 allow_undefined_flag=$lt_save_allow_undefined_flag
9301 cat conftest.err 1>&5
9304 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9305 $as_echo "$archive_cmds_need_lc" >&6; }
9468 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9469 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9471 if test "$GCC" = yes; then
9473 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9474 *) lt_awk_arg="/^libraries:/" ;;
9476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9477 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9478 # if the path contains ";" then we assume it to be the separator
9479 # otherwise default to the standard path separator (i.e. ":") - it is
9480 # assumed that no part of a normal pathname contains ";" but that should
9481 # okay in the real world where ";" in dirpaths is itself problematic.
9482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9486 # Ok, now we have the path, separated by spaces, we can step through it
9487 # and add multilib dir if necessary.
9488 lt_tmp_lt_search_path_spec=
9489 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9490 for lt_sys_path in $lt_search_path_spec; do
9491 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9494 test -d "$lt_sys_path" && \
9495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9498 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9499 BEGIN {RS=" "; FS="/|\n";} {
9502 for (lt_i = NF; lt_i > 0; lt_i--) {
9503 if ($lt_i != "" && $lt_i != ".") {
9504 if ($lt_i == "..") {
9507 if (lt_count == 0) {
9508 lt_foo="/" $lt_i lt_foo;
9515 if (lt_foo != "") { lt_freq[lt_foo]++; }
9516 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9518 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9523 libname_spec='lib$name'
9531 shlibpath_overrides_runpath=unknown
9533 dynamic_linker="$host_os ld.so"
9534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9535 need_lib_prefix=unknown
9536 hardcode_into_libs=no
9538 # when you set need_version to no, make sure it does not cause -set_version
9539 # flags to be left without arguments
9540 need_version=unknown
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9546 shlibpath_var=LIBPATH
9548 # AIX 3 has no versioning support, so we append a major version to the name.
9549 soname_spec='${libname}${release}${shared_ext}$major'
9556 hardcode_into_libs=yes
9557 if test "$host_cpu" = ia64; then
9558 # AIX 5 supports IA64
9559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9560 shlibpath_var=LD_LIBRARY_PATH
9562 # With GCC up to 2.95.x, collect2 would create an import file
9563 # for dependence libraries. The import file would start with
9564 # the line `#! .'. This would cause the generated library to
9565 # depend on `.', always an invalid library. This was fixed in
9566 # development snapshots of GCC prior to 3.0.
9568 aix4 | aix4.[01] | aix4.[01].*)
9569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9571 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9579 # soname into executable. Probably we can add versioning support to
9580 # collect2, so additional links can be useful in future.
9581 if test "$aix_use_runtimelinking" = yes; then
9582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9583 # instead of lib<name>.a to let people know that these are not
9584 # typical AIX shared libraries.
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587 # We preserve .a as extension for shared libraries through AIX4.2
9588 # and later when we are not doing run time linking.
9589 library_names_spec='${libname}${release}.a $libname.a'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9592 shlibpath_var=LIBPATH
9599 # Since July 2007 AmigaOS4 officially supports .so libraries.
9600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 library_names_spec='$libname.ixlibrary $libname.a'
9605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9606 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9612 library_names_spec='${libname}${shared_ext}'
9613 dynamic_linker="$host_os ld.so"
9614 shlibpath_var=LIBRARY_PATH
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9626 # the default ld.so.conf also contains /usr/contrib/lib and
9627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9628 # libtool to hard-code these into programs
9631 cygwin* | mingw* | pw32* | cegcc*)
9632 version_type=windows
9637 case $GCC,$host_os in
9638 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9639 library_names_spec='$libname.dll.a'
9640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9641 postinstall_cmds='base_file=`basename \${file}`~
9642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9643 dldir=$destdir/`dirname \$dlpath`~
9644 test -d \$dldir || mkdir -p \$dldir~
9645 $install_prog $dir/$dlname \$dldir/$dlname~
9646 chmod a+x \$dldir/$dlname~
9647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9651 dlpath=$dir/\$dldll~
9653 shlibpath_overrides_runpath=yes
9657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9659 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9662 # MinGW DLLs use traditional 'lib' prefix
9663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9664 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9666 # It is most probably a Windows format PATH printed by
9667 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9668 # path with ; separators, and with drive letters. We can handle the
9669 # drive letters (cygwin fileutils understands them), so leave them,
9670 # especially as we might pass files found there to a mingw objdump,
9671 # which wouldn't understand a cygwinified path. Ahh.
9672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9678 # pw32 DLLs use 'pw' prefix rather than 'lib'
9679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9688 dynamic_linker='Win32 ld.exe'
9689 # FIXME: first we should search . and the directory the executable is in
9693 darwin* | rhapsody*)
9694 dynamic_linker="$host_os dyld"
9698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9699 soname_spec='${libname}${release}${major}$shared_ext'
9700 shlibpath_overrides_runpath=yes
9701 shlibpath_var=DYLD_LIBRARY_PATH
9702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LD_LIBRARY_PATH
9721 freebsd* | dragonfly*)
9722 # DragonFly does not have aout. When/if they implement a new
9723 # versioning mechanism, adjust this.
9724 if test -x /usr/bin/objformat; then
9725 objformat=`/usr/bin/objformat`
9728 freebsd[123]*) objformat=aout ;;
9732 version_type=freebsd-$objformat
9733 case $version_type in
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9744 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9749 freebsd3.[01]* | freebsdelf3.[01]*)
9750 shlibpath_overrides_runpath=yes
9751 hardcode_into_libs=yes
9753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9755 shlibpath_overrides_runpath=no
9756 hardcode_into_libs=yes
9758 *) # from 4.6 on, and DragonFly
9759 shlibpath_overrides_runpath=yes
9760 hardcode_into_libs=yes
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 hardcode_into_libs=yes
9775 hpux9* | hpux10* | hpux11*)
9776 # Give a soname corresponding to the major version so that dld.sl refuses to
9777 # link against other versions.
9784 hardcode_into_libs=yes
9785 dynamic_linker="$host_os dld.so"
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 if test "X$HPUX_IA64_MODE" = X32; then
9791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9799 hardcode_into_libs=yes
9800 dynamic_linker="$host_os dld.sl"
9801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9810 dynamic_linker="$host_os dld.sl"
9811 shlibpath_var=SHLIB_PATH
9812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9818 postinstall_cmds='chmod 555 $lib'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 shlibpath_overrides_runpath=no
9830 hardcode_into_libs=yes
9833 irix5* | irix6* | nonstopux*)
9835 nonstopux*) version_type=nonstopux ;;
9837 if test "$lt_cv_prog_gnu_ld" = yes; then
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9848 irix5* | nonstopux*)
9852 case $LD in # libtool.m4 will add one of these switches to LD
9853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9854 libsuff= shlibsuff= libmagic=32-bit;;
9855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9856 libsuff=32 shlibsuff=N32 libmagic=N32;;
9857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9859 *) libsuff= shlibsuff= libmagic=never-match;;
9863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9864 shlibpath_overrides_runpath=no
9865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9867 hardcode_into_libs=yes
9870 # No shared lib support for Linux oldld, aout, or coff.
9871 linux*oldld* | linux*aout* | linux*coff*)
9875 # This must be Linux ELF.
9876 linux* | k*bsd*-gnu)
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=no
9885 # Some binutils ld are patched to set DT_RUNPATH
9886 save_LDFLAGS=$LDFLAGS
9888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9912 $as_echo "$ac_try_echo") >&5
9913 (eval "$ac_link") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } && {
9920 test -z "$ac_c_werror_flag" ||
9921 test ! -s conftest.err
9922 } && test -s conftest$ac_exeext && {
9923 test "$cross_compiling" = yes ||
9924 $as_test_x conftest$ac_exeext
9926 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9927 shlibpath_overrides_runpath=yes
9931 $as_echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9937 rm -rf conftest.dSYM
9938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LDFLAGS=$save_LDFLAGS
9943 # This implies no fast_install, which is unacceptable.
9944 # Some rework will be needed to allow for fast_install
9945 # before this can be enabled.
9946 hardcode_into_libs=yes
9948 # Append ld.so.conf contents to the search path
9949 if test -f /etc/ld.so.conf; then
9950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9954 # We used to test for /lib/ld.so.1 and disable shared libraries on
9955 # powerpc, because MkLinux only supported shared libraries with the
9956 # GNU dynamic linker. Since this was broken with cross compilers,
9957 # most powerpc-linux boxes support dynamic linking these days and
9958 # people can always --disable-shared, the test was removed, and we
9959 # assume the GNU/Linux dynamic linker is in use.
9960 dynamic_linker='GNU/Linux ld.so'
9967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9970 dynamic_linker='NetBSD (a.out) ld.so'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 dynamic_linker='NetBSD ld.elf_so'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=yes
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 soname_spec='${libname}${release}${shared_ext}$major'
9994 shlibpath_var=LD_LIBRARY_PATH
9995 shlibpath_overrides_runpath=no
9996 hardcode_into_libs=yes
9997 dynamic_linker='ldqnx.so'
10002 sys_lib_dlsearch_path_spec="/usr/lib"
10004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10007 *) need_version=no ;;
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10014 openbsd2.[89] | openbsd2.[89].*)
10015 shlibpath_overrides_runpath=no
10018 shlibpath_overrides_runpath=yes
10022 shlibpath_overrides_runpath=yes
10027 libname_spec='$name'
10030 library_names_spec='$libname${shared_ext} $libname.a'
10031 dynamic_linker='OS/2 ld.exe'
10032 shlibpath_var=LIBPATH
10035 osf3* | osf4* | osf5*)
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10058 hardcode_into_libs=yes
10059 # ldd complains unless libraries are executable
10060 postinstall_cmds='chmod +x $lib'
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 if test "$with_gnu_ld" = yes; then
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10080 case $host_vendor in
10082 shlibpath_overrides_runpath=no
10084 runpath_var=LD_RUN_PATH
10092 shlibpath_overrides_runpath=no
10093 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10099 if test -d /usr/nec ;then
10101 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10102 soname_spec='$libname${shared_ext}.$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10108 version_type=freebsd-elf
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10116 if test "$with_gnu_ld" = yes; then
10117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10119 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10126 sys_lib_dlsearch_path_spec='/usr/lib'
10130 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=no
10137 hardcode_into_libs=yes
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LD_LIBRARY_PATH
10151 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10152 $as_echo "$dynamic_linker" >&6; }
10153 test "$dynamic_linker" = no && can_build_shared=no
10155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10156 if test "$GCC" = yes; then
10157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10160 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10161 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10164 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10253 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10254 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10256 if test -n "$hardcode_libdir_flag_spec" ||
10257 test -n "$runpath_var" ||
10258 test "X$hardcode_automatic" = "Xyes" ; then
10260 # We can hardcode non-existent directories.
10261 if test "$hardcode_direct" != no &&
10262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10263 # have to relink, otherwise we might link with an installed library
10264 # when we should be linking with a yet-to-be-installed one
10265 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10266 test "$hardcode_minus_L" != no; then
10267 # Linking always hardcodes the temporary library directory.
10268 hardcode_action=relink
10270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10271 hardcode_action=immediate
10274 # We cannot hardcode anything, or else we can only hardcode existing
10276 hardcode_action=unsupported
10278 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10279 $as_echo "$hardcode_action" >&6; }
10281 if test "$hardcode_action" = relink ||
10282 test "$inherit_rpath" = yes; then
10283 # Fast installation is not supported
10284 enable_fast_install=no
10285 elif test "$shlibpath_overrides_runpath" = yes ||
10286 test "$enable_shared" = no; then
10287 # Fast installation is not necessary
10288 enable_fast_install=needless
10296 if test "x$enable_dlopen" != xyes; then
10297 enable_dlopen=unknown
10298 enable_dlopen_self=unknown
10299 enable_dlopen_self_static=unknown
10306 lt_cv_dlopen="load_add_on"
10308 lt_cv_dlopen_self=yes
10311 mingw* | pw32* | cegcc*)
10312 lt_cv_dlopen="LoadLibrary"
10317 lt_cv_dlopen="dlopen"
10322 # if libdl is installed we need to link against it
10323 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10325 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10326 $as_echo_n "(cached) " >&6
10328 ac_check_lib_save_LIBS=$LIBS
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10337 /* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (ac_try="$ac_link"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10359 $as_echo "$ac_try_echo") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext && {
10370 test "$cross_compiling" = yes ||
10371 $as_test_x conftest$ac_exeext
10373 ac_cv_lib_dl_dlopen=yes
10375 $as_echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10378 ac_cv_lib_dl_dlopen=no
10381 rm -rf conftest.dSYM
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10387 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10388 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10392 lt_cv_dlopen="dyld"
10394 lt_cv_dlopen_self=yes
10401 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10402 $as_echo_n "checking for shl_load... " >&6; }
10403 if test "${ac_cv_func_shl_load+set}" = set; then
10404 $as_echo_n "(cached) " >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10414 #define shl_load innocuous_shl_load
10416 /* System header to define __stub macros and hopefully few prototypes,
10417 which can conflict with char shl_load (); below.
10418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10419 <limits.h> exists even on freestanding compilers. */
10422 # include <limits.h>
10424 # include <assert.h>
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10436 /* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
10439 #if defined __stub_shl_load || defined __stub___shl_load
10446 return shl_load ();
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10458 $as_echo "$ac_try_echo") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext && {
10469 test "$cross_compiling" = yes ||
10470 $as_test_x conftest$ac_exeext
10472 ac_cv_func_shl_load=yes
10474 $as_echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_func_shl_load=no
10480 rm -rf conftest.dSYM
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482 conftest$ac_exeext conftest.$ac_ext
10484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10485 $as_echo "$ac_cv_func_shl_load" >&6; }
10486 if test "x$ac_cv_func_shl_load" = x""yes; then
10487 lt_cv_dlopen="shl_load"
10489 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10490 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10491 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10492 $as_echo_n "(cached) " >&6
10494 ac_check_lib_save_LIBS=$LIBS
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10503 /* Override any GCC internal prototype to avoid an error.
10504 Use char because int might match the return type of a GCC
10505 builtin and then its argument prototype would still apply. */
10513 return shl_load ();
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10525 $as_echo "$ac_try_echo") >&5
10526 (eval "$ac_link") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest$ac_exeext && {
10536 test "$cross_compiling" = yes ||
10537 $as_test_x conftest$ac_exeext
10539 ac_cv_lib_dld_shl_load=yes
10541 $as_echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_lib_dld_shl_load=no
10547 rm -rf conftest.dSYM
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10552 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10553 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10554 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10555 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10557 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10558 $as_echo_n "checking for dlopen... " >&6; }
10559 if test "${ac_cv_func_dlopen+set}" = set; then
10560 $as_echo_n "(cached) " >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570 #define dlopen innocuous_dlopen
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char dlopen (); below.
10574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575 <limits.h> exists even on freestanding compilers. */
10578 # include <limits.h>
10580 # include <assert.h>
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined __stub_dlopen || defined __stub___dlopen
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10628 ac_cv_func_dlopen=yes
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_func_dlopen=no
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10641 $as_echo "$ac_cv_func_dlopen" >&6; }
10642 if test "x$ac_cv_func_dlopen" = x""yes; then
10643 lt_cv_dlopen="dlopen"
10645 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10647 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10648 $as_echo_n "(cached) " >&6
10650 ac_check_lib_save_LIBS=$LIBS
10652 cat >conftest.$ac_ext <<_ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10681 $as_echo "$ac_try_echo") >&5
10682 (eval "$ac_link") 2>conftest.er1
10684 grep -v '^ *+' conftest.er1 >conftest.err
10686 cat conftest.err >&5
10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } && {
10689 test -z "$ac_c_werror_flag" ||
10690 test ! -s conftest.err
10691 } && test -s conftest$ac_exeext && {
10692 test "$cross_compiling" = yes ||
10693 $as_test_x conftest$ac_exeext
10695 ac_cv_lib_dl_dlopen=yes
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_cv_lib_dl_dlopen=no
10703 rm -rf conftest.dSYM
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10710 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10715 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10716 $as_echo_n "(cached) " >&6
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lsvld $LIBS"
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10727 /* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10749 $as_echo "$ac_try_echo") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext && {
10760 test "$cross_compiling" = yes ||
10761 $as_test_x conftest$ac_exeext
10763 ac_cv_lib_svld_dlopen=yes
10765 $as_echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_lib_svld_dlopen=no
10771 rm -rf conftest.dSYM
10772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10773 conftest$ac_exeext conftest.$ac_ext
10774 LIBS=$ac_check_lib_save_LIBS
10776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10778 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10781 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10783 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10784 $as_echo_n "(cached) " >&6
10786 ac_check_lib_save_LIBS=$LIBS
10788 cat >conftest.$ac_ext <<_ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10805 return dld_link ();
10810 rm -f conftest.$ac_objext conftest$ac_exeext
10811 if { (ac_try="$ac_link"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817 $as_echo "$ac_try_echo") >&5
10818 (eval "$ac_link") 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest$ac_exeext && {
10828 test "$cross_compiling" = yes ||
10829 $as_test_x conftest$ac_exeext
10831 ac_cv_lib_dld_dld_link=yes
10833 $as_echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dld_dld_link=no
10839 rm -rf conftest.dSYM
10840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10846 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10868 if test "x$lt_cv_dlopen" != xno; then
10874 case $lt_cv_dlopen in
10876 save_CPPFLAGS="$CPPFLAGS"
10877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10879 save_LDFLAGS="$LDFLAGS"
10880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10883 LIBS="$lt_cv_dlopen_libs $LIBS"
10885 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10887 if test "${lt_cv_dlopen_self+set}" = set; then
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self=cross
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10911 # define LT_DLGLOBAL 0
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # define LT_DLLAZY_OR_NOW 0
10937 void fnord() { int i=42;}
10940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10941 int status = $lt_dlunknown;
10945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10947 /* dlclose (self); */
10955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10956 (eval $ac_link) 2>&5
10958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10960 (./conftest; exit; ) >&5 2>/dev/null
10962 case x$lt_status in
10963 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10964 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10965 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10968 # compilation failed
10969 lt_cv_dlopen_self=no
10976 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10977 $as_echo "$lt_cv_dlopen_self" >&6; }
10979 if test "x$lt_cv_dlopen_self" = xyes; then
10980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10981 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10982 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10983 if test "${lt_cv_dlopen_self_static+set}" = set; then
10984 $as_echo_n "(cached) " >&6
10986 if test "$cross_compiling" = yes; then :
10987 lt_cv_dlopen_self_static=cross
10989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10990 lt_status=$lt_dlunknown
10991 cat > conftest.$ac_ext <<_LT_EOF
10992 #line 10992 "configure"
10993 #include "confdefs.h"
11002 # define LT_DLGLOBAL RTLD_GLOBAL
11005 # define LT_DLGLOBAL DL_GLOBAL
11007 # define LT_DLGLOBAL 0
11011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11012 find out it does not work in some platform. */
11013 #ifndef LT_DLLAZY_OR_NOW
11015 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11018 # define LT_DLLAZY_OR_NOW DL_LAZY
11021 # define LT_DLLAZY_OR_NOW RTLD_NOW
11024 # define LT_DLLAZY_OR_NOW DL_NOW
11026 # define LT_DLLAZY_OR_NOW 0
11033 void fnord() { int i=42;}
11036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11037 int status = $lt_dlunknown;
11041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11042 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11043 /* dlclose (self); */
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>&5
11054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11056 (./conftest; exit; ) >&5 2>/dev/null
11058 case x$lt_status in
11059 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11060 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11061 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11064 # compilation failed
11065 lt_cv_dlopen_self_static=no
11072 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11073 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11076 CPPFLAGS="$save_CPPFLAGS"
11077 LDFLAGS="$save_LDFLAGS"
11082 case $lt_cv_dlopen_self in
11083 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11084 *) enable_dlopen_self=unknown ;;
11087 case $lt_cv_dlopen_self_static in
11088 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11089 *) enable_dlopen_self_static=unknown ;;
11111 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11112 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11113 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11114 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11115 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11116 { $as_echo "$as_me:$LINENO: result: yes" >&5
11117 $as_echo "yes" >&6; }
11119 # FIXME - insert some real tests, host_os isn't really good enough
11122 if test -n "$STRIP" ; then
11123 striplib="$STRIP -x"
11124 old_striplib="$STRIP -S"
11125 { $as_echo "$as_me:$LINENO: result: yes" >&5
11126 $as_echo "yes" >&6; }
11128 { $as_echo "$as_me:$LINENO: result: no" >&5
11129 $as_echo "no" >&6; }
11133 { $as_echo "$as_me:$LINENO: result: no" >&5
11134 $as_echo "no" >&6; }
11150 # Report which library types will actually be built
11151 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11152 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11153 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11154 $as_echo "$can_build_shared" >&6; }
11156 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11157 $as_echo_n "checking whether to build shared libraries... " >&6; }
11158 test "$can_build_shared" = "no" && enable_shared=no
11160 # On AIX, shared libraries and static libraries use the same namespace, and
11161 # are all built from PIC.
11164 test "$enable_shared" = yes && enable_static=no
11165 if test -n "$RANLIB"; then
11166 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11167 postinstall_cmds='$RANLIB $lib'
11172 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11173 test "$enable_shared" = yes && enable_static=no
11177 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11178 $as_echo "$enable_shared" >&6; }
11180 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11181 $as_echo_n "checking whether to build static libraries... " >&6; }
11182 # Make sure either enable_shared or enable_static is yes.
11183 test "$enable_shared" = yes || enable_static=yes
11184 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11185 $as_echo "$enable_static" >&6; }
11192 ac_cpp='$CPP $CPPFLAGS'
11193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211 ac_config_commands="$ac_config_commands libtool"
11216 # Only expand once:
11220 if test "x$GCC" = "xyes"; then
11221 case " $CFLAGS " in
11222 *[\ \ ]-Wall[\ \ ]*) ;;
11223 *) CFLAGS="$CFLAGS -Wall" ;;
11226 case " $CFLAGS " in
11227 *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
11228 *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
11231 case " $CFLAGS " in
11232 *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
11233 *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
11236 case " $CFLAGS " in
11237 *[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
11238 *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
11241 case " $CFLAGS " in
11242 *[\ \ ]-Wnested-externs[\ \ ]*) ;;
11243 *) CFLAGS="$CFLAGS -Wnested-externs" ;;
11246 case " $CFLAGS " in
11247 *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
11248 *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
11251 case " $CFLAGS " in
11252 *[\ \ ]-Wcast-align[\ \ ]*) ;;
11253 *) CFLAGS="$CFLAGS -Wcast-align" ;;
11256 case " $CFLAGS " in
11257 *[\ \ ]-Wsign-compare[\ \ ]*) ;;
11258 *) CFLAGS="$CFLAGS -Wsign-compare" ;;
11261 if test "x$enable_ansi" = "xyes"; then
11262 case " $CFLAGS " in
11263 *[\ \ ]-ansi[\ \ ]*) ;;
11264 *) CFLAGS="$CFLAGS -ansi" ;;
11267 case " $CFLAGS " in
11268 *[\ \ ]-pedantic[\ \ ]*) ;;
11269 *) CFLAGS="$CFLAGS -pedantic" ;;
11272 if test x$enable_gcov = xyes; then
11273 case " $CFLAGS " in
11274 *[\ \ ]-fprofile-arcs[\ \ ]*) ;;
11275 *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
11277 case " $CFLAGS " in
11278 *[\ \ ]-ftest-coverage[\ \ ]*) ;;
11279 *) CFLAGS="$CFLAGS -ftest-coverage" ;;
11282 ## remove optimization
11283 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
11286 if test x$enable_gcov = xyes; then
11287 { { $as_echo "$as_me:$LINENO: error: --enable-gcov can only be used with gcc" >&5
11288 $as_echo "$as_me: error: --enable-gcov can only be used with gcc" >&2;}
11289 { (exit 1); exit 1; }; }
11293 # compress spaces in flags
11294 CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
11295 CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
11299 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11300 if test -n "$ac_tool_prefix"; then
11301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11306 $as_echo_n "(cached) " >&6
11308 case $PKG_CONFIG in
11310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11332 if test -n "$PKG_CONFIG"; then
11333 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11334 $as_echo "$PKG_CONFIG" >&6; }
11336 { $as_echo "$as_me:$LINENO: result: no" >&5
11337 $as_echo "no" >&6; }
11342 if test -z "$ac_cv_path_PKG_CONFIG"; then
11343 ac_pt_PKG_CONFIG=$PKG_CONFIG
11344 # Extract the first word of "pkg-config", so it can be a program name with args.
11345 set dummy pkg-config; ac_word=$2
11346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11349 $as_echo_n "(cached) " >&6
11351 case $ac_pt_PKG_CONFIG in
11353 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11375 if test -n "$ac_pt_PKG_CONFIG"; then
11376 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11377 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11379 { $as_echo "$as_me:$LINENO: result: no" >&5
11380 $as_echo "no" >&6; }
11383 if test "x$ac_pt_PKG_CONFIG" = x; then
11386 case $cross_compiling:$ac_tool_warned in
11388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11390 ac_tool_warned=yes ;;
11392 PKG_CONFIG=$ac_pt_PKG_CONFIG
11395 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11399 if test -n "$PKG_CONFIG"; then
11400 _pkg_min_version=0.9.0
11401 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11402 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11403 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11404 { $as_echo "$as_me:$LINENO: result: yes" >&5
11405 $as_echo "yes" >&6; }
11407 { $as_echo "$as_me:$LINENO: result: no" >&5
11408 $as_echo "no" >&6; }
11415 { $as_echo "$as_me:$LINENO: checking for DESKTOP_FILE_UTILS" >&5
11416 $as_echo_n "checking for DESKTOP_FILE_UTILS... " >&6; }
11418 if test -n "$DESKTOP_FILE_UTILS_CFLAGS"; then
11419 pkg_cv_DESKTOP_FILE_UTILS_CFLAGS="$DESKTOP_FILE_UTILS_CFLAGS"
11420 elif test -n "$PKG_CONFIG"; then
11421 if test -n "$PKG_CONFIG" && \
11422 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8.0\"") >&5
11423 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8.0") 2>&5
11425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; then
11427 pkg_cv_DESKTOP_FILE_UTILS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.8.0" 2>/dev/null`
11434 if test -n "$DESKTOP_FILE_UTILS_LIBS"; then
11435 pkg_cv_DESKTOP_FILE_UTILS_LIBS="$DESKTOP_FILE_UTILS_LIBS"
11436 elif test -n "$PKG_CONFIG"; then
11437 if test -n "$PKG_CONFIG" && \
11438 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.8.0\"") >&5
11439 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.8.0") 2>&5
11441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; then
11443 pkg_cv_DESKTOP_FILE_UTILS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.8.0" 2>/dev/null`
11453 if test $pkg_failed = yes; then
11455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11456 _pkg_short_errors_supported=yes
11458 _pkg_short_errors_supported=no
11460 if test $_pkg_short_errors_supported = yes; then
11461 DESKTOP_FILE_UTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.8.0" 2>&1`
11463 DESKTOP_FILE_UTILS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.8.0" 2>&1`
11465 # Put the nasty error message in config.log where it belongs
11466 echo "$DESKTOP_FILE_UTILS_PKG_ERRORS" >&5
11468 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= 2.8.0) were not met:
11470 $DESKTOP_FILE_UTILS_PKG_ERRORS
11472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11473 installed software in a non-standard prefix.
11475 Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS
11476 and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config.
11477 See the pkg-config man page for more details.
11479 $as_echo "$as_me: error: Package requirements (glib-2.0 >= 2.8.0) were not met:
11481 $DESKTOP_FILE_UTILS_PKG_ERRORS
11483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11484 installed software in a non-standard prefix.
11486 Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS
11487 and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config.
11488 See the pkg-config man page for more details.
11490 { (exit 1); exit 1; }; }
11491 elif test $pkg_failed = untried; then
11492 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11494 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11495 is in your PATH or set the PKG_CONFIG environment variable to the full
11496 path to pkg-config.
11498 Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS
11499 and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config.
11500 See the pkg-config man page for more details.
11502 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11503 See \`config.log' for more details." >&5
11504 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11505 is in your PATH or set the PKG_CONFIG environment variable to the full
11506 path to pkg-config.
11508 Alternatively, you may set the environment variables DESKTOP_FILE_UTILS_CFLAGS
11509 and DESKTOP_FILE_UTILS_LIBS to avoid the need to call pkg-config.
11510 See the pkg-config man page for more details.
11512 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11513 See \`config.log' for more details." >&2;}
11514 { (exit 1); exit 1; }; }; }
11516 DESKTOP_FILE_UTILS_CFLAGS=$pkg_cv_DESKTOP_FILE_UTILS_CFLAGS
11517 DESKTOP_FILE_UTILS_LIBS=$pkg_cv_DESKTOP_FILE_UTILS_LIBS
11518 { $as_echo "$as_me:$LINENO: result: yes" >&5
11519 $as_echo "yes" >&6; }
11523 # If set to t, that means we are running in a shell under Emacs.
11524 # If you have an Emacs named "t", then use the full path.
11525 test x"$EMACS" = xt && EMACS=
11526 for ac_prog in emacs xemacs
11528 # Extract the first word of "$ac_prog", so it can be a program name with args.
11529 set dummy $ac_prog; ac_word=$2
11530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if test "${ac_cv_prog_EMACS+set}" = set; then
11533 $as_echo_n "(cached) " >&6
11535 if test -n "$EMACS"; then
11536 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_prog_EMACS="$ac_prog"
11546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 EMACS=$ac_cv_prog_EMACS
11556 if test -n "$EMACS"; then
11557 { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
11558 $as_echo "$EMACS" >&6; }
11560 { $as_echo "$as_me:$LINENO: result: no" >&5
11561 $as_echo "no" >&6; }
11565 test -n "$EMACS" && break
11567 test -n "$EMACS" || EMACS="no"
11572 # Check whether --with-lispdir was given.
11573 if test "${with_lispdir+set}" = set; then
11574 withval=$with_lispdir; lispdir="$withval"
11575 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
11576 $as_echo_n "checking where .elc files should go... " >&6; }
11577 { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
11578 $as_echo "$lispdir" >&6; }
11581 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
11582 $as_echo_n "checking where .elc files should go... " >&6; }
11583 if test "${am_cv_lispdir+set}" = set; then
11584 $as_echo_n "(cached) " >&6
11587 if test $EMACS != "no"; then
11588 if test x${lispdir+set} != xset; then
11589 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
11590 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
11591 # which is non-obvious for non-emacs users.
11592 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
11593 # emacsen earlier and avoid running this altogether.
11594 { ($as_echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
11595 ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
11597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }
11599 am_cv_lispdir=`sed -n \
11601 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
11602 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
11607 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
11610 { $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
11611 $as_echo "$am_cv_lispdir" >&6; }
11612 lispdir="$am_cv_lispdir"
11619 ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile"
11622 cat >confcache <<\_ACEOF
11623 # This file is a shell script that caches the results of configure
11624 # tests run on this system so they can be shared between configure
11625 # scripts and configure runs, see configure's option --config-cache.
11626 # It is not useful on other systems. If it contains results you don't
11627 # want to keep, you may remove or edit it.
11629 # config.status only pays attention to the cache file if you give it
11630 # the --recheck option to rerun configure.
11632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11634 # following values.
11638 # The following way of writing the cache mishandles newlines in values,
11639 # but we know of no workaround that is simple, portable, and efficient.
11640 # So, we kill variables containing newlines.
11641 # Ultrix sh set writes to stderr and can't be redirected directly,
11642 # and sets the high bit in the cache file unless we assign to the vars.
11644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11645 eval ac_val=\$$ac_var
11649 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11650 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11653 _ | IFS | as_nl) ;; #(
11654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11655 *) $as_unset $ac_var ;;
11661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11662 *${as_nl}ac_space=\ *)
11663 # `set' does not quote correctly, so add quotes (double-quote
11664 # substitution turns \\\\ into \\, and sed turns \\ into \).
11667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11670 # `set' quotes correctly as required by POSIX, so do not add quotes.
11671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11685 if test -w "$cache_file"; then
11686 test "x$cache_file" != "x/dev/null" &&
11687 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11688 $as_echo "$as_me: updating cache $cache_file" >&6;}
11689 cat confcache >$cache_file
11691 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11692 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11698 # Let make expand exec_prefix.
11699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11701 DEFS=-DHAVE_CONFIG_H
11705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11706 # 1. Remove the extension, and $U if already installed.
11707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11710 # will be set to the directory where LIBOBJS objects are built.
11711 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11712 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11714 LIBOBJS=$ac_libobjs
11716 LTLIBOBJS=$ac_ltlibobjs
11719 if test -n "$EXEEXT"; then
11721 am__EXEEXT_FALSE='#'
11723 am__EXEEXT_TRUE='#'
11727 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11728 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11729 Usually this means the macro was only invoked conditionally." >&5
11730 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11731 Usually this means the macro was only invoked conditionally." >&2;}
11732 { (exit 1); exit 1; }; }
11734 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11735 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11736 Usually this means the macro was only invoked conditionally." >&5
11737 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11738 Usually this means the macro was only invoked conditionally." >&2;}
11739 { (exit 1); exit 1; }; }
11741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11742 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11743 Usually this means the macro was only invoked conditionally." >&5
11744 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11745 Usually this means the macro was only invoked conditionally." >&2;}
11746 { (exit 1); exit 1; }; }
11749 : ${CONFIG_STATUS=./config.status}
11751 ac_clean_files_save=$ac_clean_files
11752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11753 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11755 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11757 # Generated by $as_me.
11758 # Run this file to recreate the current configuration.
11759 # Compiler output produced by configure, useful for debugging
11760 # configure, is in config.log if it exists.
11763 ac_cs_recheck=false
11765 SHELL=\${CONFIG_SHELL-$SHELL}
11768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11769 ## --------------------- ##
11770 ## M4sh Initialization. ##
11771 ## --------------------- ##
11773 # Be more Bourne compatible
11774 DUALCASE=1; export DUALCASE # for MKS sh
11775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11779 # is contrary to our usage. Disable this feature.
11780 alias -g '${1+"$@"}'='"$@"'
11781 setopt NO_GLOB_SUBST
11783 case `(set -o) 2>/dev/null` in
11784 *posix*) set -o posix ;;
11793 # Avoid depending upon Character Ranges.
11794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11797 as_cr_digits='0123456789'
11798 as_cr_alnum=$as_cr_Letters$as_cr_digits
11803 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11804 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11807 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11808 as_echo='printf %s\n'
11809 as_echo_n='printf %s'
11811 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11812 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11813 as_echo_n='/usr/ucb/echo -n'
11815 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11816 as_echo_n_body='eval
11820 expr "X$arg" : "X\\(.*\\)$as_nl";
11821 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11823 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11825 export as_echo_n_body
11826 as_echo_n='sh -c $as_echo_n_body as_echo'
11828 export as_echo_body
11829 as_echo='sh -c $as_echo_body as_echo'
11832 # The user is always right.
11833 if test "${PATH_SEPARATOR+set}" != set; then
11835 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11836 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11841 # Support unset when possible.
11842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11850 # We need space, tab and new line, in precisely that order. Quoting is
11851 # there to prevent editors from complaining about space-tab.
11852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11853 # splitting by setting IFS to empty value.)
11856 # Find who we are. Look in the path if we contain no directory separator.
11858 *[\\/]* ) as_myself=$0 ;;
11859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11863 test -z "$as_dir" && as_dir=.
11864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11870 # We did not find ourselves, most probably we were run as `sh COMMAND'
11871 # in which case we are not to be found in the path.
11872 if test "x$as_myself" = x; then
11875 if test ! -f "$as_myself"; then
11876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11877 { (exit 1); exit 1; }
11880 # Work around bugs in pre-3.0 UWIN ksh.
11881 for as_var in ENV MAIL MAILPATH
11882 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11894 # Required to use basename.
11895 if expr a : '\(a\)' >/dev/null 2>&1 &&
11896 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11903 as_basename=basename
11909 # Name of the executable.
11910 as_me=`$as_basename -- "$0" ||
11911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11912 X"$0" : 'X\(//\)$' \| \
11913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11915 sed '/^.*\/\([^/][^/]*\)\/*$/{
11934 as_lineno_1=$LINENO
11935 as_lineno_2=$LINENO
11936 test "x$as_lineno_1" != "x$as_lineno_2" &&
11937 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11939 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11940 # uniformly replaced by the line number. The first 'sed' inserts a
11941 # line-number line after each line using $LINENO; the second 'sed'
11942 # does the real work. The second script uses 'N' to pair each
11943 # line-number line with the line containing $LINENO, and appends
11944 # trailing '-' during substitution so that $LINENO is not a special
11945 # case at line end.
11946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11947 # scripts with optimization help from Paolo Bonzini. Blame Lee
11948 # E. McMahon (1931-1989) for sed's syntax. :-)
11960 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11963 ' >$as_me.lineno &&
11964 chmod +x "$as_me.lineno" ||
11965 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11966 { (exit 1); exit 1; }; }
11968 # Don't try to exec as it changes $[0], causing all sort of problems
11969 # (the dirname of $[0] is not the place where we might find the
11970 # original and so on. Autoconf is especially sensitive to this).
11971 . "./$as_me.lineno"
11972 # Exit status is that of the last command.
11977 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11983 ECHO_C= ECHO_N= ECHO_T=
11984 case `echo -n x` in
11986 case `echo 'x\c'` in
11987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11993 if expr a : '\(a\)' >/dev/null 2>&1 &&
11994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12000 rm -f conf$$ conf$$.exe conf$$.file
12001 if test -d conf$$.dir; then
12002 rm -f conf$$.dir/conf$$.file
12005 mkdir conf$$.dir 2>/dev/null
12007 if (echo >conf$$.file) 2>/dev/null; then
12008 if ln -s conf$$.file conf$$ 2>/dev/null; then
12010 # ... but there are two gotchas:
12011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12013 # In both cases, we have to default to `cp -p'.
12014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12016 elif ln conf$$.file conf$$ 2>/dev/null; then
12024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12025 rmdir conf$$.dir 2>/dev/null
12027 if mkdir -p . 2>/dev/null; then
12030 test -d ./-p && rmdir ./-p
12034 if test -x / >/dev/null 2>&1; then
12035 as_test_x='test -x'
12037 if ls -dL / >/dev/null 2>&1; then
12044 if test -d "$1"; then
12050 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12051 ???[sx]*):;;*)false;;esac;fi
12055 as_executable_p=$as_test_x
12057 # Sed expression to map a string onto a valid CPP name.
12058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12060 # Sed expression to map a string onto a valid variable name.
12061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12066 # Save the log message, to keep $[0] and so on meaningful, and to
12067 # report actual input values of CONFIG_FILES etc. instead of their
12068 # values after options handling.
12070 This file was extended by desktop-file-utils $as_me 0.16, which was
12071 generated by GNU Autoconf 2.63. Invocation command line was
12073 CONFIG_FILES = $CONFIG_FILES
12074 CONFIG_HEADERS = $CONFIG_HEADERS
12075 CONFIG_LINKS = $CONFIG_LINKS
12076 CONFIG_COMMANDS = $CONFIG_COMMANDS
12079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12084 case $ac_config_files in *"
12085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12088 case $ac_config_headers in *"
12089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 # Files that config.status was made for.
12095 config_files="$ac_config_files"
12096 config_headers="$ac_config_headers"
12097 config_commands="$ac_config_commands"
12101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 \`$as_me' instantiates files from templates according to the
12104 current configuration.
12106 Usage: $0 [OPTION]... [FILE]...
12108 -h, --help print this help, then exit
12109 -V, --version print version number and configuration settings, then exit
12110 -q, --quiet, --silent
12111 do not print progress messages
12112 -d, --debug don't remove temporary files
12113 --recheck update $as_me by reconfiguring in the same conditions
12114 --file=FILE[:TEMPLATE]
12115 instantiate the configuration file FILE
12116 --header=FILE[:TEMPLATE]
12117 instantiate the configuration header FILE
12119 Configuration files:
12122 Configuration headers:
12125 Configuration commands:
12128 Report bugs to <bug-autoconf@gnu.org>."
12131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12133 desktop-file-utils config.status 0.16
12134 configured by $0, generated by GNU Autoconf 2.63,
12135 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12137 Copyright (C) 2008 Free Software Foundation, Inc.
12138 This config.status script is free software; the Free Software Foundation
12139 gives unlimited permission to copy, distribute and modify it."
12146 test -n "\$AWK" || AWK=awk
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150 # The default lists apply if the user does not specify any file.
12156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12168 # Handling of the options.
12169 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12172 $as_echo "$ac_cs_version"; exit ;;
12173 --debug | --debu | --deb | --de | --d | -d )
12175 --file | --fil | --fi | --f )
12178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12180 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12181 ac_need_defaults=false;;
12182 --header | --heade | --head | --hea )
12185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12187 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12188 ac_need_defaults=false;;
12190 # Conflict between --help and --header
12191 { $as_echo "$as_me: error: ambiguous option: $1
12192 Try \`$0 --help' for more information." >&2
12193 { (exit 1); exit 1; }; };;
12194 --help | --hel | -h )
12195 $as_echo "$ac_cs_usage"; exit ;;
12196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12197 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12200 # This is an error.
12201 -*) { $as_echo "$as_me: error: unrecognized option: $1
12202 Try \`$0 --help' for more information." >&2
12203 { (exit 1); exit 1; }; } ;;
12205 *) ac_config_targets="$ac_config_targets $1"
12206 ac_need_defaults=false ;;
12212 ac_configure_extra_args=
12214 if $ac_cs_silent; then
12216 ac_configure_extra_args="$ac_configure_extra_args --silent"
12220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12221 if \$ac_cs_recheck; then
12222 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12225 CONFIG_SHELL='$SHELL'
12226 export CONFIG_SHELL
12231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12236 ## Running $as_me. ##
12242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12246 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12249 # The HP-UX ksh and POSIX shell print the target directory to stdout
12250 # if CDPATH is set.
12251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12253 sed_quote_subst='$sed_quote_subst'
12254 double_quote_subst='$double_quote_subst'
12255 delay_variable_subst='$delay_variable_subst'
12256 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12257 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12258 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12259 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12260 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12261 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12262 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12263 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12264 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12265 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12266 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12267 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12268 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12269 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12270 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12271 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12272 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12273 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12274 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12275 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12276 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12277 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12278 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12279 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12280 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12281 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12282 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12283 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12285 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12286 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12287 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12288 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12289 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12290 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12291 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12294 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12295 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12296 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12297 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12298 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12299 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12300 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12301 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12302 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12303 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12304 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12305 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12306 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12307 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12308 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12309 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12310 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12311 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12312 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12313 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12314 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12315 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12316 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12317 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12318 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12319 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12320 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12321 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12322 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12323 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12324 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12325 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12328 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12329 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12330 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12331 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12332 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12333 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12334 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12335 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12336 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12337 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12338 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12339 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12340 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12341 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12342 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12343 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12344 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12345 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12346 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12347 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12348 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12349 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12350 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12351 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12352 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12353 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12354 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12355 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12356 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12357 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12358 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12359 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12360 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12361 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12362 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12363 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12364 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12365 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12366 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12367 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12368 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12369 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12370 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12371 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12372 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12373 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12376 LTCFLAGS='$LTCFLAGS'
12377 compiler='$compiler_DEFAULT'
12379 # Quote evaled strings.
12391 deplibs_check_method \
12400 lt_cv_sys_global_symbol_pipe \
12401 lt_cv_sys_global_symbol_to_cdecl \
12402 lt_cv_sys_global_symbol_to_c_name_address \
12403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12406 lt_prog_compiler_no_builtin_flag \
12407 lt_prog_compiler_wl \
12408 lt_prog_compiler_pic \
12409 lt_prog_compiler_static \
12410 lt_cv_prog_compiler_c_o \
12418 export_dynamic_flag_spec \
12419 whole_archive_flag_spec \
12420 compiler_needs_object \
12422 allow_undefined_flag \
12423 no_undefined_flag \
12424 hardcode_libdir_flag_spec \
12425 hardcode_libdir_flag_spec_ld \
12426 hardcode_libdir_separator \
12431 variables_saved_for_relink \
12433 library_names_spec \
12438 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12439 *[\\\\\\\`\\"\\\$]*)
12440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12448 # Double-quote double-evaled strings.
12449 for var in reload_cmds \
12450 old_postinstall_cmds \
12451 old_postuninstall_cmds \
12453 extract_expsyms_cmds \
12454 old_archive_from_new_cmds \
12455 old_archive_from_expsyms_cmds \
12457 archive_expsym_cmds \
12459 module_expsym_cmds \
12460 export_symbols_cmds \
12463 postuninstall_cmds \
12465 sys_lib_search_path_spec \
12466 sys_lib_dlsearch_path_spec; do
12467 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12468 *[\\\\\\\`\\"\\\$]*)
12469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12477 # Fix-up fallback echo if it was mangled by the above quoting rules.
12479 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12483 ac_aux_dir='$ac_aux_dir'
12484 xsi_shell='$xsi_shell'
12485 lt_shell_append='$lt_shell_append'
12487 # See if we are running on zsh, and set the options which allow our
12488 # commands through without removal of \ escapes INIT.
12489 if test -n "\${ZSH_VERSION+set}" ; then
12490 setopt NO_GLOB_SUBST
12496 TIMESTAMP='$TIMESTAMP'
12505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12507 # Handling of arguments.
12508 for ac_config_target in $ac_config_targets
12510 case $ac_config_target in
12511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12512 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12513 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12514 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12515 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12516 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
12518 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12519 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12520 { (exit 1); exit 1; }; };;
12525 # If the user did not use the arguments to specify the items to instantiate,
12526 # then the envvar interface is used. Set only those that are not.
12527 # We use the long form for the default assignment because of an extremely
12528 # bizarre bug on SunOS 4.1.3.
12529 if $ac_need_defaults; then
12530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12535 # Have a temporary directory for convenience. Make it in the build tree
12536 # simply because there is no reason against having it here, and in addition,
12537 # creating and moving files from /tmp can sometimes cause problems.
12538 # Hook for its removal unless debugging.
12539 # Note that there is a small window in which the directory will not be cleaned:
12540 # after its creation but before its name has been assigned to `$tmp'.
12544 trap 'exit_status=$?
12545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12547 trap '{ (exit 1); exit 1; }' 1 2 13 15
12549 # Create a (secure) tmp directory for tmp files.
12552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12553 test -n "$tmp" && test -d "$tmp"
12556 tmp=./conf$$-$RANDOM
12557 (umask 077 && mkdir "$tmp")
12560 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12561 { (exit 1); exit 1; }
12564 # Set up the scripts for CONFIG_FILES section.
12565 # No need to generate them if there are no CONFIG_FILES.
12566 # This happens for instance with `./config.status config.h'.
12567 if test -n "$CONFIG_FILES"; then
12571 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12572 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12575 ac_cs_awk_cr=$ac_cr
12578 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12583 echo "cat >conf$$subs.awk <<_ACEOF" &&
12584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12586 } >conf$$subs.sh ||
12587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12588 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12589 { (exit 1); exit 1; }; }
12590 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12592 for ac_last_try in false false false false false :; do
12593 . ./conf$$subs.sh ||
12594 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12595 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12596 { (exit 1); exit 1; }; }
12598 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12599 if test $ac_delim_n = $ac_delim_num; then
12601 elif $ac_last_try; then
12602 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12603 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12604 { (exit 1); exit 1; }; }
12606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12609 rm -f conf$$subs.sh
12611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12612 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12616 s/^/S["/; s/!.*/"]=/
12626 s/\(.\{148\}\).*/\1/
12628 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12640 s/\(.\{148\}\).*/\1/
12642 s/["\\]/\\&/g; s/^/"/; s/$/"/
12646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12651 ' <conf$$subs.awk | sed '
12656 ' >>$CONFIG_STATUS || ac_write_fail=1
12657 rm -f conf$$subs.awk
12658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12660 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12661 for (key in S) S_is_set[key] = 1
12667 nfields = split(line, field, "@")
12669 len = length(field[1])
12670 for (i = 2; i < nfields; i++) {
12672 keylen = length(key)
12673 if (S_is_set[key]) {
12675 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12676 len += length(value) + length(field[++i])
12687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12692 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12693 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12694 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12695 { (exit 1); exit 1; }; }
12698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12700 # trailing colons and then remove the whole line if VPATH becomes empty
12701 # (actually we leave an empty line to preserve line numbers).
12702 if test "x$srcdir" = x.; then
12703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12704 s/:*\$(srcdir):*/:/
12705 s/:*\${srcdir}:*/:/
12707 s/^\([^=]*=[ ]*\):*/\1/
12713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714 fi # test -n "$CONFIG_FILES"
12716 # Set up the scripts for CONFIG_HEADERS section.
12717 # No need to generate them if there are no CONFIG_HEADERS.
12718 # This happens for instance with `./config.status Makefile'.
12719 if test -n "$CONFIG_HEADERS"; then
12720 cat >"$tmp/defines.awk" <<\_ACAWK ||
12724 # Transform confdefs.h into an awk script `defines.awk', embedded as
12725 # here-document in config.status, that substitutes the proper values into
12726 # config.h.in to produce config.h.
12728 # Create a delimiter string that does not exist in confdefs.h, to ease
12729 # handling of long lines.
12731 for ac_last_try in false false :; do
12732 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12733 if test -z "$ac_t"; then
12735 elif $ac_last_try; then
12736 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12737 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12738 { (exit 1); exit 1; }; }
12740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12744 # For the awk script, D is an array of macro values keyed by name,
12745 # likewise P contains macro parameters if any. Preserve backslash
12746 # newline sequences.
12748 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12750 s/.\{148\}/&'"$ac_delim"'/g
12753 s/^[ ]*#[ ]*define[ ][ ]*/ /
12760 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12762 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12767 D["\1"]=" \3\\\\\\n"\\/p
12769 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12774 s/.\{148\}/&'"$ac_delim"'/g
12779 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12782 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12784 ' <confdefs.h | sed '
12785 s/'"$ac_delim"'/"\\\
12786 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12789 for (key in D) D_is_set[key] = 1
12792 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12794 split(line, arg, " ")
12795 if (arg[1] == "#") {
12799 defundef = substr(arg[1], 2)
12802 split(mac1, mac2, "(") #)
12804 prefix = substr(line, 1, index(line, defundef) - 1)
12805 if (D_is_set[macro]) {
12806 # Preserve the white space surrounding the "#".
12807 print prefix "define", macro P[macro] D[macro]
12810 # Replace #undef with comments. This is necessary, for example,
12811 # in the case of _POSIX_SOURCE, which is predefined and required
12812 # on some systems where configure will not decide to define it.
12813 if (defundef == "undef") {
12814 print "/*", prefix defundef, macro, "*/"
12822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12823 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12824 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12825 { (exit 1); exit 1; }; }
12826 fi # test -n "$CONFIG_HEADERS"
12829 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12834 :[FHLC]) ac_mode=$ac_tag; continue;;
12836 case $ac_mode$ac_tag in
12838 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12839 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12840 { (exit 1); exit 1; }; };;
12841 :[FH]-) ac_tag=-:-;;
12842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12859 -) ac_f="$tmp/stdin";;
12860 *) # Look for the file first in the build tree, then in the source tree
12861 # (if the path is not absolute). The absolute path cannot be DOS-style,
12862 # because $ac_f cannot contain `:'.
12866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12868 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12869 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12870 { (exit 1); exit 1; }; };;
12872 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12873 ac_file_inputs="$ac_file_inputs '$ac_f'"
12876 # Let's still pretend it is `configure' which instantiates (i.e., don't
12877 # use $as_me), people would be surprised to read:
12878 # /* config.h. Generated by config.status. */
12879 configure_input='Generated from '`
12880 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12882 if test x"$ac_file" != x-; then
12883 configure_input="$ac_file. $configure_input"
12884 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12885 $as_echo "$as_me: creating $ac_file" >&6;}
12887 # Neutralize special characters interpreted by sed in replacement strings.
12888 case $configure_input in #(
12889 *\&* | *\|* | *\\* )
12890 ac_sed_conf_input=`$as_echo "$configure_input" |
12891 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12892 *) ac_sed_conf_input=$configure_input;;
12896 *:-:* | *:-) cat >"$tmp/stdin" \
12897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12899 { (exit 1); exit 1; }; } ;;
12904 ac_dir=`$as_dirname -- "$ac_file" ||
12905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$ac_file" : 'X\(//\)[^/]' \| \
12907 X"$ac_file" : 'X\(//\)$' \| \
12908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12909 $as_echo X"$ac_file" |
12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12914 /^X\(\/\/\)[^/].*/{
12929 -*) as_dir=./$as_dir;;
12931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12935 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12936 *) as_qdir=$as_dir;;
12938 as_dirs="'$as_qdir' $as_dirs"
12939 as_dir=`$as_dirname -- "$as_dir" ||
12940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941 X"$as_dir" : 'X\(//\)[^/]' \| \
12942 X"$as_dir" : 'X\(//\)$' \| \
12943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12944 $as_echo X"$as_dir" |
12945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12949 /^X\(\/\/\)[^/].*/{
12962 test -d "$as_dir" && break
12964 test -z "$as_dirs" || eval "mkdir $as_dirs"
12965 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12966 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12967 { (exit 1); exit 1; }; }; }
12971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12973 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12974 # A ".." for each directory in $ac_dir_suffix.
12975 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12976 case $ac_top_builddir_sub in
12977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12981 ac_abs_top_builddir=$ac_pwd
12982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12983 # for backward compatibility:
12984 ac_top_builddir=$ac_top_build_prefix
12987 .) # We are building in place.
12989 ac_top_srcdir=$ac_top_builddir_sub
12990 ac_abs_top_srcdir=$ac_pwd ;;
12991 [\\/]* | ?:[\\/]* ) # Absolute name.
12992 ac_srcdir=$srcdir$ac_dir_suffix;
12993 ac_top_srcdir=$srcdir
12994 ac_abs_top_srcdir=$srcdir ;;
12995 *) # Relative name.
12996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12997 ac_top_srcdir=$ac_top_build_prefix$srcdir
12998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13013 ac_MKDIR_P=$MKDIR_P
13015 [\\/$]* | ?:[\\/]* ) ;;
13016 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13021 # If the template does not know about datarootdir, expand it.
13022 # FIXME: This hack should be removed a few years after 2.60.
13023 ac_datarootdir_hack=; ac_datarootdir_seen=
13036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13037 *datarootdir*) ac_datarootdir_seen=yes;;
13038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13039 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13040 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13043 ac_datarootdir_hack='
13044 s&@datadir@&$datadir&g
13045 s&@docdir@&$docdir&g
13046 s&@infodir@&$infodir&g
13047 s&@localedir@&$localedir&g
13048 s&@mandir@&$mandir&g
13049 s&\\\${datarootdir}&$datarootdir&g' ;;
13053 # Neutralize VPATH when `$srcdir' = `.'.
13054 # Shell code in configure.ac might set extrasub.
13055 # FIXME: do we really want to maintain this feature?
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13057 ac_sed_extra="$ac_vpsub
13060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13063 s|@configure_input@|$ac_sed_conf_input|;t t
13064 s&@top_builddir@&$ac_top_builddir_sub&;t t
13065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13066 s&@srcdir@&$ac_srcdir&;t t
13067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13068 s&@top_srcdir@&$ac_top_srcdir&;t t
13069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13070 s&@builddir@&$ac_builddir&;t t
13071 s&@abs_builddir@&$ac_abs_builddir&;t t
13072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13073 s&@INSTALL@&$ac_INSTALL&;t t
13074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13075 $ac_datarootdir_hack
13077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13078 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13079 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13080 { (exit 1); exit 1; }; }
13082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13083 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13085 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13086 which seems to be undefined. Please make sure it is defined." >&5
13087 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13088 which seems to be undefined. Please make sure it is defined." >&2;}
13092 -) cat "$tmp/out" && rm -f "$tmp/out";;
13093 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13095 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13096 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13097 { (exit 1); exit 1; }; }
13103 if test x"$ac_file" != x-; then
13105 $as_echo "/* $configure_input */" \
13106 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13107 } >"$tmp/config.h" \
13108 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13109 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13110 { (exit 1); exit 1; }; }
13111 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13112 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13113 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13116 mv "$tmp/config.h" "$ac_file" \
13117 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13118 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13119 { (exit 1); exit 1; }; }
13122 $as_echo "/* $configure_input */" \
13123 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13124 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13125 $as_echo "$as_me: error: could not create -" >&2;}
13126 { (exit 1); exit 1; }; }
13128 # Compute "$ac_file"'s index in $config_headers.
13131 for _am_header in $config_headers :; do
13132 case $_am_header in
13133 $_am_arg | $_am_arg:* )
13136 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13139 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13140 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13141 X"$_am_arg" : 'X\(//\)[^/]' \| \
13142 X"$_am_arg" : 'X\(//\)$' \| \
13143 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13144 $as_echo X"$_am_arg" |
13145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149 /^X\(\/\/\)[^/].*/{
13161 s/.*/./; q'`/stamp-h$_am_stamp_count
13164 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13165 $as_echo "$as_me: executing $ac_file commands" >&6;}
13170 case $ac_file$ac_mode in
13171 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13172 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13173 # are listed without --file. Let's play safe and only enable the eval
13174 # if we detect the quoting.
13175 case $CONFIG_FILES in
13176 *\'*) eval set x "$CONFIG_FILES" ;;
13177 *) set x $CONFIG_FILES ;;
13182 # Strip MF so we end up with the name of the file.
13183 mf=`echo "$mf" | sed -e 's/:.*$//'`
13184 # Check whether this is an Automake generated Makefile or not.
13185 # We used to match only the files named `Makefile.in', but
13186 # some people rename them; so instead we look at the file content.
13187 # Grep'ing the first line is not enough: some people post-process
13188 # each Makefile.in and add a new line on top of each file to say so.
13189 # Grep'ing the whole file is not good either: AIX grep has a line
13190 # limit of 2048, but all sed's we know have understand at least 4000.
13191 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13192 dirpart=`$as_dirname -- "$mf" ||
13193 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13194 X"$mf" : 'X\(//\)[^/]' \| \
13195 X"$mf" : 'X\(//\)$' \| \
13196 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13202 /^X\(\/\/\)[^/].*/{
13218 # Extract the definition of DEPDIR, am__include, and am__quote
13219 # from the Makefile without running `make'.
13220 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13221 test -z "$DEPDIR" && continue
13222 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13223 test -z "am__include" && continue
13224 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13225 # When using ansi2knr, U may be empty or an underscore; expand it
13226 U=`sed -n 's/^U = //p' < "$mf"`
13227 # Find all dependency output files, they are included files with
13228 # $(DEPDIR) in their names. We invoke sed twice because it is the
13229 # simplest approach to changing $(DEPDIR) to its actual value in the
13231 for file in `sed -n "
13232 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13233 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13234 # Make sure the directory exists.
13235 test -f "$dirpart/$file" && continue
13236 fdir=`$as_dirname -- "$file" ||
13237 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13238 X"$file" : 'X\(//\)[^/]' \| \
13239 X"$file" : 'X\(//\)$' \| \
13240 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13241 $as_echo X"$file" |
13242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13246 /^X\(\/\/\)[^/].*/{
13259 { as_dir=$dirpart/$fdir
13261 -*) as_dir=./$as_dir;;
13263 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13268 *) as_qdir=$as_dir;;
13270 as_dirs="'$as_qdir' $as_dirs"
13271 as_dir=`$as_dirname -- "$as_dir" ||
13272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13273 X"$as_dir" : 'X\(//\)[^/]' \| \
13274 X"$as_dir" : 'X\(//\)$' \| \
13275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13276 $as_echo X"$as_dir" |
13277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13281 /^X\(\/\/\)[^/].*/{
13294 test -d "$as_dir" && break
13296 test -z "$as_dirs" || eval "mkdir $as_dirs"
13297 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13298 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13299 { (exit 1); exit 1; }; }; }
13300 # echo "creating $dirpart/$file"
13301 echo '# dummy' > "$dirpart/$file"
13308 # See if we are running on zsh, and set the options which allow our
13309 # commands through without removal of \ escapes.
13310 if test -n "${ZSH_VERSION+set}" ; then
13311 setopt NO_GLOB_SUBST
13314 cfgfile="${ofile}T"
13315 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13318 cat <<_LT_EOF >> "$cfgfile"
13321 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13322 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13326 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13327 # 2006, 2007, 2008 Free Software Foundation, Inc.
13328 # Written by Gordon Matzigkeit, 1996
13330 # This file is part of GNU Libtool.
13332 # GNU Libtool is free software; you can redistribute it and/or
13333 # modify it under the terms of the GNU General Public License as
13334 # published by the Free Software Foundation; either version 2 of
13335 # the License, or (at your option) any later version.
13337 # As a special exception to the GNU General Public License,
13338 # if you distribute this file as part of a program or library that
13339 # is built using GNU Libtool, you may include this file under the
13340 # same distribution terms that you use for the rest of that program.
13342 # GNU Libtool is distributed in the hope that it will be useful,
13343 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13345 # GNU General Public License for more details.
13347 # You should have received a copy of the GNU General Public License
13348 # along with GNU Libtool; see the file COPYING. If not, a copy
13349 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13350 # obtained by writing to the Free Software Foundation, Inc.,
13351 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13354 # The names of the tagged configurations supported by this script.
13357 # ### BEGIN LIBTOOL CONFIG
13359 # Which release of libtool.m4 was used?
13360 macro_version=$macro_version
13361 macro_revision=$macro_revision
13363 # Whether or not to build shared libraries.
13364 build_libtool_libs=$enable_shared
13366 # Whether or not to build static libraries.
13367 build_old_libs=$enable_static
13369 # What type of objects to build.
13372 # Whether or not to optimize for fast installation.
13373 fast_install=$enable_fast_install
13376 host_alias=$host_alias
13380 # The build system.
13381 build_alias=$build_alias
13385 # A sed program that does not truncate output.
13388 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13389 Xsed="\$SED -e 1s/^X//"
13391 # A grep program that handles long lines.
13397 # A literal string matcher.
13400 # A BSD- or MS-compatible name lister.
13403 # Whether we need soft or hard links.
13406 # What is the maximum length of a command?
13407 max_cmd_len=$max_cmd_len
13409 # Object file suffix (normally "o").
13412 # Executable file suffix (normally "").
13415 # whether the shell understands "unset".
13418 # turn spaces into newlines.
13421 # turn newlines into spaces.
13424 # How to create reloadable object files.
13425 reload_flag=$lt_reload_flag
13426 reload_cmds=$lt_reload_cmds
13428 # An object symbol dumper.
13429 OBJDUMP=$lt_OBJDUMP
13431 # Method to check whether dependent libraries are shared objects.
13432 deplibs_check_method=$lt_deplibs_check_method
13434 # Command to use when deplibs_check_method == "file_magic".
13435 file_magic_cmd=$lt_file_magic_cmd
13439 AR_FLAGS=$lt_AR_FLAGS
13441 # A symbol stripping program.
13444 # Commands used to install an old-style archive.
13446 old_postinstall_cmds=$lt_old_postinstall_cmds
13447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13452 # LTCC compiler flags.
13453 LTCFLAGS=$lt_CFLAGS
13455 # Take the output of nm and produce a listing of raw symbols and C names.
13456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13458 # Transform the output of nm in a proper C declaration.
13459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13461 # Transform the output of nm in a C name address pair.
13462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13464 # Transform the output of nm in a C name address pair when lib prefix is needed.
13465 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13467 # The name of the directory that contains temporary libtool files.
13470 # Shell to use when invoking shell scripts.
13473 # An echo program that does not interpret backslashes.
13476 # Used to examine libraries when file_magic_cmd begins with "file".
13477 MAGIC_CMD=$MAGIC_CMD
13479 # Must we lock files when doing compilation?
13480 need_locks=$lt_need_locks
13482 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13483 DSYMUTIL=$lt_DSYMUTIL
13485 # Tool to change global to local symbols on Mac OS X.
13488 # Tool to manipulate fat objects and archives on Mac OS X.
13491 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13494 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13495 OTOOL64=$lt_OTOOL64
13497 # Old archive suffix (normally "a").
13500 # Shared library suffix (normally ".so").
13501 shrext_cmds=$lt_shrext_cmds
13503 # The commands to extract the exported symbol list from a shared archive.
13504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13506 # Variables whose values should be saved in libtool wrapper scripts and
13507 # restored at link time.
13508 variables_saved_for_relink=$lt_variables_saved_for_relink
13510 # Do we need the "lib" prefix for modules?
13511 need_lib_prefix=$need_lib_prefix
13513 # Do we need a version for libraries?
13514 need_version=$need_version
13516 # Library versioning type.
13517 version_type=$version_type
13519 # Shared library runtime path variable.
13520 runpath_var=$runpath_var
13522 # Shared library path variable.
13523 shlibpath_var=$shlibpath_var
13525 # Is shlibpath searched before the hard-coded library search path?
13526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13528 # Format of library name prefix.
13529 libname_spec=$lt_libname_spec
13531 # List of archive names. First name is the real one, the rest are links.
13532 # The last name is the one that the linker finds with -lNAME
13533 library_names_spec=$lt_library_names_spec
13535 # The coded name of the library, if different from the real name.
13536 soname_spec=$lt_soname_spec
13538 # Command to use after installation of a shared archive.
13539 postinstall_cmds=$lt_postinstall_cmds
13541 # Command to use after uninstallation of a shared archive.
13542 postuninstall_cmds=$lt_postuninstall_cmds
13544 # Commands used to finish a libtool library installation in a directory.
13545 finish_cmds=$lt_finish_cmds
13547 # As "finish_cmds", except a single script fragment to be evaled but
13549 finish_eval=$lt_finish_eval
13551 # Whether we should hardcode library paths into libraries.
13552 hardcode_into_libs=$hardcode_into_libs
13554 # Compile-time system search path for libraries.
13555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13557 # Run-time system search path for libraries.
13558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13560 # Whether dlopen is supported.
13561 dlopen_support=$enable_dlopen
13563 # Whether dlopen of programs is supported.
13564 dlopen_self=$enable_dlopen_self
13566 # Whether dlopen of statically linked programs is supported.
13567 dlopen_self_static=$enable_dlopen_self_static
13569 # Commands to strip libraries.
13570 old_striplib=$lt_old_striplib
13571 striplib=$lt_striplib
13574 # The linker used to build libraries.
13577 # Commands used to build an old-style archive.
13578 old_archive_cmds=$lt_old_archive_cmds
13580 # A language specific compiler.
13583 # Is the compiler the GNU compiler?
13586 # Compiler flag to turn off builtin functions.
13587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13589 # How to pass a linker flag through the compiler.
13590 wl=$lt_lt_prog_compiler_wl
13592 # Additional compiler flags for building library objects.
13593 pic_flag=$lt_lt_prog_compiler_pic
13595 # Compiler flag to prevent dynamic linking.
13596 link_static_flag=$lt_lt_prog_compiler_static
13598 # Does compiler simultaneously support -c and -o options?
13599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13601 # Whether or not to add -lc for building shared libraries.
13602 build_libtool_need_lc=$archive_cmds_need_lc
13604 # Whether or not to disallow shared libs when runtime libs are static.
13605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13607 # Compiler flag to allow reflexive dlopens.
13608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13610 # Compiler flag to generate shared objects directly from archives.
13611 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13613 # Whether the compiler copes with passing no objects directly.
13614 compiler_needs_object=$lt_compiler_needs_object
13616 # Create an old-style archive from a shared archive.
13617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13619 # Create a temporary old-style archive to link instead of a shared archive.
13620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13622 # Commands used to build a shared archive.
13623 archive_cmds=$lt_archive_cmds
13624 archive_expsym_cmds=$lt_archive_expsym_cmds
13626 # Commands used to build a loadable module if different from building
13627 # a shared archive.
13628 module_cmds=$lt_module_cmds
13629 module_expsym_cmds=$lt_module_expsym_cmds
13631 # Whether we are building with GNU ld or not.
13632 with_gnu_ld=$lt_with_gnu_ld
13634 # Flag that allows shared libraries with undefined symbols to be built.
13635 allow_undefined_flag=$lt_allow_undefined_flag
13637 # Flag that enforces no undefined symbols.
13638 no_undefined_flag=$lt_no_undefined_flag
13640 # Flag to hardcode \$libdir into a binary during linking.
13641 # This must work even if \$libdir does not exist
13642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13644 # If ld is used when linking, flag to hardcode \$libdir into a binary
13645 # during linking. This must work even if \$libdir does not exist.
13646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13648 # Whether we need a single "-rpath" flag with a separated argument.
13649 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13651 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13652 # DIR into the resulting binary.
13653 hardcode_direct=$hardcode_direct
13655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13656 # DIR into the resulting binary and the resulting library dependency is
13657 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13658 # library is relocated.
13659 hardcode_direct_absolute=$hardcode_direct_absolute
13661 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13662 # into the resulting binary.
13663 hardcode_minus_L=$hardcode_minus_L
13665 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13666 # into the resulting binary.
13667 hardcode_shlibpath_var=$hardcode_shlibpath_var
13669 # Set to "yes" if building a shared library automatically hardcodes DIR
13670 # into the library and all subsequent libraries and executables linked
13672 hardcode_automatic=$hardcode_automatic
13674 # Set to yes if linker adds runtime paths of dependent libraries
13675 # to runtime path list.
13676 inherit_rpath=$inherit_rpath
13678 # Whether libtool must link a program against all its dependency libraries.
13679 link_all_deplibs=$link_all_deplibs
13681 # Fix the shell variable \$srcfile for the compiler.
13682 fix_srcfile_path=$lt_fix_srcfile_path
13684 # Set to "yes" if exported symbols are required.
13685 always_export_symbols=$always_export_symbols
13687 # The commands to list exported symbols.
13688 export_symbols_cmds=$lt_export_symbols_cmds
13690 # Symbols that should not be listed in the preloaded symbols.
13691 exclude_expsyms=$lt_exclude_expsyms
13693 # Symbols that must always be exported.
13694 include_expsyms=$lt_include_expsyms
13696 # Commands necessary for linking programs (against libraries) with templates.
13697 prelink_cmds=$lt_prelink_cmds
13699 # Specify filename containing input files.
13700 file_list_spec=$lt_file_list_spec
13702 # How to hardcode a shared library path into an executable.
13703 hardcode_action=$hardcode_action
13705 # ### END LIBTOOL CONFIG
13711 cat <<\_LT_EOF >> "$cfgfile"
13712 # AIX sometimes has problems with the GCC collect2 program. For some
13713 # reason, if we set the COLLECT_NAMES environment variable, the problems
13714 # vanish in a puff of smoke.
13715 if test "X${COLLECT_NAMES+set}" != Xset; then
13717 export COLLECT_NAMES
13724 ltmain="$ac_aux_dir/ltmain.sh"
13727 # We use sed instead of cat because bash on DJGPP gets confused if
13728 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13729 # text mode, it properly converts lines to CR/LF. This bash problem
13730 # is reportedly fixed, but why not run on old versions too?
13731 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13732 || (rm -f "$cfgfile"; exit 1)
13736 cat << \_LT_EOF >> "$cfgfile"
13738 # func_dirname file append nondir_replacement
13739 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13740 # otherwise set result to NONDIR_REPLACEMENT.
13744 */*) func_dirname_result="${1%/*}${2}" ;;
13745 * ) func_dirname_result="${3}" ;;
13749 # func_basename file
13752 func_basename_result="${1##*/}"
13755 # func_dirname_and_basename file append nondir_replacement
13756 # perform func_basename and func_dirname in a single function
13758 # dirname: Compute the dirname of FILE. If nonempty,
13759 # add APPEND to the result, otherwise set result
13760 # to NONDIR_REPLACEMENT.
13761 # value returned in "$func_dirname_result"
13762 # basename: Compute filename of FILE.
13763 # value retuned in "$func_basename_result"
13764 # Implementation must be kept synchronized with func_dirname
13765 # and func_basename. For efficiency, we do not delegate to
13766 # those functions but instead duplicate the functionality here.
13767 func_dirname_and_basename ()
13770 */*) func_dirname_result="${1%/*}${2}" ;;
13771 * ) func_dirname_result="${3}" ;;
13773 func_basename_result="${1##*/}"
13776 # func_stripname prefix suffix name
13777 # strip PREFIX and SUFFIX off of NAME.
13778 # PREFIX and SUFFIX must not contain globbing or regex special
13779 # characters, hashes, percent signs, but SUFFIX may contain a leading
13780 # dot (in which case that matches only a dot).
13783 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13784 # positional parameters, so assign one to ordinary parameter first.
13785 func_stripname_result=${3}
13786 func_stripname_result=${func_stripname_result#"${1}"}
13787 func_stripname_result=${func_stripname_result%"${2}"}
13793 func_opt_split_opt=${1%%=*}
13794 func_opt_split_arg=${1#*=}
13801 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13802 *) func_lo2o_result=${1} ;;
13806 # func_xform libobj-or-source
13809 func_xform_result=${1%.*}.lo
13812 # func_arith arithmetic-term...
13815 func_arith_result=$(( $* ))
13819 # STRING may not start with a hyphen.
13822 func_len_result=${#1}
13827 *) # Bourne compatible functions.
13828 cat << \_LT_EOF >> "$cfgfile"
13830 # func_dirname file append nondir_replacement
13831 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13832 # otherwise set result to NONDIR_REPLACEMENT.
13835 # Extract subdirectory from the argument.
13836 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13837 if test "X$func_dirname_result" = "X${1}"; then
13838 func_dirname_result="${3}"
13840 func_dirname_result="$func_dirname_result${2}"
13844 # func_basename file
13847 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13851 # func_stripname prefix suffix name
13852 # strip PREFIX and SUFFIX off of NAME.
13853 # PREFIX and SUFFIX must not contain globbing or regex special
13854 # characters, hashes, percent signs, but SUFFIX may contain a leading
13855 # dot (in which case that matches only a dot).
13856 # func_strip_suffix prefix name
13860 .*) func_stripname_result=`$ECHO "X${3}" \
13861 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13862 *) func_stripname_result=`$ECHO "X${3}" \
13863 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13868 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13869 my_sed_long_arg='1s/^-[^=]*=//'
13874 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13875 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13881 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13884 # func_xform libobj-or-source
13887 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13890 # func_arith arithmetic-term...
13893 func_arith_result=`expr "$@"`
13897 # STRING may not start with a hyphen.
13900 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13906 case $lt_shell_append in
13908 cat << \_LT_EOF >> "$cfgfile"
13910 # func_append var value
13911 # Append VALUE to the end of shell variable VAR.
13919 cat << \_LT_EOF >> "$cfgfile"
13921 # func_append var value
13922 # Append VALUE to the end of shell variable VAR.
13933 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13934 || (rm -f "$cfgfile"; exit 1)
13936 mv -f "$cfgfile" "$ofile" ||
13937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13946 { (exit 0); exit 0; }
13948 chmod +x $CONFIG_STATUS
13949 ac_clean_files=$ac_clean_files_save
13951 test $ac_write_fail = 0 ||
13952 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13953 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13954 { (exit 1); exit 1; }; }
13957 # configure is writing to config.log, and then calls config.status.
13958 # config.status does its own redirection, appending to config.log.
13959 # Unfortunately, on DOS this fails, as config.log is still kept open
13960 # by configure, so config.status won't be able to write to it; its
13961 # output is simply discarded. So we exec the FD to /dev/null,
13962 # effectively closing config.log, so it can be properly (re)opened and
13963 # appended to by config.status. When coming back to configure, we
13964 # need to make the FD available again.
13965 if test "$no_create" != yes; then
13967 ac_config_status_args=
13968 test "$silent" = yes &&
13969 ac_config_status_args="$ac_config_status_args --quiet"
13971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13974 # would make configure fail if this is the last instruction.
13975 $ac_cs_success || { (exit 1); exit 1; }
13977 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13978 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13979 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}