X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.in;h=c4b8cd897d7e9b53f04e822061208acd5f73d22c;hb=2ccd02143402aab6732ad1d2b84513949ddd7cb2;hp=53105afec87eed9b4a34cb43eaf5c70b87912265;hpb=e7f01acdf3b43d7e5df6398b0652c3be38b5f68f;p=mmh diff --git a/configure.in b/configure.in index 53105af..c4b8cd8 100644 --- a/configure.in +++ b/configure.in @@ -139,6 +139,28 @@ fi AC_SUBST(POPLIB)dnl AC_SUBST(POPSED)dnl +dnl What method of locking to use? +undefine([locking])dnl +AC_ARG_WITH(locking, +[ --with-locking=LOCKTYPE specify the file locking method]) + +if test x"$with_locking" = x"dot"; then + LOCKTYPE="dot" + AC_DEFINE(DOT_LOCKING)dnl +elif test x"$with_locking" = x"flock"; then + LOCKTYPE="flock" + AC_DEFINE(FLOCK_LOCKING)dnl +elif test x"$with_locking" = x"lockf"; then + LOCKTYPE="lockf" + AC_DEFINE(LOCKF_LOCKING)dnl +elif test x"$with_locking" = x"fcntl"; then + LOCKTYPE="fcntl" + AC_DEFINE(FCNTL_LOCKING)dnl +else + LOCKTYPE="dot" + AC_DEFINE(DOT_LOCKING)dnl +fi + dnl What method of posting should post use? undefine([mts])dnl AC_ARG_WITH(mts, @@ -206,7 +228,16 @@ if test -n "$auto_cflags"; then test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g" fi else - test -z "$LDFLAGS" && LDFLAGS=-s + if test -z "$LDFLAGS"; then + case "$build_os" in + darwin*) + LDFLAGS= + ;; + *) + LDFLAGS=-s + ;; + esac + fi if test -n "$GCC"; then test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2" else @@ -620,7 +651,7 @@ if test $nmh_cv_decl_ospeed_include_defines = no; then fi if test $nmh_cv_decl_ospeed_include_defines = yes; then - AC_DEFINE(HAVE_OSPEED) + AC_DEFINE(HAVE_OSPEED)dnl elif test $nmh_cv_decl_ospeed_must_define = yes; then AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED) @@ -779,10 +810,8 @@ dnl ---------------- dnl OUTPUT MAKEFILES dnl ---------------- AC_OUTPUT(Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \ - zotnet/Makefile zotnet/mts/Makefile \ mts/Makefile mts/smtp/Makefile \ - mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \ - docs/Makefile man/Makefile, \ + etc/Makefile docs/Makefile man/Makefile, \ [test -z "$CONFIG_HEADERS" || echo > stamp-h]) dnl Umm, what's the point of these assignments?? -- @@ -821,6 +850,7 @@ config files install path : ${nmhsysconf2} man page install path : ${nmhman} backup prefix : ${backup_prefix} transport system : ${MTS} +file locking type : ${LOCKTYPE} default smtp servers : ${smtpservers} default editor : ${editorpath} default pager : ${pagerpath}