diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1998-02-16 07:13:49 +0800 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1998-02-16 07:13:49 +0800 |
commit | 75b309856071124362b06d2c77f09141a8caa619 (patch) | |
tree | 88cf415183334b6e40fc2dd3c1a5ced7e3c5b4a8 /macros/gnome-x-checks.m4 | |
parent | eaaef2717d7ab8c4d6ba24150add836c05ca6d78 (diff) | |
download | gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.gz gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.bz2 gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.lz gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.xz gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.tar.zst gsoc2013-evolution-75b309856071124362b06d2c77f09141a8caa619.zip |
Add `gnome-pthread-check.m4'. New file. Moved pthread check from
* Makefile.am (MACROS): Add `gnome-pthread-check.m4'.
* gnome-pthread-check.m4: New file. Moved pthread check from
gnome-x-checks.m4 to here.
* gnome-objc-checks.m4: Use `gnome-pthread-check'.
(OBJC_LIBS): New config var.
* gnome-x-checks.m4: Add `AC_DEFINE(HAVE_LIBSM)' if `-lSM' is
already part of `$x_libs'.
Move pthread check to new file.
- Hari
svn path=/trunk/; revision=37
Diffstat (limited to 'macros/gnome-x-checks.m4')
-rw-r--r-- | macros/gnome-x-checks.m4 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/macros/gnome-x-checks.m4 b/macros/gnome-x-checks.m4 index fef8a8fec8..c016435702 100644 --- a/macros/gnome-x-checks.m4 +++ b/macros/gnome-x-checks.m4 @@ -32,6 +32,7 @@ AC_DEFUN([GNOME_X_CHECKS], case "$x_libs" in *-lSM*) # Already found it. + AC_DEFINE(HAVE_LIBSM) ;; *) AC_CHECK_LIB(SM, SmcSaveYourselfDone, @@ -55,10 +56,7 @@ AC_DEFUN([GNOME_X_CHECKS], AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs) AC_SUBST(XPM_LIBS) - PTHREAD_LIB="" - AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread", - [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r")]) - AC_SUBST(PTHREAD_LIB) + AC_REQUIRE([GNOME_PTHREAD_CHECK]) CFLAGS="$saved_cflags $X_CFLAGS" LDFLAGS="$saved_ldflags" |