mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* configure.in: Move all mcserv related checks ...
* acinclude.m4 (MC_MCSERVER_CHECKS): ... here.
This commit is contained in:
parent
7b4387975b
commit
ac96da0a1d
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-16 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Move all mcserv related checks ...
|
||||||
|
* acinclude.m4 (MC_MCSERVER_CHECKS): ... here.
|
||||||
|
|
||||||
2002-11-15 Pavel Roskin <proski@gnu.org>
|
2002-11-15 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Fully enable glib2. Update the documentation.
|
* configure.in: Fully enable glib2. Update the documentation.
|
||||||
|
30
acinclude.m4
30
acinclude.m4
@ -35,6 +35,35 @@ AC_DEFUN([MC_UNDELFS_CHECKS], [
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dnl MC_MCSERVER_CHECKS
|
||||||
|
dnl Check how mcserver should check passwords.
|
||||||
|
dnl Possible methods are PAM and libcrypt.
|
||||||
|
|
||||||
|
AC_DEFUN([MC_MCSERVER_CHECKS], [
|
||||||
|
dnl Check if PAM can be used for mcserv
|
||||||
|
PAMLIBS=""
|
||||||
|
case $host_os in
|
||||||
|
linux*)
|
||||||
|
AC_CHECK_LIB(pam, pam_start, [
|
||||||
|
AC_DEFINE(HAVE_PAM, 1,
|
||||||
|
[Define if PAM (Pluggable Authentication Modules) is available])
|
||||||
|
PAMLIBS="-lpam -ldl"
|
||||||
|
],[],[-ldl])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_SUBST(PAMLIBS)
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([crypt.h])
|
||||||
|
|
||||||
|
LCRYPT=""
|
||||||
|
AC_CHECK_FUNCS(crypt, , [
|
||||||
|
AC_CHECK_LIB(crypt, crypt, [LCRYPT="-lcrypt"], [
|
||||||
|
AC_CHECK_LIB(crypt_i, crypt, [LCRYPT="-lcrypt_i"])])])
|
||||||
|
AC_SUBST(LCRYPT)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dnl MC_VFS_CHECKS
|
dnl MC_VFS_CHECKS
|
||||||
dnl Check for various functions needed by libvfs.
|
dnl Check for various functions needed by libvfs.
|
||||||
dnl This has various effects:
|
dnl This has various effects:
|
||||||
@ -100,6 +129,7 @@ AC_DEFUN([MC_WITH_VFS],[
|
|||||||
AC_DEFINE(WITH_MCFS, 1, [Define to enable mc-specific networking file system])
|
AC_DEFINE(WITH_MCFS, 1, [Define to enable mc-specific networking file system])
|
||||||
vfs_flags="$vfs_flags, mcfs"
|
vfs_flags="$vfs_flags, mcfs"
|
||||||
use_mcfs=yes
|
use_mcfs=yes
|
||||||
|
MC_MCSERVER_CHECKS
|
||||||
fi]
|
fi]
|
||||||
)
|
)
|
||||||
vfs_flags="$vfs_flags, ftpfs, fish"
|
vfs_flags="$vfs_flags, ftpfs, fish"
|
||||||
|
42
configure.in
42
configure.in
@ -113,10 +113,9 @@ sco*)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_CHECK_HEADERS([unistd.h string.h memory.h crypt.h grp.h limits.h \
|
AC_CHECK_HEADERS([unistd.h string.h memory.h grp.h limits.h malloc.h \
|
||||||
malloc.h stdlib.h termios.h utime.h fcntl.h pwd.h sys/statfs.h \
|
stdlib.h termios.h utime.h fcntl.h pwd.h sys/statfs.h sys/time.h \
|
||||||
sys/time.h sys/timeb.h sys/select.h sys/ioctl.h stropts.h \
|
sys/timeb.h sys/select.h sys/ioctl.h stropts.h arpa/inet.h])
|
||||||
arpa/inet.h])
|
|
||||||
|
|
||||||
AC_HEADER_TIME
|
AC_HEADER_TIME
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
@ -142,18 +141,6 @@ dnl
|
|||||||
dnl getpt is a GNU Extension (glibc 2.1.x)
|
dnl getpt is a GNU Extension (glibc 2.1.x)
|
||||||
dnl
|
dnl
|
||||||
AC_CHECK_FUNCS(getpt)
|
AC_CHECK_FUNCS(getpt)
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl On SCO and some SVR4, crypt is on libcrypt.a
|
|
||||||
dnl grantpt in libpt.a
|
|
||||||
dnl
|
|
||||||
LCRYPT=""
|
|
||||||
AC_CHECK_FUNCS(crypt, , [
|
|
||||||
AC_CHECK_LIB(crypt, crypt, [LCRYPT="-lcrypt"], [
|
|
||||||
AC_CHECK_LIB(crypt_i, crypt, [LCRYPT="-lcrypt_i"])])])
|
|
||||||
AC_SUBST(LCRYPT)
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
||||||
|
|
||||||
dnl replacing lstat with statlstat on sco makes it more portable between
|
dnl replacing lstat with statlstat on sco makes it more portable between
|
||||||
@ -494,29 +481,13 @@ if test $use_vfs = yes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl Check if the OS is supported by the console saver.
|
||||||
dnl The variables used for expanding the auto saver.
|
|
||||||
dnl
|
|
||||||
cons_saver=""
|
cons_saver=""
|
||||||
install_saver="no"
|
|
||||||
PAMLIBS=""
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*)
|
linux*)
|
||||||
cons_saver="cons.saver"
|
cons_saver=yes
|
||||||
install_saver="yes"
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl On Linux, check for PAM authentication available
|
|
||||||
dnl
|
|
||||||
AC_CHECK_LIB(pam, pam_start, [
|
|
||||||
AC_DEFINE(HAVE_PAM, 1,
|
|
||||||
[Define if PAM (Pluggable Authentication Modules) is available])
|
|
||||||
PAMLIBS="-lpam -ldl"
|
|
||||||
],[],[-ldl])
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(cons_saver)
|
|
||||||
AC_SUBST(PAMLIBS)
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl User visible support for charset conversion.
|
dnl User visible support for charset conversion.
|
||||||
@ -616,7 +587,6 @@ Configuration:
|
|||||||
File system: ${vfs_type}
|
File system: ${vfs_type}
|
||||||
${vfs_flags}
|
${vfs_flags}
|
||||||
Screen library: ${screen_msg}
|
Screen library: ${screen_msg}
|
||||||
Install console saver: ${install_saver}
|
|
||||||
Mouse support: ${mouse_lib}
|
Mouse support: ${mouse_lib}
|
||||||
X11 events support: ${textmode_x11_support}
|
X11 events support: ${textmode_x11_support}
|
||||||
With subshell support: ${subshell}
|
With subshell support: ${subshell}
|
||||||
|
Loading…
Reference in New Issue
Block a user