~ubuntu-branches/debian/sid/c2hs/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Arjan Oosting
  • Date: 2006-12-14 00:06:12 UTC
  • mfrom: (3.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061214000612-s7mds83cxqkgv1bj
Tags: 0.14.5-6
* debian/patches/09_replace-deprecated-withObject: Replace all
  occurrences of 'withObject' with 'with' as the deprecated 'withObject'
  was removed with GHC 6.6. (Closes: #402979)
* Set the urgency to medium as the above bug decreases c2hs usefulness
  with GHC 6.6 dramatically. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.57.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
20
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
20
  set -o posix
22
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
23
23
 
24
24
# Support unset when possible.
25
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
26
  as_unset=unset
27
27
else
28
28
  as_unset=false
41
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
42
  LC_TELEPHONE LC_TIME
43
43
do
44
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
45
    eval $as_var=C; export $as_var
46
46
  else
47
47
    $as_unset $as_var
218
218
if mkdir -p . 2>/dev/null; then
219
219
  as_mkdir_p=:
220
220
else
 
221
  test -d ./-p && rmdir ./-p
221
222
  as_mkdir_p=false
222
223
fi
223
224
 
224
225
as_executable_p="test -f"
225
226
 
226
227
# Sed expression to map a string onto a valid CPP name.
227
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229
 
229
230
# Sed expression to map a string onto a valid variable name.
230
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
 
232
233
 
233
234
# IFS
270
271
PACKAGE_STRING=
271
272
PACKAGE_BUGREPORT=
272
273
 
273
 
ac_unique_file="base/admin/BaseVersion.hs"
274
 
ac_subdirs_all="$ac_subdirs_all c2hs"
275
 
ac_subdirs_all="$ac_subdirs_all idl2chs"
276
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR BASENAME CP DIRNAME FIND GREP HEAD HAPPY HSTAGS LN LNDIR MV SED TAR TOUCH UNAME HC syslib_List syslib_Posix syslib_IOExts HMAKE TOP SYS HCFLAGS HIDIROPT PROF MKDEPENDHS SYSFEATURES ENABLE_ADD_PACKAGE HASPKG PACKAGES PACKAGES_STRINGS IMPORT_DIRS LIBRARY_DIRS WHOLE_ARCHIVE_FLAG LIBOBJS LTLIBOBJS'
 
274
ac_unique_file="c2hs/toplevel/Main.hs"
 
275
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GREP SED TOP C2HS_VERSION C2HS_NICK C2HS_DATE C2HS_COPYRIGHT TMPDIR LIBOBJS LTLIBOBJS'
277
276
ac_subst_files=''
278
277
 
279
278
# Initialize some variables set by options.
632
631
 
633
632
# Be sure to have absolute paths.
634
633
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
634
              localstatedir libdir includedir oldincludedir infodir mandir
636
635
do
637
636
  eval ac_val=$`echo $ac_var`
638
637
  case $ac_val in
672
671
  # Try the directory containing this script, then its parent.
673
672
  ac_confdir=`(dirname "$0") 2>/dev/null ||
674
673
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675
 
         X"$0" : 'X\(//\)[^/]' \| \
676
 
         X"$0" : 'X\(//\)$' \| \
677
 
         X"$0" : 'X\(/\)' \| \
678
 
         .     : '\(.\)' 2>/dev/null ||
 
674
         X"$0" : 'X\(//\)[^/]' \| \
 
675
         X"$0" : 'X\(//\)$' \| \
 
676
         X"$0" : 'X\(/\)' \| \
 
677
         .     : '\(.\)' 2>/dev/null ||
679
678
echo X"$0" |
680
679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681
680
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
730
729
ac_env_CPPFLAGS_value=$CPPFLAGS
731
730
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732
731
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
732
ac_env_CPP_set=${CPP+set}
 
733
ac_env_CPP_value=$CPP
 
734
ac_cv_env_CPP_set=${CPP+set}
 
735
ac_cv_env_CPP_value=$CPP
733
736
 
734
737
#
735
738
# Report the --help message.
763
766
  cat <<_ACEOF
764
767
Installation directories:
765
768
  --prefix=PREFIX         install architecture-independent files in PREFIX
766
 
                          [$ac_default_prefix]
 
769
                          [$ac_default_prefix]
767
770
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
768
 
                          [PREFIX]
 
771
                          [PREFIX]
769
772
 
770
773
By default, \`make install' will install all the files in
771
774
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794
797
System types:
795
798
  --build=BUILD     configure for building on BUILD [guessed]
796
799
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
797
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
798
800
_ACEOF
799
801
fi
800
802
 
802
804
 
803
805
  cat <<\_ACEOF
804
806
 
805
 
Optional Features:
806
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
807
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
808
 
  --enable-prof           enable profiling support
809
 
  --enable-add-package    register package during installation
810
 
 
811
 
Optional Packages:
812
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
813
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
814
 
  --with-hc=HC            use Haskell compiler HC
815
 
  --with-hcflags=HCFLAGS  specify flags for the Haskell compiler
816
 
  --with-ghc-native       use GHC native code generator (if available)
817
 
  --with-hmake=HC         use hmake version HMAKE (full path required)
818
 
  --with-efence           link with efence malloc debugger
819
 
 
820
807
Some influential environment variables:
821
808
  CC          C compiler command
822
809
  CFLAGS      C compiler flags
824
811
              nonstandard directory <lib dir>
825
812
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
826
813
              headers in a nonstandard directory <include dir>
 
814
  CPP         C preprocessor
827
815
 
828
816
Use these variables to override the choices made by `configure' or to help
829
817
it to find libraries and programs with nonstandard names/locations.
861
849
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
862
850
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
863
851
esac
864
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
865
 
# absolute.
866
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
867
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
868
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
869
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
852
 
 
853
# Do not use `cd foo && pwd` to compute absolute paths, because
 
854
# the directories may not exist.
 
855
case `pwd` in
 
856
.) ac_abs_builddir="$ac_dir";;
 
857
*)
 
858
  case "$ac_dir" in
 
859
  .) ac_abs_builddir=`pwd`;;
 
860
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
861
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
862
  esac;;
 
863
esac
 
864
case $ac_abs_builddir in
 
865
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
866
*)
 
867
  case ${ac_top_builddir}. in
 
868
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
869
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
870
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
871
  esac;;
 
872
esac
 
873
case $ac_abs_builddir in
 
874
.) ac_abs_srcdir=$ac_srcdir;;
 
875
*)
 
876
  case $ac_srcdir in
 
877
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
878
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
879
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
880
  esac;;
 
881
esac
 
882
case $ac_abs_builddir in
 
883
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
884
*)
 
885
  case $ac_top_srcdir in
 
886
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
887
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
888
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
889
  esac;;
 
890
esac
870
891
 
871
892
    cd $ac_dir
872
893
    # Check for guested configure; otherwise get Cygnus style configure.
877
898
      echo
878
899
      $SHELL $ac_srcdir/configure  --help=recursive
879
900
    elif test -f $ac_srcdir/configure.ac ||
880
 
           test -f $ac_srcdir/configure.in; then
 
901
           test -f $ac_srcdir/configure.in; then
881
902
      echo
882
903
      $ac_configure --help
883
904
    else
891
912
if $ac_init_version; then
892
913
  cat <<\_ACEOF
893
914
 
894
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
895
 
Free Software Foundation, Inc.
 
915
Copyright (C) 2003 Free Software Foundation, Inc.
896
916
This configure script is free software; the Free Software Foundation
897
917
gives unlimited permission to copy, distribute and modify it.
898
918
_ACEOF
904
924
running configure, to aid debugging if configure makes a mistake.
905
925
 
906
926
It was created by $as_me, which was
907
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
927
generated by GNU Autoconf 2.59.  Invocation command line was
908
928
 
909
929
  $ $0 $@
910
930
 
981
1001
    2)
982
1002
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
983
1003
      if test $ac_must_keep_next = true; then
984
 
        ac_must_keep_next=false # Got value, back to normal.
 
1004
        ac_must_keep_next=false # Got value, back to normal.
985
1005
      else
986
 
        case $ac_arg in
987
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
988
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
989
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
990
 
          | -with-* | --with-* | -without-* | --without-* | --x)
991
 
            case "$ac_configure_args0 " in
992
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
993
 
            esac
994
 
            ;;
995
 
          -* ) ac_must_keep_next=true ;;
996
 
        esac
 
1006
        case $ac_arg in
 
1007
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1008
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1009
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1010
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1011
            case "$ac_configure_args0 " in
 
1012
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1013
            esac
 
1014
            ;;
 
1015
          -* ) ac_must_keep_next=true ;;
 
1016
        esac
997
1017
      fi
998
1018
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999
1019
      # Get rid of the leading space.
1027
1047
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028
1048
    *ac_space=\ *)
1029
1049
      sed -n \
1030
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1050
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1051
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032
1052
      ;;
1033
1053
    *)
1034
1054
      sed -n \
1035
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1055
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036
1056
      ;;
1037
1057
    esac;
1038
1058
}
1061
1081
      for ac_var in $ac_subst_files
1062
1082
      do
1063
1083
        eval ac_val=$`echo $ac_var`
1064
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1084
        echo "$ac_var='"'"'$ac_val'"'"'"
1065
1085
      done | sort
1066
1086
      echo
1067
1087
    fi
1080
1100
      echo "$as_me: caught signal $ac_signal"
1081
1101
    echo "$as_me: exit $exit_status"
1082
1102
  } >&5
1083
 
  rm -f core core.* *.core &&
 
1103
  rm -f core *.core &&
1084
1104
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085
1105
    exit $exit_status
1086
1106
     ' 0
