aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2007-11-20 23:08:26 +0000
committerAndreas Schwab2007-11-20 23:08:26 +0000
commit074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82 (patch)
treeeec4ffaac3839051b91fbff22405f982fb5cd992
parentc0a3f2a24a3a4b8241c0aec2f9fc32c4e5e55367 (diff)
downloademacs-074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82.tar.gz
emacs-074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82.zip
Regenerate.
-rw-r--r--ChangeLog5
-rwxr-xr-xconfigure58
2 files changed, 13 insertions, 50 deletions
diff --git a/ChangeLog b/ChangeLog
index c2cf2d8ef13..0f7bc09095c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12007-11-20 Andreas Schwab <schwab@suse.de>
2
3 * configure.in: Always include <resolv.h> when checking for
4 res_init.
5
12007-11-17 Andreas Schwab <schwab@suse.de> 62007-11-17 Andreas Schwab <schwab@suse.de>
2 7
3 * update-subdirs: Atomically update subdirs.el. 8 * update-subdirs: Atomically update subdirs.el.
diff --git a/configure b/configure
index 3f71a5b2e93..b2ea135388b 100755
--- a/configure
+++ b/configure
@@ -19538,52 +19538,19 @@ fi
19538# Do we have res_init, for detecting changes in /etc/resolv.conf? 19538# Do we have res_init, for detecting changes in /etc/resolv.conf?
19539 19539
19540resolv=no 19540resolv=no
19541{ echo "$as_me:$LINENO: checking for res_init" >&5 19541cat >conftest.$ac_ext <<_ACEOF
19542echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
19543if test "${ac_cv_func_res_init+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546 cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h. */ 19542/* confdefs.h. */
19548_ACEOF 19543_ACEOF
19549cat confdefs.h >>conftest.$ac_ext 19544cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF 19545cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h. */ 19546/* end confdefs.h. */
19552/* Define res_init to an innocuous variant, in case <limits.h> declares res_init. 19547#include <netinet/in.h>
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19548#include <arpa/nameser.h>
19554#define res_init innocuous_res_init 19549#include <resolv.h>
19555
19556/* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char res_init (); below.
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19559 <limits.h> exists even on freestanding compilers. */
19560
19561#ifdef __STDC__
19562# include <limits.h>
19563#else
19564# include <assert.h>
19565#endif
19566
19567#undef res_init
19568
19569/* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19572#ifdef __cplusplus
19573extern "C"
19574#endif
19575char res_init ();
19576/* The GNU C library defines this for functions which it implements
19577 to always fail with ENOSYS. Some functions are actually named
19578 something starting with __ and the normal name is an alias. */
19579#if defined __stub_res_init || defined __stub___res_init
19580choke me
19581#endif
19582
19583int 19550int
19584main () 19551main ()
19585{ 19552{
19586return res_init (); 19553return res_init();
19587 ; 19554 ;
19588 return 0; 19555 return 0;
19589} 19556}
@@ -19606,25 +19573,16 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 test ! -s conftest.err 19573 test ! -s conftest.err
19607 } && test -s conftest$ac_exeext && 19574 } && test -s conftest$ac_exeext &&
19608 $as_test_x conftest$ac_exeext; then 19575 $as_test_x conftest$ac_exeext; then
19609 ac_cv_func_res_init=yes 19576 have_res_init=yes
19610else 19577else
19611 echo "$as_me: failed program was:" >&5 19578 echo "$as_me: failed program was:" >&5
19612sed 's/^/| /' conftest.$ac_ext >&5 19579sed 's/^/| /' conftest.$ac_ext >&5
19613 19580
19614 ac_cv_func_res_init=no 19581 have_res_init=no
19615fi 19582fi
19616 19583
19617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19618 conftest$ac_exeext conftest.$ac_ext 19585 conftest$ac_exeext conftest.$ac_ext
19619fi
19620{ echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
19621echo "${ECHO_T}$ac_cv_func_res_init" >&6; }
19622if test $ac_cv_func_res_init = yes; then
19623 have_res_init=yes
19624else
19625 have_res_init=no
19626fi
19627
19628if test "$have_res_init" = no; then 19586if test "$have_res_init" = no; then
19629 OLIBS="$LIBS" 19587 OLIBS="$LIBS"
19630 LIBS="$LIBS -lresolv" 19588 LIBS="$LIBS -lresolv"
@@ -19642,7 +19600,7 @@ cat >>conftest.$ac_ext <<_ACEOF
19642int 19600int
19643main () 19601main ()
19644{ 19602{
19645res_init(); 19603return res_init();
19646 ; 19604 ;
19647 return 0; 19605 return 0;
19648} 19606}