mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* acconfig.h, configure.in: Require autoconf 2.13 or above.
Removed workarounds for older versions. Removed MCDEBUG variable - it's not used. --with-debug renamed to --with-mad and cleaned up. Always use -Wall with gcc, other manipulations with CFLAGS removed.
This commit is contained in:
parent
61a5a5f4fb
commit
a59746356c
@ -1,5 +1,11 @@
|
|||||||
2000-09-15 Pavel Roskin <proski@gnu.org>
|
2000-09-15 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* acconfig.h, configure.in: Require autoconf 2.13 or above.
|
||||||
|
Removed workarounds for older versions. Removed MCDEBUG
|
||||||
|
variable - it's not used. --with-debug renamed to --with-mad and
|
||||||
|
cleaned up. Always use -Wall with gcc, other manipulations with
|
||||||
|
CFLAGS removed.
|
||||||
|
|
||||||
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
|
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
|
||||||
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
|
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
|
||||||
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
|
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
|
||||||
|
@ -23,9 +23,6 @@
|
|||||||
|
|
||||||
@TOP@
|
@TOP@
|
||||||
|
|
||||||
#undef VERSION
|
|
||||||
#undef PACKAGE
|
|
||||||
|
|
||||||
/* Always defined */
|
/* Always defined */
|
||||||
#undef D_INO_IN_DIRENT
|
#undef D_INO_IN_DIRENT
|
||||||
#undef IS_AIX
|
#undef IS_AIX
|
||||||
@ -113,9 +110,6 @@
|
|||||||
/* Support for the Memory Allocation Debugger */
|
/* Support for the Memory Allocation Debugger */
|
||||||
#undef HAVE_MAD
|
#undef HAVE_MAD
|
||||||
|
|
||||||
/* Extra Debugging */
|
|
||||||
#undef MCDEBUG
|
|
||||||
|
|
||||||
/* If the Slang library will be using it's own terminfo instead of termcap */
|
/* If the Slang library will be using it's own terminfo instead of termcap */
|
||||||
#undef SLANG_TERMINFO
|
#undef SLANG_TERMINFO
|
||||||
|
|
||||||
|
121
configure.in
121
configure.in
@ -2,24 +2,13 @@ dnl
|
|||||||
dnl Configure.in file for the Midnight Commander
|
dnl Configure.in file for the Midnight Commander
|
||||||
dnl
|
dnl
|
||||||
AC_INIT(create_vcs)
|
AC_INIT(create_vcs)
|
||||||
|
AC_PREREQ(2.13)
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(mc, 4.5.51)
|
AM_INIT_AUTOMAKE(mc, 4.5.51)
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
dnl This is path where we're looking for headers in addition to /usr/include
|
|
||||||
dnl and whatever cpp defaults to.
|
|
||||||
include_additional_path="/usr/local/include /usr/contrib/include /opt/gnu/include"
|
|
||||||
|
|
||||||
dnl This sets/resets compiling with -g by default. It should be set to yes for
|
|
||||||
dnl development versions and set to no for release versions.
|
|
||||||
use_cc_g_flag=yes
|
|
||||||
|
|
||||||
dnl We want autoconf to check whether -g is available
|
|
||||||
dnl We reset it back soon.
|
|
||||||
CCOPTS="$CFLAGS"
|
|
||||||
unset CFLAGS
|
|
||||||
|
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
@ -50,7 +39,6 @@ AC_ISC_POSIX
|
|||||||
MC_HPUX_PROG_CC_STDC
|
MC_HPUX_PROG_CC_STDC
|
||||||
AC_HEADER_MAJOR
|
AC_HEADER_MAJOR
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_PATH_PROG(CHMOD, chmod, :)
|
|
||||||
AC_PATH_PROG(AR, ar, ar)
|
AC_PATH_PROG(AR, ar, ar)
|
||||||
|
|
||||||
AC_CHECK_PROG(system,uname,`uname`,unknown)
|
AC_CHECK_PROG(system,uname,`uname`,unknown)
|
||||||
@ -61,57 +49,17 @@ fi
|
|||||||
|
|
||||||
ALL_LINGUAS="ca cs da de el es es_ES fi fr hu it ja ko nl no pl pt_BR ro ru sl sv sk uk wa zh_TW.Big5 tr zh_CN.GB2312"
|
ALL_LINGUAS="ca cs da de el es es_ES fi fr hu it ja ko nl no pl pt_BR ro ru sl sv sk uk wa zh_TW.Big5 tr zh_CN.GB2312"
|
||||||
|
|
||||||
dnl ultra ulgy hack to get MKINSTALLDIRS right
|
|
||||||
AM_GNOME_GETTEXT
|
AM_GNOME_GETTEXT
|
||||||
|
|
||||||
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
|
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl This part supplies reasonable defaults for CFLAGS, if they weren't
|
dnl Enforce coding standards
|
||||||
dnl specified by ''CFLAGS=flags ./configure''
|
|
||||||
dnl
|
dnl
|
||||||
cc_uses_g=yes
|
if test "x$GCC" = xyes; then
|
||||||
if test x$GCC = xyes; then
|
CFLAGS="$CFLAGS -Wall"
|
||||||
if test x$ac_cv_prog_gcc_g = xyes; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
cc_uses_g=no
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Debug mode is turned ON for now
|
|
||||||
if test "x$CCOPTS" = x; then
|
|
||||||
CCOPTS='-g'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$CCOPTS" = x; then
|
|
||||||
if test x$GCC = xyes; then
|
|
||||||
if test x$system = xLinux; then
|
|
||||||
CCOPTS='-O2 -fno-strength-reduce'
|
|
||||||
if test x$use_cc_g_flag = xyes; then
|
|
||||||
if test $cc_uses_g = yes; then
|
|
||||||
CCOPTS='-g -O'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
CCOPTS='-O'
|
|
||||||
if test x$use_cc_g_flag = xyes; then
|
|
||||||
if test $cc_uses_g = yes; then
|
|
||||||
CCOPTS='-g -O'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if test x$use_cc_g_flag = xyes; then
|
|
||||||
CCOPTS="$CFLAGS"
|
|
||||||
else
|
|
||||||
CCOPTS=
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
CFLAGS="$CCOPTS"
|
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl We now use glib
|
dnl We now use glib
|
||||||
dnl
|
dnl
|
||||||
@ -213,16 +161,7 @@ AC_CHECK_FUNCS(crypt, , [
|
|||||||
AC_CHECK_LIB(crypt_i, crypt, LCRYPT="-lcrypt_i")])])
|
AC_CHECK_LIB(crypt_i, crypt, LCRYPT="-lcrypt_i")])])
|
||||||
AC_SUBST(LCRYPT)
|
AC_SUBST(LCRYPT)
|
||||||
|
|
||||||
dnl This is the correct version
|
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
||||||
dnl AC_CHECK_FUNCS(grantpt, , AC_CHECK_LIB(pt, grantpt))
|
|
||||||
dnl
|
|
||||||
dnl And workaround for a Autoconf 2.4 bug:
|
|
||||||
AC_CHECK_FUNCS(grantpt)
|
|
||||||
if test x$ac_cv_func_grantpt = xyes; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
AC_CHECK_LIB(pt, grantpt)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl libintl.a required on SCO to provide proper NLS support
|
dnl libintl.a required on SCO to provide proper NLS support
|
||||||
@ -375,9 +314,6 @@ AC_SUBST(fastdepvfs)
|
|||||||
screen_manager=unknown
|
screen_manager=unknown
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
|
|
||||||
CFLAGS=${CFLAGS--O}
|
|
||||||
LDFLAGS=${LDFLAGS--O}
|
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_SUNOS_CURSES, [
|
AC_DEFUN(AC_USE_SUNOS_CURSES, [
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
screen_manager="SunOS 4.x /usr/5include curses"
|
screen_manager="SunOS 4.x /usr/5include curses"
|
||||||
@ -716,53 +652,25 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl This option is only inteded for being used by me :-)
|
dnl Memory Allocation Debugger
|
||||||
dnl It has some nasty hacks built in.
|
|
||||||
dnl
|
dnl
|
||||||
mem_debug="none"
|
mem_debug="none"
|
||||||
AC_ARG_WITH(debug,
|
AC_ARG_WITH(mad,
|
||||||
[--with-debug For use by developers only: activates -Wall and MAD],
|
[--with-mad Developers only: activates MAD (memory debugger)],
|
||||||
[if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
|
||||||
mem_debug="Janne's MAD library"
|
mem_debug="Janne's MAD library"
|
||||||
AC_DEFINE(HAVE_MAD)
|
AC_DEFINE(HAVE_MAD)
|
||||||
AC_DEFINE(MCDEBUG)
|
AC_MSG_RESULT(compiling with memory leak detector)
|
||||||
if [ echo `uname -s -r` | grep -q 'SunOS 4.1' ]
|
|
||||||
then
|
|
||||||
CFLAGS="$CFLAGS -Wno-implicit"
|
|
||||||
fi
|
|
||||||
if echo "$CFLAGS" | grep -e -g >/dev/null 2>&1; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
if test $cc_uses_g = yes; then
|
|
||||||
CFLAGS="$CFLAGS -g"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT(compiling with -Wall and the memory leak detector)
|
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl This option is only inteded for being used by me :-)
|
dnl Electric Fence - another memory debugger
|
||||||
dnl It has some nasty hacks built in.
|
|
||||||
dnl
|
dnl
|
||||||
AC_ARG_WITH(efence,
|
AC_ARG_WITH(efence,
|
||||||
[--with-efence Developers only: activates -Wall and efence],
|
[--with-efence Developers only: activates Electric Fence],
|
||||||
[if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
|
||||||
AC_DEFINE(MCDEBUG)
|
|
||||||
LIBS="$LIBS -lefence"
|
LIBS="$LIBS -lefence"
|
||||||
if [ echo `uname -s -r` | grep -q 'SunOS 4.1' ]
|
AC_MSG_RESULT(compiling with Electric fence)
|
||||||
then
|
|
||||||
CFLAGS="$CFLAGS -Wno-implicit"
|
|
||||||
fi
|
|
||||||
if echo "$CFLAGS" | grep -e -g >/dev/null 2>&1; then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
if test $cc_uses_g = yes; then
|
|
||||||
CFLAGS="$CFLAGS -g"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT(compiling with -Wall and Electric fence)
|
|
||||||
mem_debug="Electric Fence"
|
mem_debug="Electric Fence"
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
@ -1209,9 +1117,6 @@ AC_SUBST(PCENTRULE)
|
|||||||
AC_SUBST(builddir)
|
AC_SUBST(builddir)
|
||||||
builddir=`pwd`
|
builddir=`pwd`
|
||||||
|
|
||||||
SHELL=${SHELL-"/bin/sh"}
|
|
||||||
AC_SUBST(SHELL)
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Output configuration files
|
dnl Output configuration files
|
||||||
dnl
|
dnl
|
||||||
|
Loading…
Reference in New Issue
Block a user