diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-09-15 16:36:56 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-09-15 16:36:56 +0000 |
commit | 26d4c9b3c9d4031d0e9c3e458c12cc27a3078a1a (patch) | |
tree | bf0fc72d42a18ca14b055e74bbe8dc314b2a91cf /lib | |
parent | 9d618e58f6e98eeadbe87495ffcaf5e2aff340e1 (diff) |
Added check for crypt.h.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1819 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r-- | lib/make/cctk_Config.h.in | 3 | ||||
-rwxr-xr-x | lib/make/configure | 76 | ||||
-rw-r--r-- | lib/make/configure.in | 3 |
3 files changed, 64 insertions, 18 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in index f4be322e..d63c36f7 100644 --- a/lib/make/cctk_Config.h.in +++ b/lib/make/cctk_Config.h.in @@ -90,16 +90,17 @@ /* Some include things */ #undef HAVE_TIME_H #undef HAVE_SYS_TIME_H +#undef HAVE_SYS_TYPES_H #undef HAVE_UNISTD_H #undef HAVE_STRING_H #undef HAVE_ASSERT_H #undef HAVE_SYS_STAT_H #undef HAVE_GETOPT_H #undef HAVE_REGEX_H -#undef HAVE_SYS_TYPES_H #undef HAVE_SYS_SOCKET_H #undef HAVE_NETINET_IN_H #undef HAVE_WINSOCK2_H +#undef HAVE_CRYPT_H #undef TIME_WITH_SYS_TIME diff --git a/lib/make/configure b/lib/make/configure index 6daf7abf..bf0d1643 100755 --- a/lib/make/configure +++ b/lib/make/configure @@ -3167,14 +3167,56 @@ else fi done +for cctk_hdr in crypt.h +do +cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6 +echo "configure:3175: checking for $cctk_hdr" >&5 +if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 3180 "configure" +#include "confdefs.h" +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#include <$cctk_hdr> +int main() { + +; return 0; } +EOF +if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "cctk_cv_header_$cctk_safe=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "cctk_cv_header_$cctk_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$cctk_cv_header_'$cctk_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cctk_tr_hdr=HAVE_`echo $cctk_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $cctk_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3173: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:3215: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3178 "configure" +#line 3220 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -3183,7 +3225,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3208,12 +3250,12 @@ fi # Check if we have socklen_t available echo $ac_n "checking if socklen_t is defined""... $ac_c" 1>&6 -echo "configure:3212: checking if socklen_t is defined" >&5 +echo "configure:3254: checking if socklen_t is defined" >&5 if eval "test \"`echo '$''{'cctk_cv_have_socklen_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3217 "configure" +#line 3259 "configure" #include "confdefs.h" #include <stdio.h> #include <stdlib.h> @@ -3233,7 +3275,7 @@ int main() { socklen_t foo; return 0 ; return 0; } EOF -if { (eval echo configure:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "cctk_cv_have_socklen_t=yes" else @@ -3272,12 +3314,12 @@ cross_compiling=$ac_cv_prog_cxx_cross do cctk_safe=`echo "$cctk_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $cctk_hdr""... $ac_c" 1>&6 -echo "configure:3276: checking for $cctk_hdr" >&5 +echo "configure:3318: checking for $cctk_hdr" >&5 if eval "test \"`echo '$''{'cctk_cv_header_$cctk_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3281 "configure" +#line 3323 "configure" #include "confdefs.h" #include <$cctk_hdr> @@ -3285,7 +3327,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "cctk_cv_header_$cctk_safe=yes" else @@ -3325,14 +3367,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext <<EOF -#line 3329 "configure" +#line 3371 "configure" #include "confdefs.h" int main() { bool foo; ; return 0; } EOF -if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_BOOL 1 @@ -3357,12 +3399,12 @@ fi for ac_func in getopt_long_only do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3361: checking for $ac_func" >&5 +echo "configure:3403: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3366 "configure" +#line 3408 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -3385,7 +3427,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3430,12 +3472,12 @@ fi for ac_func in crypt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3434: checking for $ac_func" >&5 +echo "configure:3476: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3439 "configure" +#line 3481 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -3458,7 +3500,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else diff --git a/lib/make/configure.in b/lib/make/configure.in index 3fd56f37..02b006a3 100644 --- a/lib/make/configure.in +++ b/lib/make/configure.in @@ -390,6 +390,9 @@ CCTK_CHECK_HEADERS(netinet/in.h,[#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif]) CCTK_CHECK_HEADERS(winsock2.h) +CCTK_CHECK_HEADERS(crypt.h,[#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif]) AC_HEADER_TIME |