mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* configure.in: All macros from configure.in moved to
acinclude.m4. Added missing quotes in several places. * acinclude.m4: Likewise.
This commit is contained in:
parent
bb267d2a35
commit
0d690ce961
@ -1,5 +1,9 @@
|
|||||||
2001-01-11 Pavel Roskin <proski@gnu.org>
|
2001-01-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: All macros from configure.in moved to
|
||||||
|
acinclude.m4. Added missing quotes in several places.
|
||||||
|
* acinclude.m4: Likewise.
|
||||||
|
|
||||||
* edit/Makefile.in: Don't install or uninstall mcedit -
|
* edit/Makefile.in: Don't install or uninstall mcedit -
|
||||||
it cannot be installed before mc on systems without symlinks.
|
it cannot be installed before mc on systems without symlinks.
|
||||||
* gtkedit/Makefile.in: Likewise.
|
* gtkedit/Makefile.in: Likewise.
|
||||||
|
193
acinclude.m4
193
acinclude.m4
@ -1,8 +1,8 @@
|
|||||||
dnl
|
dnl
|
||||||
dnl Check for size of d_name dirent member
|
dnl Check for size of d_name dirent member
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN(AC_SHORT_D_NAME_LEN, [
|
AC_DEFUN([AC_SHORT_D_NAME_LEN], [
|
||||||
AC_MSG_CHECKING(filename fits on dirent.d_name)
|
AC_MSG_CHECKING([filename fits on dirent.d_name])
|
||||||
AC_CACHE_VAL(ac_cv_dnamesize, [
|
AC_CACHE_VAL(ac_cv_dnamesize, [
|
||||||
OCFLAGS="$CFLAGS"
|
OCFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS -I$srcdir"
|
CFLAGS="$CFLAGS -I$srcdir"
|
||||||
@ -32,7 +32,7 @@ CFLAGS="$OCFLAGS"
|
|||||||
if test x$ac_cv_dnamesize = xno; then
|
if test x$ac_cv_dnamesize = xno; then
|
||||||
AC_DEFINE(NEED_EXTRA_DIRENT_BUFFER)
|
AC_DEFINE(NEED_EXTRA_DIRENT_BUFFER)
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($ac_cv_dnamesize)
|
AC_MSG_RESULT([$ac_cv_dnamesize])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
@ -41,7 +41,7 @@ dnl
|
|||||||
dnl To get information about the disk, mount points, etc.
|
dnl To get information about the disk, mount points, etc.
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN(AC_GET_FS_INFO, [
|
AC_DEFUN([AC_GET_FS_INFO], [
|
||||||
AC_CHECK_HEADERS(fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h)
|
AC_CHECK_HEADERS(fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h)
|
||||||
AC_CHECK_HEADERS(mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h)
|
AC_CHECK_HEADERS(mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h)
|
||||||
AC_CHECK_HEADERS(sys/mount.h sys/filsys.h sys/fs_types.h)
|
AC_CHECK_HEADERS(sys/mount.h sys/filsys.h sys/fs_types.h)
|
||||||
@ -72,7 +72,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
[struct dirent dp; dp.d_ino = 0;],
|
[struct dirent dp; dp.d_ino = 0;],
|
||||||
fu_cv_sys_d_ino_in_dirent=yes,
|
fu_cv_sys_d_ino_in_dirent=yes,
|
||||||
fu_cv_sys_d_ino_in_dirent=no)])
|
fu_cv_sys_d_ino_in_dirent=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_d_ino_in_dirent)
|
AC_MSG_RESULT([$fu_cv_sys_d_ino_in_dirent])
|
||||||
if test $fu_cv_sys_d_ino_in_dirent = yes; then
|
if test $fu_cv_sys_d_ino_in_dirent = yes; then
|
||||||
AC_DEFINE(D_INO_IN_DIRENT)
|
AC_DEFINE(D_INO_IN_DIRENT)
|
||||||
fi
|
fi
|
||||||
@ -96,7 +96,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
[AC_EGREP_HEADER(getmntent, sys/mnttab.h,
|
[AC_EGREP_HEADER(getmntent, sys/mnttab.h,
|
||||||
fu_cv_sys_mounted_getmntent2=yes,
|
fu_cv_sys_mounted_getmntent2=yes,
|
||||||
fu_cv_sys_mounted_getmntent2=no)])
|
fu_cv_sys_mounted_getmntent2=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_getmntent2])
|
||||||
if test $fu_cv_sys_mounted_getmntent2 = yes; then
|
if test $fu_cv_sys_mounted_getmntent2 = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_GETMNTENT2)
|
AC_DEFINE(MOUNTED_GETMNTENT2)
|
||||||
@ -110,7 +110,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
[test $ac_cv_header_mntent_h = yes \
|
[test $ac_cv_header_mntent_h = yes \
|
||||||
&& fu_cv_sys_mounted_getmntent1=yes \
|
&& fu_cv_sys_mounted_getmntent1=yes \
|
||||||
|| fu_cv_sys_mounted_getmntent1=no])
|
|| fu_cv_sys_mounted_getmntent1=no])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_getmntent1])
|
||||||
if test $fu_cv_sys_mounted_getmntent1 = yes; then
|
if test $fu_cv_sys_mounted_getmntent1 = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_GETMNTENT1)
|
AC_DEFINE(MOUNTED_GETMNTENT1)
|
||||||
@ -136,7 +136,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
|
numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
|
||||||
fu_cv_sys_mounted_getsstat=yes,
|
fu_cv_sys_mounted_getsstat=yes,
|
||||||
fu_cv_sys_mounted_getsstat=no)])
|
fu_cv_sys_mounted_getsstat=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_getsstat])
|
||||||
if test $fu_cv_sys_mounted_getsstat = yes; then
|
if test $fu_cv_sys_mounted_getsstat = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_GETFSSTAT)
|
AC_DEFINE(MOUNTED_GETFSSTAT)
|
||||||
@ -150,7 +150,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
[AC_TRY_CPP([#include <fshelp.h>],
|
[AC_TRY_CPP([#include <fshelp.h>],
|
||||||
fu_cv_sys_mounted_vmount=yes,
|
fu_cv_sys_mounted_vmount=yes,
|
||||||
fu_cv_sys_mounted_vmount=no)])
|
fu_cv_sys_mounted_vmount=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_vmount])
|
||||||
if test $fu_cv_sys_mounted_vmount = yes; then
|
if test $fu_cv_sys_mounted_vmount = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_VMOUNT)
|
AC_DEFINE(MOUNTED_VMOUNT)
|
||||||
@ -167,7 +167,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
#include <mnttab.h>],
|
#include <mnttab.h>],
|
||||||
fu_cv_sys_mounted_fread_fstyp=yes,
|
fu_cv_sys_mounted_fread_fstyp=yes,
|
||||||
fu_cv_sys_mounted_fread_fstyp=no)])
|
fu_cv_sys_mounted_fread_fstyp=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_fread_fstyp])
|
||||||
if test $fu_cv_sys_mounted_fread_fstyp = yes; then
|
if test $fu_cv_sys_mounted_fread_fstyp = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_FREAD_FSTYP)
|
AC_DEFINE(MOUNTED_FREAD_FSTYP)
|
||||||
@ -188,7 +188,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
&& fu_cv_sys_mounted_getmntinfo=yes \
|
&& fu_cv_sys_mounted_getmntinfo=yes \
|
||||||
|| fu_cv_sys_mounted_getmntinfo=no
|
|| fu_cv_sys_mounted_getmntinfo=no
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_getmntinfo])
|
||||||
if test $fu_cv_sys_mounted_getmntinfo = yes; then
|
if test $fu_cv_sys_mounted_getmntinfo = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_GETMNTINFO)
|
AC_DEFINE(MOUNTED_GETMNTINFO)
|
||||||
@ -200,7 +200,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
&& fu_cv_sys_mounted_f_fstypename=yes \
|
&& fu_cv_sys_mounted_f_fstypename=yes \
|
||||||
|| fu_cv_sys_mounted_f_fstypename=no
|
|| fu_cv_sys_mounted_f_fstypename=no
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_f_fstypename)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_f_fstypename])
|
||||||
if test $fu_cv_sys_mounted_f_fstypename = yes; then
|
if test $fu_cv_sys_mounted_f_fstypename = yes; then
|
||||||
AC_DEFINE(HAVE_F_FSTYPENAME)
|
AC_DEFINE(HAVE_F_FSTYPENAME)
|
||||||
fi
|
fi
|
||||||
@ -216,7 +216,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
#include <sys/mount.h>],
|
#include <sys/mount.h>],
|
||||||
fu_cv_sys_mounted_getmnt=yes,
|
fu_cv_sys_mounted_getmnt=yes,
|
||||||
fu_cv_sys_mounted_getmnt=no)])
|
fu_cv_sys_mounted_getmnt=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_getmnt)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_getmnt])
|
||||||
if test $fu_cv_sys_mounted_getmnt = yes; then
|
if test $fu_cv_sys_mounted_getmnt = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_GETMNT)
|
AC_DEFINE(MOUNTED_GETMNT)
|
||||||
@ -230,7 +230,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
[AC_TRY_CPP([#include <mnttab.h>],
|
[AC_TRY_CPP([#include <mnttab.h>],
|
||||||
fu_cv_sys_mounted_fread=yes,
|
fu_cv_sys_mounted_fread=yes,
|
||||||
fu_cv_sys_mounted_fread=no)])
|
fu_cv_sys_mounted_fread=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_mounted_fread)
|
AC_MSG_RESULT([$fu_cv_sys_mounted_fread])
|
||||||
if test $fu_cv_sys_mounted_fread = yes; then
|
if test $fu_cv_sys_mounted_fread = yes; then
|
||||||
list_mounted_fs=found
|
list_mounted_fs=found
|
||||||
AC_DEFINE(MOUNTED_FREAD)
|
AC_DEFINE(MOUNTED_FREAD)
|
||||||
@ -247,7 +247,7 @@ AC_DEFUN(AC_GET_FS_INFO, [
|
|||||||
dnl This configure.in code has been stolen from GNU fileutils-3.12. Its
|
dnl This configure.in code has been stolen from GNU fileutils-3.12. Its
|
||||||
dnl job is to detect a method to get file system information.
|
dnl job is to detect a method to get file system information.
|
||||||
|
|
||||||
AC_CHECKING(how to get filesystem space usage)
|
AC_CHECKING([how to get filesystem space usage])
|
||||||
space=no
|
space=no
|
||||||
|
|
||||||
# Here we'll compromise a little (and perform only the link test)
|
# Here we'll compromise a little (and perform only the link test)
|
||||||
@ -308,7 +308,7 @@ dnl job is to detect a method to get file system information.
|
|||||||
fu_cv_sys_stat_statfs2_bsize=yes,
|
fu_cv_sys_stat_statfs2_bsize=yes,
|
||||||
fu_cv_sys_stat_statfs2_bsize=no,
|
fu_cv_sys_stat_statfs2_bsize=no,
|
||||||
fu_cv_sys_stat_statfs2_bsize=no)])
|
fu_cv_sys_stat_statfs2_bsize=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
|
AC_MSG_RESULT([$fu_cv_sys_stat_statfs2_bsize])
|
||||||
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
||||||
space=yes
|
space=yes
|
||||||
AC_DEFINE(STAT_STATFS2_BSIZE)
|
AC_DEFINE(STAT_STATFS2_BSIZE)
|
||||||
@ -329,7 +329,7 @@ dnl job is to detect a method to get file system information.
|
|||||||
fu_cv_sys_stat_statfs4=yes,
|
fu_cv_sys_stat_statfs4=yes,
|
||||||
fu_cv_sys_stat_statfs4=no,
|
fu_cv_sys_stat_statfs4=no,
|
||||||
fu_cv_sys_stat_statfs4=no)])
|
fu_cv_sys_stat_statfs4=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
|
AC_MSG_RESULT([$fu_cv_sys_stat_statfs4])
|
||||||
if test $fu_cv_sys_stat_statfs4 = yes; then
|
if test $fu_cv_sys_stat_statfs4 = yes; then
|
||||||
space=yes
|
space=yes
|
||||||
AC_DEFINE(STAT_STATFS4)
|
AC_DEFINE(STAT_STATFS4)
|
||||||
@ -357,7 +357,7 @@ dnl job is to detect a method to get file system information.
|
|||||||
fu_cv_sys_stat_statfs2_fsize=yes,
|
fu_cv_sys_stat_statfs2_fsize=yes,
|
||||||
fu_cv_sys_stat_statfs2_fsize=no,
|
fu_cv_sys_stat_statfs2_fsize=no,
|
||||||
fu_cv_sys_stat_statfs2_fsize=no)])
|
fu_cv_sys_stat_statfs2_fsize=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
|
AC_MSG_RESULT([$fu_cv_sys_stat_statfs2_fsize])
|
||||||
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
||||||
space=yes
|
space=yes
|
||||||
AC_DEFINE(STAT_STATFS2_FSIZE)
|
AC_DEFINE(STAT_STATFS2_FSIZE)
|
||||||
@ -389,7 +389,7 @@ dnl job is to detect a method to get file system information.
|
|||||||
fu_cv_sys_stat_fs_data=yes,
|
fu_cv_sys_stat_fs_data=yes,
|
||||||
fu_cv_sys_stat_fs_data=no,
|
fu_cv_sys_stat_fs_data=no,
|
||||||
fu_cv_sys_stat_fs_data=no)])
|
fu_cv_sys_stat_fs_data=no)])
|
||||||
AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
|
AC_MSG_RESULT([$fu_cv_sys_stat_fs_data])
|
||||||
if test $fu_cv_sys_stat_fs_data = yes; then
|
if test $fu_cv_sys_stat_fs_data = yes; then
|
||||||
space=yes
|
space=yes
|
||||||
AC_DEFINE(STAT_STATFS2_FS_DATA)
|
AC_DEFINE(STAT_STATFS2_FS_DATA)
|
||||||
@ -406,7 +406,7 @@ dnl job is to detect a method to get file system information.
|
|||||||
|
|
||||||
dnl AC_TRY_WARNINGS(INCLUDES, FUNCTION-BODY,
|
dnl AC_TRY_WARNINGS(INCLUDES, FUNCTION-BODY,
|
||||||
dnl ACTION-IF-NO-WARNINGS [, ACTION-IF-WARNINGS-OR-ERROR])
|
dnl ACTION-IF-NO-WARNINGS [, ACTION-IF-WARNINGS-OR-ERROR])
|
||||||
AC_DEFUN(AC_TRY_WARNINGS,
|
AC_DEFUN([AC_TRY_WARNINGS],
|
||||||
[cat > conftest.$ac_ext <<EOF
|
[cat > conftest.$ac_ext <<EOF
|
||||||
dnl This sometimes fails to find confdefs.h, for some reason.
|
dnl This sometimes fails to find confdefs.h, for some reason.
|
||||||
dnl [#]line __oline__ "[$]0"
|
dnl [#]line __oline__ "[$]0"
|
||||||
@ -431,8 +431,8 @@ rm -f conftest*]
|
|||||||
)
|
)
|
||||||
|
|
||||||
dnl Find if make is GNU make.
|
dnl Find if make is GNU make.
|
||||||
AC_DEFUN(AC_PROG_GNU_MAKE,
|
AC_DEFUN([AC_PROG_GNU_MAKE],
|
||||||
[AC_MSG_CHECKING(whether we are using GNU make)
|
[AC_MSG_CHECKING([whether we are using GNU make])
|
||||||
set dummy ${MAKE-make}; ac_make=[$]2
|
set dummy ${MAKE-make}; ac_make=[$]2
|
||||||
AC_CACHE_VAL(ac_cv_prog_gnu_make,
|
AC_CACHE_VAL(ac_cv_prog_gnu_make,
|
||||||
[cat > conftestmake <<\EOF
|
[cat > conftestmake <<\EOF
|
||||||
@ -488,8 +488,8 @@ dnl is not defined. -- Norbert
|
|||||||
dnl Below all tests but the one for HP-UX are removed. They caused more
|
dnl Below all tests but the one for HP-UX are removed. They caused more
|
||||||
dnl problems than they soved, sigh. -- Norbert
|
dnl problems than they soved, sigh. -- Norbert
|
||||||
|
|
||||||
AC_DEFUN(MC_HPUX_PROG_CC_STDC,
|
AC_DEFUN([MC_HPUX_PROG_CC_STDC],
|
||||||
[AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
|
[AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
|
||||||
AC_CACHE_VAL(ac_cv_prog_cc_stdc,
|
AC_CACHE_VAL(ac_cv_prog_cc_stdc,
|
||||||
[ac_cv_prog_cc_stdc=no
|
[ac_cv_prog_cc_stdc=no
|
||||||
ac_save_CFLAGS="$CFLAGS"
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
@ -515,10 +515,153 @@ struct s2 {int (*f) (double a);};],
|
|||||||
done
|
done
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
])
|
])
|
||||||
AC_MSG_RESULT($ac_cv_prog_cc_stdc)
|
AC_MSG_RESULT([$ac_cv_prog_cc_stdc])
|
||||||
case "x$ac_cv_prog_cc_stdc" in
|
case "x$ac_cv_prog_cc_stdc" in
|
||||||
x|xno) ;;
|
x|xno) ;;
|
||||||
*) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
*) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
||||||
esac
|
esac
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_USE_SUNOS_CURSES], [
|
||||||
|
search_ncurses=false
|
||||||
|
screen_manager="SunOS 4.x /usr/5include curses"
|
||||||
|
AC_MSG_RESULT([Using SunOS 4.x /usr/5include curses])
|
||||||
|
AC_DEFINE(USE_SUNOS_CURSES)
|
||||||
|
AC_DEFINE(NO_COLOR_CURSES)
|
||||||
|
AC_DEFINE(USE_SYSV_CURSES)
|
||||||
|
CPPFLAGS="$CPPFLAGS -I/usr/5include"
|
||||||
|
XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
|
||||||
|
AC_MSG_RESULT([Please note that some screen refreshs may fail])
|
||||||
|
AC_MSG_WARN([Reconsider using Slang])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_USE_OSF1_CURSES], [
|
||||||
|
AC_MSG_RESULT([Using OSF1 curses])
|
||||||
|
search_ncurses=false
|
||||||
|
screen_manager="OSF1 curses"
|
||||||
|
AC_DEFINE(NO_COLOR_CURSES)
|
||||||
|
AC_DEFINE(USE_SYSV_CURSES)
|
||||||
|
XCURSES="xcurses.o"
|
||||||
|
LIBS="$LIBS -lcurses"
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_USE_SYSV_CURSES], [
|
||||||
|
AC_MSG_RESULT([Using SysV curses])
|
||||||
|
AC_DEFINE(USE_SYSV_CURSES)
|
||||||
|
XCURSES=""
|
||||||
|
search_ncurses=false
|
||||||
|
screen_manager="SysV/curses"
|
||||||
|
LIBS="$LIBS -lcurses"
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_USE_TERMINFO], [
|
||||||
|
AC_DEFINE(SLANG_TERMINFO)
|
||||||
|
AC_MSG_RESULT([Using SLang screen manager/terminfo])
|
||||||
|
slang_term=" with terminfo"
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_USE_TERMCAP], [
|
||||||
|
AC_MSG_RESULT([Using SLang screen manager/termcap])
|
||||||
|
AC_DEFINE(USE_TERMCAP)
|
||||||
|
dnl Check with $LIBS at the end so that it works with ELF libs.
|
||||||
|
AC_CHECK_LIB(termcap, tgoto, LIBS="$LIBS -ltermcap", , $LIBS)
|
||||||
|
slang_term=" with termcap"
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_WITH_SLANG], [
|
||||||
|
AC_DEFINE(HAVE_SLANG)
|
||||||
|
search_ncurses=false
|
||||||
|
if $slang_use_system_installed_lib
|
||||||
|
then
|
||||||
|
AC_DEFINE(HAVE_SYSTEM_SLANG)
|
||||||
|
LSLANG="-lslang"
|
||||||
|
screen_manager="SLang (system-installed library)"
|
||||||
|
AC_MSG_RESULT([Using system installed SLang library])
|
||||||
|
rm -f slang/slang.h
|
||||||
|
ac_save_LIBS="$LIBS"
|
||||||
|
LIBS="$LIBS $LSLANG"
|
||||||
|
AC_TRY_RUN(
|
||||||
|
[
|
||||||
|
#ifdef SLANG_H_INSIDE_SLANG_DIR
|
||||||
|
#include <slang/slang.h>
|
||||||
|
#else
|
||||||
|
#include <slang.h>
|
||||||
|
#endif
|
||||||
|
int main(void){
|
||||||
|
SLtt_get_terminfo();
|
||||||
|
SLtt_tgetflag("");
|
||||||
|
return 0;
|
||||||
|
} ],
|
||||||
|
[LIBS="$ac_save_LIBS"; AC_USE_TERMINFO],
|
||||||
|
[LIBS="$ac_save_LIBS"; AC_USE_TERMCAP])
|
||||||
|
else
|
||||||
|
MCCPPFLAGS="$MCCPPFLAGS -I\$(slangdir)"
|
||||||
|
LIBSLANG="libmcslang.a"
|
||||||
|
screen_manager="SLang"
|
||||||
|
LSLANG="-lmcslang"
|
||||||
|
CPPFLAGS="$CPPFLAGS -I../slang"
|
||||||
|
fastdepslang=fastdepslang
|
||||||
|
mkdir -p slang
|
||||||
|
rm -f slang/slang.h
|
||||||
|
case "$srcdir" in
|
||||||
|
/*) ln -sf $srcdir/slang/slang-mc.h slang/slang.h;;
|
||||||
|
*) ln -sf ../$srcdir/slang/slang-mc.h slang/slang.h;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if $slang_check_lib
|
||||||
|
then
|
||||||
|
use_terminfo=false
|
||||||
|
for dir in /usr/lib /usr/share/lib /usr/local/lib /lib \
|
||||||
|
/usr/local/share /usr/share
|
||||||
|
do
|
||||||
|
if test -d $dir/terminfo; then
|
||||||
|
use_terminfo=true;
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if $use_terminfo; then
|
||||||
|
AC_USE_TERMINFO
|
||||||
|
else
|
||||||
|
AC_USE_TERMCAP
|
||||||
|
fi
|
||||||
|
fi]
|
||||||
|
)
|
||||||
|
|
||||||
|
AC_DEFUN([AC_WITH_EDIT], [
|
||||||
|
AC_DEFINE(USE_INTERNAL_EDIT)
|
||||||
|
LIBEDIT_A="libedit.a"
|
||||||
|
MCEDIT="mcedit"
|
||||||
|
LEDIT="-ledit"
|
||||||
|
EDIT_msg="yes"
|
||||||
|
AC_MSG_RESULT([will call internal editor])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_EXT2_UNDEL], [
|
||||||
|
GNOME_UNDELFS_CHECKS
|
||||||
|
if test "$ext2fs_undel" = yes; then
|
||||||
|
AC_MSG_RESULT([With ext2fs file recovery code])
|
||||||
|
vfs_flags="${vfs_flags}, undelfs"
|
||||||
|
undelfs_o="undelfs.o"
|
||||||
|
LIBS="$LIBS $EXT2FS_UNDEL_LIBS"
|
||||||
|
else
|
||||||
|
AC_MSG_WARN([No ext2fs file recovery code])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Parameters: directory filename LIBS_append CPPFLAGS_append nicename
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([AC_NCURSES], [
|
||||||
|
if $search_ncurses
|
||||||
|
then
|
||||||
|
if test -f $1/$2
|
||||||
|
then
|
||||||
|
AC_MSG_RESULT([Found ncurses on $1/$2])
|
||||||
|
LIBS="$LIBS $3"
|
||||||
|
CPPFLAGS="$CPPFLAGS $4"
|
||||||
|
search_ncurses=false
|
||||||
|
screen_manager=$5
|
||||||
|
AC_DEFINE(USE_NCURSES)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
244
configure.in
244
configure.in
@ -61,7 +61,7 @@ fi
|
|||||||
dnl
|
dnl
|
||||||
dnl We now use glib
|
dnl We now use glib
|
||||||
dnl
|
dnl
|
||||||
AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(Test for GLIB failed. MC requires GLIB.))
|
AM_PATH_GLIB(1.2.0,,[AC_MSG_ERROR([Test for GLIB failed. MC requires GLIB.])])
|
||||||
LIBS="$LIBS $GLIB_LIBS"
|
LIBS="$LIBS $GLIB_LIBS"
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
@ -175,7 +175,7 @@ AC_CHECK_FUNCS(statlstat)
|
|||||||
dnl
|
dnl
|
||||||
dnl If running under AIX, AC_AIX does not tell us that
|
dnl If running under AIX, AC_AIX does not tell us that
|
||||||
dnl
|
dnl
|
||||||
AC_MSG_CHECKING(for AIX defines)
|
AC_MSG_CHECKING([for AIX defines])
|
||||||
AC_EGREP_CPP(yes,
|
AC_EGREP_CPP(yes,
|
||||||
[#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
|
[#if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix)
|
||||||
yes
|
yes
|
||||||
@ -183,7 +183,7 @@ yes
|
|||||||
], [
|
], [
|
||||||
AC_DEFINE(IS_AIX)
|
AC_DEFINE(IS_AIX)
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
], AC_MSG_RESULT(no))
|
], [AC_MSG_RESULT(no)])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl This hack is here until autoconf adds it
|
dnl This hack is here until autoconf adds it
|
||||||
@ -213,7 +213,7 @@ AC_FUNC_ALLOCA
|
|||||||
dnl
|
dnl
|
||||||
dnl Cool hack, but we don't use it currently
|
dnl Cool hack, but we don't use it currently
|
||||||
dnl
|
dnl
|
||||||
dnl AC_MSG_CHECKING(for token pasting method)
|
dnl AC_MSG_CHECKING([for token pasting method])
|
||||||
dnl AC_EGREP_CPP(portable,[
|
dnl AC_EGREP_CPP(portable,[
|
||||||
dnl #define tken(a, b) a##b
|
dnl #define tken(a, b) a##b
|
||||||
dnl tken(port, able)
|
dnl tken(port, able)
|
||||||
@ -238,13 +238,13 @@ AC_SUBST(MCLIBS)
|
|||||||
textmode_x11_support="no"
|
textmode_x11_support="no"
|
||||||
AC_ARG_WITH(tm-x-support,
|
AC_ARG_WITH(tm-x-support,
|
||||||
[--with-tm-x-support Add X Window System support to the text edition],
|
[--with-tm-x-support Add X Window System support to the text edition],
|
||||||
if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
MCCFLAGS="$X_CFLAGS"
|
MCCFLAGS="$X_CFLAGS"
|
||||||
MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
|
MCLIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
|
||||||
AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT)
|
AC_DEFINE(HAVE_TEXTMODE_X11_SUPPORT)
|
||||||
textmode_x11_support="yes"
|
textmode_x11_support="yes"
|
||||||
fi
|
fi
|
||||||
)
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Network related functions
|
dnl Network related functions
|
||||||
@ -267,7 +267,7 @@ if test $have_socket = no; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
have_gethostbyname=no
|
have_gethostbyname=no
|
||||||
AC_CHECK_FUNC(gethostbyname, have_gethostbyname=yes)
|
AC_CHECK_FUNC(gethostbyname, [have_gethostbyname=yes])
|
||||||
if test $have_gethostbyname = no; then
|
if test $have_gethostbyname = no; then
|
||||||
# gethostbyname is not in the default libraries. See if it's in some other.
|
# gethostbyname is not in the default libraries. See if it's in some other.
|
||||||
for lib in bsd socket inet; do
|
for lib in bsd socket inet; do
|
||||||
@ -301,7 +301,7 @@ then
|
|||||||
LVFS="-lvfs-mc"
|
LVFS="-lvfs-mc"
|
||||||
fastdepvfs=fastdepvfs
|
fastdepvfs=fastdepvfs
|
||||||
MCCPPFLAGS="$MCCPPFLAGS -I\$(vfsdir)"
|
MCCPPFLAGS="$MCCPPFLAGS -I\$(vfsdir)"
|
||||||
AC_MSG_RESULT(Using the VFS switch code)
|
AC_MSG_RESULT([Using the VFS switch code])
|
||||||
vfs_type="Midnight Commander Virtual File System"
|
vfs_type="Midnight Commander Virtual File System"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(LIBVFS)
|
AC_SUBST(LIBVFS)
|
||||||
@ -311,44 +311,12 @@ AC_SUBST(fastdepvfs)
|
|||||||
screen_manager=unknown
|
screen_manager=unknown
|
||||||
search_ncurses=false
|
search_ncurses=false
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_SUNOS_CURSES, [
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="SunOS 4.x /usr/5include curses"
|
|
||||||
AC_MSG_RESULT(Using SunOS 4.x /usr/5include curses)
|
|
||||||
AC_DEFINE(USE_SUNOS_CURSES)
|
|
||||||
AC_DEFINE(NO_COLOR_CURSES)
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
CPPFLAGS="$CPPFLAGS -I/usr/5include"
|
|
||||||
XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
|
|
||||||
AC_MSG_RESULT(Please note that some screen refreshs may fail)
|
|
||||||
AC_MSG_WARN(Reconsider using Slang)
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_OSF1_CURSES, [
|
|
||||||
AC_MSG_RESULT(Using OSF1 curses)
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="OSF1 curses"
|
|
||||||
AC_DEFINE(NO_COLOR_CURSES)
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
XCURSES="xcurses.o"
|
|
||||||
LIBS="$LIBS -lcurses"
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_SYSV_CURSES, [
|
|
||||||
AC_MSG_RESULT(Using SysV curses)
|
|
||||||
AC_DEFINE(USE_SYSV_CURSES)
|
|
||||||
XCURSES=""
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager="SysV/curses"
|
|
||||||
LIBS="$LIBS -lcurses"
|
|
||||||
])
|
|
||||||
|
|
||||||
XCURSES=""
|
XCURSES=""
|
||||||
AC_SUBST(XCURSES)
|
AC_SUBST(XCURSES)
|
||||||
|
|
||||||
dnl AC_ARG_WITH(bsd-curses,
|
dnl AC_ARG_WITH(bsd-curses,
|
||||||
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
|
||||||
dnl search_ncurses=false
|
dnl [search_ncurses=false
|
||||||
dnl screen_manager="Ultrix/cursesX"
|
dnl screen_manager="Ultrix/cursesX"
|
||||||
dnl if test $system = ULTRIX
|
dnl if test $system = ULTRIX
|
||||||
dnl then
|
dnl then
|
||||||
@ -360,11 +328,11 @@ dnl
|
|||||||
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
dnl LIBS="$LIBS -l$THIS_CURSES -ltermcap"
|
||||||
dnl AC_DEFINE(USE_BSD_CURSES)
|
dnl AC_DEFINE(USE_BSD_CURSES)
|
||||||
dnl XCURSES="xcurses.o"
|
dnl XCURSES="xcurses.o"
|
||||||
dnl AC_MSG_RESULT(Please note that some screen refreshs may fail)
|
dnl AC_MSG_RESULT([Please note that some screen refreshs may fail])
|
||||||
dnl AC_MSG_WARN(Use of the bsdcurses extension has some)
|
dnl AC_MSG_WARN([Use of the bsdcurses extension has some])
|
||||||
dnl AC_MSG_WARN(display/input problems.)
|
dnl AC_MSG_WARN([display/input problems.])
|
||||||
dnl AC_MSG_WARN(Reconsider using xcurses)
|
dnl AC_MSG_WARN([Reconsider using xcurses])
|
||||||
dnl)
|
dnl])
|
||||||
|
|
||||||
AC_ARG_WITH(sco,
|
AC_ARG_WITH(sco,
|
||||||
[--with-sco Use this to turn on SCO-specific code],[
|
[--with-sco Use this to turn on SCO-specific code],[
|
||||||
@ -390,12 +358,12 @@ AC_ARG_WITH(osf1-curses,
|
|||||||
|
|
||||||
AC_ARG_WITH(vcurses,
|
AC_ARG_WITH(vcurses,
|
||||||
[--with-vcurses[=incdir] Used to force SysV curses],
|
[--with-vcurses[=incdir] Used to force SysV curses],
|
||||||
if test x$withval = xyes; then :
|
[if test x$withval = xyes; then :
|
||||||
else
|
else
|
||||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||||
fi
|
fi
|
||||||
AC_USE_SYSV_CURSES
|
AC_USE_SYSV_CURSES
|
||||||
)
|
])
|
||||||
|
|
||||||
mouse_lib="xterm only"
|
mouse_lib="xterm only"
|
||||||
LGPM=""
|
LGPM=""
|
||||||
@ -419,7 +387,7 @@ AC_ARG_WITH(gpm-mouse,
|
|||||||
LGPM="-lgpm"],[
|
LGPM="-lgpm"],[
|
||||||
if test $system = Linux
|
if test $system = Linux
|
||||||
then
|
then
|
||||||
AC_MSG_WARN("libgpm.a is missing or older than 0.18")
|
AC_MSG_WARN([libgpm.a is missing or older than 0.18])
|
||||||
fi
|
fi
|
||||||
], $LIBS)
|
], $LIBS)
|
||||||
]
|
]
|
||||||
@ -428,7 +396,7 @@ AC_SUBST(LGPM)
|
|||||||
|
|
||||||
AC_ARG_WITH(ncurses,
|
AC_ARG_WITH(ncurses,
|
||||||
[--with-ncurses[=base-dir] Compile with ncurses/locate base dir],
|
[--with-ncurses[=base-dir] Compile with ncurses/locate base dir],
|
||||||
if test x$withval = xyes
|
[if test x$withval = xyes
|
||||||
then
|
then
|
||||||
search_ncurses=true
|
search_ncurses=true
|
||||||
else
|
else
|
||||||
@ -438,14 +406,14 @@ AC_ARG_WITH(ncurses,
|
|||||||
screen_manager="ncurses"
|
screen_manager="ncurses"
|
||||||
AC_DEFINE(USE_NCURSES)
|
AC_DEFINE(USE_NCURSES)
|
||||||
fi
|
fi
|
||||||
)
|
])
|
||||||
|
|
||||||
AC_ARG_WITH(hsc,
|
AC_ARG_WITH(hsc,
|
||||||
[--with-hsc Compile with support for the HSC firewall],
|
[--with-hsc Compile with support for the HSC firewall],
|
||||||
if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
AC_DEFINE(HSC_PROXY)
|
AC_DEFINE(HSC_PROXY)
|
||||||
fi
|
fi
|
||||||
)
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check for Gnome
|
dnl Check for Gnome
|
||||||
@ -472,7 +440,8 @@ dnl Check for new enough gnome-libs
|
|||||||
CFLAGS=`gnome-config --cflags gnomeui`
|
CFLAGS=`gnome-config --cflags gnomeui`
|
||||||
LIBS=`gnome-config --libs gnomeui`
|
LIBS=`gnome-config --libs gnomeui`
|
||||||
|
|
||||||
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file, AC_DEFINE(HAVE_GNOME_WINDOW_ICON))
|
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file,
|
||||||
|
[AC_DEFINE(HAVE_GNOME_WINDOW_ICON)])
|
||||||
|
|
||||||
CFLAGS=$CFLAGS_save
|
CFLAGS=$CFLAGS_save
|
||||||
LIBS=$LIBS_save
|
LIBS=$LIBS_save
|
||||||
@ -489,7 +458,7 @@ dnl Check for the -mandoc package
|
|||||||
dnl
|
dnl
|
||||||
AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
|
AC_CHECK_PROG(HAVE_nroff, nroff, true, false)
|
||||||
if $HAVE_nroff; then
|
if $HAVE_nroff; then
|
||||||
AC_MSG_CHECKING(for manual formatting macros)
|
AC_MSG_CHECKING([for manual formatting macros])
|
||||||
AC_CACHE_VAL(ac_cv_mandoc, [
|
AC_CACHE_VAL(ac_cv_mandoc, [
|
||||||
nroff -mandoc < /dev/null > /dev/null 2>&1 /dev/null
|
nroff -mandoc < /dev/null > /dev/null 2>&1 /dev/null
|
||||||
if test $? = 0
|
if test $? = 0
|
||||||
@ -510,7 +479,7 @@ dnl
|
|||||||
dnl Check if nroff accepts -Tlatin1 or -Tascii
|
dnl Check if nroff accepts -Tlatin1 or -Tascii
|
||||||
dnl
|
dnl
|
||||||
if $HAVE_nroff; then
|
if $HAVE_nroff; then
|
||||||
AC_MSG_CHECKING(if nroff accepts -Tlatin1 or -Tascii)
|
AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii])
|
||||||
AC_CACHE_VAL(ac_cv_nroff_tascii, [
|
AC_CACHE_VAL(ac_cv_nroff_tascii, [
|
||||||
nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
|
nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null
|
||||||
if test $? = 0
|
if test $? = 0
|
||||||
@ -540,7 +509,7 @@ dnl Check for - option to file
|
|||||||
dnl
|
dnl
|
||||||
AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
|
AC_CHECK_PROG(HAVE_FILECMD, file, true, false)
|
||||||
if $HAVE_FILECMD; then
|
if $HAVE_FILECMD; then
|
||||||
AC_MSG_CHECKING(for - option to file command)
|
AC_MSG_CHECKING([for - option to file command])
|
||||||
AC_CACHE_VAL(ac_cv_filestdin, [
|
AC_CACHE_VAL(ac_cv_filestdin, [
|
||||||
cat > conftest.c <<EOF
|
cat > conftest.c <<EOF
|
||||||
/* A comment */
|
/* A comment */
|
||||||
@ -571,13 +540,13 @@ EOF
|
|||||||
AC_DEFINE(FILE_STDIN)
|
AC_DEFINE(FILE_STDIN)
|
||||||
fi
|
fi
|
||||||
filestdin=$ac_cv_filestdin
|
filestdin=$ac_cv_filestdin
|
||||||
AC_MSG_RESULT($filestdin)
|
AC_MSG_RESULT([$filestdin])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check for -L option to file
|
dnl Check for -L option to file
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_MSG_CHECKING(for -L option to file command)
|
AC_MSG_CHECKING([for -L option to file command])
|
||||||
AC_CACHE_VAL(ac_cv_filel, [
|
AC_CACHE_VAL(ac_cv_filel, [
|
||||||
file -L . > /dev/null 2>&1
|
file -L . > /dev/null 2>&1
|
||||||
if test $? = 0
|
if test $? = 0
|
||||||
@ -591,13 +560,13 @@ if test x$ac_cv_filel = xyes; then
|
|||||||
AC_DEFINE(FILE_L)
|
AC_DEFINE(FILE_L)
|
||||||
fi
|
fi
|
||||||
filel=$ac_cv_filel
|
filel=$ac_cv_filel
|
||||||
AC_MSG_RESULT($filel)
|
AC_MSG_RESULT([$filel])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check to see if grep program allowes dash to denote stdin
|
dnl Check to see if grep program allowes dash to denote stdin
|
||||||
dnl
|
dnl
|
||||||
AC_MSG_CHECKING(for - option to grep command)
|
AC_MSG_CHECKING([for - option to grep command])
|
||||||
AC_CACHE_VAL(ac_cv_grep_stdin, [
|
AC_CACHE_VAL(ac_cv_grep_stdin, [
|
||||||
grep ac_cv_grep_stdin - > /dev/null 2>&1 < ./configure
|
grep ac_cv_grep_stdin - > /dev/null 2>&1 < ./configure
|
||||||
if test $? = 0; then
|
if test $? = 0; then
|
||||||
@ -609,16 +578,16 @@ AC_CACHE_VAL(ac_cv_grep_stdin, [
|
|||||||
if test x$ac_cv_grep_stdin = xyes; then
|
if test x$ac_cv_grep_stdin = xyes; then
|
||||||
AC_DEFINE(GREP_STDIN)
|
AC_DEFINE(GREP_STDIN)
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($ac_cv_grep_stdin)
|
AC_MSG_RESULT([$ac_cv_grep_stdin])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl The subshell support
|
dnl The subshell support
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_MSG_CHECKING(for subshell support)
|
AC_MSG_CHECKING([for subshell support])
|
||||||
AC_ARG_WITH(subshell,
|
AC_ARG_WITH(subshell,
|
||||||
[--with-subshell If you want to use a concurrent shell],
|
[--with-subshell If you want to use a concurrent shell],
|
||||||
result=no
|
[result=no
|
||||||
if test x$withval = xoptional
|
if test x$withval = xoptional
|
||||||
then
|
then
|
||||||
AC_DEFINE(SUBSHELL_OPTIONAL)
|
AC_DEFINE(SUBSHELL_OPTIONAL)
|
||||||
@ -629,8 +598,8 @@ AC_ARG_WITH(subshell,
|
|||||||
then
|
then
|
||||||
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
||||||
result="yes"
|
result="yes"
|
||||||
fi,
|
fi],
|
||||||
dnl Default: provide the subshell support on non-ultrix machines
|
[dnl Default: provide the subshell support on non-ultrix machines
|
||||||
if test $system = ULTRIX
|
if test $system = ULTRIX
|
||||||
then
|
then
|
||||||
result=no
|
result=no
|
||||||
@ -638,8 +607,8 @@ AC_ARG_WITH(subshell,
|
|||||||
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
AC_DEFINE(HAVE_SUBSHELL_SUPPORT)
|
||||||
result=yes
|
result=yes
|
||||||
fi
|
fi
|
||||||
)
|
])
|
||||||
AC_MSG_RESULT($result)
|
AC_MSG_RESULT([$result])
|
||||||
subshell="$result"
|
subshell="$result"
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
@ -659,7 +628,7 @@ AC_ARG_WITH(mad,
|
|||||||
[if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
mem_debug="Janne's MAD library"
|
mem_debug="Janne's MAD library"
|
||||||
AC_DEFINE(HAVE_MAD)
|
AC_DEFINE(HAVE_MAD)
|
||||||
AC_MSG_RESULT(compiling with memory leak detector)
|
AC_MSG_RESULT([compiling with memory leak detector])
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
@ -669,7 +638,7 @@ AC_ARG_WITH(efence,
|
|||||||
[--with-efence Developers only: activates Electric Fence],
|
[--with-efence Developers only: activates Electric Fence],
|
||||||
[if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
LIBS="$LIBS -lefence"
|
LIBS="$LIBS -lefence"
|
||||||
AC_MSG_RESULT(compiling with Electric fence)
|
AC_MSG_RESULT([compiling with Electric fence])
|
||||||
mem_debug="Electric Fence"
|
mem_debug="Electric Fence"
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
@ -694,28 +663,14 @@ AC_ARG_WITH(mmap,
|
|||||||
[--with-mmap To force using the mmap call (AIX)],
|
[--with-mmap To force using the mmap call (AIX)],
|
||||||
[if test x$withval = xyes; then
|
[if test x$withval = xyes; then
|
||||||
AC_DEFINE(HAVE_MMAP)
|
AC_DEFINE(HAVE_MMAP)
|
||||||
AC_MSG_RESULT(forcing MMAP support)
|
AC_MSG_RESULT([forcing MMAP support])
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_TERMINFO,
|
|
||||||
AC_DEFINE(SLANG_TERMINFO)
|
|
||||||
AC_MSG_RESULT(Using SLang screen manager/terminfo)
|
|
||||||
slang_term=" with terminfo"
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_DEFUN(AC_USE_TERMCAP,
|
|
||||||
AC_MSG_RESULT(Using SLang screen manager/termcap)
|
|
||||||
AC_DEFINE(USE_TERMCAP)
|
|
||||||
dnl Check with $LIBS at the end so that it works with ELF libs.
|
|
||||||
AC_CHECK_LIB(termcap, tgoto, LIBS="$LIBS -ltermcap", , $LIBS)
|
|
||||||
slang_term=" with termcap"
|
|
||||||
)
|
|
||||||
|
|
||||||
slang_check_lib=true
|
slang_check_lib=true
|
||||||
slang_term=""
|
slang_term=""
|
||||||
slang_use_system_installed_lib=false
|
slang_use_system_installed_lib=false
|
||||||
AC_CHECK_LIB(slang,SLang_init_tty,
|
AC_CHECK_LIB(slang,SLang_init_tty,
|
||||||
AC_CHECK_HEADERS(slang.h)
|
[AC_CHECK_HEADERS(slang.h)
|
||||||
if test x$ac_cv_header_slang_h = xyes
|
if test x$ac_cv_header_slang_h = xyes
|
||||||
then
|
then
|
||||||
slang_use_system_installed_lib=true
|
slang_use_system_installed_lib=true
|
||||||
@ -729,7 +684,7 @@ AC_CHECK_LIB(slang,SLang_init_tty,
|
|||||||
AC_DEFINE(SLANG_H_INSIDE_SLANG_DIR)
|
AC_DEFINE(SLANG_H_INSIDE_SLANG_DIR)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
)
|
])
|
||||||
|
|
||||||
AC_ARG_WITH(terminfo,
|
AC_ARG_WITH(terminfo,
|
||||||
[--with-terminfo SLANG: Force usage of terminfo],[
|
[--with-terminfo SLANG: Force usage of terminfo],[
|
||||||
@ -757,65 +712,6 @@ AC_ARG_WITH(included-slang,
|
|||||||
fi]
|
fi]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_DEFUN(AC_WITH_SLANG,[
|
|
||||||
AC_DEFINE(HAVE_SLANG)
|
|
||||||
search_ncurses=false
|
|
||||||
if $slang_use_system_installed_lib
|
|
||||||
then
|
|
||||||
AC_DEFINE(HAVE_SYSTEM_SLANG)
|
|
||||||
LSLANG="-lslang"
|
|
||||||
screen_manager="SLang (system-installed library)"
|
|
||||||
AC_MSG_RESULT(Using system installed SLang library)
|
|
||||||
rm -f slang/slang.h
|
|
||||||
ac_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS $LSLANG"
|
|
||||||
AC_TRY_RUN(
|
|
||||||
[
|
|
||||||
#ifdef SLANG_H_INSIDE_SLANG_DIR
|
|
||||||
#include <slang/slang.h>
|
|
||||||
#else
|
|
||||||
#include <slang.h>
|
|
||||||
#endif
|
|
||||||
int main(void){
|
|
||||||
SLtt_get_terminfo();
|
|
||||||
SLtt_tgetflag("");
|
|
||||||
return 0;
|
|
||||||
} ],
|
|
||||||
[LIBS="$ac_save_LIBS"; AC_USE_TERMINFO],
|
|
||||||
[LIBS="$ac_save_LIBS"; AC_USE_TERMCAP])
|
|
||||||
else
|
|
||||||
MCCPPFLAGS="$MCCPPFLAGS -I\$(slangdir)"
|
|
||||||
LIBSLANG="libmcslang.a"
|
|
||||||
screen_manager="SLang"
|
|
||||||
LSLANG="-lmcslang"
|
|
||||||
CPPFLAGS="$CPPFLAGS -I../slang"
|
|
||||||
fastdepslang=fastdepslang
|
|
||||||
mkdir -p slang
|
|
||||||
rm -f slang/slang.h
|
|
||||||
case "$srcdir" in
|
|
||||||
/*) ln -sf $srcdir/slang/slang-mc.h slang/slang.h;;
|
|
||||||
*) ln -sf ../$srcdir/slang/slang-mc.h slang/slang.h;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
if $slang_check_lib
|
|
||||||
then
|
|
||||||
use_terminfo=false
|
|
||||||
for dir in /usr/lib /usr/share/lib /usr/local/lib /lib \
|
|
||||||
/usr/local/share /usr/share
|
|
||||||
do
|
|
||||||
if test -d $dir/terminfo; then
|
|
||||||
use_terminfo=true;
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if $use_terminfo; then
|
|
||||||
AC_USE_TERMINFO
|
|
||||||
else
|
|
||||||
AC_USE_TERMCAP
|
|
||||||
fi
|
|
||||||
fi]
|
|
||||||
)
|
|
||||||
|
|
||||||
LIBSLANG=""
|
LIBSLANG=""
|
||||||
LSLANG=""
|
LSLANG=""
|
||||||
fastdepslang=""
|
fastdepslang=""
|
||||||
@ -830,30 +726,21 @@ AC_SUBST(LIBSLANG)
|
|||||||
AC_SUBST(LSLANG)
|
AC_SUBST(LSLANG)
|
||||||
AC_SUBST(fastdepslang)
|
AC_SUBST(fastdepslang)
|
||||||
|
|
||||||
AC_DEFUN(AC_WITH_EDIT, [
|
|
||||||
AC_DEFINE(USE_INTERNAL_EDIT)
|
|
||||||
LIBEDIT_A="libedit.a"
|
|
||||||
MCEDIT="mcedit"
|
|
||||||
LEDIT="-ledit"
|
|
||||||
EDIT_msg="yes"
|
|
||||||
AC_MSG_RESULT(will call internal editor)
|
|
||||||
])
|
|
||||||
|
|
||||||
LIBEDIT_A=""
|
LIBEDIT_A=""
|
||||||
MCEDIT=""
|
MCEDIT=""
|
||||||
LEDIT=""
|
LEDIT=""
|
||||||
EDIT_msg=""
|
EDIT_msg=""
|
||||||
AC_ARG_WITH(edit,
|
AC_ARG_WITH(edit,
|
||||||
[--with-edit Define INTERNAL_EDIT],
|
[--with-edit Define INTERNAL_EDIT],
|
||||||
if test x$withval = xyes
|
[if test x$withval = xyes
|
||||||
then
|
then
|
||||||
AC_WITH_EDIT
|
AC_WITH_EDIT
|
||||||
else
|
else
|
||||||
EDIT_msg="no"
|
EDIT_msg="no"
|
||||||
fi,
|
fi],
|
||||||
dnl Default: provide the internal editor
|
[dnl Default: provide the internal editor
|
||||||
AC_WITH_EDIT
|
AC_WITH_EDIT
|
||||||
)
|
])
|
||||||
AC_SUBST(LIBEDIT_A)
|
AC_SUBST(LIBEDIT_A)
|
||||||
AC_SUBST(MCEDIT)
|
AC_SUBST(MCEDIT)
|
||||||
AC_SUBST(LEDIT)
|
AC_SUBST(LEDIT)
|
||||||
@ -862,22 +749,11 @@ AC_ARG_WITH(netrc,
|
|||||||
[--with-netrc Compile with ftp .netrc support],[
|
[--with-netrc Compile with ftp .netrc support],[
|
||||||
if test x$withval = xyes; then
|
if test x$withval = xyes; then
|
||||||
AC_DEFINE(USE_NETRC)
|
AC_DEFINE(USE_NETRC)
|
||||||
AC_MSG_RESULT(ftpfs will have .netrc parsing code)
|
AC_MSG_RESULT([ftpfs will have .netrc parsing code])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
undelfs_o=""
|
undelfs_o=""
|
||||||
AC_DEFUN(AC_EXT2_UNDEL, [
|
|
||||||
GNOME_UNDELFS_CHECKS
|
|
||||||
if test "$ext2fs_undel" = yes; then
|
|
||||||
AC_MSG_RESULT(With ext2fs file recovery code)
|
|
||||||
vfs_flags=["${vfs_flags}, undelfs"]
|
|
||||||
undelfs_o="undelfs.o"
|
|
||||||
LIBS="$LIBS $EXT2FS_UNDEL_LIBS"
|
|
||||||
else
|
|
||||||
AC_MSG_WARN(No ext2fs file recovery code)
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_ARG_WITH(ext2undel,
|
AC_ARG_WITH(ext2undel,
|
||||||
[--with-ext2undel Compile with ext2 undelete code],[
|
[--with-ext2undel Compile with ext2 undelete code],[
|
||||||
@ -891,32 +767,14 @@ AC_ARG_WITH(ext2undel,
|
|||||||
AC_EXT2_UNDEL
|
AC_EXT2_UNDEL
|
||||||
fi],[
|
fi],[
|
||||||
dnl Default: detect
|
dnl Default: detect
|
||||||
AC_CHECK_LIB(ext2fs, ext2fs_close, AC_EXT2_UNDEL,,-lcom_err)
|
AC_CHECK_LIB(ext2fs, ext2fs_close, [AC_EXT2_UNDEL],,-lcom_err)
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_SUBST(undelfs_o)
|
AC_SUBST(undelfs_o)
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Parameters: directory filename LIBS_append CPPFLAGS_append nicename
|
|
||||||
dnl
|
|
||||||
AC_DEFUN(AC_NCURSES, [
|
|
||||||
if $search_ncurses
|
|
||||||
then
|
|
||||||
if test -f $1/$2
|
|
||||||
then
|
|
||||||
AC_MSG_RESULT(Found ncurses on $1/$2)
|
|
||||||
LIBS="$LIBS $3"
|
|
||||||
CPPFLAGS="$CPPFLAGS $4"
|
|
||||||
search_ncurses=false
|
|
||||||
screen_manager=$5
|
|
||||||
AC_DEFINE(USE_NCURSES)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
if $search_ncurses
|
if $search_ncurses
|
||||||
then
|
then
|
||||||
AC_CHECKING("location of ncurses.h file")
|
AC_CHECKING([location of ncurses.h file])
|
||||||
|
|
||||||
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
|
AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
|
||||||
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
|
AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
|
||||||
@ -961,7 +819,7 @@ USE_NCURSES
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# check for ncurses version, to properly ifdef mouse-fix
|
# check for ncurses version, to properly ifdef mouse-fix
|
||||||
AC_MSG_CHECKING(for ncurses version)
|
AC_MSG_CHECKING([for ncurses version])
|
||||||
ncurses_version=unknown
|
ncurses_version=unknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
[#]line __oline__ "configure"
|
[#]line __oline__ "configure"
|
||||||
@ -981,7 +839,7 @@ changequote(,)dnl
|
|||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
fi
|
fi
|
||||||
rm -rf conftext*
|
rm -rf conftext*
|
||||||
AC_MSG_RESULT($ncurses_version)
|
AC_MSG_RESULT([$ncurses_version])
|
||||||
case "$ncurses_version" in
|
case "$ncurses_version" in
|
||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
4.[01])
|
4.[01])
|
||||||
|
Loading…
Reference in New Issue
Block a user