843
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
844
echo "configure:845: checking for sin in -lm" >&5
845
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
846
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847
echo $ac_n "(cached) $ac_c" 1>&6
851
cat > conftest.$ac_ext <<EOF
852
#line 853 "configure"
853
#include "confdefs.h"
854
/* Override any gcc2 internal prototype to avoid an error. */
855
/* We use char because int might match the return type of a gcc2
856
builtin and then its argument prototype would still apply. */
863
if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
865
eval "ac_cv_lib_$ac_lib_var=yes"
867
echo "configure: failed program was:" >&5
868
cat conftest.$ac_ext >&5
870
eval "ac_cv_lib_$ac_lib_var=no"
2083
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2084
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2085
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2086
echo $ECHO_N "(cached) $ECHO_C" >&6
2088
ac_cv_prog_cc_stdc=no
2090
cat >conftest.$ac_ext <<_ACEOF
2091
#line $LINENO "configure"
2094
cat confdefs.h >>conftest.$ac_ext
2095
cat >>conftest.$ac_ext <<_ACEOF
2096
/* end confdefs.h. */
2099
#include <sys/types.h>
2100
#include <sys/stat.h>
2101
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2102
struct buf { int x; };
2103
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2104
static char *e (p, i)
2110
static char *f (char * (*g) (char **, int), char **p, ...)
2115
s = g (p, va_arg (v,int));
2119
int test (int i, double x);
2120
struct s1 {int (*f) (int a);};
2121
struct s2 {int (*f) (double a);};
2122
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2128
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2133
# Don't try gcc -ansi; that turns off useful extensions and
2134
# breaks some systems' header files.
2135
# AIX -qlanglvl=ansi
2136
# Ultrix and OSF/1 -std1
2137
# HP-UX 10.20 and later -Ae
2138
# HP-UX older versions -Aa -D_HPUX_SOURCE
2139
# SVR4 -Xc -D__EXTENSIONS__
2140
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2142
CC="$ac_save_CC $ac_arg"
2143
rm -f conftest.$ac_objext
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145
(eval $ac_compile) 2>&5
2147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148
(exit $ac_status); } &&
2149
{ ac_try='test -s conftest.$ac_objext'
2150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
(exit $ac_status); }; }; then
2155
ac_cv_prog_cc_stdc=$ac_arg
2158
echo "$as_me: failed program was:" >&5
2159
sed 's/^/| /' conftest.$ac_ext >&5
2162
rm -f conftest.$ac_objext
2164
rm -f conftest.$ac_ext conftest.$ac_objext
2169
case "x$ac_cv_prog_cc_stdc" in
2171
echo "$as_me:$LINENO: result: none needed" >&5
2172
echo "${ECHO_T}none needed" >&6 ;;
2174
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2175
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176
CC="$CC $ac_cv_prog_cc_stdc" ;;
2179
# Some people use a C++ compiler to compile C. Since we use `exit',
2180
# in C++ we need to declare it. In case someone uses the same compiler
2181
# for both compiling C and C++ we need to have the C++ compiler decide
2182
# the declaration of exit, since it's the most demanding environment.
2183
cat >conftest.$ac_ext <<_ACEOF
2188
rm -f conftest.$ac_objext
2189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190
(eval $ac_compile) 2>&5
2192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193
(exit $ac_status); } &&
2194
{ ac_try='test -s conftest.$ac_objext'
2195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
(exit $ac_status); }; }; then
2200
for ac_declaration in \
2202
'#include <stdlib.h>' \
2203
'extern "C" void std::exit (int) throw (); using std::exit;' \
2204
'extern "C" void std::exit (int); using std::exit;' \
2205
'extern "C" void exit (int) throw ();' \
2206
'extern "C" void exit (int);' \
2209
cat >conftest.$ac_ext <<_ACEOF
2210
#line $LINENO "configure"
2213
cat confdefs.h >>conftest.$ac_ext
2214
cat >>conftest.$ac_ext <<_ACEOF
2215
/* end confdefs.h. */
2226
rm -f conftest.$ac_objext
2227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228
(eval $ac_compile) 2>&5
2230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231
(exit $ac_status); } &&
2232
{ ac_try='test -s conftest.$ac_objext'
2233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
(exit $ac_status); }; }; then
2240
echo "$as_me: failed program was:" >&5
2241
sed 's/^/| /' conftest.$ac_ext >&5
2245
rm -f conftest.$ac_objext conftest.$ac_ext
2246
cat >conftest.$ac_ext <<_ACEOF
2247
#line $LINENO "configure"
2250
cat confdefs.h >>conftest.$ac_ext
2251
cat >>conftest.$ac_ext <<_ACEOF
2252
/* end confdefs.h. */
2262
rm -f conftest.$ac_objext
2263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264
(eval $ac_compile) 2>&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); } &&
2268
{ ac_try='test -s conftest.$ac_objext'
2269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273
(exit $ac_status); }; }; then
2276
echo "$as_me: failed program was:" >&5
2277
sed 's/^/| /' conftest.$ac_ext >&5
2280
rm -f conftest.$ac_objext conftest.$ac_ext
876
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
877
echo "$ac_t""yes" 1>&6
878
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
879
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
880
cat >> confdefs.h <<EOF
887
echo "$ac_t""no" 1>&6
891
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
892
echo "configure:893: checking how to run the C preprocessor" >&5
2283
if test -n "$ac_declaration"; then
2284
echo '#ifdef __cplusplus' >>confdefs.h
2285
echo $ac_declaration >>confdefs.h
2286
echo '#endif' >>confdefs.h
2290
echo "$as_me: failed program was:" >&5
2291
sed 's/^/| /' conftest.$ac_ext >&5
2294
rm -f conftest.$ac_objext conftest.$ac_ext
2296
ac_cpp='$CPP $CPPFLAGS'
2297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
GCCFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
2309
# Check whether --enable-shared or --disable-shared was given.
2310
if test "${enable_shared+set}" = set; then
2311
enableval="$enable_shared"
2312
p=${PACKAGE-default}
2314
yes) enable_shared=yes ;;
2315
no) enable_shared=no ;;
2318
# Look at the argument we got. We use all the common list separators.
2319
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2320
for pkg in $enableval; do
2321
if test "X$pkg" = "X$p"; then
2331
# Check whether --enable-static or --disable-static was given.
2332
if test "${enable_static+set}" = set; then
2333
enableval="$enable_static"
2334
p=${PACKAGE-default}
2336
yes) enable_static=yes ;;
2337
no) enable_static=no ;;
2340
# Look at the argument we got. We use all the common list separators.
2341
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2342
for pkg in $enableval; do
2343
if test "X$pkg" = "X$p"; then
2353
# Check whether --enable-fast-install or --disable-fast-install was given.
2354
if test "${enable_fast_install+set}" = set; then
2355
enableval="$enable_fast_install"
2356
p=${PACKAGE-default}
2358
yes) enable_fast_install=yes ;;
2359
no) enable_fast_install=no ;;
2361
enable_fast_install=no
2362
# Look at the argument we got. We use all the common list separators.
2363
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2364
for pkg in $enableval; do
2365
if test "X$pkg" = "X$p"; then
2366
enable_fast_install=yes
2373
enable_fast_install=yes
2376
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2377
if test -f $ac_dir/install-sh; then
2379
ac_install_sh="$ac_aux_dir/install-sh -c"
2381
elif test -f $ac_dir/install.sh; then
2383
ac_install_sh="$ac_aux_dir/install.sh -c"
2385
elif test -f $ac_dir/shtool; then
2387
ac_install_sh="$ac_aux_dir/shtool install -c"
2391
if test -z "$ac_aux_dir"; then
2392
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2393
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2394
{ (exit 1); exit 1; }; }
2396
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2397
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2398
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2400
# Make sure we can run config.sub.
2401
$ac_config_sub sun4 >/dev/null 2>&1 ||
2402
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2403
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2404
{ (exit 1); exit 1; }; }
2406
echo "$as_me:$LINENO: checking build system type" >&5
2407
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2408
if test "${ac_cv_build+set}" = set; then
2409
echo $ECHO_N "(cached) $ECHO_C" >&6
2411
ac_cv_build_alias=$build_alias
2412
test -z "$ac_cv_build_alias" &&
2413
ac_cv_build_alias=`$ac_config_guess`
2414
test -z "$ac_cv_build_alias" &&
2415
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2416
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2417
{ (exit 1); exit 1; }; }
2418
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2419
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2420
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2421
{ (exit 1); exit 1; }; }
2424
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2425
echo "${ECHO_T}$ac_cv_build" >&6
2427
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2428
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2429
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2432
echo "$as_me:$LINENO: checking host system type" >&5
2433
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2434
if test "${ac_cv_host+set}" = set; then
2435
echo $ECHO_N "(cached) $ECHO_C" >&6
2437
ac_cv_host_alias=$host_alias
2438
test -z "$ac_cv_host_alias" &&
2439
ac_cv_host_alias=$ac_cv_build_alias
2440
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2441
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2442
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2443
{ (exit 1); exit 1; }; }
2446
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2447
echo "${ECHO_T}$ac_cv_host" >&6
2449
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2450
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2451
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2454
# Find the correct PATH separator. Usually this is `:', but
2455
# DJGPP uses `;' like DOS.
2456
if test "X${PATH_SEPARATOR+set}" != Xset; then
2457
UNAME=${UNAME-`uname 2>/dev/null`}
2459
*-DOS) lt_cv_sys_path_separator=';' ;;
2460
*) lt_cv_sys_path_separator=':' ;;
2462
PATH_SEPARATOR=$lt_cv_sys_path_separator
2466
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2467
if test "${with_gnu_ld+set}" = set; then
2468
withval="$with_gnu_ld"
2469
test "$withval" = no || with_gnu_ld=yes
2474
if test "$GCC" = yes; then
2475
# Check if gcc -print-prog-name=ld gives a path.
2476
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2477
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2480
# gcc leaves a trailing carriage return which upsets mingw
2481
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2483
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2486
# Accept absolute paths.
2487
[\\/]* | [A-Za-z]:[\\/]*)
2488
re_direlt='/[^/][^/]*/\.\./'
2489
# Canonicalize the path of ld
2490
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2491
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2492
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2494
test -z "$LD" && LD="$ac_prog"
2497
# If it fails, then pretend we aren't using GCC.
2501
# If it is relative, then search for the first ld in PATH.
2505
elif test "$with_gnu_ld" = yes; then
2506
echo "$as_me:$LINENO: checking for GNU ld" >&5
2507
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2509
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2510
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2512
if test "${lt_cv_path_LD+set}" = set; then
2513
echo $ECHO_N "(cached) $ECHO_C" >&6
2515
if test -z "$LD"; then
2516
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2517
for ac_dir in $PATH; do
2518
test -z "$ac_dir" && ac_dir=.
2519
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2520
lt_cv_path_LD="$ac_dir/$ac_prog"
2521
# Check to see if the program is GNU ld. I'd rather use --version,
2522
# but apparently some GNU ld's only accept -v.
2523
# Break only if it was the GNU/non-GNU ld that we prefer.
2524
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2525
test "$with_gnu_ld" != no && break
2527
test "$with_gnu_ld" != yes && break
2533
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2538
if test -n "$LD"; then
2539
echo "$as_me:$LINENO: result: $LD" >&5
2540
echo "${ECHO_T}$LD" >&6
2542
echo "$as_me:$LINENO: result: no" >&5
2543
echo "${ECHO_T}no" >&6
2545
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2546
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2547
{ (exit 1); exit 1; }; }
2548
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2549
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2550
if test "${lt_cv_prog_gnu_ld+set}" = set; then
2551
echo $ECHO_N "(cached) $ECHO_C" >&6
2553
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2554
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2555
lt_cv_prog_gnu_ld=yes
2557
lt_cv_prog_gnu_ld=no
2560
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2561
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2562
with_gnu_ld=$lt_cv_prog_gnu_ld
2565
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2566
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2567
if test "${lt_cv_ld_reload_flag+set}" = set; then
2568
echo $ECHO_N "(cached) $ECHO_C" >&6
2570
lt_cv_ld_reload_flag='-r'
2572
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2573
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2574
reload_flag=$lt_cv_ld_reload_flag
2575
test -n "$reload_flag" && reload_flag=" $reload_flag"
2577
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2578
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2579
if test "${lt_cv_path_NM+set}" = set; then
2580
echo $ECHO_N "(cached) $ECHO_C" >&6
2582
if test -n "$NM"; then
2583
# Let the user override the test.
2586
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2587
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2588
test -z "$ac_dir" && ac_dir=.
2589
tmp_nm=$ac_dir/${ac_tool_prefix}nm
2590
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2591
# Check to see if the nm accepts a BSD-compat flag.
2592
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2593
# nm: unknown option "B" ignored
2594
# Tru64's nm complains that /dev/null is an invalid object file
2595
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2596
lt_cv_path_NM="$tmp_nm -B"
2598
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2599
lt_cv_path_NM="$tmp_nm -p"
2602
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2603
continue # so that we can try to find one that supports BSD flags
2608
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2613
echo "$as_me:$LINENO: result: $NM" >&5
2614
echo "${ECHO_T}$NM" >&6
2616
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2617
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2618
if test "${lt_cv_path_SED+set}" = set; then
2619
echo $ECHO_N "(cached) $ECHO_C" >&6
2621
# Loop through the user's path and test for sed and gsed.
2622
# Then use that list of sed's as ones to test for truncation.
2623
as_executable_p="test -f"
2624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628
test -z "$as_dir" && as_dir=.
2629
for ac_prog in sed gsed; do
2630
for ac_exec_ext in '' $ac_executable_extensions; do
2631
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2632
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2638
# Create a temporary directory, and hook for its removal unless debugging.
2641
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2642
trap '{ (exit 1); exit 1; }' 1 2 13 15
2645
# Create a (secure) tmp directory for tmp files.
2648
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2649
test -n "$tmp" && test -d "$tmp"
2652
tmp=$TMPDIR/sed$$-$RANDOM
2653
(umask 077 && mkdir $tmp)
2656
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2657
{ (exit 1); exit 1; }
2661
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2662
# along with /bin/sed that truncates output.
2663
for _sed in $_sed_list /usr/xpg4/bin/sed; do
2664
test ! -f ${_sed} && break
2665
cat /dev/null > "$tmp/sed.in"
2667
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2668
# Check for GNU sed and select it if it is found.
2669
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2670
lt_cv_path_SED=${_sed}
2674
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2675
mv "$tmp/sed.tmp" "$tmp/sed.in"
2676
cp "$tmp/sed.in" "$tmp/sed.nl"
2677
echo >>"$tmp/sed.nl"
2678
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2679
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2680
# 40000 chars as input seems more than enough
2681
test $_count -gt 10 && break
2682
_count=`expr $_count + 1`
2683
if test $_count -gt $_max; then
2685
lt_cv_path_SED=$_sed
2693
if test "X$SED" != "X"; then
2698
echo "$as_me:$LINENO: result: $SED" >&5
2699
echo "${ECHO_T}$SED" >&6
2701
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2702
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2704
if test "$LN_S" = "ln -s"; then
2705
echo "$as_me:$LINENO: result: yes" >&5
2706
echo "${ECHO_T}yes" >&6
2708
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2709
echo "${ECHO_T}no, using $LN_S" >&6
2712
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2713
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2714
if test "${lt_cv_deplibs_check_method+set}" = set; then
2715
echo $ECHO_N "(cached) $ECHO_C" >&6
2717
lt_cv_file_magic_cmd='$MAGIC_CMD'
2718
lt_cv_file_magic_test_file=
2719
lt_cv_deplibs_check_method='unknown'
2720
# Need to set the preceding variable on all platforms that support
2721
# interlibrary dependencies.
2722
# 'none' -- dependencies not supported.
2723
# `unknown' -- same as none, but documents that we really don't know.
2724
# 'pass_all' -- all dependencies passed with no checks.
2725
# 'test_compile' -- check by making test program.
2726
# 'file_magic [[regex]]' -- check by looking for files in library path
2727
# which responds to the $file_magic_cmd with a given egrep regex.
2728
# If you have `file' or equivalent on your system and you're not sure
2729
# whether `pass_all' will *always* work, you probably want this one.
2733
lt_cv_deplibs_check_method=pass_all
2737
lt_cv_deplibs_check_method=pass_all
2741
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2742
lt_cv_file_magic_cmd='/usr/bin/file -L'
2743
lt_cv_file_magic_test_file=/shlib/libc.so
2746
cygwin* | mingw* | pw32*)
2747
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2748
lt_cv_file_magic_cmd='$OBJDUMP -f'
2751
darwin* | rhapsody*)
2752
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2753
lt_cv_file_magic_cmd='/usr/bin/file -L'
2755
rhapsody* | darwin1.[012])
2756
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2759
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2765
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2768
# Not sure whether the presence of OpenBSD here was a mistake.
2769
# Let's accept both of them until this is cleared up.
2770
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2771
lt_cv_file_magic_cmd=/usr/bin/file
2772
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2776
lt_cv_deplibs_check_method=pass_all
2781
lt_cv_deplibs_check_method=pass_all
2785
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2786
lt_cv_file_magic_cmd=/usr/bin/file
2787
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2790
irix5* | irix6* | nonstopux*)
2792
irix5* | nonstopux*)
2793
# this will be overridden with pass_all, but let us keep it just in case
2794
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2798
*-32|*"-32 ") libmagic=32-bit;;
2799
*-n32|*"-n32 ") libmagic=N32;;
2800
*-64|*"-64 ") libmagic=64-bit;;
2801
*) libmagic=never-match;;
2803
# this will be overridden with pass_all, but let us keep it just in case
2804
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2807
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2808
lt_cv_deplibs_check_method=pass_all
2811
# This must be Linux ELF.
2814
alpha* | hppa* | i*86 | m68* | mips | mipsel | powerpc* | s390* | sparc* | ia64* | x86_64*)
2815
lt_cv_deplibs_check_method=pass_all ;;
2817
# glibc up to 2.1.1 does not perform some relocations on ARM
2818
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2820
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2824
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2825
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2827
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2832
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2833
lt_cv_file_magic_cmd=/usr/bin/file
2834
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2838
lt_cv_file_magic_cmd=/usr/bin/file
2839
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2840
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2841
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2843
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2847
osf3* | osf4* | osf5*)
2848
# this will be overridden with pass_all, but let us keep it just in case
2849
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2850
lt_cv_file_magic_test_file=/shlib/libc.so
2851
lt_cv_deplibs_check_method=pass_all
2855
lt_cv_deplibs_check_method=pass_all
2859
lt_cv_deplibs_check_method=pass_all
2860
lt_cv_file_magic_test_file=/lib/libc.so
2863
sysv5uw[78]* | sysv4*uw2*)
2864
lt_cv_deplibs_check_method=pass_all
2867
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2868
case $host_vendor in
2870
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]'
2871
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2874
lt_cv_deplibs_check_method=pass_all
2877
lt_cv_file_magic_cmd='/bin/file'
2878
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2881
lt_cv_file_magic_cmd='/bin/file'
2882
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2883
lt_cv_file_magic_test_file=/lib/libc.so
2886
lt_cv_deplibs_check_method=pass_all
2893
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2894
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2895
file_magic_cmd=$lt_cv_file_magic_cmd
2896
deplibs_check_method=$lt_cv_deplibs_check_method
2905
# Check for command to grab the raw symbol name followed by C symbol from nm.
2906
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2907
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2908
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2909
echo $ECHO_N "(cached) $ECHO_C" >&6
2912
# These are sane defaults that work on at least a few old systems.
2913
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2915
# Character class describing NM global symbol codes.
2916
symcode='[BCDEGRST]'
2918
# Regexp to match symbols that can be accessed directly from C.
2919
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2921
# Transform the above into a raw symbol and a C symbol.
2922
symxfrm='\1 \2\3 \3'
2924
# Transform an extracted symbol line into a proper C declaration
2925
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2927
# Transform an extracted symbol line into symbol name and symbol address
2928
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'"
2930
# Define system-specific variables.
2935
cygwin* | mingw* | pw32*)
2936
symcode='[ABCDGISTW]'
2938
hpux*) # Its linker distinguishes data from code symbols
2939
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2940
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'"
2943
symcode='[BCDEGRST]'
2946
symcode='[BCDEGQRST]'
2956
# Handle CRLF in mingw tool chain
2960
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2964
# If we're using GNU nm, then use its standard symbol codes.
2965
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2966
symcode='[ABCDGISTW]'
2969
# Try without a prefix undercore, then with it.
2970
for ac_symprfx in "" "_"; do
2972
# Write the raw and C identifiers.
2973
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2975
# Check to see that the pipe works correctly.
2978
cat > conftest.$ac_ext <<EOF
2983
void nm_test_func(){}
2987
int main(){nm_test_var='a';nm_test_func();return(0);}
2990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991
(eval $ac_compile) 2>&5
2993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994
(exit $ac_status); }; then
2995
# Now try to grab the symbols.
2997
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2998
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001
(exit $ac_status); } && test -s "$nlist"; then
3002
# Try sorting and uniquifying the output.
3003
if sort "$nlist" | uniq > "$nlist"T; then
3004
mv -f "$nlist"T "$nlist"
3009
# Make sure that we snagged all the symbols we need.
3010
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3011
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3012
cat <<EOF > conftest.$ac_ext
3018
# Now generate the symbol file.
3019
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3021
cat <<EOF >> conftest.$ac_ext
3022
#if defined (__STDC__) && __STDC__
3023
# define lt_ptr void *
3025
# define lt_ptr char *
3029
/* The mapping between symbol names and symbols. */
3034
lt_preloaded_symbols[] =
3037
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3038
cat <<\EOF >> conftest.$ac_ext
3046
# Now try linking the two files.
3047
mv conftest.$ac_objext conftstm.$ac_objext
3049
save_CFLAGS="$CFLAGS"
3050
LIBS="conftstm.$ac_objext"
3051
CFLAGS="$CFLAGS$no_builtin_flag"
3052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3053
(eval $ac_link) 2>&5
3055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056
(exit $ac_status); } && test -s conftest$ac_exeext; then
3060
CFLAGS="$save_CFLAGS"
3062
echo "cannot find nm_test_func in $nlist" >&5
3065
echo "cannot find nm_test_var in $nlist" >&5
3068
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3071
echo "$progname: failed program was:" >&5
3072
cat conftest.$ac_ext >&5
3074
rm -f conftest* conftst*
3076
# Do not use the global_symbol_pipe unless it works.
3077
if test "$pipe_works" = yes; then
3080
lt_cv_sys_global_symbol_pipe=
3086
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3087
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3088
global_symbol_to_cdecl=
3089
global_symbol_to_c_name_address=
3091
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3092
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3094
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3096
echo "$as_me:$LINENO: result: failed" >&5
3097
echo "${ECHO_T}failed" >&6
3099
echo "$as_me:$LINENO: result: ok" >&5
3100
echo "${ECHO_T}ok" >&6
3104
ac_cpp='$CPP $CPPFLAGS'
3105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
893
3110
# On Suns, sometimes $CPP names a directory.
894
3111
if test -n "$CPP" && test -d "$CPP"; then
897
3114
if test -z "$CPP"; then
898
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
899
echo $ac_n "(cached) $ac_c" 1>&6
3115
if test "${ac_cv_prog_CPP+set}" = set; then
3116
echo $ECHO_N "(cached) $ECHO_C" >&6
901
# This must be in double quotes, not single quotes, because CPP may get
902
# substituted into the Makefile and "${CC-cc}" will confuse make.
3118
# Double quotes because CPP needs to be expanded
3119
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122
for ac_c_preproc_warn_flag in '' yes
3124
# Use a header file that comes with gcc, so configuring glibc
3125
# with a fresh cross-compiler works.
3126
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127
# <limits.h> exists even on freestanding compilers.
904
3128
# On the NeXT, cc -E runs the code through the compiler's parser,
905
# not just through cpp.
906
cat > conftest.$ac_ext <<EOF
907
#line 908 "configure"
908
#include "confdefs.h"
912
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
913
{ (eval echo configure:914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
914
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
915
if test -z "$ac_err"; then
919
echo "configure: failed program was:" >&5
920
cat conftest.$ac_ext >&5
922
CPP="${CC-cc} -E -traditional-cpp"
923
cat > conftest.$ac_ext <<EOF
924
#line 925 "configure"
925
#include "confdefs.h"
929
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
930
{ (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
931
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
932
if test -z "$ac_err"; then
936
echo "configure: failed program was:" >&5
937
cat conftest.$ac_ext >&5
939
CPP="${CC-cc} -nologo -E"
940
cat > conftest.$ac_ext <<EOF
941
#line 942 "configure"
942
#include "confdefs.h"
946
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
947
{ (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
948
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
949
if test -z "$ac_err"; then
953
echo "configure: failed program was:" >&5
954
cat conftest.$ac_ext >&5
963
ac_cv_prog_CPP="$CPP"
965
CPP="$ac_cv_prog_CPP"
967
ac_cv_prog_CPP="$CPP"
969
echo "$ac_t""$CPP" 1>&6
971
# If we find X, set shell vars x_includes and x_libraries to the
972
# paths, otherwise set no_x=yes.
973
# Uses ac_ vars as temps to allow command line to override cache and checks.
974
# --without-x overrides everything else, but does not touch the cache.
975
echo $ac_n "checking for X""... $ac_c" 1>&6
976
echo "configure:977: checking for X" >&5
978
# Check whether --with-x or --without-x was given.
979
if test "${with_x+set}" = set; then
984
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
985
if test "x$with_x" = xno; then
986
# The user explicitly disabled X.
989
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
990
# Both variables are already set.
993
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
994
echo $ac_n "(cached) $ac_c" 1>&6
996
# One or both of the vars are not set, and there is no cached value.
997
ac_x_includes=NO ac_x_libraries=NO
999
if mkdir conftestdir; then
1001
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
1002
cat > Imakefile <<'EOF'
1004
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1006
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1007
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1008
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1009
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1010
for ac_extension in a so sl; do
1011
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1012
test -f $ac_im_libdir/libX11.$ac_extension; then
1013
ac_im_usrlibdir=$ac_im_libdir; break
3129
# not just through cpp. "Syntax error" is here to catch this case.
3130
cat >conftest.$ac_ext <<_ACEOF
3131
#line $LINENO "configure"
3134
cat confdefs.h >>conftest.$ac_ext
3135
cat >>conftest.$ac_ext <<_ACEOF
3136
/* end confdefs.h. */
3138
# include <limits.h>
3140
# include <assert.h>
3144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147
grep -v '^ *+' conftest.er1 >conftest.err
3149
cat conftest.err >&5
3150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151
(exit $ac_status); } >/dev/null; then
3152
if test -s conftest.err; then
3153
ac_cpp_err=$ac_c_preproc_warn_flag
3160
if test -z "$ac_cpp_err"; then
3163
echo "$as_me: failed program was:" >&5
3164
sed 's/^/| /' conftest.$ac_ext >&5
3166
# Broken: fails on valid input.
3169
rm -f conftest.err conftest.$ac_ext
3171
# OK, works on sane cases. Now check whether non-existent headers
3172
# can be detected and how.
3173
cat >conftest.$ac_ext <<_ACEOF
3174
#line $LINENO "configure"
3177
cat confdefs.h >>conftest.$ac_ext
3178
cat >>conftest.$ac_ext <<_ACEOF
3179
/* end confdefs.h. */
3180
#include <ac_nonexistent.h>
3182
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3183
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185
grep -v '^ *+' conftest.er1 >conftest.err
3187
cat conftest.err >&5
3188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189
(exit $ac_status); } >/dev/null; then
3190
if test -s conftest.err; then
3191
ac_cpp_err=$ac_c_preproc_warn_flag
3198
if test -z "$ac_cpp_err"; then
3199
# Broken: success on invalid input.
3202
echo "$as_me: failed program was:" >&5
3203
sed 's/^/| /' conftest.$ac_ext >&5
3205
# Passes both tests.
3209
rm -f conftest.err conftest.$ac_ext
3212
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213
rm -f conftest.err conftest.$ac_ext
3214
if $ac_preproc_ok; then
1016
# Screen out bogus values from the imake configuration. They are
1017
# bogus both because they are the default anyway, and because
1018
# using them would break gcc on systems where it needs fixed includes.
1019
case "$ac_im_incroot" in
1021
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1023
case "$ac_im_usrlibdir" in
1025
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1032
if test "$ac_x_includes" = NO; then
1033
# Guess where to find include files, by looking for this one X11 .h file.
1034
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1036
# First, try using that file with no special directory specified.
1037
cat > conftest.$ac_ext <<EOF
1038
#line 1039 "configure"
1039
#include "confdefs.h"
1040
#include <$x_direct_test_include>
1042
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1043
{ (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1044
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1045
if test -z "$ac_err"; then
1047
# We can compile using X headers with no special include directory.
1051
echo "configure: failed program was:" >&5
1052
cat conftest.$ac_ext >&5
1054
# Look for the header file in a standard set of common directories.
1055
# Check X11 before X11Rn because it is often a symlink to the current release.
1058
/usr/X11R6/include \
1059
/usr/X11R5/include \
1060
/usr/X11R4/include \
1063
/usr/include/X11R6 \
1064
/usr/include/X11R5 \
1065
/usr/include/X11R4 \
1067
/usr/local/X11/include \
1068
/usr/local/X11R6/include \
1069
/usr/local/X11R5/include \
1070
/usr/local/X11R4/include \
1072
/usr/local/include/X11 \
1073
/usr/local/include/X11R6 \
1074
/usr/local/include/X11R5 \
1075
/usr/local/include/X11R4 \
1079
/usr/XFree86/include/X11 \
1082
/usr/local/include \
1083
/usr/unsupported/include \
1084
/usr/athena/include \
1085
/usr/local/x11r5/include \
1086
/usr/lpp/Xamples/include \
1088
/usr/openwin/include \
1089
/usr/openwin/share/include \
1092
if test -r "$ac_dir/$x_direct_test_include"; then
1093
ac_x_includes=$ac_dir
1099
fi # $ac_x_includes = NO
1101
if test "$ac_x_libraries" = NO; then
1102
# Check for the libraries.
1104
test -z "$x_direct_test_library" && x_direct_test_library=Xt
1105
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1107
# See if we find them without any special options.
1108
# Don't add to $LIBS permanently.
1109
ac_save_LIBS="$LIBS"
1110
LIBS="-l$x_direct_test_library $LIBS"
1111
cat > conftest.$ac_ext <<EOF
1112
#line 1113 "configure"
1113
#include "confdefs.h"
1116
${x_direct_test_function}()
1119
if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1121
LIBS="$ac_save_LIBS"
1122
# We can link X programs with no special library path.
1125
echo "configure: failed program was:" >&5
1126
cat conftest.$ac_ext >&5
1128
LIBS="$ac_save_LIBS"
1129
# First see if replacing the include by lib works.
1130
# Check X11 before X11Rn because it is often a symlink to the current release.
1131
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1142
/usr/local/X11/lib \
1143
/usr/local/X11R6/lib \
1144
/usr/local/X11R5/lib \
1145
/usr/local/X11R4/lib \
1147
/usr/local/lib/X11 \
1148
/usr/local/lib/X11R6 \
1149
/usr/local/lib/X11R5 \
1150
/usr/local/lib/X11R4 \
1154
/usr/XFree86/lib/X11 \
1158
/usr/unsupported/lib \
1160
/usr/local/x11r5/lib \
1161
/usr/lpp/Xamples/lib \
1165
/usr/openwin/share/lib \
3226
echo "$as_me:$LINENO: result: $CPP" >&5
3227
echo "${ECHO_T}$CPP" >&6
3229
for ac_c_preproc_warn_flag in '' yes
1168
for ac_extension in a so sl; do
1169
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1170
ac_x_libraries=$ac_dir
3231
# Use a header file that comes with gcc, so configuring glibc
3232
# with a fresh cross-compiler works.
3233
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234
# <limits.h> exists even on freestanding compilers.
3235
# On the NeXT, cc -E runs the code through the compiler's parser,
3236
# not just through cpp. "Syntax error" is here to catch this case.
3237
cat >conftest.$ac_ext <<_ACEOF
3238
#line $LINENO "configure"
3241
cat confdefs.h >>conftest.$ac_ext
3242
cat >>conftest.$ac_ext <<_ACEOF
3243
/* end confdefs.h. */
3245
# include <limits.h>
3247
# include <assert.h>
3251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254
grep -v '^ *+' conftest.er1 >conftest.err
3256
cat conftest.err >&5
3257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
(exit $ac_status); } >/dev/null; then
3259
if test -s conftest.err; then
3260
ac_cpp_err=$ac_c_preproc_warn_flag
3267
if test -z "$ac_cpp_err"; then
3270
echo "$as_me: failed program was:" >&5
3271
sed 's/^/| /' conftest.$ac_ext >&5
3273
# Broken: fails on valid input.
3276
rm -f conftest.err conftest.$ac_ext
3278
# OK, works on sane cases. Now check whether non-existent headers
3279
# can be detected and how.
3280
cat >conftest.$ac_ext <<_ACEOF
3281
#line $LINENO "configure"
3284
cat confdefs.h >>conftest.$ac_ext
3285
cat >>conftest.$ac_ext <<_ACEOF
3286
/* end confdefs.h. */
3287
#include <ac_nonexistent.h>
3289
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292
grep -v '^ *+' conftest.er1 >conftest.err
3294
cat conftest.err >&5
3295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296
(exit $ac_status); } >/dev/null; then
3297
if test -s conftest.err; then
3298
ac_cpp_err=$ac_c_preproc_warn_flag
3305
if test -z "$ac_cpp_err"; then
3306
# Broken: success on invalid input.
3309
echo "$as_me: failed program was:" >&5
3310
sed 's/^/| /' conftest.$ac_ext >&5
3312
# Passes both tests.
3316
rm -f conftest.err conftest.$ac_ext
1177
fi # $ac_x_libraries = NO
1179
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1180
# Didn't find X anywhere. Cache the known absence of X.
1181
ac_cv_have_x="have_x=no"
1183
# Record where we found X for the cache.
1184
ac_cv_have_x="have_x=yes \
1185
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1189
eval "$ac_cv_have_x"
1192
if test "$have_x" != yes; then
1193
echo "$ac_t""$have_x" 1>&6
1196
# If each of the values was on the command line, it overrides each guess.
1197
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1198
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1199
# Update the cache value to reflect the command line values.
1200
ac_cv_have_x="have_x=yes \
1201
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1202
echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1205
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1206
echo "configure:1207: checking for ANSI C header files" >&5
1207
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1208
echo $ac_n "(cached) $ac_c" 1>&6
1210
cat > conftest.$ac_ext <<EOF
1211
#line 1212 "configure"
1212
#include "confdefs.h"
3319
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320
rm -f conftest.err conftest.$ac_ext
3321
if $ac_preproc_ok; then
3324
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3325
See \`config.log' for more details." >&5
3326
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3327
See \`config.log' for more details." >&2;}
3328
{ (exit 1); exit 1; }; }
3332
ac_cpp='$CPP $CPPFLAGS'
3333
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
echo "$as_me:$LINENO: checking for egrep" >&5
3339
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3340
if test "${ac_cv_prog_egrep+set}" = set; then
3341
echo $ECHO_N "(cached) $ECHO_C" >&6
3343
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3344
then ac_cv_prog_egrep='grep -E'
3345
else ac_cv_prog_egrep='egrep'
3348
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3349
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3350
EGREP=$ac_cv_prog_egrep
3353
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3354
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3355
if test "${ac_cv_header_stdc+set}" = set; then
3356
echo $ECHO_N "(cached) $ECHO_C" >&6
3358
cat >conftest.$ac_ext <<_ACEOF
3359
#line $LINENO "configure"
3362
cat confdefs.h >>conftest.$ac_ext
3363
cat >>conftest.$ac_ext <<_ACEOF
3364
/* end confdefs.h. */
1213
3365
#include <stdlib.h>
1214
3366
#include <stdarg.h>
1215
3367
#include <string.h>
1216
3368
#include <float.h>
1218
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219
{ (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221
if test -z "$ac_err"; then
3378
rm -f conftest.$ac_objext
3379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380
(eval $ac_compile) 2>&5
3382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
(exit $ac_status); } &&
3384
{ ac_try='test -s conftest.$ac_objext'
3385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389
(exit $ac_status); }; }; then
1223
3390
ac_cv_header_stdc=yes
1226
echo "configure: failed program was:" >&5
1227
cat conftest.$ac_ext >&5
1229
ac_cv_header_stdc=no
3392
echo "$as_me: failed program was:" >&5
3393
sed 's/^/| /' conftest.$ac_ext >&5
3395
ac_cv_header_stdc=no
3397
rm -f conftest.$ac_objext conftest.$ac_ext
1233
3399
if test $ac_cv_header_stdc = yes; then
1234
3400
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1235
cat > conftest.$ac_ext <<EOF
1236
#line 1237 "configure"
1237
#include "confdefs.h"
3401
cat >conftest.$ac_ext <<_ACEOF
3402
#line $LINENO "configure"
3405
cat confdefs.h >>conftest.$ac_ext
3406
cat >>conftest.$ac_ext <<_ACEOF
3407
/* end confdefs.h. */
1238
3408
#include <string.h>
1240
3411
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1241
egrep "memchr" >/dev/null 2>&1; then
3412
$EGREP "memchr" >/dev/null 2>&1; then
1245
3415
ac_cv_header_stdc=no
1247
3417
rm -f conftest*
1269
3443
if test $ac_cv_header_stdc = yes; then
1270
3444
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1271
if test "$cross_compiling" = yes; then
3445
if test "$cross_compiling" = yes; then
1274
cat > conftest.$ac_ext <<EOF
1275
#line 1276 "configure"
1276
#include "confdefs.h"
3448
cat >conftest.$ac_ext <<_ACEOF
3449
#line $LINENO "configure"
3452
cat confdefs.h >>conftest.$ac_ext
3453
cat >>conftest.$ac_ext <<_ACEOF
3454
/* end confdefs.h. */
1277
3455
#include <ctype.h>
1278
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1279
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3456
#if ((' ' & 0x0FF) == 0x020)
3457
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3458
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460
# define ISLOWER(c) \
3461
(('a' <= (c) && (c) <= 'i') \
3462
|| ('j' <= (c) && (c) <= 'r') \
3463
|| ('s' <= (c) && (c) <= 'z'))
3464
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1280
3467
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1281
int main () { int i; for (i = 0; i < 256; i++)
1282
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1286
if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3472
for (i = 0; i < 256; i++)
3473
if (XOR (islower (i), ISLOWER (i))
3474
|| toupper (i) != TOUPPER (i))
3479
rm -f conftest$ac_exeext
3480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3481
(eval $ac_link) 2>&5
3483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
(exit $ac_status); }; }; then
1290
echo "configure: failed program was:" >&5
1291
cat conftest.$ac_ext >&5
1293
ac_cv_header_stdc=no
1301
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3492
echo "$as_me: program exited with status $ac_status" >&5
3493
echo "$as_me: failed program was:" >&5
3494
sed 's/^/| /' conftest.$ac_ext >&5
3497
ac_cv_header_stdc=no
3499
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3503
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3504
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1302
3505
if test $ac_cv_header_stdc = yes; then
1303
cat >> confdefs.h <<\EOF
3507
cat >>confdefs.h <<\_ACEOF
1304
3508
#define STDC_HEADERS 1
1309
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1310
echo "configure:1311: checking for sys/wait.h that is POSIX.1 compatible" >&5
1311
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1312
echo $ac_n "(cached) $ac_c" 1>&6
1314
cat > conftest.$ac_ext <<EOF
1315
#line 1316 "configure"
1316
#include "confdefs.h"
1317
#include <sys/types.h>
1318
#include <sys/wait.h>
1320
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1323
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1328
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1331
if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1333
ac_cv_header_sys_wait_h=yes
1335
echo "configure: failed program was:" >&5
1336
cat conftest.$ac_ext >&5
1338
ac_cv_header_sys_wait_h=no
1343
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1344
if test $ac_cv_header_sys_wait_h = yes; then
1345
cat >> confdefs.h <<\EOF
1346
#define HAVE_SYS_WAIT_H 1
1351
for ac_hdr in fcntl.h unistd.h
1353
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1354
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1355
echo "configure:1356: checking for $ac_hdr" >&5
1356
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1357
echo $ac_n "(cached) $ac_c" 1>&6
1359
cat > conftest.$ac_ext <<EOF
1360
#line 1361 "configure"
1361
#include "confdefs.h"
1364
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1365
{ (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1366
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1367
if test -z "$ac_err"; then
1369
eval "ac_cv_header_$ac_safe=yes"
1372
echo "configure: failed program was:" >&5
1373
cat conftest.$ac_ext >&5
1375
eval "ac_cv_header_$ac_safe=no"
1379
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1380
echo "$ac_t""yes" 1>&6
1381
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1382
cat >> confdefs.h <<EOF
1383
#define $ac_tr_hdr 1
1387
echo "$ac_t""no" 1>&6
1391
for ac_hdr in tcl.h tk.h
1393
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1394
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1395
echo "configure:1396: checking for $ac_hdr" >&5
1396
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1397
echo $ac_n "(cached) $ac_c" 1>&6
1399
cat > conftest.$ac_ext <<EOF
1400
#line 1401 "configure"
1401
#include "confdefs.h"
1404
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1405
{ (eval echo configure:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1406
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1407
if test -z "$ac_err"; then
1409
eval "ac_cv_header_$ac_safe=yes"
1412
echo "configure: failed program was:" >&5
1413
cat conftest.$ac_ext >&5
1415
eval "ac_cv_header_$ac_safe=no"
1419
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1420
echo "$ac_t""yes" 1>&6
1421
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1422
cat >> confdefs.h <<EOF
1423
#define $ac_tr_hdr 1
1427
echo "$ac_t""no" 1>&6
1432
echo $ac_n "checking for working const""... $ac_c" 1>&6
1433
echo "configure:1434: checking for working const" >&5
1434
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1435
echo $ac_n "(cached) $ac_c" 1>&6
1437
cat > conftest.$ac_ext <<EOF
1438
#line 1439 "configure"
1439
#include "confdefs.h"
1443
/* Ultrix mips cc rejects this. */
1444
typedef int charset[2]; const charset x = {0,0};
1445
/* SunOS 4.1.1 cc rejects this. */
1446
char const *const *ccp;
1448
/* NEC SVR4.0.2 mips cc rejects this. */
1449
struct point {int x, y;};
1450
static struct point const zero = {0,0};
1451
/* AIX XL C 1.02.0.0 rejects this.
1452
It does not let you subtract one const X* pointer from another in an arm
1453
of an if-expression whose if-part is not a constant expression */
1454
const char *g = "string";
1455
ccp = &g + (g ? g-g : 0);
1456
/* HPUX 7.0 cc rejects these. */
1459
ccp = (char const *const *) p;
1460
{ /* SCO 3.2v4 cc rejects this. */
1462
char const *s = 0 ? (char *) 0 : (char const *) 0;
1466
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1468
const int *foo = &x[0];
1471
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1472
typedef const int *iptr;
1476
{ /* AIX XL C 1.02.0.0 rejects this saying
1477
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1478
struct s { int j; const int *ap[3]; };
1479
struct s *b; b->j = 5;
1481
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1487
if { (eval echo configure:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491
echo "configure: failed program was:" >&5
1492
cat conftest.$ac_ext >&5
1499
echo "$ac_t""$ac_cv_c_const" 1>&6
1500
if test $ac_cv_c_const = no; then
1501
cat >> confdefs.h <<\EOF
1507
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1508
echo "configure:1509: checking for pid_t" >&5
1509
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1510
echo $ac_n "(cached) $ac_c" 1>&6
1512
cat > conftest.$ac_ext <<EOF
1513
#line 1514 "configure"
1514
#include "confdefs.h"
1515
#include <sys/types.h>
1521
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1522
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1524
ac_cv_type_pid_t=yes
1532
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1533
if test $ac_cv_type_pid_t = no; then
1534
cat >> confdefs.h <<\EOF
1540
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1541
echo "configure:1542: checking for size_t" >&5
1542
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1543
echo $ac_n "(cached) $ac_c" 1>&6
1545
cat > conftest.$ac_ext <<EOF
1546
#line 1547 "configure"
1547
#include "confdefs.h"
1548
#include <sys/types.h>
1554
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1557
ac_cv_type_size_t=yes
1560
ac_cv_type_size_t=no
1565
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1566
if test $ac_cv_type_size_t = no; then
1567
cat >> confdefs.h <<\EOF
1568
#define size_t unsigned
1574
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1575
echo "configure:1576: checking for 8-bit clean memcmp" >&5
1576
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1577
echo $ac_n "(cached) $ac_c" 1>&6
1579
if test "$cross_compiling" = yes; then
1580
ac_cv_func_memcmp_clean=no
1582
cat > conftest.$ac_ext <<EOF
1583
#line 1584 "configure"
1584
#include "confdefs.h"
1588
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1589
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1593
if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1595
ac_cv_func_memcmp_clean=yes
1597
echo "configure: failed program was:" >&5
1598
cat conftest.$ac_ext >&5
1600
ac_cv_func_memcmp_clean=no
1607
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1608
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1610
for ac_hdr in unistd.h
1612
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1613
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1614
echo "configure:1615: checking for $ac_hdr" >&5
1615
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1616
echo $ac_n "(cached) $ac_c" 1>&6
1618
cat > conftest.$ac_ext <<EOF
1619
#line 1620 "configure"
1620
#include "confdefs.h"
1623
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624
{ (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1626
if test -z "$ac_err"; then
1628
eval "ac_cv_header_$ac_safe=yes"
1631
echo "configure: failed program was:" >&5
1632
cat conftest.$ac_ext >&5
1634
eval "ac_cv_header_$ac_safe=no"
1638
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1639
echo "$ac_t""yes" 1>&6
1640
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1641
cat >> confdefs.h <<EOF
1642
#define $ac_tr_hdr 1
1646
echo "$ac_t""no" 1>&6
1650
for ac_func in getpagesize
1652
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653
echo "configure:1654: checking for $ac_func" >&5
1654
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655
echo $ac_n "(cached) $ac_c" 1>&6
1657
cat > conftest.$ac_ext <<EOF
1658
#line 1659 "configure"
1659
#include "confdefs.h"
1660
/* System header to define __stub macros and hopefully few prototypes,
1661
which can conflict with char $ac_func(); below. */
1663
/* Override any gcc2 internal prototype to avoid an error. */
1664
/* We use char because int might match the return type of a gcc2
1665
builtin and then its argument prototype would still apply. */
1670
/* The GNU C library defines this for functions which it implements
1671
to always fail with ENOSYS. Some functions are actually named
1672
something starting with __ and the normal name is an alias. */
1673
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1681
if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683
eval "ac_cv_func_$ac_func=yes"
1685
echo "configure: failed program was:" >&5
1686
cat conftest.$ac_ext >&5
1688
eval "ac_cv_func_$ac_func=no"
1693
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694
echo "$ac_t""yes" 1>&6
1695
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696
cat >> confdefs.h <<EOF
1697
#define $ac_tr_func 1
1701
echo "$ac_t""no" 1>&6
1705
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1706
echo "configure:1707: checking for working mmap" >&5
1707
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1708
echo $ac_n "(cached) $ac_c" 1>&6
1710
if test "$cross_compiling" = yes; then
1711
ac_cv_func_mmap_fixed_mapped=no
1713
cat > conftest.$ac_ext <<EOF
1714
#line 1715 "configure"
1715
#include "confdefs.h"
1717
/* Thanks to Mike Haertel and Jim Avera for this test.
1718
Here is a matrix of mmap possibilities:
1719
mmap private not fixed
1720
mmap private fixed at somewhere currently unmapped
1721
mmap private fixed at somewhere already mapped
1722
mmap shared not fixed
1723
mmap shared fixed at somewhere currently unmapped
1724
mmap shared fixed at somewhere already mapped
1725
For private mappings, we should verify that changes cannot be read()
1726
back from the file, nor mmap's back from the file at a different
1727
address. (There have been systems where private was not correctly
1728
implemented like the infamous i386 svr4.0, and systems where the
1729
VM page cache was not coherent with the filesystem buffer cache
1730
like early versions of FreeBSD and possibly contemporary NetBSD.)
1731
For shared mappings, we should conversely verify that changes get
1732
propogated back to all the places they're supposed to be.
1734
Grep wants private fixed already mapped.
1735
The main things grep needs to know about mmap are:
1736
* does it exist and is it safe to write into the mmap'd area
1737
* how to use it (BSD variants) */
1738
#include <sys/types.h>
1740
#include <sys/mman.h>
1742
/* This mess was copied from the GNU getpagesize.h. */
1743
#ifndef HAVE_GETPAGESIZE
1744
# ifdef HAVE_UNISTD_H
1745
# include <unistd.h>
1748
/* Assume that all systems that can run configure have sys/param.h. */
1749
# ifndef HAVE_SYS_PARAM_H
1750
# define HAVE_SYS_PARAM_H 1
1753
# ifdef _SC_PAGESIZE
1754
# define getpagesize() sysconf(_SC_PAGESIZE)
1755
# else /* no _SC_PAGESIZE */
1756
# ifdef HAVE_SYS_PARAM_H
1757
# include <sys/param.h>
1758
# ifdef EXEC_PAGESIZE
1759
# define getpagesize() EXEC_PAGESIZE
1760
# else /* no EXEC_PAGESIZE */
1762
# define getpagesize() NBPG * CLSIZE
1765
# endif /* no CLSIZE */
1766
# else /* no NBPG */
1768
# define getpagesize() NBPC
1769
# else /* no NBPC */
1771
# define getpagesize() PAGESIZE
1772
# endif /* PAGESIZE */
1773
# endif /* no NBPC */
1774
# endif /* no NBPG */
1775
# endif /* no EXEC_PAGESIZE */
1776
# else /* no HAVE_SYS_PARAM_H */
1777
# define getpagesize() 8192 /* punt totally */
1778
# endif /* no HAVE_SYS_PARAM_H */
1779
# endif /* no _SC_PAGESIZE */
1781
#endif /* no HAVE_GETPAGESIZE */
1784
extern "C" { void *malloc(unsigned); }
1792
char *data, *data2, *data3;
1796
pagesize = getpagesize();
1799
* First, make a file with some known garbage in it.
1801
data = malloc(pagesize);
1804
for (i = 0; i < pagesize; ++i)
1805
*(data + i) = rand();
1807
fd = creat("conftestmmap", 0600);
1810
if (write(fd, data, pagesize) != pagesize)
1815
* Next, try to mmap the file at a fixed address which
1816
* already has something else allocated at it. If we can,
1817
* also make sure that we see the same garbage.
1819
fd = open("conftestmmap", O_RDWR);
1822
data2 = malloc(2 * pagesize);
1825
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1826
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1827
MAP_PRIVATE | MAP_FIXED, fd, 0L))
1829
for (i = 0; i < pagesize; ++i)
1830
if (*(data + i) != *(data2 + i))
1834
* Finally, make sure that changes to the mapped area
1835
* do not percolate back to the file as seen by read().
1836
* (This is a bug on some variants of i386 svr4.0.)
1838
for (i = 0; i < pagesize; ++i)
1839
*(data2 + i) = *(data2 + i) + 1;
1840
data3 = malloc(pagesize);
1843
if (read(fd, data3, pagesize) != pagesize)
1845
for (i = 0; i < pagesize; ++i)
1846
if (*(data + i) != *(data3 + i))
1849
unlink("conftestmmap");
1854
if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1856
ac_cv_func_mmap_fixed_mapped=yes
1858
echo "configure: failed program was:" >&5
1859
cat conftest.$ac_ext >&5
1861
ac_cv_func_mmap_fixed_mapped=no
1868
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1869
if test $ac_cv_func_mmap_fixed_mapped = yes; then
1870
cat >> confdefs.h <<\EOF
1876
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1877
echo "configure:1878: checking return type of signal handlers" >&5
1878
if eval "test \"`echo '$''{'ac_cv_type_signal'+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
extern "C" void (*signal (int, void (*)(int)))(int);
1892
void (*signal ()) ();
1899
if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1901
ac_cv_type_signal=void
1903
echo "configure: failed program was:" >&5
1904
cat conftest.$ac_ext >&5
1906
ac_cv_type_signal=int
1911
echo "$ac_t""$ac_cv_type_signal" 1>&6
1912
cat >> confdefs.h <<EOF
1913
#define RETSIGTYPE $ac_cv_type_signal
1917
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1918
echo "configure:1919: checking for vprintf" >&5
1919
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1920
echo $ac_n "(cached) $ac_c" 1>&6
1922
cat > conftest.$ac_ext <<EOF
1923
#line 1924 "configure"
1924
#include "confdefs.h"
1925
/* System header to define __stub macros and hopefully few prototypes,
1926
which can conflict with char vprintf(); below. */
1928
/* Override any gcc2 internal prototype to avoid an error. */
1929
/* We use char because int might match the return type of a gcc2
1930
builtin and then its argument prototype would still apply. */
1935
/* The GNU C library defines this for functions which it implements
1936
to always fail with ENOSYS. Some functions are actually named
1937
something starting with __ and the normal name is an alias. */
1938
#if defined (__stub_vprintf) || defined (__stub___vprintf)
1946
if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1948
eval "ac_cv_func_vprintf=yes"
1950
echo "configure: failed program was:" >&5
1951
cat conftest.$ac_ext >&5
1953
eval "ac_cv_func_vprintf=no"
1958
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1959
echo "$ac_t""yes" 1>&6
1960
cat >> confdefs.h <<\EOF
1961
#define HAVE_VPRINTF 1
1965
echo "$ac_t""no" 1>&6
1968
if test "$ac_cv_func_vprintf" != yes; then
1969
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1970
echo "configure:1971: checking for _doprnt" >&5
1971
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1972
echo $ac_n "(cached) $ac_c" 1>&6
1974
cat > conftest.$ac_ext <<EOF
1975
#line 1976 "configure"
1976
#include "confdefs.h"
1977
/* System header to define __stub macros and hopefully few prototypes,
1978
which can conflict with char _doprnt(); below. */
1980
/* Override any gcc2 internal prototype to avoid an error. */
1981
/* We use char because int might match the return type of a gcc2
1982
builtin and then its argument prototype would still apply. */
1987
/* The GNU C library defines this for functions which it implements
1988
to always fail with ENOSYS. Some functions are actually named
1989
something starting with __ and the normal name is an alias. */
1990
#if defined (__stub__doprnt) || defined (__stub____doprnt)
1998
if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000
eval "ac_cv_func__doprnt=yes"
2002
echo "configure: failed program was:" >&5
2003
cat conftest.$ac_ext >&5
2005
eval "ac_cv_func__doprnt=no"
2010
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2011
echo "$ac_t""yes" 1>&6
2012
cat >> confdefs.h <<\EOF
2013
#define HAVE_DOPRNT 1
2017
echo "$ac_t""no" 1>&6
2022
for ac_func in getcwd strerror
2024
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2025
echo "configure:2026: checking for $ac_func" >&5
2026
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2027
echo $ac_n "(cached) $ac_c" 1>&6
2029
cat > conftest.$ac_ext <<EOF
2030
#line 2031 "configure"
2031
#include "confdefs.h"
2032
/* System header to define __stub macros and hopefully few prototypes,
2033
which can conflict with char $ac_func(); below. */
2035
/* Override any gcc2 internal prototype to avoid an error. */
2036
/* We use char because int might match the return type of a gcc2
2037
builtin and then its argument prototype would still apply. */
2042
/* The GNU C library defines this for functions which it implements
2043
to always fail with ENOSYS. Some functions are actually named
2044
something starting with __ and the normal name is an alias. */
2045
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2053
if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2055
eval "ac_cv_func_$ac_func=yes"
2057
echo "configure: failed program was:" >&5
2058
cat conftest.$ac_ext >&5
2060
eval "ac_cv_func_$ac_func=no"
2065
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2066
echo "$ac_t""yes" 1>&6
2067
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068
cat >> confdefs.h <<EOF
2069
#define $ac_tr_func 1
2073
echo "$ac_t""no" 1>&6
2079
cat > confcache <<\EOF
3513
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3523
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3524
inttypes.h stdint.h unistd.h
3526
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3527
echo "$as_me:$LINENO: checking for $ac_header" >&5
3528
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3529
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3530
echo $ECHO_N "(cached) $ECHO_C" >&6
3532
cat >conftest.$ac_ext <<_ACEOF
3533
#line $LINENO "configure"
3536
cat confdefs.h >>conftest.$ac_ext
3537
cat >>conftest.$ac_ext <<_ACEOF
3538
/* end confdefs.h. */
3539
$ac_includes_default
3541
#include <$ac_header>
3543
rm -f conftest.$ac_objext
3544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545
(eval $ac_compile) 2>&5
3547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548
(exit $ac_status); } &&
3549
{ ac_try='test -s conftest.$ac_objext'
3550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554
(exit $ac_status); }; }; then
3555
eval "$as_ac_Header=yes"
3557
echo "$as_me: failed program was:" >&5
3558
sed 's/^/| /' conftest.$ac_ext >&5
3560
eval "$as_ac_Header=no"
3562
rm -f conftest.$ac_objext conftest.$ac_ext
3564
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3565
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3566
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3567
cat >>confdefs.h <<_ACEOF
3568
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3577
for ac_header in dlfcn.h
3579
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3580
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3581
echo "$as_me:$LINENO: checking for $ac_header" >&5
3582
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3583
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3584
echo $ECHO_N "(cached) $ECHO_C" >&6
3586
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3587
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3589
# Is the header compilable?
3590
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3591
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3592
cat >conftest.$ac_ext <<_ACEOF
3593
#line $LINENO "configure"
3596
cat confdefs.h >>conftest.$ac_ext
3597
cat >>conftest.$ac_ext <<_ACEOF
3598
/* end confdefs.h. */
3599
$ac_includes_default
3600
#include <$ac_header>
3602
rm -f conftest.$ac_objext
3603
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604
(eval $ac_compile) 2>&5
3606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
(exit $ac_status); } &&
3608
{ ac_try='test -s conftest.$ac_objext'
3609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
(exit $ac_status); }; }; then
3614
ac_header_compiler=yes
3616
echo "$as_me: failed program was:" >&5
3617
sed 's/^/| /' conftest.$ac_ext >&5
3619
ac_header_compiler=no
3621
rm -f conftest.$ac_objext conftest.$ac_ext
3622
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3623
echo "${ECHO_T}$ac_header_compiler" >&6
3625
# Is the header present?
3626
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3627
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3628
cat >conftest.$ac_ext <<_ACEOF
3629
#line $LINENO "configure"
3632
cat confdefs.h >>conftest.$ac_ext
3633
cat >>conftest.$ac_ext <<_ACEOF
3634
/* end confdefs.h. */
3635
#include <$ac_header>
3637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3638
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640
grep -v '^ *+' conftest.er1 >conftest.err
3642
cat conftest.err >&5
3643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644
(exit $ac_status); } >/dev/null; then
3645
if test -s conftest.err; then
3646
ac_cpp_err=$ac_c_preproc_warn_flag
3653
if test -z "$ac_cpp_err"; then
3654
ac_header_preproc=yes
3656
echo "$as_me: failed program was:" >&5
3657
sed 's/^/| /' conftest.$ac_ext >&5
3659
ac_header_preproc=no
3661
rm -f conftest.err conftest.$ac_ext
3662
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3663
echo "${ECHO_T}$ac_header_preproc" >&6
3665
# So? What about this header?
3666
case $ac_header_compiler:$ac_header_preproc in
3668
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3669
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3670
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3671
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3674
## ------------------------------------ ##
3675
## Report this to bug-autoconf@gnu.org. ##
3676
## ------------------------------------ ##
3679
sed "s/^/$as_me: WARNING: /" >&2
3682
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3683
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3684
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3685
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3686
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3687
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3690
## ------------------------------------ ##
3691
## Report this to bug-autoconf@gnu.org. ##
3692
## ------------------------------------ ##
3695
sed "s/^/$as_me: WARNING: /" >&2
3698
echo "$as_me:$LINENO: checking for $ac_header" >&5
3699
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3700
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3701
echo $ECHO_N "(cached) $ECHO_C" >&6
3703
eval "$as_ac_Header=$ac_header_preproc"
3705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3709
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3710
cat >>confdefs.h <<_ACEOF
3711
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3723
# Only perform the check for file, if the check method requires it
3724
case $deplibs_check_method in
3726
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3727
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3728
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3729
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3730
echo $ECHO_N "(cached) $ECHO_C" >&6
3734
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3737
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3740
ac_save_MAGIC_CMD="$MAGIC_CMD"
3741
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3742
ac_dummy="/usr/bin:$PATH"
3743
for ac_dir in $ac_dummy; do
3744
test -z "$ac_dir" && ac_dir=.
3745
if test -f $ac_dir/${ac_tool_prefix}file; then
3746
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3747
if test -n "$file_magic_test_file"; then
3748
case $deplibs_check_method in
3750
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3751
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3752
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3753
egrep "$file_magic_regex" > /dev/null; then
3758
*** Warning: the command libtool uses to detect shared libraries,
3759
*** $file_magic_cmd, produces output that libtool cannot recognize.
3760
*** The result is that libtool may fail to recognize shared libraries
3761
*** as such. This will affect the creation of libtool libraries that
3762
*** depend on shared libraries, but programs linked with such libtool
3763
*** libraries will work regardless of this problem. Nevertheless, you
3764
*** may want to report the problem to your system manager and/or to
3765
*** bug-libtool@gnu.org
3775
MAGIC_CMD="$ac_save_MAGIC_CMD"
3780
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3781
if test -n "$MAGIC_CMD"; then
3782
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3783
echo "${ECHO_T}$MAGIC_CMD" >&6
3785
echo "$as_me:$LINENO: result: no" >&5
3786
echo "${ECHO_T}no" >&6
3789
if test -z "$lt_cv_path_MAGIC_CMD"; then
3790
if test -n "$ac_tool_prefix"; then
3791
echo "$as_me:$LINENO: checking for file" >&5
3792
echo $ECHO_N "checking for file... $ECHO_C" >&6
3793
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3794
echo $ECHO_N "(cached) $ECHO_C" >&6
3798
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3801
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3804
ac_save_MAGIC_CMD="$MAGIC_CMD"
3805
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806
ac_dummy="/usr/bin:$PATH"
3807
for ac_dir in $ac_dummy; do
3808
test -z "$ac_dir" && ac_dir=.
3809
if test -f $ac_dir/file; then
3810
lt_cv_path_MAGIC_CMD="$ac_dir/file"
3811
if test -n "$file_magic_test_file"; then
3812
case $deplibs_check_method in
3814
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3816
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3817
egrep "$file_magic_regex" > /dev/null; then
3822
*** Warning: the command libtool uses to detect shared libraries,
3823
*** $file_magic_cmd, produces output that libtool cannot recognize.
3824
*** The result is that libtool may fail to recognize shared libraries
3825
*** as such. This will affect the creation of libtool libraries that
3826
*** depend on shared libraries, but programs linked with such libtool
3827
*** libraries will work regardless of this problem. Nevertheless, you
3828
*** may want to report the problem to your system manager and/or to
3829
*** bug-libtool@gnu.org
3839
MAGIC_CMD="$ac_save_MAGIC_CMD"
3844
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3845
if test -n "$MAGIC_CMD"; then
3846
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3847
echo "${ECHO_T}$MAGIC_CMD" >&6
3849
echo "$as_me:$LINENO: result: no" >&5
3850
echo "${ECHO_T}no" >&6
3862
if test -n "$ac_tool_prefix"; then
3863
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3864
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3865
echo "$as_me:$LINENO: checking for $ac_word" >&5
3866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867
if test "${ac_cv_prog_RANLIB+set}" = set; then
3868
echo $ECHO_N "(cached) $ECHO_C" >&6
3870
if test -n "$RANLIB"; then
3871
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877
test -z "$as_dir" && as_dir=.
3878
for ac_exec_ext in '' $ac_executable_extensions; do
3879
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3881
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889
RANLIB=$ac_cv_prog_RANLIB
3890
if test -n "$RANLIB"; then
3891
echo "$as_me:$LINENO: result: $RANLIB" >&5
3892
echo "${ECHO_T}$RANLIB" >&6
3894
echo "$as_me:$LINENO: result: no" >&5
3895
echo "${ECHO_T}no" >&6
3899
if test -z "$ac_cv_prog_RANLIB"; then
3900
ac_ct_RANLIB=$RANLIB
3901
# Extract the first word of "ranlib", so it can be a program name with args.
3902
set dummy ranlib; ac_word=$2
3903
echo "$as_me:$LINENO: checking for $ac_word" >&5
3904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3906
echo $ECHO_N "(cached) $ECHO_C" >&6
3908
if test -n "$ac_ct_RANLIB"; then
3909
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915
test -z "$as_dir" && as_dir=.
3916
for ac_exec_ext in '' $ac_executable_extensions; do
3917
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918
ac_cv_prog_ac_ct_RANLIB="ranlib"
3919
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3928
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3929
if test -n "$ac_ct_RANLIB"; then
3930
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3931
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3933
echo "$as_me:$LINENO: result: no" >&5
3934
echo "${ECHO_T}no" >&6
3937
RANLIB=$ac_ct_RANLIB
3939
RANLIB="$ac_cv_prog_RANLIB"
3942
if test -n "$ac_tool_prefix"; then
3943
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3944
set dummy ${ac_tool_prefix}strip; ac_word=$2
3945
echo "$as_me:$LINENO: checking for $ac_word" >&5
3946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947
if test "${ac_cv_prog_STRIP+set}" = set; then
3948
echo $ECHO_N "(cached) $ECHO_C" >&6
3950
if test -n "$STRIP"; then
3951
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3953
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957
test -z "$as_dir" && as_dir=.
3958
for ac_exec_ext in '' $ac_executable_extensions; do
3959
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3961
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969
STRIP=$ac_cv_prog_STRIP
3970
if test -n "$STRIP"; then
3971
echo "$as_me:$LINENO: result: $STRIP" >&5
3972
echo "${ECHO_T}$STRIP" >&6
3974
echo "$as_me:$LINENO: result: no" >&5
3975
echo "${ECHO_T}no" >&6
3979
if test -z "$ac_cv_prog_STRIP"; then
3981
# Extract the first word of "strip", so it can be a program name with args.
3982
set dummy strip; ac_word=$2
3983
echo "$as_me:$LINENO: checking for $ac_word" >&5
3984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3986
echo $ECHO_N "(cached) $ECHO_C" >&6
3988
if test -n "$ac_ct_STRIP"; then
3989
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995
test -z "$as_dir" && as_dir=.
3996
for ac_exec_ext in '' $ac_executable_extensions; do
3997
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998
ac_cv_prog_ac_ct_STRIP="strip"
3999
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4008
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4009
if test -n "$ac_ct_STRIP"; then
4010
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4011
echo "${ECHO_T}$ac_ct_STRIP" >&6
4013
echo "$as_me:$LINENO: result: no" >&5
4014
echo "${ECHO_T}no" >&6
4019
STRIP="$ac_cv_prog_STRIP"
4026
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4027
if test "${enable_libtool_lock+set}" = set; then
4028
enableval="$enable_libtool_lock"
4031
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4033
# Some flags need to be propagated to the compiler or linker for good
4037
# Find out which ABI we are using.
4038
echo '#line 4038 "configure"' > conftest.$ac_ext
4039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040
(eval $ac_compile) 2>&5
4042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
(exit $ac_status); }; then
4044
case `/usr/bin/file conftest.$ac_objext` in
4060
# Test if the compiler is 64bit
4061
echo 'int i;' > conftest.$ac_ext
4062
lt_cv_cc_64bit_output=no
4063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064
(eval $ac_compile) 2>&5
4066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); }; then
4068
case `/usr/bin/file conftest.$ac_objext` in
4070
lt_cv_cc_64bit_output=yes
4078
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4079
SAVE_CFLAGS="$CFLAGS"
4080
CFLAGS="$CFLAGS -belf"
4081
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4082
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4083
if test "${lt_cv_cc_needs_belf+set}" = set; then
4084
echo $ECHO_N "(cached) $ECHO_C" >&6
4089
ac_cpp='$CPP $CPPFLAGS'
4090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
cat >conftest.$ac_ext <<_ACEOF
4095
#line $LINENO "configure"
4098
cat confdefs.h >>conftest.$ac_ext
4099
cat >>conftest.$ac_ext <<_ACEOF
4100
/* end confdefs.h. */
4110
rm -f conftest.$ac_objext conftest$ac_exeext
4111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112
(eval $ac_link) 2>&5
4114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115
(exit $ac_status); } &&
4116
{ ac_try='test -s conftest$ac_exeext'
4117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121
(exit $ac_status); }; }; then
4122
lt_cv_cc_needs_belf=yes
4124
echo "$as_me: failed program was:" >&5
4125
sed 's/^/| /' conftest.$ac_ext >&5
4127
lt_cv_cc_needs_belf=no
4129
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4131
ac_cpp='$CPP $CPPFLAGS'
4132
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4138
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4139
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4140
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4141
CFLAGS="$SAVE_CFLAGS"
4148
# Sed substitution that helps us do robust quoting. It backslashifies
4149
# metacharacters that are still active within double-quoted strings.
4150
Xsed='sed -e s/^X//'
4151
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4153
# Same as above, but do not quote variable references.
4154
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4156
# Sed substitution to delay expansion of an escaped shell variable in a
4157
# double_quote_subst'ed string.
4158
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4164
default_ofile=libtool
4165
can_build_shared=yes
4167
# All known linkers require a `.a' archive for static linking (except M$VC,
4168
# which needs '.lib').
4170
ltmain="$ac_aux_dir/ltmain.sh"
4171
ofile="$default_ofile"
4172
with_gnu_ld="$lt_cv_prog_gnu_ld"
4173
need_locks="$enable_libtool_lock"
4176
old_CFLAGS="$CFLAGS"
4178
# Set sane defaults for various variables
4179
test -z "$AR" && AR=ar
4180
test -z "$AR_FLAGS" && AR_FLAGS=cru
4181
test -z "$AS" && AS=as
4182
test -z "$CC" && CC=cc
4183
test -z "$DLLTOOL" && DLLTOOL=dlltool
4184
test -z "$LD" && LD=ld
4185
test -z "$LN_S" && LN_S="ln -s"
4186
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4187
test -z "$NM" && NM=nm
4188
test -z "$OBJDUMP" && OBJDUMP=objdump
4189
test -z "$RANLIB" && RANLIB=:
4190
test -z "$STRIP" && STRIP=:
4191
test -z "$ac_objext" && ac_objext=o
4193
if test x"$host" != x"$build"; then
4194
ac_tool_prefix=${host_alias}-
4201
# AIX sometimes has problems with the GCC collect2 program. For some
4202
# reason, if we set the COLLECT_NAMES environment variable, the problems
4203
# vanish in a puff of smoke.
4204
if test "X${COLLECT_NAMES+set}" != Xset; then
4206
export COLLECT_NAMES
4211
# Determine commands to create old-style static archives.
4212
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4213
old_postinstall_cmds='chmod 644 $oldlib'
4214
old_postuninstall_cmds=
4216
if test -n "$RANLIB"; then
4219
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4222
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4225
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4228
# Allow CC to be a program name with arguments.
4232
echo "$as_me:$LINENO: checking for objdir" >&5
4233
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4234
rm -f .libs 2>/dev/null
4235
mkdir .libs 2>/dev/null
4236
if test -d .libs; then
4239
# MS-DOS does not allow filenames that begin with a dot.
4242
rmdir .libs 2>/dev/null
4243
echo "$as_me:$LINENO: result: $objdir" >&5
4244
echo "${ECHO_T}$objdir" >&6
4248
# Check whether --with-pic or --without-pic was given.
4249
if test "${with_pic+set}" = set; then
4255
test -z "$pic_mode" && pic_mode=default
4257
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4258
# in isolation, and that seeing it set (from the cache) indicates that
4259
# the associated values are set (in the cache) correctly too.
4260
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4261
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4262
if test "${lt_cv_prog_cc_pic+set}" = set; then
4263
echo $ECHO_N "(cached) $ECHO_C" >&6
4266
lt_cv_prog_cc_shlib=
4268
lt_cv_prog_cc_static=
4269
lt_cv_prog_cc_no_builtin=
4270
lt_cv_prog_cc_can_build_shared=$can_build_shared
4272
if test "$GCC" = yes; then
4273
lt_cv_prog_cc_wl='-Wl,'
4274
lt_cv_prog_cc_static='-static'
4278
# Below there is a dirty hack to force normal static linking with -ldl
4279
# The problem is because libdl dynamically linked with both libc and
4280
# libC (AIX C++ library), which obviously doesn't included in libraries
4281
# list by gcc. This cause undefined symbols with -static flags.
4282
# This hack allows C programs to be linked with "-static -ldl", but
4283
# not sure about C++ programs.
4284
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4287
# FIXME: we need at least 68020 code to build shared libraries, but
4288
# adding the `-m68020' flag to GCC prevents building anything better,
4290
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4292
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4293
# PIC is the default for these OSes.
4295
darwin* | rhapsody*)
4296
# PIC is the default on this platform
4297
# Common symbols not allowed in MH_DYLIB files
4298
lt_cv_prog_cc_pic='-fno-common'
4300
cygwin* | mingw* | pw32* | os2*)
4301
# This hack is so that the source file can tell whether it is being
4302
# built for inclusion in a dll (and should export symbols for example).
4303
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4306
if test -d /usr/nec; then
4307
lt_cv_prog_cc_pic=-Kconform_pic
4311
lt_cv_prog_cc_pic='-fPIC'
4315
# PORTME Check for PIC flags for the system compiler.
4317
aix3* | aix4* | aix5*)
4318
lt_cv_prog_cc_wl='-Wl,'
4319
# All AIX code is PIC.
4320
if test "$host_cpu" = ia64; then
4321
# AIX 5 now supports IA64 processor
4322
lt_cv_prog_cc_static='-Bstatic'
4324
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4328
hpux9* | hpux10* | hpux11*)
4329
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4330
lt_cv_prog_cc_wl='-Wl,'
4331
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4332
lt_cv_prog_cc_pic='+Z'
4335
irix5* | irix6* | nonstopux*)
4336
lt_cv_prog_cc_wl='-Wl,'
4337
lt_cv_prog_cc_static='-non_shared'
4338
# PIC (with -KPIC) is the default.
4341
cygwin* | mingw* | pw32* | os2*)
4342
# This hack is so that the source file can tell whether it is being
4343
# built for inclusion in a dll (and should export symbols for example).
4344
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4348
lt_cv_prog_cc_pic='-KPIC'
4349
lt_cv_prog_cc_static='-Bstatic'
4352
osf3* | osf4* | osf5*)
4353
# All OSF/1 code is PIC.
4354
lt_cv_prog_cc_wl='-Wl,'
4355
lt_cv_prog_cc_static='-non_shared'
4359
lt_cv_prog_cc_pic='-Kpic'
4360
lt_cv_prog_cc_static='-dn'
4361
lt_cv_prog_cc_shlib='-belf'
4365
lt_cv_prog_cc_pic='-KPIC'
4366
lt_cv_prog_cc_static='-Bstatic'
4367
lt_cv_prog_cc_wl='-Wl,'
4371
lt_cv_prog_cc_pic='-PIC'
4372
lt_cv_prog_cc_static='-Bstatic'
4373
lt_cv_prog_cc_wl='-Qoption ld '
4376
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4377
lt_cv_prog_cc_pic='-KPIC'
4378
lt_cv_prog_cc_static='-Bstatic'
4379
lt_cv_prog_cc_wl='-Wl,'
4383
lt_cv_prog_cc_pic='-pic'
4384
lt_cv_prog_cc_static='-Bstatic'
4388
if test -d /usr/nec ;then
4389
lt_cv_prog_cc_pic='-Kconform_pic'
4390
lt_cv_prog_cc_static='-Bstatic'
4395
lt_cv_prog_cc_can_build_shared=no
4402
if test -z "$lt_cv_prog_cc_pic"; then
4403
echo "$as_me:$LINENO: result: none" >&5
4404
echo "${ECHO_T}none" >&6
4406
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4407
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4409
# Check to make sure the pic_flag actually works.
4410
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4411
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4412
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4413
echo $ECHO_N "(cached) $ECHO_C" >&6
4415
save_CFLAGS="$CFLAGS"
4416
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4417
cat >conftest.$ac_ext <<_ACEOF
4418
#line $LINENO "configure"
4421
cat confdefs.h >>conftest.$ac_ext
4422
cat >>conftest.$ac_ext <<_ACEOF
4423
/* end confdefs.h. */
4433
rm -f conftest.$ac_objext
4434
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435
(eval $ac_compile) 2>&5
4437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438
(exit $ac_status); } &&
4439
{ ac_try='test -s conftest.$ac_objext'
4440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444
(exit $ac_status); }; }; then
4446
hpux9* | hpux10* | hpux11*)
4447
# On HP-UX, both CC and GCC only warn that PIC is supported... then
4448
# they create non-PIC objects. So, if there were any warnings, we
4449
# assume that PIC is not supported.
4450
if test -s conftest.err; then
4451
lt_cv_prog_cc_pic_works=no
4453
lt_cv_prog_cc_pic_works=yes
4457
lt_cv_prog_cc_pic_works=yes
4462
echo "$as_me: failed program was:" >&5
4463
sed 's/^/| /' conftest.$ac_ext >&5
4465
lt_cv_prog_cc_pic_works=no
4468
rm -f conftest.$ac_objext conftest.$ac_ext
4469
CFLAGS="$save_CFLAGS"
4474
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4476
lt_cv_prog_cc_can_build_shared=no
4478
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4481
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4482
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4485
# Check for any special shared library compilation flags.
4486
if test -n "$lt_cv_prog_cc_shlib"; then
4487
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4488
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4489
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4491
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4492
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4493
lt_cv_prog_cc_can_build_shared=no
4497
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4498
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4499
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4500
echo $ECHO_N "(cached) $ECHO_C" >&6
4502
lt_cv_prog_cc_static_works=no
4503
save_LDFLAGS="$LDFLAGS"
4504
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4505
cat >conftest.$ac_ext <<_ACEOF
4506
#line $LINENO "configure"
4509
cat confdefs.h >>conftest.$ac_ext
4510
cat >>conftest.$ac_ext <<_ACEOF
4511
/* end confdefs.h. */
4521
rm -f conftest.$ac_objext conftest$ac_exeext
4522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523
(eval $ac_link) 2>&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); } &&
4527
{ ac_try='test -s conftest$ac_exeext'
4528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532
(exit $ac_status); }; }; then
4533
lt_cv_prog_cc_static_works=yes
4535
echo "$as_me: failed program was:" >&5
4536
sed 's/^/| /' conftest.$ac_ext >&5
4539
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4540
LDFLAGS="$save_LDFLAGS"
4545
# Belt *and* braces to stop my trousers falling down:
4546
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4547
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4548
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4550
pic_flag="$lt_cv_prog_cc_pic"
4551
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4552
wl="$lt_cv_prog_cc_wl"
4553
link_static_flag="$lt_cv_prog_cc_static"
4554
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4555
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4558
# Check to see if options -o and -c are simultaneously supported by compiler
4559
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4560
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4561
if test "${lt_cv_compiler_c_o+set}" = set; then
4562
echo $ECHO_N "(cached) $ECHO_C" >&6
4565
$rm -r conftest 2>/dev/null
4568
echo "int some_variable = 0;" > conftest.$ac_ext
4570
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4571
# that will create temporary files in the current directory regardless of
4572
# the output directory. Thus, making CWD read-only will cause this test
4573
# to fail, enabling locking or at least warning the user not to do parallel
4576
save_CFLAGS="$CFLAGS"
4577
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4579
if { (eval echo configure:4579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4580
# The compiler can only warn and ignore the option if not recognized
4581
# So say no if there are warnings
4582
if test -s out/conftest.err; then
4583
lt_cv_compiler_c_o=no
4585
lt_cv_compiler_c_o=yes
4588
# Append any errors to the config.log.
4589
cat out/conftest.err 1>&5
4590
lt_cv_compiler_c_o=no
4592
CFLAGS="$save_CFLAGS"
4598
$rm -r conftest 2>/dev/null
4602
compiler_c_o=$lt_cv_compiler_c_o
4603
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4604
echo "${ECHO_T}$compiler_c_o" >&6
4606
if test x"$compiler_c_o" = x"yes"; then
4607
# Check to see if we can write to a .lo
4608
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4609
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4610
if test "${lt_cv_compiler_o_lo+set}" = set; then
4611
echo $ECHO_N "(cached) $ECHO_C" >&6
4614
lt_cv_compiler_o_lo=no
4615
save_CFLAGS="$CFLAGS"
4616
CFLAGS="$CFLAGS -c -o conftest.lo"
4617
save_objext="$ac_objext"
4619
cat >conftest.$ac_ext <<_ACEOF
4620
#line $LINENO "configure"
4623
cat confdefs.h >>conftest.$ac_ext
4624
cat >>conftest.$ac_ext <<_ACEOF
4625
/* end confdefs.h. */
4630
int some_variable = 0;
4635
rm -f conftest.$ac_objext
4636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637
(eval $ac_compile) 2>&5
4639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640
(exit $ac_status); } &&
4641
{ ac_try='test -s conftest.$ac_objext'
4642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646
(exit $ac_status); }; }; then
4647
# The compiler can only warn and ignore the option if not recognized
4648
# So say no if there are warnings
4649
if test -s conftest.err; then
4650
lt_cv_compiler_o_lo=no
4652
lt_cv_compiler_o_lo=yes
4656
echo "$as_me: failed program was:" >&5
4657
sed 's/^/| /' conftest.$ac_ext >&5
4660
rm -f conftest.$ac_objext conftest.$ac_ext
4661
ac_objext="$save_objext"
4662
CFLAGS="$save_CFLAGS"
4666
compiler_o_lo=$lt_cv_compiler_o_lo
4667
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4668
echo "${ECHO_T}$compiler_o_lo" >&6
4673
# Check to see if we can do hard links to lock some files if needed
4674
hard_links="nottested"
4675
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4676
# do not overwrite the value of need_locks provided by the user
4677
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4678
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4681
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4683
ln conftest.a conftest.b 2>&5 || hard_links=no
4684
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4685
echo "$as_me:$LINENO: result: $hard_links" >&5
4686
echo "${ECHO_T}$hard_links" >&6
4687
if test "$hard_links" = no; then
4688
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4689
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4696
if test "$GCC" = yes; then
4697
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4698
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4699
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4700
echo "int some_variable = 0;" > conftest.$ac_ext
4701
save_CFLAGS="$CFLAGS"
4702
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4703
compiler_rtti_exceptions=no
4704
cat >conftest.$ac_ext <<_ACEOF
4705
#line $LINENO "configure"
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h. */
4715
int some_variable = 0;
4720
rm -f conftest.$ac_objext
4721
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722
(eval $ac_compile) 2>&5
4724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725
(exit $ac_status); } &&
4726
{ ac_try='test -s conftest.$ac_objext'
4727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731
(exit $ac_status); }; }; then
4732
# The compiler can only warn and ignore the option if not recognized
4733
# So say no if there are warnings
4734
if test -s conftest.err; then
4735
compiler_rtti_exceptions=no
4737
compiler_rtti_exceptions=yes
4741
echo "$as_me: failed program was:" >&5
4742
sed 's/^/| /' conftest.$ac_ext >&5
4745
rm -f conftest.$ac_objext conftest.$ac_ext
4746
CFLAGS="$save_CFLAGS"
4747
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4748
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4750
if test "$compiler_rtti_exceptions" = "yes"; then
4751
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4753
no_builtin_flag=' -fno-builtin'
4757
# See if the linker supports building shared libraries.
4758
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4759
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4761
allow_undefined_flag=
4763
need_lib_prefix=unknown
4764
need_version=unknown
4765
# when you set need_version to no, make sure it does not cause -set_version
4766
# flags to be left without arguments
4768
archive_expsym_cmds=
4769
old_archive_from_new_cmds=
4770
old_archive_from_expsyms_cmds=
4771
export_dynamic_flag_spec=
4772
whole_archive_flag_spec=
4773
thread_safe_flag_spec=
4774
hardcode_into_libs=no
4775
hardcode_libdir_flag_spec=
4776
hardcode_libdir_separator=
4779
hardcode_shlibpath_var=unsupported
4781
link_all_deplibs=unknown
4782
always_export_symbols=no
4783
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4784
# include_expsyms should be a list of space-separated symbols to be *always*
4785
# included in the symbol list
4787
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4788
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4789
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4790
# as well as any symbol that contains `d'.
4791
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4792
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4793
# platforms (ab)use it in PIC code, but their linkers get confused if
4794
# the symbol is explicitly referenced. Since portable code cannot
4795
# rely on this symbol name, it's probably fine to never include it in
4796
# preloaded symbol tables.
4797
extract_expsyms_cmds=
4800
cygwin* | mingw* | pw32*)
4801
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4802
# When not using gcc, we currently assume that we are using
4803
# Microsoft Visual C++.
4804
if test "$GCC" != yes; then
4814
if test "$with_gnu_ld" = yes; then
4815
# If archive_cmds runs LD, not CC, wlarc should be empty
4818
# See if GNU ld supports shared libraries.
4820
aix3* | aix4* | aix5*)
4821
# On AIX, the GNU linker is very broken
4822
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4826
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4827
*** to be unable to reliably create shared libraries on AIX.
4828
*** Therefore, libtool is disabling shared libraries support. If you
4829
*** really care for shared libraries, you may want to modify your PATH
4830
*** so that a non-GNU linker is found, and then restart.
4836
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)'
4837
hardcode_libdir_flag_spec='-L$libdir'
4838
hardcode_minus_L=yes
4840
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4841
# that the semantics of dynamic libraries on AmigaOS, at least up
4842
# to version 4, is to share data among multiple programs linked
4843
# with the same dynamic library. Since this doesn't match the
4844
# behavior of shared libraries on other platforms, we can use
4850
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4851
allow_undefined_flag=unsupported
4852
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4853
# support --undefined. This deserves some investigation. FIXME
4854
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4860
cygwin* | mingw* | pw32*)
4861
# hardcode_libdir_flag_spec is actually meaningless, as there is
4862
# no search path for DLLs.
4863
hardcode_libdir_flag_spec='-L$libdir'
4864
allow_undefined_flag=unsupported
4865
always_export_symbols=yes
4867
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4868
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4869
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4870
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4871
else $CC -o impgen impgen.c ; fi)~
4872
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4874
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4876
# cygwin and mingw dlls have different entry points and sets of symbols
4878
# FIXME: what about values for MSVC?
4879
dll_entry=__cygwin_dll_entry@12
4880
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4884
dll_entry=_DllMainCRTStartup@12
4885
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4889
# mingw and cygwin differ, and it's simplest to just exclude the union
4890
# of the two symbol sets.
4891
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4893
# recent cygwin and mingw systems supply a stub DllMain which the user
4894
# can override, but on older systems we have to supply one (in ltdll.c)
4895
if test "x$lt_cv_need_dllmain" = "xyes"; then
4896
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4897
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~
4898
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4904
# Extract the symbol export list from an `--export-all' def file,
4905
# then regenerate the def file from the symbol export list, so that
4906
# the compiled dll only exports the symbol export list.
4907
# Be careful not to strip the DATA tag left be newer dlltools.
4908
export_symbols_cmds="$ltdll_cmds"'
4909
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4910
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4912
# If the export-symbols file already is a .def file (1st line
4913
# is EXPORTS), use it as is.
4914
# If DATA tags from a recent dlltool are present, honour them!
4915
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4916
cp $export_symbols $output_objdir/$soname-def;
4918
echo EXPORTS > $output_objdir/$soname-def;
4920
cat $export_symbols | while read symbol; do
4923
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4924
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4925
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4927
_lt_hint=`expr 1 + \$_lt_hint`;
4931
$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~
4932
$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~
4933
$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~
4934
$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~
4935
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4939
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4940
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4943
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4944
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4949
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4953
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4954
*** create shared libraries on Solaris systems. Therefore, libtool
4955
*** is disabling shared libraries support. We urge you to upgrade GNU
4956
*** binutils to release 2.9.1 or newer. Another option is to modify
4957
*** your PATH or compiler configuration so that the native linker is
4958
*** used, and then restart.
4961
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4962
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4963
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4970
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4973
hardcode_shlibpath_var=no
4977
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4978
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4979
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4986
if test "$ld_shlibs" = yes; then
4987
runpath_var=LD_RUN_PATH
4988
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4989
export_dynamic_flag_spec='${wl}--export-dynamic'
4991
cygwin* | mingw* | pw32*)
4992
# dlltool doesn't understand --whole-archive et. al.
4993
whole_archive_flag_spec=
4996
# ancient GNU ld didn't support --whole-archive et. al.
4997
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4998
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5000
whole_archive_flag_spec=
5006
# PORTME fill in a description of your system's linker (not GNU ld)
5009
allow_undefined_flag=unsupported
5010
always_export_symbols=yes
5011
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'
5012
# Note: this linker hardcodes the directories in LIBPATH if there
5013
# are no directories specified by -L.
5014
hardcode_minus_L=yes
5015
if test "$GCC" = yes && test -z "$link_static_flag"; then
5016
# Neither direct hardcoding nor static linking is supported with a
5018
hardcode_direct=unsupported
5023
if test "$host_cpu" = ia64; then
5024
# On IA64, the linker does run time linking by default, so we don't
5025
# have to do anything special.
5026
aix_use_runtimelinking=no
5027
exp_sym_flag='-Bexport'
5030
aix_use_runtimelinking=no
5032
# Test if we are trying to use run time linking or normal
5033
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5034
# need to do runtime linking.
5035
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5036
for ld_flag in $LDFLAGS; do
5039
aix_use_runtimelinking=yes
5046
exp_sym_flag='-bexport'
5047
no_entry_flag='-bnoentry'
5050
# When large executables or shared objects are built, AIX ld can
5051
# have problems creating the table of contents. If linking a library
5052
# or program results in "error TOC overflow" add -mminimal-toc to
5053
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5054
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5058
hardcode_libdir_separator=':'
5059
if test "$GCC" = yes; then
5060
case $host_os in aix4.[012]|aix4.[012].*)
5061
collect2name=`${CC} -print-prog-name=collect2`
5062
if test -f "$collect2name" && \
5063
strings "$collect2name" | grep resolve_lib_name >/dev/null
5065
# We have reworked collect2
5068
# We have old collect2
5069
hardcode_direct=unsupported
5070
# It fails to find uninstalled libraries when the uninstalled
5071
# path is not listed in the libpath. Setting hardcode_minus_L
5072
# to unsupported forces relinking
5073
hardcode_minus_L=yes
5074
hardcode_libdir_flag_spec='-L$libdir'
5075
hardcode_libdir_separator=
5079
shared_flag='-shared'
5082
if test "$host_cpu" = ia64; then
5083
shared_flag='${wl}-G'
5085
if test "$aix_use_runtimelinking" = yes; then
5086
shared_flag='${wl}-G'
5088
shared_flag='${wl}-bM:SRE'
5093
# It seems that -bexpall can do strange things, so it is better to
5094
# generate a list of symbols to export.
5095
always_export_symbols=yes
5096
if test "$aix_use_runtimelinking" = yes; then
5097
# Warning - without using the other runtime loading flags (-brtl),
5098
# -berok will link without error, but may produce a broken library.
5099
allow_undefined_flag='-berok'
5100
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5101
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"
5103
if test "$host_cpu" = ia64; then
5104
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5105
allow_undefined_flag="-z nodefs"
5106
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"
5108
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5109
# Warning - without using the other run time loading flags,
5110
# -berok will link without error, but may produce a broken library.
5111
allow_undefined_flag='${wl}-berok'
5112
# This is a bit strange, but is similar to how AIX traditionally builds
5113
# it's shared libraries.
5114
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'
5120
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)'
5121
hardcode_libdir_flag_spec='-L$libdir'
5122
hardcode_minus_L=yes
5123
# see comment about different semantics on the GNU ld section
5127
cygwin* | mingw* | pw32*)
5128
# When not using gcc, we currently assume that we are using
5129
# Microsoft Visual C++.
5130
# hardcode_libdir_flag_spec is actually meaningless, as there is
5131
# no search path for DLLs.
5132
hardcode_libdir_flag_spec=' '
5133
allow_undefined_flag=unsupported
5134
# Tell ltmain to make .lib files, not .a files.
5136
# FIXME: Setting linknames here is a bad hack.
5137
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5138
# The linker will automatically build a .lib file if we build a DLL.
5139
old_archive_from_new_cmds='true'
5140
# FIXME: Should let the user specify the lib program.
5141
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5142
fix_srcfile_path='`cygpath -w "$srcfile"`'
5145
darwin* | rhapsody*)
5147
rhapsody* | darwin1.[012])
5148
allow_undefined_flag='-undefined suppress'
5151
allow_undefined_flag='-flat_namespace -undefined suppress'
5154
# FIXME: Relying on posixy $() will cause problems for
5155
# cross-compilation, but unfortunately the echo tests do not
5156
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
5157
# `"' quotes if we put them in here... so don't!
5158
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)'
5159
# We need to add '_' to the symbols in $export_symbols first
5160
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5162
hardcode_shlibpath_var=no
5163
whole_archive_flag_spec='-all_load $convenience'
5170
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5171
# support. Future versions do this automatically, but an explicit c++rt0.o
5172
# does not break anything, and helps significantly (at the cost of a little
5175
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5176
hardcode_libdir_flag_spec='-R$libdir'
5178
hardcode_shlibpath_var=no
5181
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5183
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5185
hardcode_minus_L=yes
5186
hardcode_shlibpath_var=no
5189
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5191
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5192
hardcode_libdir_flag_spec='-R$libdir'
5194
hardcode_shlibpath_var=no
5197
hpux9* | hpux10* | hpux11*)
5199
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' ;;
5200
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5202
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5203
hardcode_libdir_separator=:
5205
hardcode_minus_L=yes # Not in the search PATH, but as the default
5206
# location of the library.
5207
export_dynamic_flag_spec='${wl}-E'
5210
irix5* | irix6* | nonstopux*)
5211
if test "$GCC" = yes; then
5212
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'
5213
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5215
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'
5216
hardcode_libdir_flag_spec='-rpath $libdir'
5218
hardcode_libdir_separator=:
5219
link_all_deplibs=yes
5223
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5224
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5226
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5228
hardcode_libdir_flag_spec='-R$libdir'
5230
hardcode_shlibpath_var=no
5234
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5236
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5237
hardcode_libdir_separator=:
5238
hardcode_shlibpath_var=no
5243
hardcode_shlibpath_var=no
5244
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5245
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5246
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5247
export_dynamic_flag_spec='${wl}-E'
5250
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5251
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5252
hardcode_libdir_flag_spec='-R$libdir'
5255
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5256
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5263
hardcode_libdir_flag_spec='-L$libdir'
5264
hardcode_minus_L=yes
5265
allow_undefined_flag=unsupported
5266
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'
5267
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5271
if test "$GCC" = yes; then
5272
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5273
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'
5275
allow_undefined_flag=' -expect_unresolved \*'
5276
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'
5278
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5279
hardcode_libdir_separator=:
5282
osf4* | osf5*) # as osf3* with the addition of -msym flag
5283
if test "$GCC" = yes; then
5284
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5285
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'
5286
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5288
allow_undefined_flag=' -expect_unresolved \*'
5289
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'
5290
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5291
$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'
5293
#Both c and cxx compiler support -rpath directly
5294
hardcode_libdir_flag_spec='-rpath $libdir'
5296
hardcode_libdir_separator=:
5300
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5301
hardcode_shlibpath_var=no
5302
runpath_var=LD_RUN_PATH
5303
hardcode_runpath_var=yes
5304
export_dynamic_flag_spec='${wl}-Bexport'
5308
# gcc --version < 3.0 without binutils cannot create self contained
5309
# shared libraries reliably, requiring libgcc.a to resolve some of
5310
# the object symbols generated in some cases. Libraries that use
5311
# assert need libgcc.a to resolve __eprintf, for example. Linking
5312
# a copy of libgcc.a into every shared library to guarantee resolving
5313
# such symbols causes other problems: According to Tim Van Holder
5314
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5315
# (to the application) exception stack for one thing.
5316
no_undefined_flag=' -z defs'
5317
if test "$GCC" = yes; then
5318
case `$CC --version 2>/dev/null` in
5322
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5323
*** create self contained shared libraries on Solaris systems, without
5324
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5325
*** -no-undefined support, which will at least allow you to build shared
5326
*** libraries. However, you may find that when you link such libraries
5327
*** into an application without using GCC, you have to manually add
5328
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5329
*** upgrade to a newer version of GCC. Another option is to rebuild your
5330
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5337
# $CC -shared without GNU ld will not create a library from C++
5338
# object files and a static libstdc++, better avoid it by now
5339
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5340
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5341
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5342
hardcode_libdir_flag_spec='-R$libdir'
5343
hardcode_shlibpath_var=no
5345
solaris2.[0-5] | solaris2.[0-5].*) ;;
5346
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5347
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5349
link_all_deplibs=yes
5353
if test "x$host_vendor" = xsequent; then
5354
# Use $CC to link under sequent, because it throws in some extra .o
5355
# files that make .init and .fini sections work.
5356
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5358
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5360
hardcode_libdir_flag_spec='-L$libdir'
5362
hardcode_minus_L=yes
5363
hardcode_shlibpath_var=no
5367
case $host_vendor in
5369
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5370
hardcode_direct=yes # is this really true???
5373
## LD is ld it makes a PLAMLIB
5374
## CC just makes a GrossModule.
5375
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5376
reload_cmds='$CC -r -o $output$reload_objs'
5380
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5381
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5384
runpath_var='LD_RUN_PATH'
5385
hardcode_shlibpath_var=no
5389
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5390
hardcode_shlibpath_var=no
5391
export_dynamic_flag_spec='-Bexport'
5395
no_undefined_flag=' -z text'
5396
# $CC -shared without GNU ld will not create a library from C++
5397
# object files and a static libstdc++, better avoid it by now
5398
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5399
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5400
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5401
hardcode_libdir_flag_spec=
5402
hardcode_shlibpath_var=no
5403
runpath_var='LD_RUN_PATH'
5407
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5408
hardcode_libdir_flag_spec='-L$libdir'
5409
hardcode_shlibpath_var=no
5413
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5414
hardcode_libdir_flag_spec='-L$libdir'
5415
hardcode_shlibpath_var=no
5419
if test -d /usr/nec; then
5420
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5421
hardcode_shlibpath_var=no
5422
runpath_var=LD_RUN_PATH
5423
hardcode_runpath_var=yes
5429
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5432
hardcode_shlibpath_var=no
5433
hardcode_runpath_var=yes
5434
runpath_var=LD_RUN_PATH
5437
sysv5uw7* | unixware7*)
5438
no_undefined_flag='${wl}-z ${wl}text'
5439
if test "$GCC" = yes; then
5440
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5442
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5444
runpath_var='LD_RUN_PATH'
5445
hardcode_shlibpath_var=no
5453
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5454
echo "${ECHO_T}$ld_shlibs" >&6
5455
test "$ld_shlibs" = no && can_build_shared=no
5457
# Check hardcoding attributes.
5458
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5459
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5461
if test -n "$hardcode_libdir_flag_spec" || \
5462
test -n "$runpath_var"; then
5464
# We can hardcode non-existant directories.
5465
if test "$hardcode_direct" != no &&
5466
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5467
# have to relink, otherwise we might link with an installed library
5468
# when we should be linking with a yet-to-be-installed one
5469
## test "$hardcode_shlibpath_var" != no &&
5470
test "$hardcode_minus_L" != no; then
5471
# Linking always hardcodes the temporary library directory.
5472
hardcode_action=relink
5474
# We can link without hardcoding, and we can hardcode nonexisting dirs.
5475
hardcode_action=immediate
5478
# We cannot hardcode anything, or else we can only hardcode existing
5480
hardcode_action=unsupported
5482
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5483
echo "${ECHO_T}$hardcode_action" >&6
5487
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5488
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5489
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5490
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5491
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5492
echo "$as_me:$LINENO: result: yes" >&5
5493
echo "${ECHO_T}yes" >&6
5495
echo "$as_me:$LINENO: result: no" >&5
5496
echo "${ECHO_T}no" >&6
5499
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5500
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5502
# PORTME Fill in your ld.so characteristics
5503
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5504
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5506
libname_spec='lib$name'
5513
shlibpath_overrides_runpath=unknown
5515
dynamic_linker="$host_os ld.so"
5516
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5517
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5522
library_names_spec='${libname}${release}.so$versuffix $libname.a'
5523
shlibpath_var=LIBPATH
5525
# AIX has no versioning support, so we append a major version to the name.
5526
soname_spec='${libname}${release}.so$major'
5533
hardcode_into_libs=yes
5534
if test "$host_cpu" = ia64; then
5535
# AIX 5 supports IA64
5536
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5537
shlibpath_var=LD_LIBRARY_PATH
5539
# With GCC up to 2.95.x, collect2 would create an import file
5540
# for dependence libraries. The import file would start with
5541
# the line `#! .'. This would cause the generated library to
5542
# depend on `.', always an invalid library. This was fixed in
5543
# development snapshots of GCC prior to 3.0.
5545
aix4 | aix4.[01] | aix4.[01].*)
5546
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5548
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5555
# AIX (on Power*) has no versioning support, so currently we can
5556
# not hardcode correct soname into executable. Probably we can
5557
# add versioning support to collect2, so additional links can
5558
# be useful in future.
5559
if test "$aix_use_runtimelinking" = yes; then
5560
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
5561
# instead of lib<name>.a to let people know that these are not
5562
# typical AIX shared libraries.
5563
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5565
# We preserve .a as extension for shared libraries through AIX4.2
5566
# and later when we are not doing run time linking.
5567
library_names_spec='${libname}${release}.a $libname.a'
5568
soname_spec='${libname}${release}.so$major'
5570
shlibpath_var=LIBPATH
5572
hardcode_into_libs=yes
5576
library_names_spec='$libname.ixlibrary $libname.a'
5577
# Create ${libname}_ixlibrary.a entries in /sys/libs.
5578
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'
5582
library_names_spec='${libname}.so'
5583
dynamic_linker="$host_os ld.so"
5584
shlibpath_var=LIBRARY_PATH
5590
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5591
soname_spec='${libname}${release}.so$major'
5592
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5593
shlibpath_var=LD_LIBRARY_PATH
5594
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5595
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5596
export_dynamic_flag_spec=-rdynamic
5597
# the default ld.so.conf also contains /usr/contrib/lib and
5598
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5599
# libtool to hard-code these into programs
5602
cygwin* | mingw* | pw32*)
5603
version_type=windows
5606
case $GCC,$host_os in
5608
library_names_spec='$libname.dll.a'
5609
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5610
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5611
dldir=$destdir/`dirname \$dlpath`~
5612
test -d \$dldir || mkdir -p \$dldir~
5613
$install_prog .libs/$dlname \$dldir/$dlname'
5614
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5615
dlpath=$dir/\$dldll~
5619
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5620
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5623
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5626
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5629
dynamic_linker='Win32 ld.exe'
5630
# FIXME: first we should search . and the directory the executable is in
5634
darwin* | rhapsody*)
5635
dynamic_linker="$host_os dyld"
5639
# FIXME: Relying on posixy $() will cause problems for
5640
# cross-compilation, but unfortunately the echo tests do not
5641
# yet detect zsh echo's removal of \ escapes.
5642
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)'
5643
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5644
shlibpath_overrides_runpath=yes
5645
shlibpath_var=DYLD_LIBRARY_PATH
5653
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5654
version_type=freebsd-$objformat
5655
case $version_type in
5657
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5662
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5666
shlibpath_var=LD_LIBRARY_PATH
5669
shlibpath_overrides_runpath=yes
5672
shlibpath_overrides_runpath=no
5673
hardcode_into_libs=yes
5682
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5683
soname_spec='${libname}${release}.so$major'
5684
shlibpath_var=LD_LIBRARY_PATH
5685
hardcode_into_libs=yes
5688
hpux9* | hpux10* | hpux11*)
5689
# Give a soname corresponding to the major version so that dld.sl refuses to
5690
# link against other versions.
5691
dynamic_linker="$host_os dld.sl"
5695
shlibpath_var=SHLIB_PATH
5696
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5697
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5698
soname_spec='${libname}${release}.sl$major'
5699
# HP-UX runs *really* slowly unless shared libraries are mode 555.
5700
postinstall_cmds='chmod 555 $lib'
5703
irix5* | irix6* | nonstopux*)
5705
nonstopux*) version_type=nonstopux ;;
5706
*) version_type=irix ;;
5710
soname_spec='${libname}${release}.so$major'
5711
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5713
irix5* | nonstopux*)
5717
case $LD in # libtool.m4 will add one of these switches to LD
5718
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5719
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5720
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5721
*) libsuff= shlibsuff= libmagic=never-match;;
5725
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5726
shlibpath_overrides_runpath=no
5727
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5728
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5731
# No shared lib support for Linux oldld, aout, or coff.
5732
linux*oldld* | linux*aout* | linux*coff*)
5736
# This must be Linux ELF.
5741
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5742
soname_spec='${libname}${release}.so$major'
5743
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5744
shlibpath_var=LD_LIBRARY_PATH
5745
shlibpath_overrides_runpath=no
5746
# This implies no fast_install, which is unacceptable.
5747
# Some rework will be needed to allow for fast_install
5748
# before this can be enabled.
5749
hardcode_into_libs=yes
5751
case $host_cpu:$lt_cv_cc_64bit_output in
5752
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
5753
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
5754
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
5758
# We used to test for /lib/ld.so.1 and disable shared libraries on
5759
# powerpc, because MkLinux only supported shared libraries with the
5760
# GNU dynamic linker. Since this was broken with cross compilers,
5761
# most powerpc-linux boxes support dynamic linking these days and
5762
# people can always --disable-shared, the test was removed, and we
5763
# assume the GNU/Linux dynamic linker is in use.
5764
dynamic_linker='GNU/Linux ld.so'
5771
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5772
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5773
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5774
dynamic_linker='NetBSD (a.out) ld.so'
5776
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5777
soname_spec='${libname}${release}.so$major'
5778
dynamic_linker='NetBSD ld.elf_so'
5780
shlibpath_var=LD_LIBRARY_PATH
5781
shlibpath_overrides_runpath=yes
5782
hardcode_into_libs=yes
5787
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5788
shlibpath_var=LD_LIBRARY_PATH
5789
shlibpath_overrides_runpath=yes
5796
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5798
openbsd2.[89] | openbsd2.[89].*)
5799
shlibpath_overrides_runpath=no
5802
shlibpath_overrides_runpath=yes
5806
shlibpath_overrides_runpath=yes
5808
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5809
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5810
shlibpath_var=LD_LIBRARY_PATH
5814
libname_spec='$name'
5816
library_names_spec='$libname.dll $libname.a'
5817
dynamic_linker='OS/2 ld.exe'
5818
shlibpath_var=LIBPATH
5821
osf3* | osf4* | osf5*)
5824
soname_spec='${libname}${release}.so$major'
5825
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5826
shlibpath_var=LD_LIBRARY_PATH
5827
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5828
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5829
hardcode_into_libs=yes
5834
soname_spec='${libname}${release}.so$major'
5835
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5836
shlibpath_var=LD_LIBRARY_PATH
5843
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5844
soname_spec='${libname}${release}.so$major'
5845
shlibpath_var=LD_LIBRARY_PATH
5846
shlibpath_overrides_runpath=yes
5847
hardcode_into_libs=yes
5848
# ldd complains unless libraries are executable
5849
postinstall_cmds='chmod +x $lib'
5854
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5855
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5856
shlibpath_var=LD_LIBRARY_PATH
5857
shlibpath_overrides_runpath=yes
5858
if test "$with_gnu_ld" = yes; then
5864
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5866
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5867
soname_spec='${libname}${release}.so$major'
5868
shlibpath_var=LD_LIBRARY_PATH
5869
case $host_vendor in
5871
shlibpath_overrides_runpath=no
5873
export_dynamic_flag_spec='${wl}-Blargedynsym'
5874
runpath_var=LD_RUN_PATH
5882
shlibpath_overrides_runpath=no
5883
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5890
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5891
soname_spec='${libname}${release}.so$major'
5892
shlibpath_var=LD_LIBRARY_PATH
5899
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5900
soname_spec='${libname}${release}.so$major'
5901
shlibpath_var=LD_LIBRARY_PATH
5905
if test -d /usr/nec ;then
5907
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5908
soname_spec='$libname.so.$major'
5909
shlibpath_var=LD_LIBRARY_PATH
5917
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5918
echo "${ECHO_T}$dynamic_linker" >&6
5919
test "$dynamic_linker" = no && can_build_shared=no
5921
# Report the final consequences.
5922
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5923
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5924
echo "$as_me:$LINENO: result: $can_build_shared" >&5
5925
echo "${ECHO_T}$can_build_shared" >&6
5927
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5928
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5929
test "$can_build_shared" = "no" && enable_shared=no
5931
# On AIX, shared libraries and static libraries use the same namespace, and
5932
# are all built from PIC.
5935
test "$enable_shared" = yes && enable_static=no
5936
if test -n "$RANLIB"; then
5937
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5938
postinstall_cmds='$RANLIB $lib'
5943
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5944
test "$enable_shared" = yes && enable_static=no
5948
echo "$as_me:$LINENO: result: $enable_shared" >&5
5949
echo "${ECHO_T}$enable_shared" >&6
5951
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5952
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5953
# Make sure either enable_shared or enable_static is yes.
5954
test "$enable_shared" = yes || enable_static=yes
5955
echo "$as_me:$LINENO: result: $enable_static" >&5
5956
echo "${ECHO_T}$enable_static" >&6
5958
if test "$hardcode_action" = relink; then
5959
# Fast installation is not supported
5960
enable_fast_install=no
5961
elif test "$shlibpath_overrides_runpath" = yes ||
5962
test "$enable_shared" = no; then
5963
# Fast installation is not necessary
5964
enable_fast_install=needless
5967
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5968
if test "$GCC" = yes; then
5969
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5972
if test "x$enable_dlopen" != xyes; then
5973
enable_dlopen=unknown
5974
enable_dlopen_self=unknown
5975
enable_dlopen_self_static=unknown
5982
lt_cv_dlopen="load_add_on"
5984
lt_cv_dlopen_self=yes
5987
cygwin* | mingw* | pw32*)
5988
lt_cv_dlopen="LoadLibrary"
5993
echo "$as_me:$LINENO: checking for shl_load" >&5
5994
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5995
if test "${ac_cv_func_shl_load+set}" = set; then
5996
echo $ECHO_N "(cached) $ECHO_C" >&6
5998
cat >conftest.$ac_ext <<_ACEOF
5999
#line $LINENO "configure"
6002
cat confdefs.h >>conftest.$ac_ext
6003
cat >>conftest.$ac_ext <<_ACEOF
6004
/* end confdefs.h. */
6005
/* System header to define __stub macros and hopefully few prototypes,
6006
which can conflict with char shl_load (); below.
6007
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008
<limits.h> exists even on freestanding compilers. */
6010
# include <limits.h>
6012
# include <assert.h>
6014
/* Override any gcc2 internal prototype to avoid an error. */
6019
/* We use char because int might match the return type of a gcc2
6020
builtin and then its argument prototype would still apply. */
6022
/* The GNU C library defines this for functions which it implements
6023
to always fail with ENOSYS. Some functions are actually named
6024
something starting with __ and the normal name is an alias. */
6025
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6028
char (*f) () = shl_load;
6037
return f != shl_load;
6042
rm -f conftest.$ac_objext conftest$ac_exeext
6043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044
(eval $ac_link) 2>&5
6046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047
(exit $ac_status); } &&
6048
{ ac_try='test -s conftest$ac_exeext'
6049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053
(exit $ac_status); }; }; then
6054
ac_cv_func_shl_load=yes
6056
echo "$as_me: failed program was:" >&5
6057
sed 's/^/| /' conftest.$ac_ext >&5
6059
ac_cv_func_shl_load=no
6061
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6063
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6064
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6065
if test $ac_cv_func_shl_load = yes; then
6066
lt_cv_dlopen="shl_load"
6068
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6069
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6070
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6071
echo $ECHO_N "(cached) $ECHO_C" >&6
6073
ac_check_lib_save_LIBS=$LIBS
6075
cat >conftest.$ac_ext <<_ACEOF
6076
#line $LINENO "configure"
6079
cat confdefs.h >>conftest.$ac_ext
6080
cat >>conftest.$ac_ext <<_ACEOF
6081
/* end confdefs.h. */
6083
/* Override any gcc2 internal prototype to avoid an error. */
6087
/* We use char because int might match the return type of a gcc2
6088
builtin and then its argument prototype would still apply. */
6098
rm -f conftest.$ac_objext conftest$ac_exeext
6099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100
(eval $ac_link) 2>&5
6102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103
(exit $ac_status); } &&
6104
{ ac_try='test -s conftest$ac_exeext'
6105
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109
(exit $ac_status); }; }; then
6110
ac_cv_lib_dld_shl_load=yes
6112
echo "$as_me: failed program was:" >&5
6113
sed 's/^/| /' conftest.$ac_ext >&5
6115
ac_cv_lib_dld_shl_load=no
6117
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6118
LIBS=$ac_check_lib_save_LIBS
6120
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6121
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6122
if test $ac_cv_lib_dld_shl_load = yes; then
6123
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6125
echo "$as_me:$LINENO: checking for dlopen" >&5
6126
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6127
if test "${ac_cv_func_dlopen+set}" = set; then
6128
echo $ECHO_N "(cached) $ECHO_C" >&6
6130
cat >conftest.$ac_ext <<_ACEOF
6131
#line $LINENO "configure"
6134
cat confdefs.h >>conftest.$ac_ext
6135
cat >>conftest.$ac_ext <<_ACEOF
6136
/* end confdefs.h. */
6137
/* System header to define __stub macros and hopefully few prototypes,
6138
which can conflict with char dlopen (); below.
6139
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140
<limits.h> exists even on freestanding compilers. */
6142
# include <limits.h>
6144
# include <assert.h>
6146
/* Override any gcc2 internal prototype to avoid an error. */
6151
/* We use char because int might match the return type of a gcc2
6152
builtin and then its argument prototype would still apply. */
6154
/* The GNU C library defines this for functions which it implements
6155
to always fail with ENOSYS. Some functions are actually named
6156
something starting with __ and the normal name is an alias. */
6157
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6160
char (*f) () = dlopen;
6174
rm -f conftest.$ac_objext conftest$ac_exeext
6175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176
(eval $ac_link) 2>&5
6178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179
(exit $ac_status); } &&
6180
{ ac_try='test -s conftest$ac_exeext'
6181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185
(exit $ac_status); }; }; then
6186
ac_cv_func_dlopen=yes
6188
echo "$as_me: failed program was:" >&5
6189
sed 's/^/| /' conftest.$ac_ext >&5
6191
ac_cv_func_dlopen=no
6193
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6195
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6196
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6197
if test $ac_cv_func_dlopen = yes; then
6198
lt_cv_dlopen="dlopen"
6200
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6203
echo $ECHO_N "(cached) $ECHO_C" >&6
6205
ac_check_lib_save_LIBS=$LIBS
6207
cat >conftest.$ac_ext <<_ACEOF
6208
#line $LINENO "configure"
6211
cat confdefs.h >>conftest.$ac_ext
6212
cat >>conftest.$ac_ext <<_ACEOF
6213
/* end confdefs.h. */
6215
/* Override any gcc2 internal prototype to avoid an error. */
6219
/* We use char because int might match the return type of a gcc2
6220
builtin and then its argument prototype would still apply. */
6230
rm -f conftest.$ac_objext conftest$ac_exeext
6231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232
(eval $ac_link) 2>&5
6234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235
(exit $ac_status); } &&
6236
{ ac_try='test -s conftest$ac_exeext'
6237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241
(exit $ac_status); }; }; then
6242
ac_cv_lib_dl_dlopen=yes
6244
echo "$as_me: failed program was:" >&5
6245
sed 's/^/| /' conftest.$ac_ext >&5
6247
ac_cv_lib_dl_dlopen=no
6249
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6250
LIBS=$ac_check_lib_save_LIBS
6252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6254
if test $ac_cv_lib_dl_dlopen = yes; then
6255
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6257
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6258
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6259
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6260
echo $ECHO_N "(cached) $ECHO_C" >&6
6262
ac_check_lib_save_LIBS=$LIBS
6264
cat >conftest.$ac_ext <<_ACEOF
6265
#line $LINENO "configure"
6268
cat confdefs.h >>conftest.$ac_ext
6269
cat >>conftest.$ac_ext <<_ACEOF
6270
/* end confdefs.h. */
6272
/* Override any gcc2 internal prototype to avoid an error. */
6276
/* We use char because int might match the return type of a gcc2
6277
builtin and then its argument prototype would still apply. */
6287
rm -f conftest.$ac_objext conftest$ac_exeext
6288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289
(eval $ac_link) 2>&5
6291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
(exit $ac_status); } &&
6293
{ ac_try='test -s conftest$ac_exeext'
6294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298
(exit $ac_status); }; }; then
6299
ac_cv_lib_svld_dlopen=yes
6301
echo "$as_me: failed program was:" >&5
6302
sed 's/^/| /' conftest.$ac_ext >&5
6304
ac_cv_lib_svld_dlopen=no
6306
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6307
LIBS=$ac_check_lib_save_LIBS
6309
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6310
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6311
if test $ac_cv_lib_svld_dlopen = yes; then
6312
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6314
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6315
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6316
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6317
echo $ECHO_N "(cached) $ECHO_C" >&6
6319
ac_check_lib_save_LIBS=$LIBS
6321
cat >conftest.$ac_ext <<_ACEOF
6322
#line $LINENO "configure"
6325
cat confdefs.h >>conftest.$ac_ext
6326
cat >>conftest.$ac_ext <<_ACEOF
6327
/* end confdefs.h. */
6329
/* Override any gcc2 internal prototype to avoid an error. */
6333
/* We use char because int might match the return type of a gcc2
6334
builtin and then its argument prototype would still apply. */
6344
rm -f conftest.$ac_objext conftest$ac_exeext
6345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346
(eval $ac_link) 2>&5
6348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349
(exit $ac_status); } &&
6350
{ ac_try='test -s conftest$ac_exeext'
6351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355
(exit $ac_status); }; }; then
6356
ac_cv_lib_dld_dld_link=yes
6358
echo "$as_me: failed program was:" >&5
6359
sed 's/^/| /' conftest.$ac_ext >&5
6361
ac_cv_lib_dld_dld_link=no
6363
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6364
LIBS=$ac_check_lib_save_LIBS
6366
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6367
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6368
if test $ac_cv_lib_dld_dld_link = yes; then
6369
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6390
if test "x$lt_cv_dlopen" != xno; then
6396
case $lt_cv_dlopen in
6398
save_CPPFLAGS="$CPPFLAGS"
6399
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6401
save_LDFLAGS="$LDFLAGS"
6402
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6405
LIBS="$lt_cv_dlopen_libs $LIBS"
6407
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6408
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6409
if test "${lt_cv_dlopen_self+set}" = set; then
6410
echo $ECHO_N "(cached) $ECHO_C" >&6
6412
if test "$cross_compiling" = yes; then :
6413
lt_cv_dlopen_self=cross
6415
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6416
lt_status=$lt_dlunknown
6417
cat > conftest.$ac_ext <<EOF
6418
#line 6418 "configure"
6419
#include "confdefs.h"
6428
# define LT_DLGLOBAL RTLD_GLOBAL
6431
# define LT_DLGLOBAL DL_GLOBAL
6433
# define LT_DLGLOBAL 0
6437
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6438
find out it does not work in some platform. */
6439
#ifndef LT_DLLAZY_OR_NOW
6441
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6444
# define LT_DLLAZY_OR_NOW DL_LAZY
6447
# define LT_DLLAZY_OR_NOW RTLD_NOW
6450
# define LT_DLLAZY_OR_NOW DL_NOW
6452
# define LT_DLLAZY_OR_NOW 0
6460
extern "C" void exit (int);
6463
void fnord() { int i=42;}
6466
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6467
int status = $lt_dlunknown;
6471
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6472
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6473
/* dlclose (self); */
6479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480
(eval $ac_link) 2>&5
6482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6484
(./conftest; exit; ) 2>/dev/null
6487
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6488
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6489
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6492
# compilation failed
6493
lt_cv_dlopen_self=no
6500
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6501
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6503
if test "x$lt_cv_dlopen_self" = xyes; then
6504
LDFLAGS="$LDFLAGS $link_static_flag"
6505
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6506
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6507
if test "${lt_cv_dlopen_self_static+set}" = set; then
6508
echo $ECHO_N "(cached) $ECHO_C" >&6
6510
if test "$cross_compiling" = yes; then :
6511
lt_cv_dlopen_self_static=cross
6513
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6514
lt_status=$lt_dlunknown
6515
cat > conftest.$ac_ext <<EOF
6516
#line 6516 "configure"
6517
#include "confdefs.h"
6526
# define LT_DLGLOBAL RTLD_GLOBAL
6529
# define LT_DLGLOBAL DL_GLOBAL
6531
# define LT_DLGLOBAL 0
6535
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6536
find out it does not work in some platform. */
6537
#ifndef LT_DLLAZY_OR_NOW
6539
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6542
# define LT_DLLAZY_OR_NOW DL_LAZY
6545
# define LT_DLLAZY_OR_NOW RTLD_NOW
6548
# define LT_DLLAZY_OR_NOW DL_NOW
6550
# define LT_DLLAZY_OR_NOW 0
6558
extern "C" void exit (int);
6561
void fnord() { int i=42;}
6564
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6565
int status = $lt_dlunknown;
6569
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6570
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6571
/* dlclose (self); */
6577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578
(eval $ac_link) 2>&5
6580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6582
(./conftest; exit; ) 2>/dev/null
6585
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6586
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6587
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6590
# compilation failed
6591
lt_cv_dlopen_self_static=no
6598
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6599
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6602
CPPFLAGS="$save_CPPFLAGS"
6603
LDFLAGS="$save_LDFLAGS"
6608
case $lt_cv_dlopen_self in
6609
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6610
*) enable_dlopen_self=unknown ;;
6613
case $lt_cv_dlopen_self_static in
6614
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6615
*) enable_dlopen_self_static=unknown ;;
6620
if test "$enable_shared" = yes && test "$GCC" = yes; then
6621
case $archive_cmds in
6623
# FIXME: we may have to deal with multi-command sequences.
6626
# Test whether the compiler implicitly links with -lc since on some
6627
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6628
# to ld, don't add -lc before -lgcc.
6629
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6630
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6631
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6632
echo $ECHO_N "(cached) $ECHO_C" >&6
6635
echo 'static int dummy;' > conftest.$ac_ext
6637
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638
(eval $ac_compile) 2>&5
6640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641
(exit $ac_status); }; then
6644
libobjs=conftest.$ac_objext
6646
wl=$lt_cv_prog_cc_wl
6652
save_allow_undefined_flag=$allow_undefined_flag
6653
allow_undefined_flag=
6654
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6655
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658
(exit $ac_status); }
6660
lt_cv_archive_cmds_need_lc=no
6662
lt_cv_archive_cmds_need_lc=yes
6664
allow_undefined_flag=$save_allow_undefined_flag
6666
cat conftest.err 1>&5
6670
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6671
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6675
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6677
# The second clause should only fire when bootstrapping the
6678
# libtool distribution, otherwise you forgot to ship ltmain.sh
6679
# with your package, and you will get complaints that there are
6680
# no rules to generate ltmain.sh.
6681
if test -f "$ltmain"; then
6684
# If there is no Makefile yet, we rely on a make rule to execute
6685
# `config.status --recheck' to rerun these tests and create the
6686
# libtool script then.
6687
test -f Makefile && make "$ltmain"
6690
if test -f "$ltmain"; then
6691
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6694
echo creating $ofile
6696
# Now quote all the things that may contain metacharacters while being
6697
# careful not to overquote the AC_SUBSTed values. We take copies of the
6698
# variables and quote the copies for generation of the libtool script.
6699
for var in echo old_CC old_CFLAGS SED \
6700
AR AR_FLAGS CC LD LN_S NM SHELL \
6701
reload_flag reload_cmds wl \
6702
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6703
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6704
library_names_spec soname_spec \
6705
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6706
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6707
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6708
old_striplib striplib file_magic_cmd export_symbols_cmds \
6709
deplibs_check_method allow_undefined_flag no_undefined_flag \
6710
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6711
global_symbol_to_c_name_address \
6712
hardcode_libdir_flag_spec hardcode_libdir_separator \
6713
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6714
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6717
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6718
old_postinstall_cmds | old_postuninstall_cmds | \
6719
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6720
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6721
postinstall_cmds | postuninstall_cmds | \
6722
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6723
# Double-quote double-evaled strings.
6724
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6727
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6732
cat <<__EOF__ > "${ofile}T"
6735
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6736
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6737
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6739
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6740
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6742
# This program is free software; you can redistribute it and/or modify
6743
# it under the terms of the GNU General Public License as published by
6744
# the Free Software Foundation; either version 2 of the License, or
6745
# (at your option) any later version.
6747
# This program is distributed in the hope that it will be useful, but
6748
# WITHOUT ANY WARRANTY; without even the implied warranty of
6749
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6750
# General Public License for more details.
6752
# You should have received a copy of the GNU General Public License
6753
# along with this program; if not, write to the Free Software
6754
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6756
# As a special exception to the GNU General Public License, if you
6757
# distribute this file as part of a program that contains a
6758
# configuration script generated by Autoconf, you may include it under
6759
# the same distribution terms that you use for the rest of that program.
6761
# A sed that does not truncate output.
6764
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6765
Xsed="${SED} -e s/^X//"
6767
# The HP-UX ksh and POSIX shell print the target directory to stdout
6769
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6771
# ### BEGIN LIBTOOL CONFIG
6773
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6775
# Shell to use when invoking shell scripts.
6778
# Whether or not to build shared libraries.
6779
build_libtool_libs=$enable_shared
6781
# Whether or not to build static libraries.
6782
build_old_libs=$enable_static
6784
# Whether or not to add -lc for building shared libraries.
6785
build_libtool_need_lc=$need_lc
6787
# Whether or not to optimize for fast installation.
6788
fast_install=$enable_fast_install
6791
host_alias=$host_alias
6794
# An echo program that does not interpret backslashes.
6799
AR_FLAGS=$lt_AR_FLAGS
6801
# The default C compiler.
6804
# Is the compiler the GNU C compiler?
6807
# The linker used to build libraries.
6810
# Whether we need hard or soft links.
6813
# A BSD-compatible nm program.
6816
# A symbol stripping program
6819
# Used to examine libraries when file_magic_cmd begins "file"
6820
MAGIC_CMD=$MAGIC_CMD
6822
# Used on cygwin: DLL creation program.
6825
# Used on cygwin: object dumper.
6828
# Used on cygwin: assembler.
6831
# The name of the directory that contains temporary libtool files.
6834
# How to create reloadable object files.
6835
reload_flag=$lt_reload_flag
6836
reload_cmds=$lt_reload_cmds
6838
# How to pass a linker flag through the compiler.
6841
# Object file suffix (normally "o").
6844
# Old archive suffix (normally "a").
6847
# Executable file suffix (normally "").
6850
# Additional compiler flags for building library objects.
6851
pic_flag=$lt_pic_flag
6854
# Does compiler simultaneously support -c and -o options?
6855
compiler_c_o=$lt_compiler_c_o
6857
# Can we write directly to a .lo ?
6858
compiler_o_lo=$lt_compiler_o_lo
6860
# Must we lock files when doing compilation ?
6861
need_locks=$lt_need_locks
6863
# Do we need the lib prefix for modules?
6864
need_lib_prefix=$need_lib_prefix
6866
# Do we need a version for libraries?
6867
need_version=$need_version
6869
# Whether dlopen is supported.
6870
dlopen_support=$enable_dlopen
6872
# Whether dlopen of programs is supported.
6873
dlopen_self=$enable_dlopen_self
6875
# Whether dlopen of statically linked programs is supported.
6876
dlopen_self_static=$enable_dlopen_self_static
6878
# Compiler flag to prevent dynamic linking.
6879
link_static_flag=$lt_link_static_flag
6881
# Compiler flag to turn off builtin functions.
6882
no_builtin_flag=$lt_no_builtin_flag
6884
# Compiler flag to allow reflexive dlopens.
6885
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6887
# Compiler flag to generate shared objects directly from archives.
6888
whole_archive_flag_spec=$lt_whole_archive_flag_spec
6890
# Compiler flag to generate thread-safe objects.
6891
thread_safe_flag_spec=$lt_thread_safe_flag_spec
6893
# Library versioning type.
6894
version_type=$version_type
6896
# Format of library name prefix.
6897
libname_spec=$lt_libname_spec
6899
# List of archive names. First name is the real one, the rest are links.
6900
# The last name is the one that the linker finds with -lNAME.
6901
library_names_spec=$lt_library_names_spec
6903
# The coded name of the library, if different from the real name.
6904
soname_spec=$lt_soname_spec
6906
# Commands used to build and install an old-style archive.
6908
old_archive_cmds=$lt_old_archive_cmds
6909
old_postinstall_cmds=$lt_old_postinstall_cmds
6910
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6912
# Create an old-style archive from a shared archive.
6913
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6915
# Create a temporary old-style archive to link instead of a shared archive.
6916
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6918
# Commands used to build and install a shared archive.
6919
archive_cmds=$lt_archive_cmds
6920
archive_expsym_cmds=$lt_archive_expsym_cmds
6921
postinstall_cmds=$lt_postinstall_cmds
6922
postuninstall_cmds=$lt_postuninstall_cmds
6924
# Commands to strip libraries.
6925
old_striplib=$lt_old_striplib
6926
striplib=$lt_striplib
6928
# Method to check whether dependent libraries are shared objects.
6929
deplibs_check_method=$lt_deplibs_check_method
6931
# Command to use when deplibs_check_method == file_magic.
6932
file_magic_cmd=$lt_file_magic_cmd
6934
# Flag that allows shared libraries with undefined symbols to be built.
6935
allow_undefined_flag=$lt_allow_undefined_flag
6937
# Flag that forces no undefined symbols.
6938
no_undefined_flag=$lt_no_undefined_flag
6940
# Commands used to finish a libtool library installation in a directory.
6941
finish_cmds=$lt_finish_cmds
6943
# Same as above, but a single script fragment to be evaled but not shown.
6944
finish_eval=$lt_finish_eval
6946
# Take the output of nm and produce a listing of raw symbols and C names.
6947
global_symbol_pipe=$lt_global_symbol_pipe
6949
# Transform the output of nm in a proper C declaration
6950
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6952
# Transform the output of nm in a C name address pair
6953
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6955
# This is the shared library runtime path variable.
6956
runpath_var=$runpath_var
6958
# This is the shared library path variable.
6959
shlibpath_var=$shlibpath_var
6961
# Is shlibpath searched before the hard-coded library search path?
6962
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6964
# How to hardcode a shared library path into an executable.
6965
hardcode_action=$hardcode_action
6967
# Whether we should hardcode library paths into libraries.
6968
hardcode_into_libs=$hardcode_into_libs
6970
# Flag to hardcode \$libdir into a binary during linking.
6971
# This must work even if \$libdir does not exist.
6972
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6974
# Whether we need a single -rpath flag with a separated argument.
6975
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6977
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6979
hardcode_direct=$hardcode_direct
6981
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6983
hardcode_minus_L=$hardcode_minus_L
6985
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6986
# the resulting binary.
6987
hardcode_shlibpath_var=$hardcode_shlibpath_var
6989
# Variables whose values should be saved in libtool wrapper scripts and
6990
# restored at relink time.
6991
variables_saved_for_relink="$variables_saved_for_relink"
6993
# Whether libtool must link a program against all its dependency libraries.
6994
link_all_deplibs=$link_all_deplibs
6996
# Compile-time system search path for libraries
6997
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6999
# Run-time system search path for libraries
7000
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7002
# Fix the shell variable \$srcfile for the compiler.
7003
fix_srcfile_path="$fix_srcfile_path"
7005
# Set to yes if exported symbols are required.
7006
always_export_symbols=$always_export_symbols
7008
# The commands to list exported symbols.
7009
export_symbols_cmds=$lt_export_symbols_cmds
7011
# The commands to extract the exported symbol list from a shared archive.
7012
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7014
# Symbols that should not be listed in the preloaded symbols.
7015
exclude_expsyms=$lt_exclude_expsyms
7017
# Symbols that must always be exported.
7018
include_expsyms=$lt_include_expsyms
7020
# ### END LIBTOOL CONFIG
7026
cat <<\EOF >> "${ofile}T"
7028
# AIX sometimes has problems with the GCC collect2 program. For some
7029
# reason, if we set the COLLECT_NAMES environment variable, the problems
7030
# vanish in a puff of smoke.
7031
if test "X${COLLECT_NAMES+set}" != Xset; then
7033
export COLLECT_NAMES
7040
cygwin* | mingw* | pw32* | os2*)
7041
cat <<'EOF' >> "${ofile}T"
7042
# This is a source program that is used to create dlls on Windows
7043
# Don't remove nor modify the starting and closing comments
7044
# /* ltdll.c starts here */
7045
# #define WIN32_LEAN_AND_MEAN
7046
# #include <windows.h>
7047
# #undef WIN32_LEAN_AND_MEAN
7048
# #include <stdio.h>
7050
# #ifndef __CYGWIN__
7051
# # ifdef __CYGWIN32__
7052
# # define __CYGWIN__ __CYGWIN32__
7056
# #ifdef __cplusplus
7059
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7060
# #ifdef __cplusplus
7065
# #include <cygwin/cygwin_dll.h>
7066
# DECLARE_CYGWIN_DLL( DllMain );
7068
# HINSTANCE __hDllInstance_base;
7071
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7073
# __hDllInstance_base = hInst;
7076
# /* ltdll.c ends here */
7077
# This is a source program that is used to create import libraries
7078
# on Windows for dlls which lack them. Don't remove nor modify the
7079
# starting and closing comments
7080
# /* impgen.c starts here */
7081
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7083
# This file is part of GNU libtool.
7085
# This program is free software; you can redistribute it and/or modify
7086
# it under the terms of the GNU General Public License as published by
7087
# the Free Software Foundation; either version 2 of the License, or
7088
# (at your option) any later version.
7090
# This program is distributed in the hope that it will be useful,
7091
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7092
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7093
# GNU General Public License for more details.
7095
# You should have received a copy of the GNU General Public License
7096
# along with this program; if not, write to the Free Software
7097
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7100
# #include <stdio.h> /* for printf() */
7101
# #include <unistd.h> /* for open(), lseek(), read() */
7102
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7103
# #include <string.h> /* for strdup() */
7105
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7107
# #define O_BINARY 0
7110
# static unsigned int
7111
# pe_get16 (fd, offset)
7115
# unsigned char b[2];
7116
# lseek (fd, offset, SEEK_SET);
7118
# return b[0] + (b[1]<<8);
7121
# static unsigned int
7122
# pe_get32 (fd, offset)
7126
# unsigned char b[4];
7127
# lseek (fd, offset, SEEK_SET);
7129
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7132
# static unsigned int
7136
# unsigned char *b = ptr;
7137
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7146
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7147
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7148
# unsigned long name_rvas, nexp;
7149
# unsigned char *expdata, *erva;
7150
# char *filename, *dll_name;
7152
# filename = argv[1];
7154
# dll = open(filename, O_RDONLY|O_BINARY);
7158
# dll_name = filename;
7160
# for (i=0; filename[i]; i++)
7161
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7162
# dll_name = filename + i +1;
7164
# pe_header_offset = pe_get32 (dll, 0x3c);
7165
# opthdr_ofs = pe_header_offset + 4 + 20;
7166
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7168
# if (num_entries < 1) /* no exports */
7171
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7172
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7173
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7174
# secptr = (pe_header_offset + 4 + 20 +
7175
# pe_get16 (dll, pe_header_offset + 4 + 16));
7178
# for (i = 0; i < nsections; i++)
7181
# unsigned long secptr1 = secptr + 40 * i;
7182
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7183
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7184
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7185
# lseek(dll, secptr1, SEEK_SET);
7186
# read(dll, sname, 8);
7187
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7189
# expptr = fptr + (export_rva - vaddr);
7190
# if (export_rva + export_size > vaddr + vsize)
7191
# export_size = vsize - (export_rva - vaddr);
7196
# expdata = (unsigned char*)malloc(export_size);
7197
# lseek (dll, expptr, SEEK_SET);
7198
# read (dll, expdata, export_size);
7199
# erva = expdata - export_rva;
7201
# nexp = pe_as32 (expdata+24);
7202
# name_rvas = pe_as32 (expdata+32);
7204
# printf ("EXPORTS\n");
7205
# for (i = 0; i<nexp; i++)
7207
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7208
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7213
# /* impgen.c ends here */
7219
# We use sed instead of cat because bash on DJGPP gets confused if
7220
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7221
# text mode, it properly converts lines to CR/LF. This bash problem
7222
# is reportedly fixed, but why not run on old versions too?
7223
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7225
mv -f "${ofile}T" "$ofile" || \
7226
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7234
# This can be used to rebuild libtool when needed
7235
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7237
# Always use our own libtool.
7238
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7240
# Prevent multiple expansion
7244
echo "$as_me:$LINENO: checking for Win32" >&5
7245
echo $ECHO_N "checking for Win32... $ECHO_C" >&6
7248
SYS_CFLAGS="-DWINDOWS -mms-bitfields"
7255
echo "$as_me:$LINENO: result: $use_windows" >&5
7256
echo "${ECHO_T}$use_windows" >&6
7258
echo "$as_me:$LINENO: checking for GTK+" >&5
7259
echo $ECHO_N "checking for GTK+... $ECHO_C" >&6
7260
if $SHELL -c 'gtk-config --version' >/dev/null 2>/dev/null
7263
GTK_CONFIG="gtk-config"
7265
elif $SHELL -c 'pkg-config gtk+-2.0' >/dev/null 2>/dev/null
7268
GTK_CONFIG="pkg-config gtk+-2.0"
7270
elif $SHELL -c 'pkg-config gtk+-1.3-win32-production' >/dev/null 2>/dev/null
7273
GTK_CONFIG="pkg-config gtk+-1.3-win32-production gthread-2.0"
7274
use_gtk="GTK+ 1.3 for Windows"
7280
echo "$as_me:$LINENO: result: $use_gtk" >&5
7281
echo "${ECHO_T}$use_gtk" >&6
7287
ac_config_files="$ac_config_files Makefile"
7289
cat >confcache <<\_ACEOF
2080
7290
# This file is a shell script that caches the results of configure
2081
7291
# tests run on this system so they can be shared between configure
2082
# scripts and configure runs. It is not useful on other systems.
2083
# If it contains results you don't want to keep, you may remove or edit it.
2085
# By default, configure uses ./config.cache as the cache file,
2086
# creating it if it does not exist already. You can give configure
2087
# the --cache-file=FILE option to use a different cache file; that is
2088
# what configure does when it calls configure scripts in
2089
# subdirectories, so they share the cache.
2090
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2091
# config.status only pays attention to the cache file if you give it the
2092
# --recheck option to rerun configure.
7292
# scripts and configure runs, see configure's option --config-cache.
7293
# It is not useful on other systems. If it contains results you don't
7294
# want to keep, you may remove or edit it.
7296
# config.status only pays attention to the cache file if you give it
7297
# the --recheck option to rerun configure.
7299
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7300
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2095
7305
# The following way of writing the cache mishandles newlines in values,
2096
7306
# but we know of no workaround that is simple, portable, and efficient.
2097
7307
# So, don't put newlines in cache variables' values.
2098
7308
# Ultrix sh set writes to stderr and can't be redirected directly,
2099
7309
# and sets the high bit in the cache file unless we assign to the vars.
2101
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2103
# `set' does not quote correctly, so add quotes (double-quote substitution
2104
# turns \\\\ into \\, and sed turns \\ into \).
2106
-e "s/'/'\\\\''/g" \
2107
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2110
# `set' quotes correctly as required by POSIX, so do not add quotes.
2111
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2114
if cmp -s $cache_file confcache; then
7312
case `(ac_space=' '; set | grep ac_space) 2>&1` in
7314
# `set' does not quote correctly, so add quotes (double-quote
7315
# substitution turns \\\\ into \\, and sed turns \\ into \).
7318
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7321
# `set' quotes correctly as required by POSIX, so do not add quotes.
7323
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7330
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7332
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7334
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2117
7335
if test -w $cache_file; then
2118
echo "updating cache $cache_file"
2119
cat confcache > $cache_file
7336
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7337
cat confcache >$cache_file
2121
7339
echo "not updating unwritable cache $cache_file"
2124
7342
rm -f confcache
2126
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2128
7344
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2129
7345
# Let make expand exec_prefix.
2130
7346
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2132
# Any assignment to VPATH causes Sun make to only execute
2133
# the first set of double-colon rules, so remove it if not needed.
2134
# If there is a colon in the path, we need to keep it.
7348
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7349
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7350
# trailing colons and then remove the whole line if VPATH becomes empty
7351
# (actually we leave an empty line to preserve line numbers).
2135
7352
if test "x$srcdir" = x.; then
2136
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7353
ac_vpsub='/^[ ]*VPATH[ ]*=/{
7354
s/:*\$(srcdir):*/:/;
7355
s/:*\${srcdir}:*/:/;
7357
s/^\([^=]*=[ ]*\):*/\1/;
2139
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2141
7363
# Transform confdefs.h into DEFS.
2142
7364
# Protect against shell expansion while executing Makefile rules.
2143
7365
# Protect against Makefile macro expansion.
2144
cat > conftest.defs <<\EOF
2145
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2146
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2151
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2155
# Without the "./", some shells look in PATH for config.status.
7367
# If the first sed substitution is executed (which looks for macros that
7368
# take arguments), then we branch to the quote section. Otherwise,
7369
# look for a macro that doesn't take arguments.
7370
cat >confdef2opt.sed <<\_ACEOF
7373
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7375
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7379
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7385
# We use echo to avoid assuming a particular line-breaking character.
7386
# The extra dot is to prevent the shell from consuming trailing
7387
# line-breaks from the sub-command output. A line-break within
7388
# single-quotes doesn't work because, if this script is created in a
7389
# platform that uses two characters for line-breaks (e.g., DOS), tr
7391
ac_LF_and_DOT=`echo; echo .`
7392
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7393
rm -f confdef2opt.sed
7398
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7399
# 1. Remove the extension, and $U if already installed.
7400
ac_i=`echo "$ac_i" |
7401
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7403
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7404
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7408
LTLIBOBJS=$ac_ltlibobjs
2156
7412
: ${CONFIG_STATUS=./config.status}
2158
echo creating $CONFIG_STATUS
2159
rm -f $CONFIG_STATUS
2160
cat > $CONFIG_STATUS <<EOF
2162
# Generated automatically by configure.
7413
ac_clean_files_save=$ac_clean_files
7414
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7415
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7416
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7417
cat >$CONFIG_STATUS <<_ACEOF
7419
# Generated by $as_me.
2163
7420
# Run this file to recreate the current configuration.
2164
# This directory was configured as follows,
2165
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2167
# $0 $ac_configure_args
2169
7421
# Compiler output produced by configure, useful for debugging
2170
# configure, is in ./config.log if it exists.
2172
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2175
case "\$ac_option" in
7422
# configure, is in config.log if it exists.
7427
SHELL=\${CONFIG_SHELL-$SHELL}
7430
cat >>$CONFIG_STATUS <<\_ACEOF
7431
## --------------------- ##
7432
## M4sh Initialization. ##
7433
## --------------------- ##
7435
# Be Bourne compatible
7436
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7439
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7440
# is contrary to our usage. Disable this feature.
7441
alias -g '${1+"$@"}'='"$@"'
7442
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7446
# Support unset when possible.
7447
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7454
# Work around bugs in pre-3.0 UWIN ksh.
7455
$as_unset ENV MAIL MAILPATH
7462
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7463
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7464
LC_TELEPHONE LC_TIME
7466
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7467
eval $as_var=C; export $as_var
7473
# Required to use basename.
7474
if expr a : '\(a\)' >/dev/null 2>&1; then
7480
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7481
as_basename=basename
7487
# Name of the executable.
7488
as_me=`$as_basename "$0" ||
7489
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7490
X"$0" : 'X\(//\)$' \| \
7491
X"$0" : 'X\(/\)$' \| \
7492
. : '\(.\)' 2>/dev/null ||
7494
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7495
/^X\/\(\/\/\)$/{ s//\1/; q; }
7496
/^X\/\(\/\).*/{ s//\1/; q; }
7500
# PATH needs CR, and LINENO needs CR and PATH.
7501
# Avoid depending upon Character Ranges.
7502
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7503
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7504
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7505
as_cr_digits='0123456789'
7506
as_cr_alnum=$as_cr_Letters$as_cr_digits
7508
# The user is always right.
7509
if test "${PATH_SEPARATOR+set}" != set; then
7510
echo "#! /bin/sh" >conf$$.sh
7511
echo "exit 0" >>conf$$.sh
7513
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7524
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7525
test "x$as_lineno_1" != "x$as_lineno_2" &&
7526
test "x$as_lineno_3" = "x$as_lineno_2" || {
7527
# Find who we are. Look in the path if we contain no path at all
7530
*[\\/]* ) as_myself=$0 ;;
7531
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535
test -z "$as_dir" && as_dir=.
7536
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7541
# We did not find ourselves, most probably we were run as `sh COMMAND'
7542
# in which case we are not to be found in the path.
7543
if test "x$as_myself" = x; then
7546
if test ! -f "$as_myself"; then
7547
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7548
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7549
{ (exit 1); exit 1; }; }
7551
case $CONFIG_SHELL in
7553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7557
test -z "$as_dir" && as_dir=.
7558
for as_base in sh bash ksh sh5; do
7561
if ("$as_dir/$as_base" -c '
7564
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7565
test "x$as_lineno_1" != "x$as_lineno_2" &&
7566
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7567
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7568
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7569
CONFIG_SHELL=$as_dir/$as_base
7571
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7579
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7580
# uniformly replaced by the line number. The first 'sed' inserts a
7581
# line-number line before each line; the second 'sed' does the real
7582
# work. The second script uses 'N' to pair each line-number line
7583
# with the numbered line, and appends trailing '-' during
7584
# substitution so that $LINENO is not a special case at line end.
7585
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7586
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7587
sed '=' <$as_myself |
7592
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7595
s,^['$as_cr_digits']*\n,,
7597
chmod +x $as_me.lineno ||
7598
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7599
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7600
{ (exit 1); exit 1; }; }
7602
# Don't try to exec as it changes $[0], causing all sort of problems
7603
# (the dirname of $[0] is not the place where we might find the
7604
# original and so on. Autoconf is especially sensible to this).
7606
# Exit status is that of the last command.
7611
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7612
*c*,-n*) ECHO_N= ECHO_C='
7614
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7615
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7618
if expr a : '\(a\)' >/dev/null 2>&1; then
7624
rm -f conf$$ conf$$.exe conf$$.file
7626
if ln -s conf$$.file conf$$ 2>/dev/null; then
7627
# We could just check for DJGPP; but this test a) works b) is more generic
7628
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7629
if test -f conf$$.exe; then
7630
# Don't use ln at all; we don't have any links
7635
elif ln conf$$.file conf$$ 2>/dev/null; then
7640
rm -f conf$$ conf$$.exe conf$$.file
7642
if mkdir -p . 2>/dev/null; then
7648
as_executable_p="test -f"
7650
# Sed expression to map a string onto a valid CPP name.
7651
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7653
# Sed expression to map a string onto a valid variable name.
7654
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7658
# We need space, tab and new line, in precisely that order.
7668
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7669
# report actual input values of CONFIG_FILES etc. instead of their
7670
# values after options handling. Logging --version etc. is OK.
7674
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7675
## Running $as_me. ##
7680
This file was extended by $as_me, which was
7681
generated by GNU Autoconf 2.57. Invocation command line was
7683
CONFIG_FILES = $CONFIG_FILES
7684
CONFIG_HEADERS = $CONFIG_HEADERS
7685
CONFIG_LINKS = $CONFIG_LINKS
7686
CONFIG_COMMANDS = $CONFIG_COMMANDS
7690
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7694
# Files that config.status was made for.
7695
if test -n "$ac_config_files"; then
7696
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7699
if test -n "$ac_config_headers"; then
7700
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7703
if test -n "$ac_config_links"; then
7704
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7707
if test -n "$ac_config_commands"; then
7708
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7711
cat >>$CONFIG_STATUS <<\_ACEOF
7714
\`$as_me' instantiates files from templates according to the
7715
current configuration.
7717
Usage: $0 [OPTIONS] [FILE]...
7719
-h, --help print this help, then exit
7720
-V, --version print version number, then exit
7721
-q, --quiet do not print progress messages
7722
-d, --debug don't remove temporary files
7723
--recheck update $as_me by reconfiguring in the same conditions
7724
--file=FILE[:TEMPLATE]
7725
instantiate the configuration file FILE
7727
Configuration files:
7730
Report bugs to <bug-autoconf@gnu.org>."
7733
cat >>$CONFIG_STATUS <<_ACEOF
7736
configured by $0, generated by GNU Autoconf 2.57,
7737
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7739
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7740
Free Software Foundation, Inc.
7741
This config.status script is free software; the Free Software Foundation
7742
gives unlimited permission to copy, distribute and modify it."
7746
cat >>$CONFIG_STATUS <<\_ACEOF
7747
# If no file are specified by the user, then we need to provide default
7748
# value. By we need to know if files were specified by the user.
7754
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7755
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7763
*) # This is not an option, so the user has probably given explicit
7766
ac_need_defaults=false;;
7770
# Handling of the options.
7772
cat >>$CONFIG_STATUS <<\_ACEOF
2176
7773
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2177
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2178
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2179
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2180
echo "$CONFIG_STATUS generated by autoconf version 2.13"
2182
-help | --help | --hel | --he | --h)
2183
echo "\$ac_cs_usage"; exit 0 ;;
2184
*) echo "\$ac_cs_usage"; exit 1 ;;
2188
ac_given_srcdir=$srcdir
2190
trap 'rm -fr `echo "source/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2192
cat >> $CONFIG_STATUS <<EOF
2194
# Protect against being on the right side of a sed subst in config.status.
2195
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2196
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2200
s%@CFLAGS@%$CFLAGS%g
2201
s%@CPPFLAGS@%$CPPFLAGS%g
2202
s%@CXXFLAGS@%$CXXFLAGS%g
2203
s%@FFLAGS@%$FFLAGS%g
2205
s%@LDFLAGS@%$LDFLAGS%g
2207
s%@exec_prefix@%$exec_prefix%g
2208
s%@prefix@%$prefix%g
2209
s%@program_transform_name@%$program_transform_name%g
2210
s%@bindir@%$bindir%g
2211
s%@sbindir@%$sbindir%g
2212
s%@libexecdir@%$libexecdir%g
2213
s%@datadir@%$datadir%g
2214
s%@sysconfdir@%$sysconfdir%g
2215
s%@sharedstatedir@%$sharedstatedir%g
2216
s%@localstatedir@%$localstatedir%g
2217
s%@libdir@%$libdir%g
2218
s%@includedir@%$includedir%g
2219
s%@oldincludedir@%$oldincludedir%g
2220
s%@infodir@%$infodir%g
2221
s%@mandir@%$mandir%g
2223
s%@host_alias@%$host_alias%g
2224
s%@host_cpu@%$host_cpu%g
2225
s%@host_vendor@%$host_vendor%g
2226
s%@host_os@%$host_os%g
2227
s%@D_HANGUL@%$D_HANGUL%g
2228
s%@HANGUL@%$HANGUL%g
2229
s%@HANGUL_O@%$HANGUL_O%g
2230
s%@TRIES_O@%$TRIES_O%g
2231
s%@OPTIONS@%$OPTIONS%g
2232
s%@VERSION@%$VERSION%g
2233
s%@LINK_SHARED@%$LINK_SHARED%g
2234
s%@SHARED_EXT@%$SHARED_EXT%g
2237
s%@LIBOBJS@%$LIBOBJS%g
7775
--version | --vers* | -V )
7776
echo "$ac_cs_version"; exit 0 ;;
7778
# Conflict between --help and --header
7779
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7780
Try \`$0 --help' for more information." >&5
7781
echo "$as_me: error: ambiguous option: $1
7782
Try \`$0 --help' for more information." >&2;}
7783
{ (exit 1); exit 1; }; };;
7784
--help | --hel | -h )
7785
echo "$ac_cs_usage"; exit 0 ;;
7786
--debug | --d* | -d )
7788
--file | --fil | --fi | --f )
7790
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7791
ac_need_defaults=false;;
7792
--header | --heade | --head | --hea )
7794
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7795
ac_need_defaults=false;;
7796
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7797
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7801
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7802
Try \`$0 --help' for more information." >&5
7803
echo "$as_me: error: unrecognized option: $1
7804
Try \`$0 --help' for more information." >&2;}
7805
{ (exit 1); exit 1; }; } ;;
7807
*) ac_config_targets="$ac_config_targets $1" ;;
7813
ac_configure_extra_args=
7815
if $ac_cs_silent; then
7817
ac_configure_extra_args="$ac_configure_extra_args --silent"
7821
cat >>$CONFIG_STATUS <<_ACEOF
7822
if \$ac_cs_recheck; then
7823
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7824
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7833
cat >>$CONFIG_STATUS <<\_ACEOF
7834
for ac_config_target in $ac_config_targets
7836
case "$ac_config_target" in
7837
# Handling of arguments.
7838
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7839
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7840
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7841
{ (exit 1); exit 1; }; };;
7845
# If the user did not use the arguments to specify the items to instantiate,
7846
# then the envvar interface is used. Set only those that are not.
7847
# We use the long form for the default assignment because of an extremely
7848
# bizarre bug on SunOS 4.1.3.
7849
if $ac_need_defaults; then
7850
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7853
# Have a temporary directory for convenience. Make it in the build tree
7854
# simply because there is no reason to put it here, and in addition,
7855
# creating and moving files from /tmp can sometimes cause problems.
7856
# Create a temporary directory, and hook for its removal unless debugging.
7859
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7860
trap '{ (exit 1); exit 1; }' 1 2 13 15
7863
# Create a (secure) tmp directory for tmp files.
7866
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7867
test -n "$tmp" && test -d "$tmp"
7870
tmp=./confstat$$-$RANDOM
7871
(umask 077 && mkdir $tmp)
7874
echo "$me: cannot create a temporary directory in ." >&2
7875
{ (exit 1); exit 1; }
7880
cat >>$CONFIG_STATUS <<_ACEOF
7883
# CONFIG_FILES section.
7886
# No need to generate the scripts if there are no CONFIG_FILES.
7887
# This happens for instance when ./config.status config.h
7888
if test -n "\$CONFIG_FILES"; then
7889
# Protect against being on the right side of a sed subst in config.status.
7890
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7891
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7892
s,@SHELL@,$SHELL,;t t
7893
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7894
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7895
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7896
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7897
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7898
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7899
s,@exec_prefix@,$exec_prefix,;t t
7900
s,@prefix@,$prefix,;t t
7901
s,@program_transform_name@,$program_transform_name,;t t
7902
s,@bindir@,$bindir,;t t
7903
s,@sbindir@,$sbindir,;t t
7904
s,@libexecdir@,$libexecdir,;t t
7905
s,@datadir@,$datadir,;t t
7906
s,@sysconfdir@,$sysconfdir,;t t
7907
s,@sharedstatedir@,$sharedstatedir,;t t
7908
s,@localstatedir@,$localstatedir,;t t
7909
s,@libdir@,$libdir,;t t
7910
s,@includedir@,$includedir,;t t
7911
s,@oldincludedir@,$oldincludedir,;t t
7912
s,@infodir@,$infodir,;t t
7913
s,@mandir@,$mandir,;t t
7914
s,@build_alias@,$build_alias,;t t
7915
s,@host_alias@,$host_alias,;t t
7916
s,@target_alias@,$target_alias,;t t
7918
s,@ECHO_C@,$ECHO_C,;t t
7919
s,@ECHO_N@,$ECHO_N,;t t
7920
s,@ECHO_T@,$ECHO_T,;t t
7923
s,@CFLAGS@,$CFLAGS,;t t
7924
s,@LDFLAGS@,$LDFLAGS,;t t
7925
s,@CPPFLAGS@,$CPPFLAGS,;t t
7926
s,@ac_ct_CC@,$ac_ct_CC,;t t
7927
s,@EXEEXT@,$EXEEXT,;t t
7928
s,@OBJEXT@,$OBJEXT,;t t
7929
s,@build@,$build,;t t
7930
s,@build_cpu@,$build_cpu,;t t
7931
s,@build_vendor@,$build_vendor,;t t
7932
s,@build_os@,$build_os,;t t
7934
s,@host_cpu@,$host_cpu,;t t
7935
s,@host_vendor@,$host_vendor,;t t
7936
s,@host_os@,$host_os,;t t
7939
s,@RANLIB@,$RANLIB,;t t
7940
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7941
s,@STRIP@,$STRIP,;t t
7942
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7944
s,@EGREP@,$EGREP,;t t
7945
s,@LIBTOOL@,$LIBTOOL,;t t
7946
s,@GCCFLAGS@,$GCCFLAGS,;t t
7947
s,@MALSHOW@,$MALSHOW,;t t
7948
s,@GTK_CONFIG@,$GTK_CONFIG,;t t
7949
s,@SYS_CFLAGS@,$SYS_CFLAGS,;t t
7950
s,@LIBOBJS@,$LIBOBJS,;t t
7951
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2242
cat >> $CONFIG_STATUS <<\EOF
2244
# Split the substitutions into bite-sized pieces for seds with
2245
# small command number limits, like on Digital OSF/1 and HP-UX.
2246
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2247
ac_file=1 # Number of current file.
2248
ac_beg=1 # First line for current file.
2249
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2252
while $ac_more_lines; do
2253
if test $ac_beg -gt 1; then
2254
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2256
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2258
if test ! -s conftest.s$ac_file; then
2260
rm -f conftest.s$ac_file
2262
if test -z "$ac_sed_cmds"; then
2263
ac_sed_cmds="sed -f conftest.s$ac_file"
2265
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2267
ac_file=`expr $ac_file + 1`
2269
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2272
if test -z "$ac_sed_cmds"; then
2277
cat >> $CONFIG_STATUS <<EOF
2279
CONFIG_FILES=\${CONFIG_FILES-"source/Makefile"}
2281
cat >> $CONFIG_STATUS <<\EOF
2282
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7956
cat >>$CONFIG_STATUS <<\_ACEOF
7957
# Split the substitutions into bite-sized pieces for seds with
7958
# small command number limits, like on Digital OSF/1 and HP-UX.
7960
ac_sed_frag=1 # Number of current file.
7961
ac_beg=1 # First line for current file.
7962
ac_end=$ac_max_sed_lines # Line after last line for current file.
7965
while $ac_more_lines; do
7966
if test $ac_beg -gt 1; then
7967
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7969
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7971
if test ! -s $tmp/subs.frag; then
7974
# The purpose of the label and of the branching condition is to
7975
# speed up the sed processing (if there are no `@' at all, there
7976
# is no need to browse any of the substitutions).
7977
# These are the two extra sed commands mentioned above.
7979
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7980
if test -z "$ac_sed_cmds"; then
7981
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7983
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7985
ac_sed_frag=`expr $ac_sed_frag + 1`
7987
ac_end=`expr $ac_end + $ac_max_sed_lines`
7990
if test -z "$ac_sed_cmds"; then
7993
fi # test -n "$CONFIG_FILES"
7996
cat >>$CONFIG_STATUS <<\_ACEOF
7997
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2283
7998
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2285
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2286
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2287
*) ac_file_in="${ac_file}.in" ;;
8000
- | *:- | *:-:* ) # input from stdin
8002
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8003
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8004
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8005
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8006
* ) ac_file_in=$ac_file.in ;;
2290
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2292
# Remove last slash and all that follows it. Not all systems have dirname.
2293
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2294
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2295
# The file is in a subdirectory.
2296
test ! -d "$ac_dir" && mkdir "$ac_dir"
2297
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2298
# A "../" for each directory in $ac_dir_suffix.
2299
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8009
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8010
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8011
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8012
X"$ac_file" : 'X\(//\)[^/]' \| \
8013
X"$ac_file" : 'X\(//\)$' \| \
8014
X"$ac_file" : 'X\(/\)' \| \
8015
. : '\(.\)' 2>/dev/null ||
8017
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8018
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8019
/^X\(\/\/\)$/{ s//\1/; q; }
8020
/^X\(\/\).*/{ s//\1/; q; }
8022
{ if $as_mkdir_p; then
2301
ac_dir_suffix= ac_dots=
2304
case "$ac_given_srcdir" in
2306
if test -z "$ac_dots"; then top_srcdir=.
2307
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2308
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8027
while test ! -d "$as_dir"; do
8028
as_dirs="$as_dir $as_dirs"
8029
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8030
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8031
X"$as_dir" : 'X\(//\)[^/]' \| \
8032
X"$as_dir" : 'X\(//\)$' \| \
8033
X"$as_dir" : 'X\(/\)' \| \
8034
. : '\(.\)' 2>/dev/null ||
8036
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8037
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8038
/^X\(\/\/\)$/{ s//\1/; q; }
8039
/^X\(\/\).*/{ s//\1/; q; }
8042
test ! -n "$as_dirs" || mkdir $as_dirs
8043
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8044
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8045
{ (exit 1); exit 1; }; }; }
8049
if test "$ac_dir" != .; then
8050
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8051
# A "../" for each directory in $ac_dir_suffix.
8052
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8054
ac_dir_suffix= ac_top_builddir=
8058
.) # No --srcdir option. We are building in place.
8060
if test -z "$ac_top_builddir"; then
8063
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8065
[\\/]* | ?:[\\/]* ) # Absolute path.
8066
ac_srcdir=$srcdir$ac_dir_suffix;
8067
ac_top_srcdir=$srcdir ;;
2309
8068
*) # Relative path.
2310
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2311
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2315
echo creating "$ac_file"
2317
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2319
*Makefile*) ac_comsub="1i\\
2320
# $configure_input" ;;
2324
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2326
s%@configure_input@%$configure_input%g
2327
s%@srcdir@%$srcdir%g
2328
s%@top_srcdir@%$top_srcdir%g
2329
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2334
cat >> $CONFIG_STATUS <<EOF
2337
cat >> $CONFIG_STATUS <<\EOF
8069
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8070
ac_top_srcdir=$ac_top_builddir$srcdir ;;
8072
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8074
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8075
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8076
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8077
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8081
if test x"$ac_file" != x-; then
8082
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8083
echo "$as_me: creating $ac_file" >&6;}
8086
# Let's still pretend it is `configure' which instantiates (i.e., don't
8087
# use $as_me), people would be surprised to read:
8088
# /* config.h. Generated by config.status. */
8089
if test x"$ac_file" = x-; then
8092
configure_input="$ac_file. "
8094
configure_input=$configure_input"Generated from `echo $ac_file_in |
8095
sed 's,.*/,,'` by configure."
8097
# First look for the input files in the build tree, otherwise in the
8099
ac_file_inputs=`IFS=:
8100
for f in $ac_file_in; do
8102
-) echo $tmp/stdin ;;
8104
# Absolute (can't be DOS-style, as IFS=:)
8105
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8106
echo "$as_me: error: cannot find input file: $f" >&2;}
8107
{ (exit 1); exit 1; }; }
8110
if test -f "$f"; then
8113
elif test -f "$srcdir/$f"; then
8118
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8119
echo "$as_me: error: cannot find input file: $f" >&2;}
8120
{ (exit 1); exit 1; }; }
8123
done` || { (exit 1); exit 1; }
8125
cat >>$CONFIG_STATUS <<_ACEOF
8129
cat >>$CONFIG_STATUS <<\_ACEOF
8131
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8132
s,@configure_input@,$configure_input,;t t
8133
s,@srcdir@,$ac_srcdir,;t t
8134
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8135
s,@top_srcdir@,$ac_top_srcdir,;t t
8136
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8137
s,@builddir@,$ac_builddir,;t t
8138
s,@abs_builddir@,$ac_abs_builddir,;t t
8139
s,@top_builddir@,$ac_top_builddir,;t t
8140
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8141
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8143
if test x"$ac_file" != x-; then
8144
mv $tmp/out $ac_file
8153
cat >>$CONFIG_STATUS <<\_ACEOF
8155
{ (exit 0); exit 0; }
2341
8157
chmod +x $CONFIG_STATUS
2342
rm -fr confdefs* $ac_clean_files
2343
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8158
ac_clean_files=$ac_clean_files_save
8161
# configure is writing to config.log, and then calls config.status.
8162
# config.status does its own redirection, appending to config.log.
8163
# Unfortunately, on DOS this fails, as config.log is still kept open
8164
# by configure, so config.status won't be able to write to it; its
8165
# output is simply discarded. So we exec the FD to /dev/null,
8166
# effectively closing config.log, so it can be properly (re)opened and
8167
# appended to by config.status. When coming back to configure, we
8168
# need to make the FD available again.
8169
if test "$no_create" != yes; then
8171
ac_config_status_args=
8172
test "$silent" = yes &&
8173
ac_config_status_args="$ac_config_status_args --quiet"
8175
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8177
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8178
# would make configure fail if this is the last instruction.
8179
$ac_cs_success || { (exit 1); exit 1; }