2277
2266
sed 's/^/| /' conftest.$ac_ext >&5
2280
rm -f conftest.$ac_objext conftest.$ac_ext
2269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282
2271
ac_cpp='$CPP $CPPFLAGS'
2283
2272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2284
2273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2285
2274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
# Find a good install program. We prefer a C program (faster),
2288
# so one script is as good as another. But avoid the broken or
2289
# incompatible versions:
2290
# SysV /etc/install, /usr/sbin/install
2291
# SunOS /usr/etc/install
2292
# IRIX /sbin/install
2294
# AmigaOS /C/install, which installs bootblocks on floppy discs
2295
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298
# ./install, which can be erroneously created by make from ./install.sh.
2299
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2300
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2301
if test -z "$INSTALL"; then
2302
if test "${ac_cv_path_install+set}" = set; then
2277
ac_cpp='$CPP $CPPFLAGS'
2278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2282
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2283
# On Suns, sometimes $CPP names a directory.
2284
if test -n "$CPP" && test -d "$CPP"; then
2287
if test -z "$CPP"; then
2288
if test "${ac_cv_prog_CPP+set}" = set; then
2303
2289
echo $ECHO_N "(cached) $ECHO_C" >&6
2305
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291
# Double quotes because CPP needs to be expanded
2292
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2295
for ac_c_preproc_warn_flag in '' yes
2309
test -z "$as_dir" && as_dir=.
2310
# Account for people who put trailing slashes in PATH elements.
2312
./ | .// | /cC/* | \
2313
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316
# OSF1 and SCO ODT 3.0 have their own names for install.
2317
# Don't use installbsd from OSF since it installs stuff as root
2319
for ac_prog in ginstall scoinst install; do
2320
for ac_exec_ext in '' $ac_executable_extensions; do
2321
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2322
if test $ac_prog = install &&
2323
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324
# AIX install. It has an incompatible calling convention.
2326
elif test $ac_prog = install &&
2327
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2328
# program-specific install script used by HP pwplus--don't use.
2331
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2297
# Use a header file that comes with gcc, so configuring glibc
2298
# with a fresh cross-compiler works.
2299
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2300
# <limits.h> exists even on freestanding compilers.
2301
# On the NeXT, cc -E runs the code through the compiler's parser,
2302
# not just through cpp. "Syntax error" is here to catch this case.
2303
cat >conftest.$ac_ext <<_ACEOF
2306
cat confdefs.h >>conftest.$ac_ext
2307
cat >>conftest.$ac_ext <<_ACEOF
2308
/* end confdefs.h. */
2310
# include <limits.h>
2312
# include <assert.h>
2316
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2317
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319
grep -v '^ *+' conftest.er1 >conftest.err
2321
cat conftest.err >&5
2322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
(exit $ac_status); } >/dev/null; then
2324
if test -s conftest.err; then
2325
ac_cpp_err=$ac_c_preproc_warn_flag
2326
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2333
if test -z "$ac_cpp_err"; then
2336
echo "$as_me: failed program was:" >&5
2337
sed 's/^/| /' conftest.$ac_ext >&5
2339
# Broken: fails on valid input.
2342
rm -f conftest.err conftest.$ac_ext
2344
# OK, works on sane cases. Now check whether non-existent headers
2345
# can be detected and how.
2346
cat >conftest.$ac_ext <<_ACEOF
2349
cat confdefs.h >>conftest.$ac_ext
2350
cat >>conftest.$ac_ext <<_ACEOF
2351
/* end confdefs.h. */
2352
#include <ac_nonexistent.h>
2354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2355
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2357
grep -v '^ *+' conftest.er1 >conftest.err
2359
cat conftest.err >&5
2360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
(exit $ac_status); } >/dev/null; then
2362
if test -s conftest.err; then
2363
ac_cpp_err=$ac_c_preproc_warn_flag
2364
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2371
if test -z "$ac_cpp_err"; then
2372
# Broken: success on invalid input.
2375
echo "$as_me: failed program was:" >&5
2376
sed 's/^/| /' conftest.$ac_ext >&5
2378
# Passes both tests.
2382
rm -f conftest.err conftest.$ac_ext
2385
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2386
rm -f conftest.err conftest.$ac_ext
2387
if $ac_preproc_ok; then
2343
if test "${ac_cv_path_install+set}" = set; then
2344
INSTALL=$ac_cv_path_install
2346
# As a last resort, use the slow shell script. We don't cache a
2347
# path for INSTALL within a source directory, because that will
2348
# break other packages using the cache if that directory is
2349
# removed, or if the path is relative.
2350
INSTALL=$ac_install_sh
2353
echo "$as_me:$LINENO: result: $INSTALL" >&5
2354
echo "${ECHO_T}$INSTALL" >&6
2356
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357
# It thinks the first close brace ends the variable substitution.
2358
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364
# Extract the first word of "ar", so it can be a program name with args.
2365
set dummy ar; ac_word=$2
2366
echo "$as_me:$LINENO: checking for $ac_word" >&5
2367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368
if test "${ac_cv_path_AR+set}" = set; then
2369
echo $ECHO_N "(cached) $ECHO_C" >&6
2373
ac_cv_path_AR="$AR" # Let the user override the test with a path.
2376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380
test -z "$as_dir" && as_dir=.
2381
for ac_exec_ext in '' $ac_executable_extensions; do
2382
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2384
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395
if test -n "$AR"; then
2396
echo "$as_me:$LINENO: result: $AR" >&5
2397
echo "${ECHO_T}$AR" >&6
2399
echo "$as_me:$LINENO: result: no" >&5
2400
echo "${ECHO_T}no" >&6
2403
# Extract the first word of "basename", so it can be a program name with args.
2404
set dummy basename; ac_word=$2
2405
echo "$as_me:$LINENO: checking for $ac_word" >&5
2406
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407
if test "${ac_cv_path_BASENAME+set}" = set; then
2408
echo $ECHO_N "(cached) $ECHO_C" >&6
2412
ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
2415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419
test -z "$as_dir" && as_dir=.
2420
for ac_exec_ext in '' $ac_executable_extensions; do
2421
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422
ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
2423
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432
BASENAME=$ac_cv_path_BASENAME
2434
if test -n "$BASENAME"; then
2435
echo "$as_me:$LINENO: result: $BASENAME" >&5
2436
echo "${ECHO_T}$BASENAME" >&6
2438
echo "$as_me:$LINENO: result: no" >&5
2439
echo "${ECHO_T}no" >&6
2442
# Extract the first word of "cp", so it can be a program name with args.
2443
set dummy cp; ac_word=$2
2444
echo "$as_me:$LINENO: checking for $ac_word" >&5
2445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446
if test "${ac_cv_path_CP+set}" = set; then
2447
echo $ECHO_N "(cached) $ECHO_C" >&6
2451
ac_cv_path_CP="$CP" # Let the user override the test with a path.
2454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458
test -z "$as_dir" && as_dir=.
2459
for ac_exec_ext in '' $ac_executable_extensions; do
2460
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461
ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2462
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473
if test -n "$CP"; then
2474
echo "$as_me:$LINENO: result: $CP" >&5
2475
echo "${ECHO_T}$CP" >&6
2477
echo "$as_me:$LINENO: result: no" >&5
2478
echo "${ECHO_T}no" >&6
2481
# Extract the first word of "dirname", so it can be a program name with args.
2482
set dummy dirname; ac_word=$2
2483
echo "$as_me:$LINENO: checking for $ac_word" >&5
2484
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485
if test "${ac_cv_path_DIRNAME+set}" = set; then
2486
echo $ECHO_N "(cached) $ECHO_C" >&6
2490
ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497
test -z "$as_dir" && as_dir=.
2498
for ac_exec_ext in '' $ac_executable_extensions; do
2499
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500
ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
2501
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510
DIRNAME=$ac_cv_path_DIRNAME
2512
if test -n "$DIRNAME"; then
2513
echo "$as_me:$LINENO: result: $DIRNAME" >&5
2514
echo "${ECHO_T}$DIRNAME" >&6
2516
echo "$as_me:$LINENO: result: no" >&5
2517
echo "${ECHO_T}no" >&6
2520
# Extract the first word of "find", so it can be a program name with args.
2521
set dummy find; ac_word=$2
2522
echo "$as_me:$LINENO: checking for $ac_word" >&5
2523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524
if test "${ac_cv_path_FIND+set}" = set; then
2525
echo $ECHO_N "(cached) $ECHO_C" >&6
2529
ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536
test -z "$as_dir" && as_dir=.
2537
for ac_exec_ext in '' $ac_executable_extensions; do
2538
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539
ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
2540
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549
FIND=$ac_cv_path_FIND
2551
if test -n "$FIND"; then
2552
echo "$as_me:$LINENO: result: $FIND" >&5
2553
echo "${ECHO_T}$FIND" >&6
2555
echo "$as_me:$LINENO: result: no" >&5
2556
echo "${ECHO_T}no" >&6
2559
# Extract the first word of "grep", so it can be a program name with args.
2560
set dummy grep; ac_word=$2
2399
echo "$as_me:$LINENO: result: $CPP" >&5
2400
echo "${ECHO_T}$CPP" >&6
2402
for ac_c_preproc_warn_flag in '' yes
2404
# Use a header file that comes with gcc, so configuring glibc
2405
# with a fresh cross-compiler works.
2406
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2407
# <limits.h> exists even on freestanding compilers.
2408
# On the NeXT, cc -E runs the code through the compiler's parser,
2409
# not just through cpp. "Syntax error" is here to catch this case.
2410
cat >conftest.$ac_ext <<_ACEOF
2413
cat confdefs.h >>conftest.$ac_ext
2414
cat >>conftest.$ac_ext <<_ACEOF
2415
/* end confdefs.h. */
2417
# include <limits.h>
2419
# include <assert.h>
2423
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2424
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2426
grep -v '^ *+' conftest.er1 >conftest.err
2428
cat conftest.err >&5
2429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
(exit $ac_status); } >/dev/null; then
2431
if test -s conftest.err; then
2432
ac_cpp_err=$ac_c_preproc_warn_flag
2433
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2440
if test -z "$ac_cpp_err"; then
2443
echo "$as_me: failed program was:" >&5
2444
sed 's/^/| /' conftest.$ac_ext >&5
2446
# Broken: fails on valid input.
2449
rm -f conftest.err conftest.$ac_ext
2451
# OK, works on sane cases. Now check whether non-existent headers
2452
# can be detected and how.
2453
cat >conftest.$ac_ext <<_ACEOF
2456
cat confdefs.h >>conftest.$ac_ext
2457
cat >>conftest.$ac_ext <<_ACEOF
2458
/* end confdefs.h. */
2459
#include <ac_nonexistent.h>
2461
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2462
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2464
grep -v '^ *+' conftest.er1 >conftest.err
2466
cat conftest.err >&5
2467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
(exit $ac_status); } >/dev/null; then
2469
if test -s conftest.err; then
2470
ac_cpp_err=$ac_c_preproc_warn_flag
2471
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2478
if test -z "$ac_cpp_err"; then
2479
# Broken: success on invalid input.
2482
echo "$as_me: failed program was:" >&5
2483
sed 's/^/| /' conftest.$ac_ext >&5
2485
# Passes both tests.
2489
rm -f conftest.err conftest.$ac_ext
2492
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2493
rm -f conftest.err conftest.$ac_ext
2494
if $ac_preproc_ok; then
2497
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2498
See \`config.log' for more details." >&5
2499
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2500
See \`config.log' for more details." >&2;}
2501
{ (exit 1); exit 1; }; }
2505
ac_cpp='$CPP $CPPFLAGS'
2506
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
for ac_prog in egrep grep
2512
# Extract the first word of "$ac_prog", so it can be a program name with args.
2513
set dummy $ac_prog; ac_word=$2
2561
2514
echo "$as_me:$LINENO: checking for $ac_word" >&5
2562
2515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563
2516
if test "${ac_cv_path_GREP+set}" = set; then
2595
2548
echo "${ECHO_T}no" >&6
2598
# Extract the first word of "head", so it can be a program name with args.
2599
set dummy head; ac_word=$2
2600
echo "$as_me:$LINENO: checking for $ac_word" >&5
2601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602
if test "${ac_cv_path_HEAD+set}" = set; then
2603
echo $ECHO_N "(cached) $ECHO_C" >&6
2607
ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
2610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614
test -z "$as_dir" && as_dir=.
2615
for ac_exec_ext in '' $ac_executable_extensions; do
2616
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617
ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
2618
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627
HEAD=$ac_cv_path_HEAD
2629
if test -n "$HEAD"; then
2630
echo "$as_me:$LINENO: result: $HEAD" >&5
2631
echo "${ECHO_T}$HEAD" >&6
2633
echo "$as_me:$LINENO: result: no" >&5
2634
echo "${ECHO_T}no" >&6
2637
# Extract the first word of "happy", so it can be a program name with args.
2638
set dummy happy; ac_word=$2
2639
echo "$as_me:$LINENO: checking for $ac_word" >&5
2640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641
if test "${ac_cv_path_HAPPY+set}" = set; then
2642
echo $ECHO_N "(cached) $ECHO_C" >&6
2646
ac_cv_path_HAPPY="$HAPPY" # Let the user override the test with a path.
2649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653
test -z "$as_dir" && as_dir=.
2654
for ac_exec_ext in '' $ac_executable_extensions; do
2655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656
ac_cv_path_HAPPY="$as_dir/$ac_word$ac_exec_ext"
2657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666
HAPPY=$ac_cv_path_HAPPY
2668
if test -n "$HAPPY"; then
2669
echo "$as_me:$LINENO: result: $HAPPY" >&5
2670
echo "${ECHO_T}$HAPPY" >&6
2672
echo "$as_me:$LINENO: result: no" >&5
2673
echo "${ECHO_T}no" >&6
2676
# Extract the first word of "hstags", so it can be a program name with args.
2677
set dummy hstags; ac_word=$2
2678
echo "$as_me:$LINENO: checking for $ac_word" >&5
2679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680
if test "${ac_cv_path_HSTAGS+set}" = set; then
2681
echo $ECHO_N "(cached) $ECHO_C" >&6
2685
ac_cv_path_HSTAGS="$HSTAGS" # Let the user override the test with a path.
2688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692
test -z "$as_dir" && as_dir=.
2693
for ac_exec_ext in '' $ac_executable_extensions; do
2694
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695
ac_cv_path_HSTAGS="$as_dir/$ac_word$ac_exec_ext"
2696
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702
test -z "$ac_cv_path_HSTAGS" && ac_cv_path_HSTAGS="no-hstags-available"
2706
HSTAGS=$ac_cv_path_HSTAGS
2708
if test -n "$HSTAGS"; then
2709
echo "$as_me:$LINENO: result: $HSTAGS" >&5
2710
echo "${ECHO_T}$HSTAGS" >&6
2712
echo "$as_me:$LINENO: result: no" >&5
2713
echo "${ECHO_T}no" >&6
2716
# Extract the first word of "ln", so it can be a program name with args.
2717
set dummy ln; ac_word=$2
2718
echo "$as_me:$LINENO: checking for $ac_word" >&5
2719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720
if test "${ac_cv_path_LN+set}" = set; then
2721
echo $ECHO_N "(cached) $ECHO_C" >&6
2725
ac_cv_path_LN="$LN" # Let the user override the test with a path.
2728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732
test -z "$as_dir" && as_dir=.
2733
for ac_exec_ext in '' $ac_executable_extensions; do
2734
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735
ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
2736
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747
if test -n "$LN"; then
2748
echo "$as_me:$LINENO: result: $LN" >&5
2749
echo "${ECHO_T}$LN" >&6
2751
echo "$as_me:$LINENO: result: no" >&5
2752
echo "${ECHO_T}no" >&6
2755
# Extract the first word of "lndir", so it can be a program name with args.
2756
set dummy lndir; ac_word=$2
2757
echo "$as_me:$LINENO: checking for $ac_word" >&5
2758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759
if test "${ac_cv_path_LNDIR+set}" = set; then
2760
echo $ECHO_N "(cached) $ECHO_C" >&6
2764
ac_cv_path_LNDIR="$LNDIR" # Let the user override the test with a path.
2767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771
test -z "$as_dir" && as_dir=.
2772
for ac_exec_ext in '' $ac_executable_extensions; do
2773
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774
ac_cv_path_LNDIR="$as_dir/$ac_word$ac_exec_ext"
2775
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784
LNDIR=$ac_cv_path_LNDIR
2786
if test -n "$LNDIR"; then
2787
echo "$as_me:$LINENO: result: $LNDIR" >&5
2788
echo "${ECHO_T}$LNDIR" >&6
2790
echo "$as_me:$LINENO: result: no" >&5
2791
echo "${ECHO_T}no" >&6
2794
# Extract the first word of "mv", so it can be a program name with args.
2795
set dummy mv; ac_word=$2
2796
echo "$as_me:$LINENO: checking for $ac_word" >&5
2797
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798
if test "${ac_cv_path_MV+set}" = set; then
2799
echo $ECHO_N "(cached) $ECHO_C" >&6
2803
ac_cv_path_MV="$MV" # Let the user override the test with a path.
2806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810
test -z "$as_dir" && as_dir=.
2811
for ac_exec_ext in '' $ac_executable_extensions; do
2812
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813
ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
2814
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825
if test -n "$MV"; then
2826
echo "$as_me:$LINENO: result: $MV" >&5
2827
echo "${ECHO_T}$MV" >&6
2829
echo "$as_me:$LINENO: result: no" >&5
2830
echo "${ECHO_T}no" >&6
2551
test -n "$GREP" && break
2833
2554
# Extract the first word of "sed", so it can be a program name with args.
2834
2555
set dummy sed; ac_word=$2
2869
2590
echo "${ECHO_T}no" >&6
2872
# Extract the first word of "sh", so it can be a program name with args.
2873
set dummy sh; ac_word=$2
2874
echo "$as_me:$LINENO: checking for $ac_word" >&5
2875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876
if test "${ac_cv_path_SHELL+set}" = set; then
2877
echo $ECHO_N "(cached) $ECHO_C" >&6
2881
ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888
test -z "$as_dir" && as_dir=.
2889
for ac_exec_ext in '' $ac_executable_extensions; do
2890
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891
ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2892
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901
SHELL=$ac_cv_path_SHELL
2903
if test -n "$SHELL"; then
2904
echo "$as_me:$LINENO: result: $SHELL" >&5
2905
echo "${ECHO_T}$SHELL" >&6
2907
echo "$as_me:$LINENO: result: no" >&5
2908
echo "${ECHO_T}no" >&6
2911
# Extract the first word of "tar", so it can be a program name with args.
2912
set dummy tar; ac_word=$2
2913
echo "$as_me:$LINENO: checking for $ac_word" >&5
2914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915
if test "${ac_cv_path_TAR+set}" = set; then
2916
echo $ECHO_N "(cached) $ECHO_C" >&6
2920
ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927
test -z "$as_dir" && as_dir=.
2928
for ac_exec_ext in '' $ac_executable_extensions; do
2929
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930
ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2931
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942
if test -n "$TAR"; then
2943
echo "$as_me:$LINENO: result: $TAR" >&5
2944
echo "${ECHO_T}$TAR" >&6
2946
echo "$as_me:$LINENO: result: no" >&5
2947
echo "${ECHO_T}no" >&6
2950
# Extract the first word of "touch", so it can be a program name with args.
2951
set dummy touch; ac_word=$2
2952
echo "$as_me:$LINENO: checking for $ac_word" >&5
2953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954
if test "${ac_cv_path_TOUCH+set}" = set; then
2955
echo $ECHO_N "(cached) $ECHO_C" >&6
2959
ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966
test -z "$as_dir" && as_dir=.
2967
for ac_exec_ext in '' $ac_executable_extensions; do
2968
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969
ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
2970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979
TOUCH=$ac_cv_path_TOUCH
2981
if test -n "$TOUCH"; then
2982
echo "$as_me:$LINENO: result: $TOUCH" >&5
2983
echo "${ECHO_T}$TOUCH" >&6
2985
echo "$as_me:$LINENO: result: no" >&5
2986
echo "${ECHO_T}no" >&6
2989
# Extract the first word of "uname", so it can be a program name with args.
2990
set dummy uname; ac_word=$2
2991
echo "$as_me:$LINENO: checking for $ac_word" >&5
2992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2993
if test "${ac_cv_path_UNAME+set}" = set; then
2994
echo $ECHO_N "(cached) $ECHO_C" >&6
2998
ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008
ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
3009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018
UNAME=$ac_cv_path_UNAME
3020
if test -n "$UNAME"; then
3021
echo "$as_me:$LINENO: result: $UNAME" >&5
3022
echo "${ECHO_T}$UNAME" >&6
3024
echo "$as_me:$LINENO: result: no" >&5
3025
echo "${ECHO_T}no" >&6
3029
$LNDIR 2>&1 | grep silent >/dev/null && LNDIR="$LNDIR -silent"
3031
for ac_prog in $HC ghc nhc98
3033
# Extract the first word of "$ac_prog", so it can be a program name with args.
3034
set dummy $ac_prog; ac_word=$2
3035
echo "$as_me:$LINENO: checking for $ac_word" >&5
3036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037
if test "${ac_cv_path_HC+set}" = set; then
3038
echo $ECHO_N "(cached) $ECHO_C" >&6
3042
ac_cv_path_HC="$HC" # Let the user override the test with a path.
3045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049
test -z "$as_dir" && as_dir=.
3050
for ac_exec_ext in '' $ac_executable_extensions; do
3051
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052
ac_cv_path_HC="$as_dir/$ac_word$ac_exec_ext"
3053
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064
if test -n "$HC"; then
3065
echo "$as_me:$LINENO: result: $HC" >&5
3066
echo "${ECHO_T}$HC" >&6
3068
echo "$as_me:$LINENO: result: no" >&5
3069
echo "${ECHO_T}no" >&6
3072
test -n "$HC" && break
3075
if test -z "$HC"; then
3076
{ { echo "$as_me:$LINENO: error: Could not find a Haskell compiler!
3077
Currently supported are ghc 4.08 upwards & nhc98 1.14.
3078
** Check \"http://haskell.org\". **" >&5
3079
echo "$as_me: error: Could not find a Haskell compiler!
3080
Currently supported are ghc 4.08 upwards & nhc98 1.14.
3081
** Check \"http://haskell.org\". **" >&2;}
3082
{ (exit 1); exit 1; }; }
3084
if test ! -x "$HC"; then
3085
{ { echo "$as_me:$LINENO: error: File not found: $HC" >&5
3086
echo "$as_me: error: File not found: $HC" >&2;}
3087
{ (exit 1); exit 1; }; }
3090
case `$BASENAME $HC` in
3092
nhc98*) hc_base=nhc98;;
3095
if test $hc_base = ghc; then
3097
echo "$as_me:$LINENO: checking version of ghc" >&5
3098
echo $ECHO_N "checking version of ghc... $ECHO_C" >&6
3099
if test "${ctk_cv_ghc_version+set}" = set; then
3100
echo $ECHO_N "(cached) $ECHO_C" >&6
3102
${GHC-ghc} --version > conftestghc 2>&1
3104
ctk_cv_ghc_version=`cat conftestghc | sed -n -e 's/, patchlevel *\([0-9]\)/.\1/;s/.* version \([0-9.][0-9.]*\).*/\1/p'`
3106
if test "$ctk_cv_ghc_version" = ""
3108
ctk_cv_ghc_version='unknown'
3111
echo "$as_me:$LINENO: result: $ctk_cv_ghc_version" >&5
3112
echo "${ECHO_T}$ctk_cv_ghc_version" >&6
3113
ctk_cv_ghc_version_major=`echo $ctk_cv_ghc_version | sed -e 's/^\([0-9]\).*/\1/'`
3114
ctk_cv_ghc_version_minor=`echo $ctk_cv_ghc_version | sed -e 's/^[0-9]\.\([0-9]*\).*/\1/'`
3115
ctk_cv_ghc_version_pl=`echo $ctk_cv_ghc_version | sed -n -e 's/^[0-9]\.[0-9]*\.\([0-9]*\)/\1/p'`
3116
if test "$ctk_cv_ghc_version_pl" = ""
3118
ctk_cv_ghc_version_all="$ctk_cv_ghc_version_major.$ctk_cv_ghc_version_minor"
3119
ctk_cv_ghc_version_pl="0"
3121
ctk_cv_ghc_version_all="$ctk_cv_ghc_version_major.$ctk_cv_ghc_version_minor.$ctk_cv_ghc_version_pl"
3123
hc_vers="$ctk_cv_ghc_version_all"
3124
hc_maj_vers="$ctk_cv_ghc_version_major"
3125
hc_min_vers="$ctk_cv_ghc_version_minor"
3126
hc_pl="$ctk_cv_ghc_version_pl"
3129
a="$hc_vers"; b="4.08";
3130
while test -n "$a$b"
3132
set -- $a; h1="$1"; shift 2>/dev/null; a="$*"
3133
set -- $b; h2="$1"; shift 2>/dev/null; b="$*"
3134
test -n "$h1" || h1=0; test -n "$h2" || h2=0
3135
test ${h1} -eq ${h2} || break
3137
test ${h1} -lt ${h2}
3141
{ { echo "$as_me:$LINENO: error: We need to have version 4.08 upwards of ghc!
3142
** Check \"http://haskell.org\". **" >&5
3143
echo "$as_me: error: We need to have version 4.08 upwards of ghc!
3144
** Check \"http://haskell.org\". **" >&2;}
3145
{ (exit 1); exit 1; }; }
3152
if test $hc_base = nhc98; then
3153
echo "$as_me:$LINENO: checking nhc98 version" >&5
3154
echo $ECHO_N "checking nhc98 version... $ECHO_C" >&6
3155
if test "${ctk_cv_prog_nhc98_version+set}" = set; then
3156
echo $ECHO_N "(cached) $ECHO_C" >&6
3159
ctk_cv_prog_nhc98_version=`$HC --version 2>&1 | $HEAD -n 1 | $SED -e 's/.*v\([0-9]\)\.\([0-9]*\).*/\1.\2/'`
3162
echo "$as_me:$LINENO: result: $ctk_cv_prog_nhc98_version" >&5
3163
echo "${ECHO_T}$ctk_cv_prog_nhc98_version" >&6
3164
hc_maj_vers=`echo $ctk_cv_prog_nhc98_version | $SED -e 's/\([0-9]\)\.[0-9]*/\1/'`
3165
hc_min_vers=`echo $ctk_cv_prog_nhc98_version | $SED -e 's/[0-9]\.\([0-9]*\)/\1/'`
3166
if test $hc_maj_vers -lt 1 -o $hc_min_vers -lt 14; then
3167
{ { echo "$as_me:$LINENO: error: You need version 1.14 upwards of nhc98!
3168
** Check \"http://haskell.org/\". **" >&5
3169
echo "$as_me: error: You need version 1.14 upwards of nhc98!
3170
** Check \"http://haskell.org/\". **" >&2;}
3171
{ (exit 1); exit 1; }; }
3177
if test -z "$HCFLAGS"; then
3179
if test $hc_base = ghc; then
3180
HCFLAGS="$HCFLAGS -recomp -fno-warn-incomplete-patterns"
3182
if test $ghc_native = yes; then
3183
HCFLAGS="$HCFLAGS -fasm"
3189
if test $hc_base = ghc; then
3191
echo "$as_me:$LINENO: checking syslib for List" >&5
3192
echo $ECHO_N "checking syslib for List... $ECHO_C" >&6
3193
if test "${ctk_cv_syslib_List+set}" = set; then
3194
echo $ECHO_N "(cached) $ECHO_C" >&6
3197
for ctk_syslib in haskell98 not-found ; do
3199
cat > conftest.hs <<EOF
3202
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs > /dev/null 2> /dev/null && break
3205
ctk_cv_syslib_List=$ctk_syslib
3208
echo "$as_me:$LINENO: result: $ctk_cv_syslib_List" >&5
3209
echo "${ECHO_T}$ctk_cv_syslib_List" >&6
3210
syslib_List=$ctk_cv_syslib_List
3212
if test $syslib_List = not-found; then
3213
{ { echo "$as_me:$LINENO: error: Could not find Haskell 98 moduled (tried \"List\")." >&5
3214
echo "$as_me: error: Could not find Haskell 98 moduled (tried \"List\")." >&2;}
3215
{ (exit 1); exit 1; }; }
3217
PACKAGES="$PACKAGES $syslib_List"
3219
echo "$as_me:$LINENO: checking syslib for Posix" >&5
3220
echo $ECHO_N "checking syslib for Posix... $ECHO_C" >&6
3221
if test "${ctk_cv_syslib_Posix+set}" = set; then
3222
echo $ECHO_N "(cached) $ECHO_C" >&6
3225
for ctk_syslib in posix not-found ; do
3227
cat > conftest.hs <<EOF
3230
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs > /dev/null 2> /dev/null && break
3233
ctk_cv_syslib_Posix=$ctk_syslib
3236
echo "$as_me:$LINENO: result: $ctk_cv_syslib_Posix" >&5
3237
echo "${ECHO_T}$ctk_cv_syslib_Posix" >&6
3238
syslib_Posix=$ctk_cv_syslib_Posix
3240
if test $syslib_Posix != not-found; then
3241
PACKAGES="$PACKAGES posix"
3242
SYSFEATURES="$SYSFEATURES posix"
3245
echo "$as_me:$LINENO: checking syslib for IOExts" >&5
3246
echo $ECHO_N "checking syslib for IOExts... $ECHO_C" >&6
3247
if test "${ctk_cv_syslib_IOExts+set}" = set; then
3248
echo $ECHO_N "(cached) $ECHO_C" >&6
3251
for ctk_syslib in lang exts not-found ; do
3253
cat > conftest.hs <<EOF
3256
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs > /dev/null 2> /dev/null && break
3259
ctk_cv_syslib_IOExts=$ctk_syslib
3262
echo "$as_me:$LINENO: result: $ctk_cv_syslib_IOExts" >&5
3263
echo "${ECHO_T}$ctk_cv_syslib_IOExts" >&6
3264
syslib_IOExts=$ctk_cv_syslib_IOExts
3266
if test $syslib_IOExts = not-found; then
3267
{ { echo "$as_me:$LINENO: error: Could not find module \"IOExts\"." >&5
3268
echo "$as_me: error: Could not find module \"IOExts\"." >&2;}
3269
{ (exit 1); exit 1; }; }
3271
PACKAGES="$PACKAGES $syslib_IOExts"
3274
if test $hc_base = nhc98; then
3278
if test $hc_base = ghc; then
3281
if test $SYS = nhc1; then
3282
for ac_prog in hmake
3284
# Extract the first word of "$ac_prog", so it can be a program name with args.
3285
set dummy $ac_prog; ac_word=$2
3286
echo "$as_me:$LINENO: checking for $ac_word" >&5
3287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288
if test "${ac_cv_path_HMAKE+set}" = set; then
3289
echo $ECHO_N "(cached) $ECHO_C" >&6
3293
ac_cv_path_HMAKE="$HMAKE" # Let the user override the test with a path.
3296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300
test -z "$as_dir" && as_dir=.
3301
for ac_exec_ext in '' $ac_executable_extensions; do
3302
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303
ac_cv_path_HMAKE="$as_dir/$ac_word$ac_exec_ext"
3304
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313
HMAKE=$ac_cv_path_HMAKE
3315
if test -n "$HMAKE"; then
3316
echo "$as_me:$LINENO: result: $HMAKE" >&5
3317
echo "${ECHO_T}$HMAKE" >&6
3319
echo "$as_me:$LINENO: result: no" >&5
3320
echo "${ECHO_T}no" >&6
3323
test -n "$HMAKE" && break
3326
if test -z "$HMAKE"; then
3327
{ { echo "$as_me:$LINENO: error: Could not find the tool hmake (needed for use with nhc98)!
3328
** Check \"http://www.cs.york.ac.uk/fp/nhc98/hmake/hmake.html\". **" >&5
3329
echo "$as_me: error: Could not find the tool hmake (needed for use with nhc98)!
3330
** Check \"http://www.cs.york.ac.uk/fp/nhc98/hmake/hmake.html\". **" >&2;}
3331
{ (exit 1); exit 1; }; }
3333
MKDEPENDHS="$HMAKE -n -M -nhc98"
3335
echo "$as_me:$LINENO: result: selecting mkdependHS... $MKDEPENDHS" >&5
3336
echo "${ECHO_T}selecting mkdependHS... $MKDEPENDHS" >&6
3338
if test "$ENABLE_ADD_PACKAGE" = "yes" -a "$HASPKG" = "no"; then
3339
{ { echo "$as_me:$LINENO: error: System $SYS doesn't support package management; can't use
3340
\"--add-package\"." >&5
3341
echo "$as_me: error: System $SYS doesn't support package management; can't use
3342
\"--add-package\"." >&2;}
3343
{ (exit 1); exit 1; }; }
3347
if test x$efence = xyes; then
3350
echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
3351
echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
3352
if test "${ac_cv_lib_efence_malloc+set}" = set; then
3353
echo $ECHO_N "(cached) $ECHO_C" >&6
3355
ac_check_lib_save_LIBS=$LIBS
3356
LIBS="-lefence $LIBS"
3357
cat >conftest.$ac_ext <<_ACEOF
3358
#line $LINENO "configure"
3361
cat confdefs.h >>conftest.$ac_ext
3362
cat >>conftest.$ac_ext <<_ACEOF
3363
/* end confdefs.h. */
3365
/* Override any gcc2 internal prototype to avoid an error. */
3369
/* We use char because int might match the return type of a gcc2
3370
builtin and then its argument prototype would still apply. */
3380
rm -f conftest.$ac_objext conftest$ac_exeext
3381
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382
(eval $ac_link) 2>&5
3384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385
(exit $ac_status); } &&
3386
{ ac_try='test -s conftest$ac_exeext'
3387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391
(exit $ac_status); }; }; then
3392
ac_cv_lib_efence_malloc=yes
3394
echo "$as_me: failed program was:" >&5
3395
sed 's/^/| /' conftest.$ac_ext >&5
3397
ac_cv_lib_efence_malloc=no
3399
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3400
LIBS=$ac_check_lib_save_LIBS
3402
echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
3403
echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
3404
if test $ac_cv_lib_efence_malloc = yes; then
3405
cat >>confdefs.h <<_ACEOF
3406
#define HAVE_LIBEFENCE 1
3409
LIBS="-lefence $LIBS"
3412
{ { echo "$as_me:$LINENO: error: No Electric Fence library found!" >&5
3413
echo "$as_me: error: No Electric Fence library found!" >&2;}
3414
{ (exit 1); exit 1; }; }
3421
for pkg_name in $PACKAGES; do
3422
if test -z "$PACKAGES_STRINGS"; then
3423
PACKAGES_STRINGS="\"$pkg_name\""
3425
PACKAGES_STRINGS="$PACKAGES_STRINGS, \"$pkg_name\""
3429
for dir in base/*; do
3430
if test -d $dir && test `basename $dir` != CVS ; then
3431
if test -z "$IMPORT_DIRS"; then
3432
IMPORT_DIRS="\"$TOP/$dir\""
3434
IMPORT_DIRS="$IMPORT_DIRS, \"$TOP/$dir\""
3438
LIBRARY_DIRS="\"$TOP/base\""
3455
ac_config_files="$ac_config_files mk/config.mk base/base.build.conf"
2594
C2HS_VERSION=`$GREP '^Version:' c2hs.cabal \
2595
| $SED '-e s/Version:[ ]*//'`
2596
C2HS_NICK=`$GREP '^--Versnick:' c2hs.cabal \
2597
| $SED '-e s/--Versnick:[ ]*//'`
2598
C2HS_DATE=`$GREP '^--Versdate:' c2hs.cabal \
2599
| $SED '-e s/--Versdate:[ ]*//'`
2600
C2HS_COPYRIGHT=`$GREP '^Copyright:' c2hs.cabal \
2601
| $SED '-e s/Copyright:[ ]*//'`
2610
ac_config_files="$ac_config_files c2hs/toplevel/Version.hs c2hs/toplevel/C2HSConfig.hs c2hs/c2hs-inplace c2hs/c2hs postInst.sh c2hs.spec doc/c2hs/Makefile"
2611
ac_config_commands="$ac_config_commands default"
3456
2612
cat >confcache <<\_ACEOF
3457
2613
# This file is a shell script that caches the results of configure
3458
2614
# tests run on this system so they can be shared between configure
4108
3269
s,@ac_ct_CC@,$ac_ct_CC,;t t
4109
3270
s,@EXEEXT@,$EXEEXT,;t t
4110
3271
s,@OBJEXT@,$OBJEXT,;t t
4111
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4112
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4113
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4115
s,@BASENAME@,$BASENAME,;t t
4117
s,@DIRNAME@,$DIRNAME,;t t
4119
3273
s,@GREP@,$GREP,;t t
4121
s,@HAPPY@,$HAPPY,;t t
4122
s,@HSTAGS@,$HSTAGS,;t t
4124
s,@LNDIR@,$LNDIR,;t t
4126
3274
s,@SED@,$SED,;t t
4128
s,@TOUCH@,$TOUCH,;t t
4129
s,@UNAME@,$UNAME,;t t
4131
s,@syslib_List@,$syslib_List,;t t
4132
s,@syslib_Posix@,$syslib_Posix,;t t
4133
s,@syslib_IOExts@,$syslib_IOExts,;t t
4134
s,@HMAKE@,$HMAKE,;t t
4135
3275
s,@TOP@,$TOP,;t t
4137
s,@HCFLAGS@,$HCFLAGS,;t t
4138
s,@HIDIROPT@,$HIDIROPT,;t t
4140
s,@MKDEPENDHS@,$MKDEPENDHS,;t t
4141
s,@SYSFEATURES@,$SYSFEATURES,;t t
4142
s,@ENABLE_ADD_PACKAGE@,$ENABLE_ADD_PACKAGE,;t t
4143
s,@HASPKG@,$HASPKG,;t t
4144
s,@PACKAGES@,$PACKAGES,;t t
4145
s,@PACKAGES_STRINGS@,$PACKAGES_STRINGS,;t t
4146
s,@IMPORT_DIRS@,$IMPORT_DIRS,;t t
4147
s,@LIBRARY_DIRS@,$LIBRARY_DIRS,;t t
4148
s,@WHOLE_ARCHIVE_FLAG@,$WHOLE_ARCHIVE_FLAG,;t t
3276
s,@C2HS_VERSION@,$C2HS_VERSION,;t t
3277
s,@C2HS_NICK@,$C2HS_NICK,;t t
3278
s,@C2HS_DATE@,$C2HS_DATE,;t t
3279
s,@C2HS_COPYRIGHT@,$C2HS_COPYRIGHT,;t t
3280
s,@TMPDIR@,$TMPDIR,;t t
4149
3281
s,@LIBOBJS@,$LIBOBJS,;t t
4150
3282
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3516
cat >>$CONFIG_STATUS <<\_ACEOF
3519
# CONFIG_COMMANDS section.
3521
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3522
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3523
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3524
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
3525
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3526
X"$ac_dest" : 'X\(//\)[^/]' \| \
3527
X"$ac_dest" : 'X\(//\)$' \| \
3528
X"$ac_dest" : 'X\(/\)' \| \
3529
. : '\(.\)' 2>/dev/null ||
3531
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3532
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3533
/^X\(\/\/\)$/{ s//\1/; q; }
3534
/^X\(\/\).*/{ s//\1/; q; }
3536
{ if $as_mkdir_p; then
3541
while test ! -d "$as_dir"; do
3542
as_dirs="$as_dir $as_dirs"
3543
as_dir=`(dirname "$as_dir") 2>/dev/null ||
3544
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3545
X"$as_dir" : 'X\(//\)[^/]' \| \
3546
X"$as_dir" : 'X\(//\)$' \| \
3547
X"$as_dir" : 'X\(/\)' \| \
3548
. : '\(.\)' 2>/dev/null ||
3550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3551
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
3552
/^X\(\/\/\)$/{ s//\1/; q; }
3553
/^X\(\/\).*/{ s//\1/; q; }
3556
test ! -n "$as_dirs" || mkdir $as_dirs
3557
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3558
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3559
{ (exit 1); exit 1; }; }; }
3563
if test "$ac_dir" != .; then
3564
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3565
# A "../" for each directory in $ac_dir_suffix.
3566
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3568
ac_dir_suffix= ac_top_builddir=
3572
.) # No --srcdir option. We are building in place.
3574
if test -z "$ac_top_builddir"; then
3577
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3579
[\\/]* | ?:[\\/]* ) # Absolute path.
3580
ac_srcdir=$srcdir$ac_dir_suffix;
3581
ac_top_srcdir=$srcdir ;;
3583
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3584
ac_top_srcdir=$ac_top_builddir$srcdir ;;
3587
# Do not use `cd foo && pwd` to compute absolute paths, because
3588
# the directories may not exist.
3590
.) ac_abs_builddir="$ac_dir";;
3593
.) ac_abs_builddir=`pwd`;;
3594
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3595
*) ac_abs_builddir=`pwd`/"$ac_dir";;
3598
case $ac_abs_builddir in
3599
.) ac_abs_top_builddir=${ac_top_builddir}.;;
3601
case ${ac_top_builddir}. in
3602
.) ac_abs_top_builddir=$ac_abs_builddir;;
3603
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3604
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3607
case $ac_abs_builddir in
3608
.) ac_abs_srcdir=$ac_srcdir;;
3611
.) ac_abs_srcdir=$ac_abs_builddir;;
3612
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3613
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3616
case $ac_abs_builddir in
3617
.) ac_abs_top_srcdir=$ac_top_srcdir;;
3619
case $ac_top_srcdir in
3620
.) ac_abs_top_srcdir=$ac_abs_builddir;;
3621
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3622
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3627
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
3628
echo "$as_me: executing $ac_dest commands" >&6;}
3630
default ) chmod +x c2hs/c2hs-inplace postInst.sh ;;
4357
3635
cat >>$CONFIG_STATUS <<\_ACEOF
4383
3661
$ac_cs_success || { (exit 1); exit 1; }
4387
# CONFIG_SUBDIRS section.
4389
if test "$no_recursion" != yes; then
4391
# Remove --cache-file and --srcdir arguments so they do not pile up.
4392
ac_sub_configure_args=
4394
for ac_arg in $ac_configure_args; do
4395
if test -n "$ac_prev"; then
4400
-cache-file | --cache-file | --cache-fil | --cache-fi \
4401
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4402
ac_prev=cache_file ;;
4403
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4404
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4407
--config-cache | -C)
4409
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4411
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4413
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4415
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4417
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4421
# Always prepend --prefix to ensure using the same prefix
4422
# in subdir configurations.
4423
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4426
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4428
# Do not complain, so a configure script can configure whichever
4429
# parts of a large source tree are present.
4430
test -d $srcdir/$ac_dir || continue
4432
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4433
echo "$as_me: configuring in $ac_dir" >&6;}
4434
{ if $as_mkdir_p; then
4439
while test ! -d "$as_dir"; do
4440
as_dirs="$as_dir $as_dirs"
4441
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4442
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4443
X"$as_dir" : 'X\(//\)[^/]' \| \
4444
X"$as_dir" : 'X\(//\)$' \| \
4445
X"$as_dir" : 'X\(/\)' \| \
4446
. : '\(.\)' 2>/dev/null ||
4448
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4449
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4450
/^X\(\/\/\)$/{ s//\1/; q; }
4451
/^X\(\/\).*/{ s//\1/; q; }
4454
test ! -n "$as_dirs" || mkdir $as_dirs
4455
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4456
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4457
{ (exit 1); exit 1; }; }; }
4461
if test "$ac_dir" != .; then
4462
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4463
# A "../" for each directory in $ac_dir_suffix.
4464
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4466
ac_dir_suffix= ac_top_builddir=
4470
.) # No --srcdir option. We are building in place.
4472
if test -z "$ac_top_builddir"; then
4475
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4477
[\\/]* | ?:[\\/]* ) # Absolute path.
4478
ac_srcdir=$srcdir$ac_dir_suffix;
4479
ac_top_srcdir=$srcdir ;;
4481
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4482
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4484
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4486
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4487
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4488
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4489
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4494
# Check for guested configure; otherwise get Cygnus style configure.
4495
if test -f $ac_srcdir/configure.gnu; then
4496
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4497
elif test -f $ac_srcdir/configure; then
4498
ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4499
elif test -f $ac_srcdir/configure.in; then
4500
ac_sub_configure=$ac_configure
4502
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4503
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4507
# The recursion is here.
4508
if test -n "$ac_sub_configure"; then
4509
# Make the cache file name correct relative to the subdirectory.
4511
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4513
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4516
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4517
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4518
# The eval makes quoting arguments work.
4519
eval $ac_sub_configure $ac_sub_configure_args \
4520
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4521
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4522
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4523
{ (exit 1); exit 1; }; }
4531
echo "********************************************"
4532
echo "Configuration completed successfully."
4533
echo "Now do \"make\" and get a cup of green tea ;-)"
4534
echo "********************************************"