X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7b3d425783f68e3784ac25af60ed9407a2ae9a18..1e8ae5ede66ba337ba6abbb4afad2b3319c1db74:/configure.in diff --git a/configure.in b/configure.in index 10c525da..147755f1 100644 --- a/configure.in +++ b/configure.in @@ -2,6 +2,9 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(byteorder.h) AC_CONFIG_HEADER(config.h) +# compile with optimisation and without debugging by default +CFLAGS=${CFLAGS-"-O"} + AC_CANONICAL_SYSTEM AC_VALIDATE_CACHE_SYSTEM_TYPE @@ -13,6 +16,7 @@ AC_SUBST(SHELL) AC_CHECK_PROG(HAVE_REMSH, remsh, 1, 0) AC_DEFINE_UNQUOTED(HAVE_REMSH, $HAVE_REMSH) +AC_C_BIGENDIAN AC_HEADER_DIRENT AC_HEADER_TIME AC_HEADER_SYS_WAIT @@ -48,6 +52,7 @@ AC_FUNC_UTIME_NULL AC_CHECK_FUNCS(mmap munmap waitpid getcwd strdup strerror chown chmod mknod) AC_CHECK_FUNCS(fchmod fstat strchr readlink link utime utimes strftime) AC_CHECK_FUNCS(memmove getopt_long lchown vsnprintf snprintf setsid glob strpbrk) +AC_CHECK_FUNCS(strlcat strlcpy) echo $ac_n "checking for working fnmatch... $ac_c" AC_TRY_RUN([#include @@ -157,6 +162,14 @@ if test x"$ac_cv_func_connect" = x"no"; then fi fi +# +# if we can't find strcasecmp, look in -lresolv (for Unixware at least) +# +AC_CHECK_FUNCS(strcasecmp) +if test x"$ac_cv_func_strcasecmp" = x"no"; then + AC_CHECK_LIB(resolv, strcasecmp) +fi + # # The following test was mostly taken from the tcl/tk plus patches #