diff options
| author | Dan Nicolaescu | 2010-04-26 10:10:09 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-04-26 10:10:09 -0700 |
| commit | 9452ded1310f9d725ef318038ceab4737b7b92d9 (patch) | |
| tree | 0fb31292dab6f316629b4570c3e374d3f1c39de9 /src | |
| parent | fcebfc6a34b6b21435fdbe7e68269de6088d55c2 (diff) | |
| download | emacs-9452ded1310f9d725ef318038ceab4737b7b92d9.tar.gz emacs-9452ded1310f9d725ef318038ceab4737b7b92d9.zip | |
Use autoconf instead of cpp for LIB_MATH.
* s/darwin.h (LIB_MATH): Do not define here, move to configure.
* s/cygwin.h (LIB_MATH): Likewise.
* Makefile.in (LIB_MATH): Do not define with cpp.
(LIBES): Use autoconf for LIB_MATH.
* configure.in (LIB_MATH): New output variable. Set it for some systems.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/Makefile.in | 6 | ||||
| -rw-r--r-- | src/s/cygwin.h | 1 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index db23a4a7cb3..58ea0e2476b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Use autoconf instead of cpp for LIB_MATH. | ||
| 4 | * s/darwin.h (LIB_MATH): Do not define here, move to configure. | ||
| 5 | * s/cygwin.h (LIB_MATH): Likewise. | ||
| 6 | * Makefile.in (LIB_MATH): Do not define with cpp. | ||
| 7 | (LIBES): Use autoconf for LIB_MATH. | ||
| 8 | |||
| 1 | 2010-04-26 Kenichi Handa <handa@m17n.org> | 9 | 2010-04-26 Kenichi Handa <handa@m17n.org> |
| 2 | 10 | ||
| 3 | * composite.c (Ffind_composition_internal): Fix the return value | 11 | * composite.c (Ffind_composition_internal): Fix the return value |
diff --git a/src/Makefile.in b/src/Makefile.in index c458c46b619..14fe29cf482 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -175,10 +175,6 @@ DEPFLAGS = -MMD -MF deps/$*.d | |||
| 175 | #define LIBS_MACHINE | 175 | #define LIBS_MACHINE |
| 176 | #endif | 176 | #endif |
| 177 | 177 | ||
| 178 | #ifndef LIB_MATH | ||
| 179 | # define LIB_MATH -lm | ||
| 180 | #endif /* LIB_MATH */ | ||
| 181 | |||
| 182 | /* Some s/SYSTEM.h files define this to request special switches in ld. */ | 178 | /* Some s/SYSTEM.h files define this to request special switches in ld. */ |
| 183 | #ifndef LD_SWITCH_SYSTEM | 179 | #ifndef LD_SWITCH_SYSTEM |
| 184 | #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) | 180 | #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) |
| @@ -795,7 +791,7 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ | |||
| 795 | @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ | 791 | @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ |
| 796 | $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ | 792 | $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ |
| 797 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ | 793 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ |
| 798 | $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR) | 794 | $(GNULIB_VAR) @LIB_MATH@ LIB_STANDARD $(GNULIB_VAR) |
| 799 | 795 | ||
| 800 | all: emacs${EXEEXT} $(OTHER_FILES) | 796 | all: emacs${EXEEXT} $(OTHER_FILES) |
| 801 | 797 | ||
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 1141f0bbd5e..b2ade390c7e 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -137,7 +137,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 137 | 137 | ||
| 138 | /* Don't list system libs on link command line */ | 138 | /* Don't list system libs on link command line */ |
| 139 | #define LIB_STANDARD | 139 | #define LIB_STANDARD |
| 140 | #define LIB_MATH | ||
| 141 | 140 | ||
| 142 | #define START_FILES ecrt0.o | 141 | #define START_FILES ecrt0.o |
| 143 | 142 | ||
diff --git a/src/s/darwin.h b/src/s/darwin.h index 016ed343f06..060e354dca7 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -205,9 +205,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 205 | /* Link this program just by running cc. */ | 205 | /* Link this program just by running cc. */ |
| 206 | #define ORDINARY_LINK | 206 | #define ORDINARY_LINK |
| 207 | 207 | ||
| 208 | /* Adding -lm confuses the dynamic linker, so omit it. */ | ||
| 209 | #define LIB_MATH | ||
| 210 | |||
| 211 | /* Define the following so emacs symbols will not conflict with those | 208 | /* Define the following so emacs symbols will not conflict with those |
| 212 | in the System framework. Otherwise -prebind will not work. */ | 209 | in the System framework. Otherwise -prebind will not work. */ |
| 213 | 210 | ||