aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2003-06-06 10:16:42 +0000
committerDave Love2003-06-06 10:16:42 +0000
commit973a76b18b87c11710c7010f040cd03992a82f50 (patch)
tree7f2b3421a84cbc6e36dd6eaa2f73259f0bbab158
parenteb3b52fa8857768e090fe69a0036fa7ae4744ca9 (diff)
downloademacs-973a76b18b87c11710c7010f040cd03992a82f50.tar.gz
emacs-973a76b18b87c11710c7010f040cd03992a82f50.zip
*** empty log message ***
-rwxr-xr-xconfigure533
-rw-r--r--src/config.in41
2 files changed, 405 insertions, 169 deletions
diff --git a/configure b/configure
index 4be93dd2467..9927b159748 100755
--- a/configure
+++ b/configure
@@ -3397,12 +3397,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (exit $ac_status); }; }; then 3397 (exit $ac_status); }; }; then
3398 for ac_declaration in \ 3398 for ac_declaration in \
3399 ''\ 3399 ''\
3400 '#include <stdlib.h>' \
3401 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3400 'extern "C" void std::exit (int) throw (); using std::exit;' \
3402 'extern "C" void std::exit (int); using std::exit;' \ 3401 'extern "C" void std::exit (int); using std::exit;' \
3403 'extern "C" void exit (int) throw ();' \ 3402 'extern "C" void exit (int) throw ();' \
3404 'extern "C" void exit (int);' \ 3403 'extern "C" void exit (int);' \
3405 'void exit (int);' 3404 'void exit (int);' \
3405 '#include <stdlib.h>'
3406do 3406do
3407 cat >conftest.$ac_ext <<_ACEOF 3407 cat >conftest.$ac_ext <<_ACEOF
3408#line $LINENO "configure" 3408#line $LINENO "configure"
@@ -5031,10 +5031,11 @@ fi
5031 5031
5032 5032
5033 5033
5034
5034for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 5035for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5035 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 5036 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5036 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 5037 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5037 sys/param.h sys/vlimit.h sys/resource.h 5038 sys/param.h sys/vlimit.h sys/resource.h locale.h
5038do 5039do
5039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040if eval "test \"\${$as_ac_Header+set}\" = set"; then 5041if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -11270,15 +11271,18 @@ done
11270 11271
11271 11272
11272 11273
11274
11275
11276
11273for ac_func in gethostname getdomainname dup2 \ 11277for ac_func in gethostname getdomainname dup2 \
11274rename closedir mkdir rmdir sysinfo \ 11278rename closedir mkdir rmdir sysinfo \
11275random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 11279random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11276strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 11280strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11277utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 11281utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11278__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 11282__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11279sendto recvfrom getsockopt setsockopt getsockname getpeername \ 11283sendto recvfrom getsockopt setsockopt getsockname getpeername \
11280gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \ 11284gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11281memset memcmp memmove difftime 11285memset memcmp memmove difftime memcpy mempcpy mblen mbrlen
11282do 11286do
11283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284echo "$as_me:$LINENO: checking for $ac_func" >&5 11288echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -13896,6 +13900,155 @@ _ACEOF
13896fi 13900fi
13897 13901
13898 13902
13903
13904for ac_func in strftime
13905do
13906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13907echo "$as_me:$LINENO: checking for $ac_func" >&5
13908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13909if eval "test \"\${$as_ac_var+set}\" = set"; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13911else
13912 cat >conftest.$ac_ext <<_ACEOF
13913#line $LINENO "configure"
13914/* confdefs.h. */
13915_ACEOF
13916cat confdefs.h >>conftest.$ac_ext
13917cat >>conftest.$ac_ext <<_ACEOF
13918/* end confdefs.h. */
13919/* System header to define __stub macros and hopefully few prototypes,
13920 which can conflict with char $ac_func (); below.
13921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13922 <limits.h> exists even on freestanding compilers. */
13923#ifdef __STDC__
13924# include <limits.h>
13925#else
13926# include <assert.h>
13927#endif
13928/* Override any gcc2 internal prototype to avoid an error. */
13929#ifdef __cplusplus
13930extern "C"
13931{
13932#endif
13933/* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935char $ac_func ();
13936/* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13940choke me
13941#else
13942char (*f) () = $ac_func;
13943#endif
13944#ifdef __cplusplus
13945}
13946#endif
13947
13948int
13949main ()
13950{
13951return f != $ac_func;
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext conftest$ac_exeext
13957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -s conftest$ac_exeext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_var=yes"
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973eval "$as_ac_var=no"
13974fi
13975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13976fi
13977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13978echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13979if test `eval echo '${'$as_ac_var'}'` = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982_ACEOF
13983
13984else
13985 # strftime is in -lintl on SCO UNIX.
13986echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13987echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
13988if test "${ac_cv_lib_intl_strftime+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990else
13991 ac_check_lib_save_LIBS=$LIBS
13992LIBS="-lintl $LIBS"
13993cat >conftest.$ac_ext <<_ACEOF
13994#line $LINENO "configure"
13995/* confdefs.h. */
13996_ACEOF
13997cat confdefs.h >>conftest.$ac_ext
13998cat >>conftest.$ac_ext <<_ACEOF
13999/* end confdefs.h. */
14000
14001/* Override any gcc2 internal prototype to avoid an error. */
14002#ifdef __cplusplus
14003extern "C"
14004#endif
14005/* We use char because int might match the return type of a gcc2
14006 builtin and then its argument prototype would still apply. */
14007char strftime ();
14008int
14009main ()
14010{
14011strftime ();
14012 ;
14013 return 0;
14014}
14015_ACEOF
14016rm -f conftest.$ac_objext conftest$ac_exeext
14017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018 (eval $ac_link) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_lib_intl_strftime=yes
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033ac_cv_lib_intl_strftime=no
14034fi
14035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14036LIBS=$ac_check_lib_save_LIBS
14037fi
14038echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14039echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14040if test $ac_cv_lib_intl_strftime = yes; then
14041 cat >>confdefs.h <<\_ACEOF
14042#define HAVE_STRFTIME 1
14043_ACEOF
14044
14045LIBS="-lintl $LIBS"
14046fi
14047
14048fi
14049done
14050
14051
13899# UNIX98 PTYs. 14052# UNIX98 PTYs.
13900 14053
13901for ac_func in grantpt 14054for ac_func in grantpt
@@ -16532,6 +16685,170 @@ _ACEOF
16532 fi 16685 fi
16533fi 16686fi
16534 16687
16688# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16689echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16690echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16691if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 cat >conftest.$ac_ext <<_ACEOF
16695#line $LINENO "configure"
16696/* confdefs.h. */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h. */
16701#include <sys/types.h>
16702#include <$ac_cv_struct_tm>
16703
16704
16705int
16706main ()
16707{
16708static struct tm ac_aggr;
16709if (ac_aggr.tm_zone)
16710return 0;
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16724 ac_status=$?
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16727 ac_cv_member_struct_tm_tm_zone=yes
16728else
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732cat >conftest.$ac_ext <<_ACEOF
16733#line $LINENO "configure"
16734/* confdefs.h. */
16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h. */
16739#include <sys/types.h>
16740#include <$ac_cv_struct_tm>
16741
16742
16743int
16744main ()
16745{
16746static struct tm ac_aggr;
16747if (sizeof ac_aggr.tm_zone)
16748return 0;
16749 ;
16750 return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext
16754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755 (eval $ac_compile) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_cv_member_struct_tm_tm_zone=yes
16766else
16767 echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770ac_cv_member_struct_tm_tm_zone=no
16771fi
16772rm -f conftest.$ac_objext conftest.$ac_ext
16773fi
16774rm -f conftest.$ac_objext conftest.$ac_ext
16775fi
16776echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16777echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16778if test $ac_cv_member_struct_tm_tm_zone = yes; then
16779
16780cat >>confdefs.h <<_ACEOF
16781#define HAVE_STRUCT_TM_TM_ZONE 1
16782_ACEOF
16783
16784
16785fi
16786
16787if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16788
16789cat >>confdefs.h <<\_ACEOF
16790#define HAVE_TM_ZONE 1
16791_ACEOF
16792
16793else
16794 echo "$as_me:$LINENO: checking for tzname" >&5
16795echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16796if test "${ac_cv_var_tzname+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798else
16799 cat >conftest.$ac_ext <<_ACEOF
16800#line $LINENO "configure"
16801/* confdefs.h. */
16802_ACEOF
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
16806#include <time.h>
16807#ifndef tzname /* For SGI. */
16808extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16809#endif
16810
16811int
16812main ()
16813{
16814atoi(*tzname);
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819rm -f conftest.$ac_objext conftest$ac_exeext
16820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -s conftest$ac_exeext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_cv_var_tzname=yes
16832else
16833 echo "$as_me: failed program was:" >&5
16834sed 's/^/| /' conftest.$ac_ext >&5
16835
16836ac_cv_var_tzname=no
16837fi
16838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16839fi
16840echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16841echo "${ECHO_T}$ac_cv_var_tzname" >&6
16842 if test $ac_cv_var_tzname = yes; then
16843
16844cat >>confdefs.h <<\_ACEOF
16845#define HAVE_TZNAME 1
16846_ACEOF
16847
16848 fi
16849fi
16850
16851
16535if test "$ac_cv_func_gettimeofday" = yes; then 16852if test "$ac_cv_func_gettimeofday" = yes; then
16536 echo "$as_me:$LINENO: checking for struct timezone" >&5 16853 echo "$as_me:$LINENO: checking for struct timezone" >&5
16537echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 16854echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
@@ -17641,6 +17958,65 @@ _ACEOF
17641fi 17958fi
17642 17959
17643 17960
17961echo "$as_me:$LINENO: checking for mbstate_t" >&5
17962echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17963if test "${ac_cv_type_mbstate_t+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 cat >conftest.$ac_ext <<_ACEOF
17967#line $LINENO "configure"
17968/* confdefs.h. */
17969_ACEOF
17970cat confdefs.h >>conftest.$ac_ext
17971cat >>conftest.$ac_ext <<_ACEOF
17972/* end confdefs.h. */
17973$ac_includes_default
17974# include <wchar.h>
17975int
17976main ()
17977{
17978mbstate_t x; return sizeof x;
17979 ;
17980 return 0;
17981}
17982_ACEOF
17983rm -f conftest.$ac_objext
17984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17985 (eval $ac_compile) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -s conftest.$ac_objext'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 ac_cv_type_mbstate_t=yes
17996else
17997 echo "$as_me: failed program was:" >&5
17998sed 's/^/| /' conftest.$ac_ext >&5
17999
18000ac_cv_type_mbstate_t=no
18001fi
18002rm -f conftest.$ac_objext conftest.$ac_ext
18003fi
18004echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18005echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18006 if test $ac_cv_type_mbstate_t = yes; then
18007
18008cat >>confdefs.h <<\_ACEOF
18009#define HAVE_MBSTATE_T 1
18010_ACEOF
18011
18012 else
18013
18014cat >>confdefs.h <<\_ACEOF
18015#define mbstate_t int
18016_ACEOF
18017
18018 fi
18019
17644echo "$as_me:$LINENO: checking for C restrict keyword" >&5 18020echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17645echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6 18021echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17646if test "${emacs_cv_c_restrict+set}" = set; then 18022if test "${emacs_cv_c_restrict+set}" = set; then
@@ -17786,153 +18162,6 @@ _ACEOF
17786fi 18162fi
17787 18163
17788 18164
17789for ac_header in nlist.h
17790do
17791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792if eval "test \"\${$as_ac_Header+set}\" = set"; then
17793 echo "$as_me:$LINENO: checking for $ac_header" >&5
17794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17795if eval "test \"\${$as_ac_Header+set}\" = set"; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797fi
17798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17800else
17801 # Is the header compilable?
17802echo "$as_me:$LINENO: checking $ac_header usability" >&5
17803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17804cat >conftest.$ac_ext <<_ACEOF
17805#line $LINENO "configure"
17806/* confdefs.h. */
17807_ACEOF
17808cat confdefs.h >>conftest.$ac_ext
17809cat >>conftest.$ac_ext <<_ACEOF
17810/* end confdefs.h. */
17811$ac_includes_default
17812#include <$ac_header>
17813_ACEOF
17814rm -f conftest.$ac_objext
17815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_header_compiler=yes
17827else
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831ac_header_compiler=no
17832fi
17833rm -f conftest.$ac_objext conftest.$ac_ext
17834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17835echo "${ECHO_T}$ac_header_compiler" >&6
17836
17837# Is the header present?
17838echo "$as_me:$LINENO: checking $ac_header presence" >&5
17839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17840cat >conftest.$ac_ext <<_ACEOF
17841#line $LINENO "configure"
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
17847#include <$ac_header>
17848_ACEOF
17849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } >/dev/null; then
17857 if test -s conftest.err; then
17858 ac_cpp_err=$ac_c_preproc_warn_flag
17859 else
17860 ac_cpp_err=
17861 fi
17862else
17863 ac_cpp_err=yes
17864fi
17865if test -z "$ac_cpp_err"; then
17866 ac_header_preproc=yes
17867else
17868 echo "$as_me: failed program was:" >&5
17869sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 ac_header_preproc=no
17872fi
17873rm -f conftest.err conftest.$ac_ext
17874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17875echo "${ECHO_T}$ac_header_preproc" >&6
17876
17877# So? What about this header?
17878case $ac_header_compiler:$ac_header_preproc in
17879 yes:no )
17880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17884 (
17885 cat <<\_ASBOX
17886## ------------------------------------ ##
17887## Report this to bug-autoconf@gnu.org. ##
17888## ------------------------------------ ##
17889_ASBOX
17890 ) |
17891 sed "s/^/$as_me: WARNING: /" >&2
17892 ;;
17893 no:yes )
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17900 (
17901 cat <<\_ASBOX
17902## ------------------------------------ ##
17903## Report this to bug-autoconf@gnu.org. ##
17904## ------------------------------------ ##
17905_ASBOX
17906 ) |
17907 sed "s/^/$as_me: WARNING: /" >&2
17908 ;;
17909esac
17910echo "$as_me:$LINENO: checking for $ac_header" >&5
17911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17912if eval "test \"\${$as_ac_Header+set}\" = set"; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914else
17915 eval "$as_ac_Header=$ac_header_preproc"
17916fi
17917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17919
17920fi
17921if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924_ACEOF
17925
17926cat >>confdefs.h <<\_ACEOF
17927#define NLIST_STRUCT 1
17928_ACEOF
17929
17930fi
17931
17932done
17933
17934
17935
17936 18165
17937# Set up the CFLAGS for real compilation, so we can substitute it. 18166# Set up the CFLAGS for real compilation, so we can substitute it.
17938CFLAGS="$REAL_CFLAGS" 18167CFLAGS="$REAL_CFLAGS"
diff --git a/src/config.in b/src/config.in
index 5ef32f7b261..f9058e8ce37 100644
--- a/src/config.in
+++ b/src/config.in
@@ -319,6 +319,9 @@ Boston, MA 02111-1307, USA. */
319/* Define to 1 if you have the <linux/version.h> header file. */ 319/* Define to 1 if you have the <linux/version.h> header file. */
320#undef HAVE_LINUX_VERSION_H 320#undef HAVE_LINUX_VERSION_H
321 321
322/* Define to 1 if you have the <locale.h> header file. */
323#undef HAVE_LOCALE_H
324
322/* Define to 1 if you have the `logb' function. */ 325/* Define to 1 if you have the `logb' function. */
323#undef HAVE_LOGB 326#undef HAVE_LOGB
324 327
@@ -346,15 +349,24 @@ Boston, MA 02111-1307, USA. */
346/* Define to 1 if you have the `mbsinit' function. */ 349/* Define to 1 if you have the `mbsinit' function. */
347#undef HAVE_MBSINIT 350#undef HAVE_MBSINIT
348 351
352/* Define to 1 if <wchar.h> declares mbstate_t. */
353#undef HAVE_MBSTATE_T
354
349/* Define to 1 if you have the `memcmp' function. */ 355/* Define to 1 if you have the `memcmp' function. */
350#undef HAVE_MEMCMP 356#undef HAVE_MEMCMP
351 357
358/* Define to 1 if you have the `memcpy' function. */
359#undef HAVE_MEMCPY
360
352/* Define to 1 if you have the `memmove' function. */ 361/* Define to 1 if you have the `memmove' function. */
353#undef HAVE_MEMMOVE 362#undef HAVE_MEMMOVE
354 363
355/* Define to 1 if you have the <memory.h> header file. */ 364/* Define to 1 if you have the <memory.h> header file. */
356#undef HAVE_MEMORY_H 365#undef HAVE_MEMORY_H
357 366
367/* Define to 1 if you have the `mempcpy' function. */
368#undef HAVE_MEMPCPY
369
358/* Define to 1 if you have the `memset' function. */ 370/* Define to 1 if you have the `memset' function. */
359#undef HAVE_MEMSET 371#undef HAVE_MEMSET
360 372
@@ -656,9 +668,6 @@ Boston, MA 02111-1307, USA. */
656 on `HAVE_STRUCT_NLIST_N_UN_N_NAME */ 668 on `HAVE_STRUCT_NLIST_N_UN_N_NAME */
657#undef NLIST_NAME_UNION 669#undef NLIST_NAME_UNION
658 670
659/* Define to 1 if you have <nlist.h>. */
660#undef NLIST_STRUCT
661
662/* Define to 1 if you don't have struct exception in math.h. */ 671/* Define to 1 if you don't have struct exception in math.h. */
663#undef NO_MATHERR 672#undef NO_MATHERR
664 673
@@ -771,6 +780,9 @@ Boston, MA 02111-1307, USA. */
771/* Define to empty if `const' does not conform to ANSI C. */ 780/* Define to empty if `const' does not conform to ANSI C. */
772#undef const 781#undef const
773 782
783/* Define to a type if <wchar.h> does not define. */
784#undef mbstate_t
785
774/* Define to `int' if <sys/types.h> does not define. */ 786/* Define to `int' if <sys/types.h> does not define. */
775#undef pid_t 787#undef pid_t
776 788
@@ -1013,20 +1025,15 @@ typedef unsigned size_t;
1013# endif 1025# endif
1014#endif 1026#endif
1015 1027
1016/* On Mac OS X, these macros are already defined in precompiled headers. */ 1028#ifndef HAVE_BCOPY
1017#ifndef MAC_OSX 1029#define bcopy(a,b,s) memcpy (b,a,s)
1018/* avoid deprecated functions */ 1030#endif
1019# ifdef HAVE_MEMCPY 1031#ifndef HAVE_BZERO
1020# define bcopy(a,b,s) memcpy (b,a,s) 1032#define bzero(a,s) memset (a,0,s)
1021# endif 1033#endif
1022# ifdef HAVE_MEMSET 1034#ifndef HAVE_BCMP
1023# define bzero(a,s) memset (a,0,s) 1035#define BCMP memcmp
1024# endif 1036#endif
1025# ifdef HAVE_MEMCMP
1026# define BCMP memcmp
1027# define bcmp memcmp
1028# endif
1029#endif /* MAC_OSX */
1030 1037
1031#endif /* EMACS_CONFIG_H */ 1038#endif /* EMACS_CONFIG_H */
1032 1039