1970
887
enable_fast_install=yes
1972
891
# Make sure we can run config.sub.
1973
$ac_config_sub sun4 >/dev/null 2>&1 ||
1974
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1975
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1976
{ (exit 1); exit 1; }; }
1978
echo "$as_me:$LINENO: checking build system type" >&5
1979
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1980
if test "${ac_cv_build+set}" = set; then
1981
echo $ECHO_N "(cached) $ECHO_C" >&6
1983
ac_cv_build_alias=$build_alias
1984
test -z "$ac_cv_build_alias" &&
1985
ac_cv_build_alias=`$ac_config_guess`
1986
test -z "$ac_cv_build_alias" &&
1987
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1988
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1989
{ (exit 1); exit 1; }; }
1990
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1991
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1992
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1993
{ (exit 1); exit 1; }; }
1996
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1997
echo "${ECHO_T}$ac_cv_build" >&6
1999
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2000
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2001
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2004
echo "$as_me:$LINENO: checking host system type" >&5
2005
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2006
if test "${ac_cv_host+set}" = set; then
2007
echo $ECHO_N "(cached) $ECHO_C" >&6
2009
ac_cv_host_alias=$host_alias
2010
test -z "$ac_cv_host_alias" &&
2011
ac_cv_host_alias=$ac_cv_build_alias
2012
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2013
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2014
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2015
{ (exit 1); exit 1; }; }
2018
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2019
echo "${ECHO_T}$ac_cv_host" >&6
2021
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2022
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2023
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2026
DEPDIR="${am__leading_dot}deps"
2028
ac_config_commands="$ac_config_commands depfiles"
2031
am_make=${MAKE-make}
2032
cat > confinc << 'END'
2036
# If we don't find an include directive, just comment out the code.
2037
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2038
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2042
# First try GNU make style include.
2043
echo "include confinc" > confmf
2044
# We grep out `Entering directory' and `Leaving directory'
2045
# messages which can occur if `w' ends up in MAKEFLAGS.
2046
# In particular we don't look at `^make:' because GNU make might
2047
# be invoked under some other name (usually "gmake"), in which
2048
# case it prints its new name instead of `make'.
2049
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2054
# Now try BSD make style include.
2055
if test "$am__include" = "#"; then
2056
echo '.include "confinc"' > confmf
2057
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2058
am__include=.include
2065
echo "$as_me:$LINENO: result: $_am_result" >&5
2066
echo "${ECHO_T}$_am_result" >&6
2067
rm -f confinc confmf
2069
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2070
if test "${enable_dependency_tracking+set}" = set; then
2071
enableval="$enable_dependency_tracking"
2074
if test "x$enable_dependency_tracking" != xno; then
2075
am_depcomp="$ac_aux_dir/depcomp"
2080
if test "x$enable_dependency_tracking" != xno; then
2091
ac_cpp='$CPP $CPPFLAGS'
2092
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
if test -n "$ac_tool_prefix"; then
2096
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098
echo "$as_me:$LINENO: checking for $ac_word" >&5
2099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100
if test "${ac_cv_prog_CC+set}" = set; then
2101
echo $ECHO_N "(cached) $ECHO_C" >&6
2103
if test -n "$CC"; then
2104
ac_cv_prog_CC="$CC" # Let the user override the test.
2106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110
test -z "$as_dir" && as_dir=.
2111
for ac_exec_ext in '' $ac_executable_extensions; do
2112
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123
if test -n "$CC"; then
2124
echo "$as_me:$LINENO: result: $CC" >&5
2125
echo "${ECHO_T}$CC" >&6
2127
echo "$as_me:$LINENO: result: no" >&5
2128
echo "${ECHO_T}no" >&6
2132
if test -z "$ac_cv_prog_CC"; then
2134
# Extract the first word of "gcc", so it can be a program name with args.
892
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
893
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
896
echo $ac_n "checking host system type""... $ac_c" 1>&6
897
echo "configure:898: checking host system type" >&5
900
case "$host_alias" in
904
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
905
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
907
*) host_alias=$nonopt ;;
911
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
912
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915
echo "$ac_t""$host" 1>&6
917
echo $ac_n "checking build system type""... $ac_c" 1>&6
918
echo "configure:919: checking build system type" >&5
921
case "$build_alias" in
924
NONE) build_alias=$host_alias ;;
925
*) build_alias=$nonopt ;;
929
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
930
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
931
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
932
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933
echo "$ac_t""$build" 1>&6
935
# Extract the first word of "ranlib", so it can be a program name with args.
936
set dummy ranlib; ac_word=$2
937
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
938
echo "configure:939: checking for $ac_word" >&5
939
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
940
echo $ac_n "(cached) $ac_c" 1>&6
942
if test -n "$RANLIB"; then
943
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
945
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947
for ac_dir in $ac_dummy; do
948
test -z "$ac_dir" && ac_dir=.
949
if test -f $ac_dir/$ac_word; then
950
ac_cv_prog_RANLIB="ranlib"
955
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
958
RANLIB="$ac_cv_prog_RANLIB"
959
if test -n "$RANLIB"; then
960
echo "$ac_t""$RANLIB" 1>&6
962
echo "$ac_t""no" 1>&6
965
# Extract the first word of "gcc", so it can be a program name with args.
2135
966
set dummy gcc; ac_word=$2
2136
echo "$as_me:$LINENO: checking for $ac_word" >&5
2137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139
echo $ECHO_N "(cached) $ECHO_C" >&6
2141
if test -n "$ac_ct_CC"; then
2142
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148
test -z "$as_dir" && as_dir=.
2149
for ac_exec_ext in '' $ac_executable_extensions; do
2150
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151
ac_cv_prog_ac_ct_CC="gcc"
2152
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161
if test -n "$ac_ct_CC"; then
2162
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163
echo "${ECHO_T}$ac_ct_CC" >&6
2165
echo "$as_me:$LINENO: result: no" >&5
2166
echo "${ECHO_T}no" >&6
2174
if test -z "$CC"; then
2175
if test -n "$ac_tool_prefix"; then
2176
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177
set dummy ${ac_tool_prefix}cc; ac_word=$2
2178
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
if test "${ac_cv_prog_CC+set}" = set; then
2181
echo $ECHO_N "(cached) $ECHO_C" >&6
967
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968
echo "configure:969: checking for $ac_word" >&5
969
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970
echo $ac_n "(cached) $ac_c" 1>&6
2183
972
if test -n "$CC"; then
2184
973
ac_cv_prog_CC="$CC" # Let the user override the test.
2186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190
test -z "$as_dir" && as_dir=.
2191
for ac_exec_ext in '' $ac_executable_extensions; do
2192
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
ac_cv_prog_CC="${ac_tool_prefix}cc"
2194
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
975
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977
for ac_dir in $ac_dummy; do
978
test -z "$ac_dir" && ac_dir=.
979
if test -f $ac_dir/$ac_word; then
2203
988
if test -n "$CC"; then
2204
echo "$as_me:$LINENO: result: $CC" >&5
2205
echo "${ECHO_T}$CC" >&6
2207
echo "$as_me:$LINENO: result: no" >&5
2208
echo "${ECHO_T}no" >&6
2212
if test -z "$ac_cv_prog_CC"; then
2214
# Extract the first word of "cc", so it can be a program name with args.
2215
set dummy cc; ac_word=$2
2216
echo "$as_me:$LINENO: checking for $ac_word" >&5
2217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219
echo $ECHO_N "(cached) $ECHO_C" >&6
2221
if test -n "$ac_ct_CC"; then
2222
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228
test -z "$as_dir" && as_dir=.
2229
for ac_exec_ext in '' $ac_executable_extensions; do
2230
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231
ac_cv_prog_ac_ct_CC="cc"
2232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241
if test -n "$ac_ct_CC"; then
2242
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243
echo "${ECHO_T}$ac_ct_CC" >&6
2245
echo "$as_me:$LINENO: result: no" >&5
2246
echo "${ECHO_T}no" >&6
989
echo "$ac_t""$CC" 1>&6
991
echo "$ac_t""no" 1>&6
2255
994
if test -z "$CC"; then
2256
995
# Extract the first word of "cc", so it can be a program name with args.
2257
996
set dummy cc; ac_word=$2
2258
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
if test "${ac_cv_prog_CC+set}" = set; then
2261
echo $ECHO_N "(cached) $ECHO_C" >&6
997
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998
echo "configure:999: checking for $ac_word" >&5
999
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000
echo $ac_n "(cached) $ac_c" 1>&6
2263
1002
if test -n "$CC"; then
2264
1003
ac_cv_prog_CC="$CC" # Let the user override the test.
1005
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2266
1006
ac_prog_rejected=no
2267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271
test -z "$as_dir" && as_dir=.
2272
for ac_exec_ext in '' $ac_executable_extensions; do
2273
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275
ac_prog_rejected=yes
2279
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1008
for ac_dir in $ac_dummy; do
1009
test -z "$ac_dir" && ac_dir=.
1010
if test -f $ac_dir/$ac_word; then
1011
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1012
ac_prog_rejected=yes
2285
1020
if test $ac_prog_rejected = yes; then
2286
1021
# We found a bogon in the path, so make sure we never use it.
2287
1022
set dummy $ac_cv_prog_CC
2289
if test $# != 0; then
1024
if test $# -gt 0; then
2290
1025
# We chose a different compiler from the bogus one.
2291
1026
# However, it has the same basename, so the bogon will be chosen
2292
1027
# first if we set CC to just the basename; use the full file name.
2294
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1029
set dummy "$ac_dir/$ac_word" "$@"
2300
1037
if test -n "$CC"; then
2301
echo "$as_me:$LINENO: result: $CC" >&5
2302
echo "${ECHO_T}$CC" >&6
1038
echo "$ac_t""$CC" 1>&6
2304
echo "$as_me:$LINENO: result: no" >&5
2305
echo "${ECHO_T}no" >&6
1040
echo "$ac_t""no" 1>&6
2309
if test -z "$CC"; then
2310
if test -n "$ac_tool_prefix"; then
2313
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315
echo "$as_me:$LINENO: checking for $ac_word" >&5
2316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317
if test "${ac_cv_prog_CC+set}" = set; then
2318
echo $ECHO_N "(cached) $ECHO_C" >&6
1043
if test -z "$CC"; then
1044
case "`uname -s`" in
1046
# Extract the first word of "cl", so it can be a program name with args.
1047
set dummy cl; ac_word=$2
1048
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049
echo "configure:1050: checking for $ac_word" >&5
1050
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051
echo $ac_n "(cached) $ac_c" 1>&6
2320
1053
if test -n "$CC"; then
2321
1054
ac_cv_prog_CC="$CC" # Let the user override the test.
2323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327
test -z "$as_dir" && as_dir=.
2328
for ac_exec_ext in '' $ac_executable_extensions; do
2329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340
if test -n "$CC"; then
2341
echo "$as_me:$LINENO: result: $CC" >&5
2342
echo "${ECHO_T}$CC" >&6
2344
echo "$as_me:$LINENO: result: no" >&5
2345
echo "${ECHO_T}no" >&6
2348
test -n "$CC" && break
1056
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058
for ac_dir in $ac_dummy; do
1059
test -z "$ac_dir" && ac_dir=.
1060
if test -f $ac_dir/$ac_word; then
2351
if test -z "$CC"; then
2355
# Extract the first word of "$ac_prog", so it can be a program name with args.
2356
set dummy $ac_prog; ac_word=$2
2357
echo "$as_me:$LINENO: checking for $ac_word" >&5
2358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360
echo $ECHO_N "(cached) $ECHO_C" >&6
2362
if test -n "$ac_ct_CC"; then
2363
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369
test -z "$as_dir" && as_dir=.
2370
for ac_exec_ext in '' $ac_executable_extensions; do
2371
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372
ac_cv_prog_ac_ct_CC="$ac_prog"
2373
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1069
if test -n "$CC"; then
1070
echo "$ac_t""$CC" 1>&6
1072
echo "$ac_t""no" 1>&6
2381
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382
if test -n "$ac_ct_CC"; then
2383
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384
echo "${ECHO_T}$ac_ct_CC" >&6
2386
echo "$as_me:$LINENO: result: no" >&5
2387
echo "${ECHO_T}no" >&6
2390
test -n "$ac_ct_CC" && break
2399
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2400
See \`config.log' for more details." >&5
2401
echo "$as_me: error: no acceptable C compiler found in \$PATH
2402
See \`config.log' for more details." >&2;}
2403
{ (exit 1); exit 1; }; }
2405
# Provide some information about the compiler.
2406
echo "$as_me:$LINENO:" \
2407
"checking for C compiler version" >&5
2408
ac_compiler=`set X $ac_compile; echo $2`
2409
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2410
(eval $ac_compiler --version </dev/null >&5) 2>&5
2412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
(exit $ac_status); }
2414
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2415
(eval $ac_compiler -v </dev/null >&5) 2>&5
2417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418
(exit $ac_status); }
2419
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2420
(eval $ac_compiler -V </dev/null >&5) 2>&5
2422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423
(exit $ac_status); }
2425
cat >conftest.$ac_ext <<_ACEOF
2426
#line $LINENO "configure"
2429
cat confdefs.h >>conftest.$ac_ext
2430
cat >>conftest.$ac_ext <<_ACEOF
2431
/* end confdefs.h. */
2441
ac_clean_files_save=$ac_clean_files
2442
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2443
# Try to create an executable without -o first, disregard a.out.
2444
# It will help us diagnose broken compilers, and finding out an intuition
2446
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2447
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2448
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2449
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2450
(eval $ac_link_default) 2>&5
2452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
(exit $ac_status); }; then
2454
# Find the output, starting from the most likely. This scheme is
2455
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458
# Be careful to initialize this variable, since it used to be cached.
2459
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2461
# b.out is created by i960 compilers.
2462
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2464
test -f "$ac_file" || continue
2466
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2469
# This is the source file.
2472
# We found the default executable, but exeext='' is most
2476
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2477
# FIXME: I believe we export ac_cv_exeext for Libtool,
2478
# but it would be cool to find out if it's true. Does anybody
2479
# maintain Libtool? --akim.
2487
echo "$as_me: failed program was:" >&5
2488
sed 's/^/| /' conftest.$ac_ext >&5
2490
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2491
See \`config.log' for more details." >&5
2492
echo "$as_me: error: C compiler cannot create executables
2493
See \`config.log' for more details." >&2;}
2494
{ (exit 77); exit 77; }; }
2497
ac_exeext=$ac_cv_exeext
2498
echo "$as_me:$LINENO: result: $ac_file" >&5
2499
echo "${ECHO_T}$ac_file" >&6
2501
# Check the compiler produces executables we can run. If not, either
2502
# the compiler is broken, or we cross compile.
2503
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2504
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2505
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2506
# If not cross compiling, check that we can run a simple program.
2507
if test "$cross_compiling" != yes; then
2508
if { ac_try='./$ac_file'
2509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
(exit $ac_status); }; }; then
1077
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1080
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1081
echo "configure:1082: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1084
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1085
ac_cpp='$CPP $CPPFLAGS'
1086
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1087
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1088
cross_compiling=$ac_cv_prog_cc_cross
1090
cat > conftest.$ac_ext << EOF
1092
#line 1093 "configure"
1093
#include "confdefs.h"
1097
if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1098
ac_cv_prog_cc_works=yes
1099
# If we can't run a trivial program, we are probably using a cross compiler.
1100
if (./conftest; exit) 2>/dev/null; then
1101
ac_cv_prog_cc_cross=no
2516
if test "$cross_compiling" = maybe; then
2519
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2520
If you meant to cross compile, use \`--host'.
2521
See \`config.log' for more details." >&5
2522
echo "$as_me: error: cannot run C compiled programs.
2523
If you meant to cross compile, use \`--host'.
2524
See \`config.log' for more details." >&2;}
2525
{ (exit 1); exit 1; }; }
1103
ac_cv_prog_cc_cross=yes
2529
echo "$as_me:$LINENO: result: yes" >&5
2530
echo "${ECHO_T}yes" >&6
2532
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2533
ac_clean_files=$ac_clean_files_save
2534
# Check the compiler produces executables we can run. If not, either
2535
# the compiler is broken, or we cross compile.
2536
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2537
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2538
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2539
echo "${ECHO_T}$cross_compiling" >&6
2541
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2542
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2543
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544
(eval $ac_link) 2>&5
2546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547
(exit $ac_status); }; then
2548
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2549
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2550
# work properly (i.e., refer to `conftest.exe'), while it won't with
2552
for ac_file in conftest.exe conftest conftest.*; do
2553
test -f "$ac_file" || continue
2555
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2556
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2564
See \`config.log' for more details." >&5
2565
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2566
See \`config.log' for more details." >&2;}
2567
{ (exit 1); exit 1; }; }
2570
rm -f conftest$ac_cv_exeext
2571
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2572
echo "${ECHO_T}$ac_cv_exeext" >&6
2574
rm -f conftest.$ac_ext
2575
EXEEXT=$ac_cv_exeext
2577
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2578
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2579
if test "${ac_cv_objext+set}" = set; then
2580
echo $ECHO_N "(cached) $ECHO_C" >&6
2582
cat >conftest.$ac_ext <<_ACEOF
2583
#line $LINENO "configure"
2586
cat confdefs.h >>conftest.$ac_ext
2587
cat >>conftest.$ac_ext <<_ACEOF
2588
/* end confdefs.h. */
2598
rm -f conftest.o conftest.obj
2599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600
(eval $ac_compile) 2>&5
2602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
(exit $ac_status); }; then
2604
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2606
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2607
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612
echo "$as_me: failed program was:" >&5
2613
sed 's/^/| /' conftest.$ac_ext >&5
2615
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616
See \`config.log' for more details." >&5
2617
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618
See \`config.log' for more details." >&2;}
2619
{ (exit 1); exit 1; }; }
2622
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2624
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625
echo "${ECHO_T}$ac_cv_objext" >&6
2626
OBJEXT=$ac_cv_objext
2628
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2630
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631
echo $ECHO_N "(cached) $ECHO_C" >&6
2633
cat >conftest.$ac_ext <<_ACEOF
2634
#line $LINENO "configure"
2637
cat confdefs.h >>conftest.$ac_ext
2638
cat >>conftest.$ac_ext <<_ACEOF
2639
/* end confdefs.h. */
1106
echo "configure: failed program was:" >&5
1107
cat conftest.$ac_ext >&5
1108
ac_cv_prog_cc_works=no
1112
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1113
ac_cpp='$CPP $CPPFLAGS'
1114
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1115
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1116
cross_compiling=$ac_cv_prog_cc_cross
1118
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1119
if test $ac_cv_prog_cc_works = no; then
1120
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1122
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1123
echo "configure:1124: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1124
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1125
cross_compiling=$ac_cv_prog_cc_cross
1127
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1128
echo "configure:1129: checking whether we are using GNU C" >&5
1129
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1130
echo $ac_n "(cached) $ac_c" 1>&6
1132
cat > conftest.c <<EOF
2652
rm -f conftest.$ac_objext
2653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654
(eval $ac_compile) 2>&5
2656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
(exit $ac_status); } &&
2658
{ ac_try='test -s conftest.$ac_objext'
2659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663
(exit $ac_status); }; }; then
2666
echo "$as_me: failed program was:" >&5
2667
sed 's/^/| /' conftest.$ac_ext >&5
2671
rm -f conftest.$ac_objext conftest.$ac_ext
2672
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2677
GCC=`test $ac_compiler_gnu = yes && echo yes`
2678
ac_test_CFLAGS=${CFLAGS+set}
2679
ac_save_CFLAGS=$CFLAGS
2681
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2683
if test "${ac_cv_prog_cc_g+set}" = set; then
2684
echo $ECHO_N "(cached) $ECHO_C" >&6
2686
cat >conftest.$ac_ext <<_ACEOF
2687
#line $LINENO "configure"
2690
cat confdefs.h >>conftest.$ac_ext
2691
cat >>conftest.$ac_ext <<_ACEOF
2692
/* end confdefs.h. */
2702
rm -f conftest.$ac_objext
2703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704
(eval $ac_compile) 2>&5
2706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707
(exit $ac_status); } &&
2708
{ ac_try='test -s conftest.$ac_objext'
2709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713
(exit $ac_status); }; }; then
1137
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1144
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1146
if test $ac_cv_prog_gcc = yes; then
1152
ac_test_CFLAGS="${CFLAGS+set}"
1153
ac_save_CFLAGS="$CFLAGS"
1155
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1156
echo "configure:1157: checking whether ${CC-cc} accepts -g" >&5
1157
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1158
echo $ac_n "(cached) $ac_c" 1>&6
1160
echo 'void f(){}' > conftest.c
1161
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2714
1162
ac_cv_prog_cc_g=yes
2716
echo "$as_me: failed program was:" >&5
2717
sed 's/^/| /' conftest.$ac_ext >&5
2721
rm -f conftest.$ac_objext conftest.$ac_ext
2723
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2724
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1170
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2725
1171
if test "$ac_test_CFLAGS" = set; then
2726
CFLAGS=$ac_save_CFLAGS
1172
CFLAGS="$ac_save_CFLAGS"
2727
1173
elif test $ac_cv_prog_cc_g = yes; then
2728
1174
if test "$GCC" = yes; then
2729
1175
CFLAGS="-g -O2"
3122
1247
IFS="$ac_save_ifs"
3124
lt_cv_path_LD="$LD" # Let the user override the test with a path.
1249
ac_cv_path_LD="$LD" # Let the user override the test with a path.
3129
1254
if test -n "$LD"; then
3130
echo "$as_me:$LINENO: result: $LD" >&5
3131
echo "${ECHO_T}$LD" >&6
1255
echo "$ac_t""$LD" 1>&6
3133
echo "$as_me:$LINENO: result: no" >&5
3134
echo "${ECHO_T}no" >&6
1257
echo "$ac_t""no" 1>&6
3136
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3137
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3138
{ (exit 1); exit 1; }; }
3139
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3140
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3141
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3142
echo $ECHO_N "(cached) $ECHO_C" >&6
1259
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1260
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1261
echo "configure:1262: checking if the linker ($LD) is GNU ld" >&5
1262
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1263
echo $ac_n "(cached) $ac_c" 1>&6
3144
1265
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3145
1266
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3146
lt_cv_prog_gnu_ld=yes
3148
lt_cv_prog_gnu_ld=no
3151
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3152
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3153
with_gnu_ld=$lt_cv_prog_gnu_ld
3156
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3157
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3158
if test "${lt_cv_ld_reload_flag+set}" = set; then
3159
echo $ECHO_N "(cached) $ECHO_C" >&6
3161
lt_cv_ld_reload_flag='-r'
3163
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3164
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3165
reload_flag=$lt_cv_ld_reload_flag
3166
test -n "$reload_flag" && reload_flag=" $reload_flag"
3168
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3169
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3170
if test "${lt_cv_path_NM+set}" = set; then
3171
echo $ECHO_N "(cached) $ECHO_C" >&6
1267
ac_cv_prog_gnu_ld=yes
1269
ac_cv_prog_gnu_ld=no
1273
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1276
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1277
echo "configure:1278: checking for BSD-compatible nm" >&5
1278
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1279
echo $ac_n "(cached) $ac_c" 1>&6
3173
1281
if test -n "$NM"; then
3174
1282
# Let the user override the test.
3177
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1285
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3178
1286
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3179
1287
test -z "$ac_dir" && ac_dir=.
3180
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3181
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1288
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3182
1289
# Check to see if the nm accepts a BSD-compat flag.
3183
1290
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3184
1291
# nm: unknown option "B" ignored
3185
# Tru64's nm complains that /dev/null is an invalid object file
3186
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3187
lt_cv_path_NM="$tmp_nm -B"
1292
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1293
ac_cv_path_NM="$ac_dir/nm -B"
3189
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3190
lt_cv_path_NM="$tmp_nm -p"
1295
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1296
ac_cv_path_NM="$ac_dir/nm -p"
3193
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1299
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3194
1300
continue # so that we can try to find one that supports BSD flags
3198
1304
IFS="$ac_save_ifs"
3199
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3204
echo "$as_me:$LINENO: result: $NM" >&5
3205
echo "${ECHO_T}$NM" >&6
3207
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3208
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3209
if test "${lt_cv_path_SED+set}" = set; then
3210
echo $ECHO_N "(cached) $ECHO_C" >&6
3212
# Loop through the user's path and test for sed and gsed.
3213
# Then use that list of sed's as ones to test for truncation.
3214
as_executable_p="test -f"
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219
test -z "$as_dir" && as_dir=.
3220
for ac_prog in sed gsed; do
3221
for ac_exec_ext in '' $ac_executable_extensions; do
3222
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3223
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3229
# Create a temporary directory, and hook for its removal unless debugging.
3232
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3233
trap '{ (exit 1); exit 1; }' 1 2 13 15
3236
# Create a (secure) tmp directory for tmp files.
3239
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3240
test -n "$tmp" && test -d "$tmp"
3243
tmp=$TMPDIR/sed$$-$RANDOM
3244
(umask 077 && mkdir $tmp)
3247
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3248
{ (exit 1); exit 1; }
3252
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3253
# along with /bin/sed that truncates output.
3254
for _sed in $_sed_list /usr/xpg4/bin/sed; do
3255
test ! -f ${_sed} && break
3256
cat /dev/null > "$tmp/sed.in"
3258
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3259
# Check for GNU sed and select it if it is found.
3260
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3261
lt_cv_path_SED=${_sed}
3265
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3266
mv "$tmp/sed.tmp" "$tmp/sed.in"
3267
cp "$tmp/sed.in" "$tmp/sed.nl"
3268
echo >>"$tmp/sed.nl"
3269
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3270
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3271
# 40000 chars as input seems more than enough
3272
test $_count -gt 10 && break
3273
_count=`expr $_count + 1`
3274
if test $_count -gt $_max; then
3276
lt_cv_path_SED=$_sed
3284
if test "X$SED" != "X"; then
3289
echo "$as_me:$LINENO: result: $SED" >&5
3290
echo "${ECHO_T}$SED" >&6
3292
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295
if test "$LN_S" = "ln -s"; then
3296
echo "$as_me:$LINENO: result: yes" >&5
3297
echo "${ECHO_T}yes" >&6
3299
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300
echo "${ECHO_T}no, using $LN_S" >&6
3303
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3304
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3305
if test "${lt_cv_deplibs_check_method+set}" = set; then
3306
echo $ECHO_N "(cached) $ECHO_C" >&6
3308
lt_cv_file_magic_cmd='$MAGIC_CMD'
3309
lt_cv_file_magic_test_file=
3310
lt_cv_deplibs_check_method='unknown'
3311
# Need to set the preceding variable on all platforms that support
3312
# interlibrary dependencies.
3313
# 'none' -- dependencies not supported.
3314
# `unknown' -- same as none, but documents that we really don't know.
3315
# 'pass_all' -- all dependencies passed with no checks.
3316
# 'test_compile' -- check by making test program.
3317
# 'file_magic [[regex]]' -- check by looking for files in library path
3318
# which responds to the $file_magic_cmd with a given egrep regex.
3319
# If you have `file' or equivalent on your system and you're not sure
3320
# whether `pass_all' will *always* work, you probably want this one.
3324
lt_cv_deplibs_check_method=pass_all
3328
lt_cv_deplibs_check_method=pass_all
3332
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333
lt_cv_file_magic_cmd='/usr/bin/file -L'
3334
lt_cv_file_magic_test_file=/shlib/libc.so
3337
cygwin* | mingw* | pw32*)
3338
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3339
lt_cv_file_magic_cmd='$OBJDUMP -f'
3342
darwin* | rhapsody*)
3343
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344
lt_cv_file_magic_cmd='/usr/bin/file -L'
3346
rhapsody* | darwin1.[012])
3347
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3350
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3356
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3359
# Not sure whether the presence of OpenBSD here was a mistake.
3360
# Let's accept both of them until this is cleared up.
3361
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3362
lt_cv_file_magic_cmd=/usr/bin/file
3363
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3367
lt_cv_deplibs_check_method=pass_all
3372
lt_cv_deplibs_check_method=pass_all
3376
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3377
lt_cv_file_magic_cmd=/usr/bin/file
3378
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3381
irix5* | irix6* | nonstopux*)
3383
irix5* | nonstopux*)
3384
# this will be overridden with pass_all, but let us keep it just in case
3385
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3389
*-32|*"-32 ") libmagic=32-bit;;
3390
*-n32|*"-n32 ") libmagic=N32;;
3391
*-64|*"-64 ") libmagic=64-bit;;
3392
*) libmagic=never-match;;
3394
# this will be overridden with pass_all, but let us keep it just in case
3395
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3398
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3399
lt_cv_deplibs_check_method=pass_all
3402
# This must be Linux ELF.
3405
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3406
lt_cv_deplibs_check_method=pass_all ;;
3408
# glibc up to 2.1.1 does not perform some relocations on ARM
3409
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3415
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3416
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3418
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3423
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3424
lt_cv_file_magic_cmd=/usr/bin/file
3425
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429
lt_cv_file_magic_cmd=/usr/bin/file
3430
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3431
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3432
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3434
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3438
osf3* | osf4* | osf5*)
3439
# this will be overridden with pass_all, but let us keep it just in case
3440
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3441
lt_cv_file_magic_test_file=/shlib/libc.so
3442
lt_cv_deplibs_check_method=pass_all
3446
lt_cv_deplibs_check_method=pass_all
3450
lt_cv_deplibs_check_method=pass_all
3451
lt_cv_file_magic_test_file=/lib/libc.so
3454
sysv5uw[78]* | sysv4*uw2*)
3455
lt_cv_deplibs_check_method=pass_all
3458
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3459
case $host_vendor in
3461
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]'
3462
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3465
lt_cv_deplibs_check_method=pass_all
3468
lt_cv_file_magic_cmd='/bin/file'
3469
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3472
lt_cv_file_magic_cmd='/bin/file'
3473
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3474
lt_cv_file_magic_test_file=/lib/libc.so
3477
lt_cv_deplibs_check_method=pass_all
3484
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3485
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3486
file_magic_cmd=$lt_cv_file_magic_cmd
3487
deplibs_check_method=$lt_cv_deplibs_check_method
3496
# Check for command to grab the raw symbol name followed by C symbol from nm.
3497
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3498
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3499
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3500
echo $ECHO_N "(cached) $ECHO_C" >&6
3503
# These are sane defaults that work on at least a few old systems.
3504
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3506
# Character class describing NM global symbol codes.
3507
symcode='[BCDEGRST]'
3509
# Regexp to match symbols that can be accessed directly from C.
3510
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3512
# Transform the above into a raw symbol and a C symbol.
3513
symxfrm='\1 \2\3 \3'
3515
# Transform an extracted symbol line into a proper C declaration
3516
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3518
# Transform an extracted symbol line into symbol name and symbol address
3519
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3521
# Define system-specific variables.
3526
cygwin* | mingw* | pw32*)
3527
symcode='[ABCDGISTW]'
3529
hpux*) # Its linker distinguishes data from code symbols
3530
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3531
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3534
symcode='[BCDEGRST]'
3537
symcode='[BCDEGQRST]'
3547
# Handle CRLF in mingw tool chain
3551
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3555
# If we're using GNU nm, then use its standard symbol codes.
3556
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3557
symcode='[ABCDGISTW]'
3560
# Try without a prefix undercore, then with it.
3561
for ac_symprfx in "" "_"; do
3563
# Write the raw and C identifiers.
3564
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3566
# Check to see that the pipe works correctly.
3569
cat > conftest.$ac_ext <<EOF
3574
void nm_test_func(){}
3578
int main(){nm_test_var='a';nm_test_func();return(0);}
3581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582
(eval $ac_compile) 2>&5
3584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
(exit $ac_status); }; then
3586
# Now try to grab the symbols.
3588
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3589
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
(exit $ac_status); } && test -s "$nlist"; then
3593
# Try sorting and uniquifying the output.
3594
if sort "$nlist" | uniq > "$nlist"T; then
3595
mv -f "$nlist"T "$nlist"
3600
# Make sure that we snagged all the symbols we need.
3601
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3602
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3603
cat <<EOF > conftest.$ac_ext
3609
# Now generate the symbol file.
3610
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3612
cat <<EOF >> conftest.$ac_ext
3613
#if defined (__STDC__) && __STDC__
3614
# define lt_ptr void *
3616
# define lt_ptr char *
3620
/* The mapping between symbol names and symbols. */
3625
lt_preloaded_symbols[] =
3628
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3629
cat <<\EOF >> conftest.$ac_ext
3637
# Now try linking the two files.
3638
mv conftest.$ac_objext conftstm.$ac_objext
3640
save_CFLAGS="$CFLAGS"
3641
LIBS="conftstm.$ac_objext"
3642
CFLAGS="$CFLAGS$no_builtin_flag"
3643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3644
(eval $ac_link) 2>&5
3646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
(exit $ac_status); } && test -s conftest$ac_exeext; then
3651
CFLAGS="$save_CFLAGS"
3653
echo "cannot find nm_test_func in $nlist" >&5
3656
echo "cannot find nm_test_var in $nlist" >&5
3659
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3662
echo "$progname: failed program was:" >&5
3663
cat conftest.$ac_ext >&5
3665
rm -f conftest* conftst*
3667
# Do not use the global_symbol_pipe unless it works.
3668
if test "$pipe_works" = yes; then
3671
lt_cv_sys_global_symbol_pipe=
3677
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3678
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3679
global_symbol_to_cdecl=
3680
global_symbol_to_c_name_address=
3682
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3683
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3685
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1305
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1310
echo "$ac_t""$NM" 1>&6
1312
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1313
echo "configure:1314: checking whether ln -s works" >&5
1314
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1315
echo $ac_n "(cached) $ac_c" 1>&6
1318
if ln -s X conftestdata 2>/dev/null
3687
echo "$as_me:$LINENO: result: failed" >&5
3688
echo "${ECHO_T}failed" >&6
3690
echo "$as_me:$LINENO: result: ok" >&5
3691
echo "${ECHO_T}ok" >&6
3695
ac_cpp='$CPP $CPPFLAGS'
3696
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3700
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3701
# On Suns, sometimes $CPP names a directory.
3702
if test -n "$CPP" && test -d "$CPP"; then
3705
if test -z "$CPP"; then
3706
if test "${ac_cv_prog_CPP+set}" = set; then
3707
echo $ECHO_N "(cached) $ECHO_C" >&6
3709
# Double quotes because CPP needs to be expanded
3710
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3713
for ac_c_preproc_warn_flag in '' yes
3715
# Use a header file that comes with gcc, so configuring glibc
3716
# with a fresh cross-compiler works.
3717
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3718
# <limits.h> exists even on freestanding compilers.
3719
# On the NeXT, cc -E runs the code through the compiler's parser,
3720
# not just through cpp. "Syntax error" is here to catch this case.
3721
cat >conftest.$ac_ext <<_ACEOF
3722
#line $LINENO "configure"
3725
cat confdefs.h >>conftest.$ac_ext
3726
cat >>conftest.$ac_ext <<_ACEOF
3727
/* end confdefs.h. */
3729
# include <limits.h>
3731
# include <assert.h>
3735
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3738
grep -v '^ *+' conftest.er1 >conftest.err
3740
cat conftest.err >&5
3741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742
(exit $ac_status); } >/dev/null; then
3743
if test -s conftest.err; then
3744
ac_cpp_err=$ac_c_preproc_warn_flag
3751
if test -z "$ac_cpp_err"; then
3754
echo "$as_me: failed program was:" >&5
3755
sed 's/^/| /' conftest.$ac_ext >&5
3757
# Broken: fails on valid input.
3760
rm -f conftest.err conftest.$ac_ext
3762
# OK, works on sane cases. Now check whether non-existent headers
3763
# can be detected and how.
3764
cat >conftest.$ac_ext <<_ACEOF
3765
#line $LINENO "configure"
3768
cat confdefs.h >>conftest.$ac_ext
3769
cat >>conftest.$ac_ext <<_ACEOF
3770
/* end confdefs.h. */
3771
#include <ac_nonexistent.h>
3773
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3774
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3776
grep -v '^ *+' conftest.er1 >conftest.err
3778
cat conftest.err >&5
3779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } >/dev/null; then
3781
if test -s conftest.err; then
3782
ac_cpp_err=$ac_c_preproc_warn_flag
3789
if test -z "$ac_cpp_err"; then
3790
# Broken: success on invalid input.
3793
echo "$as_me: failed program was:" >&5
3794
sed 's/^/| /' conftest.$ac_ext >&5
3796
# Passes both tests.
3800
rm -f conftest.err conftest.$ac_ext
3803
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804
rm -f conftest.err conftest.$ac_ext
3805
if $ac_preproc_ok; then
3817
echo "$as_me:$LINENO: result: $CPP" >&5
3818
echo "${ECHO_T}$CPP" >&6
3820
for ac_c_preproc_warn_flag in '' yes
3822
# Use a header file that comes with gcc, so configuring glibc
3823
# with a fresh cross-compiler works.
3824
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825
# <limits.h> exists even on freestanding compilers.
3826
# On the NeXT, cc -E runs the code through the compiler's parser,
3827
# not just through cpp. "Syntax error" is here to catch this case.
3828
cat >conftest.$ac_ext <<_ACEOF
3829
#line $LINENO "configure"
3832
cat confdefs.h >>conftest.$ac_ext
3833
cat >>conftest.$ac_ext <<_ACEOF
3834
/* end confdefs.h. */
3836
# include <limits.h>
3838
# include <assert.h>
3842
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3845
grep -v '^ *+' conftest.er1 >conftest.err
3847
cat conftest.err >&5
3848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849
(exit $ac_status); } >/dev/null; then
3850
if test -s conftest.err; then
3851
ac_cpp_err=$ac_c_preproc_warn_flag
3858
if test -z "$ac_cpp_err"; then
3861
echo "$as_me: failed program was:" >&5
3862
sed 's/^/| /' conftest.$ac_ext >&5
3864
# Broken: fails on valid input.
3867
rm -f conftest.err conftest.$ac_ext
3869
# OK, works on sane cases. Now check whether non-existent headers
3870
# can be detected and how.
3871
cat >conftest.$ac_ext <<_ACEOF
3872
#line $LINENO "configure"
3875
cat confdefs.h >>conftest.$ac_ext
3876
cat >>conftest.$ac_ext <<_ACEOF
3877
/* end confdefs.h. */
3878
#include <ac_nonexistent.h>
3880
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3881
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883
grep -v '^ *+' conftest.er1 >conftest.err
3885
cat conftest.err >&5
3886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
(exit $ac_status); } >/dev/null; then
3888
if test -s conftest.err; then
3889
ac_cpp_err=$ac_c_preproc_warn_flag
3896
if test -z "$ac_cpp_err"; then
3897
# Broken: success on invalid input.
3900
echo "$as_me: failed program was:" >&5
3901
sed 's/^/| /' conftest.$ac_ext >&5
3903
# Passes both tests.
3907
rm -f conftest.err conftest.$ac_ext
3910
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911
rm -f conftest.err conftest.$ac_ext
3912
if $ac_preproc_ok; then
3915
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3916
See \`config.log' for more details." >&5
3917
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3918
See \`config.log' for more details." >&2;}
3919
{ (exit 1); exit 1; }; }
3923
ac_cpp='$CPP $CPPFLAGS'
3924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
echo "$as_me:$LINENO: checking for egrep" >&5
3930
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3931
if test "${ac_cv_prog_egrep+set}" = set; then
3932
echo $ECHO_N "(cached) $ECHO_C" >&6
3934
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3935
then ac_cv_prog_egrep='grep -E'
3936
else ac_cv_prog_egrep='egrep'
3939
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3940
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3941
EGREP=$ac_cv_prog_egrep
3944
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3945
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3946
if test "${ac_cv_header_stdc+set}" = set; then
3947
echo $ECHO_N "(cached) $ECHO_C" >&6
3949
cat >conftest.$ac_ext <<_ACEOF
3950
#line $LINENO "configure"
3953
cat confdefs.h >>conftest.$ac_ext
3954
cat >>conftest.$ac_ext <<_ACEOF
3955
/* end confdefs.h. */
3969
rm -f conftest.$ac_objext
3970
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971
(eval $ac_compile) 2>&5
3973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974
(exit $ac_status); } &&
3975
{ ac_try='test -s conftest.$ac_objext'
3976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980
(exit $ac_status); }; }; then
3981
ac_cv_header_stdc=yes
3983
echo "$as_me: failed program was:" >&5
3984
sed 's/^/| /' conftest.$ac_ext >&5
3986
ac_cv_header_stdc=no
3988
rm -f conftest.$ac_objext conftest.$ac_ext
3990
if test $ac_cv_header_stdc = yes; then
3991
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3992
cat >conftest.$ac_ext <<_ACEOF
3993
#line $LINENO "configure"
3996
cat confdefs.h >>conftest.$ac_ext
3997
cat >>conftest.$ac_ext <<_ACEOF
3998
/* end confdefs.h. */
4002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003
$EGREP "memchr" >/dev/null 2>&1; then
4006
ac_cv_header_stdc=no
4012
if test $ac_cv_header_stdc = yes; then
4013
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4014
cat >conftest.$ac_ext <<_ACEOF
4015
#line $LINENO "configure"
4018
cat confdefs.h >>conftest.$ac_ext
4019
cat >>conftest.$ac_ext <<_ACEOF
4020
/* end confdefs.h. */
4024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025
$EGREP "free" >/dev/null 2>&1; then
4028
ac_cv_header_stdc=no
4034
if test $ac_cv_header_stdc = yes; then
4035
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4036
if test "$cross_compiling" = yes; then
4039
cat >conftest.$ac_ext <<_ACEOF
4040
#line $LINENO "configure"
4043
cat confdefs.h >>conftest.$ac_ext
4044
cat >>conftest.$ac_ext <<_ACEOF
4045
/* end confdefs.h. */
4047
#if ((' ' & 0x0FF) == 0x020)
4048
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4049
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4051
# define ISLOWER(c) \
4052
(('a' <= (c) && (c) <= 'i') \
4053
|| ('j' <= (c) && (c) <= 'r') \
4054
|| ('s' <= (c) && (c) <= 'z'))
4055
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4058
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063
for (i = 0; i < 256; i++)
4064
if (XOR (islower (i), ISLOWER (i))
4065
|| toupper (i) != TOUPPER (i))
4070
rm -f conftest$ac_exeext
4071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4072
(eval $ac_link) 2>&5
4074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); }; }; then
4083
echo "$as_me: program exited with status $ac_status" >&5
4084
echo "$as_me: failed program was:" >&5
4085
sed 's/^/| /' conftest.$ac_ext >&5
4088
ac_cv_header_stdc=no
4090
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4096
if test $ac_cv_header_stdc = yes; then
4098
cat >>confdefs.h <<\_ACEOF
4099
#define STDC_HEADERS 1
4104
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4114
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115
inttypes.h stdint.h unistd.h
4117
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118
echo "$as_me:$LINENO: checking for $ac_header" >&5
4119
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4120
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4121
echo $ECHO_N "(cached) $ECHO_C" >&6
4123
cat >conftest.$ac_ext <<_ACEOF
4124
#line $LINENO "configure"
4127
cat confdefs.h >>conftest.$ac_ext
4128
cat >>conftest.$ac_ext <<_ACEOF
4129
/* end confdefs.h. */
4130
$ac_includes_default
4132
#include <$ac_header>
4134
rm -f conftest.$ac_objext
4135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136
(eval $ac_compile) 2>&5
4138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139
(exit $ac_status); } &&
4140
{ ac_try='test -s conftest.$ac_objext'
4141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145
(exit $ac_status); }; }; then
4146
eval "$as_ac_Header=yes"
4148
echo "$as_me: failed program was:" >&5
4149
sed 's/^/| /' conftest.$ac_ext >&5
4151
eval "$as_ac_Header=no"
4153
rm -f conftest.$ac_objext conftest.$ac_ext
4155
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4156
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4157
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4158
cat >>confdefs.h <<_ACEOF
4159
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4168
for ac_header in dlfcn.h
4170
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4172
echo "$as_me:$LINENO: checking for $ac_header" >&5
4173
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4174
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4175
echo $ECHO_N "(cached) $ECHO_C" >&6
4177
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4178
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4180
# Is the header compilable?
4181
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4182
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4183
cat >conftest.$ac_ext <<_ACEOF
4184
#line $LINENO "configure"
4187
cat confdefs.h >>conftest.$ac_ext
4188
cat >>conftest.$ac_ext <<_ACEOF
4189
/* end confdefs.h. */
4190
$ac_includes_default
4191
#include <$ac_header>
4193
rm -f conftest.$ac_objext
4194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195
(eval $ac_compile) 2>&5
4197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
(exit $ac_status); } &&
4199
{ ac_try='test -s conftest.$ac_objext'
4200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204
(exit $ac_status); }; }; then
4205
ac_header_compiler=yes
4207
echo "$as_me: failed program was:" >&5
4208
sed 's/^/| /' conftest.$ac_ext >&5
4210
ac_header_compiler=no
4212
rm -f conftest.$ac_objext conftest.$ac_ext
4213
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4214
echo "${ECHO_T}$ac_header_compiler" >&6
4216
# Is the header present?
4217
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4218
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4219
cat >conftest.$ac_ext <<_ACEOF
4220
#line $LINENO "configure"
4223
cat confdefs.h >>conftest.$ac_ext
4224
cat >>conftest.$ac_ext <<_ACEOF
4225
/* end confdefs.h. */
4226
#include <$ac_header>
4228
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4229
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4231
grep -v '^ *+' conftest.er1 >conftest.err
4233
cat conftest.err >&5
4234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235
(exit $ac_status); } >/dev/null; then
4236
if test -s conftest.err; then
4237
ac_cpp_err=$ac_c_preproc_warn_flag
4244
if test -z "$ac_cpp_err"; then
4245
ac_header_preproc=yes
4247
echo "$as_me: failed program was:" >&5
4248
sed 's/^/| /' conftest.$ac_ext >&5
4250
ac_header_preproc=no
4252
rm -f conftest.err conftest.$ac_ext
4253
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4254
echo "${ECHO_T}$ac_header_preproc" >&6
4256
# So? What about this header?
4257
case $ac_header_compiler:$ac_header_preproc in
4259
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4260
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4261
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4262
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265
## ------------------------------------ ##
4266
## Report this to bug-autoconf@gnu.org. ##
4267
## ------------------------------------ ##
4270
sed "s/^/$as_me: WARNING: /" >&2
4273
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4274
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4275
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4276
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4277
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4278
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4281
## ------------------------------------ ##
4282
## Report this to bug-autoconf@gnu.org. ##
4283
## ------------------------------------ ##
4286
sed "s/^/$as_me: WARNING: /" >&2
4289
echo "$as_me:$LINENO: checking for $ac_header" >&5
4290
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292
echo $ECHO_N "(cached) $ECHO_C" >&6
4294
eval "$as_ac_Header=$ac_header_preproc"
4296
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4297
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4300
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4301
cat >>confdefs.h <<_ACEOF
4302
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314
# Only perform the check for file, if the check method requires it
4315
case $deplibs_check_method in
4317
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4318
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4319
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4320
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4321
echo $ECHO_N "(cached) $ECHO_C" >&6
4325
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4328
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4331
ac_save_MAGIC_CMD="$MAGIC_CMD"
4332
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4333
ac_dummy="/usr/bin:$PATH"
4334
for ac_dir in $ac_dummy; do
4335
test -z "$ac_dir" && ac_dir=.
4336
if test -f $ac_dir/${ac_tool_prefix}file; then
4337
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4338
if test -n "$file_magic_test_file"; then
4339
case $deplibs_check_method in
4341
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4342
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4343
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4344
egrep "$file_magic_regex" > /dev/null; then
4349
*** Warning: the command libtool uses to detect shared libraries,
4350
*** $file_magic_cmd, produces output that libtool cannot recognize.
4351
*** The result is that libtool may fail to recognize shared libraries
4352
*** as such. This will affect the creation of libtool libraries that
4353
*** depend on shared libraries, but programs linked with such libtool
4354
*** libraries will work regardless of this problem. Nevertheless, you
4355
*** may want to report the problem to your system manager and/or to
4356
*** bug-libtool@gnu.org
4366
MAGIC_CMD="$ac_save_MAGIC_CMD"
4371
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4372
if test -n "$MAGIC_CMD"; then
4373
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4374
echo "${ECHO_T}$MAGIC_CMD" >&6
4376
echo "$as_me:$LINENO: result: no" >&5
4377
echo "${ECHO_T}no" >&6
4380
if test -z "$lt_cv_path_MAGIC_CMD"; then
4381
if test -n "$ac_tool_prefix"; then
4382
echo "$as_me:$LINENO: checking for file" >&5
4383
echo $ECHO_N "checking for file... $ECHO_C" >&6
4384
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4385
echo $ECHO_N "(cached) $ECHO_C" >&6
4389
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4392
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4395
ac_save_MAGIC_CMD="$MAGIC_CMD"
4396
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4397
ac_dummy="/usr/bin:$PATH"
4398
for ac_dir in $ac_dummy; do
4399
test -z "$ac_dir" && ac_dir=.
4400
if test -f $ac_dir/file; then
4401
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4402
if test -n "$file_magic_test_file"; then
4403
case $deplibs_check_method in
4405
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4406
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4407
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4408
egrep "$file_magic_regex" > /dev/null; then
4413
*** Warning: the command libtool uses to detect shared libraries,
4414
*** $file_magic_cmd, produces output that libtool cannot recognize.
4415
*** The result is that libtool may fail to recognize shared libraries
4416
*** as such. This will affect the creation of libtool libraries that
4417
*** depend on shared libraries, but programs linked with such libtool
4418
*** libraries will work regardless of this problem. Nevertheless, you
4419
*** may want to report the problem to your system manager and/or to
4420
*** bug-libtool@gnu.org
4430
MAGIC_CMD="$ac_save_MAGIC_CMD"
4435
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4436
if test -n "$MAGIC_CMD"; then
4437
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4438
echo "${ECHO_T}$MAGIC_CMD" >&6
4440
echo "$as_me:$LINENO: result: no" >&5
4441
echo "${ECHO_T}no" >&6
4453
if test -n "$ac_tool_prefix"; then
4454
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4455
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4456
echo "$as_me:$LINENO: checking for $ac_word" >&5
4457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458
if test "${ac_cv_prog_RANLIB+set}" = set; then
4459
echo $ECHO_N "(cached) $ECHO_C" >&6
4461
if test -n "$RANLIB"; then
4462
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468
test -z "$as_dir" && as_dir=.
4469
for ac_exec_ext in '' $ac_executable_extensions; do
4470
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4472
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480
RANLIB=$ac_cv_prog_RANLIB
4481
if test -n "$RANLIB"; then
4482
echo "$as_me:$LINENO: result: $RANLIB" >&5
4483
echo "${ECHO_T}$RANLIB" >&6
4485
echo "$as_me:$LINENO: result: no" >&5
4486
echo "${ECHO_T}no" >&6
4490
if test -z "$ac_cv_prog_RANLIB"; then
4491
ac_ct_RANLIB=$RANLIB
4492
# Extract the first word of "ranlib", so it can be a program name with args.
4493
set dummy ranlib; ac_word=$2
4494
echo "$as_me:$LINENO: checking for $ac_word" >&5
4495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4497
echo $ECHO_N "(cached) $ECHO_C" >&6
4499
if test -n "$ac_ct_RANLIB"; then
4500
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506
test -z "$as_dir" && as_dir=.
4507
for ac_exec_ext in '' $ac_executable_extensions; do
4508
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509
ac_cv_prog_ac_ct_RANLIB="ranlib"
4510
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4519
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4520
if test -n "$ac_ct_RANLIB"; then
4521
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4522
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4524
echo "$as_me:$LINENO: result: no" >&5
4525
echo "${ECHO_T}no" >&6
4528
RANLIB=$ac_ct_RANLIB
4530
RANLIB="$ac_cv_prog_RANLIB"
4533
if test -n "$ac_tool_prefix"; then
4534
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4535
set dummy ${ac_tool_prefix}strip; ac_word=$2
4536
echo "$as_me:$LINENO: checking for $ac_word" >&5
4537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538
if test "${ac_cv_prog_STRIP+set}" = set; then
4539
echo $ECHO_N "(cached) $ECHO_C" >&6
4541
if test -n "$STRIP"; then
4542
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548
test -z "$as_dir" && as_dir=.
4549
for ac_exec_ext in '' $ac_executable_extensions; do
4550
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4552
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560
STRIP=$ac_cv_prog_STRIP
4561
if test -n "$STRIP"; then
4562
echo "$as_me:$LINENO: result: $STRIP" >&5
4563
echo "${ECHO_T}$STRIP" >&6
4565
echo "$as_me:$LINENO: result: no" >&5
4566
echo "${ECHO_T}no" >&6
4570
if test -z "$ac_cv_prog_STRIP"; then
4572
# Extract the first word of "strip", so it can be a program name with args.
4573
set dummy strip; ac_word=$2
4574
echo "$as_me:$LINENO: checking for $ac_word" >&5
4575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4576
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4577
echo $ECHO_N "(cached) $ECHO_C" >&6
4579
if test -n "$ac_ct_STRIP"; then
4580
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586
test -z "$as_dir" && as_dir=.
4587
for ac_exec_ext in '' $ac_executable_extensions; do
4588
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589
ac_cv_prog_ac_ct_STRIP="strip"
4590
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4599
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4600
if test -n "$ac_ct_STRIP"; then
4601
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4602
echo "${ECHO_T}$ac_ct_STRIP" >&6
4604
echo "$as_me:$LINENO: result: no" >&5
4605
echo "${ECHO_T}no" >&6
4610
STRIP="$ac_cv_prog_STRIP"
1321
ac_cv_prog_LN_S="ln -s"
1326
LN_S="$ac_cv_prog_LN_S"
1327
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1328
echo "$ac_t""yes" 1>&6
1330
echo "$ac_t""no" 1>&6
1335
NONE) lt_target="$host" ;;
1336
*) lt_target="$target" ;;
1339
# Check for any special flags to pass to ltconfig.
1340
libtool_flags="--cache-file=$cache_file"
1341
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1342
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1343
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1344
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1345
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4617
1348
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4618
1349
if test "${enable_libtool_lock+set}" = set; then
4619
1350
enableval="$enable_libtool_lock"
4622
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1354
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1355
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4624
1357
# Some flags need to be propagated to the compiler or linker for good
4625
1358
# libtool support.
1359
case "$lt_target" in
4628
1361
# Find out which ABI we are using.
4629
echo '#line 4629 "configure"' > conftest.$ac_ext
4630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631
(eval $ac_compile) 2>&5
4633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
(exit $ac_status); }; then
4635
case `/usr/bin/file conftest.$ac_objext` in
1362
echo '#line 1363 "configure"' > conftest.$ac_ext
1363
if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1364
case "`/usr/bin/file conftest.o`" in
4637
1366
LD="${LD-ld} -32"
4721
# Sed substitution that helps us do robust quoting. It backslashifies
4722
# metacharacters that are still active within double-quoted strings.
4723
Xsed='sed -e s/^X//'
4724
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4726
# Same as above, but do not quote variable references.
4727
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4729
# Sed substitution to delay expansion of an escaped shell variable in a
4730
# double_quote_subst'ed string.
4731
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4737
default_ofile=libtool
4738
can_build_shared=yes
4740
# All known linkers require a `.a' archive for static linking (except M$VC,
4741
# which needs '.lib').
4743
ltmain="$ac_aux_dir/ltmain.sh"
4744
ofile="$default_ofile"
4745
with_gnu_ld="$lt_cv_prog_gnu_ld"
4746
need_locks="$enable_libtool_lock"
4749
old_CFLAGS="$CFLAGS"
4751
# Set sane defaults for various variables
4752
test -z "$AR" && AR=ar
4753
test -z "$AR_FLAGS" && AR_FLAGS=cru
4754
test -z "$AS" && AS=as
4755
test -z "$CC" && CC=cc
4756
test -z "$DLLTOOL" && DLLTOOL=dlltool
4757
test -z "$LD" && LD=ld
4758
test -z "$LN_S" && LN_S="ln -s"
4759
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4760
test -z "$NM" && NM=nm
4761
test -z "$OBJDUMP" && OBJDUMP=objdump
4762
test -z "$RANLIB" && RANLIB=:
4763
test -z "$STRIP" && STRIP=:
4764
test -z "$ac_objext" && ac_objext=o
4766
if test x"$host" != x"$build"; then
4767
ac_tool_prefix=${host_alias}-
4772
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4775
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4780
# AIX sometimes has problems with the GCC collect2 program. For some
4781
# reason, if we set the COLLECT_NAMES environment variable, the problems
4782
# vanish in a puff of smoke.
4783
if test "X${COLLECT_NAMES+set}" != Xset; then
4785
export COLLECT_NAMES
4790
# Determine commands to create old-style static archives.
4791
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4792
old_postinstall_cmds='chmod 644 $oldlib'
4793
old_postuninstall_cmds=
4795
if test -n "$RANLIB"; then
4798
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4801
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4804
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4807
# Allow CC to be a program name with arguments.
4811
echo "$as_me:$LINENO: checking for objdir" >&5
4812
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4813
rm -f .libs 2>/dev/null
4814
mkdir .libs 2>/dev/null
4815
if test -d .libs; then
4818
# MS-DOS does not allow filenames that begin with a dot.
4821
rmdir .libs 2>/dev/null
4822
echo "$as_me:$LINENO: result: $objdir" >&5
4823
echo "${ECHO_T}$objdir" >&6
4827
# Check whether --with-pic or --without-pic was given.
4828
if test "${with_pic+set}" = set; then
4834
test -z "$pic_mode" && pic_mode=default
4836
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4837
# in isolation, and that seeing it set (from the cache) indicates that
4838
# the associated values are set (in the cache) correctly too.
4839
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4840
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4841
if test "${lt_cv_prog_cc_pic+set}" = set; then
4842
echo $ECHO_N "(cached) $ECHO_C" >&6
4845
lt_cv_prog_cc_shlib=
4847
lt_cv_prog_cc_static=
4848
lt_cv_prog_cc_no_builtin=
4849
lt_cv_prog_cc_can_build_shared=$can_build_shared
4851
if test "$GCC" = yes; then
4852
lt_cv_prog_cc_wl='-Wl,'
4853
lt_cv_prog_cc_static='-static'
4857
# Below there is a dirty hack to force normal static linking with -ldl
4858
# The problem is because libdl dynamically linked with both libc and
4859
# libC (AIX C++ library), which obviously doesn't included in libraries
4860
# list by gcc. This cause undefined symbols with -static flags.
4861
# This hack allows C programs to be linked with "-static -ldl", but
4862
# not sure about C++ programs.
4863
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4866
# FIXME: we need at least 68020 code to build shared libraries, but
4867
# adding the `-m68020' flag to GCC prevents building anything better,
4869
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4871
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4872
# PIC is the default for these OSes.
4874
darwin* | rhapsody*)
4875
# PIC is the default on this platform
4876
# Common symbols not allowed in MH_DYLIB files
4877
lt_cv_prog_cc_pic='-fno-common'
4879
cygwin* | mingw* | pw32* | os2*)
4880
# This hack is so that the source file can tell whether it is being
4881
# built for inclusion in a dll (and should export symbols for example).
4882
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4885
if test -d /usr/nec; then
4886
lt_cv_prog_cc_pic=-Kconform_pic
4890
lt_cv_prog_cc_pic='-fPIC'
4894
# PORTME Check for PIC flags for the system compiler.
4896
aix3* | aix4* | aix5*)
4897
lt_cv_prog_cc_wl='-Wl,'
4898
# All AIX code is PIC.
4899
if test "$host_cpu" = ia64; then
4900
# AIX 5 now supports IA64 processor
4901
lt_cv_prog_cc_static='-Bstatic'
4903
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4907
hpux9* | hpux10* | hpux11*)
4908
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4909
lt_cv_prog_cc_wl='-Wl,'
4910
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4911
lt_cv_prog_cc_pic='+Z'
4914
irix5* | irix6* | nonstopux*)
4915
lt_cv_prog_cc_wl='-Wl,'
4916
lt_cv_prog_cc_static='-non_shared'
4917
# PIC (with -KPIC) is the default.
4920
cygwin* | mingw* | pw32* | os2*)
4921
# This hack is so that the source file can tell whether it is being
4922
# built for inclusion in a dll (and should export symbols for example).
4923
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4927
lt_cv_prog_cc_pic='-KPIC'
4928
lt_cv_prog_cc_static='-Bstatic'
4931
osf3* | osf4* | osf5*)
4932
# All OSF/1 code is PIC.
4933
lt_cv_prog_cc_wl='-Wl,'
4934
lt_cv_prog_cc_static='-non_shared'
4938
lt_cv_prog_cc_pic='-Kpic'
4939
lt_cv_prog_cc_static='-dn'
4940
lt_cv_prog_cc_shlib='-belf'
4944
lt_cv_prog_cc_pic='-KPIC'
4945
lt_cv_prog_cc_static='-Bstatic'
4946
lt_cv_prog_cc_wl='-Wl,'
4950
lt_cv_prog_cc_pic='-PIC'
4951
lt_cv_prog_cc_static='-Bstatic'
4952
lt_cv_prog_cc_wl='-Qoption ld '
4955
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4956
lt_cv_prog_cc_pic='-KPIC'
4957
lt_cv_prog_cc_static='-Bstatic'
4958
lt_cv_prog_cc_wl='-Wl,'
4962
lt_cv_prog_cc_pic='-pic'
4963
lt_cv_prog_cc_static='-Bstatic'
4967
if test -d /usr/nec ;then
4968
lt_cv_prog_cc_pic='-Kconform_pic'
4969
lt_cv_prog_cc_static='-Bstatic'
4974
lt_cv_prog_cc_can_build_shared=no
4981
if test -z "$lt_cv_prog_cc_pic"; then
4982
echo "$as_me:$LINENO: result: none" >&5
4983
echo "${ECHO_T}none" >&6
4985
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4986
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4988
# Check to make sure the pic_flag actually works.
4989
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4990
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4991
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4992
echo $ECHO_N "(cached) $ECHO_C" >&6
4994
save_CFLAGS="$CFLAGS"
4995
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4996
cat >conftest.$ac_ext <<_ACEOF
4997
#line $LINENO "configure"
5000
cat confdefs.h >>conftest.$ac_ext
5001
cat >>conftest.$ac_ext <<_ACEOF
5002
/* end confdefs.h. */
5012
rm -f conftest.$ac_objext
5013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014
(eval $ac_compile) 2>&5
5016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
(exit $ac_status); } &&
5018
{ ac_try='test -s conftest.$ac_objext'
5019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023
(exit $ac_status); }; }; then
5025
hpux9* | hpux10* | hpux11*)
5026
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5027
# they create non-PIC objects. So, if there were any warnings, we
5028
# assume that PIC is not supported.
5029
if test -s conftest.err; then
5030
lt_cv_prog_cc_pic_works=no
5032
lt_cv_prog_cc_pic_works=yes
5036
lt_cv_prog_cc_pic_works=yes
5041
echo "$as_me: failed program was:" >&5
5042
sed 's/^/| /' conftest.$ac_ext >&5
5044
lt_cv_prog_cc_pic_works=no
5047
rm -f conftest.$ac_objext conftest.$ac_ext
5048
CFLAGS="$save_CFLAGS"
5053
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5055
lt_cv_prog_cc_can_build_shared=no
5057
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5060
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5061
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5064
# Check for any special shared library compilation flags.
5065
if test -n "$lt_cv_prog_cc_shlib"; then
5066
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5067
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5068
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5070
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5071
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5072
lt_cv_prog_cc_can_build_shared=no
5076
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5077
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5078
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5079
echo $ECHO_N "(cached) $ECHO_C" >&6
5081
lt_cv_prog_cc_static_works=no
5082
save_LDFLAGS="$LDFLAGS"
5083
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5084
cat >conftest.$ac_ext <<_ACEOF
5085
#line $LINENO "configure"
5088
cat confdefs.h >>conftest.$ac_ext
5089
cat >>conftest.$ac_ext <<_ACEOF
5090
/* end confdefs.h. */
5100
rm -f conftest.$ac_objext conftest$ac_exeext
5101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102
(eval $ac_link) 2>&5
5104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105
(exit $ac_status); } &&
5106
{ ac_try='test -s conftest$ac_exeext'
5107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); }; }; then
5112
lt_cv_prog_cc_static_works=yes
5114
echo "$as_me: failed program was:" >&5
5115
sed 's/^/| /' conftest.$ac_ext >&5
5118
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119
LDFLAGS="$save_LDFLAGS"
5124
# Belt *and* braces to stop my trousers falling down:
5125
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5126
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5127
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5129
pic_flag="$lt_cv_prog_cc_pic"
5130
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5131
wl="$lt_cv_prog_cc_wl"
5132
link_static_flag="$lt_cv_prog_cc_static"
5133
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5134
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5137
# Check to see if options -o and -c are simultaneously supported by compiler
5138
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5139
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5140
if test "${lt_cv_compiler_c_o+set}" = set; then
5141
echo $ECHO_N "(cached) $ECHO_C" >&6
5144
$rm -r conftest 2>/dev/null
5147
echo "int some_variable = 0;" > conftest.$ac_ext
5149
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5150
# that will create temporary files in the current directory regardless of
5151
# the output directory. Thus, making CWD read-only will cause this test
5152
# to fail, enabling locking or at least warning the user not to do parallel
5155
save_CFLAGS="$CFLAGS"
5156
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5158
if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5159
# The compiler can only warn and ignore the option if not recognized
5160
# So say no if there are warnings
5161
if test -s out/conftest.err; then
5162
lt_cv_compiler_c_o=no
5164
lt_cv_compiler_c_o=yes
5167
# Append any errors to the config.log.
5168
cat out/conftest.err 1>&5
5169
lt_cv_compiler_c_o=no
5171
CFLAGS="$save_CFLAGS"
5177
$rm -r conftest 2>/dev/null
5181
compiler_c_o=$lt_cv_compiler_c_o
5182
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5183
echo "${ECHO_T}$compiler_c_o" >&6
5185
if test x"$compiler_c_o" = x"yes"; then
5186
# Check to see if we can write to a .lo
5187
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5188
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5189
if test "${lt_cv_compiler_o_lo+set}" = set; then
5190
echo $ECHO_N "(cached) $ECHO_C" >&6
5193
lt_cv_compiler_o_lo=no
5194
save_CFLAGS="$CFLAGS"
5195
CFLAGS="$CFLAGS -c -o conftest.lo"
5196
save_objext="$ac_objext"
5198
cat >conftest.$ac_ext <<_ACEOF
5199
#line $LINENO "configure"
5202
cat confdefs.h >>conftest.$ac_ext
5203
cat >>conftest.$ac_ext <<_ACEOF
5204
/* end confdefs.h. */
5209
int some_variable = 0;
5214
rm -f conftest.$ac_objext
5215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216
(eval $ac_compile) 2>&5
5218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
(exit $ac_status); } &&
5220
{ ac_try='test -s conftest.$ac_objext'
5221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
(exit $ac_status); }; }; then
5226
# The compiler can only warn and ignore the option if not recognized
5227
# So say no if there are warnings
5228
if test -s conftest.err; then
5229
lt_cv_compiler_o_lo=no
5231
lt_cv_compiler_o_lo=yes
5235
echo "$as_me: failed program was:" >&5
5236
sed 's/^/| /' conftest.$ac_ext >&5
5239
rm -f conftest.$ac_objext conftest.$ac_ext
5240
ac_objext="$save_objext"
5241
CFLAGS="$save_CFLAGS"
5245
compiler_o_lo=$lt_cv_compiler_o_lo
5246
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5247
echo "${ECHO_T}$compiler_o_lo" >&6
5252
# Check to see if we can do hard links to lock some files if needed
5253
hard_links="nottested"
5254
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5255
# do not overwrite the value of need_locks provided by the user
5256
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5257
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5260
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5262
ln conftest.a conftest.b 2>&5 || hard_links=no
5263
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5264
echo "$as_me:$LINENO: result: $hard_links" >&5
5265
echo "${ECHO_T}$hard_links" >&6
5266
if test "$hard_links" = no; then
5267
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5268
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5275
if test "$GCC" = yes; then
5276
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5277
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5278
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5279
echo "int some_variable = 0;" > conftest.$ac_ext
5280
save_CFLAGS="$CFLAGS"
5281
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5282
compiler_rtti_exceptions=no
5283
cat >conftest.$ac_ext <<_ACEOF
5284
#line $LINENO "configure"
5287
cat confdefs.h >>conftest.$ac_ext
5288
cat >>conftest.$ac_ext <<_ACEOF
5289
/* end confdefs.h. */
5294
int some_variable = 0;
5299
rm -f conftest.$ac_objext
5300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301
(eval $ac_compile) 2>&5
5303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304
(exit $ac_status); } &&
5305
{ ac_try='test -s conftest.$ac_objext'
5306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310
(exit $ac_status); }; }; then
5311
# The compiler can only warn and ignore the option if not recognized
5312
# So say no if there are warnings
5313
if test -s conftest.err; then
5314
compiler_rtti_exceptions=no
5316
compiler_rtti_exceptions=yes
5320
echo "$as_me: failed program was:" >&5
5321
sed 's/^/| /' conftest.$ac_ext >&5
5324
rm -f conftest.$ac_objext conftest.$ac_ext
5325
CFLAGS="$save_CFLAGS"
5326
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5327
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5329
if test "$compiler_rtti_exceptions" = "yes"; then
5330
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5332
no_builtin_flag=' -fno-builtin'
5336
# See if the linker supports building shared libraries.
5337
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5338
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5340
allow_undefined_flag=
5342
need_lib_prefix=unknown
5343
need_version=unknown
5344
# when you set need_version to no, make sure it does not cause -set_version
5345
# flags to be left without arguments
5347
archive_expsym_cmds=
5348
old_archive_from_new_cmds=
5349
old_archive_from_expsyms_cmds=
5350
export_dynamic_flag_spec=
5351
whole_archive_flag_spec=
5352
thread_safe_flag_spec=
5353
hardcode_into_libs=no
5354
hardcode_libdir_flag_spec=
5355
hardcode_libdir_separator=
5358
hardcode_shlibpath_var=unsupported
5360
link_all_deplibs=unknown
5361
always_export_symbols=no
5362
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5363
# include_expsyms should be a list of space-separated symbols to be *always*
5364
# included in the symbol list
5366
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5367
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5368
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5369
# as well as any symbol that contains `d'.
5370
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5371
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5372
# platforms (ab)use it in PIC code, but their linkers get confused if
5373
# the symbol is explicitly referenced. Since portable code cannot
5374
# rely on this symbol name, it's probably fine to never include it in
5375
# preloaded symbol tables.
5376
extract_expsyms_cmds=
5379
cygwin* | mingw* | pw32*)
5380
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5381
# When not using gcc, we currently assume that we are using
5382
# Microsoft Visual C++.
5383
if test "$GCC" != yes; then
5393
if test "$with_gnu_ld" = yes; then
5394
# If archive_cmds runs LD, not CC, wlarc should be empty
5397
# See if GNU ld supports shared libraries.
5399
aix3* | aix4* | aix5*)
5400
# On AIX, the GNU linker is very broken
5401
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5405
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5406
*** to be unable to reliably create shared libraries on AIX.
5407
*** Therefore, libtool is disabling shared libraries support. If you
5408
*** really care for shared libraries, you may want to modify your PATH
5409
*** so that a non-GNU linker is found, and then restart.
5415
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)'
5416
hardcode_libdir_flag_spec='-L$libdir'
5417
hardcode_minus_L=yes
5419
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5420
# that the semantics of dynamic libraries on AmigaOS, at least up
5421
# to version 4, is to share data among multiple programs linked
5422
# with the same dynamic library. Since this doesn't match the
5423
# behavior of shared libraries on other platforms, we can use
5429
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5430
allow_undefined_flag=unsupported
5431
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5432
# support --undefined. This deserves some investigation. FIXME
5433
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5439
cygwin* | mingw* | pw32*)
5440
# hardcode_libdir_flag_spec is actually meaningless, as there is
5441
# no search path for DLLs.
5442
hardcode_libdir_flag_spec='-L$libdir'
5443
allow_undefined_flag=unsupported
5444
always_export_symbols=yes
5446
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5447
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5448
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5449
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5450
else $CC -o impgen impgen.c ; fi)~
5451
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5453
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5455
# cygwin and mingw dlls have different entry points and sets of symbols
5457
# FIXME: what about values for MSVC?
5458
dll_entry=__cygwin_dll_entry@12
5459
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5463
dll_entry=_DllMainCRTStartup@12
5464
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5468
# mingw and cygwin differ, and it's simplest to just exclude the union
5469
# of the two symbol sets.
5470
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5472
# recent cygwin and mingw systems supply a stub DllMain which the user
5473
# can override, but on older systems we have to supply one (in ltdll.c)
5474
if test "x$lt_cv_need_dllmain" = "xyes"; then
5475
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5476
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5477
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5483
# Extract the symbol export list from an `--export-all' def file,
5484
# then regenerate the def file from the symbol export list, so that
5485
# the compiled dll only exports the symbol export list.
5486
# Be careful not to strip the DATA tag left be newer dlltools.
5487
export_symbols_cmds="$ltdll_cmds"'
5488
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5489
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5491
# If the export-symbols file already is a .def file (1st line
5492
# is EXPORTS), use it as is.
5493
# If DATA tags from a recent dlltool are present, honour them!
5494
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5495
cp $export_symbols $output_objdir/$soname-def;
5497
echo EXPORTS > $output_objdir/$soname-def;
5499
cat $export_symbols | while read symbol; do
5502
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5503
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5504
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5506
_lt_hint=`expr 1 + \$_lt_hint`;
5510
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5511
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5512
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5513
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5514
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5518
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5519
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5522
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5523
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5528
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5532
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5533
*** create shared libraries on Solaris systems. Therefore, libtool
5534
*** is disabling shared libraries support. We urge you to upgrade GNU
5535
*** binutils to release 2.9.1 or newer. Another option is to modify
5536
*** your PATH or compiler configuration so that the native linker is
5537
*** used, and then restart.
5540
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5541
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5542
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5549
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5552
hardcode_shlibpath_var=no
5556
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5557
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5558
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5565
if test "$ld_shlibs" = yes; then
5566
runpath_var=LD_RUN_PATH
5567
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5568
export_dynamic_flag_spec='${wl}--export-dynamic'
5570
cygwin* | mingw* | pw32*)
5571
# dlltool doesn't understand --whole-archive et. al.
5572
whole_archive_flag_spec=
5575
# ancient GNU ld didn't support --whole-archive et. al.
5576
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5577
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5579
whole_archive_flag_spec=
5585
# PORTME fill in a description of your system's linker (not GNU ld)
5588
allow_undefined_flag=unsupported
5589
always_export_symbols=yes
5590
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'
5591
# Note: this linker hardcodes the directories in LIBPATH if there
5592
# are no directories specified by -L.
5593
hardcode_minus_L=yes
5594
if test "$GCC" = yes && test -z "$link_static_flag"; then
5595
# Neither direct hardcoding nor static linking is supported with a
5597
hardcode_direct=unsupported
5602
if test "$host_cpu" = ia64; then
5603
# On IA64, the linker does run time linking by default, so we don't
5604
# have to do anything special.
5605
aix_use_runtimelinking=no
5606
exp_sym_flag='-Bexport'
5609
aix_use_runtimelinking=no
5611
# Test if we are trying to use run time linking or normal
5612
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5613
# need to do runtime linking.
5614
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5615
for ld_flag in $LDFLAGS; do
5618
aix_use_runtimelinking=yes
5625
exp_sym_flag='-bexport'
5626
no_entry_flag='-bnoentry'
5629
# When large executables or shared objects are built, AIX ld can
5630
# have problems creating the table of contents. If linking a library
5631
# or program results in "error TOC overflow" add -mminimal-toc to
5632
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5633
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5637
hardcode_libdir_separator=':'
5638
if test "$GCC" = yes; then
5639
case $host_os in aix4.[012]|aix4.[012].*)
5640
collect2name=`${CC} -print-prog-name=collect2`
5641
if test -f "$collect2name" && \
5642
strings "$collect2name" | grep resolve_lib_name >/dev/null
5644
# We have reworked collect2
5647
# We have old collect2
5648
hardcode_direct=unsupported
5649
# It fails to find uninstalled libraries when the uninstalled
5650
# path is not listed in the libpath. Setting hardcode_minus_L
5651
# to unsupported forces relinking
5652
hardcode_minus_L=yes
5653
hardcode_libdir_flag_spec='-L$libdir'
5654
hardcode_libdir_separator=
5658
shared_flag='-shared'
5661
if test "$host_cpu" = ia64; then
5662
shared_flag='${wl}-G'
5664
if test "$aix_use_runtimelinking" = yes; then
5665
shared_flag='${wl}-G'
5667
shared_flag='${wl}-bM:SRE'
5672
# It seems that -bexpall can do strange things, so it is better to
5673
# generate a list of symbols to export.
5674
always_export_symbols=yes
5675
if test "$aix_use_runtimelinking" = yes; then
5676
# Warning - without using the other runtime loading flags (-brtl),
5677
# -berok will link without error, but may produce a broken library.
5678
allow_undefined_flag='-berok'
5679
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5680
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5682
if test "$host_cpu" = ia64; then
5683
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5684
allow_undefined_flag="-z nodefs"
5685
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5687
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5688
# Warning - without using the other run time loading flags,
5689
# -berok will link without error, but may produce a broken library.
5690
allow_undefined_flag='${wl}-berok'
5691
# This is a bit strange, but is similar to how AIX traditionally builds
5692
# it's shared libraries.
5693
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5699
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)'
5700
hardcode_libdir_flag_spec='-L$libdir'
5701
hardcode_minus_L=yes
5702
# see comment about different semantics on the GNU ld section
5706
cygwin* | mingw* | pw32*)
5707
# When not using gcc, we currently assume that we are using
5708
# Microsoft Visual C++.
5709
# hardcode_libdir_flag_spec is actually meaningless, as there is
5710
# no search path for DLLs.
5711
hardcode_libdir_flag_spec=' '
5712
allow_undefined_flag=unsupported
5713
# Tell ltmain to make .lib files, not .a files.
5715
# FIXME: Setting linknames here is a bad hack.
5716
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5717
# The linker will automatically build a .lib file if we build a DLL.
5718
old_archive_from_new_cmds='true'
5719
# FIXME: Should let the user specify the lib program.
5720
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5721
fix_srcfile_path='`cygpath -w "$srcfile"`'
5724
darwin* | rhapsody*)
5726
rhapsody* | darwin1.[012])
5727
allow_undefined_flag='-undefined suppress'
5730
allow_undefined_flag='-flat_namespace -undefined suppress'
5733
# FIXME: Relying on posixy $() will cause problems for
5734
# cross-compilation, but unfortunately the echo tests do not
5735
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
5736
# `"' quotes if we put them in here... so don't!
5737
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5738
# We need to add '_' to the symbols in $export_symbols first
5739
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5741
hardcode_shlibpath_var=no
5742
whole_archive_flag_spec='-all_load $convenience'
5749
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5750
# support. Future versions do this automatically, but an explicit c++rt0.o
5751
# does not break anything, and helps significantly (at the cost of a little
5754
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5755
hardcode_libdir_flag_spec='-R$libdir'
5757
hardcode_shlibpath_var=no
5760
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5762
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5764
hardcode_minus_L=yes
5765
hardcode_shlibpath_var=no
5768
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5770
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5771
hardcode_libdir_flag_spec='-R$libdir'
5773
hardcode_shlibpath_var=no
5776
hpux9* | hpux10* | hpux11*)
5778
hpux9*) 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' ;;
5779
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5781
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5782
hardcode_libdir_separator=:
5784
hardcode_minus_L=yes # Not in the search PATH, but as the default
5785
# location of the library.
5786
export_dynamic_flag_spec='${wl}-E'
5789
irix5* | irix6* | nonstopux*)
5790
if test "$GCC" = yes; then
5791
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5792
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5794
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5795
hardcode_libdir_flag_spec='-rpath $libdir'
5797
hardcode_libdir_separator=:
5798
link_all_deplibs=yes
5802
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5803
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5805
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5807
hardcode_libdir_flag_spec='-R$libdir'
5809
hardcode_shlibpath_var=no
5813
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5815
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5816
hardcode_libdir_separator=:
5817
hardcode_shlibpath_var=no
5822
hardcode_shlibpath_var=no
5823
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5824
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5825
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5826
export_dynamic_flag_spec='${wl}-E'
5829
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5830
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5831
hardcode_libdir_flag_spec='-R$libdir'
5834
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5835
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5842
hardcode_libdir_flag_spec='-L$libdir'
5843
hardcode_minus_L=yes
5844
allow_undefined_flag=unsupported
5845
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'
5846
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5850
if test "$GCC" = yes; then
5851
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5852
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5854
allow_undefined_flag=' -expect_unresolved \*'
5855
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5857
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5858
hardcode_libdir_separator=:
5861
osf4* | osf5*) # as osf3* with the addition of -msym flag
5862
if test "$GCC" = yes; then
5863
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5864
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5865
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5867
allow_undefined_flag=' -expect_unresolved \*'
5868
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5869
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5870
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5872
#Both c and cxx compiler support -rpath directly
5873
hardcode_libdir_flag_spec='-rpath $libdir'
5875
hardcode_libdir_separator=:
5879
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880
hardcode_shlibpath_var=no
5881
runpath_var=LD_RUN_PATH
5882
hardcode_runpath_var=yes
5883
export_dynamic_flag_spec='${wl}-Bexport'
5887
# gcc --version < 3.0 without binutils cannot create self contained
5888
# shared libraries reliably, requiring libgcc.a to resolve some of
5889
# the object symbols generated in some cases. Libraries that use
5890
# assert need libgcc.a to resolve __eprintf, for example. Linking
5891
# a copy of libgcc.a into every shared library to guarantee resolving
5892
# such symbols causes other problems: According to Tim Van Holder
5893
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5894
# (to the application) exception stack for one thing.
5895
no_undefined_flag=' -z defs'
5896
if test "$GCC" = yes; then
5897
case `$CC --version 2>/dev/null` in
5901
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5902
*** create self contained shared libraries on Solaris systems, without
5903
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5904
*** -no-undefined support, which will at least allow you to build shared
5905
*** libraries. However, you may find that when you link such libraries
5906
*** into an application without using GCC, you have to manually add
5907
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5908
*** upgrade to a newer version of GCC. Another option is to rebuild your
5909
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5916
# $CC -shared without GNU ld will not create a library from C++
5917
# object files and a static libstdc++, better avoid it by now
5918
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5919
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5920
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5921
hardcode_libdir_flag_spec='-R$libdir'
5922
hardcode_shlibpath_var=no
5924
solaris2.[0-5] | solaris2.[0-5].*) ;;
5925
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5926
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5928
link_all_deplibs=yes
5932
if test "x$host_vendor" = xsequent; then
5933
# Use $CC to link under sequent, because it throws in some extra .o
5934
# files that make .init and .fini sections work.
5935
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5937
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5939
hardcode_libdir_flag_spec='-L$libdir'
5941
hardcode_minus_L=yes
5942
hardcode_shlibpath_var=no
5946
case $host_vendor in
5948
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5949
hardcode_direct=yes # is this really true???
5952
## LD is ld it makes a PLAMLIB
5953
## CC just makes a GrossModule.
5954
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5955
reload_cmds='$CC -r -o $output$reload_objs'
5959
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5960
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5963
runpath_var='LD_RUN_PATH'
5964
hardcode_shlibpath_var=no
5968
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5969
hardcode_shlibpath_var=no
5970
export_dynamic_flag_spec='-Bexport'
5974
no_undefined_flag=' -z text'
5975
# $CC -shared without GNU ld will not create a library from C++
5976
# object files and a static libstdc++, better avoid it by now
5977
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5979
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5980
hardcode_libdir_flag_spec=
5981
hardcode_shlibpath_var=no
5982
runpath_var='LD_RUN_PATH'
5986
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5987
hardcode_libdir_flag_spec='-L$libdir'
5988
hardcode_shlibpath_var=no
5992
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993
hardcode_libdir_flag_spec='-L$libdir'
5994
hardcode_shlibpath_var=no
5998
if test -d /usr/nec; then
5999
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000
hardcode_shlibpath_var=no
6001
runpath_var=LD_RUN_PATH
6002
hardcode_runpath_var=yes
6008
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6011
hardcode_shlibpath_var=no
6012
hardcode_runpath_var=yes
6013
runpath_var=LD_RUN_PATH
6016
sysv5uw7* | unixware7*)
6017
no_undefined_flag='${wl}-z ${wl}text'
6018
if test "$GCC" = yes; then
6019
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6021
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6023
runpath_var='LD_RUN_PATH'
6024
hardcode_shlibpath_var=no
6032
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6033
echo "${ECHO_T}$ld_shlibs" >&6
6034
test "$ld_shlibs" = no && can_build_shared=no
6036
# Check hardcoding attributes.
6037
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6038
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6040
if test -n "$hardcode_libdir_flag_spec" || \
6041
test -n "$runpath_var"; then
6043
# We can hardcode non-existant directories.
6044
if test "$hardcode_direct" != no &&
6045
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6046
# have to relink, otherwise we might link with an installed library
6047
# when we should be linking with a yet-to-be-installed one
6048
## test "$hardcode_shlibpath_var" != no &&
6049
test "$hardcode_minus_L" != no; then
6050
# Linking always hardcodes the temporary library directory.
6051
hardcode_action=relink
6053
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6054
hardcode_action=immediate
6057
# We cannot hardcode anything, or else we can only hardcode existing
6059
hardcode_action=unsupported
6061
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6062
echo "${ECHO_T}$hardcode_action" >&6
6066
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6067
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6068
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6069
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6070
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6071
echo "$as_me:$LINENO: result: yes" >&5
6072
echo "${ECHO_T}yes" >&6
6074
echo "$as_me:$LINENO: result: no" >&5
6075
echo "${ECHO_T}no" >&6
6078
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6079
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6081
# PORTME Fill in your ld.so characteristics
6082
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6083
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6085
libname_spec='lib$name'
6092
shlibpath_overrides_runpath=unknown
6094
dynamic_linker="$host_os ld.so"
6095
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6096
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6101
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6102
shlibpath_var=LIBPATH
6104
# AIX has no versioning support, so we append a major version to the name.
6105
soname_spec='${libname}${release}.so$major'
6112
hardcode_into_libs=yes
6113
if test "$host_cpu" = ia64; then
6114
# AIX 5 supports IA64
6115
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6116
shlibpath_var=LD_LIBRARY_PATH
6118
# With GCC up to 2.95.x, collect2 would create an import file
6119
# for dependence libraries. The import file would start with
6120
# the line `#! .'. This would cause the generated library to
6121
# depend on `.', always an invalid library. This was fixed in
6122
# development snapshots of GCC prior to 3.0.
6124
aix4 | aix4.[01] | aix4.[01].*)
6125
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6127
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6134
# AIX (on Power*) has no versioning support, so currently we can
6135
# not hardcode correct soname into executable. Probably we can
6136
# add versioning support to collect2, so additional links can
6137
# be useful in future.
6138
if test "$aix_use_runtimelinking" = yes; then
6139
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6140
# instead of lib<name>.a to let people know that these are not
6141
# typical AIX shared libraries.
6142
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6144
# We preserve .a as extension for shared libraries through AIX4.2
6145
# and later when we are not doing run time linking.
6146
library_names_spec='${libname}${release}.a $libname.a'
6147
soname_spec='${libname}${release}.so$major'
6149
shlibpath_var=LIBPATH
6151
hardcode_into_libs=yes
6155
library_names_spec='$libname.ixlibrary $libname.a'
6156
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6157
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'
6161
library_names_spec='${libname}.so'
6162
dynamic_linker="$host_os ld.so"
6163
shlibpath_var=LIBRARY_PATH
6169
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6170
soname_spec='${libname}${release}.so$major'
6171
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6172
shlibpath_var=LD_LIBRARY_PATH
6173
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6174
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6175
export_dynamic_flag_spec=-rdynamic
6176
# the default ld.so.conf also contains /usr/contrib/lib and
6177
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6178
# libtool to hard-code these into programs
6181
cygwin* | mingw* | pw32*)
6182
version_type=windows
6185
case $GCC,$host_os in
6187
library_names_spec='$libname.dll.a'
6188
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6189
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6190
dldir=$destdir/`dirname \$dlpath`~
6191
test -d \$dldir || mkdir -p \$dldir~
6192
$install_prog .libs/$dlname \$dldir/$dlname'
6193
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6194
dlpath=$dir/\$dldll~
6198
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6199
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6202
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6205
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6208
dynamic_linker='Win32 ld.exe'
6209
# FIXME: first we should search . and the directory the executable is in
6213
darwin* | rhapsody*)
6214
dynamic_linker="$host_os dyld"
6218
# FIXME: Relying on posixy $() will cause problems for
6219
# cross-compilation, but unfortunately the echo tests do not
6220
# yet detect zsh echo's removal of \ escapes.
6221
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6222
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6223
shlibpath_overrides_runpath=yes
6224
shlibpath_var=DYLD_LIBRARY_PATH
6235
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6236
soname_spec='${libname}${release}.so$major'
6237
shlibpath_var=LD_LIBRARY_PATH
6238
shlibpath_overrides_runpath=no
6239
hardcode_into_libs=yes
6240
dynamic_linker='GNU/FreeBSD ld.so'
6244
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6245
version_type=freebsd-$objformat
6246
case $version_type in
6248
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6253
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6257
shlibpath_var=LD_LIBRARY_PATH
6260
shlibpath_overrides_runpath=yes
6263
shlibpath_overrides_runpath=no
6264
hardcode_into_libs=yes
6273
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6274
soname_spec='${libname}${release}.so$major'
6275
shlibpath_var=LD_LIBRARY_PATH
6276
hardcode_into_libs=yes
6279
hpux9* | hpux10* | hpux11*)
6280
# Give a soname corresponding to the major version so that dld.sl refuses to
6281
# link against other versions.
6282
dynamic_linker="$host_os dld.sl"
6286
shlibpath_var=SHLIB_PATH
6287
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6288
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6289
soname_spec='${libname}${release}.sl$major'
6290
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6291
postinstall_cmds='chmod 555 $lib'
6294
irix5* | irix6* | nonstopux*)
6296
nonstopux*) version_type=nonstopux ;;
6297
*) version_type=irix ;;
6301
soname_spec='${libname}${release}.so$major'
6302
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6304
irix5* | nonstopux*)
6308
case $LD in # libtool.m4 will add one of these switches to LD
6309
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6310
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6311
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6312
*) libsuff= shlibsuff= libmagic=never-match;;
6316
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6317
shlibpath_overrides_runpath=no
6318
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6319
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6322
# No shared lib support for Linux oldld, aout, or coff.
6323
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6327
# This must be Linux ELF.
6332
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6333
soname_spec='${libname}${release}.so$major'
6334
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6335
shlibpath_var=LD_LIBRARY_PATH
6336
shlibpath_overrides_runpath=no
6337
# This implies no fast_install, which is unacceptable.
6338
# Some rework will be needed to allow for fast_install
6339
# before this can be enabled.
6340
hardcode_into_libs=yes
6342
# We used to test for /lib/ld.so.1 and disable shared libraries on
6343
# powerpc, because MkLinux only supported shared libraries with the
6344
# GNU dynamic linker. Since this was broken with cross compilers,
6345
# most powerpc-linux boxes support dynamic linking these days and
6346
# people can always --disable-shared, the test was removed, and we
6347
# assume the GNU/Linux dynamic linker is in use.
6348
dynamic_linker='GNU/Linux ld.so'
6355
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6356
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6358
dynamic_linker='NetBSD (a.out) ld.so'
6360
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6361
soname_spec='${libname}${release}.so$major'
6362
dynamic_linker='NetBSD ld.elf_so'
6364
shlibpath_var=LD_LIBRARY_PATH
6365
shlibpath_overrides_runpath=yes
6366
hardcode_into_libs=yes
6371
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6372
shlibpath_var=LD_LIBRARY_PATH
6373
shlibpath_overrides_runpath=yes
6380
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6382
openbsd2.[89] | openbsd2.[89].*)
6383
shlibpath_overrides_runpath=no
6386
shlibpath_overrides_runpath=yes
6390
shlibpath_overrides_runpath=yes
6392
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6393
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6394
shlibpath_var=LD_LIBRARY_PATH
6398
libname_spec='$name'
6400
library_names_spec='$libname.dll $libname.a'
6401
dynamic_linker='OS/2 ld.exe'
6402
shlibpath_var=LIBPATH
6405
osf3* | osf4* | osf5*)
6409
soname_spec='${libname}${release}.so$major'
6410
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6411
shlibpath_var=LD_LIBRARY_PATH
6412
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6413
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6414
hardcode_into_libs=yes
6419
soname_spec='${libname}${release}.so$major'
6420
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6421
shlibpath_var=LD_LIBRARY_PATH
6428
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429
soname_spec='${libname}${release}.so$major'
6430
shlibpath_var=LD_LIBRARY_PATH
6431
shlibpath_overrides_runpath=yes
6432
hardcode_into_libs=yes
6433
# ldd complains unless libraries are executable
6434
postinstall_cmds='chmod +x $lib'
6439
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6440
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6441
shlibpath_var=LD_LIBRARY_PATH
6442
shlibpath_overrides_runpath=yes
6443
if test "$with_gnu_ld" = yes; then
6449
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6451
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452
soname_spec='${libname}${release}.so$major'
6453
shlibpath_var=LD_LIBRARY_PATH
6454
case $host_vendor in
6456
shlibpath_overrides_runpath=no
6458
export_dynamic_flag_spec='${wl}-Blargedynsym'
6459
runpath_var=LD_RUN_PATH
6467
shlibpath_overrides_runpath=no
6468
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6475
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6476
soname_spec='${libname}${release}.so$major'
6477
shlibpath_var=LD_LIBRARY_PATH
6484
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6485
soname_spec='${libname}${release}.so$major'
6486
shlibpath_var=LD_LIBRARY_PATH
6490
if test -d /usr/nec ;then
6492
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6493
soname_spec='$libname.so.$major'
6494
shlibpath_var=LD_LIBRARY_PATH
6502
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6503
echo "${ECHO_T}$dynamic_linker" >&6
6504
test "$dynamic_linker" = no && can_build_shared=no
6506
# Report the final consequences.
6507
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6508
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6509
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6510
echo "${ECHO_T}$can_build_shared" >&6
6512
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6513
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6514
test "$can_build_shared" = "no" && enable_shared=no
6516
# On AIX, shared libraries and static libraries use the same namespace, and
6517
# are all built from PIC.
6520
test "$enable_shared" = yes && enable_static=no
6521
if test -n "$RANLIB"; then
6522
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6523
postinstall_cmds='$RANLIB $lib'
6528
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6529
test "$enable_shared" = yes && enable_static=no
6533
echo "$as_me:$LINENO: result: $enable_shared" >&5
6534
echo "${ECHO_T}$enable_shared" >&6
6536
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6537
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6538
# Make sure either enable_shared or enable_static is yes.
6539
test "$enable_shared" = yes || enable_static=yes
6540
echo "$as_me:$LINENO: result: $enable_static" >&5
6541
echo "${ECHO_T}$enable_static" >&6
6543
if test "$hardcode_action" = relink; then
6544
# Fast installation is not supported
6545
enable_fast_install=no
6546
elif test "$shlibpath_overrides_runpath" = yes ||
6547
test "$enable_shared" = no; then
6548
# Fast installation is not necessary
6549
enable_fast_install=needless
6552
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6553
if test "$GCC" = yes; then
6554
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6557
if test "x$enable_dlopen" != xyes; then
6558
enable_dlopen=unknown
6559
enable_dlopen_self=unknown
6560
enable_dlopen_self_static=unknown
6567
lt_cv_dlopen="load_add_on"
6569
lt_cv_dlopen_self=yes
6572
cygwin* | mingw* | pw32*)
6573
lt_cv_dlopen="LoadLibrary"
6578
echo "$as_me:$LINENO: checking for shl_load" >&5
6579
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6580
if test "${ac_cv_func_shl_load+set}" = set; then
6581
echo $ECHO_N "(cached) $ECHO_C" >&6
6583
cat >conftest.$ac_ext <<_ACEOF
6584
#line $LINENO "configure"
6587
cat confdefs.h >>conftest.$ac_ext
6588
cat >>conftest.$ac_ext <<_ACEOF
6589
/* end confdefs.h. */
6590
/* System header to define __stub macros and hopefully few prototypes,
6591
which can conflict with char shl_load (); below.
6592
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593
<limits.h> exists even on freestanding compilers. */
6595
# include <limits.h>
6597
# include <assert.h>
6599
/* Override any gcc2 internal prototype to avoid an error. */
6604
/* We use char because int might match the return type of a gcc2
6605
builtin and then its argument prototype would still apply. */
6607
/* The GNU C library defines this for functions which it implements
6608
to always fail with ENOSYS. Some functions are actually named
6609
something starting with __ and the normal name is an alias. */
6610
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6613
char (*f) () = shl_load;
6622
return f != shl_load;
6627
rm -f conftest.$ac_objext conftest$ac_exeext
6628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629
(eval $ac_link) 2>&5
6631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632
(exit $ac_status); } &&
6633
{ ac_try='test -s conftest$ac_exeext'
6634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638
(exit $ac_status); }; }; then
6639
ac_cv_func_shl_load=yes
6641
echo "$as_me: failed program was:" >&5
6642
sed 's/^/| /' conftest.$ac_ext >&5
6644
ac_cv_func_shl_load=no
6646
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6649
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6650
if test $ac_cv_func_shl_load = yes; then
6651
lt_cv_dlopen="shl_load"
6653
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6654
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6655
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6656
echo $ECHO_N "(cached) $ECHO_C" >&6
6658
ac_check_lib_save_LIBS=$LIBS
6660
cat >conftest.$ac_ext <<_ACEOF
6661
#line $LINENO "configure"
6664
cat confdefs.h >>conftest.$ac_ext
6665
cat >>conftest.$ac_ext <<_ACEOF
6666
/* end confdefs.h. */
6668
/* Override any gcc2 internal prototype to avoid an error. */
6672
/* We use char because int might match the return type of a gcc2
6673
builtin and then its argument prototype would still apply. */
6683
rm -f conftest.$ac_objext conftest$ac_exeext
6684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685
(eval $ac_link) 2>&5
6687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688
(exit $ac_status); } &&
6689
{ ac_try='test -s conftest$ac_exeext'
6690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694
(exit $ac_status); }; }; then
6695
ac_cv_lib_dld_shl_load=yes
6697
echo "$as_me: failed program was:" >&5
6698
sed 's/^/| /' conftest.$ac_ext >&5
6700
ac_cv_lib_dld_shl_load=no
6702
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703
LIBS=$ac_check_lib_save_LIBS
6705
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6706
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6707
if test $ac_cv_lib_dld_shl_load = yes; then
6708
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6710
echo "$as_me:$LINENO: checking for dlopen" >&5
6711
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6712
if test "${ac_cv_func_dlopen+set}" = set; then
6713
echo $ECHO_N "(cached) $ECHO_C" >&6
6715
cat >conftest.$ac_ext <<_ACEOF
6716
#line $LINENO "configure"
6719
cat confdefs.h >>conftest.$ac_ext
6720
cat >>conftest.$ac_ext <<_ACEOF
6721
/* end confdefs.h. */
6722
/* System header to define __stub macros and hopefully few prototypes,
6723
which can conflict with char dlopen (); below.
6724
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6725
<limits.h> exists even on freestanding compilers. */
6727
# include <limits.h>
6729
# include <assert.h>
6731
/* Override any gcc2 internal prototype to avoid an error. */
6736
/* We use char because int might match the return type of a gcc2
6737
builtin and then its argument prototype would still apply. */
6739
/* The GNU C library defines this for functions which it implements
6740
to always fail with ENOSYS. Some functions are actually named
6741
something starting with __ and the normal name is an alias. */
6742
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6745
char (*f) () = dlopen;
6759
rm -f conftest.$ac_objext conftest$ac_exeext
6760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761
(eval $ac_link) 2>&5
6763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
(exit $ac_status); } &&
6765
{ ac_try='test -s conftest$ac_exeext'
6766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770
(exit $ac_status); }; }; then
6771
ac_cv_func_dlopen=yes
6773
echo "$as_me: failed program was:" >&5
6774
sed 's/^/| /' conftest.$ac_ext >&5
6776
ac_cv_func_dlopen=no
6778
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6780
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6781
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6782
if test $ac_cv_func_dlopen = yes; then
6783
lt_cv_dlopen="dlopen"
6785
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6786
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6787
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6788
echo $ECHO_N "(cached) $ECHO_C" >&6
6790
ac_check_lib_save_LIBS=$LIBS
6792
cat >conftest.$ac_ext <<_ACEOF
6793
#line $LINENO "configure"
6796
cat confdefs.h >>conftest.$ac_ext
6797
cat >>conftest.$ac_ext <<_ACEOF
6798
/* end confdefs.h. */
6800
/* Override any gcc2 internal prototype to avoid an error. */
6804
/* We use char because int might match the return type of a gcc2
6805
builtin and then its argument prototype would still apply. */
6815
rm -f conftest.$ac_objext conftest$ac_exeext
6816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6817
(eval $ac_link) 2>&5
6819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
(exit $ac_status); } &&
6821
{ ac_try='test -s conftest$ac_exeext'
6822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826
(exit $ac_status); }; }; then
6827
ac_cv_lib_dl_dlopen=yes
6829
echo "$as_me: failed program was:" >&5
6830
sed 's/^/| /' conftest.$ac_ext >&5
6832
ac_cv_lib_dl_dlopen=no
6834
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835
LIBS=$ac_check_lib_save_LIBS
6837
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6838
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6839
if test $ac_cv_lib_dl_dlopen = yes; then
6840
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6842
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6843
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6844
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6845
echo $ECHO_N "(cached) $ECHO_C" >&6
6847
ac_check_lib_save_LIBS=$LIBS
6849
cat >conftest.$ac_ext <<_ACEOF
6850
#line $LINENO "configure"
6853
cat confdefs.h >>conftest.$ac_ext
6854
cat >>conftest.$ac_ext <<_ACEOF
6855
/* end confdefs.h. */
6857
/* Override any gcc2 internal prototype to avoid an error. */
6861
/* We use char because int might match the return type of a gcc2
6862
builtin and then its argument prototype would still apply. */
6872
rm -f conftest.$ac_objext conftest$ac_exeext
6873
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874
(eval $ac_link) 2>&5
6876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877
(exit $ac_status); } &&
6878
{ ac_try='test -s conftest$ac_exeext'
6879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883
(exit $ac_status); }; }; then
6884
ac_cv_lib_svld_dlopen=yes
6886
echo "$as_me: failed program was:" >&5
6887
sed 's/^/| /' conftest.$ac_ext >&5
6889
ac_cv_lib_svld_dlopen=no
6891
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6892
LIBS=$ac_check_lib_save_LIBS
6894
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6895
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6896
if test $ac_cv_lib_svld_dlopen = yes; then
6897
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6899
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6900
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6901
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6902
echo $ECHO_N "(cached) $ECHO_C" >&6
6904
ac_check_lib_save_LIBS=$LIBS
6906
cat >conftest.$ac_ext <<_ACEOF
6907
#line $LINENO "configure"
6910
cat confdefs.h >>conftest.$ac_ext
6911
cat >>conftest.$ac_ext <<_ACEOF
6912
/* end confdefs.h. */
6914
/* Override any gcc2 internal prototype to avoid an error. */
6918
/* We use char because int might match the return type of a gcc2
6919
builtin and then its argument prototype would still apply. */
6929
rm -f conftest.$ac_objext conftest$ac_exeext
6930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931
(eval $ac_link) 2>&5
6933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934
(exit $ac_status); } &&
6935
{ ac_try='test -s conftest$ac_exeext'
6936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940
(exit $ac_status); }; }; then
6941
ac_cv_lib_dld_dld_link=yes
6943
echo "$as_me: failed program was:" >&5
6944
sed 's/^/| /' conftest.$ac_ext >&5
6946
ac_cv_lib_dld_dld_link=no
6948
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6949
LIBS=$ac_check_lib_save_LIBS
6951
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6952
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6953
if test $ac_cv_lib_dld_dld_link = yes; then
6954
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6975
if test "x$lt_cv_dlopen" != xno; then
6981
case $lt_cv_dlopen in
6983
save_CPPFLAGS="$CPPFLAGS"
6984
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6986
save_LDFLAGS="$LDFLAGS"
6987
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6990
LIBS="$lt_cv_dlopen_libs $LIBS"
6992
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6993
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6994
if test "${lt_cv_dlopen_self+set}" = set; then
6995
echo $ECHO_N "(cached) $ECHO_C" >&6
6997
if test "$cross_compiling" = yes; then :
6998
lt_cv_dlopen_self=cross
7000
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7001
lt_status=$lt_dlunknown
7002
cat > conftest.$ac_ext <<EOF
7003
#line 7003 "configure"
7004
#include "confdefs.h"
7013
# define LT_DLGLOBAL RTLD_GLOBAL
7016
# define LT_DLGLOBAL DL_GLOBAL
7018
# define LT_DLGLOBAL 0
7022
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7023
find out it does not work in some platform. */
7024
#ifndef LT_DLLAZY_OR_NOW
7026
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7029
# define LT_DLLAZY_OR_NOW DL_LAZY
7032
# define LT_DLLAZY_OR_NOW RTLD_NOW
7035
# define LT_DLLAZY_OR_NOW DL_NOW
7037
# define LT_DLLAZY_OR_NOW 0
7045
extern "C" void exit (int);
7048
void fnord() { int i=42;}
7051
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7052
int status = $lt_dlunknown;
7056
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7057
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7058
/* dlclose (self); */
7064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065
(eval $ac_link) 2>&5
7067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7069
(./conftest; exit; ) 2>/dev/null
7072
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7073
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7074
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7077
# compilation failed
7078
lt_cv_dlopen_self=no
7085
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7086
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7088
if test "x$lt_cv_dlopen_self" = xyes; then
7089
LDFLAGS="$LDFLAGS $link_static_flag"
7090
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7091
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7092
if test "${lt_cv_dlopen_self_static+set}" = set; then
7093
echo $ECHO_N "(cached) $ECHO_C" >&6
7095
if test "$cross_compiling" = yes; then :
7096
lt_cv_dlopen_self_static=cross
7098
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7099
lt_status=$lt_dlunknown
7100
cat > conftest.$ac_ext <<EOF
7101
#line 7101 "configure"
7102
#include "confdefs.h"
7111
# define LT_DLGLOBAL RTLD_GLOBAL
7114
# define LT_DLGLOBAL DL_GLOBAL
7116
# define LT_DLGLOBAL 0
7120
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7121
find out it does not work in some platform. */
7122
#ifndef LT_DLLAZY_OR_NOW
7124
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7127
# define LT_DLLAZY_OR_NOW DL_LAZY
7130
# define LT_DLLAZY_OR_NOW RTLD_NOW
7133
# define LT_DLLAZY_OR_NOW DL_NOW
7135
# define LT_DLLAZY_OR_NOW 0
7143
extern "C" void exit (int);
7146
void fnord() { int i=42;}
7149
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7150
int status = $lt_dlunknown;
7154
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7155
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7156
/* dlclose (self); */
7162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163
(eval $ac_link) 2>&5
7165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7167
(./conftest; exit; ) 2>/dev/null
7170
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7171
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7172
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7175
# compilation failed
7176
lt_cv_dlopen_self_static=no
7183
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7184
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7187
CPPFLAGS="$save_CPPFLAGS"
7188
LDFLAGS="$save_LDFLAGS"
7193
case $lt_cv_dlopen_self in
7194
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7195
*) enable_dlopen_self=unknown ;;
7198
case $lt_cv_dlopen_self_static in
7199
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7200
*) enable_dlopen_self_static=unknown ;;
7205
if test "$enable_shared" = yes && test "$GCC" = yes; then
7206
case $archive_cmds in
7208
# FIXME: we may have to deal with multi-command sequences.
7211
# Test whether the compiler implicitly links with -lc since on some
7212
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7213
# to ld, don't add -lc before -lgcc.
7214
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7215
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7216
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7217
echo $ECHO_N "(cached) $ECHO_C" >&6
7220
echo 'static int dummy;' > conftest.$ac_ext
7222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223
(eval $ac_compile) 2>&5
7225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226
(exit $ac_status); }; then
7229
libobjs=conftest.$ac_objext
7231
wl=$lt_cv_prog_cc_wl
7237
save_allow_undefined_flag=$allow_undefined_flag
7238
allow_undefined_flag=
7239
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7240
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
(exit $ac_status); }
7245
lt_cv_archive_cmds_need_lc=no
7247
lt_cv_archive_cmds_need_lc=yes
7249
allow_undefined_flag=$save_allow_undefined_flag
7251
cat conftest.err 1>&5
7255
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7256
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7260
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7262
# The second clause should only fire when bootstrapping the
7263
# libtool distribution, otherwise you forgot to ship ltmain.sh
7264
# with your package, and you will get complaints that there are
7265
# no rules to generate ltmain.sh.
7266
if test -f "$ltmain"; then
1419
# Save cache, so that ltconfig can load it
1420
cat > confcache <<\EOF
1421
# This file is a shell script that caches the results of configure
1422
# tests run on this system so they can be shared between configure
1423
# scripts and configure runs. It is not useful on other systems.
1424
# If it contains results you don't want to keep, you may remove or edit it.
1426
# By default, configure uses ./config.cache as the cache file,
1427
# creating it if it does not exist already. You can give configure
1428
# the --cache-file=FILE option to use a different cache file; that is
1429
# what configure does when it calls configure scripts in
1430
# subdirectories, so they share the cache.
1431
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1432
# config.status only pays attention to the cache file if you give it the
1433
# --recheck option to rerun configure.
1436
# The following way of writing the cache mishandles newlines in values,
1437
# but we know of no workaround that is simple, portable, and efficient.
1438
# So, don't put newlines in cache variables' values.
1439
# Ultrix sh set writes to stderr and can't be redirected directly,
1440
# and sets the high bit in the cache file unless we assign to the vars.
1442
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1444
# `set' does not quote correctly, so add quotes (double-quote substitution
1445
# turns \\\\ into \\, and sed turns \\ into \).
1447
-e "s/'/'\\\\''/g" \
1448
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1451
# `set' quotes correctly as required by POSIX, so do not add quotes.
1452
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1455
if cmp -s $cache_file confcache; then
7269
# If there is no Makefile yet, we rely on a make rule to execute
7270
# `config.status --recheck' to rerun these tests and create the
7271
# libtool script then.
7272
test -f Makefile && make "$ltmain"
7275
if test -f "$ltmain"; then
7276
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7279
echo creating $ofile
7281
# Now quote all the things that may contain metacharacters while being
7282
# careful not to overquote the AC_SUBSTed values. We take copies of the
7283
# variables and quote the copies for generation of the libtool script.
7284
for var in echo old_CC old_CFLAGS SED \
7285
AR AR_FLAGS CC LD LN_S NM SHELL \
7286
reload_flag reload_cmds wl \
7287
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7288
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7289
library_names_spec soname_spec \
7290
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7291
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7292
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7293
old_striplib striplib file_magic_cmd export_symbols_cmds \
7294
deplibs_check_method allow_undefined_flag no_undefined_flag \
7295
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7296
global_symbol_to_c_name_address \
7297
hardcode_libdir_flag_spec hardcode_libdir_separator \
7298
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7299
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7302
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7303
old_postinstall_cmds | old_postuninstall_cmds | \
7304
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7305
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7306
postinstall_cmds | postuninstall_cmds | \
7307
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7308
# Double-quote double-evaled strings.
7309
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7312
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7317
cat <<__EOF__ > "${ofile}T"
7320
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7321
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7322
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7324
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7325
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7327
# This program is free software; you can redistribute it and/or modify
7328
# it under the terms of the GNU General Public License as published by
7329
# the Free Software Foundation; either version 2 of the License, or
7330
# (at your option) any later version.
7332
# This program is distributed in the hope that it will be useful, but
7333
# WITHOUT ANY WARRANTY; without even the implied warranty of
7334
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7335
# General Public License for more details.
7337
# You should have received a copy of the GNU General Public License
7338
# along with this program; if not, write to the Free Software
7339
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7341
# As a special exception to the GNU General Public License, if you
7342
# distribute this file as part of a program that contains a
7343
# configuration script generated by Autoconf, you may include it under
7344
# the same distribution terms that you use for the rest of that program.
7346
# A sed that does not truncate output.
7349
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7350
Xsed="${SED} -e s/^X//"
7352
# The HP-UX ksh and POSIX shell print the target directory to stdout
7354
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7356
# ### BEGIN LIBTOOL CONFIG
7358
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7360
# Shell to use when invoking shell scripts.
7363
# Whether or not to build shared libraries.
7364
build_libtool_libs=$enable_shared
7366
# Whether or not to build static libraries.
7367
build_old_libs=$enable_static
7369
# Whether or not to add -lc for building shared libraries.
7370
build_libtool_need_lc=$need_lc
7372
# Whether or not to optimize for fast installation.
7373
fast_install=$enable_fast_install
7376
host_alias=$host_alias
7379
# An echo program that does not interpret backslashes.
7384
AR_FLAGS=$lt_AR_FLAGS
7386
# The default C compiler.
7389
# Is the compiler the GNU C compiler?
7392
# The linker used to build libraries.
7395
# Whether we need hard or soft links.
7398
# A BSD-compatible nm program.
7401
# A symbol stripping program
7404
# Used to examine libraries when file_magic_cmd begins "file"
7405
MAGIC_CMD=$MAGIC_CMD
7407
# Used on cygwin: DLL creation program.
7410
# Used on cygwin: object dumper.
7413
# Used on cygwin: assembler.
7416
# The name of the directory that contains temporary libtool files.
7419
# How to create reloadable object files.
7420
reload_flag=$lt_reload_flag
7421
reload_cmds=$lt_reload_cmds
7423
# How to pass a linker flag through the compiler.
7426
# Object file suffix (normally "o").
7429
# Old archive suffix (normally "a").
7432
# Executable file suffix (normally "").
7435
# Additional compiler flags for building library objects.
7436
pic_flag=$lt_pic_flag
7439
# Does compiler simultaneously support -c and -o options?
7440
compiler_c_o=$lt_compiler_c_o
7442
# Can we write directly to a .lo ?
7443
compiler_o_lo=$lt_compiler_o_lo
7445
# Must we lock files when doing compilation ?
7446
need_locks=$lt_need_locks
7448
# Do we need the lib prefix for modules?
7449
need_lib_prefix=$need_lib_prefix
7451
# Do we need a version for libraries?
7452
need_version=$need_version
7454
# Whether dlopen is supported.
7455
dlopen_support=$enable_dlopen
7457
# Whether dlopen of programs is supported.
7458
dlopen_self=$enable_dlopen_self
7460
# Whether dlopen of statically linked programs is supported.
7461
dlopen_self_static=$enable_dlopen_self_static
7463
# Compiler flag to prevent dynamic linking.
7464
link_static_flag=$lt_link_static_flag
7466
# Compiler flag to turn off builtin functions.
7467
no_builtin_flag=$lt_no_builtin_flag
7469
# Compiler flag to allow reflexive dlopens.
7470
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7472
# Compiler flag to generate shared objects directly from archives.
7473
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7475
# Compiler flag to generate thread-safe objects.
7476
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7478
# Library versioning type.
7479
version_type=$version_type
7481
# Format of library name prefix.
7482
libname_spec=$lt_libname_spec
7484
# List of archive names. First name is the real one, the rest are links.
7485
# The last name is the one that the linker finds with -lNAME.
7486
library_names_spec=$lt_library_names_spec
7488
# The coded name of the library, if different from the real name.
7489
soname_spec=$lt_soname_spec
7491
# Commands used to build and install an old-style archive.
7493
old_archive_cmds=$lt_old_archive_cmds
7494
old_postinstall_cmds=$lt_old_postinstall_cmds
7495
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7497
# Create an old-style archive from a shared archive.
7498
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7500
# Create a temporary old-style archive to link instead of a shared archive.
7501
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7503
# Commands used to build and install a shared archive.
7504
archive_cmds=$lt_archive_cmds
7505
archive_expsym_cmds=$lt_archive_expsym_cmds
7506
postinstall_cmds=$lt_postinstall_cmds
7507
postuninstall_cmds=$lt_postuninstall_cmds
7509
# Commands to strip libraries.
7510
old_striplib=$lt_old_striplib
7511
striplib=$lt_striplib
7513
# Method to check whether dependent libraries are shared objects.
7514
deplibs_check_method=$lt_deplibs_check_method
7516
# Command to use when deplibs_check_method == file_magic.
7517
file_magic_cmd=$lt_file_magic_cmd
7519
# Flag that allows shared libraries with undefined symbols to be built.
7520
allow_undefined_flag=$lt_allow_undefined_flag
7522
# Flag that forces no undefined symbols.
7523
no_undefined_flag=$lt_no_undefined_flag
7525
# Commands used to finish a libtool library installation in a directory.
7526
finish_cmds=$lt_finish_cmds
7528
# Same as above, but a single script fragment to be evaled but not shown.
7529
finish_eval=$lt_finish_eval
7531
# Take the output of nm and produce a listing of raw symbols and C names.
7532
global_symbol_pipe=$lt_global_symbol_pipe
7534
# Transform the output of nm in a proper C declaration
7535
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7537
# Transform the output of nm in a C name address pair
7538
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7540
# This is the shared library runtime path variable.
7541
runpath_var=$runpath_var
7543
# This is the shared library path variable.
7544
shlibpath_var=$shlibpath_var
7546
# Is shlibpath searched before the hard-coded library search path?
7547
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7549
# How to hardcode a shared library path into an executable.
7550
hardcode_action=$hardcode_action
7552
# Whether we should hardcode library paths into libraries.
7553
hardcode_into_libs=$hardcode_into_libs
7555
# Flag to hardcode \$libdir into a binary during linking.
7556
# This must work even if \$libdir does not exist.
7557
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7559
# Whether we need a single -rpath flag with a separated argument.
7560
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7562
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7564
hardcode_direct=$hardcode_direct
7566
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7568
hardcode_minus_L=$hardcode_minus_L
7570
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7571
# the resulting binary.
7572
hardcode_shlibpath_var=$hardcode_shlibpath_var
7574
# Variables whose values should be saved in libtool wrapper scripts and
7575
# restored at relink time.
7576
variables_saved_for_relink="$variables_saved_for_relink"
7578
# Whether libtool must link a program against all its dependency libraries.
7579
link_all_deplibs=$link_all_deplibs
7581
# Compile-time system search path for libraries
7582
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7584
# Run-time system search path for libraries
7585
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7587
# Fix the shell variable \$srcfile for the compiler.
7588
fix_srcfile_path="$fix_srcfile_path"
7590
# Set to yes if exported symbols are required.
7591
always_export_symbols=$always_export_symbols
7593
# The commands to list exported symbols.
7594
export_symbols_cmds=$lt_export_symbols_cmds
7596
# The commands to extract the exported symbol list from a shared archive.
7597
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7599
# Symbols that should not be listed in the preloaded symbols.
7600
exclude_expsyms=$lt_exclude_expsyms
7602
# Symbols that must always be exported.
7603
include_expsyms=$lt_include_expsyms
7605
# ### END LIBTOOL CONFIG
7611
cat <<\EOF >> "${ofile}T"
7613
# AIX sometimes has problems with the GCC collect2 program. For some
7614
# reason, if we set the COLLECT_NAMES environment variable, the problems
7615
# vanish in a puff of smoke.
7616
if test "X${COLLECT_NAMES+set}" != Xset; then
7618
export COLLECT_NAMES
7625
cygwin* | mingw* | pw32* | os2*)
7626
cat <<'EOF' >> "${ofile}T"
7627
# This is a source program that is used to create dlls on Windows
7628
# Don't remove nor modify the starting and closing comments
7629
# /* ltdll.c starts here */
7630
# #define WIN32_LEAN_AND_MEAN
7631
# #include <windows.h>
7632
# #undef WIN32_LEAN_AND_MEAN
7633
# #include <stdio.h>
7635
# #ifndef __CYGWIN__
7636
# # ifdef __CYGWIN32__
7637
# # define __CYGWIN__ __CYGWIN32__
7641
# #ifdef __cplusplus
7644
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7645
# #ifdef __cplusplus
7650
# #include <cygwin/cygwin_dll.h>
7651
# DECLARE_CYGWIN_DLL( DllMain );
7653
# HINSTANCE __hDllInstance_base;
7656
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7658
# __hDllInstance_base = hInst;
7661
# /* ltdll.c ends here */
7662
# This is a source program that is used to create import libraries
7663
# on Windows for dlls which lack them. Don't remove nor modify the
7664
# starting and closing comments
7665
# /* impgen.c starts here */
7666
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7668
# This file is part of GNU libtool.
7670
# This program is free software; you can redistribute it and/or modify
7671
# it under the terms of the GNU General Public License as published by
7672
# the Free Software Foundation; either version 2 of the License, or
7673
# (at your option) any later version.
7675
# This program is distributed in the hope that it will be useful,
7676
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7677
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7678
# GNU General Public License for more details.
7680
# You should have received a copy of the GNU General Public License
7681
# along with this program; if not, write to the Free Software
7682
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7685
# #include <stdio.h> /* for printf() */
7686
# #include <unistd.h> /* for open(), lseek(), read() */
7687
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7688
# #include <string.h> /* for strdup() */
7690
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7692
# #define O_BINARY 0
7695
# static unsigned int
7696
# pe_get16 (fd, offset)
7700
# unsigned char b[2];
7701
# lseek (fd, offset, SEEK_SET);
7703
# return b[0] + (b[1]<<8);
7706
# static unsigned int
7707
# pe_get32 (fd, offset)
7711
# unsigned char b[4];
7712
# lseek (fd, offset, SEEK_SET);
7714
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7717
# static unsigned int
7721
# unsigned char *b = ptr;
7722
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7731
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7732
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7733
# unsigned long name_rvas, nexp;
7734
# unsigned char *expdata, *erva;
7735
# char *filename, *dll_name;
7737
# filename = argv[1];
7739
# dll = open(filename, O_RDONLY|O_BINARY);
7743
# dll_name = filename;
7745
# for (i=0; filename[i]; i++)
7746
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7747
# dll_name = filename + i +1;
7749
# pe_header_offset = pe_get32 (dll, 0x3c);
7750
# opthdr_ofs = pe_header_offset + 4 + 20;
7751
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7753
# if (num_entries < 1) /* no exports */
7756
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7757
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7758
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7759
# secptr = (pe_header_offset + 4 + 20 +
7760
# pe_get16 (dll, pe_header_offset + 4 + 16));
7763
# for (i = 0; i < nsections; i++)
7766
# unsigned long secptr1 = secptr + 40 * i;
7767
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7768
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7769
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7770
# lseek(dll, secptr1, SEEK_SET);
7771
# read(dll, sname, 8);
7772
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7774
# expptr = fptr + (export_rva - vaddr);
7775
# if (export_rva + export_size > vaddr + vsize)
7776
# export_size = vsize - (export_rva - vaddr);
7781
# expdata = (unsigned char*)malloc(export_size);
7782
# lseek (dll, expptr, SEEK_SET);
7783
# read (dll, expdata, export_size);
7784
# erva = expdata - export_rva;
7786
# nexp = pe_as32 (expdata+24);
7787
# name_rvas = pe_as32 (expdata+32);
7789
# printf ("EXPORTS\n");
7790
# for (i = 0; i<nexp; i++)
7792
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7793
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7798
# /* impgen.c ends here */
7804
# We use sed instead of cat because bash on DJGPP gets confused if
7805
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7806
# text mode, it properly converts lines to CR/LF. This bash problem
7807
# is reportedly fixed, but why not run on old versions too?
7808
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7810
mv -f "${ofile}T" "$ofile" || \
7811
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
1458
if test -w $cache_file; then
1459
echo "updating cache $cache_file"
1460
cat confcache > $cache_file
1462
echo "not updating unwritable cache $cache_file"
1468
# Actually configure libtool. ac_aux_dir is where install-sh is found.
1469
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1470
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1471
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1472
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1473
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1474
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1475
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1477
# Reload cache, that may have been modified by ltconfig
1478
if test -r "$cache_file"; then
1479
echo "loading cache $cache_file"
1482
echo "creating cache $cache_file"
7819
1487
# This can be used to rebuild libtool when needed
7820
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1488
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
7822
1490
# Always use our own libtool.
7823
1491
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7825
# Prevent multiple expansion
7831
echo "$as_me:$LINENO: checking for void" >&5
7832
echo $ECHO_N "checking for void... $ECHO_C" >&6
7833
cat >conftest.$ac_ext <<_ACEOF
7834
#line $LINENO "configure"
7837
cat confdefs.h >>conftest.$ac_ext
7838
cat >>conftest.$ac_ext <<_ACEOF
7839
/* end confdefs.h. */
1493
# Redirect the config.log output again, so that the ltconfig log is not
1494
# clobbered by the next message.
1495
exec 5>>./config.log
1498
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1499
echo "configure:1500: checking for Cygwin environment" >&5
1500
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1501
echo $ac_n "(cached) $ac_c" 1>&6
1503
cat > conftest.$ac_ext <<EOF
1504
#line 1505 "configure"
1505
#include "confdefs.h"
1510
#define __CYGWIN__ __CYGWIN32__
1515
if { (eval echo configure:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519
echo "configure: failed program was:" >&5
1520
cat conftest.$ac_ext >&5
1528
echo "$ac_t""$ac_cv_cygwin" 1>&6
1530
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1531
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1532
echo "configure:1533: checking for mingw32 environment" >&5
1533
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1534
echo $ac_n "(cached) $ac_c" 1>&6
1536
cat > conftest.$ac_ext <<EOF
1537
#line 1538 "configure"
1538
#include "confdefs.h"
1544
if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548
echo "configure: failed program was:" >&5
1549
cat conftest.$ac_ext >&5
1557
echo "$ac_t""$ac_cv_mingw32" 1>&6
1559
test "$ac_cv_mingw32" = yes && MINGW32=yes
1562
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1563
echo "configure:1564: checking for executable suffix" >&5
1564
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1565
echo $ac_n "(cached) $ac_c" 1>&6
1567
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1571
echo 'int main () { return 0; }' > conftest.$ac_ext
1573
if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1574
for file in conftest.*; do
1576
*.c | *.o | *.obj) ;;
1577
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1581
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1584
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1589
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1590
echo "$ac_t""${ac_cv_exeext}" 1>&6
1594
echo $ac_n "checking for void""... $ac_c" 1>&6
1595
echo "configure:1596: checking for void" >&5
1596
cat > conftest.$ac_ext <<EOF
1597
#line 1598 "configure"
1598
#include "confdefs.h"
7849
rm -f conftest.$ac_objext
7850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851
(eval $ac_compile) 2>&5
7853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854
(exit $ac_status); } &&
7855
{ ac_try='test -s conftest.$ac_objext'
7856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860
(exit $ac_status); }; }; then
7861
echo "$as_me:$LINENO: result: yes" >&5
7862
echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
1604
if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1606
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
7863
1607
#define HAVE_VOID 1
7867
echo "$as_me: failed program was:" >&5
7868
sed 's/^/| /' conftest.$ac_ext >&5
7870
echo "$as_me:$LINENO: result: no" >&5
7871
echo "${ECHO_T}no" >&6
1611
echo "configure: failed program was:" >&5
1612
cat conftest.$ac_ext >&5
1614
echo "$ac_t""no" 1>&6
7873
rm -f conftest.$ac_objext conftest.$ac_ext
7874
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7875
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7876
if test "${ac_cv_c_const+set}" = set; then
7877
echo $ECHO_N "(cached) $ECHO_C" >&6
1617
echo $ac_n "checking for working const""... $ac_c" 1>&6
1618
echo "configure:1619: checking for working const" >&5
1619
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1620
echo $ac_n "(cached) $ac_c" 1>&6
7879
cat >conftest.$ac_ext <<_ACEOF
7880
#line $LINENO "configure"
7883
cat confdefs.h >>conftest.$ac_ext
7884
cat >>conftest.$ac_ext <<_ACEOF
7885
/* end confdefs.h. */
7890
/* FIXME: Include the comments suggested by Paul. */
7892
/* Ultrix mips cc rejects this. */
7893
typedef int charset[2];
7895
/* SunOS 4.1.1 cc rejects this. */
7896
char const *const *ccp;
7898
/* NEC SVR4.0.2 mips cc rejects this. */
7899
struct point {int x, y;};
7900
static struct point const zero = {0,0};
7901
/* AIX XL C 1.02.0.0 rejects this.
7902
It does not let you subtract one const X* pointer from another in
7903
an arm of an if-expression whose if-part is not a constant
7905
const char *g = "string";
7906
ccp = &g + (g ? g-g : 0);
7907
/* HPUX 7.0 cc rejects these. */
7910
ccp = (char const *const *) p;
7911
{ /* SCO 3.2v4 cc rejects this. */
7913
char const *s = 0 ? (char *) 0 : (char const *) 0;
7917
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7919
const int *foo = &x[0];
7922
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7923
typedef const int *iptr;
7927
{ /* AIX XL C 1.02.0.0 rejects this saying
7928
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7929
struct s { int j; const int *ap[3]; };
7930
struct s *b; b->j = 5;
7932
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7941
rm -f conftest.$ac_objext
7942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7943
(eval $ac_compile) 2>&5
7945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946
(exit $ac_status); } &&
7947
{ ac_try='test -s conftest.$ac_objext'
7948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952
(exit $ac_status); }; }; then
1622
cat > conftest.$ac_ext <<EOF
1623
#line 1624 "configure"
1624
#include "confdefs.h"
1628
/* Ultrix mips cc rejects this. */
1629
typedef int charset[2]; const charset x;
1630
/* SunOS 4.1.1 cc rejects this. */
1631
char const *const *ccp;
1633
/* NEC SVR4.0.2 mips cc rejects this. */
1634
struct point {int x, y;};
1635
static struct point const zero = {0,0};
1636
/* AIX XL C 1.02.0.0 rejects this.
1637
It does not let you subtract one const X* pointer from another in an arm
1638
of an if-expression whose if-part is not a constant expression */
1639
const char *g = "string";
1640
ccp = &g + (g ? g-g : 0);
1641
/* HPUX 7.0 cc rejects these. */
1644
ccp = (char const *const *) p;
1645
{ /* SCO 3.2v4 cc rejects this. */
1647
char const *s = 0 ? (char *) 0 : (char const *) 0;
1651
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1653
const int *foo = &x[0];
1656
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1657
typedef const int *iptr;
1661
{ /* AIX XL C 1.02.0.0 rejects this saying
1662
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1663
struct s { int j; const int *ap[3]; };
1664
struct s *b; b->j = 5;
1666
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1672
if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7953
1674
ac_cv_c_const=yes
7955
echo "$as_me: failed program was:" >&5
7956
sed 's/^/| /' conftest.$ac_ext >&5
1676
echo "configure: failed program was:" >&5
1677
cat conftest.$ac_ext >&5
7960
rm -f conftest.$ac_objext conftest.$ac_ext
7962
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7963
echo "${ECHO_T}$ac_cv_c_const" >&6
1684
echo "$ac_t""$ac_cv_c_const" 1>&6
7964
1685
if test $ac_cv_c_const = no; then
7966
cat >>confdefs.h <<\_ACEOF
7972
echo "$as_me:$LINENO: checking for size_t" >&5
7973
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7974
if test "${ac_cv_type_size_t+set}" = set; then
7975
echo $ECHO_N "(cached) $ECHO_C" >&6
7977
cat >conftest.$ac_ext <<_ACEOF
7978
#line $LINENO "configure"
7981
cat confdefs.h >>conftest.$ac_ext
7982
cat >>conftest.$ac_ext <<_ACEOF
7983
/* end confdefs.h. */
7984
$ac_includes_default
7990
if (sizeof (size_t))
7996
rm -f conftest.$ac_objext
7997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998
(eval $ac_compile) 2>&5
8000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001
(exit $ac_status); } &&
8002
{ ac_try='test -s conftest.$ac_objext'
8003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007
(exit $ac_status); }; }; then
1686
cat >> confdefs.h <<\EOF
1692
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1693
echo "configure:1694: checking how to run the C preprocessor" >&5
1694
# On Suns, sometimes $CPP names a directory.
1695
if test -n "$CPP" && test -d "$CPP"; then
1698
if test -z "$CPP"; then
1699
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1700
echo $ac_n "(cached) $ac_c" 1>&6
1702
# This must be in double quotes, not single quotes, because CPP may get
1703
# substituted into the Makefile and "${CC-cc}" will confuse make.
1705
# On the NeXT, cc -E runs the code through the compiler's parser,
1706
# not just through cpp.
1707
cat > conftest.$ac_ext <<EOF
1708
#line 1709 "configure"
1709
#include "confdefs.h"
1713
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714
{ (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716
if test -z "$ac_err"; then
1720
echo "configure: failed program was:" >&5
1721
cat conftest.$ac_ext >&5
1723
CPP="${CC-cc} -E -traditional-cpp"
1724
cat > conftest.$ac_ext <<EOF
1725
#line 1726 "configure"
1726
#include "confdefs.h"
1730
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731
{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733
if test -z "$ac_err"; then
1737
echo "configure: failed program was:" >&5
1738
cat conftest.$ac_ext >&5
1740
CPP="${CC-cc} -nologo -E"
1741
cat > conftest.$ac_ext <<EOF
1742
#line 1743 "configure"
1743
#include "confdefs.h"
1747
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748
{ (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1750
if test -z "$ac_err"; then
1754
echo "configure: failed program was:" >&5
1755
cat conftest.$ac_ext >&5
1764
ac_cv_prog_CPP="$CPP"
1766
CPP="$ac_cv_prog_CPP"
1768
ac_cv_prog_CPP="$CPP"
1770
echo "$ac_t""$CPP" 1>&6
1772
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1773
echo "configure:1774: checking for ANSI C header files" >&5
1774
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1775
echo $ac_n "(cached) $ac_c" 1>&6
1777
cat > conftest.$ac_ext <<EOF
1778
#line 1779 "configure"
1779
#include "confdefs.h"
1785
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1786
{ (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1787
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1788
if test -z "$ac_err"; then
1790
ac_cv_header_stdc=yes
1793
echo "configure: failed program was:" >&5
1794
cat conftest.$ac_ext >&5
1796
ac_cv_header_stdc=no
1800
if test $ac_cv_header_stdc = yes; then
1801
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1802
cat > conftest.$ac_ext <<EOF
1803
#line 1804 "configure"
1804
#include "confdefs.h"
1807
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1808
egrep "memchr" >/dev/null 2>&1; then
1812
ac_cv_header_stdc=no
1818
if test $ac_cv_header_stdc = yes; then
1819
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1820
cat > conftest.$ac_ext <<EOF
1821
#line 1822 "configure"
1822
#include "confdefs.h"
1825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826
egrep "free" >/dev/null 2>&1; then
1830
ac_cv_header_stdc=no
1836
if test $ac_cv_header_stdc = yes; then
1837
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1838
if test "$cross_compiling" = yes; then
1841
cat > conftest.$ac_ext <<EOF
1842
#line 1843 "configure"
1843
#include "confdefs.h"
1845
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1846
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1847
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1848
int main () { int i; for (i = 0; i < 256; i++)
1849
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1853
if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1857
echo "configure: failed program was:" >&5
1858
cat conftest.$ac_ext >&5
1860
ac_cv_header_stdc=no
1868
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1869
if test $ac_cv_header_stdc = yes; then
1870
cat >> confdefs.h <<\EOF
1871
#define STDC_HEADERS 1
1876
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1877
echo "configure:1878: checking for size_t" >&5
1878
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1879
echo $ac_n "(cached) $ac_c" 1>&6
1881
cat > conftest.$ac_ext <<EOF
1882
#line 1883 "configure"
1883
#include "confdefs.h"
1884
#include <sys/types.h>
1890
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1891
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8008
1893
ac_cv_type_size_t=yes
8010
echo "$as_me: failed program was:" >&5
8011
sed 's/^/| /' conftest.$ac_ext >&5
8013
ac_cv_type_size_t=no
8015
rm -f conftest.$ac_objext conftest.$ac_ext
8017
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8018
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8019
if test $ac_cv_type_size_t = yes; then
8023
cat >>confdefs.h <<_ACEOF
1896
ac_cv_type_size_t=no
1901
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1902
if test $ac_cv_type_size_t = no; then
1903
cat >> confdefs.h <<\EOF
8024
1904
#define size_t unsigned
8029
echo "$as_me:$LINENO: checking for pid_t" >&5
8030
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8031
if test "${ac_cv_type_pid_t+set}" = set; then
8032
echo $ECHO_N "(cached) $ECHO_C" >&6
1909
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1910
echo "configure:1911: checking for pid_t" >&5
1911
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1912
echo $ac_n "(cached) $ac_c" 1>&6
8034
cat >conftest.$ac_ext <<_ACEOF
8035
#line $LINENO "configure"
8038
cat confdefs.h >>conftest.$ac_ext
8039
cat >>conftest.$ac_ext <<_ACEOF
8040
/* end confdefs.h. */
8041
$ac_includes_default
8053
rm -f conftest.$ac_objext
8054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055
(eval $ac_compile) 2>&5
8057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058
(exit $ac_status); } &&
8059
{ ac_try='test -s conftest.$ac_objext'
8060
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064
(exit $ac_status); }; }; then
1914
cat > conftest.$ac_ext <<EOF
1915
#line 1916 "configure"
1916
#include "confdefs.h"
1917
#include <sys/types.h>
1923
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8065
1926
ac_cv_type_pid_t=yes
8067
echo "$as_me: failed program was:" >&5
8068
sed 's/^/| /' conftest.$ac_ext >&5
8072
rm -f conftest.$ac_objext conftest.$ac_ext
8074
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8075
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8076
if test $ac_cv_type_pid_t = yes; then
8080
cat >>confdefs.h <<_ACEOF
1934
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1935
if test $ac_cv_type_pid_t = no; then
1936
cat >> confdefs.h <<\EOF
8081
1937
#define pid_t int
8086
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8087
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8088
if test "${ac_cv_type_signal+set}" = set; then
8089
echo $ECHO_N "(cached) $ECHO_C" >&6
1942
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1943
echo "configure:1944: checking return type of signal handlers" >&5
1944
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1945
echo $ac_n "(cached) $ac_c" 1>&6
8091
cat >conftest.$ac_ext <<_ACEOF
8092
#line $LINENO "configure"
8095
cat confdefs.h >>conftest.$ac_ext
8096
cat >>conftest.$ac_ext <<_ACEOF
8097
/* end confdefs.h. */
1947
cat > conftest.$ac_ext <<EOF
1948
#line 1949 "configure"
1949
#include "confdefs.h"
8098
1950
#include <sys/types.h>
8099
1951
#include <signal.h>
8103
1955
#ifdef __cplusplus
8104
1956
extern "C" void (*signal (int, void (*)(int)))(int);
8946
2515
for ac_prog in 'bison -y' byacc
8948
# Extract the first word of "$ac_prog", so it can be a program name with args.
2517
# Extract the first word of "$ac_prog", so it can be a program name with args.
8949
2518
set dummy $ac_prog; ac_word=$2
8950
echo "$as_me:$LINENO: checking for $ac_word" >&5
8951
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8952
if test "${ac_cv_prog_YACC+set}" = set; then
8953
echo $ECHO_N "(cached) $ECHO_C" >&6
2519
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520
echo "configure:2521: checking for $ac_word" >&5
2521
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2522
echo $ac_n "(cached) $ac_c" 1>&6
8955
2524
if test -n "$YACC"; then
8956
2525
ac_cv_prog_YACC="$YACC" # Let the user override the test.
8958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962
test -z "$as_dir" && as_dir=.
8963
for ac_exec_ext in '' $ac_executable_extensions; do
8964
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965
ac_cv_prog_YACC="$ac_prog"
8966
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8974
YACC=$ac_cv_prog_YACC
2527
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529
for ac_dir in $ac_dummy; do
2530
test -z "$ac_dir" && ac_dir=.
2531
if test -f $ac_dir/$ac_word; then
2532
ac_cv_prog_YACC="$ac_prog"
2539
YACC="$ac_cv_prog_YACC"
8975
2540
if test -n "$YACC"; then
8976
echo "$as_me:$LINENO: result: $YACC" >&5
8977
echo "${ECHO_T}$YACC" >&6
2541
echo "$ac_t""$YACC" 1>&6
8979
echo "$as_me:$LINENO: result: no" >&5
8980
echo "${ECHO_T}no" >&6
2543
echo "$ac_t""no" 1>&6
8983
test -n "$YACC" && break
2546
test -n "$YACC" && break
8985
2548
test -n "$YACC" || YACC="yacc"
2550
missing_dir=`cd $ac_aux_dir && pwd`
8987
2551
for ac_prog in flex lex
8989
# Extract the first word of "$ac_prog", so it can be a program name with args.
2553
# Extract the first word of "$ac_prog", so it can be a program name with args.
8990
2554
set dummy $ac_prog; ac_word=$2
8991
echo "$as_me:$LINENO: checking for $ac_word" >&5
8992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8993
if test "${ac_cv_prog_LEX+set}" = set; then
8994
echo $ECHO_N "(cached) $ECHO_C" >&6
8996
if test -n "$LEX"; then
8997
ac_cv_prog_LEX="$LEX" # Let the user override the test.
8999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003
test -z "$as_dir" && as_dir=.
9004
for ac_exec_ext in '' $ac_executable_extensions; do
9005
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9006
ac_cv_prog_LEX="$ac_prog"
9007
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9016
if test -n "$LEX"; then
9017
echo "$as_me:$LINENO: result: $LEX" >&5
9018
echo "${ECHO_T}$LEX" >&6
9020
echo "$as_me:$LINENO: result: no" >&5
9021
echo "${ECHO_T}no" >&6
9024
test -n "$LEX" && break
9026
test -n "$LEX" || LEX=":"
2555
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2556
echo "configure:2557: checking for $ac_word" >&5
2557
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2558
echo $ac_n "(cached) $ac_c" 1>&6
2560
if test -n "$LEX"; then
2561
ac_cv_prog_LEX="$LEX" # Let the user override the test.
2563
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2565
for ac_dir in $ac_dummy; do
2566
test -z "$ac_dir" && ac_dir=.
2567
if test -f $ac_dir/$ac_word; then
2568
ac_cv_prog_LEX="$ac_prog"
2575
LEX="$ac_cv_prog_LEX"
2576
if test -n "$LEX"; then
2577
echo "$ac_t""$LEX" 1>&6
2579
echo "$ac_t""no" 1>&6
2582
test -n "$LEX" && break
2584
test -n "$LEX" || LEX=""$missing_dir/missing flex""
2586
# Extract the first word of "flex", so it can be a program name with args.
2587
set dummy flex; ac_word=$2
2588
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2589
echo "configure:2590: checking for $ac_word" >&5
2590
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2591
echo $ac_n "(cached) $ac_c" 1>&6
2593
if test -n "$LEX"; then
2594
ac_cv_prog_LEX="$LEX" # Let the user override the test.
2596
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2598
for ac_dir in $ac_dummy; do
2599
test -z "$ac_dir" && ac_dir=.
2600
if test -f $ac_dir/$ac_word; then
2601
ac_cv_prog_LEX="flex"
2606
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2609
LEX="$ac_cv_prog_LEX"
2610
if test -n "$LEX"; then
2611
echo "$ac_t""$LEX" 1>&6
2613
echo "$ac_t""no" 1>&6
9028
2616
if test -z "$LEXLIB"
9030
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
9031
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
9032
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
9033
echo $ECHO_N "(cached) $ECHO_C" >&6
9035
ac_check_lib_save_LIBS=$LIBS
9037
cat >conftest.$ac_ext <<_ACEOF
9038
#line $LINENO "configure"
9041
cat confdefs.h >>conftest.$ac_ext
9042
cat >>conftest.$ac_ext <<_ACEOF
9043
/* end confdefs.h. */
9045
/* Override any gcc2 internal prototype to avoid an error. */
9049
/* We use char because int might match the return type of a gcc2
9050
builtin and then its argument prototype would still apply. */
9060
rm -f conftest.$ac_objext conftest$ac_exeext
9061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062
(eval $ac_link) 2>&5
9064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065
(exit $ac_status); } &&
9066
{ ac_try='test -s conftest$ac_exeext'
9067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071
(exit $ac_status); }; }; then
9072
ac_cv_lib_fl_yywrap=yes
9074
echo "$as_me: failed program was:" >&5
9075
sed 's/^/| /' conftest.$ac_ext >&5
9077
ac_cv_lib_fl_yywrap=no
9079
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080
LIBS=$ac_check_lib_save_LIBS
9082
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9083
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
9084
if test $ac_cv_lib_fl_yywrap = yes; then
9087
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
9088
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
9089
if test "${ac_cv_lib_l_yywrap+set}" = set; then
9090
echo $ECHO_N "(cached) $ECHO_C" >&6
9092
ac_check_lib_save_LIBS=$LIBS
9094
cat >conftest.$ac_ext <<_ACEOF
9095
#line $LINENO "configure"
9098
cat confdefs.h >>conftest.$ac_ext
9099
cat >>conftest.$ac_ext <<_ACEOF
9100
/* end confdefs.h. */
9102
/* Override any gcc2 internal prototype to avoid an error. */
9106
/* We use char because int might match the return type of a gcc2
9107
builtin and then its argument prototype would still apply. */
9117
rm -f conftest.$ac_objext conftest$ac_exeext
9118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119
(eval $ac_link) 2>&5
9121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122
(exit $ac_status); } &&
9123
{ ac_try='test -s conftest$ac_exeext'
9124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128
(exit $ac_status); }; }; then
9129
ac_cv_lib_l_yywrap=yes
9131
echo "$as_me: failed program was:" >&5
9132
sed 's/^/| /' conftest.$ac_ext >&5
9134
ac_cv_lib_l_yywrap=no
9136
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9137
LIBS=$ac_check_lib_save_LIBS
9139
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9140
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
9141
if test $ac_cv_lib_l_yywrap = yes; then
9149
if test "x$LEX" != "x:"; then
9150
echo "$as_me:$LINENO: checking lex output file root" >&5
9151
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
9152
if test "${ac_cv_prog_lex_root+set}" = set; then
9153
echo $ECHO_N "(cached) $ECHO_C" >&6
2622
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2623
echo "configure:2624: checking for yywrap in -l$ac_lib" >&5
2624
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2625
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2626
echo $ac_n "(cached) $ac_c" 1>&6
2628
ac_save_LIBS="$LIBS"
2629
LIBS="-l$ac_lib $LIBS"
2630
cat > conftest.$ac_ext <<EOF
2631
#line 2632 "configure"
2632
#include "confdefs.h"
2633
/* Override any gcc2 internal prototype to avoid an error. */
2634
/* We use char because int might match the return type of a gcc2
2635
builtin and then its argument prototype would still apply. */
2642
if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644
eval "ac_cv_lib_$ac_lib_var=yes"
2646
echo "configure: failed program was:" >&5
2647
cat conftest.$ac_ext >&5
2649
eval "ac_cv_lib_$ac_lib_var=no"
2652
LIBS="$ac_save_LIBS"
2655
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656
echo "$ac_t""yes" 1>&6
2659
echo "$ac_t""no" 1>&6
2664
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2665
echo "configure:2666: checking lex output file root" >&5
2666
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2667
echo $ac_n "(cached) $ac_c" 1>&6
9155
2669
# The minimal lex program is just a single line: %%. But some broken lexes
9156
2670
# (Solaris, I think it was) want two %% lines, so accommodate them.
9157
cat >conftest.l <<_ACEOF
9161
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
9162
(eval $LEX conftest.l) 2>&5
9164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
(exit $ac_status); }
9166
2673
if test -f lex.yy.c; then
9167
2674
ac_cv_prog_lex_root=lex.yy
9168
2675
elif test -f lexyy.c; then
9169
2676
ac_cv_prog_lex_root=lexyy
9171
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9172
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9173
{ (exit 1); exit 1; }; }
9176
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9177
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2678
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2682
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
9179
2683
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9181
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9182
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
9183
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9184
echo $ECHO_N "(cached) $ECHO_C" >&6
2685
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2686
echo "configure:2687: checking whether yytext is a pointer" >&5
2687
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2688
echo $ac_n "(cached) $ac_c" 1>&6
9186
2690
# POSIX says lex can declare yytext either as a pointer or an array; the
9187
2691
# default is implementation-dependent. Figure out which it is, since
9188
2692
# not all implementations provide the %pointer and %array declarations.
9189
2693
ac_cv_prog_lex_yytext_pointer=no
9190
2694
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2695
ac_save_LIBS="$LIBS"
9192
2696
LIBS="$LIBS $LEXLIB"
9193
cat >conftest.$ac_ext <<_ACEOF
2697
cat > conftest.$ac_ext <<EOF
2698
#line 2699 "configure"
2699
#include "confdefs.h"
9194
2700
`cat $LEX_OUTPUT_ROOT.c`
9196
rm -f conftest.$ac_objext conftest$ac_exeext
9197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198
(eval $ac_link) 2>&5
9200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201
(exit $ac_status); } &&
9202
{ ac_try='test -s conftest$ac_exeext'
9203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207
(exit $ac_status); }; }; then
2705
if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9208
2707
ac_cv_prog_lex_yytext_pointer=yes
9210
echo "$as_me: failed program was:" >&5
9211
sed 's/^/| /' conftest.$ac_ext >&5
2709
echo "configure: failed program was:" >&5
2710
cat conftest.$ac_ext >&5
9214
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2713
LIBS="$ac_save_LIBS"
9216
2714
rm -f "${LEX_OUTPUT_ROOT}.c"
9219
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9220
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2718
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
9221
2719
if test $ac_cv_prog_lex_yytext_pointer = yes; then
9223
cat >>confdefs.h <<\_ACEOF
2720
cat >> confdefs.h <<\EOF
9224
2721
#define YYTEXT_POINTER 1
9230
if test "$LEX" = :; then
9231
LEX=${am_missing_run}flex
9236
echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
9237
echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6
9238
if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
9239
echo $ECHO_N "(cached) $ECHO_C" >&6
2727
echo $ac_n "checking for pthread_mutex_init in -lc""... $ac_c" 1>&6
2728
echo "configure:2729: checking for pthread_mutex_init in -lc" >&5
2729
ac_lib_var=`echo c'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
2730
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2731
echo $ac_n "(cached) $ac_c" 1>&6
9241
ac_check_lib_save_LIBS=$LIBS
2733
ac_save_LIBS="$LIBS"
9242
2734
LIBS="-lc $LIBS"
9243
cat >conftest.$ac_ext <<_ACEOF
9244
#line $LINENO "configure"
9247
cat confdefs.h >>conftest.$ac_ext
9248
cat >>conftest.$ac_ext <<_ACEOF
9249
/* end confdefs.h. */
2735
cat > conftest.$ac_ext <<EOF
2736
#line 2737 "configure"
2737
#include "confdefs.h"
9251
2738
/* Override any gcc2 internal prototype to avoid an error. */
9255
2739
/* We use char because int might match the return type of a gcc2
9256
builtin and then its argument prototype would still apply. */
9257
char pthread_mutex_init ();
9261
pthread_mutex_init ();
9266
rm -f conftest.$ac_objext conftest$ac_exeext
9267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268
(eval $ac_link) 2>&5
9270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
(exit $ac_status); } &&
9272
{ ac_try='test -s conftest$ac_exeext'
9273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277
(exit $ac_status); }; }; then
9278
ac_cv_lib_c_pthread_mutex_init=yes
2740
builtin and then its argument prototype would still apply. */
2741
char pthread_mutex_init();
2744
pthread_mutex_init()
2747
if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749
eval "ac_cv_lib_$ac_lib_var=yes"
9280
echo "$as_me: failed program was:" >&5
9281
sed 's/^/| /' conftest.$ac_ext >&5
2751
echo "configure: failed program was:" >&5
2752
cat conftest.$ac_ext >&5
2754
eval "ac_cv_lib_$ac_lib_var=no"
2757
LIBS="$ac_save_LIBS"
9283
ac_cv_lib_c_pthread_mutex_init=no
9285
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9286
LIBS=$ac_check_lib_save_LIBS
9288
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
9289
echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6
9290
if test $ac_cv_lib_c_pthread_mutex_init = yes; then
9291
cat >>confdefs.h <<\_ACEOF
2760
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2761
echo "$ac_t""yes" 1>&6
2762
cat >> confdefs.h <<\EOF
9292
2763
#define PTHREAD_SUPPORT 1
2767
echo "$ac_t""no" 1>&6
9300
2771
for ac_func in ctime_r localtime_r
9302
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9303
echo "$as_me:$LINENO: checking for $ac_func" >&5
9304
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9305
if eval "test \"\${$as_ac_var+set}\" = set"; then
9306
echo $ECHO_N "(cached) $ECHO_C" >&6
2773
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2774
echo "configure:2775: checking for $ac_func" >&5
2775
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2776
echo $ac_n "(cached) $ac_c" 1>&6
9308
cat >conftest.$ac_ext <<_ACEOF
9309
#line $LINENO "configure"
9312
cat confdefs.h >>conftest.$ac_ext
9313
cat >>conftest.$ac_ext <<_ACEOF
9314
/* end confdefs.h. */
2778
cat > conftest.$ac_ext <<EOF
2779
#line 2780 "configure"
2780
#include "confdefs.h"
9315
2781
/* System header to define __stub macros and hopefully few prototypes,
9316
which can conflict with char $ac_func (); below.
9317
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318
<limits.h> exists even on freestanding compilers. */
9320
# include <limits.h>
9322
# include <assert.h>
2782
which can conflict with char $ac_func(); below. */
9324
2784
/* Override any gcc2 internal prototype to avoid an error. */
9329
2785
/* We use char because int might match the return type of a gcc2
9330
builtin and then its argument prototype would still apply. */
2786
builtin and then its argument prototype would still apply. */
9332
2791
/* The GNU C library defines this for functions which it implements
9333
2792
to always fail with ENOSYS. Some functions are actually named
9334
2793
something starting with __ and the normal name is an alias. */
9335
2794
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9338
char (*f) () = $ac_func;
9347
return f != $ac_func;
9352
rm -f conftest.$ac_objext conftest$ac_exeext
9353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354
(eval $ac_link) 2>&5
9356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357
(exit $ac_status); } &&
9358
{ ac_try='test -s conftest$ac_exeext'
9359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363
(exit $ac_status); }; }; then
9364
eval "$as_ac_var=yes"
9366
echo "$as_me: failed program was:" >&5
9367
sed 's/^/| /' conftest.$ac_ext >&5
9369
eval "$as_ac_var=no"
9371
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9374
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9375
if test `eval echo '${'$as_ac_var'}'` = yes; then
9376
cat >>confdefs.h <<_ACEOF
9377
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2802
if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804
eval "ac_cv_func_$ac_func=yes"
2806
echo "configure: failed program was:" >&5
2807
cat conftest.$ac_ext >&5
2809
eval "ac_cv_func_$ac_func=no"
2814
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2815
echo "$ac_t""yes" 1>&6
2816
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2817
cat >> confdefs.h <<EOF
2818
#define $ac_tr_func 1
2822
echo "$ac_t""no" 1>&6
9385
2827
for ac_func in waitpid
9387
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9388
echo "$as_me:$LINENO: checking for $ac_func" >&5
9389
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9390
if eval "test \"\${$as_ac_var+set}\" = set"; then
9391
echo $ECHO_N "(cached) $ECHO_C" >&6
2829
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2830
echo "configure:2831: checking for $ac_func" >&5
2831
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2832
echo $ac_n "(cached) $ac_c" 1>&6
9393
cat >conftest.$ac_ext <<_ACEOF
9394
#line $LINENO "configure"
9397
cat confdefs.h >>conftest.$ac_ext
9398
cat >>conftest.$ac_ext <<_ACEOF
9399
/* end confdefs.h. */
2834
cat > conftest.$ac_ext <<EOF
2835
#line 2836 "configure"
2836
#include "confdefs.h"
9400
2837
/* System header to define __stub macros and hopefully few prototypes,
9401
which can conflict with char $ac_func (); below.
9402
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403
<limits.h> exists even on freestanding compilers. */
9405
# include <limits.h>
9407
# include <assert.h>
2838
which can conflict with char $ac_func(); below. */
9409
2840
/* Override any gcc2 internal prototype to avoid an error. */
9414
2841
/* We use char because int might match the return type of a gcc2
9415
builtin and then its argument prototype would still apply. */
2842
builtin and then its argument prototype would still apply. */
9417
2847
/* The GNU C library defines this for functions which it implements
9418
2848
to always fail with ENOSYS. Some functions are actually named
9419
2849
something starting with __ and the normal name is an alias. */
9420
2850
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9423
char (*f) () = $ac_func;
9432
return f != $ac_func;
9437
rm -f conftest.$ac_objext conftest$ac_exeext
9438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439
(eval $ac_link) 2>&5
9441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442
(exit $ac_status); } &&
9443
{ ac_try='test -s conftest$ac_exeext'
9444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448
(exit $ac_status); }; }; then
9449
eval "$as_ac_var=yes"
9451
echo "$as_me: failed program was:" >&5
9452
sed 's/^/| /' conftest.$ac_ext >&5
9454
eval "$as_ac_var=no"
9456
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9458
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9459
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9460
if test `eval echo '${'$as_ac_var'}'` = yes; then
9461
cat >>confdefs.h <<_ACEOF
9462
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2858
if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2860
eval "ac_cv_func_$ac_func=yes"
2862
echo "configure: failed program was:" >&5
2863
cat conftest.$ac_ext >&5
2865
eval "ac_cv_func_$ac_func=no"
2870
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2871
echo "$ac_t""yes" 1>&6
2872
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2873
cat >> confdefs.h <<EOF
2874
#define $ac_tr_func 1
2878
echo "$ac_t""no" 1>&6
9469
echo "$as_me:$LINENO: checking for library containing matherr" >&5
9470
echo $ECHO_N "checking for library containing matherr... $ECHO_C" >&6
9471
if test "${ac_cv_search_matherr+set}" = set; then
9472
echo $ECHO_N "(cached) $ECHO_C" >&6
9474
ac_func_search_save_LIBS=$LIBS
9475
ac_cv_search_matherr=no
9476
cat >conftest.$ac_ext <<_ACEOF
9477
#line $LINENO "configure"
9480
cat confdefs.h >>conftest.$ac_ext
9481
cat >>conftest.$ac_ext <<_ACEOF
9482
/* end confdefs.h. */
9484
/* Override any gcc2 internal prototype to avoid an error. */
9488
/* We use char because int might match the return type of a gcc2
9489
builtin and then its argument prototype would still apply. */
9499
rm -f conftest.$ac_objext conftest$ac_exeext
9500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501
(eval $ac_link) 2>&5
9503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
(exit $ac_status); } &&
9505
{ ac_try='test -s conftest$ac_exeext'
9506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510
(exit $ac_status); }; }; then
9511
ac_cv_search_matherr="none required"
9513
echo "$as_me: failed program was:" >&5
9514
sed 's/^/| /' conftest.$ac_ext >&5
9517
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9518
if test "$ac_cv_search_matherr" = no; then
9519
for ac_lib in mx m; do
9520
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9521
cat >conftest.$ac_ext <<_ACEOF
9522
#line $LINENO "configure"
9525
cat confdefs.h >>conftest.$ac_ext
9526
cat >>conftest.$ac_ext <<_ACEOF
9527
/* end confdefs.h. */
9529
/* Override any gcc2 internal prototype to avoid an error. */
9533
/* We use char because int might match the return type of a gcc2
9534
builtin and then its argument prototype would still apply. */
9544
rm -f conftest.$ac_objext conftest$ac_exeext
9545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546
(eval $ac_link) 2>&5
9548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549
(exit $ac_status); } &&
9550
{ ac_try='test -s conftest$ac_exeext'
9551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555
(exit $ac_status); }; }; then
9556
ac_cv_search_matherr="-l$ac_lib"
9559
echo "$as_me: failed program was:" >&5
9560
sed 's/^/| /' conftest.$ac_ext >&5
9563
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9566
LIBS=$ac_func_search_save_LIBS
9568
echo "$as_me:$LINENO: result: $ac_cv_search_matherr" >&5
9569
echo "${ECHO_T}$ac_cv_search_matherr" >&6
9570
if test "$ac_cv_search_matherr" != no; then
9571
test "$ac_cv_search_matherr" = "none required" || LIBS="$ac_cv_search_matherr $LIBS"
2883
echo $ac_n "checking for matherr in -lmx""... $ac_c" 1>&6
2884
echo "configure:2885: checking for matherr in -lmx" >&5
2885
ac_lib_var=`echo mx'_'matherr | sed 'y%./+-%__p_%'`
2886
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2887
echo $ac_n "(cached) $ac_c" 1>&6
2889
ac_save_LIBS="$LIBS"
2891
cat > conftest.$ac_ext <<EOF
2892
#line 2893 "configure"
2893
#include "confdefs.h"
2894
/* Override any gcc2 internal prototype to avoid an error. */
2895
/* We use char because int might match the return type of a gcc2
2896
builtin and then its argument prototype would still apply. */
2903
if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2905
eval "ac_cv_lib_$ac_lib_var=yes"
2907
echo "configure: failed program was:" >&5
2908
cat conftest.$ac_ext >&5
2910
eval "ac_cv_lib_$ac_lib_var=no"
2913
LIBS="$ac_save_LIBS"
2916
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2917
echo "$ac_t""yes" 1>&6
2920
echo "$ac_t""no" 1>&6
9583
2924
for ac_func in memcpy memmove strchr strcasecmp strerror matherr j0 erf
9585
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586
echo "$as_me:$LINENO: checking for $ac_func" >&5
9587
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588
if eval "test \"\${$as_ac_var+set}\" = set"; then
9589
echo $ECHO_N "(cached) $ECHO_C" >&6
2926
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2927
echo "configure:2928: checking for $ac_func" >&5
2928
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2929
echo $ac_n "(cached) $ac_c" 1>&6
9591
cat >conftest.$ac_ext <<_ACEOF
9592
#line $LINENO "configure"
9595
cat confdefs.h >>conftest.$ac_ext
9596
cat >>conftest.$ac_ext <<_ACEOF
9597
/* end confdefs.h. */
2931
cat > conftest.$ac_ext <<EOF
2932
#line 2933 "configure"
2933
#include "confdefs.h"
9598
2934
/* System header to define __stub macros and hopefully few prototypes,
9599
which can conflict with char $ac_func (); below.
9600
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9601
<limits.h> exists even on freestanding compilers. */
9603
# include <limits.h>
9605
# include <assert.h>
2935
which can conflict with char $ac_func(); below. */
9607
2937
/* Override any gcc2 internal prototype to avoid an error. */
9612
2938
/* We use char because int might match the return type of a gcc2
9613
builtin and then its argument prototype would still apply. */
2939
builtin and then its argument prototype would still apply. */
9615
2944
/* The GNU C library defines this for functions which it implements
9616
2945
to always fail with ENOSYS. Some functions are actually named
9617
2946
something starting with __ and the normal name is an alias. */
9618
2947
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9621
char (*f) () = $ac_func;
9630
return f != $ac_func;
9635
rm -f conftest.$ac_objext conftest$ac_exeext
9636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637
(eval $ac_link) 2>&5
9639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
(exit $ac_status); } &&
9641
{ ac_try='test -s conftest$ac_exeext'
9642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646
(exit $ac_status); }; }; then
9647
eval "$as_ac_var=yes"
9649
echo "$as_me: failed program was:" >&5
9650
sed 's/^/| /' conftest.$ac_ext >&5
9652
eval "$as_ac_var=no"
9654
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9656
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9657
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9658
if test `eval echo '${'$as_ac_var'}'` = yes; then
9659
cat >>confdefs.h <<_ACEOF
9660
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2955
if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957
eval "ac_cv_func_$ac_func=yes"
2959
echo "configure: failed program was:" >&5
2960
cat conftest.$ac_ext >&5
2962
eval "ac_cv_func_$ac_func=no"
2967
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2968
echo "$ac_t""yes" 1>&6
2969
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2970
cat >> confdefs.h <<EOF
2971
#define $ac_tr_func 1
2975
echo "$ac_t""no" 1>&6
9669
2979
for ac_func in lgamma gamma
9671
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672
echo "$as_me:$LINENO: checking for $ac_func" >&5
9673
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9674
if eval "test \"\${$as_ac_var+set}\" = set"; then
9675
echo $ECHO_N "(cached) $ECHO_C" >&6
2981
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2982
echo "configure:2983: checking for $ac_func" >&5
2983
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2984
echo $ac_n "(cached) $ac_c" 1>&6
9677
cat >conftest.$ac_ext <<_ACEOF
9678
#line $LINENO "configure"
9681
cat confdefs.h >>conftest.$ac_ext
9682
cat >>conftest.$ac_ext <<_ACEOF
9683
/* end confdefs.h. */
2986
cat > conftest.$ac_ext <<EOF
2987
#line 2988 "configure"
2988
#include "confdefs.h"
9684
2989
/* System header to define __stub macros and hopefully few prototypes,
9685
which can conflict with char $ac_func (); below.
9686
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687
<limits.h> exists even on freestanding compilers. */
9689
# include <limits.h>
9691
# include <assert.h>
2990
which can conflict with char $ac_func(); below. */
9693
2992
/* Override any gcc2 internal prototype to avoid an error. */
9698
2993
/* We use char because int might match the return type of a gcc2
9699
builtin and then its argument prototype would still apply. */
2994
builtin and then its argument prototype would still apply. */
9701
2999
/* The GNU C library defines this for functions which it implements
9702
3000
to always fail with ENOSYS. Some functions are actually named
9703
3001
something starting with __ and the normal name is an alias. */
9704
3002
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9707
char (*f) () = $ac_func;
9716
return f != $ac_func;
9721
rm -f conftest.$ac_objext conftest$ac_exeext
9722
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723
(eval $ac_link) 2>&5
9725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726
(exit $ac_status); } &&
9727
{ ac_try='test -s conftest$ac_exeext'
9728
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732
(exit $ac_status); }; }; then
9733
eval "$as_ac_var=yes"
9735
echo "$as_me: failed program was:" >&5
9736
sed 's/^/| /' conftest.$ac_ext >&5
9738
eval "$as_ac_var=no"
9740
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9742
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9743
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9744
if test `eval echo '${'$as_ac_var'}'` = yes; then
9745
cat >>confdefs.h <<_ACEOF
9746
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3010
if { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012
eval "ac_cv_func_$ac_func=yes"
3014
echo "configure: failed program was:" >&5
3015
cat conftest.$ac_ext >&5
3017
eval "ac_cv_func_$ac_func=no"
3022
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3023
echo "$ac_t""yes" 1>&6
3024
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3025
cat >> confdefs.h <<EOF
3026
#define $ac_tr_func 1
3030
echo "$ac_t""no" 1>&6
9754
echo "$as_me:$LINENO: checking for X" >&5
9755
echo $ECHO_N "checking for X... $ECHO_C" >&6
3036
# If we find X, set shell vars x_includes and x_libraries to the
3037
# paths, otherwise set no_x=yes.
3038
# Uses ac_ vars as temps to allow command line to override cache and checks.
3039
# --without-x overrides everything else, but does not touch the cache.
3040
echo $ac_n "checking for X""... $ac_c" 1>&6
3041
echo "configure:3042: checking for X" >&5
9758
3043
# Check whether --with-x or --without-x was given.
9759
3044
if test "${with_x+set}" = set; then
9760
3045
withval="$with_x"
9763
3049
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9764
3050
if test "x$with_x" = xno; then
9765
3051
# The user explicitly disabled X.
10096
3348
if test "$ISC" = yes; then
10097
3349
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10099
# Martyn Johnson says this is needed for Ultrix, if the X
10100
# libraries were built with DECnet support. And Karl Berry says
3351
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3352
# libraries were built with DECnet support. And karl@cs.umb.edu says
10101
3353
# the Alpha needs dnet_stub (dnet does not exist).
10102
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10103
cat >conftest.$ac_ext <<_ACEOF
10104
#line $LINENO "configure"
10107
cat confdefs.h >>conftest.$ac_ext
10108
cat >>conftest.$ac_ext <<_ACEOF
10109
/* end confdefs.h. */
10111
/* Override any gcc2 internal prototype to avoid an error. */
10115
/* We use char because int might match the return type of a gcc2
10116
builtin and then its argument prototype would still apply. */
10117
char XOpenDisplay ();
10126
rm -f conftest.$ac_objext conftest$ac_exeext
10127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128
(eval $ac_link) 2>&5
10130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131
(exit $ac_status); } &&
10132
{ ac_try='test -s conftest$ac_exeext'
10133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134
(eval $ac_try) 2>&5
10136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137
(exit $ac_status); }; }; then
10140
echo "$as_me: failed program was:" >&5
10141
sed 's/^/| /' conftest.$ac_ext >&5
10143
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10144
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10145
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10146
echo $ECHO_N "(cached) $ECHO_C" >&6
10148
ac_check_lib_save_LIBS=$LIBS
3354
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3355
echo "configure:3356: checking for dnet_ntoa in -ldnet" >&5
3356
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3357
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3358
echo $ac_n "(cached) $ac_c" 1>&6
3360
ac_save_LIBS="$LIBS"
10149
3361
LIBS="-ldnet $LIBS"
10150
cat >conftest.$ac_ext <<_ACEOF
10151
#line $LINENO "configure"
10154
cat confdefs.h >>conftest.$ac_ext
10155
cat >>conftest.$ac_ext <<_ACEOF
10156
/* end confdefs.h. */
3362
cat > conftest.$ac_ext <<EOF
3363
#line 3364 "configure"
3364
#include "confdefs.h"
10158
3365
/* Override any gcc2 internal prototype to avoid an error. */
10162
3366
/* We use char because int might match the return type of a gcc2
10163
builtin and then its argument prototype would still apply. */
10173
rm -f conftest.$ac_objext conftest$ac_exeext
10174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175
(eval $ac_link) 2>&5
10177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178
(exit $ac_status); } &&
10179
{ ac_try='test -s conftest$ac_exeext'
10180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181
(eval $ac_try) 2>&5
10183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184
(exit $ac_status); }; }; then
10185
ac_cv_lib_dnet_dnet_ntoa=yes
3367
builtin and then its argument prototype would still apply. */
3374
if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376
eval "ac_cv_lib_$ac_lib_var=yes"
10187
echo "$as_me: failed program was:" >&5
10188
sed 's/^/| /' conftest.$ac_ext >&5
3378
echo "configure: failed program was:" >&5
3379
cat conftest.$ac_ext >&5
3381
eval "ac_cv_lib_$ac_lib_var=no"
3384
LIBS="$ac_save_LIBS"
10190
ac_cv_lib_dnet_dnet_ntoa=no
10192
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10193
LIBS=$ac_check_lib_save_LIBS
10195
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10196
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10197
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3387
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3388
echo "$ac_t""yes" 1>&6
10198
3389
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3391
echo "$ac_t""no" 1>&6
10201
3394
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10202
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10203
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10204
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10205
echo $ECHO_N "(cached) $ECHO_C" >&6
3395
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3396
echo "configure:3397: checking for dnet_ntoa in -ldnet_stub" >&5
3397
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3398
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3399
echo $ac_n "(cached) $ac_c" 1>&6
10207
ac_check_lib_save_LIBS=$LIBS
3401
ac_save_LIBS="$LIBS"
10208
3402
LIBS="-ldnet_stub $LIBS"
10209
cat >conftest.$ac_ext <<_ACEOF
10210
#line $LINENO "configure"
10213
cat confdefs.h >>conftest.$ac_ext
10214
cat >>conftest.$ac_ext <<_ACEOF
10215
/* end confdefs.h. */
3403
cat > conftest.$ac_ext <<EOF
3404
#line 3405 "configure"
3405
#include "confdefs.h"
10217
3406
/* Override any gcc2 internal prototype to avoid an error. */
10221
3407
/* We use char because int might match the return type of a gcc2
10222
builtin and then its argument prototype would still apply. */
10232
rm -f conftest.$ac_objext conftest$ac_exeext
10233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234
(eval $ac_link) 2>&5
10236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237
(exit $ac_status); } &&
10238
{ ac_try='test -s conftest$ac_exeext'
10239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240
(eval $ac_try) 2>&5
10242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243
(exit $ac_status); }; }; then
10244
ac_cv_lib_dnet_stub_dnet_ntoa=yes
3408
builtin and then its argument prototype would still apply. */
3415
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417
eval "ac_cv_lib_$ac_lib_var=yes"
10246
echo "$as_me: failed program was:" >&5
10247
sed 's/^/| /' conftest.$ac_ext >&5
3419
echo "configure: failed program was:" >&5
3420
cat conftest.$ac_ext >&5
3422
eval "ac_cv_lib_$ac_lib_var=no"
3425
LIBS="$ac_save_LIBS"
10249
ac_cv_lib_dnet_stub_dnet_ntoa=no
10251
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252
LIBS=$ac_check_lib_save_LIBS
10254
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10255
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10256
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3428
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3429
echo "$ac_t""yes" 1>&6
10257
3430
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3432
echo "$ac_t""no" 1>&6
10262
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10263
LIBS="$ac_xsave_LIBS"
10265
3437
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10266
3438
# to get the SysV transport functions.
10267
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3439
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10268
3440
# needs -lnsl.
10269
3441
# The nsl library prevents programs from opening the X display
10270
# on Irix 5.2, according to T.E. Dickey.
10271
# The functions gethostbyname, getservbyname, and inet_addr are
10272
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10273
echo "$as_me:$LINENO: checking for gethostbyname" >&5
10274
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10275
if test "${ac_cv_func_gethostbyname+set}" = set; then
10276
echo $ECHO_N "(cached) $ECHO_C" >&6
3442
# on Irix 5.2, according to dickey@clark.net.
3443
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3444
echo "configure:3445: checking for gethostbyname" >&5
3445
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3446
echo $ac_n "(cached) $ac_c" 1>&6
10278
cat >conftest.$ac_ext <<_ACEOF
10279
#line $LINENO "configure"
10282
cat confdefs.h >>conftest.$ac_ext
10283
cat >>conftest.$ac_ext <<_ACEOF
10284
/* end confdefs.h. */
3448
cat > conftest.$ac_ext <<EOF
3449
#line 3450 "configure"
3450
#include "confdefs.h"
10285
3451
/* System header to define __stub macros and hopefully few prototypes,
10286
which can conflict with char gethostbyname (); below.
10287
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10288
<limits.h> exists even on freestanding compilers. */
10290
# include <limits.h>
10292
# include <assert.h>
3452
which can conflict with char gethostbyname(); below. */
10294
3454
/* Override any gcc2 internal prototype to avoid an error. */
10299
3455
/* We use char because int might match the return type of a gcc2
10300
builtin and then its argument prototype would still apply. */
10301
char gethostbyname ();
3456
builtin and then its argument prototype would still apply. */
3457
char gethostbyname();
10302
3461
/* The GNU C library defines this for functions which it implements
10303
3462
to always fail with ENOSYS. Some functions are actually named
10304
3463
something starting with __ and the normal name is an alias. */
10305
3464
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10308
char (*f) () = gethostbyname;
10317
return f != gethostbyname;
10322
rm -f conftest.$ac_objext conftest$ac_exeext
10323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324
(eval $ac_link) 2>&5
10326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327
(exit $ac_status); } &&
10328
{ ac_try='test -s conftest$ac_exeext'
10329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330
(eval $ac_try) 2>&5
10332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333
(exit $ac_status); }; }; then
10334
ac_cv_func_gethostbyname=yes
10336
echo "$as_me: failed program was:" >&5
10337
sed 's/^/| /' conftest.$ac_ext >&5
10339
ac_cv_func_gethostbyname=no
10341
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10343
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10344
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3472
if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3474
eval "ac_cv_func_gethostbyname=yes"
3476
echo "configure: failed program was:" >&5
3477
cat conftest.$ac_ext >&5
3479
eval "ac_cv_func_gethostbyname=no"
3484
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3485
echo "$ac_t""yes" 1>&6
3488
echo "$ac_t""no" 1>&6
10346
3491
if test $ac_cv_func_gethostbyname = no; then
10347
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10348
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10349
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10350
echo $ECHO_N "(cached) $ECHO_C" >&6
3492
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3493
echo "configure:3494: checking for gethostbyname in -lnsl" >&5
3494
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3495
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3496
echo $ac_n "(cached) $ac_c" 1>&6
10352
ac_check_lib_save_LIBS=$LIBS
3498
ac_save_LIBS="$LIBS"
10353
3499
LIBS="-lnsl $LIBS"
10354
cat >conftest.$ac_ext <<_ACEOF
10355
#line $LINENO "configure"
10358
cat confdefs.h >>conftest.$ac_ext
10359
cat >>conftest.$ac_ext <<_ACEOF
10360
/* end confdefs.h. */
3500
cat > conftest.$ac_ext <<EOF
3501
#line 3502 "configure"
3502
#include "confdefs.h"
10362
3503
/* Override any gcc2 internal prototype to avoid an error. */
10366
3504
/* We use char because int might match the return type of a gcc2
10367
builtin and then its argument prototype would still apply. */
10368
char gethostbyname ();
10377
rm -f conftest.$ac_objext conftest$ac_exeext
10378
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379
(eval $ac_link) 2>&5
10381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382
(exit $ac_status); } &&
10383
{ ac_try='test -s conftest$ac_exeext'
10384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385
(eval $ac_try) 2>&5
10387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388
(exit $ac_status); }; }; then
10389
ac_cv_lib_nsl_gethostbyname=yes
3505
builtin and then its argument prototype would still apply. */
3506
char gethostbyname();
3512
if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3514
eval "ac_cv_lib_$ac_lib_var=yes"
10391
echo "$as_me: failed program was:" >&5
10392
sed 's/^/| /' conftest.$ac_ext >&5
3516
echo "configure: failed program was:" >&5
3517
cat conftest.$ac_ext >&5
3519
eval "ac_cv_lib_$ac_lib_var=no"
3522
LIBS="$ac_save_LIBS"
10394
ac_cv_lib_nsl_gethostbyname=no
10396
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10397
LIBS=$ac_check_lib_save_LIBS
10399
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10400
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10401
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3525
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3526
echo "$ac_t""yes" 1>&6
10402
3527
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10405
if test $ac_cv_lib_nsl_gethostbyname = no; then
10406
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10407
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10408
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10409
echo $ECHO_N "(cached) $ECHO_C" >&6
10411
ac_check_lib_save_LIBS=$LIBS
10413
cat >conftest.$ac_ext <<_ACEOF
10414
#line $LINENO "configure"
10417
cat confdefs.h >>conftest.$ac_ext
10418
cat >>conftest.$ac_ext <<_ACEOF
10419
/* end confdefs.h. */
10421
/* Override any gcc2 internal prototype to avoid an error. */
10425
/* We use char because int might match the return type of a gcc2
10426
builtin and then its argument prototype would still apply. */
10427
char gethostbyname ();
10436
rm -f conftest.$ac_objext conftest$ac_exeext
10437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438
(eval $ac_link) 2>&5
10440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441
(exit $ac_status); } &&
10442
{ ac_try='test -s conftest$ac_exeext'
10443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444
(eval $ac_try) 2>&5
10446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447
(exit $ac_status); }; }; then
10448
ac_cv_lib_bsd_gethostbyname=yes
10450
echo "$as_me: failed program was:" >&5
10451
sed 's/^/| /' conftest.$ac_ext >&5
10453
ac_cv_lib_bsd_gethostbyname=no
10455
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10456
LIBS=$ac_check_lib_save_LIBS
10458
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10459
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10460
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10461
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3529
echo "$ac_t""no" 1>&6
10467
3534
# lieder@skyler.mavd.honeywell.com says without -lsocket,
10468
3535
# socket/setsockopt and other routines are undefined under SCO ODT
10469
3536
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10470
# on later versions), says Simon Leinen: it contains gethostby*
10471
# variants that don't use the name server (or something). -lsocket
10472
# must be given before -lnsl if both are needed. We assume that
10473
# if connect needs -lnsl, so does gethostbyname.
10474
echo "$as_me:$LINENO: checking for connect" >&5
10475
echo $ECHO_N "checking for connect... $ECHO_C" >&6
10476
if test "${ac_cv_func_connect+set}" = set; then
10477
echo $ECHO_N "(cached) $ECHO_C" >&6
3537
# on later versions), says simon@lia.di.epfl.ch: it contains
3538
# gethostby* variants that don't use the nameserver (or something).
3539
# -lsocket must be given before -lnsl if both are needed.
3540
# We assume that if connect needs -lnsl, so does gethostbyname.
3541
echo $ac_n "checking for connect""... $ac_c" 1>&6
3542
echo "configure:3543: checking for connect" >&5
3543
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3544
echo $ac_n "(cached) $ac_c" 1>&6
10479
cat >conftest.$ac_ext <<_ACEOF
10480
#line $LINENO "configure"
10483
cat confdefs.h >>conftest.$ac_ext
10484
cat >>conftest.$ac_ext <<_ACEOF
10485
/* end confdefs.h. */
3546
cat > conftest.$ac_ext <<EOF
3547
#line 3548 "configure"
3548
#include "confdefs.h"
10486
3549
/* System header to define __stub macros and hopefully few prototypes,
10487
which can conflict with char connect (); below.
10488
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489
<limits.h> exists even on freestanding compilers. */
10491
# include <limits.h>
10493
# include <assert.h>
3550
which can conflict with char connect(); below. */
10495
3552
/* Override any gcc2 internal prototype to avoid an error. */
10500
3553
/* We use char because int might match the return type of a gcc2
10501
builtin and then its argument prototype would still apply. */
3554
builtin and then its argument prototype would still apply. */
10503
3559
/* The GNU C library defines this for functions which it implements
10504
3560
to always fail with ENOSYS. Some functions are actually named
10505
3561
something starting with __ and the normal name is an alias. */
10506
3562
#if defined (__stub_connect) || defined (__stub___connect)
10509
char (*f) () = connect;
10518
return f != connect;
10523
rm -f conftest.$ac_objext conftest$ac_exeext
10524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10525
(eval $ac_link) 2>&5
10527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
(exit $ac_status); } &&
10529
{ ac_try='test -s conftest$ac_exeext'
10530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531
(eval $ac_try) 2>&5
10533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
(exit $ac_status); }; }; then
10535
ac_cv_func_connect=yes
10537
echo "$as_me: failed program was:" >&5
10538
sed 's/^/| /' conftest.$ac_ext >&5
10540
ac_cv_func_connect=no
10542
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10544
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10545
echo "${ECHO_T}$ac_cv_func_connect" >&6
3570
if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3572
eval "ac_cv_func_connect=yes"
3574
echo "configure: failed program was:" >&5
3575
cat conftest.$ac_ext >&5
3577
eval "ac_cv_func_connect=no"
3582
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3583
echo "$ac_t""yes" 1>&6
3586
echo "$ac_t""no" 1>&6
10547
3589
if test $ac_cv_func_connect = no; then
10548
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10549
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10550
if test "${ac_cv_lib_socket_connect+set}" = set; then
10551
echo $ECHO_N "(cached) $ECHO_C" >&6
3590
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3591
echo "configure:3592: checking for connect in -lsocket" >&5
3592
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3593
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3594
echo $ac_n "(cached) $ac_c" 1>&6
10553
ac_check_lib_save_LIBS=$LIBS
3596
ac_save_LIBS="$LIBS"
10554
3597
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10555
cat >conftest.$ac_ext <<_ACEOF
10556
#line $LINENO "configure"
10559
cat confdefs.h >>conftest.$ac_ext
10560
cat >>conftest.$ac_ext <<_ACEOF
10561
/* end confdefs.h. */
3598
cat > conftest.$ac_ext <<EOF
3599
#line 3600 "configure"
3600
#include "confdefs.h"
10563
3601
/* Override any gcc2 internal prototype to avoid an error. */
10567
3602
/* We use char because int might match the return type of a gcc2
10568
builtin and then its argument prototype would still apply. */
10578
rm -f conftest.$ac_objext conftest$ac_exeext
10579
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580
(eval $ac_link) 2>&5
10582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583
(exit $ac_status); } &&
10584
{ ac_try='test -s conftest$ac_exeext'
10585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586
(eval $ac_try) 2>&5
10588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589
(exit $ac_status); }; }; then
10590
ac_cv_lib_socket_connect=yes
3603
builtin and then its argument prototype would still apply. */
3610
if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612
eval "ac_cv_lib_$ac_lib_var=yes"
10592
echo "$as_me: failed program was:" >&5
10593
sed 's/^/| /' conftest.$ac_ext >&5
3614
echo "configure: failed program was:" >&5
3615
cat conftest.$ac_ext >&5
3617
eval "ac_cv_lib_$ac_lib_var=no"
3620
LIBS="$ac_save_LIBS"
10595
ac_cv_lib_socket_connect=no
10597
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10598
LIBS=$ac_check_lib_save_LIBS
10600
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10601
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10602
if test $ac_cv_lib_socket_connect = yes; then
3623
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624
echo "$ac_t""yes" 1>&6
10603
3625
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3627
echo "$ac_t""no" 1>&6
10608
# Guillermo Gomez says -lposix is necessary on A/UX.
10609
echo "$as_me:$LINENO: checking for remove" >&5
10610
echo $ECHO_N "checking for remove... $ECHO_C" >&6
10611
if test "${ac_cv_func_remove+set}" = set; then
10612
echo $ECHO_N "(cached) $ECHO_C" >&6
3632
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3633
echo $ac_n "checking for remove""... $ac_c" 1>&6
3634
echo "configure:3635: checking for remove" >&5
3635
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3636
echo $ac_n "(cached) $ac_c" 1>&6
10614
cat >conftest.$ac_ext <<_ACEOF
10615
#line $LINENO "configure"
10618
cat confdefs.h >>conftest.$ac_ext
10619
cat >>conftest.$ac_ext <<_ACEOF
10620
/* end confdefs.h. */
3638
cat > conftest.$ac_ext <<EOF
3639
#line 3640 "configure"
3640
#include "confdefs.h"
10621
3641
/* System header to define __stub macros and hopefully few prototypes,
10622
which can conflict with char remove (); below.
10623
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10624
<limits.h> exists even on freestanding compilers. */
10626
# include <limits.h>
10628
# include <assert.h>
3642
which can conflict with char remove(); below. */
10630
3644
/* Override any gcc2 internal prototype to avoid an error. */
10635
3645
/* We use char because int might match the return type of a gcc2
10636
builtin and then its argument prototype would still apply. */
3646
builtin and then its argument prototype would still apply. */
10638
3651
/* The GNU C library defines this for functions which it implements
10639
3652
to always fail with ENOSYS. Some functions are actually named
10640
3653
something starting with __ and the normal name is an alias. */
10641
3654
#if defined (__stub_remove) || defined (__stub___remove)
10644
char (*f) () = remove;
10653
return f != remove;
10658
rm -f conftest.$ac_objext conftest$ac_exeext
10659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660
(eval $ac_link) 2>&5
10662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663
(exit $ac_status); } &&
10664
{ ac_try='test -s conftest$ac_exeext'
10665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666
(eval $ac_try) 2>&5
10668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669
(exit $ac_status); }; }; then
10670
ac_cv_func_remove=yes
10672
echo "$as_me: failed program was:" >&5
10673
sed 's/^/| /' conftest.$ac_ext >&5
10675
ac_cv_func_remove=no
10677
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10679
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10680
echo "${ECHO_T}$ac_cv_func_remove" >&6
3662
if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664
eval "ac_cv_func_remove=yes"
3666
echo "configure: failed program was:" >&5
3667
cat conftest.$ac_ext >&5
3669
eval "ac_cv_func_remove=no"
3674
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3675
echo "$ac_t""yes" 1>&6
3678
echo "$ac_t""no" 1>&6
10682
3681
if test $ac_cv_func_remove = no; then
10683
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10684
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10685
if test "${ac_cv_lib_posix_remove+set}" = set; then
10686
echo $ECHO_N "(cached) $ECHO_C" >&6
3682
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3683
echo "configure:3684: checking for remove in -lposix" >&5
3684
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3685
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686
echo $ac_n "(cached) $ac_c" 1>&6
10688
ac_check_lib_save_LIBS=$LIBS
3688
ac_save_LIBS="$LIBS"
10689
3689
LIBS="-lposix $LIBS"
10690
cat >conftest.$ac_ext <<_ACEOF
10691
#line $LINENO "configure"
10694
cat confdefs.h >>conftest.$ac_ext
10695
cat >>conftest.$ac_ext <<_ACEOF
10696
/* end confdefs.h. */
3690
cat > conftest.$ac_ext <<EOF
3691
#line 3692 "configure"
3692
#include "confdefs.h"
10698
3693
/* Override any gcc2 internal prototype to avoid an error. */
10702
3694
/* We use char because int might match the return type of a gcc2
10703
builtin and then its argument prototype would still apply. */
10713
rm -f conftest.$ac_objext conftest$ac_exeext
10714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715
(eval $ac_link) 2>&5
10717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718
(exit $ac_status); } &&
10719
{ ac_try='test -s conftest$ac_exeext'
10720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721
(eval $ac_try) 2>&5
10723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724
(exit $ac_status); }; }; then
10725
ac_cv_lib_posix_remove=yes
3695
builtin and then its argument prototype would still apply. */
3702
if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704
eval "ac_cv_lib_$ac_lib_var=yes"
10727
echo "$as_me: failed program was:" >&5
10728
sed 's/^/| /' conftest.$ac_ext >&5
3706
echo "configure: failed program was:" >&5
3707
cat conftest.$ac_ext >&5
3709
eval "ac_cv_lib_$ac_lib_var=no"
3712
LIBS="$ac_save_LIBS"
10730
ac_cv_lib_posix_remove=no
10732
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10733
LIBS=$ac_check_lib_save_LIBS
10735
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10736
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10737
if test $ac_cv_lib_posix_remove = yes; then
3715
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716
echo "$ac_t""yes" 1>&6
10738
3717
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3719
echo "$ac_t""no" 1>&6
10743
3724
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10744
echo "$as_me:$LINENO: checking for shmat" >&5
10745
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10746
if test "${ac_cv_func_shmat+set}" = set; then
10747
echo $ECHO_N "(cached) $ECHO_C" >&6
3725
echo $ac_n "checking for shmat""... $ac_c" 1>&6
3726
echo "configure:3727: checking for shmat" >&5
3727
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3728
echo $ac_n "(cached) $ac_c" 1>&6
10749
cat >conftest.$ac_ext <<_ACEOF
10750
#line $LINENO "configure"
10753
cat confdefs.h >>conftest.$ac_ext
10754
cat >>conftest.$ac_ext <<_ACEOF
10755
/* end confdefs.h. */
3730
cat > conftest.$ac_ext <<EOF
3731
#line 3732 "configure"
3732
#include "confdefs.h"
10756
3733
/* System header to define __stub macros and hopefully few prototypes,
10757
which can conflict with char shmat (); below.
10758
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759
<limits.h> exists even on freestanding compilers. */
10761
# include <limits.h>
10763
# include <assert.h>
3734
which can conflict with char shmat(); below. */
10765
3736
/* Override any gcc2 internal prototype to avoid an error. */
10770
3737
/* We use char because int might match the return type of a gcc2
10771
builtin and then its argument prototype would still apply. */
3738
builtin and then its argument prototype would still apply. */
10773
3743
/* The GNU C library defines this for functions which it implements
10774
3744
to always fail with ENOSYS. Some functions are actually named
10775
3745
something starting with __ and the normal name is an alias. */
10776
3746
#if defined (__stub_shmat) || defined (__stub___shmat)
10779
char (*f) () = shmat;
10793
rm -f conftest.$ac_objext conftest$ac_exeext
10794
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795
(eval $ac_link) 2>&5
10797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
(exit $ac_status); } &&
10799
{ ac_try='test -s conftest$ac_exeext'
10800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801
(eval $ac_try) 2>&5
10803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804
(exit $ac_status); }; }; then
10805
ac_cv_func_shmat=yes
10807
echo "$as_me: failed program was:" >&5
10808
sed 's/^/| /' conftest.$ac_ext >&5
10810
ac_cv_func_shmat=no
10812
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10814
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10815
echo "${ECHO_T}$ac_cv_func_shmat" >&6
3754
if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756
eval "ac_cv_func_shmat=yes"
3758
echo "configure: failed program was:" >&5
3759
cat conftest.$ac_ext >&5
3761
eval "ac_cv_func_shmat=no"
3766
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3767
echo "$ac_t""yes" 1>&6
3770
echo "$ac_t""no" 1>&6
10817
3773
if test $ac_cv_func_shmat = no; then
10818
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10819
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10820
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10821
echo $ECHO_N "(cached) $ECHO_C" >&6
3774
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3775
echo "configure:3776: checking for shmat in -lipc" >&5
3776
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3777
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778
echo $ac_n "(cached) $ac_c" 1>&6
10823
ac_check_lib_save_LIBS=$LIBS
3780
ac_save_LIBS="$LIBS"
10824
3781
LIBS="-lipc $LIBS"
10825
cat >conftest.$ac_ext <<_ACEOF
10826
#line $LINENO "configure"
10829
cat confdefs.h >>conftest.$ac_ext
10830
cat >>conftest.$ac_ext <<_ACEOF
10831
/* end confdefs.h. */
3782
cat > conftest.$ac_ext <<EOF
3783
#line 3784 "configure"
3784
#include "confdefs.h"
10833
3785
/* Override any gcc2 internal prototype to avoid an error. */
10837
3786
/* We use char because int might match the return type of a gcc2
10838
builtin and then its argument prototype would still apply. */
10848
rm -f conftest.$ac_objext conftest$ac_exeext
10849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850
(eval $ac_link) 2>&5
10852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853
(exit $ac_status); } &&
10854
{ ac_try='test -s conftest$ac_exeext'
10855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856
(eval $ac_try) 2>&5
10858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859
(exit $ac_status); }; }; then
10860
ac_cv_lib_ipc_shmat=yes
3787
builtin and then its argument prototype would still apply. */
3794
if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796
eval "ac_cv_lib_$ac_lib_var=yes"
10862
echo "$as_me: failed program was:" >&5
10863
sed 's/^/| /' conftest.$ac_ext >&5
3798
echo "configure: failed program was:" >&5
3799
cat conftest.$ac_ext >&5
3801
eval "ac_cv_lib_$ac_lib_var=no"
3804
LIBS="$ac_save_LIBS"
10865
ac_cv_lib_ipc_shmat=no
10867
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10868
LIBS=$ac_check_lib_save_LIBS
10870
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10871
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10872
if test $ac_cv_lib_ipc_shmat = yes; then
3807
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808
echo "$ac_t""yes" 1>&6
10873
3809
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3811
echo "$ac_t""no" 1>&6
10879
3817
# Check for libraries that X11R6 Xt/Xaw programs need.
10880
ac_save_LDFLAGS=$LDFLAGS
3818
ac_save_LDFLAGS="$LDFLAGS"
10881
3819
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10882
3820
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10883
3821
# check for ICE first), but we must link in the order -lSM -lICE or
10884
3822
# we get undefined symbols. So assume we have SM if we have ICE.
10885
3823
# These have to be linked with before -lX11, unlike the other
10886
3824
# libraries we check for below, so use a different variable.
10887
# John Interrante, Karl Berry
10888
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10889
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10890
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10891
echo $ECHO_N "(cached) $ECHO_C" >&6
3825
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3826
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3827
echo "configure:3828: checking for IceConnectionNumber in -lICE" >&5
3828
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3829
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3830
echo $ac_n "(cached) $ac_c" 1>&6
10893
ac_check_lib_save_LIBS=$LIBS
3832
ac_save_LIBS="$LIBS"
10894
3833
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10895
cat >conftest.$ac_ext <<_ACEOF
10896
#line $LINENO "configure"
10899
cat confdefs.h >>conftest.$ac_ext
10900
cat >>conftest.$ac_ext <<_ACEOF
10901
/* end confdefs.h. */
3834
cat > conftest.$ac_ext <<EOF
3835
#line 3836 "configure"
3836
#include "confdefs.h"
10903
3837
/* Override any gcc2 internal prototype to avoid an error. */
10907
3838
/* We use char because int might match the return type of a gcc2
10908
builtin and then its argument prototype would still apply. */
10909
char IceConnectionNumber ();
10913
IceConnectionNumber ();
10918
rm -f conftest.$ac_objext conftest$ac_exeext
10919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920
(eval $ac_link) 2>&5
10922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923
(exit $ac_status); } &&
10924
{ ac_try='test -s conftest$ac_exeext'
10925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926
(eval $ac_try) 2>&5
10928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929
(exit $ac_status); }; }; then
10930
ac_cv_lib_ICE_IceConnectionNumber=yes
3839
builtin and then its argument prototype would still apply. */
3840
char IceConnectionNumber();
3843
IceConnectionNumber()
3846
if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3848
eval "ac_cv_lib_$ac_lib_var=yes"
10932
echo "$as_me: failed program was:" >&5
10933
sed 's/^/| /' conftest.$ac_ext >&5
3850
echo "configure: failed program was:" >&5
3851
cat conftest.$ac_ext >&5
3853
eval "ac_cv_lib_$ac_lib_var=no"
3856
LIBS="$ac_save_LIBS"
10935
ac_cv_lib_ICE_IceConnectionNumber=no
10937
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10938
LIBS=$ac_check_lib_save_LIBS
10940
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10941
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10942
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3859
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3860
echo "$ac_t""yes" 1>&6
10943
3861
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3863
echo "$ac_t""no" 1>&6
10946
LDFLAGS=$ac_save_LDFLAGS
3866
LDFLAGS="$ac_save_LDFLAGS"
12075
for ac_declaration in \
12077
'#include <stdlib.h>' \
12078
'extern "C" void std::exit (int) throw (); using std::exit;' \
12079
'extern "C" void std::exit (int); using std::exit;' \
12080
'extern "C" void exit (int) throw ();' \
12081
'extern "C" void exit (int);' \
12084
cat >conftest.$ac_ext <<_ACEOF
12085
#line $LINENO "configure"
12088
cat confdefs.h >>conftest.$ac_ext
12089
cat >>conftest.$ac_ext <<_ACEOF
12090
/* end confdefs.h. */
12091
#include <stdlib.h>
12101
rm -f conftest.$ac_objext
12102
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103
(eval $ac_compile) 2>&5
12105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106
(exit $ac_status); } &&
12107
{ ac_try='test -s conftest.$ac_objext'
12108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109
(eval $ac_try) 2>&5
12111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112
(exit $ac_status); }; }; then
12115
echo "$as_me: failed program was:" >&5
12116
sed 's/^/| /' conftest.$ac_ext >&5
12120
rm -f conftest.$ac_objext conftest.$ac_ext
12121
cat >conftest.$ac_ext <<_ACEOF
12122
#line $LINENO "configure"
12125
cat confdefs.h >>conftest.$ac_ext
12126
cat >>conftest.$ac_ext <<_ACEOF
12127
/* end confdefs.h. */
12137
rm -f conftest.$ac_objext
12138
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139
(eval $ac_compile) 2>&5
12141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142
(exit $ac_status); } &&
12143
{ ac_try='test -s conftest.$ac_objext'
12144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145
(eval $ac_try) 2>&5
12147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148
(exit $ac_status); }; }; then
12151
echo "$as_me: failed program was:" >&5
12152
sed 's/^/| /' conftest.$ac_ext >&5
12155
rm -f conftest.$ac_objext conftest.$ac_ext
12158
if test -n "$ac_declaration"; then
12159
echo '#ifdef __cplusplus' >>confdefs.h
12160
echo $ac_declaration >>confdefs.h
12161
echo '#endif' >>confdefs.h
12165
ac_cpp='$CPP $CPPFLAGS'
12166
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170
depcc="$CXX" am_compiler_list=
12172
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12173
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12174
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12175
echo $ECHO_N "(cached) $ECHO_C" >&6
12177
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12178
# We make a subdir and do the tests there. Otherwise we can end up
12179
# making bogus files that we don't know about and never remove. For
12180
# instance it was reported that on HP-UX the gcc test will end up
12181
# making a dummy file named `D' -- because `-MD' means `put the output
12184
# Copy depcomp to subdir because otherwise we won't find it if we're
12185
# using a relative directory.
12186
cp "$am_depcomp" conftest.dir
12189
am_cv_CXX_dependencies_compiler_type=none
12190
if test "$am_compiler_list" = ""; then
12191
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12193
for depmode in $am_compiler_list; do
12194
# We need to recreate these files for each test, as the compiler may
12195
# overwrite some of them when testing with obscure command lines.
12196
# This happens at least with the AIX C compiler.
12197
echo '#include "conftest.h"' > conftest.c
12198
echo 'int i;' > conftest.h
12199
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12203
# after this tag, mechanisms are not by side-effect, so they'll
12204
# only be used when explicitly requested
12205
if test "x$enable_dependency_tracking" = xyes; then
12213
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12214
# mode. It turns out that the SunPro C++ compiler does not properly
12215
# handle `-M -o', and we need to detect this.
12216
if depmode=$depmode \
12217
source=conftest.c object=conftest.o \
12218
depfile=conftest.Po tmpdepfile=conftest.TPo \
12219
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
12220
>/dev/null 2>conftest.err &&
12221
grep conftest.h conftest.Po > /dev/null 2>&1 &&
12222
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12223
# icc doesn't choke on unknown options, it will just issue warnings
12224
# (even with -Werror). So we grep stderr for any message
12225
# that says an option was ignored.
12226
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
12227
am_cv_CXX_dependencies_compiler_type=$depmode
12234
rm -rf conftest.dir
12236
am_cv_CXX_dependencies_compiler_type=none
12240
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12241
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12242
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12247
test "x$enable_dependency_tracking" != xno \
12248
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12249
am__fastdepCXX_TRUE=
12250
am__fastdepCXX_FALSE='#'
12252
am__fastdepCXX_TRUE='#'
12253
am__fastdepCXX_FALSE=
4684
no_libplotter="no"; echo $ac_n "checking whether ${CXX-g++} supports bool""... $ac_c" 1>&6
4685
echo "configure:4686: checking whether ${CXX-g++} supports bool" >&5; ac_ext=C
4686
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12258
4687
ac_cpp='$CXXCPP $CPPFLAGS'
12259
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12263
echo "$as_me:$LINENO: checking whether ${CXX-g++} supports bool" >&5
12264
echo $ECHO_N "checking whether ${CXX-g++} supports bool... $ECHO_C" >&6
12268
cat >conftest.$ac_ext <<_ACEOF
12269
#line $LINENO "configure"
12272
cat confdefs.h >>conftest.$ac_ext
12273
cat >>conftest.$ac_ext <<_ACEOF
12274
/* end confdefs.h. */
4688
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4689
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4690
cross_compiling=$ac_cv_prog_cxx_cross
4691
cat > conftest.$ac_ext <<EOF
4692
#line 4693 "configure"
4693
#include "confdefs.h"
12279
4696
bool foo = true;
12284
rm -f conftest.$ac_objext
12285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286
(eval $ac_compile) 2>&5
12288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289
(exit $ac_status); } &&
12290
{ ac_try='test -s conftest.$ac_objext'
12291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292
(eval $ac_try) 2>&5
12294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
(exit $ac_status); }; }; then
12297
echo "$as_me:$LINENO: result: yes" >&5
12298
echo "${ECHO_T}yes" >&6
12299
cat >>confdefs.h <<\_ACEOF
4699
if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
12300
4702
#define HAVE_BOOL 1
12305
echo "$as_me: failed program was:" >&5
12306
sed 's/^/| /' conftest.$ac_ext >&5
12308
echo "$as_me:$LINENO: result: no" >&5
12309
echo "${ECHO_T}no" >&6
12311
rm -f conftest.$ac_objext conftest.$ac_ext
4706
echo "configure: failed program was:" >&5
4707
cat conftest.$ac_ext >&5
4709
echo "$ac_t""no" 1>&6
4713
no_libplotter="yes"; extralib=""
4717
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12313
4718
ac_cpp='$CPP $CPPFLAGS'
12314
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
if test "${enable_libplotter+set}" = set; then
12321
ENABLE_LIBPLOTTER_TRUE=
12322
ENABLE_LIBPLOTTER_FALSE='#'
4719
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4720
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4721
cross_compiling=$ac_cv_prog_cc_cross
4725
if test "x$no_libplotter" = "xyes"; then
4727
NO_LIBPLOTTER_FALSE='#'
12324
ENABLE_LIBPLOTTER_TRUE='#'
12325
ENABLE_LIBPLOTTER_FALSE=
4729
NO_LIBPLOTTER_TRUE='#'
4730
NO_LIBPLOTTER_FALSE=
12329
4733
# Check whether --enable-libxmi or --disable-libxmi was given.
12330
4734
if test "${enable_libxmi+set}" = set; then
12331
4735
enableval="$enable_libxmi"
12336
if test "${enable_libxmi+set}" = set; then
12337
ENABLE_LIBXMI_TRUE=
12338
ENABLE_LIBXMI_FALSE='#'
12340
ENABLE_LIBXMI_TRUE='#'
12341
ENABLE_LIBXMI_FALSE=
4736
echo enabling construction of the libxmi scan-conversion library; no_libxmi="no"
4743
if test "x$no_libxmi" = "xyes"; then
12347
4753
if test "x$CFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
12348
if test "x$GCC" = "xyes"; then
4754
if test "x$GCC" = "xyes"; then
12355
4761
if test "x$CXXFLAGS_NOT_SET_BY_INSTALLER" = "xyes"; then
12356
if test "x$GXX" = "xyes"; then
4762
if test "x$GXX" = "xyes"; then
4769
if test "x${GCC}" = "xyes"; then
4770
echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4771
echo "configure:4772: checking "for gcc strength-reduce bug"" >&5
4772
if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4773
echo $ac_n "(cached) $ac_c" 1>&6
4775
if test "$cross_compiling" = yes; then
4776
ac_cv_c_gcc_strength_bug="yes"
4778
cat > conftest.$ac_ext <<EOF
4779
#line 4780 "configure"
4780
#include "confdefs.h"
4784
static int Array[3];
4787
for (i=0; i < B; i++)
4789
exit (Array[1] != -2);
4792
if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4794
ac_cv_c_gcc_strength_bug="no"
4796
echo "configure: failed program was:" >&5
4797
cat conftest.$ac_ext >&5
4799
ac_cv_c_gcc_strength_bug="yes"
4806
echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4807
if test "$ac_cv_c_gcc_strength_bug" = "yes"
4809
CFLAGS="$CFLAGS -fno-strength-reduce"
12363
ac_config_files="$ac_config_files Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile"
12364
cat >confcache <<\_ACEOF
4814
cat > confcache <<\EOF
12365
4815
# This file is a shell script that caches the results of configure
12366
4816
# tests run on this system so they can be shared between configure
12367
# scripts and configure runs, see configure's option --config-cache.
12368
# It is not useful on other systems. If it contains results you don't
12369
# want to keep, you may remove or edit it.
12371
# config.status only pays attention to the cache file if you give it
12372
# the --recheck option to rerun configure.
12374
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12375
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12376
# following values.
4817
# scripts and configure runs. It is not useful on other systems.
4818
# If it contains results you don't want to keep, you may remove or edit it.
4820
# By default, configure uses ./config.cache as the cache file,
4821
# creating it if it does not exist already. You can give configure
4822
# the --cache-file=FILE option to use a different cache file; that is
4823
# what configure does when it calls configure scripts in
4824
# subdirectories, so they share the cache.
4825
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4826
# config.status only pays attention to the cache file if you give it the
4827
# --recheck option to rerun configure.
12380
4830
# The following way of writing the cache mishandles newlines in values,
12381
4831
# but we know of no workaround that is simple, portable, and efficient.
12382
4832
# So, don't put newlines in cache variables' values.
12383
4833
# Ultrix sh set writes to stderr and can't be redirected directly,
12384
4834
# and sets the high bit in the cache file unless we assign to the vars.
12387
case `(ac_space=' '; set | grep ac_space) 2>&1` in
12389
# `set' does not quote correctly, so add quotes (double-quote
12390
# substitution turns \\\\ into \\, and sed turns \\ into \).
12393
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12396
# `set' quotes correctly as required by POSIX, so do not add quotes.
12398
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12405
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12407
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12409
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4836
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4838
# `set' does not quote correctly, so add quotes (double-quote substitution
4839
# turns \\\\ into \\, and sed turns \\ into \).
4841
-e "s/'/'\\\\''/g" \
4842
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4845
# `set' quotes correctly as required by POSIX, so do not add quotes.
4846
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4849
if cmp -s $cache_file confcache; then
12410
4852
if test -w $cache_file; then
12411
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12412
cat confcache >$cache_file
4853
echo "updating cache $cache_file"
4854
cat confcache > $cache_file
12414
4856
echo "not updating unwritable cache $cache_file"
12417
4859
rm -f confcache
4861
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12419
4863
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12420
4864
# Let make expand exec_prefix.
12421
4865
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12423
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12424
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12425
# trailing colons and then remove the whole line if VPATH becomes empty
12426
# (actually we leave an empty line to preserve line numbers).
4867
# Any assignment to VPATH causes Sun make to only execute
4868
# the first set of double-colon rules, so remove it if not needed.
4869
# If there is a colon in the path, we need to keep it.
12427
4870
if test "x$srcdir" = x.; then
12428
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12429
s/:*\$(srcdir):*/:/;
12430
s/:*\${srcdir}:*/:/;
12432
s/^\([^=]*=[ ]*\):*/\1/;
4871
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4874
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12438
4876
DEFS=-DHAVE_CONFIG_H
12442
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12443
# 1. Remove the extension, and $U if already installed.
12444
ac_i=`echo "$ac_i" |
12445
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12447
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12448
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12450
LIBOBJS=$ac_libobjs
12452
LTLIBOBJS=$ac_ltlibobjs
12455
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12456
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12457
Usually this means the macro was only invoked conditionally." >&5
12458
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12459
Usually this means the macro was only invoked conditionally." >&2;}
12460
{ (exit 1); exit 1; }; }
12462
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12463
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12464
Usually this means the macro was only invoked conditionally." >&5
12465
echo "$as_me: error: conditional \"AMDEP\" was never defined.
12466
Usually this means the macro was only invoked conditionally." >&2;}
12467
{ (exit 1); exit 1; }; }
12469
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12470
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12471
Usually this means the macro was only invoked conditionally." >&5
12472
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12473
Usually this means the macro was only invoked conditionally." >&2;}
12474
{ (exit 1); exit 1; }; }
12476
if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
12477
{ { echo "$as_me:$LINENO: error: conditional \"NO_X\" was never defined.
12478
Usually this means the macro was only invoked conditionally." >&5
12479
echo "$as_me: error: conditional \"NO_X\" was never defined.
12480
Usually this means the macro was only invoked conditionally." >&2;}
12481
{ (exit 1); exit 1; }; }
12483
if test -z "${NO_PNG_TRUE}" && test -z "${NO_PNG_FALSE}"; then
12484
{ { echo "$as_me:$LINENO: error: conditional \"NO_PNG\" was never defined.
12485
Usually this means the macro was only invoked conditionally." >&5
12486
echo "$as_me: error: conditional \"NO_PNG\" was never defined.
12487
Usually this means the macro was only invoked conditionally." >&2;}
12488
{ (exit 1); exit 1; }; }
12490
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
12491
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
12492
Usually this means the macro was only invoked conditionally." >&5
12493
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
12494
Usually this means the macro was only invoked conditionally." >&2;}
12495
{ (exit 1); exit 1; }; }
12497
if test -z "${ENABLE_LIBPLOTTER_TRUE}" && test -z "${ENABLE_LIBPLOTTER_FALSE}"; then
12498
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBPLOTTER\" was never defined.
12499
Usually this means the macro was only invoked conditionally." >&5
12500
echo "$as_me: error: conditional \"ENABLE_LIBPLOTTER\" was never defined.
12501
Usually this means the macro was only invoked conditionally." >&2;}
12502
{ (exit 1); exit 1; }; }
12504
if test -z "${ENABLE_LIBXMI_TRUE}" && test -z "${ENABLE_LIBXMI_FALSE}"; then
12505
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXMI\" was never defined.
12506
Usually this means the macro was only invoked conditionally." >&5
12507
echo "$as_me: error: conditional \"ENABLE_LIBXMI\" was never defined.
12508
Usually this means the macro was only invoked conditionally." >&2;}
12509
{ (exit 1); exit 1; }; }
4878
# Without the "./", some shells look in PATH for config.status.
12512
4879
: ${CONFIG_STATUS=./config.status}
12513
ac_clean_files_save=$ac_clean_files
12514
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12515
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12516
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12517
cat >$CONFIG_STATUS <<_ACEOF
12519
# Generated by $as_me.
4881
echo creating $CONFIG_STATUS
4882
rm -f $CONFIG_STATUS
4883
cat > $CONFIG_STATUS <<EOF
4885
# Generated automatically by configure.
12520
4886
# Run this file to recreate the current configuration.
4887
# This directory was configured as follows,
4888
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4890
# $0 $ac_configure_args
12521
4892
# Compiler output produced by configure, useful for debugging
12522
# configure, is in config.log if it exists.
12525
ac_cs_recheck=false
12527
SHELL=\${CONFIG_SHELL-$SHELL}
12530
cat >>$CONFIG_STATUS <<\_ACEOF
12531
## --------------------- ##
12532
## M4sh Initialization. ##
12533
## --------------------- ##
12535
# Be Bourne compatible
12536
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12539
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12540
# is contrary to our usage. Disable this feature.
12541
alias -g '${1+"$@"}'='"$@"'
12542
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12546
# Support unset when possible.
12547
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12554
# Work around bugs in pre-3.0 UWIN ksh.
12555
$as_unset ENV MAIL MAILPATH
12562
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12563
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12564
LC_TELEPHONE LC_TIME
12566
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
12567
eval $as_var=C; export $as_var
12573
# Required to use basename.
12574
if expr a : '\(a\)' >/dev/null 2>&1; then
12580
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12581
as_basename=basename
12587
# Name of the executable.
12588
as_me=`$as_basename "$0" ||
12589
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12590
X"$0" : 'X\(//\)$' \| \
12591
X"$0" : 'X\(/\)$' \| \
12592
. : '\(.\)' 2>/dev/null ||
12594
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12595
/^X\/\(\/\/\)$/{ s//\1/; q; }
12596
/^X\/\(\/\).*/{ s//\1/; q; }
12600
# PATH needs CR, and LINENO needs CR and PATH.
12601
# Avoid depending upon Character Ranges.
12602
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12603
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12604
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12605
as_cr_digits='0123456789'
12606
as_cr_alnum=$as_cr_Letters$as_cr_digits
12608
# The user is always right.
12609
if test "${PATH_SEPARATOR+set}" != set; then
12610
echo "#! /bin/sh" >conf$$.sh
12611
echo "exit 0" >>conf$$.sh
12613
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12622
as_lineno_1=$LINENO
12623
as_lineno_2=$LINENO
12624
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12625
test "x$as_lineno_1" != "x$as_lineno_2" &&
12626
test "x$as_lineno_3" = "x$as_lineno_2" || {
12627
# Find who we are. Look in the path if we contain no path at all
12630
*[\\/]* ) as_myself=$0 ;;
12631
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632
for as_dir in $PATH
12635
test -z "$as_dir" && as_dir=.
12636
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12641
# We did not find ourselves, most probably we were run as `sh COMMAND'
12642
# in which case we are not to be found in the path.
12643
if test "x$as_myself" = x; then
12646
if test ! -f "$as_myself"; then
12647
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12648
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12649
{ (exit 1); exit 1; }; }
12651
case $CONFIG_SHELL in
12653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12657
test -z "$as_dir" && as_dir=.
12658
for as_base in sh bash ksh sh5; do
12661
if ("$as_dir/$as_base" -c '
12662
as_lineno_1=$LINENO
12663
as_lineno_2=$LINENO
12664
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12665
test "x$as_lineno_1" != "x$as_lineno_2" &&
12666
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12667
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12668
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12669
CONFIG_SHELL=$as_dir/$as_base
12670
export CONFIG_SHELL
12671
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12679
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12680
# uniformly replaced by the line number. The first 'sed' inserts a
12681
# line-number line before each line; the second 'sed' does the real
12682
# work. The second script uses 'N' to pair each line-number line
12683
# with the numbered line, and appends trailing '-' during
12684
# substitution so that $LINENO is not a special case at line end.
12685
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12686
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12687
sed '=' <$as_myself |
12692
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12695
s,^['$as_cr_digits']*\n,,
12696
' >$as_me.lineno &&
12697
chmod +x $as_me.lineno ||
12698
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12699
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12700
{ (exit 1); exit 1; }; }
12702
# Don't try to exec as it changes $[0], causing all sort of problems
12703
# (the dirname of $[0] is not the place where we might find the
12704
# original and so on. Autoconf is especially sensible to this).
12706
# Exit status is that of the last command.
12711
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12712
*c*,-n*) ECHO_N= ECHO_C='
12714
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12715
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12718
if expr a : '\(a\)' >/dev/null 2>&1; then
12724
rm -f conf$$ conf$$.exe conf$$.file
12726
if ln -s conf$$.file conf$$ 2>/dev/null; then
12727
# We could just check for DJGPP; but this test a) works b) is more generic
12728
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12729
if test -f conf$$.exe; then
12730
# Don't use ln at all; we don't have any links
12735
elif ln conf$$.file conf$$ 2>/dev/null; then
12740
rm -f conf$$ conf$$.exe conf$$.file
12742
if mkdir -p . 2>/dev/null; then
12748
as_executable_p="test -f"
12750
# Sed expression to map a string onto a valid CPP name.
12751
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12753
# Sed expression to map a string onto a valid variable name.
12754
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12758
# We need space, tab and new line, in precisely that order.
12768
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12769
# report actual input values of CONFIG_FILES etc. instead of their
12770
# values after options handling. Logging --version etc. is OK.
12774
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12775
## Running $as_me. ##
12780
This file was extended by plotutils $as_me 2.4.1, which was
12781
generated by GNU Autoconf 2.57. Invocation command line was
12783
CONFIG_FILES = $CONFIG_FILES
12784
CONFIG_HEADERS = $CONFIG_HEADERS
12785
CONFIG_LINKS = $CONFIG_LINKS
12786
CONFIG_COMMANDS = $CONFIG_COMMANDS
12790
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12794
# Files that config.status was made for.
12795
if test -n "$ac_config_files"; then
12796
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12799
if test -n "$ac_config_headers"; then
12800
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12803
if test -n "$ac_config_links"; then
12804
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12807
if test -n "$ac_config_commands"; then
12808
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12811
cat >>$CONFIG_STATUS <<\_ACEOF
12814
\`$as_me' instantiates files from templates according to the
12815
current configuration.
12817
Usage: $0 [OPTIONS] [FILE]...
12819
-h, --help print this help, then exit
12820
-V, --version print version number, then exit
12821
-q, --quiet do not print progress messages
12822
-d, --debug don't remove temporary files
12823
--recheck update $as_me by reconfiguring in the same conditions
12824
--file=FILE[:TEMPLATE]
12825
instantiate the configuration file FILE
12826
--header=FILE[:TEMPLATE]
12827
instantiate the configuration header FILE
12829
Configuration files:
12832
Configuration headers:
12835
Configuration commands:
12838
Report bugs to <bug-autoconf@gnu.org>."
12841
cat >>$CONFIG_STATUS <<_ACEOF
12843
plotutils config.status 2.4.1
12844
configured by $0, generated by GNU Autoconf 2.57,
12845
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12847
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12848
Free Software Foundation, Inc.
12849
This config.status script is free software; the Free Software Foundation
12850
gives unlimited permission to copy, distribute and modify it."
12855
cat >>$CONFIG_STATUS <<\_ACEOF
12856
# If no file are specified by the user, then we need to provide default
12857
# value. By we need to know if files were specified by the user.
12863
ac_option=`expr "x$1" : 'x\([^=]*\)='`
12864
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12872
*) # This is not an option, so the user has probably given explicit
12875
ac_need_defaults=false;;
12879
# Handling of the options.
12881
cat >>$CONFIG_STATUS <<\_ACEOF
4893
# configure, is in ./config.log if it exists.
4895
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4898
case "\$ac_option" in
12882
4899
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12884
--version | --vers* | -V )
12885
echo "$ac_cs_version"; exit 0 ;;
12887
# Conflict between --help and --header
12888
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
12889
Try \`$0 --help' for more information." >&5
12890
echo "$as_me: error: ambiguous option: $1
12891
Try \`$0 --help' for more information." >&2;}
12892
{ (exit 1); exit 1; }; };;
12893
--help | --hel | -h )
12894
echo "$ac_cs_usage"; exit 0 ;;
12895
--debug | --d* | -d )
12897
--file | --fil | --fi | --f )
12899
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12900
ac_need_defaults=false;;
12901
--header | --heade | --head | --hea )
12903
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12904
ac_need_defaults=false;;
12905
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12906
| -silent | --silent | --silen | --sile | --sil | --si | --s)
12909
# This is an error.
12910
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12911
Try \`$0 --help' for more information." >&5
12912
echo "$as_me: error: unrecognized option: $1
12913
Try \`$0 --help' for more information." >&2;}
12914
{ (exit 1); exit 1; }; } ;;
12916
*) ac_config_targets="$ac_config_targets $1" ;;
12922
ac_configure_extra_args=
12924
if $ac_cs_silent; then
12926
ac_configure_extra_args="$ac_configure_extra_args --silent"
12930
cat >>$CONFIG_STATUS <<_ACEOF
12931
if \$ac_cs_recheck; then
12932
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12933
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12938
cat >>$CONFIG_STATUS <<_ACEOF
12940
# INIT-COMMANDS section.
12943
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12949
cat >>$CONFIG_STATUS <<\_ACEOF
12950
for ac_config_target in $ac_config_targets
12952
case "$ac_config_target" in
12953
# Handling of arguments.
12954
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12955
"double/Makefile" ) CONFIG_FILES="$CONFIG_FILES double/Makefile" ;;
12956
"graph/Makefile" ) CONFIG_FILES="$CONFIG_FILES graph/Makefile" ;;
12957
"pic2plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/Makefile" ;;
12958
"pic2plot/doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/doc/Makefile" ;;
12959
"pic2plot/libgroff/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/libgroff/Makefile" ;;
12960
"pic2plot/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic2plot/include/Makefile" ;;
12961
"info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
12962
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12963
"libplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES libplot/Makefile" ;;
12964
"libplotter/Makefile" ) CONFIG_FILES="$CONFIG_FILES libplotter/Makefile" ;;
12965
"libxmi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxmi/Makefile" ;;
12966
"libxmi/info/Makefile" ) CONFIG_FILES="$CONFIG_FILES libxmi/info/Makefile" ;;
12967
"plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
12968
"tek2plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES tek2plot/Makefile" ;;
12969
"tek2plot/teksamples/Makefile" ) CONFIG_FILES="$CONFIG_FILES tek2plot/teksamples/Makefile" ;;
12970
"plotfont/Makefile" ) CONFIG_FILES="$CONFIG_FILES plotfont/Makefile" ;;
12971
"spline/Makefile" ) CONFIG_FILES="$CONFIG_FILES spline/Makefile" ;;
12972
"ode/Makefile" ) CONFIG_FILES="$CONFIG_FILES ode/Makefile" ;;
12973
"ode-examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES ode-examples/Makefile" ;;
12974
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12975
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12976
"fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
12977
"fonts/bdf/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/bdf/Makefile" ;;
12978
"fonts/pcf/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/pcf/Makefile" ;;
12979
"fonts/pfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/pfb/Makefile" ;;
12980
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12981
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12982
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12983
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12984
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12985
{ (exit 1); exit 1; }; };;
12989
# If the user did not use the arguments to specify the items to instantiate,
12990
# then the envvar interface is used. Set only those that are not.
12991
# We use the long form for the default assignment because of an extremely
12992
# bizarre bug on SunOS 4.1.3.
12993
if $ac_need_defaults; then
12994
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12995
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12996
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12999
# Have a temporary directory for convenience. Make it in the build tree
13000
# simply because there is no reason to put it here, and in addition,
13001
# creating and moving files from /tmp can sometimes cause problems.
13002
# Create a temporary directory, and hook for its removal unless debugging.
13005
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13006
trap '{ (exit 1); exit 1; }' 1 2 13 15
13009
# Create a (secure) tmp directory for tmp files.
13012
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13013
test -n "$tmp" && test -d "$tmp"
13016
tmp=./confstat$$-$RANDOM
13017
(umask 077 && mkdir $tmp)
13020
echo "$me: cannot create a temporary directory in ." >&2
13021
{ (exit 1); exit 1; }
13026
cat >>$CONFIG_STATUS <<_ACEOF
13029
# CONFIG_FILES section.
13032
# No need to generate the scripts if there are no CONFIG_FILES.
13033
# This happens for instance when ./config.status config.h
13034
if test -n "\$CONFIG_FILES"; then
13035
# Protect against being on the right side of a sed subst in config.status.
13036
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13037
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13038
s,@SHELL@,$SHELL,;t t
13039
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13040
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13041
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13042
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13043
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13044
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13045
s,@exec_prefix@,$exec_prefix,;t t
13046
s,@prefix@,$prefix,;t t
13047
s,@program_transform_name@,$program_transform_name,;t t
13048
s,@bindir@,$bindir,;t t
13049
s,@sbindir@,$sbindir,;t t
13050
s,@libexecdir@,$libexecdir,;t t
13051
s,@datadir@,$datadir,;t t
13052
s,@sysconfdir@,$sysconfdir,;t t
13053
s,@sharedstatedir@,$sharedstatedir,;t t
13054
s,@localstatedir@,$localstatedir,;t t
13055
s,@libdir@,$libdir,;t t
13056
s,@includedir@,$includedir,;t t
13057
s,@oldincludedir@,$oldincludedir,;t t
13058
s,@infodir@,$infodir,;t t
13059
s,@mandir@,$mandir,;t t
13060
s,@build_alias@,$build_alias,;t t
13061
s,@host_alias@,$host_alias,;t t
13062
s,@target_alias@,$target_alias,;t t
13063
s,@DEFS@,$DEFS,;t t
13064
s,@ECHO_C@,$ECHO_C,;t t
13065
s,@ECHO_N@,$ECHO_N,;t t
13066
s,@ECHO_T@,$ECHO_T,;t t
13067
s,@LIBS@,$LIBS,;t t
13068
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13069
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13070
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13071
s,@CYGPATH_W@,$CYGPATH_W,;t t
13072
s,@PACKAGE@,$PACKAGE,;t t
13073
s,@VERSION@,$VERSION,;t t
13074
s,@ACLOCAL@,$ACLOCAL,;t t
13075
s,@AUTOCONF@,$AUTOCONF,;t t
13076
s,@AUTOMAKE@,$AUTOMAKE,;t t
13077
s,@AUTOHEADER@,$AUTOHEADER,;t t
13078
s,@MAKEINFO@,$MAKEINFO,;t t
13079
s,@AMTAR@,$AMTAR,;t t
13080
s,@install_sh@,$install_sh,;t t
13081
s,@STRIP@,$STRIP,;t t
13082
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13083
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13085
s,@SET_MAKE@,$SET_MAKE,;t t
13086
s,@am__leading_dot@,$am__leading_dot,;t t
13087
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13088
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13089
s,@MAINT@,$MAINT,;t t
13090
s,@build@,$build,;t t
13091
s,@build_cpu@,$build_cpu,;t t
13092
s,@build_vendor@,$build_vendor,;t t
13093
s,@build_os@,$build_os,;t t
13094
s,@host@,$host,;t t
13095
s,@host_cpu@,$host_cpu,;t t
13096
s,@host_vendor@,$host_vendor,;t t
13097
s,@host_os@,$host_os,;t t
13099
s,@CFLAGS@,$CFLAGS,;t t
13100
s,@LDFLAGS@,$LDFLAGS,;t t
13101
s,@CPPFLAGS@,$CPPFLAGS,;t t
13102
s,@ac_ct_CC@,$ac_ct_CC,;t t
13103
s,@EXEEXT@,$EXEEXT,;t t
13104
s,@OBJEXT@,$OBJEXT,;t t
13105
s,@DEPDIR@,$DEPDIR,;t t
13106
s,@am__include@,$am__include,;t t
13107
s,@am__quote@,$am__quote,;t t
13108
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13109
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13110
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13111
s,@CCDEPMODE@,$CCDEPMODE,;t t
13112
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13113
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13114
s,@LN_S@,$LN_S,;t t
13115
s,@ECHO@,$ECHO,;t t
13116
s,@RANLIB@,$RANLIB,;t t
13117
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13119
s,@EGREP@,$EGREP,;t t
13120
s,@LIBTOOL@,$LIBTOOL,;t t
13121
s,@ALLOCA@,$ALLOCA,;t t
13122
s,@LTALLOCA@,$LTALLOCA,;t t
13123
s,@YACC@,$YACC,;t t
13125
s,@LEXLIB@,$LEXLIB,;t t
13126
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13127
s,@X_CFLAGS@,$X_CFLAGS,;t t
13128
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13129
s,@X_LIBS@,$X_LIBS,;t t
13130
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13131
s,@X_TOOLKIT_LIBS@,$X_TOOLKIT_LIBS,;t t
13132
s,@X_BASIC_LIBS@,$X_BASIC_LIBS,;t t
13133
s,@NO_X_TRUE@,$NO_X_TRUE,;t t
13134
s,@NO_X_FALSE@,$NO_X_FALSE,;t t
13135
s,@NO_PNG_TRUE@,$NO_PNG_TRUE,;t t
13136
s,@NO_PNG_FALSE@,$NO_PNG_FALSE,;t t
13137
s,@ps_fonts_in_pcl@,$ps_fonts_in_pcl,;t t
13139
s,@CXXFLAGS@,$CXXFLAGS,;t t
13140
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13141
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
13142
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
13143
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
13144
s,@ENABLE_LIBPLOTTER_TRUE@,$ENABLE_LIBPLOTTER_TRUE,;t t
13145
s,@ENABLE_LIBPLOTTER_FALSE@,$ENABLE_LIBPLOTTER_FALSE,;t t
13146
s,@ENABLE_LIBXMI_TRUE@,$ENABLE_LIBXMI_TRUE,;t t
13147
s,@ENABLE_LIBXMI_FALSE@,$ENABLE_LIBXMI_FALSE,;t t
13148
s,@LIBOBJS@,$LIBOBJS,;t t
13149
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4900
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4901
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4902
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4903
echo "$CONFIG_STATUS generated by autoconf version 2.13"
4905
-help | --help | --hel | --he | --h)
4906
echo "\$ac_cs_usage"; exit 0 ;;
4907
*) echo "\$ac_cs_usage"; exit 1 ;;
4911
ac_given_srcdir=$srcdir
4912
ac_given_INSTALL="$INSTALL"
4914
trap 'rm -fr `echo "Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4916
cat >> $CONFIG_STATUS <<EOF
4918
# Protect against being on the right side of a sed subst in config.status.
4919
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4920
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4924
s%@CFLAGS@%$CFLAGS%g
4925
s%@CPPFLAGS@%$CPPFLAGS%g
4926
s%@CXXFLAGS@%$CXXFLAGS%g
4927
s%@FFLAGS@%$FFLAGS%g
4929
s%@LDFLAGS@%$LDFLAGS%g
4931
s%@exec_prefix@%$exec_prefix%g
4932
s%@prefix@%$prefix%g
4933
s%@program_transform_name@%$program_transform_name%g
4934
s%@bindir@%$bindir%g
4935
s%@sbindir@%$sbindir%g
4936
s%@libexecdir@%$libexecdir%g
4937
s%@datadir@%$datadir%g
4938
s%@sysconfdir@%$sysconfdir%g
4939
s%@sharedstatedir@%$sharedstatedir%g
4940
s%@localstatedir@%$localstatedir%g
4941
s%@libdir@%$libdir%g
4942
s%@includedir@%$includedir%g
4943
s%@oldincludedir@%$oldincludedir%g
4944
s%@infodir@%$infodir%g
4945
s%@mandir@%$mandir%g
4946
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4947
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4948
s%@INSTALL_DATA@%$INSTALL_DATA%g
4949
s%@PACKAGE@%$PACKAGE%g
4950
s%@VERSION@%$VERSION%g
4951
s%@ACLOCAL@%$ACLOCAL%g
4952
s%@AUTOCONF@%$AUTOCONF%g
4953
s%@AUTOMAKE@%$AUTOMAKE%g
4954
s%@AUTOHEADER@%$AUTOHEADER%g
4955
s%@MAKEINFO@%$MAKEINFO%g
4956
s%@SET_MAKE@%$SET_MAKE%g
4958
s%@host_alias@%$host_alias%g
4959
s%@host_cpu@%$host_cpu%g
4960
s%@host_vendor@%$host_vendor%g
4961
s%@host_os@%$host_os%g
4963
s%@build_alias@%$build_alias%g
4964
s%@build_cpu@%$build_cpu%g
4965
s%@build_vendor@%$build_vendor%g
4966
s%@build_os@%$build_os%g
4967
s%@RANLIB@%$RANLIB%g
4970
s%@LIBTOOL@%$LIBTOOL%g
4971
s%@EXEEXT@%$EXEEXT%g
4973
s%@ALLOCA@%$ALLOCA%g
4974
s%@LTALLOCA@%$LTALLOCA%g
4977
s%@LEXLIB@%$LEXLIB%g
4978
s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4979
s%@X_CFLAGS@%$X_CFLAGS%g
4980
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4981
s%@X_LIBS@%$X_LIBS%g
4982
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4983
s%@X_TOOLKIT_LIBS@%$X_TOOLKIT_LIBS%g
4984
s%@X_BASIC_LIBS@%$X_BASIC_LIBS%g
4985
s%@NO_X_TRUE@%$NO_X_TRUE%g
4986
s%@NO_X_FALSE@%$NO_X_FALSE%g
4987
s%@NO_PNG_TRUE@%$NO_PNG_TRUE%g
4988
s%@NO_PNG_FALSE@%$NO_PNG_FALSE%g
4989
s%@ps_fonts_in_pcl@%$ps_fonts_in_pcl%g
4991
s%@NO_LIBPLOTTER_TRUE@%$NO_LIBPLOTTER_TRUE%g
4992
s%@NO_LIBPLOTTER_FALSE@%$NO_LIBPLOTTER_FALSE%g
4993
s%@NO_LIBXMI_TRUE@%$NO_LIBXMI_TRUE%g
4994
s%@NO_LIBXMI_FALSE@%$NO_LIBXMI_FALSE%g
13154
cat >>$CONFIG_STATUS <<\_ACEOF
13155
# Split the substitutions into bite-sized pieces for seds with
13156
# small command number limits, like on Digital OSF/1 and HP-UX.
13157
ac_max_sed_lines=48
13158
ac_sed_frag=1 # Number of current file.
13159
ac_beg=1 # First line for current file.
13160
ac_end=$ac_max_sed_lines # Line after last line for current file.
13163
while $ac_more_lines; do
13164
if test $ac_beg -gt 1; then
13165
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13167
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13169
if test ! -s $tmp/subs.frag; then
13170
ac_more_lines=false
13172
# The purpose of the label and of the branching condition is to
13173
# speed up the sed processing (if there are no `@' at all, there
13174
# is no need to browse any of the substitutions).
13175
# These are the two extra sed commands mentioned above.
13177
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13178
if test -z "$ac_sed_cmds"; then
13179
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13181
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13183
ac_sed_frag=`expr $ac_sed_frag + 1`
13185
ac_end=`expr $ac_end + $ac_max_sed_lines`
13188
if test -z "$ac_sed_cmds"; then
13191
fi # test -n "$CONFIG_FILES"
13194
cat >>$CONFIG_STATUS <<\_ACEOF
13195
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4999
cat >> $CONFIG_STATUS <<\EOF
5001
# Split the substitutions into bite-sized pieces for seds with
5002
# small command number limits, like on Digital OSF/1 and HP-UX.
5003
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5004
ac_file=1 # Number of current file.
5005
ac_beg=1 # First line for current file.
5006
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5009
while $ac_more_lines; do
5010
if test $ac_beg -gt 1; then
5011
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5013
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5015
if test ! -s conftest.s$ac_file; then
5017
rm -f conftest.s$ac_file
5019
if test -z "$ac_sed_cmds"; then
5020
ac_sed_cmds="sed -f conftest.s$ac_file"
5022
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5024
ac_file=`expr $ac_file + 1`
5026
ac_end=`expr $ac_end + $ac_max_sed_cmds`
5029
if test -z "$ac_sed_cmds"; then
5034
cat >> $CONFIG_STATUS <<EOF
5036
CONFIG_FILES=\${CONFIG_FILES-"Makefile double/Makefile graph/Makefile pic2plot/Makefile pic2plot/doc/Makefile pic2plot/libgroff/Makefile pic2plot/include/Makefile info/Makefile lib/Makefile libplot/Makefile libplotter/Makefile libxmi/Makefile libxmi/info/Makefile plot/Makefile tek2plot/Makefile tek2plot/teksamples/Makefile plotfont/Makefile spline/Makefile ode/Makefile ode-examples/Makefile include/Makefile doc/Makefile fonts/Makefile fonts/bdf/Makefile fonts/pcf/Makefile fonts/pfb/Makefile test/Makefile"}
5038
cat >> $CONFIG_STATUS <<\EOF
5039
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13196
5040
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13198
- | *:- | *:-:* ) # input from stdin
13200
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13201
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13202
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13203
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13204
* ) ac_file_in=$ac_file.in ;;
5042
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5043
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5044
*) ac_file_in="${ac_file}.in" ;;
13207
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13208
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13209
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13210
X"$ac_file" : 'X\(//\)[^/]' \| \
13211
X"$ac_file" : 'X\(//\)$' \| \
13212
X"$ac_file" : 'X\(/\)' \| \
13213
. : '\(.\)' 2>/dev/null ||
13215
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13216
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13217
/^X\(\/\/\)$/{ s//\1/; q; }
13218
/^X\(\/\).*/{ s//\1/; q; }
13220
{ if $as_mkdir_p; then
5047
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5049
# Remove last slash and all that follows it. Not all systems have dirname.
5050
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5051
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5052
# The file is in a subdirectory.
5053
test ! -d "$ac_dir" && mkdir "$ac_dir"
5054
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5055
# A "../" for each directory in $ac_dir_suffix.
5056
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13225
while test ! -d "$as_dir"; do
13226
as_dirs="$as_dir $as_dirs"
13227
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13228
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13229
X"$as_dir" : 'X\(//\)[^/]' \| \
13230
X"$as_dir" : 'X\(//\)$' \| \
13231
X"$as_dir" : 'X\(/\)' \| \
13232
. : '\(.\)' 2>/dev/null ||
13234
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13235
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13236
/^X\(\/\/\)$/{ s//\1/; q; }
13237
/^X\(\/\).*/{ s//\1/; q; }
13240
test ! -n "$as_dirs" || mkdir $as_dirs
13241
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13242
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13243
{ (exit 1); exit 1; }; }; }
13247
if test "$ac_dir" != .; then
13248
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13249
# A "../" for each directory in $ac_dir_suffix.
13250
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13252
ac_dir_suffix= ac_top_builddir=
13256
.) # No --srcdir option. We are building in place.
13258
if test -z "$ac_top_builddir"; then
13261
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13263
[\\/]* | ?:[\\/]* ) # Absolute path.
13264
ac_srcdir=$srcdir$ac_dir_suffix;
13265
ac_top_srcdir=$srcdir ;;
5058
ac_dir_suffix= ac_dots=
5061
case "$ac_given_srcdir" in
5063
if test -z "$ac_dots"; then top_srcdir=.
5064
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5065
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13266
5066
*) # Relative path.
13267
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13268
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13270
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13272
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13273
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13274
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13275
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13279
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13280
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13283
if test x"$ac_file" != x-; then
13284
{ echo "$as_me:$LINENO: creating $ac_file" >&5
13285
echo "$as_me: creating $ac_file" >&6;}
13288
# Let's still pretend it is `configure' which instantiates (i.e., don't
13289
# use $as_me), people would be surprised to read:
13290
# /* config.h. Generated by config.status. */
13291
if test x"$ac_file" = x-; then
13294
configure_input="$ac_file. "
13296
configure_input=$configure_input"Generated from `echo $ac_file_in |
13297
sed 's,.*/,,'` by configure."
13299
# First look for the input files in the build tree, otherwise in the
13301
ac_file_inputs=`IFS=:
13302
for f in $ac_file_in; do
13304
-) echo $tmp/stdin ;;
13306
# Absolute (can't be DOS-style, as IFS=:)
13307
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13308
echo "$as_me: error: cannot find input file: $f" >&2;}
13309
{ (exit 1); exit 1; }; }
13312
if test -f "$f"; then
13315
elif test -f "$srcdir/$f"; then
13320
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13321
echo "$as_me: error: cannot find input file: $f" >&2;}
13322
{ (exit 1); exit 1; }; }
13325
done` || { (exit 1); exit 1; }
13327
cat >>$CONFIG_STATUS <<_ACEOF
13331
cat >>$CONFIG_STATUS <<\_ACEOF
13333
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13334
s,@configure_input@,$configure_input,;t t
13335
s,@srcdir@,$ac_srcdir,;t t
13336
s,@abs_srcdir@,$ac_abs_srcdir,;t t
13337
s,@top_srcdir@,$ac_top_srcdir,;t t
13338
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13339
s,@builddir@,$ac_builddir,;t t
13340
s,@abs_builddir@,$ac_abs_builddir,;t t
13341
s,@top_builddir@,$ac_top_builddir,;t t
13342
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13343
s,@INSTALL@,$ac_INSTALL,;t t
13344
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13346
if test x"$ac_file" != x-; then
13347
mv $tmp/out $ac_file
13355
cat >>$CONFIG_STATUS <<\_ACEOF
13358
# CONFIG_HEADER section.
5067
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5068
top_srcdir="$ac_dots$ac_given_srcdir" ;;
5071
case "$ac_given_INSTALL" in
5072
[/$]*) INSTALL="$ac_given_INSTALL" ;;
5073
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5076
echo creating "$ac_file"
5078
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5080
*Makefile*) ac_comsub="1i\\
5081
# $configure_input" ;;
5085
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5087
s%@configure_input@%$configure_input%g
5088
s%@srcdir@%$srcdir%g
5089
s%@top_srcdir@%$top_srcdir%g
5090
s%@INSTALL@%$INSTALL%g
5091
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13361
5095
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13362
5096
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13364
5098
# ac_d sets the value in "#define NAME VALUE" lines.
13365
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13366
ac_dB='[ ].*$,\1#\2'
13369
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13370
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13371
ac_uB='$,\1#\2define\3'
5099
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5100
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5103
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5104
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5105
ac_uB='\([ ]\)%\1#\2define\3'
5108
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5109
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5110
ac_eB='$%\1#\2define\3'
13375
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5114
if test "${CONFIG_HEADERS+set}" != set; then
5116
cat >> $CONFIG_STATUS <<EOF
5117
CONFIG_HEADERS="config.h"
5119
cat >> $CONFIG_STATUS <<\EOF
5121
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13376
5122
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13378
- | *:- | *:-:* ) # input from stdin
13380
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13381
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13382
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13383
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13384
* ) ac_file_in=$ac_file.in ;;
5124
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5125
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5126
*) ac_file_in="${ac_file}.in" ;;
13387
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13388
echo "$as_me: creating $ac_file" >&6;}
13390
# First look for the input files in the build tree, otherwise in the
13392
ac_file_inputs=`IFS=:
13393
for f in $ac_file_in; do
13395
-) echo $tmp/stdin ;;
13397
# Absolute (can't be DOS-style, as IFS=:)
13398
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13399
echo "$as_me: error: cannot find input file: $f" >&2;}
13400
{ (exit 1); exit 1; }; }
13403
if test -f "$f"; then
13406
elif test -f "$srcdir/$f"; then
13411
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13412
echo "$as_me: error: cannot find input file: $f" >&2;}
13413
{ (exit 1); exit 1; }; }
13416
done` || { (exit 1); exit 1; }
13417
# Remove the trailing spaces.
13418
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13422
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13423
# `conftest.undefs', that substitutes the proper values into
13424
# config.h.in to produce config.h. The first handles `#define'
13425
# templates, and the second `#undef' templates.
13426
# And first: Protect against being on the right side of a sed subst in
13427
# config.status. Protect against being in an unquoted here document
13428
# in config.status.
13429
rm -f conftest.defines conftest.undefs
13430
# Using a here document instead of a string reduces the quoting nightmare.
13431
# Putting comments in sed scripts is not portable.
13433
# `end' is used to avoid that the second main sed command (meant for
13434
# 0-ary CPP macros) applies to n-ary macro definitions.
13435
# See the Autoconf documentation for `clear'.
13436
cat >confdef2sed.sed <<\_ACEOF
13441
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13443
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13446
# If some macros were called several times there might be several times
13447
# the same #defines, which is useless. Nevertheless, we may not want to
13448
# sort them, since we want the *last* AC-DEFINE to be honored.
13449
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13450
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13451
rm -f confdef2sed.sed
5129
echo creating $ac_file
5131
rm -f conftest.frag conftest.in conftest.out
5132
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5133
cat $ac_file_inputs > conftest.in
5137
# Transform confdefs.h into a sed script conftest.vals that substitutes
5138
# the proper values into config.h.in to produce config.h. And first:
5139
# Protect against being on the right side of a sed subst in config.status.
5140
# Protect against being in an unquoted here document in config.status.
5142
cat > conftest.hdr <<\EOF
5145
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5149
sed -n -f conftest.hdr confdefs.h > conftest.vals
13453
5152
# This sed command replaces #undef with comments. This is necessary, for
13454
5153
# example, in the case of _POSIX_SOURCE, which is predefined and required
13455
5154
# on some systems where configure will not decide to define it.
13456
cat >>conftest.undefs <<\_ACEOF
13457
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13460
# Break up conftest.defines because some shells have a limit on the size
13461
# of here documents, and old seds have small limits too (100 cmds).
13462
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13463
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13464
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13465
echo ' :' >>$CONFIG_STATUS
13466
rm -f conftest.tail
13467
while grep . conftest.defines >/dev/null
13469
# Write a limited-size here document to $tmp/defines.sed.
13470
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13471
# Speed up: don't consider the non `#define' lines.
13472
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13473
# Work around the forget-to-reset-the-flag bug.
13474
echo 't clr' >>$CONFIG_STATUS
13475
echo ': clr' >>$CONFIG_STATUS
13476
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13478
sed -f $tmp/defines.sed $tmp/in >$tmp/out
13480
mv $tmp/out $tmp/in
13482
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13483
rm -f conftest.defines
13484
mv conftest.tail conftest.defines
13486
rm -f conftest.defines
13487
echo ' fi # grep' >>$CONFIG_STATUS
13488
echo >>$CONFIG_STATUS
13490
# Break up conftest.undefs because some shells have a limit on the size
13491
# of here documents, and old seds have small limits too (100 cmds).
13492
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13493
rm -f conftest.tail
13494
while grep . conftest.undefs >/dev/null
13496
# Write a limited-size here document to $tmp/undefs.sed.
13497
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13498
# Speed up: don't consider the non `#undef'
13499
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13500
# Work around the forget-to-reset-the-flag bug.
13501
echo 't clr' >>$CONFIG_STATUS
13502
echo ': clr' >>$CONFIG_STATUS
13503
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13505
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13507
mv $tmp/out $tmp/in
13509
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13510
rm -f conftest.undefs
13511
mv conftest.tail conftest.undefs
13513
rm -f conftest.undefs
13515
cat >>$CONFIG_STATUS <<\_ACEOF
13516
# Let's still pretend it is `configure' which instantiates (i.e., don't
13517
# use $as_me), people would be surprised to read:
13518
# /* config.h. Generated by config.status. */
13519
if test x"$ac_file" = x-; then
13520
echo "/* Generated by configure. */" >$tmp/config.h
13522
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13524
cat $tmp/in >>$tmp/config.h
13526
if test x"$ac_file" != x-; then
13527
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13528
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13529
echo "$as_me: $ac_file is unchanged" >&6;}
13531
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13532
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13533
X"$ac_file" : 'X\(//\)[^/]' \| \
13534
X"$ac_file" : 'X\(//\)$' \| \
13535
X"$ac_file" : 'X\(/\)' \| \
13536
. : '\(.\)' 2>/dev/null ||
13538
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13539
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13540
/^X\(\/\/\)$/{ s//\1/; q; }
13541
/^X\(\/\).*/{ s//\1/; q; }
13543
{ if $as_mkdir_p; then
13548
while test ! -d "$as_dir"; do
13549
as_dirs="$as_dir $as_dirs"
13550
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13551
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552
X"$as_dir" : 'X\(//\)[^/]' \| \
13553
X"$as_dir" : 'X\(//\)$' \| \
13554
X"$as_dir" : 'X\(/\)' \| \
13555
. : '\(.\)' 2>/dev/null ||
13557
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559
/^X\(\/\/\)$/{ s//\1/; q; }
13560
/^X\(\/\).*/{ s//\1/; q; }
13563
test ! -n "$as_dirs" || mkdir $as_dirs
13564
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13565
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13566
{ (exit 1); exit 1; }; }; }
13569
mv $tmp/config.h $ac_file
5155
cat >> conftest.vals <<\EOF
5156
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5159
# Break up conftest.vals because some shells have a limit on
5160
# the size of here documents, and old seds have small limits too.
5165
ac_lines=`grep -c . conftest.vals`
5166
# grep -c gives empty output for an empty file on some AIX systems.
5167
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5168
# Write a limited-size here document to conftest.frag.
5169
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5170
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5172
sed -f conftest.frag conftest.in > conftest.out
5174
mv conftest.out conftest.in
5176
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5178
mv conftest.tail conftest.vals
5182
cat >> $CONFIG_STATUS <<\EOF
5183
rm -f conftest.frag conftest.h
5184
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5185
cat conftest.in >> conftest.h
5187
if cmp -s $ac_file conftest.h 2>/dev/null; then
5188
echo "$ac_file is unchanged"
5191
# Remove last slash and all that follows it. Not all systems have dirname.
5192
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5193
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5194
# The file is in a subdirectory.
5195
test ! -d "$ac_dir" && mkdir "$ac_dir"
13573
rm -f $tmp/config.h
13575
# Compute $ac_file's index in $config_headers.
13577
for _am_header in $config_headers :; do
13578
case $_am_header in
13579
$ac_file | $ac_file:* )
13582
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
13585
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13586
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587
X$ac_file : 'X\(//\)[^/]' \| \
13588
X$ac_file : 'X\(//\)$' \| \
13589
X$ac_file : 'X\(/\)' \| \
13590
. : '\(.\)' 2>/dev/null ||
13592
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13593
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13594
/^X\(\/\/\)$/{ s//\1/; q; }
13595
/^X\(\/\).*/{ s//\1/; q; }
13596
s/.*/./; q'`/stamp-h$_am_stamp_count
13599
cat >>$CONFIG_STATUS <<\_ACEOF
13602
# CONFIG_COMMANDS section.
13604
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13605
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13606
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13607
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13608
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13609
X"$ac_dest" : 'X\(//\)[^/]' \| \
13610
X"$ac_dest" : 'X\(//\)$' \| \
13611
X"$ac_dest" : 'X\(/\)' \| \
13612
. : '\(.\)' 2>/dev/null ||
13614
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13615
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13616
/^X\(\/\/\)$/{ s//\1/; q; }
13617
/^X\(\/\).*/{ s//\1/; q; }
13621
if test "$ac_dir" != .; then
13622
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13623
# A "../" for each directory in $ac_dir_suffix.
13624
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13626
ac_dir_suffix= ac_top_builddir=
13630
.) # No --srcdir option. We are building in place.
13632
if test -z "$ac_top_builddir"; then
13635
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13637
[\\/]* | ?:[\\/]* ) # Absolute path.
13638
ac_srcdir=$srcdir$ac_dir_suffix;
13639
ac_top_srcdir=$srcdir ;;
13640
*) # Relative path.
13641
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13642
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13644
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13646
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13647
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13648
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13649
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13652
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13653
echo "$as_me: executing $ac_dest commands" >&6;}
13655
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13656
# Strip MF so we end up with the name of the file.
13657
mf=`echo "$mf" | sed -e 's/:.*$//'`
13658
# Check whether this is an Automake generated Makefile or not.
13659
# We used to match only the files named `Makefile.in', but
13660
# some people rename them; so instead we look at the file content.
13661
# Grep'ing the first line is not enough: some people post-process
13662
# each Makefile.in and add a new line on top of each file to say so.
13663
# So let's grep whole file.
13664
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13665
dirpart=`(dirname "$mf") 2>/dev/null ||
13666
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13667
X"$mf" : 'X\(//\)[^/]' \| \
13668
X"$mf" : 'X\(//\)$' \| \
13669
X"$mf" : 'X\(/\)' \| \
13670
. : '\(.\)' 2>/dev/null ||
13672
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13673
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13674
/^X\(\/\/\)$/{ s//\1/; q; }
13675
/^X\(\/\).*/{ s//\1/; q; }
13680
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13681
# Extract the definition of DEP_FILES from the Makefile without
13683
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13684
test -z "$DEPDIR" && continue
13685
# When using ansi2knr, U may be empty or an underscore; expand it
13686
U=`sed -n -e '/^U = / s///p' < "$mf"`
13687
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13688
# We invoke sed twice because it is the simplest approach to
13689
# changing $(DEPDIR) to its actual value in the expansion.
13690
for file in `sed -n -e '
13691
/^DEP_FILES = .*\\\\$/ {
13700
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13701
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13702
# Make sure the directory exists.
13703
test -f "$dirpart/$file" && continue
13704
fdir=`(dirname "$file") 2>/dev/null ||
13705
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13706
X"$file" : 'X\(//\)[^/]' \| \
13707
X"$file" : 'X\(//\)$' \| \
13708
X"$file" : 'X\(/\)' \| \
13709
. : '\(.\)' 2>/dev/null ||
13711
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13712
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13713
/^X\(\/\/\)$/{ s//\1/; q; }
13714
/^X\(\/\).*/{ s//\1/; q; }
13716
{ if $as_mkdir_p; then
13717
mkdir -p $dirpart/$fdir
13719
as_dir=$dirpart/$fdir
13721
while test ! -d "$as_dir"; do
13722
as_dirs="$as_dir $as_dirs"
13723
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13724
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13725
X"$as_dir" : 'X\(//\)[^/]' \| \
13726
X"$as_dir" : 'X\(//\)$' \| \
13727
X"$as_dir" : 'X\(/\)' \| \
13728
. : '\(.\)' 2>/dev/null ||
13730
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13731
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13732
/^X\(\/\/\)$/{ s//\1/; q; }
13733
/^X\(\/\).*/{ s//\1/; q; }
13736
test ! -n "$as_dirs" || mkdir $as_dirs
13737
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13738
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13739
{ (exit 1); exit 1; }; }; }
13741
# echo "creating $dirpart/$file"
13742
echo '# dummy' > "$dirpart/$file"
13750
cat >>$CONFIG_STATUS <<\_ACEOF
13752
{ (exit 0); exit 0; }
5198
mv conftest.h $ac_file
5203
cat >> $CONFIG_STATUS <<EOF
5207
cat >> $CONFIG_STATUS <<\EOF
5208
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
13754
5212
chmod +x $CONFIG_STATUS
13755
ac_clean_files=$ac_clean_files_save
13758
# configure is writing to config.log, and then calls config.status.
13759
# config.status does its own redirection, appending to config.log.
13760
# Unfortunately, on DOS this fails, as config.log is still kept open
13761
# by configure, so config.status won't be able to write to it; its
13762
# output is simply discarded. So we exec the FD to /dev/null,
13763
# effectively closing config.log, so it can be properly (re)opened and
13764
# appended to by config.status. When coming back to configure, we
13765
# need to make the FD available again.
13766
if test "$no_create" != yes; then
13768
ac_config_status_args=
13769
test "$silent" = yes &&
13770
ac_config_status_args="$ac_config_status_args --quiet"
13772
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13774
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13775
# would make configure fail if this is the last instruction.
13776
$ac_cs_success || { (exit 1); exit 1; }
5213
rm -fr confdefs* $ac_clean_files
5214
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1