1160
1180
# value.
1161
1181
ac_cache_corrupted=false
1162
1182
for ac_var in `(set) 2>&1 |
1163
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1183
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164
1184
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165
1185
  eval ac_new_set=\$ac_env_${ac_var}_set
1166
1186
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1177
1197
    ,);;
1178
1198
    *)
1179
1199
      if test "x$ac_old_val" != "x$ac_new_val"; then
1180
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1200
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181
1201
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1202
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1183
1203
echo "$as_me:   former value:  $ac_old_val" >&2;}
1184
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1204
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1185
1205
echo "$as_me:   current value: $ac_new_val" >&2;}
1186
 
        ac_cache_corrupted=:
 
1206
        ac_cache_corrupted=:
1187
1207
      fi;;
1188
1208
  esac
1189
1209
  # Pass precious variables to config.status.
1231
1251
 
1232
1252
 
1233
1253
 
 
1254
 
 
1255
TOP=`pwd`
 
1256
 
 
1257
TMPDIR="/tmp"
1234
1258
ac_aux_dir=
1235
1259
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1236
1260
  if test -f $ac_dir/install-sh; then
1256
1280
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1257
1281
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258
1282
 
1259
 
 
1260
 
 
1261
 
subdirs="$subdirs c2hs"
1262
 
 
1263
 
 
1264
 
 
1265
 
subdirs="$subdirs idl2chs"
1266
 
 
1267
 
 
1268
 
TOP=`pwd`
1269
 
 
1270
 
# Check whether --enable-prof or --disable-prof was given.
1271
 
if test "${enable_prof+set}" = set; then
1272
 
  enableval="$enable_prof"
1273
 
  ENABLE_PROF=$enableval
1274
 
fi;
1275
 
if test x$ENABLE_PROF = xyes; then
1276
 
  PROF="-prof"
1277
 
fi
1278
 
 
1279
 
# Check whether --enable-add_package or --disable-add_package was given.
1280
 
if test "${enable_add_package+set}" = set; then
1281
 
  enableval="$enable_add_package"
1282
 
  ENABLE_ADD_PACKAGE=$enableval
1283
 
fi;
1284
 
 
1285
 
 
1286
 
# Check whether --with-hc or --without-hc was given.
1287
 
if test "${with_hc+set}" = set; then
1288
 
  withval="$with_hc"
1289
 
  HC=$withval
1290
 
fi;
1291
 
 
1292
 
# Check whether --with-hcflags or --without-hcflags was given.
1293
 
if test "${with_hcflags+set}" = set; then
1294
 
  withval="$with_hcflags"
1295
 
  HCFLAGS=$withval
1296
 
fi;
1297
 
 
1298
 
# Check whether --with-ghcnative or --without-ghcnative was given.
1299
 
if test "${with_ghcnative+set}" = set; then
1300
 
  withval="$with_ghcnative"
1301
 
  ghc_native=$withval
1302
 
else
1303
 
  ghc_native=no
1304
 
fi;
1305
 
 
1306
 
 
1307
 
# Check whether --with-hmake or --without-hmake was given.
1308
 
if test "${with_hmake+set}" = set; then
1309
 
  withval="$with_hmake"
1310
 
  HMAKE=$withval
1311
 
fi;
1312
 
 
1313
 
 
1314
 
# Check whether --with-efence or --without-efence was given.
1315
 
if test "${with_efence+set}" = set; then
1316
 
  withval="$with_efence"
1317
 
  efence=$withval
1318
 
fi;
1319
 
 
1320
1283
# Make sure we can run config.sub.
1321
1284
$ac_config_sub sun4 >/dev/null 2>&1 ||
1322
1285
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371
1334
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372
1335
 
1373
1336
 
1374
 
echo "$as_me:$LINENO: checking target system type" >&5
1375
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1376
 
if test "${ac_cv_target+set}" = set; then
1377
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1378
 
else
1379
 
  ac_cv_target_alias=$target_alias
1380
 
test "x$ac_cv_target_alias" = "x" &&
1381
 
  ac_cv_target_alias=$ac_cv_host_alias
1382
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1383
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1384
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1385
 
   { (exit 1); exit 1; }; }
1386
 
 
1387
 
fi
1388
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1389
 
echo "${ECHO_T}$ac_cv_target" >&6
1390
 
target=$ac_cv_target
1391
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394
 
 
1395
 
 
1396
 
# The aliases save the names the user supplied, while $host etc.
1397
 
# will get canonicalized.
1398
 
test -n "$target_alias" &&
1399
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1400
 
    NONENONEs,x,x, &&
1401
 
  program_prefix=${target_alias}-
1402
 
 
1403
1337
case $host_os in
1404
1338
  *cygwin* ) CYGWIN=yes;;
1405
 
         * ) CYGWIN=no;;
 
1339
         * ) CYGWIN=no;;
1406
1340
esac
1407
1341
 
1408
 
 
1409
 
 
1410
 
HostPlatform=`/bin/sh $TOP/config.sub $host` || exit 1
1411
 
 
1412
 
 
1413
 
WHOLE_ARCHIVE_FLAG="--whole-archive"
1414
 
case $HostPlatform in
1415
 
powerpc-apple-darwin*)
1416
 
  WHOLE_ARCHIVE_FLAG="-all_load"
1417
 
esac;
 
1342
if test "$CYGWIN" = "yes"; then
 
1343
  TMPDIR="C:\TMP"
 
1344
fi
1418
1345
 
1419
1346
ac_ext=c
1420
1347
ac_cpp='$CPP $CPPFLAGS'
1752
1679
  (exit $ac_status); }
1753
1680
 
1754
1681
cat >conftest.$ac_ext <<_ACEOF
1755
 
#line $LINENO "configure"
1756
1682
/* confdefs.h.  */
1757
1683
_ACEOF
1758
1684
cat confdefs.h >>conftest.$ac_ext
1772
1698
# Try to create an executable without -o first, disregard a.out.
1773
1699
# It will help us diagnose broken compilers, and finding out an intuition
1774
1700
# of exeext.
1775
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1776
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1701
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1702
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1777
1703
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1778
1704
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1779
1705
  (eval $ac_link_default) 2>&5
1793
1719
  test -f "$ac_file" || continue
1794
1720
  case $ac_file in
1795
1721
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1796
 
        ;;
 
1722
        ;;
1797
1723
    conftest.$ac_ext )
1798
 
        # This is the source file.
1799
 
        ;;
 
1724
        # This is the source file.
 
1725
        ;;
1800
1726
    [ab].out )
1801
 
        # We found the default executable, but exeext='' is most
1802
 
        # certainly right.
1803
 
        break;;
 
1727
        # We found the default executable, but exeext='' is most
 
1728
        # certainly right.
 
1729
        break;;
1804
1730
    *.* )
1805
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1806
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1807
 
        # but it would be cool to find out if it's true.  Does anybody
1808
 
        # maintain Libtool? --akim.
1809
 
        export ac_cv_exeext
1810
 
        break;;
 
1731
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1732
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1733
        # but it would be cool to find out if it's true.  Does anybody
 
1734
        # maintain Libtool? --akim.
 
1735
        export ac_cv_exeext
 
1736
        break;;
1811
1737
    * )
1812
 
        break;;
 
1738
        break;;
1813
1739
  esac
1814
1740
done
1815
1741
else
1883
1809
  case $ac_file in
1884
1810
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1885
1811
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1886
 
          export ac_cv_exeext
1887
 
          break;;
 
1812
          export ac_cv_exeext
 
1813
          break;;
1888
1814
    * ) break;;
1889
1815
  esac
1890
1816
done
1909
1835
  echo $ECHO_N "(cached) $ECHO_C" >&6
1910
1836
else
1911
1837
  cat >conftest.$ac_ext <<_ACEOF
1912
 
#line $LINENO "configure"
1913
1838
/* confdefs.h.  */
1914
1839
_ACEOF
1915
1840
cat confdefs.h >>conftest.$ac_ext
1960
1885
  echo $ECHO_N "(cached) $ECHO_C" >&6
1961
1886
else
1962
1887
  cat >conftest.$ac_ext <<_ACEOF
1963
 
#line $LINENO "configure"
1964
1888
/* confdefs.h.  */
1965
1889
_ACEOF
1966
1890
cat confdefs.h >>conftest.$ac_ext
1980
1904
_ACEOF
1981
1905
rm -f conftest.$ac_objext
1982
1906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1983
 
  (eval $ac_compile) 2>&5
 
1907
  (eval $ac_compile) 2>conftest.er1
1984
1908
  ac_status=$?
 
1909
  grep -v '^ *+' conftest.er1 >conftest.err
 
1910
  rm -f conftest.er1
 
1911
  cat conftest.err >&5
1985
1912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986
1913
  (exit $ac_status); } &&
1987
 
         { ac_try='test -s conftest.$ac_objext'
 
1914
         { ac_try='test -z "$ac_c_werror_flag"
 
1915
                         || test ! -s conftest.err'
 
1916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1917
  (eval $ac_try) 2>&5
 
1918
  ac_status=$?
 
1919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1920
  (exit $ac_status); }; } &&
 
1921
         { ac_try='test -s conftest.$ac_objext'
1988
1922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989
1923
  (eval $ac_try) 2>&5
1990
1924
  ac_status=$?
1997
1931
 
1998
1932
ac_compiler_gnu=no
1999
1933
fi
2000
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
1934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2001
1935
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2002
1936
 
2003
1937
fi
2013
1947
  echo $ECHO_N "(cached) $ECHO_C" >&6
2014
1948
else
2015
1949
  cat >conftest.$ac_ext <<_ACEOF
2016
 
#line $LINENO "configure"
2017
1950
/* confdefs.h.  */
2018
1951
_ACEOF
2019
1952
cat confdefs.h >>conftest.$ac_ext
2030
1963
_ACEOF
2031
1964
rm -f conftest.$ac_objext
2032
1965
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033
 
  (eval $ac_compile) 2>&5
 
1966
  (eval $ac_compile) 2>conftest.er1
2034
1967
  ac_status=$?
 
1968
  grep -v '^ *+' conftest.er1 >conftest.err
 
1969
  rm -f conftest.er1
 
1970
  cat conftest.err >&5
2035
1971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036
1972
  (exit $ac_status); } &&
2037
 
         { ac_try='test -s conftest.$ac_objext'
 
1973
         { ac_try='test -z "$ac_c_werror_flag"
 
1974
                         || test ! -s conftest.err'
 
1975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1976
  (eval $ac_try) 2>&5
 
1977
  ac_status=$?
 
1978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1979
  (exit $ac_status); }; } &&
 
1980
         { ac_try='test -s conftest.$ac_objext'
2038
1981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039
1982
  (eval $ac_try) 2>&5
2040
1983
  ac_status=$?
2047
1990
 
2048
1991
ac_cv_prog_cc_g=no
2049
1992
fi
2050
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
1993
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2051
1994
fi
2052
1995
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2053
1996
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2074
2017
  ac_cv_prog_cc_stdc=no
2075
2018
ac_save_CC=$CC
2076
2019
cat >conftest.$ac_ext <<_ACEOF
2077
 
#line $LINENO "configure"
2078
2020
/* confdefs.h.  */
2079
2021
_ACEOF
2080
2022
cat confdefs.h >>conftest.$ac_ext
2102
2044
  va_end (v);
2103
2045
  return s;
2104
2046
}
 
2047
 
 
2048
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2049
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2050
   These don't provoke an error unfortunately, instead are silently treated
 
2051
   as 'x'.  The following induces an error, until -std1 is added to get
 
2052
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2053
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2054
   that's true only with -std1.  */
 
2055
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2056
 
2105
2057
int test (int i, double x);
2106
2058
struct s1 {int (*f) (int a);};
2107
2059
struct s2 {int (*f) (double a);};
2128
2080
  CC="$ac_save_CC $ac_arg"
2129
2081
  rm -f conftest.$ac_objext
2130
2082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131
 
  (eval $ac_compile) 2>&5
 
2083
  (eval $ac_compile) 2>conftest.er1
2132
2084
  ac_status=$?
 
2085
  grep -v '^ *+' conftest.er1 >conftest.err
 
2086
  rm -f conftest.er1
 
2087
  cat conftest.err >&5
2133
2088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134
2089
  (exit $ac_status); } &&
2135
 
         { ac_try='test -s conftest.$ac_objext'
 
2090
         { ac_try='test -z "$ac_c_werror_flag"
 
2091
                         || test ! -s conftest.err'
 
2092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2093
  (eval $ac_try) 2>&5
 
2094
  ac_status=$?
 
2095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2096
  (exit $ac_status); }; } &&
 
2097
         { ac_try='test -s conftest.$ac_objext'
2136
2098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137
2099
  (eval $ac_try) 2>&5
2138
2100
  ac_status=$?
2145
2107
sed 's/^/| /' conftest.$ac_ext >&5
2146
2108
 
2147
2109
fi
2148
 
rm -f conftest.$ac_objext
 
2110
rm -f conftest.err conftest.$ac_objext
2149
2111
done
2150
2112
rm -f conftest.$ac_ext conftest.$ac_objext
2151
2113
CC=$ac_save_CC
2173
2135
_ACEOF
2174
2136
rm -f conftest.$ac_objext
2175
2137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176
 
  (eval $ac_compile) 2>&5
 
2138
  (eval $ac_compile) 2>conftest.er1
2177
2139
  ac_status=$?
 
2140
  grep -v '^ *+' conftest.er1 >conftest.err
 
2141
  rm -f conftest.er1
 
2142
  cat conftest.err >&5
2178
2143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179
2144
  (exit $ac_status); } &&
2180
 
         { ac_try='test -s conftest.$ac_objext'
 
2145
         { ac_try='test -z "$ac_c_werror_flag"
 
2146
                         || test ! -s conftest.err'
 
2147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2148
  (eval $ac_try) 2>&5
 
2149
  ac_status=$?
 
2150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2151
  (exit $ac_status); }; } &&
 
2152
         { ac_try='test -s conftest.$ac_objext'
2181
2153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182
2154
  (eval $ac_try) 2>&5
2183
2155
  ac_status=$?
2184
2156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185
2157
  (exit $ac_status); }; }; then
2186
2158
  for ac_declaration in \
2187
 
   ''\
2188
 
   '#include <stdlib.h>' \
 
2159
   '' \
2189
2160
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2190
2161
   'extern "C" void std::exit (int); using std::exit;' \
2191
2162
   'extern "C" void exit (int) throw ();' \
2193
2164
   'void exit (int);'
2194
2165
do
2195
2166
  cat >conftest.$ac_ext <<_ACEOF
2196
 
#line $LINENO "configure"
2197
2167
/* confdefs.h.  */
2198
2168
_ACEOF
2199
2169
cat confdefs.h >>conftest.$ac_ext
2200
2170
cat >>conftest.$ac_ext <<_ACEOF
2201
2171
/* end confdefs.h.  */
 
2172
$ac_declaration
2202
2173
#include <stdlib.h>
2203
 
$ac_declaration
2204
2174
int
2205
2175
main ()
2206
2176
{
2211
2181
_ACEOF
2212
2182
rm -f conftest.$ac_objext
2213
2183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214
 
  (eval $ac_compile) 2>&5
 
2184
  (eval $ac_compile) 2>conftest.er1
2215
2185
  ac_status=$?
 
2186
  grep -v '^ *+' conftest.er1 >conftest.err
 
2187
  rm -f conftest.er1
 
2188
  cat conftest.err >&5
2216
2189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217
2190
  (exit $ac_status); } &&
2218
 
         { ac_try='test -s conftest.$ac_objext'
 
2191
         { ac_try='test -z "$ac_c_werror_flag"
 
2192
                         || test ! -s conftest.err'
 
2193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2194
  (eval $ac_try) 2>&5
 
2195
  ac_status=$?
 
2196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2197
  (exit $ac_status); }; } &&
 
2198
         { ac_try='test -s conftest.$ac_objext'
2219
2199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
2200
  (eval $ac_try) 2>&5
2221
2201
  ac_status=$?
2228
2208
 
2229
2209
continue
2230
2210
fi
2231
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232
2212
  cat >conftest.$ac_ext <<_ACEOF
2233
 
#line $LINENO "configure"
2234
2213
/* confdefs.h.  */
2235
2214
_ACEOF
2236
2215
cat confdefs.h >>conftest.$ac_ext
2247
2226
_ACEOF
2248
2227
rm -f conftest.$ac_objext
2249
2228
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250
 
  (eval $ac_compile) 2>&5
 
2229
  (eval $ac_compile) 2>conftest.er1
2251
2230
  ac_status=$?
 
2231
  grep -v '^ *+' conftest.er1 >conftest.err
 
2232
  rm -f conftest.er1
 
2233
  cat conftest.err >&5
2252
2234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253
2235
  (exit $ac_status); } &&
2254
 
         { ac_try='test -s conftest.$ac_objext'
 
2236
         { ac_try='test -z "$ac_c_werror_flag"
 
2237
                         || test ! -s conftest.err'
 
2238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2239
  (eval $ac_try) 2>&5
 
2240
  ac_status=$?
 
2241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2242
  (exit $ac_status); }; } &&
 
2243
         { ac_try='test -s conftest.$ac_objext'
2255
2244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256
2245
  (eval $ac_try) 2>&5
2257
2246
  ac_status=$?
2263
2252
sed 's/^/| /' conftest.$ac_ext >&5
2264
2253
 
2265
2254
fi
2266
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267
2256
done
2268
2257
rm -f conftest*
2269
2258
if test -n "$ac_declaration"; then
2277
2266
sed 's/^/| /' conftest.$ac_ext >&5
2278
2267
 
2279
2268
fi
2280
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2281
2270
ac_ext=c
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
2286
2275
 
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
2293
 
# AIX /bin/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
 
2276
ac_ext=c
 
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
 
2285
  CPP=
 
2286
fi
 
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
2304
2290
else
2305
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306
 
for as_dir in $PATH
 
2291
      # Double quotes because CPP needs to be expanded
 
2292
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2293
    do
 
2294
      ac_preproc_ok=false
 
2295
for ac_c_preproc_warn_flag in '' yes
2307
2296
do
2308
 
  IFS=$as_save_IFS
2309
 
  test -z "$as_dir" && as_dir=.
2310
 
  # Account for people who put trailing slashes in PATH elements.
2311
 
case $as_dir/ in
2312
 
  ./ | .// | /cC/* | \
2313
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2314
 
  /usr/ucb/* ) ;;
2315
 
  *)
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
2318
 
    # by default.
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.
2325
 
            :
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.
2329
 
            :
2330
 
          else
2331
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2332
 
            break 3
2333
 
          fi
2334
 
        fi
2335
 
      done
 
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
 
2304
/* confdefs.h.  */
 
2305
_ACEOF
 
2306
cat confdefs.h >>conftest.$ac_ext
 
2307
cat >>conftest.$ac_ext <<_ACEOF
 
2308
/* end confdefs.h.  */
 
2309
#ifdef __STDC__
 
2310
# include <limits.h>
 
2311
#else
 
2312
# include <assert.h>
 
2313
#endif
 
2314
                     Syntax error
 
2315
_ACEOF
 
2316
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2317
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2318
  ac_status=$?
 
2319
  grep -v '^ *+' conftest.er1 >conftest.err
 
2320
  rm -f conftest.er1
 
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
 
2327
  else
 
2328
    ac_cpp_err=
 
2329
  fi
 
2330
else
 
2331
  ac_cpp_err=yes
 
2332
fi
 
2333
if test -z "$ac_cpp_err"; then
 
2334
  :
 
2335
else
 
2336
  echo "$as_me: failed program was:" >&5
 
2337
sed 's/^/| /' conftest.$ac_ext >&5
 
2338
 
 
2339
  # Broken: fails on valid input.
 
2340
continue
 
2341
fi
 
2342
rm -f conftest.err conftest.$ac_ext
 
2343
 
 
2344
  # OK, works on sane cases.  Now check whether non-existent headers
 
2345
  # can be detected and how.
 
2346
  cat >conftest.$ac_ext <<_ACEOF
 
2347
/* confdefs.h.  */
 
2348
_ACEOF
 
2349
cat confdefs.h >>conftest.$ac_ext
 
2350
cat >>conftest.$ac_ext <<_ACEOF
 
2351
/* end confdefs.h.  */
 
2352
#include <ac_nonexistent.h>
 
2353
_ACEOF
 
2354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2355
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2356
  ac_status=$?
 
2357
  grep -v '^ *+' conftest.er1 >conftest.err
 
2358
  rm -f conftest.er1
 
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
 
2365
  else
 
2366
    ac_cpp_err=
 
2367
  fi
 
2368
else
 
2369
  ac_cpp_err=yes
 
2370
fi
 
2371
if test -z "$ac_cpp_err"; then
 
2372
  # Broken: success on invalid input.
 
2373
continue
 
2374
else
 
2375
  echo "$as_me: failed program was:" >&5
 
2376
sed 's/^/| /' conftest.$ac_ext >&5
 
2377
 
 
2378
  # Passes both tests.
 
2379
ac_preproc_ok=:
 
2380
break
 
2381
fi
 
2382
rm -f conftest.err conftest.$ac_ext
 
2383
 
 
2384
done
 
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
 
2388
  break
 
2389
fi
 
2390
 
2336
2391
    done
2337
 
    ;;
2338
 
esac
2339
 
done
2340
 
 
2341
 
 
2342
 
fi
2343
 
  if test "${ac_cv_path_install+set}" = set; then
2344
 
    INSTALL=$ac_cv_path_install
2345
 
  else
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
2351
 
  fi
2352
 
fi
2353
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2354
 
echo "${ECHO_T}$INSTALL" >&6
2355
 
 
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}'
2359
 
 
2360
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2361
 
 
2362
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2363
 
 
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
2370
 
else
2371
 
  case $AR in
2372
 
  [\\/]* | ?:[\\/]*)
2373
 
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
2374
 
  ;;
2375
 
  *)
2376
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377
 
for as_dir in $PATH
2378
 
do
2379
 
  IFS=$as_save_IFS
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
2385
 
    break 2
2386
 
  fi
2387
 
done
2388
 
done
2389
 
 
2390
 
  ;;
2391
 
esac
2392
 
fi
2393
 
AR=$ac_cv_path_AR
2394
 
 
2395
 
if test -n "$AR"; then
2396
 
  echo "$as_me:$LINENO: result: $AR" >&5
2397
 
echo "${ECHO_T}$AR" >&6
2398
 
else
2399
 
  echo "$as_me:$LINENO: result: no" >&5
2400
 
echo "${ECHO_T}no" >&6
2401
 
fi
2402
 
 
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
2409
 
else
2410
 
  case $BASENAME in
2411
 
  [\\/]* | ?:[\\/]*)
2412
 
  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
2413
 
  ;;
2414
 
  *)
2415
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416
 
for as_dir in $PATH
2417
 
do
2418
 
  IFS=$as_save_IFS
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
2424
 
    break 2
2425
 
  fi
2426
 
done
2427
 
done
2428
 
 
2429
 
  ;;
2430
 
esac
2431
 
fi
2432
 
BASENAME=$ac_cv_path_BASENAME
2433
 
 
2434
 
if test -n "$BASENAME"; then
2435
 
  echo "$as_me:$LINENO: result: $BASENAME" >&5
2436
 
echo "${ECHO_T}$BASENAME" >&6
2437
 
else
2438
 
  echo "$as_me:$LINENO: result: no" >&5
2439
 
echo "${ECHO_T}no" >&6
2440
 
fi
2441
 
 
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
2448
 
else
2449
 
  case $CP in
2450
 
  [\\/]* | ?:[\\/]*)
2451
 
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
2452
 
  ;;
2453
 
  *)
2454
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
 
for as_dir in $PATH
2456
 
do
2457
 
  IFS=$as_save_IFS
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
2463
 
    break 2
2464
 
  fi
2465
 
done
2466
 
done
2467
 
 
2468
 
  ;;
2469
 
esac
2470
 
fi
2471
 
CP=$ac_cv_path_CP
2472
 
 
2473
 
if test -n "$CP"; then
2474
 
  echo "$as_me:$LINENO: result: $CP" >&5
2475
 
echo "${ECHO_T}$CP" >&6
2476
 
else
2477
 
  echo "$as_me:$LINENO: result: no" >&5
2478
 
echo "${ECHO_T}no" >&6
2479
 
fi
2480
 
 
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
2487
 
else
2488
 
  case $DIRNAME in
2489
 
  [\\/]* | ?:[\\/]*)
2490
 
  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2491
 
  ;;
2492
 
  *)
2493
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494
 
for as_dir in $PATH
2495
 
do
2496
 
  IFS=$as_save_IFS
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
2502
 
    break 2
2503
 
  fi
2504
 
done
2505
 
done
2506
 
 
2507
 
  ;;
2508
 
esac
2509
 
fi
2510
 
DIRNAME=$ac_cv_path_DIRNAME
2511
 
 
2512
 
if test -n "$DIRNAME"; then
2513
 
  echo "$as_me:$LINENO: result: $DIRNAME" >&5
2514
 
echo "${ECHO_T}$DIRNAME" >&6
2515
 
else
2516
 
  echo "$as_me:$LINENO: result: no" >&5
2517
 
echo "${ECHO_T}no" >&6
2518
 
fi
2519
 
 
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
2526
 
else
2527
 
  case $FIND in
2528
 
  [\\/]* | ?:[\\/]*)
2529
 
  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
2530
 
  ;;
2531
 
  *)
2532
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533
 
for as_dir in $PATH
2534
 
do
2535
 
  IFS=$as_save_IFS
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
2541
 
    break 2
2542
 
  fi
2543
 
done
2544
 
done
2545
 
 
2546
 
  ;;
2547
 
esac
2548
 
fi
2549
 
FIND=$ac_cv_path_FIND
2550
 
 
2551
 
if test -n "$FIND"; then
2552
 
  echo "$as_me:$LINENO: result: $FIND" >&5
2553
 
echo "${ECHO_T}$FIND" >&6
2554
 
else
2555
 
  echo "$as_me:$LINENO: result: no" >&5
2556
 
echo "${ECHO_T}no" >&6
2557
 
fi
2558
 
 
2559
 
# Extract the first word of "grep", so it can be a program name with args.
2560
 
set dummy grep; ac_word=$2
 
2392
    ac_cv_prog_CPP=$CPP
 
2393
 
 
2394
fi
 
2395
  CPP=$ac_cv_prog_CPP
 
2396
else
 
2397
  ac_cv_prog_CPP=$CPP
 
2398
fi
 
2399
echo "$as_me:$LINENO: result: $CPP" >&5
 
2400
echo "${ECHO_T}$CPP" >&6
 
2401
ac_preproc_ok=false
 
2402
for ac_c_preproc_warn_flag in '' yes
 
2403
do
 
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
 
2411
/* confdefs.h.  */
 
2412
_ACEOF
 
2413
cat confdefs.h >>conftest.$ac_ext
 
2414
cat >>conftest.$ac_ext <<_ACEOF
 
2415
/* end confdefs.h.  */
 
2416
#ifdef __STDC__
 
2417
# include <limits.h>
 
2418
#else
 
2419
# include <assert.h>
 
2420
#endif
 
2421
                     Syntax error
 
2422
_ACEOF
 
2423
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2424
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2425
  ac_status=$?
 
2426
  grep -v '^ *+' conftest.er1 >conftest.err
 
2427
  rm -f conftest.er1
 
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
 
2434
  else
 
2435
    ac_cpp_err=
 
2436
  fi
 
2437
else
 
2438
  ac_cpp_err=yes
 
2439
fi
 
2440
if test -z "$ac_cpp_err"; then
 
2441
  :
 
2442
else
 
2443
  echo "$as_me: failed program was:" >&5
 
2444
sed 's/^/| /' conftest.$ac_ext >&5
 
2445
 
 
2446
  # Broken: fails on valid input.
 
2447
continue
 
2448
fi
 
2449
rm -f conftest.err conftest.$ac_ext
 
2450
 
 
2451
  # OK, works on sane cases.  Now check whether non-existent headers
 
2452
  # can be detected and how.
 
2453
  cat >conftest.$ac_ext <<_ACEOF
 
2454
/* confdefs.h.  */
 
2455
_ACEOF
 
2456
cat confdefs.h >>conftest.$ac_ext
 
2457
cat >>conftest.$ac_ext <<_ACEOF
 
2458
/* end confdefs.h.  */
 
2459
#include <ac_nonexistent.h>
 
2460
_ACEOF
 
2461
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2462
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2463
  ac_status=$?
 
2464
  grep -v '^ *+' conftest.er1 >conftest.err
 
2465
  rm -f conftest.er1
 
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
 
2472
  else
 
2473
    ac_cpp_err=
 
2474
  fi
 
2475
else
 
2476
  ac_cpp_err=yes
 
2477
fi
 
2478
if test -z "$ac_cpp_err"; then
 
2479
  # Broken: success on invalid input.
 
2480
continue
 
2481
else
 
2482
  echo "$as_me: failed program was:" >&5
 
2483
sed 's/^/| /' conftest.$ac_ext >&5
 
2484
 
 
2485
  # Passes both tests.
 
2486
ac_preproc_ok=:
 
2487
break
 
2488
fi
 
2489
rm -f conftest.err conftest.$ac_ext
 
2490
 
 
2491
done
 
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
 
2495
  :
 
2496
else
 
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; }; }
 
2502
fi
 
2503
 
 
2504
ac_ext=c
 
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
 
2509
 
 
2510
for ac_prog in egrep grep
 
2511
do
 
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
2596
2549
fi
2597
2550
 
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
2604
 
else
2605
 
  case $HEAD in
2606
 
  [\\/]* | ?:[\\/]*)
2607
 
  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
2608
 
  ;;
2609
 
  *)
2610
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611
 
for as_dir in $PATH
2612
 
do
2613
 
  IFS=$as_save_IFS
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
2619
 
    break 2
2620
 
  fi
2621
 
done
2622
 
done
2623
 
 
2624
 
  ;;
2625
 
esac
2626
 
fi
2627
 
HEAD=$ac_cv_path_HEAD
2628
 
 
2629
 
if test -n "$HEAD"; then
2630
 
  echo "$as_me:$LINENO: result: $HEAD" >&5
2631
 
echo "${ECHO_T}$HEAD" >&6
2632
 
else
2633
 
  echo "$as_me:$LINENO: result: no" >&5
2634
 
echo "${ECHO_T}no" >&6
2635
 
fi
2636
 
 
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
2643
 
else
2644
 
  case $HAPPY in
2645
 
  [\\/]* | ?:[\\/]*)
2646
 
  ac_cv_path_HAPPY="$HAPPY" # Let the user override the test with a path.
2647
 
  ;;
2648
 
  *)
2649
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650
 
for as_dir in $PATH
2651
 
do
2652
 
  IFS=$as_save_IFS
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
2658
 
    break 2
2659
 
  fi
2660
 
done
2661
 
done
2662
 
 
2663
 
  ;;
2664
 
esac
2665
 
fi
2666
 
HAPPY=$ac_cv_path_HAPPY
2667
 
 
2668
 
if test -n "$HAPPY"; then
2669
 
  echo "$as_me:$LINENO: result: $HAPPY" >&5
2670
 
echo "${ECHO_T}$HAPPY" >&6
2671
 
else
2672
 
  echo "$as_me:$LINENO: result: no" >&5
2673
 
echo "${ECHO_T}no" >&6
2674
 
fi
2675
 
 
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
2682
 
else
2683
 
  case $HSTAGS in
2684
 
  [\\/]* | ?:[\\/]*)
2685
 
  ac_cv_path_HSTAGS="$HSTAGS" # Let the user override the test with a path.
2686
 
  ;;
2687
 
  *)
2688
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689
 
for as_dir in $PATH
2690
 
do
2691
 
  IFS=$as_save_IFS
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
2697
 
    break 2
2698
 
  fi
2699
 
done
2700
 
done
2701
 
 
2702
 
  test -z "$ac_cv_path_HSTAGS" && ac_cv_path_HSTAGS="no-hstags-available"
2703
 
  ;;
2704
 
esac
2705
 
fi
2706
 
HSTAGS=$ac_cv_path_HSTAGS
2707
 
 
2708
 
if test -n "$HSTAGS"; then
2709
 
  echo "$as_me:$LINENO: result: $HSTAGS" >&5
2710
 
echo "${ECHO_T}$HSTAGS" >&6
2711
 
else
2712
 
  echo "$as_me:$LINENO: result: no" >&5
2713
 
echo "${ECHO_T}no" >&6
2714
 
fi
2715
 
 
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
2722
 
else
2723
 
  case $LN in
2724
 
  [\\/]* | ?:[\\/]*)
2725
 
  ac_cv_path_LN="$LN" # Let the user override the test with a path.
2726
 
  ;;
2727
 
  *)
2728
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729
 
for as_dir in $PATH
2730
 
do
2731
 
  IFS=$as_save_IFS
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
2737
 
    break 2
2738
 
  fi
2739
 
done
2740
 
done
2741
 
 
2742
 
  ;;
2743
 
esac
2744
 
fi
2745
 
LN=$ac_cv_path_LN
2746
 
 
2747
 
if test -n "$LN"; then
2748
 
  echo "$as_me:$LINENO: result: $LN" >&5
2749
 
echo "${ECHO_T}$LN" >&6
2750
 
else
2751
 
  echo "$as_me:$LINENO: result: no" >&5
2752
 
echo "${ECHO_T}no" >&6
2753
 
fi
2754
 
 
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
2761
 
else
2762
 
  case $LNDIR in
2763
 
  [\\/]* | ?:[\\/]*)
2764
 
  ac_cv_path_LNDIR="$LNDIR" # Let the user override the test with a path.
2765
 
  ;;
2766
 
  *)
2767
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768
 
for as_dir in $PATH
2769
 
do
2770
 
  IFS=$as_save_IFS
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
2776
 
    break 2
2777
 
  fi
2778
 
done
2779
 
done
2780
 
 
2781
 
  ;;
2782
 
esac
2783
 
fi
2784
 
LNDIR=$ac_cv_path_LNDIR
2785
 
 
2786
 
if test -n "$LNDIR"; then
2787
 
  echo "$as_me:$LINENO: result: $LNDIR" >&5
2788
 
echo "${ECHO_T}$LNDIR" >&6
2789
 
else
2790
 
  echo "$as_me:$LINENO: result: no" >&5
2791
 
echo "${ECHO_T}no" >&6
2792
 
fi
2793
 
 
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
2800
 
else
2801
 
  case $MV in
2802
 
  [\\/]* | ?:[\\/]*)
2803
 
  ac_cv_path_MV="$MV" # Let the user override the test with a path.
2804
 
  ;;
2805
 
  *)
2806
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807
 
for as_dir in $PATH
2808
 
do
2809
 
  IFS=$as_save_IFS
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
2815
 
    break 2
2816
 
  fi
2817
 
done
2818
 
done
2819
 
 
2820
 
  ;;
2821
 
esac
2822
 
fi
2823
 
MV=$ac_cv_path_MV
2824
 
 
2825
 
if test -n "$MV"; then
2826
 
  echo "$as_me:$LINENO: result: $MV" >&5
2827
 
echo "${ECHO_T}$MV" >&6
2828
 
else
2829
 
  echo "$as_me:$LINENO: result: no" >&5
2830
 
echo "${ECHO_T}no" >&6
2831
 
fi
 
2551
  test -n "$GREP" && break
 
2552
done
2832
2553
 
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
2870
2591
fi
2871
2592
 
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
2878
 
else
2879
 
  case $SHELL in
2880
 
  [\\/]* | ?:[\\/]*)
2881
 
  ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2882
 
  ;;
2883
 
  *)
2884
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885
 
for as_dir in $PATH
2886
 
do
2887
 
  IFS=$as_save_IFS
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
2893
 
    break 2
2894
 
  fi
2895
 
done
2896
 
done
2897
 
 
2898
 
  ;;
2899
 
esac
2900
 
fi
2901
 
SHELL=$ac_cv_path_SHELL
2902
 
 
2903
 
if test -n "$SHELL"; then
2904
 
  echo "$as_me:$LINENO: result: $SHELL" >&5
2905
 
echo "${ECHO_T}$SHELL" >&6
2906
 
else
2907
 
  echo "$as_me:$LINENO: result: no" >&5
2908
 
echo "${ECHO_T}no" >&6
2909
 
fi
2910
 
 
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
2917
 
else
2918
 
  case $TAR in
2919
 
  [\\/]* | ?:[\\/]*)
2920
 
  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2921
 
  ;;
2922
 
  *)
2923
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924
 
for as_dir in $PATH
2925
 
do
2926
 
  IFS=$as_save_IFS
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
2932
 
    break 2
2933
 
  fi
2934
 
done
2935
 
done
2936
 
 
2937
 
  ;;
2938
 
esac
2939
 
fi
2940
 
TAR=$ac_cv_path_TAR
2941
 
 
2942
 
if test -n "$TAR"; then
2943
 
  echo "$as_me:$LINENO: result: $TAR" >&5
2944
 
echo "${ECHO_T}$TAR" >&6
2945
 
else
2946
 
  echo "$as_me:$LINENO: result: no" >&5
2947
 
echo "${ECHO_T}no" >&6
2948
 
fi
2949
 
 
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
2956
 
else
2957
 
  case $TOUCH in
2958
 
  [\\/]* | ?:[\\/]*)
2959
 
  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2960
 
  ;;
2961
 
  *)
2962
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963
 
for as_dir in $PATH
2964
 
do
2965
 
  IFS=$as_save_IFS
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
2971
 
    break 2
2972
 
  fi
2973
 
done
2974
 
done
2975
 
 
2976
 
  ;;
2977
 
esac
2978
 
fi
2979
 
TOUCH=$ac_cv_path_TOUCH
2980
 
 
2981
 
if test -n "$TOUCH"; then
2982
 
  echo "$as_me:$LINENO: result: $TOUCH" >&5
2983
 
echo "${ECHO_T}$TOUCH" >&6
2984
 
else
2985
 
  echo "$as_me:$LINENO: result: no" >&5
2986
 
echo "${ECHO_T}no" >&6
2987
 
fi
2988
 
 
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
2995
 
else
2996
 
  case $UNAME in
2997
 
  [\\/]* | ?:[\\/]*)
2998
 
  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2999
 
  ;;
3000
 
  *)
3001
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002
 
for as_dir in $PATH
3003
 
do
3004
 
  IFS=$as_save_IFS
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
3010
 
    break 2
3011
 
  fi
3012
 
done
3013
 
done
3014
 
 
3015
 
  ;;
3016
 
esac
3017
 
fi
3018
 
UNAME=$ac_cv_path_UNAME
3019
 
 
3020
 
if test -n "$UNAME"; then
3021
 
  echo "$as_me:$LINENO: result: $UNAME" >&5
3022
 
echo "${ECHO_T}$UNAME" >&6
3023
 
else
3024
 
  echo "$as_me:$LINENO: result: no" >&5
3025
 
echo "${ECHO_T}no" >&6
3026
 
fi
3027
 
 
3028
 
 
3029
 
$LNDIR 2>&1 | grep silent >/dev/null && LNDIR="$LNDIR -silent"
3030
 
 
3031
 
for ac_prog in $HC ghc nhc98
3032
 
do
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
3039
 
else
3040
 
  case $HC in
3041
 
  [\\/]* | ?:[\\/]*)
3042
 
  ac_cv_path_HC="$HC" # Let the user override the test with a path.
3043
 
  ;;
3044
 
  *)
3045
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046
 
for as_dir in $PATH
3047
 
do
3048
 
  IFS=$as_save_IFS
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
3054
 
    break 2
3055
 
  fi
3056
 
done
3057
 
done
3058
 
 
3059
 
  ;;
3060
 
esac
3061
 
fi
3062
 
HC=$ac_cv_path_HC
3063
 
 
3064
 
if test -n "$HC"; then
3065
 
  echo "$as_me:$LINENO: result: $HC" >&5
3066
 
echo "${ECHO_T}$HC" >&6
3067
 
else
3068
 
  echo "$as_me:$LINENO: result: no" >&5
3069
 
echo "${ECHO_T}no" >&6
3070
 
fi
3071
 
 
3072
 
  test -n "$HC" && break
3073
 
done
3074
 
 
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; }; }
3083
 
fi
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; }; }
3088
 
fi
3089
 
 
3090
 
case `$BASENAME $HC` in
3091
 
  ghc*) hc_base=ghc;;
3092
 
  nhc98*) hc_base=nhc98;;
3093
 
esac
3094
 
 
3095
 
if test $hc_base = ghc; then
3096
 
    GHC=$HC
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
3101
 
else
3102
 
  ${GHC-ghc} --version > conftestghc 2>&1
3103
 
  cat conftestghc >&5
3104
 
  ctk_cv_ghc_version=`cat conftestghc | sed -n -e 's/, patchlevel *\([0-9]\)/.\1/;s/.* version \([0-9.][0-9.]*\).*/\1/p'`
3105
 
  rm -fr conftest*
3106
 
  if test "$ctk_cv_ghc_version" = ""
3107
 
  then
3108
 
    ctk_cv_ghc_version='unknown'
3109
 
  fi
3110
 
fi
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" = ""
3117
 
then
3118
 
  ctk_cv_ghc_version_all="$ctk_cv_ghc_version_major.$ctk_cv_ghc_version_minor"
3119
 
  ctk_cv_ghc_version_pl="0"
3120
 
else
3121
 
  ctk_cv_ghc_version_all="$ctk_cv_ghc_version_major.$ctk_cv_ghc_version_minor.$ctk_cv_ghc_version_pl"
3122
 
fi
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"
3127
 
 
3128
 
  if ( IFS=".";
3129
 
      a="$hc_vers";  b="4.08";
3130
 
      while test -n "$a$b"
3131
 
      do
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
3136
 
      done
3137
 
      test ${h1} -lt ${h2}
3138
 
    )
3139
 
then
3140
 
 
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; }; }
3146
 
 
3147
 
fi
3148
 
      SYS=ghc$hc_maj_vers
3149
 
  HIDIROPT=-i
3150
 
fi
3151
 
 
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
3157
 
else
3158
 
 
3159
 
    ctk_cv_prog_nhc98_version=`$HC --version 2>&1 | $HEAD -n 1 | $SED -e 's/.*v\([0-9]\)\.\([0-9]*\).*/\1.\2/'`
3160
 
 
3161
 
fi
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; }; }
3172
 
  fi
3173
 
      SYS=nhc$hc_maj_vers
3174
 
  HIDIROPT=-I
3175
 
fi
3176
 
 
3177
 
if test -z "$HCFLAGS"; then
3178
 
  HCFLAGS=-O
3179
 
  if test $hc_base = ghc; then
3180
 
    HCFLAGS="$HCFLAGS -recomp -fno-warn-incomplete-patterns"
3181
 
  fi
3182
 
  if test $ghc_native = yes; then
3183
 
    HCFLAGS="$HCFLAGS -fasm"
3184
 
  fi
3185
 
fi
3186
 
 
3187
 
PACKAGES=""
3188
 
SYSFEATURES=""
3189
 
if test $hc_base = ghc; then
3190
 
 
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
3195
 
else
3196
 
 
3197
 
for ctk_syslib in haskell98 not-found ; do
3198
 
rm -rf conftest*
3199
 
cat > conftest.hs <<EOF
3200
 
import List
3201
 
EOF
3202
 
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs  > /dev/null 2> /dev/null && break
3203
 
done
3204
 
rm -rf conftest*
3205
 
ctk_cv_syslib_List=$ctk_syslib
3206
 
 
3207
 
fi
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
3211
 
 
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; }; }
3216
 
  fi
3217
 
  PACKAGES="$PACKAGES $syslib_List"
3218
 
 
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
3223
 
else
3224
 
 
3225
 
for ctk_syslib in posix not-found ; do
3226
 
rm -rf conftest*
3227
 
cat > conftest.hs <<EOF
3228
 
import Posix
3229
 
EOF
3230
 
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs  > /dev/null 2> /dev/null && break
3231
 
done
3232
 
rm -rf conftest*
3233
 
ctk_cv_syslib_Posix=$ctk_syslib
3234
 
 
3235
 
fi
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
3239
 
 
3240
 
  if test $syslib_Posix != not-found; then
3241
 
    PACKAGES="$PACKAGES posix"
3242
 
    SYSFEATURES="$SYSFEATURES posix"
3243
 
  fi
3244
 
 
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
3249
 
else
3250
 
 
3251
 
for ctk_syslib in lang exts not-found ; do
3252
 
rm -rf conftest*
3253
 
cat > conftest.hs <<EOF
3254
 
import IOExts
3255
 
EOF
3256
 
$HC -M -optdep-f -optdepconftest.dep -package $ctk_syslib conftest.hs  > /dev/null 2> /dev/null && break
3257
 
done
3258
 
rm -rf conftest*
3259
 
ctk_cv_syslib_IOExts=$ctk_syslib
3260
 
 
3261
 
fi
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
3265
 
 
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; }; }
3270
 
  fi
3271
 
  PACKAGES="$PACKAGES $syslib_IOExts"
3272
 
  HASPKG=yes
3273
 
fi
3274
 
if test $hc_base = nhc98; then
3275
 
  HASPKG=no
3276
 
fi
3277
 
 
3278
 
if test $hc_base = ghc; then
3279
 
  MKDEPENDHS="$HC -M"
3280
 
fi
3281
 
if test $SYS = nhc1; then
3282
 
    for ac_prog in hmake
3283
 
do
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
3290
 
else
3291
 
  case $HMAKE in
3292
 
  [\\/]* | ?:[\\/]*)
3293
 
  ac_cv_path_HMAKE="$HMAKE" # Let the user override the test with a path.
3294
 
  ;;
3295
 
  *)
3296
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297
 
for as_dir in $PATH
3298
 
do
3299
 
  IFS=$as_save_IFS
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
3305
 
    break 2
3306
 
  fi
3307
 
done
3308
 
done
3309
 
 
3310
 
  ;;
3311
 
esac
3312
 
fi
3313
 
HMAKE=$ac_cv_path_HMAKE
3314
 
 
3315
 
if test -n "$HMAKE"; then
3316
 
  echo "$as_me:$LINENO: result: $HMAKE" >&5
3317
 
echo "${ECHO_T}$HMAKE" >&6
3318
 
else
3319
 
  echo "$as_me:$LINENO: result: no" >&5
3320
 
echo "${ECHO_T}no" >&6
3321
 
fi
3322
 
 
3323
 
  test -n "$HMAKE" && break
3324
 
done
3325
 
 
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; }; }
3332
 
  fi
3333
 
  MKDEPENDHS="$HMAKE -n -M -nhc98"
3334
 
fi
3335
 
echo "$as_me:$LINENO: result: selecting mkdependHS... $MKDEPENDHS" >&5
3336
 
echo "${ECHO_T}selecting mkdependHS... $MKDEPENDHS" >&6
3337
 
 
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; }; }
3344
 
fi
3345
 
 
3346
 
 
3347
 
if test x$efence = xyes; then
3348
 
 
3349
 
 
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
3354
 
else
3355
 
  ac_check_lib_save_LIBS=$LIBS
3356
 
LIBS="-lefence  $LIBS"
3357
 
cat >conftest.$ac_ext <<_ACEOF
3358
 
#line $LINENO "configure"
3359
 
/* confdefs.h.  */
3360
 
_ACEOF
3361
 
cat confdefs.h >>conftest.$ac_ext
3362
 
cat >>conftest.$ac_ext <<_ACEOF
3363
 
/* end confdefs.h.  */
3364
 
 
3365
 
/* Override any gcc2 internal prototype to avoid an error.  */
3366
 
#ifdef __cplusplus
3367
 
extern "C"
3368
 
#endif
3369
 
/* We use char because int might match the return type of a gcc2
3370
 
   builtin and then its argument prototype would still apply.  */
3371
 
char malloc ();
3372
 
int
3373
 
main ()
3374
 
{
3375
 
malloc ();
3376
 
  ;
3377
 
  return 0;
3378
 
}
3379
 
_ACEOF
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
3383
 
  ac_status=$?
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
3388
 
  (eval $ac_try) 2>&5
3389
 
  ac_status=$?
3390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391
 
  (exit $ac_status); }; }; then
3392
 
  ac_cv_lib_efence_malloc=yes
3393
 
else
3394
 
  echo "$as_me: failed program was:" >&5
3395
 
sed 's/^/| /' conftest.$ac_ext >&5
3396
 
 
3397
 
ac_cv_lib_efence_malloc=no
3398
 
fi
3399
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3400
 
LIBS=$ac_check_lib_save_LIBS
3401
 
fi
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
3407
 
_ACEOF
3408
 
 
3409
 
  LIBS="-lefence $LIBS"
3410
 
 
3411
 
else
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; }; }
3415
 
fi
3416
 
 
3417
 
fi
3418
 
 
3419
 
 
3420
 
PACKAGES_STRINGS=""
3421
 
for pkg_name in $PACKAGES; do
3422
 
  if test -z "$PACKAGES_STRINGS"; then
3423
 
    PACKAGES_STRINGS="\"$pkg_name\""
3424
 
  else
3425
 
    PACKAGES_STRINGS="$PACKAGES_STRINGS, \"$pkg_name\""
3426
 
  fi
3427
 
done
3428
 
IMPORT_DIRS=""
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\""
3433
 
    else
3434
 
      IMPORT_DIRS="$IMPORT_DIRS, \"$TOP/$dir\""
3435
 
    fi
3436
 
  fi
3437
 
done
3438
 
LIBRARY_DIRS="\"$TOP/base\""
3439
 
 
3440
 
 
3441
 
 
3442
 
 
3443
 
 
3444
 
 
3445
 
 
3446
 
 
3447
 
 
3448
 
 
3449
 
 
3450
 
 
3451
 
 
3452
 
 
3453
 
 
3454
 
 
3455
 
                    ac_config_files="$ac_config_files mk/config.mk base/base.build.conf"
 
2593
 
 
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:[      ]*//'`
 
