From: Richard Kreckel Date: Wed, 19 Jan 2000 23:50:48 +0000 (+0000) Subject: - Changed policy: look for cln/cln.h instead of CLN/cln.h, reflecting an X-Git-Tag: release_0-5-0~55 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=f473327b4b0236a42a9e0bb8b3604acbfa09cf38;ds=sidebyside - Changed policy: look for cln/cln.h instead of CLN/cln.h, reflecting an agreement with Bruno Haible. --- diff --git a/acinclude.m4 b/acinclude.m4 index 1f621f98..2c743d7b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -8,12 +8,12 @@ dnl Generally, it is a bad idea to put specialized header files for a library dnl into a generic directory like /usr/local/include/. Instead, one should put dnl them into a subdirectory. GiNaC does it, NTL does it. Unfortunately, CLN dnl doesn't do so but some people choose to do it by hand. In these cases we -dnl need to #include , otherwise #include . This macro +dnl need to #include , otherwise #include . This macro dnl tries to be clever and find out the correct way by defining the variable dnl HAVE_CLN_CLN_H in config.h: AC_DEFUN(GINAC_CHECK_CLN_H, [AC_PROVIDE([$0]) - AC_CHECK_HEADERS(CLN/cln.h, , + AC_CHECK_HEADERS(cln/cln.h, , AC_CHECK_HEADERS(cln.h, , AC_MSG_ERROR([cannot find header for Bruno Haible's CLN]); ) @@ -31,7 +31,7 @@ AC_DEFUN(GINAC_CHECK_LIBCLN, [LIBS="-lcln" case "${ac_cv_header_CLN_cln_h}" in "yes") - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include ], [factorial(1);], ginac_cv_lib_cln_link="-lcln", ginac_cv_lib_cln_link="fail") @@ -74,7 +74,7 @@ AC_DEFUN(GINAC_CHECK_LIBCLN_SANITY, [ case "${ac_cv_header_CLN_cln_h}" in "yes") - AC_TRY_RUN([#include + AC_TRY_RUN([#include int main() { cl_RA q(3); q = q/2; cl_RA p(3); p = p/2; if (q+p != 3) return 1; else return 0; diff --git a/aclocal.m4 b/aclocal.m4 index 87d8492d..a82589df 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -20,12 +20,12 @@ dnl Generally, it is a bad idea to put specialized header files for a library dnl into a generic directory like /usr/local/include/. Instead, one should put dnl them into a subdirectory. GiNaC does it, NTL does it. Unfortunately, CLN dnl doesn't do so but some people choose to do it by hand. In these cases we -dnl need to #include , otherwise #include . This macro +dnl need to #include , otherwise #include . This macro dnl tries to be clever and find out the correct way by defining the variable dnl HAVE_CLN_CLN_H in config.h: AC_DEFUN(GINAC_CHECK_CLN_H, [AC_PROVIDE([$0]) - AC_CHECK_HEADERS(CLN/cln.h, , + AC_CHECK_HEADERS(cln/cln.h, , AC_CHECK_HEADERS(cln.h, , AC_MSG_ERROR([cannot find header for Bruno Haible's CLN]); ) @@ -43,7 +43,7 @@ AC_DEFUN(GINAC_CHECK_LIBCLN, [LIBS="-lcln" case "${ac_cv_header_CLN_cln_h}" in "yes") - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include ], [factorial(1);], ginac_cv_lib_cln_link="-lcln", ginac_cv_lib_cln_link="fail") @@ -86,7 +86,7 @@ AC_DEFUN(GINAC_CHECK_LIBCLN_SANITY, [ case "${ac_cv_header_CLN_cln_h}" in "yes") - AC_TRY_RUN([#include + AC_TRY_RUN([#include int main() { cl_RA q(3); q = q/2; cl_RA p(3); p = p/2; if (q+p != 3) return 1; else return 0; diff --git a/config.h.in b/config.h.in index b2c1b244..c229c73a 100644 --- a/config.h.in +++ b/config.h.in @@ -18,12 +18,12 @@ /* The number of bytes in a long long. */ #undef SIZEOF_LONG_LONG -/* Define if you have the header file. */ -#undef HAVE_CLN_CLN_H - /* Define if you have the header file. */ #undef HAVE_ALGORITHM +/* Define if you have the header file. */ +#undef HAVE_CLN_CLN_H + /* Define if you have the header file. */ #undef HAVE_IOSTREAM diff --git a/configure b/configure index 62541f3b..d2e6a6cd 100755 --- a/configure +++ b/configure @@ -2446,7 +2446,7 @@ done - for ac_hdr in CLN/cln.h + for ac_hdr in cln/cln.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -2543,7 +2543,7 @@ else cat > conftest.$ac_ext < +#include int main() { factorial(1); ; return 0; } @@ -2605,7 +2605,7 @@ else #ifdef __cplusplus extern "C" void exit(int); #endif -#include +#include int main() { cl_RA q(3); q = q/2; cl_RA p(3); p = p/2; if (q+p != 3) return 1; else return 0;