# Allow user to specify flags
AC_ARG_WITH(cflags,
- [ --with-cflags Specify additional flags to pass to compiler],
+ [ --with-cflags specify additional flags to pass to compiler],
[
if test "x$withval" != "xno" ; then
CFLAGS="$CFLAGS $withval"
]
)
AC_ARG_WITH(libs,
- [ --with-libs Specify additional libraries to link with],
+ [ --with-libs specify additional libraries to link with],
[
if test "x$withval" != "xno" ; then
LIBS="$LIBS $withval"
dnl -----------
AC_ARG_ENABLE(dropkludge,
- [ --enable-dropkludge enable the experimental dropbox fix (INSECURE!) ],
+ [ --enable-dropkludge enable the experimental dropbox fix (INSECURE!) ],
AC_DEFINE(DROPKLUDGE, 1)
AC_MSG_RESULT([enabling experimental dropbox support])
)
+AC_ARG_ENABLE(lastdid,
+ [ --enable-lastdid enable build without DID dev/inode mapping kludge],
+ if test "$enableval" = "yes"; then
+ AC_DEFINE(USE_LASTDID, 1)
+ AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
+ fi
+)
+
msg_dir=""
AC_ARG_WITH(message-dir,
[ --with-msg-dir=path path to message files [default=/etc/atalk/msg]],
dnl specific configuration comes in here:
dnl --------------------------------------------------------------------------
+dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
+
dnl --------------------- determine operating system from "target"
-case "$ac_cv_target_os" in
+case "$host_os" in
*freebsd*) this_os=freebsd ;;
*linux*) this_os=linux ;;
*osx*) this_os=macosx ;;
*solaris*) this_os=solaris ;;
esac
-case "$ac_cv_target_cpu" in
+case "$host_cpu" in
i386|i486|i586|i686|k7) this_cpu=x86 ;;
alpha) this_cpu=alpha ;;
mips) this_cpu=mips ;;
dnl -- look for openssl
AC_ARG_WITH(ssl-dir,
- [ --with-ssl-dir=PATH Specify path to openssl installation (must contain lib and include dirs) ],
+ [ --with-ssl-dir=PATH specify path to openssl installation (must contain
+ lib and include dirs) ],
[
if test "x$withval" != "$xno"; then
tryssldir=$withval