diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-13 22:23:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-13 22:23:31 -0700 |
commit | 93ca48872e6473db782382fc828e65e6540229d6 (patch) | |
tree | a4ce4e90eab7bcbb5494a44c6b9709a2db7c6547 /src/conf_post.h | |
parent | f7993853c2512d2cb8067c37ea01db4175e37be3 (diff) | |
download | emacs-93ca48872e6473db782382fc828e65e6540229d6.tar.gz |
Clean up configure-time library handling a bit.
This patch was inspired by emacs-24 2014-04-09T13:37:49Z!sdl.web@gmail.com, which fixed
a bug due to sloppy library handling in 'configure'.
* configure.ac (LIB_MATH, LIB_PTHREAD, LIBXMU):
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB as per Autoconf manual.
(LIB_MATH, LIB_PTHREAD, HAVE_X11, IMAGEMAGICK_LIBS, GTK_LIBS)
(DBUS_LIBS, LIBXMU, XFT_LIBS, LIBXSM, LIBXML2_LIBS, LIBS_MAIL)
(with_kerberos):
Don't let the library choice infect $LIBS.
(dnet_ntoa, cma_open): Remove obsolete tests.
(emacs_pthread_function): Probe for pthread_kill, not pthread_self,
as that's a bit more selective on GNU/Linux.
(LIBXEXT): Remove.
(touchlock): Test for existence when $LIBS_MAIL is in use.
(AC_CHECK_FUNCS): Use only $LIB_MATH in addition to $LIBS
when testing for typical functions like accept4, lrand48.
(random, rint): Remove obsolete HP-UX 9 A.09.05 test.
Diffstat (limited to 'src/conf_post.h')
-rw-r--r-- | src/conf_post.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index 80d561090ed..05abe057afd 100644 --- a/src/conf_post.h +++ b/src/conf_post.h @@ -87,10 +87,6 @@ typedef bool bool_bf; #ifdef HPUX #undef srandom #undef random -/* We try to avoid checking for random and rint on hpux in - configure.ac, but some other configure test might check for them as - a dependency, so to be safe we also undefine them here. - */ #undef HAVE_RANDOM #undef HAVE_RINT #endif /* HPUX */ |