2602
 
 
2603
 
 
2604
 
 
2605
 
 
2606
 
 
2607
 
 
2608
 
 
2609
 
 
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
3481
2637
      # `set' does not quote correctly, so add quotes (double-quote
3482
2638
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3483
2639
      sed -n \
3484
 
        "s/'/'\\\\''/g;
3485
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
2640
        "s/'/'\\\\''/g;
 
2641
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3486
2642
      ;;
3487
2643
    *)
3488
2644
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3489
2645
      sed -n \
3490
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2646
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3491
2647
      ;;
3492
2648
    esac;
3493
2649
} |
3517
2673
# trailing colons and then remove the whole line if VPATH becomes empty
3518
2674
# (actually we leave an empty line to preserve line numbers).
3519
2675
if test "x$srcdir" = x.; then
3520
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
2676
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3521
2677
s/:*\$(srcdir):*/:/;
3522
2678
s/:*\${srcdir}:*/:/;
3523
2679
s/:*@srcdir@:*/:/;
3524
 
s/^\([^=]*=[    ]*\):*/\1/;
 
2680
s/^\([^=]*=[     ]*\):*/\1/;
3525
2681
s/:*$//;
3526
 
s/^[^=]*=[      ]*$//;
 
2682
s/^[^=]*=[       ]*$//;
3527
2683
}'
3528
2684
fi
3529
2685
 
