[6afd7c] | 1 | dnl Process this file with autoconf to produce a configure script |
---|
| 2 | AC_INIT(Singular/matpol.h) |
---|
| 3 | AC_PREFIX_DEFAULT(`pwd`) |
---|
| 4 | |
---|
[ebe3e8] | 5 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 6 | dnl Version business -- should be the same as in Singular subdir |
---|
| 7 | dnl |
---|
| 8 | SINGULAR_MAJOR_VERSION=1 |
---|
| 9 | SINGULAR_MINOR_VERSION=1 |
---|
[a38f5ea] | 10 | SINGULAR_SUB_VERSION=8 |
---|
| 11 | VERSION_DATE="April 1998" |
---|
[ebe3e8] | 12 | AC_SUBST(SINGULAR_MAJOR_VERSION) |
---|
| 13 | AC_SUBST(SINGULAR_MINOR_VERSION) |
---|
| 14 | AC_SUBST(SINGULAR_SUB_VERSION) |
---|
| 15 | |
---|
[4c001a] | 16 | AC_CANONICAL_HOST |
---|
| 17 | AC_SUBST(host) |
---|
[6afd7c] | 18 | |
---|
| 19 | |
---|
| 20 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 21 | dnl those are needed to check for libs and headers, later on |
---|
| 22 | dnl |
---|
| 23 | AC_PROG_CC |
---|
| 24 | AC_PROG_CPP |
---|
| 25 | AC_AIX |
---|
| 26 | |
---|
| 27 | dnl and add to -I to CPPFLAGS and and -Lto LDFLAGS, just to be sure |
---|
| 28 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
| 29 | if test "x$exec_prefix" = xNONE; then |
---|
| 30 | if test "x$prefix" = xNONE; then |
---|
| 31 | LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}" |
---|
[5615cd9] | 32 | ac_configure_args="$ac_configure_args --libdir=${ac_default_prefix}/lib" |
---|
[6afd7c] | 33 | else |
---|
| 34 | LDFLAGS="-L${prefix}/lib ${LDFLAGS}" |
---|
[5615cd9] | 35 | ac_configure_args="$ac_configure_args --libdir=${prefix}/lib" |
---|
[6afd7c] | 36 | fi |
---|
| 37 | else |
---|
| 38 | LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" |
---|
[5615cd9] | 39 | ac_configure_args="$ac_configure_args --libdir=${exec_prefix}/lib" |
---|
[6afd7c] | 40 | fi |
---|
| 41 | else |
---|
| 42 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
| 43 | fi |
---|
| 44 | |
---|
| 45 | if test "$includedir" = '${prefix}/include'; then |
---|
| 46 | if test "x$prefix" = xNONE; then |
---|
| 47 | CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}" |
---|
[5615cd9] | 48 | ac_configure_args="$ac_configure_args --includedir=${ac_default_prefix}/include" |
---|
[6afd7c] | 49 | else |
---|
| 50 | CPPFLAGS="-I${prefix}/include ${CPPFLAGS}" |
---|
[5615cd9] | 51 | ac_configure_args="$ac_configure_args --includedir=${prefix}/include" |
---|
[6afd7c] | 52 | fi |
---|
| 53 | else |
---|
| 54 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
| 55 | fi |
---|
| 56 | |
---|
| 57 | dnl pass default prefix on to subdirs, if not explicitely given as an option |
---|
| 58 | if test "x$prefix" = xNONE; then |
---|
| 59 | ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix" |
---|
| 60 | fi |
---|
| 61 | |
---|
[dc32d42] | 62 | AC_MSG_CHECKING(whether _AIX is defined) |
---|
| 63 | AC_CACHE_VAL(ac_cv_is_aix, |
---|
| 64 | AC_EGREP_CPP(yes, |
---|
| 65 | [#ifdef _AIX |
---|
| 66 | yes |
---|
| 67 | #endif |
---|
| 68 | ], ac_cv_is_aix=yes, ac_cv_is_aix=no, 1)) |
---|
| 69 | if test "$ac_cv_is_aix" = yes; then |
---|
| 70 | AC_MSG_RESULT(yes) |
---|
| 71 | else |
---|
| 72 | AC_MSG_RESULT(no) |
---|
| 73 | fi |
---|
[6afd7c] | 74 | |
---|
| 75 | |
---|
| 76 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 77 | dnl check for various libraries and headers |
---|
| 78 | dnl |
---|
| 79 | AC_CHECK_LIB(m, atof) |
---|
[4dea87] | 80 | AC_CHECK_LIB(bsd, socket) |
---|
| 81 | AC_CHECK_LIB(socket, listen) |
---|
| 82 | AC_CHECK_LIB(nsl, gethostbyname) |
---|
[78364c] | 83 | AC_CHECK_LIB(gmp, mpq_init) |
---|
| 84 | AC_CHECK_LIB(smallgmp, mpz_init) |
---|
[6afd7c] | 85 | AC_CHECK_LIB(MP, IMP_PutGmpInt) |
---|
| 86 | AC_CHECK_LIB(MPT, MPT_GetTree) |
---|
| 87 | AC_CHECK_LIB(singcf, atof) |
---|
| 88 | AC_CHECK_LIB(singfac, atof) |
---|
| 89 | |
---|
[78364c] | 90 | AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h MPT.h factory.h factor.h) |
---|
[6afd7c] | 91 | |
---|
[78364c] | 92 | if test "$ac_cv_lib_gmp_mpq_init" = yes && \ |
---|
[6afd7c] | 93 | test "$ac_cv_header_gmp_h" = yes; then |
---|
| 94 | ac_gmp_ok=yes |
---|
| 95 | fi |
---|
| 96 | |
---|
[78364c] | 97 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
| 98 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
| 99 | test "$ac_cv_header_gmp_h" = yes; then |
---|
| 100 | ac_smallgmp_ok=yes |
---|
| 101 | fi |
---|
| 102 | |
---|
[6afd7c] | 103 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
| 104 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
| 105 | test "$ac_cv_header_MP_h" = yes && \ |
---|
| 106 | test "$ac_cv_header_MPT_h" = yes; then |
---|
| 107 | ac_MP_ok=yes |
---|
| 108 | fi |
---|
| 109 | |
---|
[4c001a] | 110 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
[6afd7c] | 111 | test "$ac_cv_header_factory_h" = yes; then |
---|
| 112 | ac_factory_ok=yes |
---|
| 113 | fi |
---|
| 114 | |
---|
[4c001a] | 115 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
[6afd7c] | 116 | test "$ac_cv_header_factor_h" = yes; then |
---|
| 117 | ac_libfac_ok=yes |
---|
| 118 | fi |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 123 | dnl Check whether or not to built various packages |
---|
| 124 | dnl |
---|
[78364c] | 125 | AC_ARG_ENABLE(smallgmp, \ |
---|
[6afd7c] | 126 | [ --enable-PACKAGE configure and build PACKAGE |
---|
| 127 | --disable-PACKAGE do not configure and build PACKAGE |
---|
| 128 | where PACKAGE can be: |
---|
[78364c] | 129 | smallgmp minimal version of gmp written in C only]) |
---|
[6afd7c] | 130 | AC_ARG_ENABLE(MP, \ |
---|
| 131 | [ MP Multi Protocol library]) |
---|
| 132 | AC_ARG_ENABLE(factory, \ |
---|
| 133 | [ factory polynomial factorization library]) |
---|
| 134 | AC_ARG_ENABLE(libfac, \ |
---|
| 135 | [ libfac char set and modp poly factorization library]) |
---|
[a04715] | 136 | AC_ARG_ENABLE(sgroup, \ |
---|
| 137 | [ sgroup numerical semigroup computations]) |
---|
[6afd7c] | 138 | AC_ARG_ENABLE(Singular, \ |
---|
[78364c] | 139 | [ Singular CAS for commutative algebra]) |
---|
[6afd7c] | 140 | |
---|
[78364c] | 141 | AC_ARG_WITH(MP,\ |
---|
| 142 | [ --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
| 143 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
| 144 | where PACKAGE can be: |
---|
[9f226d] | 145 | MP Multi Protocol library]) |
---|
[78364c] | 146 | AC_ARG_WITH(factory, \ |
---|
| 147 | [ factory polynomial factorization library]) |
---|
| 148 | AC_ARG_WITH(libfac, \ |
---|
| 149 | [ libfac char set and modp poly factorization library]) |
---|
| 150 | AC_ARG_WITH(gmp, \ |
---|
| 151 | [ --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
| 152 | where PACKAGE can be gmp, smallgmp, or buildin]) |
---|
| 153 | |
---|
| 154 | AC_MSG_CHECKING(whether to configure and build smallgmp lib) |
---|
| 155 | if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then |
---|
| 156 | if test "$ac_smallgmp_ok" != yes && \ |
---|
| 157 | test "$ac_gmp_ok" != yes && \ |
---|
| 158 | (test "$with_apint" = smallgmp || test "${with_apint+set}" != set); then |
---|
| 159 | enable_smallgmp=yes |
---|
[6afd7c] | 160 | else |
---|
[78364c] | 161 | enable_smallgmp=no |
---|
[6afd7c] | 162 | fi |
---|
| 163 | fi |
---|
[78364c] | 164 | if test "$enable_smallgmp" = yes && test -d smallgmp; then |
---|
| 165 | AC_MSG_RESULT(yes) |
---|
| 166 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
| 167 | enable_smallgmp=yes |
---|
| 168 | ac_will_have_gmp=yes |
---|
[6afd7c] | 169 | else |
---|
| 170 | AC_MSG_RESULT(no) |
---|
[78364c] | 171 | if test "$enable_smallgmp" = yes && test ! -d smallgmp; then |
---|
| 172 | AC_MSG_WARN(Did not find smallgmp subdir) |
---|
[6afd7c] | 173 | fi |
---|
[78364c] | 174 | enable_smallgmp=no |
---|
| 175 | fi |
---|
| 176 | if test "$ac_gmp_ok" != yes && \ |
---|
| 177 | test "$ac_smallgmp_ok" != yes && \ |
---|
| 178 | test "$enable_smallgmp" != yes; then |
---|
| 179 | AC_MSG_WARN(Would rather have gmp or smallgmp to build libs and Singular) |
---|
| 180 | ac_configure_args="$ac_configure_args --disable-gmp" |
---|
| 181 | else |
---|
| 182 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[6afd7c] | 183 | fi |
---|
| 184 | |
---|
| 185 | AC_MSG_CHECKING(whether to configure and build MP lib) |
---|
| 186 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
| 187 | if test "$with_MP" != no && test "$ac_MP_ok" != yes; then |
---|
| 188 | enable_MP=yes |
---|
| 189 | else |
---|
| 190 | enable_MP=no |
---|
| 191 | fi |
---|
| 192 | fi |
---|
| 193 | if test "$enable_MP" = yes && test -d MP; then |
---|
[78364c] | 194 | if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
[dc32d42] | 195 | AC_MSG_RESULT(yes) |
---|
| 196 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 197 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
| 198 | else |
---|
| 199 | AC_MSG_RESULT(no) |
---|
[78364c] | 200 | AC_MSG_WARN(Can not build MP without having gmp) |
---|
| 201 | enabl_MP=no |
---|
[dc32d42] | 202 | ac_configure_args="$ac_configure_args --disable-MP" |
---|
| 203 | fi |
---|
[6afd7c] | 204 | else |
---|
| 205 | AC_MSG_RESULT(no) |
---|
| 206 | if test "$enable_MP" = yes && test ! -d MP; then |
---|
| 207 | AC_MSG_WARN(Did not find MP subdirectory) |
---|
| 208 | fi |
---|
| 209 | enable_MP=no |
---|
| 210 | ac_configure_args="$ac_configure_args --disable-MP" |
---|
| 211 | fi |
---|
| 212 | |
---|
| 213 | AC_MSG_CHECKING(whether to configure and build factory lib) |
---|
| 214 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
| 215 | if test "$with_factory" != no && test "$ac_factory_ok" != yes; then |
---|
| 216 | enable_factory=yes |
---|
| 217 | else |
---|
| 218 | enable_factory=no |
---|
| 219 | fi |
---|
| 220 | fi |
---|
| 221 | if test "$enable_factory" = yes && test -d factory; then |
---|
[78364c] | 222 | if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
| 223 | AC_MSG_RESULT(yes) |
---|
| 224 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
| 225 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
[dc32d42] | 226 | else |
---|
| 227 | AC_MSG_RESULT(no) |
---|
| 228 | AC_MSG_WARN(Can not build factory without having gmp) |
---|
| 229 | enable_factory=no |
---|
| 230 | ac_configure_args="$ac_configure_args --disable-factory" |
---|
| 231 | fi |
---|
[6afd7c] | 232 | else |
---|
| 233 | AC_MSG_RESULT(no) |
---|
| 234 | if test "$enable_factory" = yes && test ! -d factory; then |
---|
| 235 | AC_MSG_WARN(Did not find factory subdirectory) |
---|
| 236 | fi |
---|
| 237 | enable_factory=no |
---|
| 238 | ac_configure_args="$ac_configure_args --disable-factory" |
---|
| 239 | fi |
---|
| 240 | |
---|
| 241 | AC_MSG_CHECKING(whether to configure and build libfac lib) |
---|
| 242 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
| 243 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes; then |
---|
| 244 | enable_libfac=yes |
---|
| 245 | else |
---|
| 246 | enable_libfac=no |
---|
| 247 | fi |
---|
| 248 | fi |
---|
| 249 | if test "$enable_libfac" = yes && test -d libfac; then |
---|
[dc32d42] | 250 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[6afd7c] | 251 | AC_MSG_RESULT(yes) |
---|
| 252 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
| 253 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
[dc32d42] | 254 | else |
---|
| 255 | AC_MSG_RESULT(no) |
---|
| 256 | AC_MSG_WARN(Can not build libfac without factory) |
---|
| 257 | enable_libfac=no |
---|
| 258 | ac_configure_args="$ac_configure_args --disable-libfac" |
---|
| 259 | fi |
---|
[6afd7c] | 260 | else |
---|
| 261 | AC_MSG_RESULT(no) |
---|
| 262 | if test "$enable_libfac" = yes && test ! -d libfac; then |
---|
| 263 | AC_MSG_WARN(Did not find libfac subdirectory) |
---|
| 264 | fi |
---|
| 265 | enable_libfac=no |
---|
| 266 | ac_configure_args="$ac_configure_args --disable-libfac" |
---|
| 267 | fi |
---|
| 268 | |
---|
[a04715] | 269 | AC_MSG_CHECKING(whether to configure and build sgroup) |
---|
| 270 | if test "$enable_sgroup" != no; then |
---|
| 271 | enable_sgroup=yes |
---|
| 272 | fi |
---|
| 273 | |
---|
| 274 | if test "$enable_sgroup" = yes && test -d sgroup; then |
---|
| 275 | if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
| 276 | if test "$enable_MP" != no || test "$ac_MP_ok" = yes; then |
---|
| 277 | AC_MSG_RESULT(yes) |
---|
| 278 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
| 279 | ac_configure_args="$ac_configure_args --enable-sgroup" |
---|
| 280 | else |
---|
| 281 | AC_MSG_RESULT(no) |
---|
| 282 | AC_MSG_WARN(Can not build sgroup without having MP) |
---|
| 283 | enable_sgroup=no |
---|
| 284 | ac_configure_args="$ac_configure_args --disable-sgroup" |
---|
| 285 | fi |
---|
| 286 | else |
---|
| 287 | AC_MSG_RESULT(no) |
---|
| 288 | AC_MSG_WARN(Can not build sgroup without having gmp) |
---|
| 289 | enable_sgroup=no |
---|
| 290 | ac_configure_args="$ac_configure_args --disable-sgroup" |
---|
| 291 | fi |
---|
| 292 | else |
---|
| 293 | AC_MSG_RESULT(no) |
---|
| 294 | if test "$enable_sgroup" = yes && test ! -d sgroup; then |
---|
| 295 | AC_MSG_WARN(Did not find sgroup subdirectory) |
---|
| 296 | fi |
---|
| 297 | enable_sgroup=no |
---|
| 298 | ac_configure_args="$ac_configure_args --disable-sgroup" |
---|
| 299 | fi |
---|
| 300 | |
---|
[6afd7c] | 301 | AC_MSG_CHECKING(whether to configure and build Singular) |
---|
| 302 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
[dc32d42] | 303 | if test "$with_Singular" != no; then |
---|
[6afd7c] | 304 | enable_Singular=yes |
---|
| 305 | else |
---|
| 306 | enable_Singular=no |
---|
| 307 | fi |
---|
| 308 | fi |
---|
| 309 | if test "$enable_Singular" = yes && test -d Singular; then |
---|
| 310 | AC_MSG_RESULT(yes) |
---|
| 311 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
| 312 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
| 313 | else |
---|
| 314 | AC_MSG_RESULT(no) |
---|
| 315 | if test "$enable_Singular" = yes && test ! -d Singular; then |
---|
| 316 | AC_MSG_WARN(Did not find Singular subdirectory) |
---|
| 317 | fi |
---|
| 318 | enable_Singular=no |
---|
| 319 | ac_configure_args="$ac_configure_args --disable-Singular" |
---|
| 320 | fi |
---|
| 321 | |
---|
| 322 | |
---|
| 323 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 324 | dnl Check whether or not to use various packages |
---|
| 325 | dnl |
---|
[78364c] | 326 | AC_MSG_CHECKING(wich apint package to use) |
---|
| 327 | if test "$with_apint" != gmp && \ |
---|
| 328 | test "$with_apint" != smallgmp && \ |
---|
| 329 | test "$with_apint" != buildin; then |
---|
| 330 | if test "$ac_gmp_ok" = yes; then |
---|
| 331 | with_apint=gmp |
---|
| 332 | elif test "$ac_enable_smallgmp" = yes; then |
---|
| 333 | with_apint=smallgmp |
---|
| 334 | else |
---|
| 335 | with_apint=buildin |
---|
| 336 | fi |
---|
| 337 | ac_configure_args="$ac_configure_args --with-apint=$with_apint" |
---|
| 338 | fi |
---|
| 339 | AC_MSG_RESULT(${with_apint}) |
---|
[6afd7c] | 340 | |
---|
[dc32d42] | 341 | AC_MSG_CHECKING(whether to use with MP) |
---|
| 342 | if test "$with_MP" != no && test "$with_MP" != yes; then |
---|
| 343 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
| 344 | with_MP=yes |
---|
[6afd7c] | 345 | else |
---|
| 346 | with_MP=no |
---|
| 347 | fi |
---|
[dc32d42] | 348 | ac_configure_args="$ac_configure_args --with-MP=$with_MP" |
---|
[6afd7c] | 349 | fi |
---|
[dc32d42] | 350 | if test "$with_MP" = yes; then |
---|
[6afd7c] | 351 | AC_MSG_RESULT(yes) |
---|
| 352 | else |
---|
| 353 | AC_MSG_RESULT(no) |
---|
| 354 | fi |
---|
| 355 | |
---|
[78364c] | 356 | if test "$enable_MP" = yes; then |
---|
| 357 | if test "${with_apint}" = smallgmp; then |
---|
| 358 | ac_configure_args="$ac_configure_args --with-default_apreal=none" |
---|
| 359 | elif test "${with_apint}" = buildin; then |
---|
| 360 | ac_configure_args="$ac_configure_args --with-default_apreal=none --with-default-apint=none" |
---|
| 361 | fi |
---|
| 362 | fi |
---|
| 363 | |
---|
[dc32d42] | 364 | AC_MSG_CHECKING(whether to use with factory) |
---|
| 365 | if test "$with_factory" != no && test "$with_factory" != yes; then |
---|
| 366 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
| 367 | with_factory=yes |
---|
[6afd7c] | 368 | else |
---|
| 369 | with_factory=no |
---|
| 370 | fi |
---|
[dc32d42] | 371 | ac_configure_args="$ac_configure_args --with-factory=$with_factory" |
---|
[6afd7c] | 372 | fi |
---|
[dc32d42] | 373 | if test "$with_factory" = yes; then |
---|
[6afd7c] | 374 | AC_MSG_RESULT(yes) |
---|
| 375 | else |
---|
| 376 | AC_MSG_RESULT(no) |
---|
| 377 | fi |
---|
[dc32d42] | 378 | |
---|
| 379 | AC_MSG_CHECKING(whether to use with libfac) |
---|
| 380 | if test "$with_libfac" != no && test "$with_libfac" != yes; then |
---|
| 381 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
| 382 | with_libfac=yes |
---|
[6afd7c] | 383 | else |
---|
| 384 | with_libfac=no |
---|
| 385 | fi |
---|
[dc32d42] | 386 | ac_configure_args="$ac_configure_args --with-libfac=$with_libfac" |
---|
[6afd7c] | 387 | fi |
---|
[dc32d42] | 388 | if test "$with_libfac" = yes; then |
---|
[6afd7c] | 389 | AC_MSG_RESULT(yes) |
---|
| 390 | else |
---|
| 391 | AC_MSG_RESULT(no) |
---|
| 392 | fi |
---|
| 393 | |
---|
[dc32d42] | 394 | AC_MSG_CHECKING(whether to use with Singular) |
---|
| 395 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
[6afd7c] | 396 | if test "$enable_Singular" = yes; then |
---|
[dc32d42] | 397 | with_Singular=yes |
---|
[6afd7c] | 398 | else |
---|
| 399 | with_Singular=no |
---|
| 400 | fi |
---|
[dc32d42] | 401 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
[6afd7c] | 402 | fi |
---|
[dc32d42] | 403 | |
---|
[6afd7c] | 404 | if test "$with_Singular" != no; then |
---|
| 405 | AC_MSG_RESULT(yes) |
---|
| 406 | else |
---|
| 407 | AC_MSG_RESULT(no) |
---|
| 408 | fi |
---|
| 409 | |
---|
| 410 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 411 | dnl Check for known subdirs |
---|
| 412 | dnl |
---|
[78364c] | 413 | if test -d smallgmp; then |
---|
| 414 | SUBDIRS="smallgmp" |
---|
[6afd7c] | 415 | fi |
---|
| 416 | if test -d MP; then |
---|
| 417 | SUBDIRS="$SUBDIRS MP" |
---|
| 418 | fi |
---|
| 419 | if test -d factory; then |
---|
| 420 | SUBDIRS="$SUBDIRS factory" |
---|
| 421 | fi |
---|
| 422 | if test -d libfac; then |
---|
| 423 | SUBDIRS="$SUBDIRS libfac" |
---|
| 424 | fi |
---|
| 425 | if test -d Singular; then |
---|
| 426 | SUBDIRS="$SUBDIRS Singular" |
---|
| 427 | fi |
---|
| 428 | |
---|
| 429 | |
---|
| 430 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 431 | dnl Enough --wrap it up |
---|
| 432 | dnl |
---|
| 433 | AC_PROG_MAKE_SET |
---|
| 434 | AC_SUBST(SUBDIRS) |
---|
| 435 | AC_SUBST(CONFIG_SUBDIRS) |
---|
| 436 | AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS) |
---|
| 437 | |
---|
| 438 | AC_OUTPUT(Makefile) |
---|