diff options
| author | Andreas Schwab | 2007-11-20 23:08:26 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2007-11-20 23:08:26 +0000 |
| commit | 074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82 (patch) | |
| tree | eec4ffaac3839051b91fbff22405f982fb5cd992 | |
| parent | c0a3f2a24a3a4b8241c0aec2f9fc32c4e5e55367 (diff) | |
| download | emacs-074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82.tar.gz emacs-074767f2b1b79f1827a1b14cd9a1cb0a37bd7e82.zip | |
Regenerate.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rwxr-xr-x | configure | 58 |
2 files changed, 13 insertions, 50 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-11-20 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * configure.in: Always include <resolv.h> when checking for | ||
| 4 | res_init. | ||
| 5 | |||
| 1 | 2007-11-17 Andreas Schwab <schwab@suse.de> | 6 | 2007-11-17 Andreas Schwab <schwab@suse.de> |
| 2 | 7 | ||
| 3 | * update-subdirs: Atomically update subdirs.el. | 8 | * update-subdirs: Atomically update subdirs.el. |
| @@ -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 | ||
| 19540 | resolv=no | 19540 | resolv=no |
| 19541 | { echo "$as_me:$LINENO: checking for res_init" >&5 | 19541 | cat >conftest.$ac_ext <<_ACEOF |
| 19542 | echo $ECHO_N "checking for res_init... $ECHO_C" >&6; } | ||
| 19543 | if test "${ac_cv_func_res_init+set}" = set; then | ||
| 19544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
| 19545 | else | ||
| 19546 | cat >conftest.$ac_ext <<_ACEOF | ||
| 19547 | /* confdefs.h. */ | 19542 | /* confdefs.h. */ |
| 19548 | _ACEOF | 19543 | _ACEOF |
| 19549 | cat confdefs.h >>conftest.$ac_ext | 19544 | cat confdefs.h >>conftest.$ac_ext |
| 19550 | cat >>conftest.$ac_ext <<_ACEOF | 19545 | cat >>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 | ||
| 19573 | extern "C" | ||
| 19574 | #endif | ||
| 19575 | char 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 | ||
| 19580 | choke me | ||
| 19581 | #endif | ||
| 19582 | |||
| 19583 | int | 19550 | int |
| 19584 | main () | 19551 | main () |
| 19585 | { | 19552 | { |
| 19586 | return res_init (); | 19553 | return 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 |
| 19610 | else | 19577 | else |
| 19611 | echo "$as_me: failed program was:" >&5 | 19578 | echo "$as_me: failed program was:" >&5 |
| 19612 | sed 's/^/| /' conftest.$ac_ext >&5 | 19579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19613 | 19580 | ||
| 19614 | ac_cv_func_res_init=no | 19581 | have_res_init=no |
| 19615 | fi | 19582 | fi |
| 19616 | 19583 | ||
| 19617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 19584 | rm -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 |
| 19619 | fi | ||
| 19620 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5 | ||
| 19621 | echo "${ECHO_T}$ac_cv_func_res_init" >&6; } | ||
| 19622 | if test $ac_cv_func_res_init = yes; then | ||
| 19623 | have_res_init=yes | ||
| 19624 | else | ||
| 19625 | have_res_init=no | ||
| 19626 | fi | ||
| 19627 | |||
| 19628 | if test "$have_res_init" = no; then | 19586 | if 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 | |||
| 19642 | int | 19600 | int |
| 19643 | main () | 19601 | main () |
| 19644 | { | 19602 | { |
| 19645 | res_init(); | 19603 | return res_init(); |
| 19646 | ; | 19604 | ; |
| 19647 | return 0; | 19605 | return 0; |
| 19648 | } | 19606 | } |