3537
2693
cat >confdef2opt.sed <<\_ACEOF
3538
2694
t clear
3539
2695
: clear
3540
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
2696
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3541
2697
t quote
3542
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
2698
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3543
2699
t quote
3544
2700
d
3545
2701
: quote
3546
 
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
2702
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3547
2703
s,\[,\\&,g
3548
2704
s,\],\\&,g
3549
2705
s,\$,$$,g
3565
2721
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3566
2722
  # 1. Remove the extension, and $U if already installed.
3567
2723
  ac_i=`echo "$ac_i" |
3568
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
2724
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3569
2725
  # 2. Add them.
3570
2726
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3571
2727
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3609
2765
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3610
2766
  set -o posix
3611
2767
fi
 
2768
DUALCASE=1; export DUALCASE # for MKS sh
3612
2769
 
3613
2770
# Support unset when possible.
3614
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
2771
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3615
2772
  as_unset=unset
3616
2773
else
3617
2774
  as_unset=false
3630
2787
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3631
2788
  LC_TELEPHONE LC_TIME
3632
2789
do
3633
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
2790
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3634
2791
    eval $as_var=C; export $as_var
3635
2792
  else
3636
2793
    $as_unset $as_var
3809
2966
if mkdir -p . 2>/dev/null; then
3810
2967
  as_mkdir_p=:
3811
2968
else
 
2969
  test -d ./-p && rmdir ./-p
3812
2970
  as_mkdir_p=false
3813
2971
fi
3814
2972
 
3815
2973
as_executable_p="test -f"
3816
2974
 
3817
2975
# Sed expression to map a string onto a valid CPP name.
3818
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
2976
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3819
2977
 
3820
2978
# Sed expression to map a string onto a valid variable name.
3821
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
2979
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3822
2980
 
3823
2981
 
3824
2982
# IFS
3845
3003
cat >&5 <<_CSEOF
3846
3004
 
3847
3005
This file was extended by $as_me, which was
3848
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
3006
generated by GNU Autoconf 2.59.  Invocation command line was
3849
3007
 
3850
3008
  CONFIG_FILES    = $CONFIG_FILES
3851
3009
  CONFIG_HEADERS  = $CONFIG_HEADERS
3889
3047
  -d, --debug      don't remove temporary files
3890
3048
      --recheck    update $as_me by reconfiguring in the same conditions
3891
3049
  --file=FILE[:TEMPLATE]
3892
 
                   instantiate the configuration file FILE
 
3050
                   instantiate the configuration file FILE
3893
3051
 
3894
3052
Configuration files:
3895
3053
$config_files
3896
3054
 
 
3055
Configuration commands:
 
3056
$config_commands
 
3057
 
3897
3058
Report bugs to <bug-autoconf@gnu.org>."
3898
3059
_ACEOF
3899
3060
 
3900
3061
cat >>$CONFIG_STATUS <<_ACEOF
3901
3062
ac_cs_version="\\
3902
3063
config.status
3903
 
configured by $0, generated by GNU Autoconf 2.57,
 
3064
configured by $0, generated by GNU Autoconf 2.59,
3904
3065
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3905
3066
 
3906
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3907
 
Free Software Foundation, Inc.
 
3067
Copyright (C) 2003 Free Software Foundation, Inc.
3908
3068
This config.status script is free software; the Free Software Foundation
3909
3069
gives unlimited permission to copy, distribute and modify it."
3910
3070
srcdir=$srcdir
3911
 
INSTALL="$INSTALL"
3912
3071
_ACEOF
3913
3072
 
3914
3073
cat >>$CONFIG_STATUS <<\_ACEOF
4003
3162
do
4004
3163
  case "$ac_config_target" in
4005
3164
  # Handling of arguments.
4006
 
  "mk/config.mk" ) CONFIG_FILES="$CONFIG_FILES mk/config.mk" ;;
4007
 
  "base/base.build.conf" ) CONFIG_FILES="$CONFIG_FILES base/base.build.conf" ;;
 
3165
  "c2hs/toplevel/Version.hs" ) CONFIG_FILES="$CONFIG_FILES c2hs/toplevel/Version.hs" ;;
 
3166
  "c2hs/toplevel/C2HSConfig.hs" ) CONFIG_FILES="$CONFIG_FILES c2hs/toplevel/C2HSConfig.hs" ;;
 
3167
  "c2hs/c2hs-inplace" ) CONFIG_FILES="$CONFIG_FILES c2hs/c2hs-inplace" ;;
 
3168
  "c2hs/c2hs" ) CONFIG_FILES="$CONFIG_FILES c2hs/c2hs" ;;
 
3169
  "postInst.sh" ) CONFIG_FILES="$CONFIG_FILES postInst.sh" ;;
 
3170
  "c2hs.spec" ) CONFIG_FILES="$CONFIG_FILES c2hs.spec" ;;
 
3171
  "doc/c2hs/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/c2hs/Makefile" ;;
 
3172
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4008
3173
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4009
3174
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4010
3175
   { (exit 1); exit 1; }; };;
4017
3182
# bizarre bug on SunOS 4.1.3.
4018
3183
if $ac_need_defaults; then
4019
3184
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
3185
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4020
3186
fi
4021
3187
 
4022
3188
# Have a temporary directory for convenience.  Make it in the build tree
4088
3254
s,@ECHO_N@,$ECHO_N,;t t
4089
3255
s,@ECHO_T@,$ECHO_T,;t t
4090
3256
s,@LIBS@,$LIBS,;t t
4091
 
s,@subdirs@,$subdirs,;t t
4092
3257
s,@build@,$build,;t t
4093
3258
s,@build_cpu@,$build_cpu,;t t
4094
3259
s,@build_vendor@,$build_vendor,;t t
4097
3262
s,@host_cpu@,$host_cpu,;t t
4098
3263
s,@host_vendor@,$host_vendor,;t t
4099
3264
s,@host_os@,$host_os,;t t
4100
 
s,@target@,$target,;t t
4101
 
s,@target_cpu@,$target_cpu,;t t
4102
 
s,@target_vendor@,$target_vendor,;t t
4103
 
s,@target_os@,$target_os,;t t
4104
3265
s,@CC@,$CC,;t t
4105
3266
s,@CFLAGS@,$CFLAGS,;t t
4106
3267
s,@LDFLAGS@,$LDFLAGS,;t t
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
4114
 
s,@AR@,$AR,;t t
4115
 
s,@BASENAME@,$BASENAME,;t t
4116
 
s,@CP@,$CP,;t t
4117
 
s,@DIRNAME@,$DIRNAME,;t t
4118
 
s,@FIND@,$FIND,;t t
 
3272
s,@CPP@,$CPP,;t t
4119
3273
s,@GREP@,$GREP,;t t
4120
 
s,@HEAD@,$HEAD,;t t
4121
 
s,@HAPPY@,$HAPPY,;t t
4122
 
s,@HSTAGS@,$HSTAGS,;t t
4123
 
s,@LN@,$LN,;t t
4124
 
s,@LNDIR@,$LNDIR,;t t
4125
 
s,@MV@,$MV,;t t
4126
3274
s,@SED@,$SED,;t t
4127
 
s,@TAR@,$TAR,;t t
4128
 
s,@TOUCH@,$TOUCH,;t t
4129
 
s,@UNAME@,$UNAME,;t t
4130
 
s,@HC@,$HC,;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
4136
 
s,@SYS@,$SYS,;t t
4137
 
s,@HCFLAGS@,$HCFLAGS,;t t
4138
 
s,@HIDIROPT@,$HIDIROPT,;t t
4139
 
s,@PROF@,$PROF,;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
4151
3283
CEOF
4177
3309
      (echo ':t
4178
3310
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4179
3311
      if test -z "$ac_sed_cmds"; then
4180
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
3312
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4181
3313
      else
4182
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
3314
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4183
3315
      fi
4184
3316
      ac_sed_frag=`expr $ac_sed_frag + 1`
4185
3317
      ac_beg=$ac_end
4197
3329
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4198
3330
  case $ac_file in
4199
3331
  - | *:- | *:-:* ) # input from stdin
4200
 
        cat >$tmp/stdin
4201
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4202
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3332
        cat >$tmp/stdin
 
3333
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
3334
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4203
3335
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4204
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
3336
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4205
3337
  * )   ac_file_in=$ac_file.in ;;
4206
3338
  esac
4207
3339
 
4208
3340
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4209
3341
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4210
3342
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4211
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
4212
 
         X"$ac_file" : 'X\(//\)$' \| \
4213
 
         X"$ac_file" : 'X\(/\)' \| \
4214
 
         .     : '\(.\)' 2>/dev/null ||
 
3343
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
3344
         X"$ac_file" : 'X\(//\)$' \| \
 
3345
         X"$ac_file" : 'X\(/\)' \| \
 
3346
         .     : '\(.\)' 2>/dev/null ||
4215
3347
echo X"$ac_file" |
4216
3348
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4217
3349
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4227
3359
      as_dirs="$as_dir $as_dirs"
4228
3360
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4229
3361
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4230
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
4231
 
         X"$as_dir" : 'X\(//\)$' \| \
4232
 
         X"$as_dir" : 'X\(/\)' \| \
4233
 
         .     : '\(.\)' 2>/dev/null ||
 
3362
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
3363
         X"$as_dir" : 'X\(//\)$' \| \
 
3364
         X"$as_dir" : 'X\(/\)' \| \
 
3365
         .     : '\(.\)' 2>/dev/null ||
4234
3366
echo X"$as_dir" |
4235
3367
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4236
3368
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4268
3400
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4269
3401
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4270
3402
esac
4271
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4272
 
# absolute.
4273
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4274
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4275
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4276
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4277
 
 
4278
 
 
4279
 
  case $INSTALL in
4280
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4281
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4282
 
  esac
 
3403
 
 
3404
# Do not use `cd foo && pwd` to compute absolute paths, because
 
3405
# the directories may not exist.
 
3406
case `pwd` in
 
3407
.) ac_abs_builddir="$ac_dir";;
 
3408
*)
 
3409
  case "$ac_dir" in
 
3410
  .) ac_abs_builddir=`pwd`;;
 
3411
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
3412
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
3413
  esac;;
 
3414
esac
 
3415
case $ac_abs_builddir in
 
3416
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3417
*)
 
3418
  case ${ac_top_builddir}. in
 
3419
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
3420
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3421
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
3422
  esac;;
 
3423
esac
 
3424
case $ac_abs_builddir in
 
3425
.) ac_abs_srcdir=$ac_srcdir;;
 
3426
*)
 
3427
  case $ac_srcdir in
 
3428
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
3429
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
3430
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
3431
  esac;;
 
3432
esac
 
3433
case $ac_abs_builddir in
 
3434
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3435
*)
 
3436
  case $ac_top_srcdir in
 
3437
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
3438
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3439
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
3440
  esac;;
 
3441
esac
 
3442
 
 
3443
 
4283
3444
 
4284
3445
  if test x"$ac_file" != x-; then
4285
3446
    { echo "$as_me:$LINENO: creating $ac_file" >&5
4295
3456
    configure_input="$ac_file.  "
4296
3457
  fi
4297
3458
  configure_input=$configure_input"Generated from `echo $ac_file_in |
