Mercurial > emacs
changeset 2663:ed552ce28308
* 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.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 04 May 1993 14:17:07 +0000 |
parents | 5b92bdfb7fbb |
children | 334f3eeb459d |
files | configure1.in |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure1.in Tue May 04 13:02:26 1993 +0000 +++ b/configure1.in Tue May 04 14:17:07 1993 +0000 @@ -817,10 +817,11 @@ #### Some other nice autoconf tests. ] AC_PROG_CPP -AC_HAVE_HEADERS(sys/timeb.h) +AC_HAVE_HEADERS(sys/timeb.h sys/time.h) AC_RETSIGTYPE AC_ALLOCA AC_HAVE_FUNCS(gettimeofday gethostname dup2) +AC_STRUCT_TM AC_CONST [ @@ -942,7 +943,10 @@ @configure@ system_malloc=no #endif ' > ${tempcname} -eval `${CPP} ${tempcname} \ +# The value of CPP is a quoted variable reference, so we need to do this +# to get its actual value... +foo=`eval "echo $CPP"` +eval `${foo} ${tempcname} \ | grep '@configure@' \ | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'` rm ${tempcname}