X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=configure.in;h=b935eb1fb82435c747f8f7af39dec082299b9292;hp=d750ae6c9e4080c6ace4901ca0c92434f46be371;hb=0dbec2d4713c86e1af1b09e95903bb3c2f925eac;hpb=7a7d9459bf612525398b5bcda5a5969838d2090b diff --git a/configure.in b/configure.in index d750ae6..b935eb1 100644 --- a/configure.in +++ b/configure.in @@ -26,11 +26,15 @@ AC_ARG_WITH(lock-directory, with_lock_directory=$withval, with_lock_directory=) AC_MSG_RESULT($with_lock_directory) +AC_ARG_WITH(efence, +[ --without-efence disable use of Electric Fence in maintainer-mode], + efence=$withval, efence=yes) + dnl Checks for programs. AC_PROG_CC if test "$USE_MAINTAINER_MODE" = yes;then if test "$GCC" = yes;then - CFLAGS="$CFLAGS -Wall -ansi -pedantic -ggdb" + CFLAGS="$CFLAGS -Wall -ansi -pedantic -ggdb3" if test x$efence != xno;then AC_CHECK_LIB(efence, EF_Exit) fi @@ -44,6 +48,10 @@ AC_PROG_CPP dnl Checks for pathnames. +ALL_LINGUAS="cs" +AM_GNU_GETTEXT +AC_CHECK_HEADERS(libintl.h) + AC_MSG_CHECKING([for modem lock directory]) dirx="" if test "$with_lock_directory" = no;then @@ -136,6 +144,21 @@ AC_TRY_COMPILE([ AC_DEFINE(HAVE_CBAUDEX) AC_MSG_RESULT(yes), AC_DEFINE(CBAUDEX, 0) AC_MSG_RESULT(no)) +AC_MSG_CHECKING([for CRTSCTS]) +AC_TRY_COMPILE([ +#ifdef HAVE_TERMIOS_H +#include +#endif], [CRTSCTS;], + AC_DEFINE(HAVE_CRTSCTS) AC_MSG_RESULT(yes),[ + if test "$USE_MAINTAINER_MODE" = yes ;then + AC_DEFINE(HAVE_CRTSCTS) AC_MSG_RESULT(faked for maintainer) + # from "RedHat: glibc-devel-2.2-5/bits/termios.h" + AC_DEFINE(CRTSCTS, 020000000000) + else + AC_DEFINE(CRTSCTS, 0) AC_MSG_RESULT(no) + fi + ]) + AC_MSG_CHECKING([for FD_SETSIZE]) AC_TRY_COMPILE([ #ifdef HAVE_SYS_TIME_H @@ -254,4 +277,7 @@ fi AC_SUBST(LIBOBJS) -AC_OUTPUT(Makefile) +AC_OUTPUT([Makefile +mdsms.spec +po/Makefile.in +intl/Makefile],[sed -e "/POTFILES =/r po/POTFILES" -e "s/ ChangeLog / /" po/Makefile.in > po/Makefile])