4298
 
                                     sed 's,.*/,,'` by configure."
 
3459
                                     sed 's,.*/,,'` by configure."
4299
3460
 
4300
3461
  # First look for the input files in the build tree, otherwise in the
4301
3462
  # src tree.
4304
3465
      case $f in
4305
3466
      -) echo $tmp/stdin ;;
4306
3467
      [\\/$]*)
4307
 
         # Absolute (can't be DOS-style, as IFS=:)
4308
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
3468
         # Absolute (can't be DOS-style, as IFS=:)
 
3469
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4309
3470
echo "$as_me: error: cannot find input file: $f" >&2;}
4310
3471
   { (exit 1); exit 1; }; }
4311
 
         echo $f;;
 
3472
         echo "$f";;
4312
3473
      *) # Relative
4313
 
         if test -f "$f"; then
4314
 
           # Build tree
4315
 
           echo $f
4316
 
         elif test -f "$srcdir/$f"; then
4317
 
           # Source tree
4318
 
           echo $srcdir/$f
4319
 
         else
4320
 
           # /dev/null tree
4321
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
3474
         if test -f "$f"; then
 
3475
           # Build tree
 
3476
           echo "$f"
 
3477
         elif test -f "$srcdir/$f"; then
 
3478
           # Source tree
 
3479
           echo "$srcdir/$f"
 
