comparison configure.in @ 97043:9592c50233ab remove-carbon

Remove support for Mac Carbon. * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 27 Jul 2008 18:24:48 +0000
parents 10d82debd64e
children b57392641da7
comparison
equal deleted inserted replaced
97042:0ac199626cb9 97043:9592c50233ab
139 OPTION_DEFAULT_ON([m17n-flt],[don't use m17n-flt for text shaping]) 139 OPTION_DEFAULT_ON([m17n-flt],[don't use m17n-flt for text shaping])
140 140
141 OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars]) 141 OPTION_DEFAULT_ON([toolkit-scroll-bars],[don't use Motif or Xaw3d scroll bars])
142 OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d]) 142 OPTION_DEFAULT_ON([xaw3d],[don't use Xaw3d])
143 OPTION_DEFAULT_ON([xim],[don't use X11 XIM]) 143 OPTION_DEFAULT_ON([xim],[don't use X11 XIM])
144 OPTION_DEFAULT_OFF([carbon],[use Carbon GUI on Mac OS X. This is unsupported!])
145 OPTION_DEFAULT_OFF([ns],[use nextstep (Cocoa or GNUstep) windowing system]) 144 OPTION_DEFAULT_OFF([ns],[use nextstep (Cocoa or GNUstep) windowing system])
146 145
147 OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) 146 OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console])
148 OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support]) 147 OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support])
149 148
167 if test "X${with_pkg_config_prog}" != X; then 166 if test "X${with_pkg_config_prog}" != X; then
168 if test "${with_pkg_config_prog}" != yes; then 167 if test "${with_pkg_config_prog}" != yes; then
169 PKG_CONFIG="${with_pkg_config_prog}" 168 PKG_CONFIG="${with_pkg_config_prog}"
170 fi 169 fi
171 fi 170 fi
172
173 AC_ARG_ENABLE(carbon-app,
174 [AS_HELP_STRING([--enable-carbon-app@<:@=DIR@:>@],
175 [specify install directory for Emacs.app on Mac OS X
176 [DIR=/Application]])],
177 [ carbon_appdir_x=${enableval}])
178 171
179 AC_ARG_ENABLE(cocoa-experimental-ctrl-g, 172 AC_ARG_ENABLE(cocoa-experimental-ctrl-g,
180 [ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition], 173 [ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition],
181 EN_COCOA_EXPERIMENTAL_CTRL_G=yes, 174 EN_COCOA_EXPERIMENTAL_CTRL_G=yes,
182 EN_COCOA_EXPERIMENTAL_CTRL_G=no) 175 EN_COCOA_EXPERIMENTAL_CTRL_G=no)
1212 if test ${bmd_acc} != "dummyval"; then 1205 if test ${bmd_acc} != "dummyval"; then
1213 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` 1206 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
1214 fi 1207 fi
1215 fi 1208 fi
1216 1209
1217 HAVE_CARBON=no
1218 if test "${with_carbon}" != no; then
1219 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
1220 test "${HAVE_CARBON}" = yes && window_system=mac
1221 fi
1222
1223 HAVE_NS=no 1210 HAVE_NS=no
1224 NS_IMPL_COCOA=no 1211 NS_IMPL_COCOA=no
1225 NS_IMPL_GNUSTEP=no 1212 NS_IMPL_GNUSTEP=no
1226 tmp_CPPFLAGS="$CPPFLAGS" 1213 tmp_CPPFLAGS="$CPPFLAGS"
1227 tmp_CFLAGS="$CFLAGS" 1214 tmp_CFLAGS="$CFLAGS"
1249 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 1236 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
1250 fi 1237 fi
1251 AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=yes) 1238 AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=yes)
1252 fi 1239 fi
1253 if test "${HAVE_NS}" = yes; then 1240 if test "${HAVE_NS}" = yes; then
1254 test "${window_system}" = mac && HAVE_CARBON=no
1255 window_system=nextstep 1241 window_system=nextstep
1256 with_xft=no 1242 with_xft=no
1257 with_freetype=no 1243 with_freetype=no
1258 # set up packaging dirs 1244 # set up packaging dirs
1259 exec_prefix=${ns_appbindir} 1245 exec_prefix=${ns_appbindir}
1280 dnl If user did not say whether to use a toolkit, make this decision later: 1266 dnl If user did not say whether to use a toolkit, make this decision later:
1281 dnl use the toolkit if we have gtk, or X11R5 or newer. 1267 dnl use the toolkit if we have gtk, or X11R5 or newer.
1282 * ) USE_X_TOOLKIT=maybe ;; 1268 * ) USE_X_TOOLKIT=maybe ;;
1283 esac 1269 esac
1284 ;; 1270 ;;
1285 nextstep | mac | none ) 1271 nextstep | none )
1286 HAVE_X_WINDOWS=no 1272 HAVE_X_WINDOWS=no
1287 HAVE_X11=no 1273 HAVE_X11=no
1288 USE_X_TOOLKIT=none 1274 USE_X_TOOLKIT=none
1289 ;; 1275 ;;
1290 esac 1276 esac
1473 fi 1459 fi
1474 1460
1475 1461
1476 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. 1462 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
1477 HAVE_RSVG=no 1463 HAVE_RSVG=no
1478 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then 1464 if test "${HAVE_X11}" = "yes"; then
1479 if test "${with_rsvg}" != "no"; then 1465 if test "${with_rsvg}" != "no"; then
1480 RSVG_REQUIRED=2.0.0 1466 RSVG_REQUIRED=2.0.0
1481 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" 1467 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
1482 1468
1483 PKG_CHECK_MODULES(RSVG, $RSVG_MODULE, :, :) 1469 PKG_CHECK_MODULES(RSVG, $RSVG_MODULE, :, :)
1749 USE_TOOLKIT_SCROLL_BARS=yes 1735 USE_TOOLKIT_SCROLL_BARS=yes
1750 fi 1736 fi
1751 elif test "${HAVE_GTK}" = "yes"; then 1737 elif test "${HAVE_GTK}" = "yes"; then
1752 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) 1738 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
1753 USE_TOOLKIT_SCROLL_BARS=yes 1739 USE_TOOLKIT_SCROLL_BARS=yes
1754 elif test "${HAVE_CARBON}" = "yes"; then
1755 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
1756 USE_TOOLKIT_SCROLL_BARS=yes
1757 elif test "${HAVE_NS}" = "yes"; then 1740 elif test "${HAVE_NS}" = "yes"; then
1758 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) 1741 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS)
1759 USE_TOOLKIT_SCROLL_BARS=yes 1742 USE_TOOLKIT_SCROLL_BARS=yes
1760 fi 1743 fi
1761 fi 1744 fi
2049 fi 2032 fi
2050 2033
2051 dnl Check for malloc/malloc.h on darwin 2034 dnl Check for malloc/malloc.h on darwin
2052 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])]) 2035 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])])
2053 2036
2054 ### Use Mac OS X Carbon API to implement GUI.
2055 if test "${HAVE_CARBON}" = "yes"; then
2056 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.])
2057 AC_CHECK_HEADERS(AvailabilityMacros.h)
2058 ## Specify the install directory
2059 carbon_appdir=
2060 if test "${carbon_appdir_x}" != ""; then
2061 case ${carbon_appdir_x} in
2062 y | ye | yes) carbon_appdir=/Applications ;;
2063 * ) carbon_appdir=${carbon_appdir_x} ;;
2064 esac
2065 fi
2066 # We also have mouse menus.
2067 HAVE_MENUS=yes
2068 fi
2069 ### Use NeXTstep API to implement GUI. 2037 ### Use NeXTstep API to implement GUI.
2070 if test "${HAVE_NS}" = "yes"; then 2038 if test "${HAVE_NS}" = "yes"; then
2071 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) 2039 AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.])
2072 if test "${NS_IMPL_COCOA}" = "yes"; then 2040 if test "${NS_IMPL_COCOA}" = "yes"; then
2073 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) 2041 AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.])
2474 AC_SUBST(CFLAGS) 2442 AC_SUBST(CFLAGS)
2475 AC_SUBST(X_TOOLKIT_TYPE) 2443 AC_SUBST(X_TOOLKIT_TYPE)
2476 AC_SUBST(machfile) 2444 AC_SUBST(machfile)
2477 AC_SUBST(opsysfile) 2445 AC_SUBST(opsysfile)
2478 AC_SUBST(GETLOADAVG_LIBS) 2446 AC_SUBST(GETLOADAVG_LIBS)
2479 AC_SUBST(carbon_appdir)
2480 AC_SUBST(ns_appdir) 2447 AC_SUBST(ns_appdir)
2481 AC_SUBST(ns_appbindir) 2448 AC_SUBST(ns_appbindir)
2482 AC_SUBST(ns_appresdir) 2449 AC_SUBST(ns_appresdir)
2483 AC_SUBST(ns_appsrc) 2450 AC_SUBST(ns_appsrc)
2484 AC_SUBST(GNUSTEP_MAKEFILES) 2451 AC_SUBST(GNUSTEP_MAKEFILES)
2570 #define EMACS_CONFIG_H 2537 #define EMACS_CONFIG_H
2571 ])dnl 2538 ])dnl
2572 2539
2573 AH_BOTTOM([ 2540 AH_BOTTOM([
2574 /* If we're using X11/Carbon/GNUstep, define some consequences. */ 2541 /* If we're using X11/Carbon/GNUstep, define some consequences. */
2575 #if defined HAVE_X_WINDOWS || defined(HAVE_CARBON) || defined(HAVE_NS) 2542 #if defined(HAVE_X_WINDOWS) || defined(HAVE_NS)
2576 #define HAVE_WINDOW_SYSTEM 2543 #define HAVE_WINDOW_SYSTEM
2577 #define MULTI_KBOARD 2544 #define MULTI_KBOARD
2578 #define HAVE_MOUSE 2545 #define HAVE_MOUSE
2579 #endif 2546 #endif
2580 2547
2586 2553
2587 /* Sadly for now, GNUstep dump does not work. */ 2554 /* Sadly for now, GNUstep dump does not work. */
2588 #ifdef NS_IMPL_GNUSTEP 2555 #ifdef NS_IMPL_GNUSTEP
2589 #define CANNOT_DUMP 2556 #define CANNOT_DUMP
2590 #endif 2557 #endif
2591
2592 /* TODO: These are used for the Carbon port only. */
2593 #undef MAC_OS
2594 #undef MAC_OSX
2595 2558
2596 /* Define AMPERSAND_FULL_NAME if you use the convention 2559 /* Define AMPERSAND_FULL_NAME if you use the convention
2597 that & in the full name stands for the login id. */ 2560 that & in the full name stands for the login id. */
2598 /* Turned on June 1996 supposing nobody will mind it. */ 2561 /* Turned on June 1996 supposing nobody will mind it. */
2599 #define AMPERSAND_FULL_NAME 2562 #define AMPERSAND_FULL_NAME
2634 #include config_opsysfile 2597 #include config_opsysfile
2635 #include config_machfile 2598 #include config_machfile
2636 2599
2637 /* Set up some defines, C and LD flags for NeXTstep interface on GNUstep. 2600 /* Set up some defines, C and LD flags for NeXTstep interface on GNUstep.
2638 (There is probably a better place to do this, but right now the Cocoa 2601 (There is probably a better place to do this, but right now the Cocoa
2639 side does this in s/darwin.h, following the Carbon port, and we cannot 2602 side does this in s/darwin.h and we cannot
2640 parallel this exactly since GNUstep is multi-OS. */ 2603 parallel this exactly since GNUstep is multi-OS. */
2641 #ifdef HAVE_NS 2604 #ifdef HAVE_NS
2642 # ifdef C_SWITCH_SYSTEM 2605 # ifdef C_SWITCH_SYSTEM
2643 # undef C_SWITCH_SYSTEM 2606 # undef C_SWITCH_SYSTEM
2644 # endif 2607 # endif
2891 toolkit for Emacs. See etc/PROBLEMS for more information." 2854 toolkit for Emacs. See etc/PROBLEMS for more information."
2892 ;; 2855 ;;
2893 esac 2856 esac
2894 fi 2857 fi
2895 2858
2896
2897 if test "$HAVE_CARBON" = "yes"; then
2898 echo
2899 echo "Warning: The Mac Carbon port is currently unsupported and has
2900 known problems. It is not recommended for use by non-developers.
2901 The NeXTstep port (--with-ns) is an alternative.
2902 Read the emacs-devel archives for more information."
2903 echo
2904 fi
2905
2906 if test "$HAVE_NS" = "yes"; then 2859 if test "$HAVE_NS" = "yes"; then
2907 echo 2860 echo
2908 echo "You must run \"make install\" in order to test the built application. 2861 echo "You must run \"make install\" in order to test the built application.
2909 The installed application will go to nextstep/Emacs.app and can be 2862 The installed application will go to nextstep/Emacs.app and can be
2910 run or moved from there." 2863 run or moved from there."