]> git.sur5r.net Git - openldap/blobdiff - configure.in
Tentative fix for ITS #402. (Not tested yet.) If successful, this patch
[openldap] / configure.in
index b80a63b4442a6b8b247e2c5d866be1dd820edcd2..8b4439f8ed56d62607cd418cd5c3db36bbc4db9f 100644 (file)
@@ -1943,10 +1943,12 @@ AC_COMPILE_CHECK_SIZEOF(short)
 AC_COMPILE_CHECK_SIZEOF(int) 
 AC_COMPILE_CHECK_SIZEOF(long)
 
-if test "$ac_cv_sizeof_short" -lt 4 ; then
+if test "$ac_cv_sizeof_int" -lt 4 ; then
+       AC_MSG_WARN([OpenLDAP requires 'int' to be 32 bits or greater.])
+
        AC_DEFINE(LBER_INT_T,long)
 else
-       AC_DEFINE(LBER_INT_T,short)
+       AC_DEFINE(LBER_INT_T,int)
 fi
 
 AC_DEFINE(LBER_LEN_T,long)