aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-07-21 21:43:52 +0000
committerGerd Moellmann1999-07-21 21:43:52 +0000
commitb412189cca6aa9a521540b3a1dd61598b7d5bed4 (patch)
tree1b66333fb8de945fdfe41a3946932da999e37cb4
parent968aa0ada461d3267b2f278a829abed21ed031c9 (diff)
downloademacs-b412189cca6aa9a521540b3a1dd61598b7d5bed4.tar.gz
emacs-b412189cca6aa9a521540b3a1dd61598b7d5bed4.zip
(--with-png, HAVE_PNG): New.
(toplevel): Add checks for machine/soundcard.h and sys/soundcard.h. (USE_TOOLKIT_SCROLL_BARS): New. (HAVE_XAW3D): New. (--with-tiff, HAVE_TIFF): Added. (HAVE_JPEG, --with-jpeg): Added. (--with-xpm, HAVE_XPM): New.
-rw-r--r--configure.in128
1 files changed, 127 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 90cec12dcfa..dcabf5a7d76 100644
--- a/configure.in
+++ b/configure.in
@@ -66,6 +66,18 @@ Currently, \`yes', \`athena' and \`lucid' are synonyms.])
66 esac 66 esac
67 with_x_toolkit=$val 67 with_x_toolkit=$val
68]) 68])
69AC_ARG_WITH(xpm,
70[ --with-xpm use -lXpm for displaying XPM images])
71AC_ARG_WITH(jpeg,
72[ --with-jpeg use -ljpeg for displaying JPEG images])
73AC_ARG_WITH(tiff,
74[ --with-tiff use -ltiff34 for displaying TIFF images])
75AC_ARG_WITH(gif,
76[ --with-gif use -lungif for displaying GIF images])
77AC_ARG_WITH(png,
78[ --with-png use -lpng for displaying PNG images])
79AC_ARG_WITH(sound,
80[ --with-sound native sound support for GNU/Linux and free BSDs])
69 81
70#### Make srcdir absolute, if it isn't already. It's important to 82#### Make srcdir absolute, if it isn't already. It's important to
71#### avoid running the path through pwd unnecessary, since pwd can 83#### avoid running the path through pwd unnecessary, since pwd can
@@ -773,7 +785,7 @@ case "${canonical}" in
773 ;; 785 ;;
774 786
775 ## Suns 787 ## Suns
776 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) 788 sparc-*-linux-gnu* )
777 machine=sparc opsys=gnu-linux 789 machine=sparc opsys=gnu-linux
778 ;; 790 ;;
779 791
@@ -1094,6 +1106,14 @@ AC_PROG_YACC
1094dnl checks for Unix variants 1106dnl checks for Unix variants
1095AC_AIX 1107AC_AIX
1096 1108
1109# Sound support for GNU/Linux and the free BSDs.
1110if test "${with_sound}" = ""; then
1111 with_sound=no
1112fi
1113if test "${with_sound}" != "no"; then
1114 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h)
1115fi
1116
1097dnl checks for header files 1117dnl checks for header files
1098AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h string.h) 1118AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h string.h)
1099AC_HEADER_STDC 1119AC_HEADER_STDC
@@ -1226,6 +1246,94 @@ case ${HAVE_X11} in
1226 yes ) HAVE_MENUS=yes ;; 1246 yes ) HAVE_MENUS=yes ;;
1227esac 1247esac
1228 1248
1249### Is -lXaw3d available?
1250HAVE_XAW3D=no
1251if test "${HAVE_X11}" = "yes"; then
1252 old_c_flags="${CFLAGS}"
1253 CFLAGS="${LD_SWITCH_X_SITE}"
1254 AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes, , -lX11)
1255 CFLAGS="${old_c_flags}"
1256
1257 if test "${HAVE_XAW3D}" = "yes"; then
1258 AC_DEFINE(HAVE_XAW3D)
1259 fi
1260fi
1261
1262### Use -lXpm if available, unless `--with-xpm=no'.
1263HAVE_XPM=no
1264if test "${HAVE_X11}" = "yes"; then
1265 if test "${with_xpm}" != "no"; then
1266 old_c_flags="${CFLAGS}"
1267 CFLAGS="${LD_SWITCH_X_SITE}"
1268 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)
1269 CFLAGS="${old_c_flags}"
1270 fi
1271
1272 if test "${HAVE_XPM}" = "yes"; then
1273 AC_DEFINE(HAVE_XPM)
1274 fi
1275fi
1276
1277### Use -ljpeg if available, unless `--with-jpeg=no'.
1278HAVE_JPEG=no
1279if test "${HAVE_X11}" = "yes"; then
1280 if test "${with_jpeg}" != "no"; then
1281 old_c_flags="${CFLAGS}"
1282 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1283 AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes, , -lX11)
1284 CFLAGS="${old_c_flags}"
1285 fi
1286
1287 if test "${HAVE_JPEG}" = "yes"; then
1288 AC_DEFINE(HAVE_JPEG)
1289 fi
1290fi
1291
1292### Use -lpng if available, unless `--with-png=no'.
1293HAVE_PNG=no
1294if test "${HAVE_X11}" = "yes"; then
1295 if test "${with_png}" != "no"; then
1296 old_c_flags="${CFLAGS}"
1297 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1298 AC_CHECK_LIB(png, png_set_expand, HAVE_PNG=yes, , -lX11 -lz -lm)
1299 CFLAGS="${old_c_flags}"
1300 fi
1301
1302 if test "${HAVE_PNG}" = "yes"; then
1303 AC_DEFINE(HAVE_PNG)
1304 fi
1305fi
1306
1307### Use -ltiff34 if available, unless `--with-tiff=no'.
1308HAVE_TIFF=no
1309if test "${HAVE_X11}" = "yes"; then
1310 if test "${with_tiff}" != "no"; then
1311 old_c_flags="${CFLAGS}"
1312 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1313 AC_CHECK_LIB(tiff34, TIFFGetVersion, HAVE_TIFF=yes, , -lX11)
1314 CFLAGS="${old_c_flags}"
1315 fi
1316
1317 if test "${HAVE_TIFF}" = "yes"; then
1318 AC_DEFINE(HAVE_TIFF)
1319 fi
1320fi
1321
1322### Use -lgif if available, unless `--with-gif=no'.
1323HAVE_GIF=no
1324if test "${HAVE_X11}" = "yes"; then
1325 if test "${with_gif}" != "no"; then
1326 old_c_flags="${CFLAGS}"
1327 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
1328 AC_CHECK_LIB(ungif, DGifOpenFileName, HAVE_GIF=yes, , -lX11)
1329 CFLAGS="${old_c_flags}"
1330 fi
1331
1332 if test "${HAVE_GIF}" = "yes"; then
1333 AC_DEFINE(HAVE_GIF)
1334 fi
1335fi
1336
1229if test "${opsys}" = "hpux9"; then 1337if test "${opsys}" = "hpux9"; then
1230 case "${x_libraries}" in 1338 case "${x_libraries}" in
1231 *X11R4* ) 1339 *X11R4* )
@@ -1553,6 +1661,18 @@ fi
1553 1661
1554X_TOOLKIT_TYPE=$USE_X_TOOLKIT 1662X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1555 1663
1664dnl Use toolkit scroll bars if configured for X toolkit and either
1665dnl using Motif or Xaw3d is available.
1666
1667if test "${USE_X_TOOLKIT}" != "none"; then
1668 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
1669 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
1670 HAVE_XAW3D=no
1671 elif test "${HAVE_XAW3D}" = "yes"; then
1672 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
1673 fi
1674fi
1675
1556if test "${USE_X_TOOLKIT}" != "none"; then 1676if test "${USE_X_TOOLKIT}" != "none"; then
1557 AC_MSG_CHECKING(X11 toolkit version) 1677 AC_MSG_CHECKING(X11 toolkit version)
1558 AC_CACHE_VAL(emacs_cv_x11_toolkit_version_6, 1678 AC_CACHE_VAL(emacs_cv_x11_toolkit_version_6,
@@ -1828,6 +1948,12 @@ else
1828echo " Where do we find X Windows libraries? Standard dirs" 1948echo " Where do we find X Windows libraries? Standard dirs"
1829fi 1949fi
1830 1950
1951echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
1952echo " Does Emacs use -lXpm? ${HAVE_XPM}"
1953echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
1954echo " Does Emacs use -ltiff34? ${HAVE_TIFF}"
1955echo " Does Emacs use -lungif? ${HAVE_GIF}"
1956echo " Does Emacs use -lpng? ${HAVE_PNG}"
1831echo 1957echo
1832 1958
1833# Remove any trailing slashes in these variables. 1959# Remove any trailing slashes in these variables.