Changeset 16261
- Timestamp:
- 2008-07-01T16:56:47+12:00 (15 years ago)
- Location:
- other-projects/trunk/gs2build-extra
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/trunk/gs2build-extra/configure
r16070 r16261 1311 1311 1312 1312 1313 1313 1314 ac_config_headers="$ac_config_headers config.h" 1314 1315 … … 7082 7083 srclist="src/hashfile/Makefile src/gdbmedit/txt2db/Makefile src/gdbmedit/db2txt/Makefile src/phind/generate/Makefile " 7083 7084 7084 ac_config_files="$ac_config_files packages/Makefile lib/Makefile Makefile $srclist $moduleDirs" 7085 ac_config_files="$ac_config_files packages/Makefile src/lib/Makefile Makefile $srclist $moduleDirs" 7086 7085 7087 cat >confcache <<\_ACEOF 7086 7088 # This file is a shell script that caches the results of configure … … 7609 7611 # Handling of arguments. 7610 7612 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 7611 " lib/Makefile" ) CONFIG_FILES="$CONFIG_FILESlib/Makefile" ;;7613 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 7612 7614 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7613 7615 "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;; -
other-projects/trunk/gs2build-extra/configure.in
r16070 r16261 2 2 dnl Use autoconf-2.59 or later... it might not work anymore with 3 3 dnl the older 2.1x versions - jrm21 12/2004 4 AC_INIT(src/lib/text_t.h) 4 AC_INIT 5 AC_CONFIG_SRCDIR([src/lib/text_t.h]) 5 6 AC_CONFIG_HEADER(config.h) 6 7 … … 40 41 dnl get $target_cpu, $target_vendor, and $target_os 41 42 dnl (as well as host_*) 42 AC_CANONICAL_ SYSTEM43 AC_CANONICAL_TARGET([]) 43 44 dnl do we actually want this? It adds a prefix based on host, system etc 44 45 dnl AC_ARG_PROGRAM … … 88 89 dnl Unfortunately -D_{XOPEN,POSIX}_SOURCE can't provide all that mg 89 90 dnl needs. So drop back to -Xa 90 AC_TRY_COMPILE( 91 [#include <stdio.h> 92 ], [ FILE *rubbish = popen("yes", "r"); ],, 93 [CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa']) 91 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> 92 ]], [[ FILE *rubbish = popen("yes", "r"); ]])],[],[CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa']) 94 93 fi 95 94 dnl ---------------------- … … 98 97 dnl Checks for libraries. 99 98 dnl check for -lg: 100 AC_HAVE_LIBRARY(g) 99 AC_CHECK_LIB([g],[main],[],[],[])ac_cv_lib_g=ac_cv_lib_g_main 100 101 101 dnl check for -lm: 102 AC_HAVE_LIBRARY(m) 102 AC_CHECK_LIB([m],[main],[],[],[])ac_cv_lib_m=ac_cv_lib_m_main 103 103 104 dnl check for -lcrypt: 104 AC_HAVE_LIBRARY(crypt) 105 AC_CHECK_LIB([crypt],[main],[],[],[])ac_cv_lib_crypt=ac_cv_lib_crypt_main 106 105 107 if test $ENABLE_ACCENTFOLD = 1; then 106 AC_HAVE_LIBRARY(ICONV) 108 AC_CHECK_LIB([ICONV],[main],[],[],[])ac_cv_lib_ICONV=ac_cv_lib_ICONV_main 109 107 110 fi 108 111 … … 166 169 dnl Switch into C++ 167 170 dnl 168 AC_LANG _CPLUSPLUS171 AC_LANG([C++]) 169 172 170 173 dnl … … 202 205 if test -z "$GDBM_INCLUDE" ; then 203 206 # try in system directory 204 AC_TRY_COMPILE( 205 [#include <gdbm.h> 206 ], 207 [], 208 success=yes, 209 success=no 210 ) 207 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gdbm.h> 208 ]], [[]])],[success=yes],[success=no 209 ]) 211 210 212 211 if test $success = "no"; then … … 218 217 CXXFLAGS="$CXXFLAGS -I/usr/local/include" 219 218 LIBS="$LIBS -L/usr/local/lib -lgdbm" 220 AC_TRY_LINK( 221 [#include <gdbm.h> 219 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gdbm.h> 222 220 #include <stdio.h> 223 ], 224 [printf("%s",gdbm_version);], 225 success=/usr/local, 226 success=no 227 ) 221 ]], [[printf("%s",gdbm_version);]])],[success=/usr/local],[success=no 222 ]) 228 223 CXXFLAGS=$ac_save_CXXFLAGS 229 224 LIBS=$ac_save_LIBS … … 291 286 292 287 dnl - first shot, try simple good old vector on its own 293 AC_TRY_COMPILE( 294 [#include <vector> 295 ], 296 [], 297 success=yes, 298 ) 288 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <vector> 289 ]], [[]])],[success=yes],[]) 299 290 300 291 dnl - try using the .h equivalent 301 292 if test $success = "no"; then 302 AC_TRY_COMPILE( 303 [#include <vector.h> 304 ], 305 [], 306 success="yes", 307 ) 293 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <vector.h> 294 ]], [[]])],[success="yes"],[]) 308 295 fi 309 296 310 297 dnl - now try for the objectspace headers 311 298 if test $success = "no"; then 312 AC_TRY_COMPILE( 313 [#include <ospace\\std\\vector> 314 ], 315 [], 316 success="yes", 317 ) 299 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <ospace\\std\\vector> 300 ]], [[]])],[success="yes"],[]) 318 301 fi 319 302 … … 377 360 srclist="src/hashfile/Makefile src/gdbmedit/txt2db/Makefile src/gdbmedit/db2txt/Makefile src/phind/generate/Makefile " 378 361 379 AC_OUTPUT(packages/Makefile lib/Makefile Makefile $srclist $moduleDirs) 362 AC_CONFIG_FILES([packages/Makefile src/lib/Makefile Makefile $srclist $moduleDirs]) 363 AC_OUTPUT -
other-projects/trunk/gs2build-extra/lib.Makefile.in
r15819 r16261 31 31 CXXFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ 32 32 DEFS = @DEFS@ 33 INCLUDES = -I../ indexers/mg/lib -I..33 INCLUDES = -I../../indexers/mg/lib -I../.. 34 34 RANLIB = @RANLIB@ 35 35
Note:
See TracChangeset
for help on using the changeset viewer.