Mercurial > emacs
comparison configure @ 91056:1251cabc40b7
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 890-898)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 122-128)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 257-258)
- Merge from emacs--rel--22
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 19 Oct 2007 00:00:21 +0000 |
parents | 35069180a991 104186d7ba4b |
children | 880960b70474 |
comparison
equal
deleted
inserted
replaced
91055:46bc3a01b2fa | 91056:1251cabc40b7 |
---|---|
16310 | 16310 |
16311 | 16311 |
16312 | 16312 |
16313 | 16313 |
16314 | 16314 |
16315 | |
16316 for ac_func in gethostname getdomainname dup2 \ | 16315 for ac_func in gethostname getdomainname dup2 \ |
16317 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | 16316 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
16318 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 16317 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ |
16319 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 16318 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
16320 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ | 16319 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
16321 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 16320 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
16322 sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 16321 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
16323 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ | 16322 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
18920 /* confdefs.h. */ | 18919 /* confdefs.h. */ |
18921 _ACEOF | 18920 _ACEOF |
18922 cat confdefs.h >>conftest.$ac_ext | 18921 cat confdefs.h >>conftest.$ac_ext |
18923 cat >>conftest.$ac_ext <<_ACEOF | 18922 cat >>conftest.$ac_ext <<_ACEOF |
18924 /* end confdefs.h. */ | 18923 /* end confdefs.h. */ |
18925 #include <sys/types.h> /* for off_t */ | 18924 #include <stdio.h> |
18926 #include <stdio.h> | |
18927 int | 18925 int |
18928 main () | 18926 main () |
18929 { | 18927 { |
18930 int (*fp) (FILE *, off_t, int) = fseeko; | 18928 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
18931 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
18932 ; | 18929 ; |
18933 return 0; | 18930 return 0; |
18934 } | 18931 } |
18935 _ACEOF | 18932 _ACEOF |
18936 rm -f conftest.$ac_objext conftest$ac_exeext | 18933 rm -f conftest.$ac_objext conftest$ac_exeext |
18966 _ACEOF | 18963 _ACEOF |
18967 cat confdefs.h >>conftest.$ac_ext | 18964 cat confdefs.h >>conftest.$ac_ext |
18968 cat >>conftest.$ac_ext <<_ACEOF | 18965 cat >>conftest.$ac_ext <<_ACEOF |
18969 /* end confdefs.h. */ | 18966 /* end confdefs.h. */ |
18970 #define _LARGEFILE_SOURCE 1 | 18967 #define _LARGEFILE_SOURCE 1 |
18971 #include <sys/types.h> /* for off_t */ | 18968 #include <stdio.h> |
18972 #include <stdio.h> | |
18973 int | 18969 int |
18974 main () | 18970 main () |
18975 { | 18971 { |
18976 int (*fp) (FILE *, off_t, int) = fseeko; | 18972 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
18977 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
18978 ; | 18973 ; |
18979 return 0; | 18974 return 0; |
18980 } | 18975 } |
18981 _ACEOF | 18976 _ACEOF |
18982 rm -f conftest.$ac_objext conftest$ac_exeext | 18977 rm -f conftest.$ac_objext conftest$ac_exeext |
20001 LIBS="-lncurses $LIBS" | 19996 LIBS="-lncurses $LIBS" |
20002 | 19997 |
20003 fi | 19998 fi |
20004 | 19999 |
20005 | 20000 |
20001 # Do we have res_init, for detecting changes in /etc/resolv.conf? | |
20002 | |
20003 resolv=no | |
20004 { echo "$as_me:$LINENO: checking for res_init" >&5 | |
20005 echo $ECHO_N "checking for res_init... $ECHO_C" >&6; } | |
20006 if test "${ac_cv_func_res_init+set}" = set; then | |
20007 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20008 else | |
20009 cat >conftest.$ac_ext <<_ACEOF | |
20010 /* confdefs.h. */ | |
20011 _ACEOF | |
20012 cat confdefs.h >>conftest.$ac_ext | |
20013 cat >>conftest.$ac_ext <<_ACEOF | |
20014 /* end confdefs.h. */ | |
20015 /* Define res_init to an innocuous variant, in case <limits.h> declares res_init. | |
20016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20017 #define res_init innocuous_res_init | |
20018 | |
20019 /* System header to define __stub macros and hopefully few prototypes, | |
20020 which can conflict with char res_init (); below. | |
20021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20022 <limits.h> exists even on freestanding compilers. */ | |
20023 | |
20024 #ifdef __STDC__ | |
20025 # include <limits.h> | |
20026 #else | |
20027 # include <assert.h> | |
20028 #endif | |
20029 | |
20030 #undef res_init | |
20031 | |
20032 /* Override any GCC internal prototype to avoid an error. | |
20033 Use char because int might match the return type of a GCC | |
20034 builtin and then its argument prototype would still apply. */ | |
20035 #ifdef __cplusplus | |
20036 extern "C" | |
20037 #endif | |
20038 char res_init (); | |
20039 /* The GNU C library defines this for functions which it implements | |
20040 to always fail with ENOSYS. Some functions are actually named | |
20041 something starting with __ and the normal name is an alias. */ | |
20042 #if defined __stub_res_init || defined __stub___res_init | |
20043 choke me | |
20044 #endif | |
20045 | |
20046 int | |
20047 main () | |
20048 { | |
20049 return res_init (); | |
20050 ; | |
20051 return 0; | |
20052 } | |
20053 _ACEOF | |
20054 rm -f conftest.$ac_objext conftest$ac_exeext | |
20055 if { (ac_try="$ac_link" | |
20056 case "(($ac_try" in | |
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20058 *) ac_try_echo=$ac_try;; | |
20059 esac | |
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20061 (eval "$ac_link") 2>conftest.er1 | |
20062 ac_status=$? | |
20063 grep -v '^ *+' conftest.er1 >conftest.err | |
20064 rm -f conftest.er1 | |
20065 cat conftest.err >&5 | |
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20067 (exit $ac_status); } && { | |
20068 test -z "$ac_c_werror_flag" || | |
20069 test ! -s conftest.err | |
20070 } && test -s conftest$ac_exeext && | |
20071 $as_test_x conftest$ac_exeext; then | |
20072 ac_cv_func_res_init=yes | |
20073 else | |
20074 echo "$as_me: failed program was:" >&5 | |
20075 sed 's/^/| /' conftest.$ac_ext >&5 | |
20076 | |
20077 ac_cv_func_res_init=no | |
20078 fi | |
20079 | |
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20081 conftest$ac_exeext conftest.$ac_ext | |
20082 fi | |
20083 { echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5 | |
20084 echo "${ECHO_T}$ac_cv_func_res_init" >&6; } | |
20085 if test $ac_cv_func_res_init = yes; then | |
20086 have_res_init=yes | |
20087 else | |
20088 have_res_init=no | |
20089 fi | |
20090 | |
20091 if test "$have_res_init" = no; then | |
20092 OLIBS="$LIBS" | |
20093 LIBS="$LIBS -lresolv" | |
20094 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | |
20095 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; } | |
20096 cat >conftest.$ac_ext <<_ACEOF | |
20097 /* confdefs.h. */ | |
20098 _ACEOF | |
20099 cat confdefs.h >>conftest.$ac_ext | |
20100 cat >>conftest.$ac_ext <<_ACEOF | |
20101 /* end confdefs.h. */ | |
20102 #include <netinet/in.h> | |
20103 #include <arpa/nameser.h> | |
20104 #include <resolv.h> | |
20105 int | |
20106 main () | |
20107 { | |
20108 res_init(); | |
20109 ; | |
20110 return 0; | |
20111 } | |
20112 _ACEOF | |
20113 rm -f conftest.$ac_objext conftest$ac_exeext | |
20114 if { (ac_try="$ac_link" | |
20115 case "(($ac_try" in | |
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20117 *) ac_try_echo=$ac_try;; | |
20118 esac | |
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20120 (eval "$ac_link") 2>conftest.er1 | |
20121 ac_status=$? | |
20122 grep -v '^ *+' conftest.er1 >conftest.err | |
20123 rm -f conftest.er1 | |
20124 cat conftest.err >&5 | |
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20126 (exit $ac_status); } && { | |
20127 test -z "$ac_c_werror_flag" || | |
20128 test ! -s conftest.err | |
20129 } && test -s conftest$ac_exeext && | |
20130 $as_test_x conftest$ac_exeext; then | |
20131 have_res_init=yes | |
20132 else | |
20133 echo "$as_me: failed program was:" >&5 | |
20134 sed 's/^/| /' conftest.$ac_ext >&5 | |
20135 | |
20136 have_res_init=no | |
20137 fi | |
20138 | |
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20140 conftest$ac_exeext conftest.$ac_ext | |
20141 { echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
20142 echo "${ECHO_T}$have_res_init" >&6; } | |
20143 if test "$have_res_init" = yes ; then | |
20144 resolv=yes | |
20145 fi | |
20146 LIBS="$OLIBS" | |
20147 fi | |
20148 | |
20149 if test "$have_res_init" = yes; then | |
20150 | |
20151 cat >>confdefs.h <<\_ACEOF | |
20152 #define HAVE_RES_INIT 1 | |
20153 _ACEOF | |
20154 | |
20155 fi | |
20156 | |
20006 # Do we need the Hesiod library to provide the support routines? | 20157 # Do we need the Hesiod library to provide the support routines? |
20007 if test "$with_hesiod" = yes ; then | 20158 if test "$with_hesiod" = yes ; then |
20008 # Don't set $LIBS here -- see comments above. | 20159 # Don't set $LIBS here -- see comments above. |
20009 resolv=no | |
20010 { echo "$as_me:$LINENO: checking for res_send" >&5 | 20160 { echo "$as_me:$LINENO: checking for res_send" >&5 |
20011 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } | 20161 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } |
20012 if test "${ac_cv_func_res_send+set}" = set; then | 20162 if test "${ac_cv_func_res_send+set}" = set; then |
20013 echo $ECHO_N "(cached) $ECHO_C" >&6 | 20163 echo $ECHO_N "(cached) $ECHO_C" >&6 |
20014 else | 20164 else |
20310 | 20460 |
20311 fi | 20461 fi |
20312 | 20462 |
20313 if test "$resolv" = yes ; then | 20463 if test "$resolv" = yes ; then |
20314 RESOLVLIB=-lresolv | 20464 RESOLVLIB=-lresolv |
20315 | |
20316 cat >>confdefs.h <<\_ACEOF | |
20317 #define HAVE_LIBRESOLV 1 | |
20318 _ACEOF | |
20319 | |
20320 else | 20465 else |
20321 RESOLVLIB= | 20466 RESOLVLIB= |
20322 fi | 20467 fi |
20323 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 | 20468 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
20324 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } | 20469 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } |
20474 else | 20619 else |
20475 : | 20620 : |
20476 fi | 20621 fi |
20477 | 20622 |
20478 fi | 20623 fi |
20624 | |
20625 fi | |
20626 | |
20627 # Do we need libresolv (due to res_init or Hesiod)? | |
20628 if test "$resolv" = yes ; then | |
20629 | |
20630 cat >>confdefs.h <<\_ACEOF | |
20631 #define HAVE_LIBRESOLV 1 | |
20632 _ACEOF | |
20479 | 20633 |
20480 fi | 20634 fi |
20481 | 20635 |
20482 # These tell us which Kerberos-related libraries to use. | 20636 # These tell us which Kerberos-related libraries to use. |
20483 if test "${with_kerberos+set}" = set; then | 20637 if test "${with_kerberos+set}" = set; then |