Changeset a38e457 in git for factory/configure.ac
- Timestamp:
- Jun 17, 2013, 4:37:32 PM (10 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 0d25fceffdb240786e6a256e3597a5d1d0a655b0
- Parents:
- ee15d5cb70cb664ca762eaa09d3a38eaeabc2ed8
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-06-17 16:37:32+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-06-18 12:44:31+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/configure.ac
ree15d5 ra38e457 26 26 # Add pre'prefixed config 27 27 AX_PREFIX_CONFIG_H([config.h],[],[config.h]) 28 29 dnl #30 dnl # Change version here, do not believe the comment in the31 dnl # preceding lines.32 dnl #33 factory_version="3.1.3"34 factory_configuration="'$ac_configure_args' in `pwd`"35 28 36 29 # … … 123 116 # `config.cache'. Furthermore, we do not use cache at all to 124 117 # avoid some nasty problems with our own development environment. 125 unset ac_cv_path_FACTORY_MKINSTALLDIRS126 unset ac_cv_path_FACTORY_MAKEHEADER127 save_path="$PATH"128 PATH="$PATH:$srcdir/bin"129 AC_PATH_PROG(FACTORY_MKINSTALLDIRS, mkinstalldirs, -mkdir)130 PATH="$srcdir/bin:$save_path"131 AC_PATH_PROG(FACTORY_MAKEHEADER, makeheader)132 PATH="$save_path"118 #unset ac_cv_path_FACTORY_MKINSTALLDIRS 119 #unset ac_cv_path_FACTORY_MAKEHEADER 120 #save_path="$PATH" 121 #PATH="$PATH:$srcdir/bin" 122 #AC_PATH_PROG(FACTORY_MKINSTALLDIRS, mkinstalldirs, -mkdir) 123 #PATH="$srcdir/bin:$save_path" 124 #AC_PATH_PROG(FACTORY_MAKEHEADER, makeheader) 125 #PATH="$save_path" 133 126 134 127 # … … 136 129 # 137 130 138 AC_MSG_CHECKING(and generating explicit install paths)139 140 # generate Makefile141 save_prefix="$prefix"142 save_exec_prefix="$exec_prefix"143 test "x$prefix" = xNONE && prefix=$ac_default_prefix144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'145 for dir in prefix exec_prefix bindir sbindir libexecdir \146 datadir sysconfdir sharedstatedir localstatedir libdir \147 includedir oldincludedir infodir mandir; do148 eval "dir_value=\$$dir"149 cat >> ./conftest.mk << EXPLPATHEOT150 $dir=$dir_value151 explicit_$dir:152 @ echo \$($dir)153 @ if echo \$($dir) | grep '^/'; \\154 then echo \$($dir) > ./conftest.dir; \\155 else echo \`pwd\`/\$($dir) > ./conftest.dir; fi156 EXPLPATHEOT157 done158 prefix="$save_prefix"159 exec_prefix="$save_exec_prefix"131 #AC_MSG_CHECKING(and generating explicit install paths) 132 133 ## generate Makefile 134 #save_prefix="$prefix" 135 #save_exec_prefix="$exec_prefix" 136 #test "x$prefix" = xNONE && prefix=$ac_default_prefix 137 #test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 138 #for dir in prefix exec_prefix bindir sbindir libexecdir \ 139 # datadir sysconfdir sharedstatedir localstatedir libdir \ 140 # includedir oldincludedir infodir mandir; do 141 # eval "dir_value=\$$dir" 142 # cat >> ./conftest.mk << EXPLPATHEOT 143 #$dir=$dir_value 144 #explicit_$dir: 145 # @ echo \$($dir) 146 # @ if echo \$($dir) | grep '^/'; \\ 147 # then echo \$($dir) > ./conftest.dir; \\ 148 # else echo \`pwd\`/\$($dir) > ./conftest.dir; fi 149 #EXPLPATHEOT 150 #done 151 #prefix="$save_prefix" 152 #exec_prefix="$save_exec_prefix" 160 153 161 154 # generate the explicit paths 162 make >&5 2>&1 -f ./conftest.mk explicit_datadir163 explicit_datadir=`cat ./conftest.dir`164 make >&5 2>&1 -f ./conftest.mk explicit_libdir165 explicit_libdir=`cat ./conftest.dir`166 make >&5 2>&1 -f ./conftest.mk explicit_includedir167 explicit_includedir=`cat ./conftest.dir`155 #make >&5 2>&1 -f ./conftest.mk explicit_datadir 156 #explicit_datadir=`cat ./conftest.dir` 157 #make >&5 2>&1 -f ./conftest.mk explicit_libdir 158 #explicit_libdir=`cat ./conftest.dir` 159 #make >&5 2>&1 -f ./conftest.mk explicit_includedir 160 #explicit_includedir=`cat ./conftest.dir` 168 161 169 162 # clean up 170 rm -f ./conftest.mk ./conftest.dir171 172 AC_MSG_RESULT(done)163 #rm -f ./conftest.mk ./conftest.dir 164 165 #AC_MSG_RESULT(done) 173 166 174 167 # … … 231 224 # use C to check compiler characteristics instead of C++. On 232 225 # nextstep, checking with C++ may fail. 233 AC_LANG_C226 # AC_LANG_C 234 227 235 228 # cross-compiling ?! … … 251 244 # note that Singular has its own mechanism to search the tables, 252 245 # hence we do not need to mind it here 253 gftabledir='${datadir}/factory/gftables'254 explicit_gftabledir="$explicit_datadir/gftables"246 #gftabledir='${datadir}/factory/gftables' 247 #explicit_gftabledir="$explicit_datadir/gftables" 255 248 256 249 # for installation of the templates 257 templatedir='${includedir}/templates'250 #templatedir='${includedir}/templates' 258 251 259 252 # 260 253 # - the name of the game and the targets to create. 261 254 # 262 if test "x$with_Singular" = xyes; then263 libfactory=libfactory.a264 265 factorysrc='$(basefactorysrc) $(singfactorysrc)'266 factoryincl='$(basefactoryincl) $(singfactoryincl)'267 268 alltargets=cf269 installtargets=installcf270 uninstalltargets=uninstallcf271 else272 libfactory=libcf.a273 274 factorysrc='$(basefactorysrc)'275 factoryincl='$(basefactoryincl)'276 277 alltargets=cf278 installtargets=installcf279 uninstalltargets=uninstallcf280 fi255 #if test "x$with_Singular" = xyes; then 256 # libfactory=libfactory.a 257 # 258 # factorysrc='$(basefactorysrc) $(singfactorysrc)' 259 # factoryincl='$(basefactoryincl) $(singfactoryincl)' 260 # 261 # alltargets=cf 262 # installtargets=installcf 263 # uninstalltargets=uninstallcf 264 #else 265 # libfactory=libcf.a 266 # 267 # factorysrc='$(basefactorysrc)' 268 # factoryincl='$(basefactoryincl)' 269 # 270 # alltargets=cf 271 # installtargets=installcf 272 # uninstalltargets=uninstallcf 273 #fi 281 274 282 275 # … … 284 277 # 285 278 286 # CFLAGS287 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then288 CFLAGS=""289 fi279 ## CFLAGS 280 #if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 281 # CFLAGS="" 282 #fi 290 283 291 284 # CXXFLAGS 292 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then293 CXXFLAGS=""294 295 AC_LANG_SAVE296 AC_LANG_CPLUSPLUS285 #if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 286 # CXXFLAGS="" 287 # 288 #AC_LANG_SAVE 289 #AC_LANG_CPLUSPLUS 297 290 # check whether CXX accepts -fno-rtti 298 AC_MSG_CHECKING(whether gcc accepts -fno-rtti) 299 tmp_flags=${CXXFLAGS} 300 CXXFLAGS="${CXXFLAGS}" 301 AC_CACHE_VAL(ac_cv_cxx_have_rtti, 302 AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no) 303 ) 304 AC_MSG_RESULT(${ac_cv_cxx_have_rtti}) 305 CXXFLAGS=$tmp_flags 306 if test "${ac_cv_cxx_have_rtti}" = yes; then 307 CXXFLAGS="$CXXFLAGS" 308 fi 309 310 AC_MSG_CHECKING(whether gcc accepts -fno-exceptions) 311 tmp_flags=${CXXFLAGS} 312 CXXFLAGS="${CXXFLAGS} -fno-exceptions" 313 AC_CACHE_VAL(ac_cv_cxx_have_exceptions, 314 AC_TRY_LINK(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no) 315 ) 316 AC_MSG_RESULT(${ac_cv_cxx_have_exceptions}) 317 CXXFLAGS=$tmp_flags 318 if test "${ac_cv_cxx_have_exceptions}" = yes; then 319 CXXFLAGS="$CXXFLAGS -fno-exceptions" 320 fi 321 AC_LANG_RESTORE 322 323 fi 291 #AC_MSG_CHECKING(whether gcc accepts -fno-rtti) 292 #tmp_flags=${CXXFLAGS} 293 #CXXFLAGS="${CXXFLAGS}" 294 #AC_CACHE_VAL(ac_cv_cxx_have_rtti, 295 #AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no) 296 #) 297 #AC_MSG_RESULT(${ac_cv_cxx_have_rtti}) 298 #CXXFLAGS=$tmp_flags 299 #if test "${ac_cv_cxx_have_rtti}" = yes; then 300 #CXXFLAGS="$CXXFLAGS" 301 #fi 302 #AC_MSG_CHECKING(whether gcc accepts -fno-exceptions) 303 #tmp_flags=${CXXFLAGS} 304 #CXXFLAGS="${CXXFLAGS} -fno-exceptions" 305 #AC_CACHE_VAL(ac_cv_cxx_have_exceptions, 306 #AC_TRY_LINK(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no) 307 #) 308 #AC_MSG_RESULT(${ac_cv_cxx_have_exceptions}) 309 #CXXFLAGS=$tmp_flags 310 #if test "${ac_cv_cxx_have_exceptions}" = yes; then 311 #CXXFLAGS="$CXXFLAGS -fno-exceptions" 312 #fi 313 #AC_LANG_RESTORE 314 # 315 #fi 324 316 325 317 # ARFLAGS 326 test "${ARFLAGS+set}" = set || ARFLAGS=cr318 #test "${ARFLAGS+set}" = set || ARFLAGS=cr 327 319 328 320 # M4FLAGS 329 test "${M4FLAGS+set}" = set || M4FLAGS=321 #test "${M4FLAGS+set}" = set || M4FLAGS= 330 322 331 323 AH_TEMPLATE([SINGULAR], [define if linked to Singular]) … … 371 363 CPPFLAGS="$CPPFLAGS_save" 372 364 373 OMALLOC_G_LDADD="-lresources_g -lomalloc_g"365 # OMALLOC_G_LDADD="-lresources_g -lomalloc_g" 374 366 OMALLOC_R_LDADD="-lresources -lomalloc" 375 367 … … 379 371 AC_SUBST(OMALLOC_LDFLAGS) 380 372 381 AC_SUBST(OMALLOC_G_LDADD)373 # AC_SUBST(OMALLOC_G_LDADD) 382 374 AC_SUBST(OMALLOC_R_LDADD) 383 375 else … … 400 392 if test "x$enable_streamio" = xno; then 401 393 AC_DEFINE([NOSTREAMIO],[1]) 402 else403 factorysrc="$factorysrc \$(useiofactorysrc)"404 factoryincl="$factoryincl \$(useiofactoryincl)"394 #else 395 # factorysrc="$factorysrc \$(useiofactorysrc)" 396 # factoryincl="$factoryincl \$(useiofactoryincl)" 405 397 fi 406 398 … … 426 418 # - complete and substitute variables, defines. 427 419 # 428 AC_SUBST(gftabledir) 429 AC_SUBST(templatedir) 430 420 #AC_SUBST(gftabledir) 421 #AC_SUBST(templatedir) 422 423 424 425 # AC_SUBST(libfactory) 426 427 #AC_SUBST(ARFLAGS) 428 #AC_SUBST(M4FLAGS) 429 430 AC_SUBST(MAKEHEADERFLAGS) 431 432 #AC_SUBST(factorysrc) 433 #AC_SUBST(factoryincl) 434 435 #AC_SUBST(alltargets) 436 #AC_SUBST(installtargets) 437 #AC_SUBST(uninstalltargets) 438 439 factory_version="3.1.3" 440 factory_configuration="'$ac_configure_args' in `pwd`" 431 441 AC_SUBST(factory_version) 432 433 AC_SUBST(libfactory)434 435 AC_SUBST(ARFLAGS)436 AC_SUBST(M4FLAGS)437 AC_SUBST(MAKEHEADERFLAGS)438 439 AC_SUBST(factorysrc)440 AC_SUBST(factoryincl)441 442 AC_SUBST(alltargets)443 AC_SUBST(installtargets)444 AC_SUBST(uninstalltargets)445 442 446 443 AH_TEMPLATE([FACTORYVERSION], [factory version]) … … 453 450 AC_DEFINE_UNQUOTED([FACTORYCONFIGURATION], "$factory_configuration") 454 451 455 AH_TEMPLATE([GFTABLEDIR], [where the gftables live]) 456 AC_DEFINE_UNQUOTED([GFTABLEDIR], "$explicit_gftabledir") 452 #AH_TEMPLATE([GFTABLEDIR], [where the gftables live]) 453 #AC_DEFINE_UNQUOTED([GFTABLEDIR], "$explicit_gftabledir") 454 455 457 456 458 457 AM_CONDITIONAL(
Note: See TracChangeset
for help on using the changeset viewer.