aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-04 14:17:07 +0000
committerJim Blandy1993-05-04 14:17:07 +0000
commita6eb67976982ccf22d8245e364e0641fdca8e11b (patch)
treea073b43be100a45d5755b7c4bf5f18525e9594a1
parentd03f79ef75b515dbb01a229d7766176ea67439b5 (diff)
downloademacs-a6eb67976982ccf22d8245e364e0641fdca8e11b.tar.gz
emacs-a6eb67976982ccf22d8245e364e0641fdca8e11b.zip
* configure.in: Use AC_HAVE_HEADERS to test for sys/time.h, and
call AC_STRUCT_TM to see what's in time.h. * configure.in: Employ quoting stupidity to get the value of CPP to expand properly.
-rwxr-xr-xconfigure1.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure1.in b/configure1.in
index b642840db07..1a3915b019d 100755
--- a/configure1.in
+++ b/configure1.in
@@ -817,10 +817,11 @@ fi
817#### Some other nice autoconf tests. 817#### Some other nice autoconf tests.
818] 818]
819AC_PROG_CPP 819AC_PROG_CPP
820AC_HAVE_HEADERS(sys/timeb.h) 820AC_HAVE_HEADERS(sys/timeb.h sys/time.h)
821AC_RETSIGTYPE 821AC_RETSIGTYPE
822AC_ALLOCA 822AC_ALLOCA
823AC_HAVE_FUNCS(gettimeofday gethostname dup2) 823AC_HAVE_FUNCS(gettimeofday gethostname dup2)
824AC_STRUCT_TM
824AC_CONST 825AC_CONST
825[ 826[
826 827
@@ -942,7 +943,10 @@ echo '
942@configure@ system_malloc=no 943@configure@ system_malloc=no
943#endif 944#endif
944' > ${tempcname} 945' > ${tempcname}
945eval `${CPP} ${tempcname} \ 946# The value of CPP is a quoted variable reference, so we need to do this
947# to get its actual value...
948foo=`eval "echo $CPP"`
949eval `${foo} ${tempcname} \
946 | grep '@configure@' \ 950 | grep '@configure@' \
947 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` 951 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
948rm ${tempcname} 952rm ${tempcname}