3480
         else
 
3481
           # /dev/null tree
 
3482
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4322
3483
echo "$as_me: error: cannot find input file: $f" >&2;}
4323
3484
   { (exit 1); exit 1; }; }
4324
 
         fi;;
 
3485
         fi;;
4325
3486
      esac
4326
3487
    done` || { (exit 1); exit 1; }
4327
3488
_ACEOF
4341
3502
s,@abs_builddir@,$ac_abs_builddir,;t t
4342
3503
s,@top_builddir@,$ac_top_builddir,;t t
4343
3504
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4344
 
s,@INSTALL@,$ac_INSTALL,;t t
4345
3505
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4346
3506
  rm -f $tmp/stdin
4347
3507
  if test x"$ac_file" != x-; then
4353
3513
 
4354
3514
done
4355
3515
_ACEOF
 
3516
cat >>$CONFIG_STATUS <<\_ACEOF
 
3517
 
 
3518
#
 
3519
# CONFIG_COMMANDS section.
 
3520
#
 
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 ||
 
3530
echo X"$ac_dest" |
 
3531
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3532
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3533
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3534
          /^X\(\/\).*/{ s//\1/; q; }
 
3535
          s/.*/./; q'`
 
3536
  { if $as_mkdir_p; then
 
3537
    mkdir -p "$ac_dir"
 
3538
  else
 
3539
    as_dir="$ac_dir"
 
3540
    as_dirs=
 
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 ||
 
3549
echo X"$as_dir" |
 
3550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
3551
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
3552
          /^X\(\/\/\)$/{ s//\1/; q; }
 
3553
          /^X\(\/\).*/{ s//\1/; q; }
 
3554
          s/.*/./; q'`
 
3555
    done
 
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; }; }; }
 
