Changeset 18214
- Timestamp:
- 2008-12-16T15:52:32+13:00 (15 years ago)
- Location:
- gsdl/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/build-src/configure
r16594 r18214 310 310 311 311 ac_subdirs_all="$ac_subdirs_all packages" 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDEgsdlos MODULEDIRS subdirs LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 864 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 865 --with-micodir Use installed MICO directory 866 --with-gdbm=dir Use local gdbm library and headers867 866 --with-dmalloc use dmalloc, as in 868 867 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz … … 1407 1406 1408 1407 1409 1410 # Check whether --with-gdbm or --without-gdbm was given.1411 if test "${with_gdbm+set}" = set; then1412 withval="$with_gdbm"1413 gdbmdir=$withval1414 fi;1415 1416 1408 # Check whether --enable-accentfold or --disable-accentfold was given. 1417 1409 if test "${enable_accentfold+set}" = set; then … … 6813 6805 6814 6806 6815 6816 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56817 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66818 if test ! -z "$gdbmdir" ; then6819 # look in given directory for header file6820 if test -r $gdbmdir/include/gdbm.h ; then6821 GDBM_INCLUDE="-I$gdbmdir/include" ;6822 elif test -r $gdbmdir/gdbm.h ; then6823 GDBM_INCLUDE="-I$gdbmdir" ;6824 fi6825 6826 # look in given directory for library6827 if test -r $gdbmdir/libgdbm.a ; then6828 GDBM_LIBPATH="-L$gdbmdir" ;6829 elif test -r $gdbmdir/lib/libgdbm.a ; then6830 GDBM_LIBPATH="-L$gdbmdir/lib" ;6831 elif test -r $gdbmdir/.libs/libgdbm.a ; then6832 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6833 fi6834 6835 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6836 echo "$as_me:$LINENO: result: $gdbmdir" >&56837 echo "${ECHO_T}$gdbmdir" >&6 ;6838 else6839 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56840 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6841 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56842 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66843 fi6844 fi6845 6846 # look in default path and in /usr/local6847 if test -z "$GDBM_INCLUDE" ; then6848 # try in system directory6849 6850 cat >conftest.$ac_ext <<_ACEOF6851 /* confdefs.h. */6852 _ACEOF6853 cat confdefs.h >>conftest.$ac_ext6854 cat >>conftest.$ac_ext <<_ACEOF6855 /* end confdefs.h. */6856 #include <gdbm.h>6857 6858 int6859 main ()6860 {6861 6862 ;6863 return 0;6864 }6865 _ACEOF6866 rm -f conftest.$ac_objext6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56868 (eval $ac_compile) 2>conftest.er16869 ac_status=$?6870 grep -v '^ *+' conftest.er1 >conftest.err6871 rm -f conftest.er16872 cat conftest.err >&56873 echo "$as_me:$LINENO: \$? = $ac_status" >&56874 (exit $ac_status); } &&6875 { ac_try='test -z "$ac_cxx_werror_flag"6876 || test ! -s conftest.err'6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56878 (eval $ac_try) 2>&56879 ac_status=$?6880 echo "$as_me:$LINENO: \$? = $ac_status" >&56881 (exit $ac_status); }; } &&6882 { ac_try='test -s conftest.$ac_objext'6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56884 (eval $ac_try) 2>&56885 ac_status=$?6886 echo "$as_me:$LINENO: \$? = $ac_status" >&56887 (exit $ac_status); }; }; then6888 success=yes6889 else6890 echo "$as_me: failed program was:" >&56891 sed 's/^/| /' conftest.$ac_ext >&56892 6893 success=no6894 6895 fi6896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6897 6898 if test $success = "no"; then6899 # last chance - look in /usr/local (eg FreeBSD)6900 GDBM_LIBPATH=-L/usr/local/lib6901 GDBM_INCLUDE=-I/usr/local/include6902 ac_save_CXXFLAGS="$CXXFLAGS"6903 ac_save_LIBS="$LIBS"6904 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6905 LIBS="$LIBS -L/usr/local/lib -lgdbm"6906 cat >conftest.$ac_ext <<_ACEOF6907 /* confdefs.h. */6908 _ACEOF6909 cat confdefs.h >>conftest.$ac_ext6910 cat >>conftest.$ac_ext <<_ACEOF6911 /* end confdefs.h. */6912 #include <gdbm.h>6913 #include <stdio.h>6914 6915 int6916 main ()6917 {6918 printf("%s",gdbm_version);6919 ;6920 return 0;6921 }6922 _ACEOF6923 rm -f conftest.$ac_objext conftest$ac_exeext6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56925 (eval $ac_link) 2>conftest.er16926 ac_status=$?6927 grep -v '^ *+' conftest.er1 >conftest.err6928 rm -f conftest.er16929 cat conftest.err >&56930 echo "$as_me:$LINENO: \$? = $ac_status" >&56931 (exit $ac_status); } &&6932 { ac_try='test -z "$ac_cxx_werror_flag"6933 || test ! -s conftest.err'6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56935 (eval $ac_try) 2>&56936 ac_status=$?6937 echo "$as_me:$LINENO: \$? = $ac_status" >&56938 (exit $ac_status); }; } &&6939 { ac_try='test -s conftest$ac_exeext'6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56941 (eval $ac_try) 2>&56942 ac_status=$?6943 echo "$as_me:$LINENO: \$? = $ac_status" >&56944 (exit $ac_status); }; }; then6945 success=/usr/local6946 else6947 echo "$as_me: failed program was:" >&56948 sed 's/^/| /' conftest.$ac_ext >&56949 6950 success=no6951 6952 fi6953 rm -f conftest.err conftest.$ac_objext \6954 conftest$ac_exeext conftest.$ac_ext6955 CXXFLAGS=$ac_save_CXXFLAGS6956 LIBS=$ac_save_LIBS6957 fi6958 6959 echo "$as_me:$LINENO: result: $success" >&56960 echo "${ECHO_T}$success" >&66961 if test $success = "no"; then6962 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56963 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6964 { (exit 1); exit 1; }; }6965 fi6966 fi6967 cat >>confdefs.h <<\_ACEOF6968 #define HAVE_LIBGDBM 16969 _ACEOF6970 6971 6972 6973 6974 6975 6807 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6976 6808 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 … … 7009 6841 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 7010 6842 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6843 7011 6844 7012 6845 cat >conftest.$ac_ext <<_ACEOF … … 8116 7949 s,@LIBOBJS@,$LIBOBJS,;t t 8117 7950 s,@STATIC@,$STATIC,;t t 8118 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8119 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8120 7951 s,@gsdlos@,$gsdlos,;t t 8121 7952 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/build-src/configure.in
r16594 r18214 59 59 AC_SUBST(USE_YAZ) 60 60 dnl fi 61 62 dnl63 dnl look for libgdbm if not in standard location64 dnl65 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)66 61 67 62 dnl … … 249 244 dnl 250 245 AC_LANG_CPLUSPLUS 251 252 dnl253 dnl Check that the GDBM library is available254 dnl255 dnl check libgdbm manually, in case it's not in the standard location.256 257 AC_MSG_CHECKING(that the GDBM library is available)258 if test ! -z "$gdbmdir" ; then259 # look in given directory for header file260 if test -r $gdbmdir/include/gdbm.h ; then261 GDBM_INCLUDE="-I$gdbmdir/include" ;262 elif test -r $gdbmdir/gdbm.h ; then263 GDBM_INCLUDE="-I$gdbmdir" ;264 fi265 266 # look in given directory for library267 if test -r $gdbmdir/libgdbm.a ; then268 GDBM_LIBPATH="-L$gdbmdir" ;269 elif test -r $gdbmdir/lib/libgdbm.a ; then270 GDBM_LIBPATH="-L$gdbmdir/lib" ;271 elif test -r $gdbmdir/.libs/libgdbm.a ; then272 GDBM_LIBPATH="-L$gdbmdir/.libs" ;273 fi274 275 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then276 AC_MSG_RESULT($gdbmdir) ;277 else278 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);279 AC_MSG_CHECKING( looking for GDBM library in default locations)280 fi281 fi282 283 # look in default path and in /usr/local284 if test -z "$GDBM_INCLUDE" ; then285 # try in system directory286 AC_TRY_COMPILE(287 [#include <gdbm.h>288 ],289 [],290 success=yes,291 success=no292 )293 294 if test $success = "no"; then295 # last chance - look in /usr/local (eg FreeBSD)296 GDBM_LIBPATH=-L/usr/local/lib297 GDBM_INCLUDE=-I/usr/local/include298 ac_save_CXXFLAGS="$CXXFLAGS"299 ac_save_LIBS="$LIBS"300 CXXFLAGS="$CXXFLAGS -I/usr/local/include"301 LIBS="$LIBS -L/usr/local/lib -lgdbm"302 AC_TRY_LINK(303 [#include <gdbm.h>304 #include <stdio.h>305 ],306 [printf("%s",gdbm_version);],307 success=/usr/local,308 success=no309 )310 CXXFLAGS=$ac_save_CXXFLAGS311 LIBS=$ac_save_LIBS312 fi313 314 AC_MSG_RESULT($success)315 if test $success = "no"; then316 AC_MSG_ERROR(GDBM Library not available - cannot install)317 fi318 fi319 dnl I don't think anything actually checks this define, but...320 AC_DEFINE(HAVE_LIBGDBM , 1)321 322 AC_SUBST(GDBM_LIBPATH)323 AC_SUBST(GDBM_INCLUDE)324 246 325 247 dnl -
gsdl/trunk/common-src/configure
r16595 r18214 311 311 312 312 ac_subdirs_all="$ac_subdirs_all packages indexers" 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDEgsdlos MODULEDIRS subdirs LTLIBOBJS'313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS' 314 314 ac_subst_files='' 315 315 … … 865 865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 866 866 --with-micodir Use installed MICO directory 867 --with-gdbm=dir Use local gdbm library and headers868 867 --with-dmalloc use dmalloc, as in 869 868 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz … … 1410 1409 1411 1410 1412 1413 # Check whether --with-gdbm or --without-gdbm was given.1414 if test "${with_gdbm+set}" = set; then1415 withval="$with_gdbm"1416 gdbmdir=$withval1417 fi;1418 1419 1411 # Check whether --enable-accentfold or --disable-accentfold was given. 1420 1412 if test "${enable_accentfold+set}" = set; then … … 6816 6808 6817 6809 6818 6819 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56820 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66821 if test ! -z "$gdbmdir" ; then6822 # look in given directory for header file6823 if test -r $gdbmdir/include/gdbm.h ; then6824 GDBM_INCLUDE="-I$gdbmdir/include" ;6825 elif test -r $gdbmdir/gdbm.h ; then6826 GDBM_INCLUDE="-I$gdbmdir" ;6827 fi6828 6829 # look in given directory for library6830 if test -r $gdbmdir/libgdbm.a ; then6831 GDBM_LIBPATH="-L$gdbmdir" ;6832 elif test -r $gdbmdir/lib/libgdbm.a ; then6833 GDBM_LIBPATH="-L$gdbmdir/lib" ;6834 elif test -r $gdbmdir/.libs/libgdbm.a ; then6835 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6836 fi6837 6838 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6839 echo "$as_me:$LINENO: result: $gdbmdir" >&56840 echo "${ECHO_T}$gdbmdir" >&6 ;6841 else6842 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56843 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6844 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56845 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66846 fi6847 fi6848 6849 # look in default path and in /usr/local6850 if test -z "$GDBM_INCLUDE" ; then6851 # try in system directory6852 6853 cat >conftest.$ac_ext <<_ACEOF6854 /* confdefs.h. */6855 _ACEOF6856 cat confdefs.h >>conftest.$ac_ext6857 cat >>conftest.$ac_ext <<_ACEOF6858 /* end confdefs.h. */6859 #include <gdbm.h>6860 6861 int6862 main ()6863 {6864 6865 ;6866 return 0;6867 }6868 _ACEOF6869 rm -f conftest.$ac_objext6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56871 (eval $ac_compile) 2>conftest.er16872 ac_status=$?6873 grep -v '^ *+' conftest.er1 >conftest.err6874 rm -f conftest.er16875 cat conftest.err >&56876 echo "$as_me:$LINENO: \$? = $ac_status" >&56877 (exit $ac_status); } &&6878 { ac_try='test -z "$ac_cxx_werror_flag"6879 || test ! -s conftest.err'6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56881 (eval $ac_try) 2>&56882 ac_status=$?6883 echo "$as_me:$LINENO: \$? = $ac_status" >&56884 (exit $ac_status); }; } &&6885 { ac_try='test -s conftest.$ac_objext'6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56887 (eval $ac_try) 2>&56888 ac_status=$?6889 echo "$as_me:$LINENO: \$? = $ac_status" >&56890 (exit $ac_status); }; }; then6891 success=yes6892 else6893 echo "$as_me: failed program was:" >&56894 sed 's/^/| /' conftest.$ac_ext >&56895 6896 success=no6897 6898 fi6899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6900 6901 if test $success = "no"; then6902 # last chance - look in /usr/local (eg FreeBSD)6903 GDBM_LIBPATH=-L/usr/local/lib6904 GDBM_INCLUDE=-I/usr/local/include6905 ac_save_CXXFLAGS="$CXXFLAGS"6906 ac_save_LIBS="$LIBS"6907 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6908 LIBS="$LIBS -L/usr/local/lib -lgdbm"6909 cat >conftest.$ac_ext <<_ACEOF6910 /* confdefs.h. */6911 _ACEOF6912 cat confdefs.h >>conftest.$ac_ext6913 cat >>conftest.$ac_ext <<_ACEOF6914 /* end confdefs.h. */6915 #include <gdbm.h>6916 #include <stdio.h>6917 6918 int6919 main ()6920 {6921 printf("%s",gdbm_version);6922 ;6923 return 0;6924 }6925 _ACEOF6926 rm -f conftest.$ac_objext conftest$ac_exeext6927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56928 (eval $ac_link) 2>conftest.er16929 ac_status=$?6930 grep -v '^ *+' conftest.er1 >conftest.err6931 rm -f conftest.er16932 cat conftest.err >&56933 echo "$as_me:$LINENO: \$? = $ac_status" >&56934 (exit $ac_status); } &&6935 { ac_try='test -z "$ac_cxx_werror_flag"6936 || test ! -s conftest.err'6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56938 (eval $ac_try) 2>&56939 ac_status=$?6940 echo "$as_me:$LINENO: \$? = $ac_status" >&56941 (exit $ac_status); }; } &&6942 { ac_try='test -s conftest$ac_exeext'6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56944 (eval $ac_try) 2>&56945 ac_status=$?6946 echo "$as_me:$LINENO: \$? = $ac_status" >&56947 (exit $ac_status); }; }; then6948 success=/usr/local6949 else6950 echo "$as_me: failed program was:" >&56951 sed 's/^/| /' conftest.$ac_ext >&56952 6953 success=no6954 6955 fi6956 rm -f conftest.err conftest.$ac_objext \6957 conftest$ac_exeext conftest.$ac_ext6958 CXXFLAGS=$ac_save_CXXFLAGS6959 LIBS=$ac_save_LIBS6960 fi6961 6962 echo "$as_me:$LINENO: result: $success" >&56963 echo "${ECHO_T}$success" >&66964 if test $success = "no"; then6965 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56966 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6967 { (exit 1); exit 1; }; }6968 fi6969 fi6970 cat >>confdefs.h <<\_ACEOF6971 #define HAVE_LIBGDBM 16972 _ACEOF6973 6974 6975 6976 6977 6978 6810 success=no 6979 6811 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 6980 6812 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6813 6981 6814 6982 6815 cat >conftest.$ac_ext <<_ACEOF … … 8092 7925 s,@LIBOBJS@,$LIBOBJS,;t t 8093 7926 s,@STATIC@,$STATIC,;t t 8094 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8095 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8096 7927 s,@gsdlos@,$gsdlos,;t t 8097 7928 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/common-src/configure.in
r16595 r18214 61 61 AC_SUBST(USE_YAZ) 62 62 dnl fi 63 64 dnl65 dnl look for libgdbm if not in standard location66 dnl67 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)68 63 69 64 dnl … … 251 246 dnl 252 247 AC_LANG_CPLUSPLUS 253 254 dnl255 dnl Check that the GDBM library is available256 dnl257 dnl check libgdbm manually, in case it's not in the standard location.258 259 AC_MSG_CHECKING(that the GDBM library is available)260 if test ! -z "$gdbmdir" ; then261 # look in given directory for header file262 if test -r $gdbmdir/include/gdbm.h ; then263 GDBM_INCLUDE="-I$gdbmdir/include" ;264 elif test -r $gdbmdir/gdbm.h ; then265 GDBM_INCLUDE="-I$gdbmdir" ;266 fi267 268 # look in given directory for library269 if test -r $gdbmdir/libgdbm.a ; then270 GDBM_LIBPATH="-L$gdbmdir" ;271 elif test -r $gdbmdir/lib/libgdbm.a ; then272 GDBM_LIBPATH="-L$gdbmdir/lib" ;273 elif test -r $gdbmdir/.libs/libgdbm.a ; then274 GDBM_LIBPATH="-L$gdbmdir/.libs" ;275 fi276 277 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then278 AC_MSG_RESULT($gdbmdir) ;279 else280 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);281 AC_MSG_CHECKING( looking for GDBM library in default locations)282 fi283 fi284 285 # look in default path and in /usr/local286 if test -z "$GDBM_INCLUDE" ; then287 # try in system directory288 AC_TRY_COMPILE(289 [#include <gdbm.h>290 ],291 [],292 success=yes,293 success=no294 )295 296 if test $success = "no"; then297 # last chance - look in /usr/local (eg FreeBSD)298 GDBM_LIBPATH=-L/usr/local/lib299 GDBM_INCLUDE=-I/usr/local/include300 ac_save_CXXFLAGS="$CXXFLAGS"301 ac_save_LIBS="$LIBS"302 CXXFLAGS="$CXXFLAGS -I/usr/local/include"303 LIBS="$LIBS -L/usr/local/lib -lgdbm"304 AC_TRY_LINK(305 [#include <gdbm.h>306 #include <stdio.h>307 ],308 [printf("%s",gdbm_version);],309 success=/usr/local,310 success=no311 )312 CXXFLAGS=$ac_save_CXXFLAGS313 LIBS=$ac_save_LIBS314 fi315 316 AC_MSG_RESULT($success)317 if test $success = "no"; then318 AC_MSG_ERROR(GDBM Library not available - cannot install)319 fi320 fi321 dnl I don't think anything actually checks this define, but...322 AC_DEFINE(HAVE_LIBGDBM , 1)323 324 AC_SUBST(GDBM_LIBPATH)325 AC_SUBST(GDBM_INCLUDE)326 248 327 249 dnl -
gsdl/trunk/configure
r16619 r18214 310 310 311 311 ac_subdirs_all="$ac_subdirs_all common-src build-src runtime-src" 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDEgsdlos MODULEDIRS subdirs LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 864 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 865 --with-micodir Use installed MICO directory 866 --with-gdbm=dir Use local gdbm library and headers867 866 --with-dmalloc use dmalloc, as in 868 867 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz … … 1406 1405 1407 1406 1408 1409 # Check whether --with-gdbm or --without-gdbm was given.1410 if test "${with_gdbm+set}" = set; then1411 withval="$with_gdbm"1412 gdbmdir=$withval1413 fi;1414 1415 1407 # Check whether --enable-accentfold or --disable-accentfold was given. 1416 1408 if test "${enable_accentfold+set}" = set; then … … 6812 6804 6813 6805 6814 6815 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56816 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66817 if test ! -z "$gdbmdir" ; then6818 # look in given directory for header file6819 if test -r $gdbmdir/include/gdbm.h ; then6820 GDBM_INCLUDE="-I$gdbmdir/include" ;6821 elif test -r $gdbmdir/gdbm.h ; then6822 GDBM_INCLUDE="-I$gdbmdir" ;6823 fi6824 6825 # look in given directory for library6826 if test -r $gdbmdir/libgdbm.a ; then6827 GDBM_LIBPATH="-L$gdbmdir" ;6828 elif test -r $gdbmdir/lib/libgdbm.a ; then6829 GDBM_LIBPATH="-L$gdbmdir/lib" ;6830 elif test -r $gdbmdir/.libs/libgdbm.a ; then6831 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6832 fi6833 6834 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6835 echo "$as_me:$LINENO: result: $gdbmdir" >&56836 echo "${ECHO_T}$gdbmdir" >&6 ;6837 else6838 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56839 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6840 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56841 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66842 fi6843 fi6844 6845 # look in default path and in /usr/local6846 if test -z "$GDBM_INCLUDE" ; then6847 # try in system directory6848 6849 cat >conftest.$ac_ext <<_ACEOF6850 /* confdefs.h. */6851 _ACEOF6852 cat confdefs.h >>conftest.$ac_ext6853 cat >>conftest.$ac_ext <<_ACEOF6854 /* end confdefs.h. */6855 #include <gdbm.h>6856 6857 int6858 main ()6859 {6860 6861 ;6862 return 0;6863 }6864 _ACEOF6865 rm -f conftest.$ac_objext6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56867 (eval $ac_compile) 2>conftest.er16868 ac_status=$?6869 grep -v '^ *+' conftest.er1 >conftest.err6870 rm -f conftest.er16871 cat conftest.err >&56872 echo "$as_me:$LINENO: \$? = $ac_status" >&56873 (exit $ac_status); } &&6874 { ac_try='test -z "$ac_cxx_werror_flag"6875 || test ! -s conftest.err'6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56877 (eval $ac_try) 2>&56878 ac_status=$?6879 echo "$as_me:$LINENO: \$? = $ac_status" >&56880 (exit $ac_status); }; } &&6881 { ac_try='test -s conftest.$ac_objext'6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56883 (eval $ac_try) 2>&56884 ac_status=$?6885 echo "$as_me:$LINENO: \$? = $ac_status" >&56886 (exit $ac_status); }; }; then6887 success=yes6888 else6889 echo "$as_me: failed program was:" >&56890 sed 's/^/| /' conftest.$ac_ext >&56891 6892 success=no6893 6894 fi6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6896 6897 if test $success = "no"; then6898 # last chance - look in /usr/local (eg FreeBSD)6899 GDBM_LIBPATH=-L/usr/local/lib6900 GDBM_INCLUDE=-I/usr/local/include6901 ac_save_CXXFLAGS="$CXXFLAGS"6902 ac_save_LIBS="$LIBS"6903 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6904 LIBS="$LIBS -L/usr/local/lib -lgdbm"6905 cat >conftest.$ac_ext <<_ACEOF6906 /* confdefs.h. */6907 _ACEOF6908 cat confdefs.h >>conftest.$ac_ext6909 cat >>conftest.$ac_ext <<_ACEOF6910 /* end confdefs.h. */6911 #include <gdbm.h>6912 #include <stdio.h>6913 6914 int6915 main ()6916 {6917 printf("%s",gdbm_version);6918 ;6919 return 0;6920 }6921 _ACEOF6922 rm -f conftest.$ac_objext conftest$ac_exeext6923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56924 (eval $ac_link) 2>conftest.er16925 ac_status=$?6926 grep -v '^ *+' conftest.er1 >conftest.err6927 rm -f conftest.er16928 cat conftest.err >&56929 echo "$as_me:$LINENO: \$? = $ac_status" >&56930 (exit $ac_status); } &&6931 { ac_try='test -z "$ac_cxx_werror_flag"6932 || test ! -s conftest.err'6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56934 (eval $ac_try) 2>&56935 ac_status=$?6936 echo "$as_me:$LINENO: \$? = $ac_status" >&56937 (exit $ac_status); }; } &&6938 { ac_try='test -s conftest$ac_exeext'6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56940 (eval $ac_try) 2>&56941 ac_status=$?6942 echo "$as_me:$LINENO: \$? = $ac_status" >&56943 (exit $ac_status); }; }; then6944 success=/usr/local6945 else6946 echo "$as_me: failed program was:" >&56947 sed 's/^/| /' conftest.$ac_ext >&56948 6949 success=no6950 6951 fi6952 rm -f conftest.err conftest.$ac_objext \6953 conftest$ac_exeext conftest.$ac_ext6954 CXXFLAGS=$ac_save_CXXFLAGS6955 LIBS=$ac_save_LIBS6956 fi6957 6958 echo "$as_me:$LINENO: result: $success" >&56959 echo "${ECHO_T}$success" >&66960 if test $success = "no"; then6961 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56962 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6963 { (exit 1); exit 1; }; }6964 fi6965 fi6966 cat >>confdefs.h <<\_ACEOF6967 #define HAVE_LIBGDBM 16968 _ACEOF6969 6970 6971 6972 6973 6974 6806 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6975 6807 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 … … 7008 6840 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 7009 6841 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6842 7010 6843 7011 6844 cat >conftest.$ac_ext <<_ACEOF … … 8119 7952 s,@LIBOBJS@,$LIBOBJS,;t t 8120 7953 s,@STATIC@,$STATIC,;t t 8121 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8122 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8123 7954 s,@gsdlos@,$gsdlos,;t t 8124 7955 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/configure.in
r16619 r18214 58 58 AC_SUBST(USE_YAZ) 59 59 dnl fi 60 61 dnl62 dnl look for libgdbm if not in standard location63 dnl64 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)65 60 66 61 dnl … … 248 243 dnl 249 244 AC_LANG_CPLUSPLUS 250 251 dnl252 dnl Check that the GDBM library is available253 dnl254 dnl check libgdbm manually, in case it's not in the standard location.255 256 AC_MSG_CHECKING(that the GDBM library is available)257 if test ! -z "$gdbmdir" ; then258 # look in given directory for header file259 if test -r $gdbmdir/include/gdbm.h ; then260 GDBM_INCLUDE="-I$gdbmdir/include" ;261 elif test -r $gdbmdir/gdbm.h ; then262 GDBM_INCLUDE="-I$gdbmdir" ;263 fi264 265 # look in given directory for library266 if test -r $gdbmdir/libgdbm.a ; then267 GDBM_LIBPATH="-L$gdbmdir" ;268 elif test -r $gdbmdir/lib/libgdbm.a ; then269 GDBM_LIBPATH="-L$gdbmdir/lib" ;270 elif test -r $gdbmdir/.libs/libgdbm.a ; then271 GDBM_LIBPATH="-L$gdbmdir/.libs" ;272 fi273 274 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then275 AC_MSG_RESULT($gdbmdir) ;276 else277 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);278 AC_MSG_CHECKING( looking for GDBM library in default locations)279 fi280 fi281 282 # look in default path and in /usr/local283 if test -z "$GDBM_INCLUDE" ; then284 # try in system directory285 AC_TRY_COMPILE(286 [#include <gdbm.h>287 ],288 [],289 success=yes,290 success=no291 )292 293 if test $success = "no"; then294 # last chance - look in /usr/local (eg FreeBSD)295 GDBM_LIBPATH=-L/usr/local/lib296 GDBM_INCLUDE=-I/usr/local/include297 ac_save_CXXFLAGS="$CXXFLAGS"298 ac_save_LIBS="$LIBS"299 CXXFLAGS="$CXXFLAGS -I/usr/local/include"300 LIBS="$LIBS -L/usr/local/lib -lgdbm"301 AC_TRY_LINK(302 [#include <gdbm.h>303 #include <stdio.h>304 ],305 [printf("%s",gdbm_version);],306 success=/usr/local,307 success=no308 )309 CXXFLAGS=$ac_save_CXXFLAGS310 LIBS=$ac_save_LIBS311 fi312 313 AC_MSG_RESULT($success)314 if test $success = "no"; then315 AC_MSG_ERROR(GDBM Library not available - cannot install)316 fi317 fi318 dnl I don't think anything actually checks this define, but...319 AC_DEFINE(HAVE_LIBGDBM , 1)320 321 AC_SUBST(GDBM_LIBPATH)322 AC_SUBST(GDBM_INCLUDE)323 245 324 246 dnl -
gsdl/trunk/runtime-src/configure
r16572 r18214 310 310 311 311 ac_subdirs_all="$ac_subdirs_all packages" 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDEgsdlos MODULEDIRS subdirs LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS' 313 313 ac_subst_files='' 314 314 … … 864 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 865 --with-micodir Use installed MICO directory 866 --with-gdbm=dir Use local gdbm library and headers867 866 --with-dmalloc use dmalloc, as in 868 867 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz … … 1408 1407 1409 1408 1410 1411 # Check whether --with-gdbm or --without-gdbm was given.1412 if test "${with_gdbm+set}" = set; then1413 withval="$with_gdbm"1414 gdbmdir=$withval1415 fi;1416 1417 1409 # Check whether --enable-accentfold or --disable-accentfold was given. 1418 1410 if test "${enable_accentfold+set}" = set; then … … 6814 6806 6815 6807 6816 6817 echo "$as_me:$LINENO: checking that the GDBM library is available" >&56818 echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&66819 if test ! -z "$gdbmdir" ; then6820 # look in given directory for header file6821 if test -r $gdbmdir/include/gdbm.h ; then6822 GDBM_INCLUDE="-I$gdbmdir/include" ;6823 elif test -r $gdbmdir/gdbm.h ; then6824 GDBM_INCLUDE="-I$gdbmdir" ;6825 fi6826 6827 # look in given directory for library6828 if test -r $gdbmdir/libgdbm.a ; then6829 GDBM_LIBPATH="-L$gdbmdir" ;6830 elif test -r $gdbmdir/lib/libgdbm.a ; then6831 GDBM_LIBPATH="-L$gdbmdir/lib" ;6832 elif test -r $gdbmdir/.libs/libgdbm.a ; then6833 GDBM_LIBPATH="-L$gdbmdir/.libs" ;6834 fi6835 6836 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then6837 echo "$as_me:$LINENO: result: $gdbmdir" >&56838 echo "${ECHO_T}$gdbmdir" >&6 ;6839 else6840 echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&56841 echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;6842 echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&56843 echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&66844 fi6845 fi6846 6847 # look in default path and in /usr/local6848 if test -z "$GDBM_INCLUDE" ; then6849 # try in system directory6850 6851 cat >conftest.$ac_ext <<_ACEOF6852 /* confdefs.h. */6853 _ACEOF6854 cat confdefs.h >>conftest.$ac_ext6855 cat >>conftest.$ac_ext <<_ACEOF6856 /* end confdefs.h. */6857 #include <gdbm.h>6858 6859 int6860 main ()6861 {6862 6863 ;6864 return 0;6865 }6866 _ACEOF6867 rm -f conftest.$ac_objext6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&56869 (eval $ac_compile) 2>conftest.er16870 ac_status=$?6871 grep -v '^ *+' conftest.er1 >conftest.err6872 rm -f conftest.er16873 cat conftest.err >&56874 echo "$as_me:$LINENO: \$? = $ac_status" >&56875 (exit $ac_status); } &&6876 { ac_try='test -z "$ac_cxx_werror_flag"6877 || test ! -s conftest.err'6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56879 (eval $ac_try) 2>&56880 ac_status=$?6881 echo "$as_me:$LINENO: \$? = $ac_status" >&56882 (exit $ac_status); }; } &&6883 { ac_try='test -s conftest.$ac_objext'6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56885 (eval $ac_try) 2>&56886 ac_status=$?6887 echo "$as_me:$LINENO: \$? = $ac_status" >&56888 (exit $ac_status); }; }; then6889 success=yes6890 else6891 echo "$as_me: failed program was:" >&56892 sed 's/^/| /' conftest.$ac_ext >&56893 6894 success=no6895 6896 fi6897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext6898 6899 if test $success = "no"; then6900 # last chance - look in /usr/local (eg FreeBSD)6901 GDBM_LIBPATH=-L/usr/local/lib6902 GDBM_INCLUDE=-I/usr/local/include6903 ac_save_CXXFLAGS="$CXXFLAGS"6904 ac_save_LIBS="$LIBS"6905 CXXFLAGS="$CXXFLAGS -I/usr/local/include"6906 LIBS="$LIBS -L/usr/local/lib -lgdbm"6907 cat >conftest.$ac_ext <<_ACEOF6908 /* confdefs.h. */6909 _ACEOF6910 cat confdefs.h >>conftest.$ac_ext6911 cat >>conftest.$ac_ext <<_ACEOF6912 /* end confdefs.h. */6913 #include <gdbm.h>6914 #include <stdio.h>6915 6916 int6917 main ()6918 {6919 printf("%s",gdbm_version);6920 ;6921 return 0;6922 }6923 _ACEOF6924 rm -f conftest.$ac_objext conftest$ac_exeext6925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&56926 (eval $ac_link) 2>conftest.er16927 ac_status=$?6928 grep -v '^ *+' conftest.er1 >conftest.err6929 rm -f conftest.er16930 cat conftest.err >&56931 echo "$as_me:$LINENO: \$? = $ac_status" >&56932 (exit $ac_status); } &&6933 { ac_try='test -z "$ac_cxx_werror_flag"6934 || test ! -s conftest.err'6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56936 (eval $ac_try) 2>&56937 ac_status=$?6938 echo "$as_me:$LINENO: \$? = $ac_status" >&56939 (exit $ac_status); }; } &&6940 { ac_try='test -s conftest$ac_exeext'6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&56942 (eval $ac_try) 2>&56943 ac_status=$?6944 echo "$as_me:$LINENO: \$? = $ac_status" >&56945 (exit $ac_status); }; }; then6946 success=/usr/local6947 else6948 echo "$as_me: failed program was:" >&56949 sed 's/^/| /' conftest.$ac_ext >&56950 6951 success=no6952 6953 fi6954 rm -f conftest.err conftest.$ac_objext \6955 conftest$ac_exeext conftest.$ac_ext6956 CXXFLAGS=$ac_save_CXXFLAGS6957 LIBS=$ac_save_LIBS6958 fi6959 6960 echo "$as_me:$LINENO: result: $success" >&56961 echo "${ECHO_T}$success" >&66962 if test $success = "no"; then6963 { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&56964 echo "$as_me: error: GDBM Library not available - cannot install" >&2;}6965 { (exit 1); exit 1; }; }6966 fi6967 fi6968 cat >>confdefs.h <<\_ACEOF6969 #define HAVE_LIBGDBM 16970 _ACEOF6971 6972 6973 6974 6975 6976 6808 echo "$as_me:$LINENO: checking that Perl 5 is available" >&5 6977 6809 echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6 … … 6991 6823 echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5 6992 6824 echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6 6825 6993 6826 6994 6827 cat >conftest.$ac_ext <<_ACEOF … … 8102 7935 s,@LIBOBJS@,$LIBOBJS,;t t 8103 7936 s,@STATIC@,$STATIC,;t t 8104 s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t8105 s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t8106 7937 s,@gsdlos@,$gsdlos,;t t 8107 7938 s,@MODULEDIRS@,$MODULEDIRS,;t t -
gsdl/trunk/runtime-src/configure.in
r16571 r18214 60 60 AC_SUBST(USE_YAZ) 61 61 dnl fi 62 63 dnl64 dnl look for libgdbm if not in standard location65 dnl66 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval)67 62 68 63 dnl … … 250 245 dnl 251 246 AC_LANG_CPLUSPLUS 252 253 dnl254 dnl Check that the GDBM library is available255 dnl256 dnl check libgdbm manually, in case it's not in the standard location.257 258 AC_MSG_CHECKING(that the GDBM library is available)259 if test ! -z "$gdbmdir" ; then260 # look in given directory for header file261 if test -r $gdbmdir/include/gdbm.h ; then262 GDBM_INCLUDE="-I$gdbmdir/include" ;263 elif test -r $gdbmdir/gdbm.h ; then264 GDBM_INCLUDE="-I$gdbmdir" ;265 fi266 267 # look in given directory for library268 if test -r $gdbmdir/libgdbm.a ; then269 GDBM_LIBPATH="-L$gdbmdir" ;270 elif test -r $gdbmdir/lib/libgdbm.a ; then271 GDBM_LIBPATH="-L$gdbmdir/lib" ;272 elif test -r $gdbmdir/.libs/libgdbm.a ; then273 GDBM_LIBPATH="-L$gdbmdir/.libs" ;274 fi275 276 if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then277 AC_MSG_RESULT($gdbmdir) ;278 else279 AC_MSG_RESULT(can't find gdbm.h and libgdbm.a in $gdbmdir);280 AC_MSG_CHECKING( looking for GDBM library in default locations)281 fi282 fi283 284 # look in default path and in /usr/local285 if test -z "$GDBM_INCLUDE" ; then286 # try in system directory287 AC_TRY_COMPILE(288 [#include <gdbm.h>289 ],290 [],291 success=yes,292 success=no293 )294 295 if test $success = "no"; then296 # last chance - look in /usr/local (eg FreeBSD)297 GDBM_LIBPATH=-L/usr/local/lib298 GDBM_INCLUDE=-I/usr/local/include299 ac_save_CXXFLAGS="$CXXFLAGS"300 ac_save_LIBS="$LIBS"301 CXXFLAGS="$CXXFLAGS -I/usr/local/include"302 LIBS="$LIBS -L/usr/local/lib -lgdbm"303 AC_TRY_LINK(304 [#include <gdbm.h>305 #include <stdio.h>306 ],307 [printf("%s",gdbm_version);],308 success=/usr/local,309 success=no310 )311 CXXFLAGS=$ac_save_CXXFLAGS312 LIBS=$ac_save_LIBS313 fi314 315 AC_MSG_RESULT($success)316 if test $success = "no"; then317 AC_MSG_ERROR(GDBM Library not available - cannot install)318 fi319 fi320 dnl I don't think anything actually checks this define, but...321 AC_DEFINE(HAVE_LIBGDBM , 1)322 323 AC_SUBST(GDBM_LIBPATH)324 AC_SUBST(GDBM_INCLUDE)325 247 326 248 dnl
Note:
See TracChangeset
for help on using the changeset viewer.