1. 12 May, 2010 1 commit
    • Glenn Morris's avatar
      Move LIB_GCC from cpp to configure. · 1a0d7c06
      Glenn Morris authored
      * configure.in (LIB_GCC): New output variable.
      
      * src/Makefile.in (LIB_GCC): Set using configure, not cpp.
      (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
      * src/m/arm.h (LIB_GCC) [GNU_LINUX]:
      * src/s/cygwin.h (LIB_GCC):
      * src/s/freebsd.h (LIB_GCC):
      * src/s/gnu-linux.h (LIB_GCC):
      * src/s/msdos.h (LIB_GCC):
      * src/s/netbsd.h (LIB_GCC):
      Move to configure.
      
      * msdos/sed1v2.inp (LIB_GCC): Edit to -Lgcc.
      1a0d7c06
  2. 11 May, 2010 1 commit
    • Glenn Morris's avatar
      On msdos, set LIBS_SYSTEM with config.bat, not cpp. · acddf8ae
      Glenn Morris authored
      * config.bat [HAVE_X11]: Run sed3x.inp on lib-src/Makefile.
      
      * src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
      * src/s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
      
      * msdos/sed1x.inp (LIBS_SYSTEM): Edit to -lxext -lsys.
      * msdos/sed3x.inp: New file.
      
      * lib-src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
      (config.h) [MSDOS]: Do not include.
      acddf8ae
  3. 10 May, 2010 1 commit
    • Glenn Morris's avatar
      Move LIBS_SYSTEM from cpp to configure. · 97efb629
      Glenn Morris authored
      * configure.in (LIBS_SYSTEM): New output variable, replacing cpp.
      
      * lib-src/Makefile.in (LIBS_SYSTEM) [!MSDOS]: Set with configure, not cpp.
      (LIBS_SYSTEM) [MSDOS]: Use MSDOS_LIBS_SYSTEM.
      (NOT_C_CODE): Remove, no longer used.
      (config.h) [!MSDOS]: No longer include.
      (LOADLIBES): Use LIBS_SYSTEM as a variable.
      
      * src/Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
      (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
      (LIBES): Use LIBS_SYSTEM as a variable.
      * src/s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
      * src/s/aix4-2.h (LIBS_SYSTEM):
      * src/s/freebsd.h (LIBS_SYSTEM):
      * src/s/hpux10-20.h (LIBS_SYSTEM):
      * src/s/sol2-6.h (LIBS_SYSTEM):
      * src/s/unixware.h (LIBS_SYSTEM):
      Move to configure.
      
      * msdos/sed1v2.inp, msdos/sed3v2.inp (LIBS_SYSTEM): Edit to empty.
      97efb629
  4. 08 May, 2010 2 commits
    • Glenn Morris's avatar
      Remove unused Makefile definition THIS_IS_MAKEFILE. · 7b42b29f
      Glenn Morris authored
      * src/Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
      * lib-sc/Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
      * admin/CPP-DEFINES (THIS_IS_MAKEFILE): Remove.
      7b42b29f
    • Glenn Morris's avatar
      Move TERMINFO, LIBS_TERMCAP from cpp to configure. · 40c17879
      Glenn Morris authored
      * configure.in (HAVE_LIBNCURSES): New local variable.
      (TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables,
      replacing cpp in src/s/*.h and src/Makefile.in.
      
      * src/Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
      (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
      (termcapobj): Replace with TERMCAP_OBJ.
      (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
      (LIBES): Use LIBS_TERMCAP as a variable.
      
      * src/s/freebsd.h (osreldate.h): No longer include, since this file
      does not use __FreeBSD_version any more.
      
      * srs/s/aix4-2.h (TERMINFO):
      * srs/s/cygwin.h (TERMINFO):
      * srs/s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
      * srs/s/freebsd.h (TERMINFO, LIBS_TERMCAP):
      * srs/s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
      * srs/s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
      * srs/s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
      * srs/s/irix6-5.h (TERMINFO):
      * srs/s/netbsd.h (LIBS_TERMCAP):
      * srs/s/openbsd.h (TERMINFO, LIBS_TERMCAP):
      * srs/s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
      * srs/s/usg5-4.h (TERMINFO):
      Move to configure.
      
      * msdos/sed1v2.inp (LIBS_TERMCAP): Edit to empty.
      (TERMCAP_OBJ): Edit to tparam.o.
      
      * admin/CPP-DEFINES (LIBS_TERMCAP, TERMINFO): Remove.
      40c17879
  5. 07 May, 2010 4 commits
    • Eli Zaretskii's avatar
      Fix MS-DOS configuring in lib-src/ and src/, broken by autoconfiscation. · 9fdec8bc
      Eli Zaretskii authored
       src/Makefile.in: Don't use Make-style comments past the "start of
       cpp stuff" line.
       (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
       src/s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
       edited directly by msdos/sed1v2.inp).
       msdos/sed3v2.inp (C_SWITCH_MACHINE): Edit to empty.
       msdos/sed1v2.inp (@LIB_MATH@): Edit to -lm.
       (C_SWITCH_MACHINE, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_TEMACS)
       (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH)
       (LD_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_EXTRA, LIBTIFF, LIBJPEG)
       (LIBPNG, LIBGIF, LIBXPM, XFT_LIBS, DBUS_CFLAGS, DBUS_LIBS)
       (DBUS_OBJ, GCONF_CFLAGS, GCONF_LIBS, GTK_OBJ, LIBXMU, LIBXSM)
       (LIBXTR6, XOBJ, TOOLKIT_LIBW, WIDGET_OBJ, CYGWIN_OBJ, NS_OBJ)
       (NS_SUPPORT, LIBSELINUX_LIBS, START_FILES): Edit to empty.
       (XMENU_OBJ): Edit to xmenu.o.
       (FONT_OBJ): Edit to value used for X on Unix.
       (PRE_ALLOC_OBJ): Edit to lastfile.o.
       (POST_ALLOC_OBJ): Edit to $(vmlimitobj).
       (@unexec@): Edit to unexec.o.
      9fdec8bc
    • Eli Zaretskii's avatar
      Fix the "config msdos" step of MS-DOS build (due to removal of some cpp stuff from configury). · f724825e
      Eli Zaretskii authored
       config.bat: Allow for 2 leading `#'s in comments in src/Makefile.in.
       src/Makefile.in: Don't use Make-style comments past the
       "start of cpp stuff" line.
      f724825e
    • Glenn Morris's avatar
      Move LD_SWITCH_SYSTEM from cpp to configure. · 2f86b22b
      Glenn Morris authored
      * configure.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
      Merges logic from src/s/* and src/Makefile.in.
      (LD_SWITCH_SYSTEM_TEMACS): New output variable.
      
      * src/Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
      (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
      (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
      move out of cpp section.
      * src/s/freebsd.h (LD_SWITCH_SYSTEM):
      * src/s/gnu-linux.h (LD_SWITCH_SYSTEM):
      * src/s/netbsd.h (LD_SWITCH_SYSTEM):
      
      * admin/CPP-DEFINES: Remove LD_SWITCH_SYSTEM.
      2f86b22b
    • Dan Nicolaescu's avatar
      Define LIB_STANDARD and START_FILES using autoconf. · 49ebbd65
      Dan Nicolaescu authored
      * s/usg5-4.h (LIB_STANDARD):
      * s/netbsd.h (START_FILES):
      * s/irix6-5.h (LIB_STANDARD):
      * s/hpux10-20.h (LIB_STANDARD, START_FILES):
      * s/gnu-linux.h (START_FILES, LIB_STANDARD):
      * s/freebsd.h (START_FILES):
      * s/darwin.h (START_FILES):
      * s/cygwin.h (START_FILES):
      * s/aix4-2.h (LIB_STANDARD):
      * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
      * Makefile.in (STARTFILES): Rename to START_FILES, define using
      autoconf, not cpp.
      
      Define START_FILES and LIB_STANDARD using autoconf.
      * configure.in (START_FILES, LIB_STANDARD): New definitions, moved
      here from src/s/*.h.
      (HAVE_CRTIN): Remove, inline logic in the netbsd
      START_FILES/LIB_STANDARD computation.
      49ebbd65
  6. 06 May, 2010 3 commits
  7. 04 May, 2010 4 commits
    • Glenn Morris's avatar
      Move LD_SWITCH_X_SITE_AUX from cpp to autoconf. · 27a2cdfc
      Glenn Morris authored
      * configure.in (LD_SWITCH_X_SITE_AUX): Use AC_SUBST only, not AC_DEFINE as well.
      (LD_SWITCH_X_SITE_AUX_RPATH): New output variable.
      
      * nt/config.nt (LD_SWITCH_X_SITE_AUX): Remove.
      
      * src/s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
      variable.
      * src/s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
      (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
      * src/s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
      (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
      LD_SWITCH_SYSTEM_tmp.
      * src/Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
      New variables, set by configure.
      27a2cdfc
    • Glenn Morris's avatar
      Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf. · eb21eab5
      Glenn Morris authored
      * configure.in (LD_SWITCH_SYSTEM_TEMACS): New output variable.
      
      * src/s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
      * src/s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
      (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
      * src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
      (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
      eb21eab5
    • Glenn Morris's avatar
      Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf. · 49628785
      Glenn Morris authored
      * configure.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM): New output
      variables, replacing c_switch_machine, c_switch_system.
      
      * src/s/aix4-2.h (C_SWITCH_SYSTEM):
      * src/m/alpha.h (C_SWITCH_MACHINE):
      Move to configure.in.
      * src/Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
      New variables, set by configure.
      (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
      $c_switch_machine and $c_switch_system.
      
      * lib-src/Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@
      rather than @c_switch_system@, @c_switch_machine@.
      49628785
    • Dan Nicolaescu's avatar
      * s/hpux10-20.h (LIB_STANDARD): New definition. · 7dff330b
      Dan Nicolaescu authored
      * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
      on it, not used anymore.
      7dff330b
  8. 03 May, 2010 1 commit
    • Glenn Morris's avatar
      Replace some X-related cpp with autoconf. · 3dee6fdb
      Glenn Morris authored
      * configure.in (LIBXT_OTHER, LIBX_OTHER): New output variables.
      
      * src/Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
      (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
      (LIBXT): Set with configure, not cpp.
      (LIBX): Remove.
      (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
      3dee6fdb
  9. 01 May, 2010 2 commits
    • Dan Nicolaescu's avatar
      Remove LD_SWITCH_MACHINE. · cd03c74a
      Dan Nicolaescu authored
      * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
      (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
      
      * configure.in (LD_SWITCH_MACHINE, ld_switch_machine): Remove, unused.
      (ac_link): Do not use ld_switch_machine.
      cd03c74a
    • Glenn Morris's avatar
      Rework previous autoconf changes, hopefully to make clearer. · 7acac9f4
      Glenn Morris authored
      * configure.in (OTHER_OBJ): Remove.
      (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables.
      
      * configure: Regenerate.
      
      * src/Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
      for clarity.
      (OTHER_OBJ): Remove.
      (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
      (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
      7acac9f4
  10. 30 Apr, 2010 5 commits
  11. 28 Apr, 2010 6 commits
  12. 27 Apr, 2010 7 commits
    • Glenn Morris's avatar
      Move LIBXTR6 from cpp to autoconf. · 8fdac2c3
      Glenn Morris authored
      * configure.in (LIBXTR6): New output variable.  Move unixware special
      case here from src/s/unixware.h.
      
      * src/Makefile.in (LIBXTR6): Set with configure, not cpp.
      * src/s/unixware.h (NEED_LIBW): Remove definition.
      
      * admin/CPP-DEFINES: Remove NEED_LIBW.
      8fdac2c3
    • Glenn Morris's avatar
      Replace LUCID_LIBW, MOTIF_LIBW with TOOLKIT_LIBW. · 986fb647
      Glenn Morris authored
      * configure.in (LUCID_LIBW, MOTIF_LIBW): No longer substitute in Makefiles.
      (TOOLKIT_LIBW): New output variable, replacing LUCID_LIBW/MOTIF_LIBW.
      
      * src/Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
      (TOOLKIT_LIBW): New, set by configure.
      (@X_TOOLKIT_TYPE@): No longer define it.
      986fb647
    • Glenn Morris's avatar
      Move MOTIF_LIBW to autoconf. · c6ea2936
      Glenn Morris authored
      * configure.in (HAVE_MOTIF_2_1): Remove unused variable.
      (LIBXP): No longer substitute in Makefiles.
      (MOTIF_LIBW): New output variable.  Move system-specific settings here
      from src/s files.
      
      * src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
      (MOTIF_LIBW): Set with configure, not cpp.
      * s/aix4-2.h (LIB_MOTIF):
      * s/gnu-linux.h (LIB_MOTIF):
      * s/unixware.h (LIB_MOTIF): Move to configure.in.
      
      * admin/CPP-DEFINES: Remove LIB_MOTIF.
      c6ea2936
    • Dan Nicolaescu's avatar
      Reduce CPP usage. · ed6281b0
      Dan Nicolaescu authored
      * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
      definitions and undefs.  Inline definitions in the only user.
      (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
      
      * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
      
      * Makefile.in (C_SWITCH_X_SYSTEM): Define using autoconf.
      
      * configure.in (C_SWITCH_X_SYSTEM): Define using autoconf, not cpp.
      ed6281b0
    • Dan Nicolaescu's avatar
      Reduce CPP usage. · aaa36002
      Dan Nicolaescu authored
      * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
      (obj): Use autoconf for unexec instead of cpp.
      
      * configure.in (LIB_X11_LIB): Remove, inline in the only user.
      (unexec): Define unconditionally, all platforms define
      UNEXEC.  AC_SUBST it.
      (UNEXEC_SRC): Remove, unused.
      aaa36002
    • Glenn Morris's avatar
      Use $CRT_DIR in more places. · 76cda504
      Glenn Morris authored
      * configure.in (--with-crt-dir): Doc fix (now valid for all platforms).
      (CRT_DIR): On (powerpc64|sparc64)-*-linux-gnu*, default to /usr/lib64.
      On hpux10-20, default to /lib.
      
      * src/m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
      since the defaults (set by the system file) are fine in most cases.
      [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
      * src/m/ibms390x.h (START_FILES, LIB_STANDARD):
      * src/m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
      * src/m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
      Remove definitions, since they are set correctly in s/gnu-linux.h.
      * src/s/freebsd.h (START_FILES, LIB_STANDARD):
      * src/s/gnu-linux.h (START_FILES, LIB_STANDARD):
      * src/s/hpux10-20.h (START_FILES):
      * src/s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
      Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
      
      * src/Makefile.in: Comment.
      76cda504
    • Glenn Morris's avatar
      Replace some more cpp with autoconf. · b678dd8b
      Glenn Morris authored
      * configure.in (LUCID_LIBW, LIBXP, WIDGET_OBJ): New output variables.
      
      * src/Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
      (MOTIF_LIBW): Use $LIBXP.
      (otherobj): Use $WIDGET_OBJ.
      b678dd8b
  13. 26 Apr, 2010 3 commits