3560
 
 
3561
  ac_builddir=.
 
3562
 
 
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'`
 
3567
else
 
3568
  ac_dir_suffix= ac_top_builddir=
 
3569
fi
 
3570
 
 
3571
case $srcdir in
 
3572
  .)  # No --srcdir option.  We are building in place.
 
3573
    ac_srcdir=.
 
3574
    if test -z "$ac_top_builddir"; then
 
3575
       ac_top_srcdir=.
 
3576
    else
 
3577
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
3578
    fi ;;
 
3579
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
3580
    ac_srcdir=$srcdir$ac_dir_suffix;
 
3581
    ac_top_srcdir=$srcdir ;;
 
3582
  *) # Relative path.
 
3583
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
3584
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
3585
esac
 
3586
 
 
3587
# Do not use `cd foo && pwd` to compute absolute paths, because
 
3588
# the directories may not exist.
 
3589
case `pwd` in
 
3590
.) ac_abs_builddir="$ac_dir";;
 
3591
*)
 
3592
  case "$ac_dir" in
 
3593
  .) ac_abs_builddir=`pwd`;;
 
3594
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
3595
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
3596
  esac;;
 
3597
esac
 
3598
case $ac_abs_builddir in
 
3599
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
3600
*)
 
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}.;;
 
3605
  esac;;
 
