]> code.citadel.org Git - citadel.git/blobdiff - citadel/configure.ac
Moved 'setup' to the utils directory and converted the build
[citadel.git] / citadel / configure.ac
index 8320a9dbf4b19f9d659f59054baa860675e7dd6e..a6ec3f514b7e20ca98f42d11f5a040bc49351d86 100644 (file)
@@ -1,3 +1,18 @@
+
+
+
+FAIL FAIL FAIL
+
+THIS IS THE OLD CONFIGURE SCRIPT
+
+KEEPING IT HERE FOR REFERENCE AS WE BUILD THE NEW ONE
+
+DONT RUN THIS
+
+
+
+
+
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.52)
 
@@ -181,6 +196,25 @@ AC_CHECK_HEADER(zlib.h,
 )
 CFLAGS="$saved_CFLAGS"
 
+dnl Checks for the crypt_r function
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $SERVER_LIBS"
+AC_CHECK_HEADER(crypt.h,
+       [AC_CHECK_LIB(crypt, crypt_r,
+               [
+                       SERVER_LIBS="-lcrypt $SERVER_LIBS"
+               ],
+               [
+                       AC_MSG_ERROR(crypt_r was not found or is not usable.)
+               ]
+       ,
+       )],
+       [
+               AC_MSG_ERROR(crypt.h was not found or is not usable.)
+       ]
+)
+CFLAGS="$saved_CFLAGS"
+
 dnl Here is the check for a libc integrated iconv
 AC_ARG_ENABLE(iconv,
        [  --disable-iconv         do not use iconv charset conversion],