diff options
| author | Eli Zaretskii | 2015-04-16 19:02:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-04-16 19:02:41 +0300 |
| commit | abba535271c3bd617d198c237a6fbb7d8dbb8cf7 (patch) | |
| tree | b74ed17aaa6979c6ea7b539ab7468f2babe47823 | |
| parent | 3ab1784327d4d40b3e6bc3a14323740c9a62fa16 (diff) | |
| download | emacs-abba535271c3bd617d198c237a6fbb7d8dbb8cf7.tar.gz emacs-abba535271c3bd617d198c237a6fbb7d8dbb8cf7.zip | |
Don't link with -ljpeg on MS-Windows, to avoid dependency on DLL
* configure.ac (LIBJPEG): Leave it empty for MinGW.
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 39f3f9f5f2f..4cb3c354da5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3186,7 +3186,6 @@ fi | |||
| 3186 | AC_SUBST(LIBXPM) | 3186 | AC_SUBST(LIBXPM) |
| 3187 | 3187 | ||
| 3188 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | 3188 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 3189 | ### mingw32 doesn't use -ljpeg, since it loads the library dynamically. | ||
| 3190 | HAVE_JPEG=no | 3189 | HAVE_JPEG=no |
| 3191 | LIBJPEG= | 3190 | LIBJPEG= |
| 3192 | if test "${with_jpeg}" != "no"; then | 3191 | if test "${with_jpeg}" != "no"; then |
| @@ -3222,7 +3221,11 @@ if test "${with_jpeg}" != "no"; then | |||
| 3222 | HAVE_JPEG=yes | 3221 | HAVE_JPEG=yes |
| 3223 | AC_DEFINE([HAVE_JPEG], 1, | 3222 | AC_DEFINE([HAVE_JPEG], 1, |
| 3224 | [Define to 1 if you have the jpeg library (typically -ljpeg).]) | 3223 | [Define to 1 if you have the jpeg library (typically -ljpeg).]) |
| 3225 | test "$emacs_cv_jpeglib" != yes && LIBJPEG=$emacs_cv_jpeglib | 3224 | ### mingw32 doesn't use -ljpeg, since it loads the library |
| 3225 | ### dynamically when needed, and doesn't want a run-time | ||
| 3226 | ### dependency on the jpeglib DLL. | ||
| 3227 | test "$emacs_cv_jpeglib" != yes && test "${opsys}" != "mingw32" \ | ||
| 3228 | && LIBJPEG=$emacs_cv_jpeglib | ||
| 3226 | fi | 3229 | fi |
| 3227 | fi | 3230 | fi |
| 3228 | AC_SUBST(LIBJPEG) | 3231 | AC_SUBST(LIBJPEG) |