3606
esac
 
3607
case $ac_abs_builddir in
 
3608
.) ac_abs_srcdir=$ac_srcdir;;
 
3609
*)
 
3610
  case $ac_srcdir in
 
3611
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
3612
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
3613
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
3614
  esac;;
 
3615
esac
 
3616
case $ac_abs_builddir in
 
3617
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
3618
*)
 
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;;
 
3623
  esac;;
 
3624
esac
 
3625
 
 
3626
 
 
3627
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
3628
echo "$as_me: executing $ac_dest commands" >&6;}
 
3629
  case $ac_dest in
 
3630
    default ) chmod +x c2hs/c2hs-inplace postInst.sh ;;
 
3631
  esac
 
3632
done
 
3633
_ACEOF
4356
3634
 
4357
3635
cat >>$CONFIG_STATUS <<\_ACEOF
4358
3636
 
4383
3661
  $ac_cs_success || { (exit 1); exit 1; }
4384
3662
fi
4385
3663
 
4386
 
#
4387
 
# CONFIG_SUBDIRS section.
4388
 
#
4389
 
if test "$no_recursion" != yes; then
4390
 
 
4391
 
  # Remove --cache-file and --srcdir arguments so they do not pile up.
4392
 
  ac_sub_configure_args=
4393
 
  ac_prev=
4394
 
  for ac_arg in $ac_configure_args; do
4395
 
    if test -n "$ac_prev"; then
4396
 
      ac_prev=
4397
 
      continue
4398
 
    fi
4399
 
    case $ac_arg in
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=* \
4405
 
    | --c=*)
4406
 
      ;;
4407
 
    --config-cache | -C)
4408
 
      ;;
4409
 
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4410
 
      ac_prev=srcdir ;;
4411
 
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4412
 
      ;;
4413
 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4414
 
      ac_prev=prefix ;;
4415
 
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4416
 
      ;;
4417
 
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4418
 
    esac
4419
 
  done
4420
 
 
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"
4424
 
 
4425
 
  ac_popdir=`pwd`
4426
 
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4427
 
 
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
4431
 
 
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
4435
 
    mkdir -p "$ac_dir"
4436
 
  else
4437
 
    as_dir="$ac_dir"
4438
 
    as_dirs=
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 ||
4447
 
echo X"$as_dir" |
4448
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4449
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4450
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4451
 
          /^X\(\/\).*/{ s//\1/; q; }
4452
 
          s/.*/./; q'`
4453
 
    done
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; }; }; }
4458
 
 
4459
 
    ac_builddir=.
4460
 
 
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'`
4465
 
else
4466
 
  ac_dir_suffix= ac_top_builddir=
4467
 
fi
4468
 
 
4469
 
case $srcdir in
4470
 
  .)  # No --srcdir option.  We are building in place.
4471
 
    ac_srcdir=.
4472
 
    if test -z "$ac_top_builddir"; then
4473
 
       ac_top_srcdir=.
4474
 
    else
4475
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4476
 
    fi ;;
4477
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
4478
 
    ac_srcdir=$srcdir$ac_dir_suffix;
4479
 
    ac_top_srcdir=$srcdir ;;
4480
 
  *) # Relative path.
4481
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4482
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4483
 
esac
4484
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4485
 
# absolute.
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`
4490
 
 
4491
 
 
4492
 
    cd $ac_dir
4493
 
 
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
4501
 
    else
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;}
4504
 
      ac_sub_configure=
4505
 
    fi
4506
 
 
4507
 
    # The recursion is here.
4508
 
    if test -n "$ac_sub_configure"; then
4509
 
      # Make the cache file name correct relative to the subdirectory.
4510
 
      case $cache_file in
4511
 
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4512
 
      *) # Relative path.
4513
 
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4514
 
      esac
4515
 
 
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; }; }
4524
 
    fi
4525
 
 
4526
 
    cd $ac_popdir
4527
 
  done
4528
 
fi
4529
 
 
4530
 
 
4531
 
echo "********************************************"
4532
 
echo "Configuration completed successfully."
4533
 
echo "Now do \"make\" and get a cup of green tea ;-)"
4534
 
echo "********************************************"