Changeset 180 for trunk/configure.in
- Timestamp:
- 28/04/07 23:56:58 (19 months ago)
- Files:
-
- 1 modified
-
trunk/configure.in (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r177 r180 29 29 dnl basic tools 30 30 AC_PROG_CC 31 AM_PROG_CC_C_O 31 32 AC_PROG_MAKE_SET 32 33 … … 328 329 AC_MSG_CHECKING([if user wants MySQL support]) 329 330 AC_ARG_ENABLE([mysql], 330 AC_HELP_STRING([--enable-mysql], [enable MySQL auth reg/storage support (no)]),331 AC_HELP_STRING([--enable-mysql], [enable MySQL auth/reg/storage support (no)]), 331 332 [enable_mysql=$enableval have_mysql=no], 332 333 [enable_mysql=no have_mysql=no]) … … 368 369 AC_MSG_CHECKING([if user wants PostgreSQL support]) 369 370 AC_ARG_ENABLE([pgsql], 370 AC_HELP_STRING([--enable-pgsql], [enable PostgreSQL auth reg/storage support (no)]),371 AC_HELP_STRING([--enable-pgsql], [enable PostgreSQL auth/reg/storage support (no)]), 371 372 [enable_pgsql=$enableval have_pgsql=no], 372 373 [enable_pgsql=no have_pgsql=no]) … … 409 410 AC_MSG_CHECKING([if user wants SQLite3 support]) 410 411 AC_ARG_ENABLE([sqlite], 411 AS_HELP_STRING([--enable-sqlite], [enable SQLite3 auth reg/storage support (no)]),412 AS_HELP_STRING([--enable-sqlite], [enable SQLite3 auth/reg/storage support (no)]), 412 413 [enable_sqlite=$enableval have_sqlite=no], 413 414 [enable_sqlite=no have_sqlite=no]) … … 430 431 431 432 dnl berkeley db 432 AC_ARG_ENABLE(db, AC_HELP_STRING([--enable-db], [enable Berkeley DB auth reg/storage support (no)]),433 AC_ARG_ENABLE(db, AC_HELP_STRING([--enable-db], [enable Berkeley DB auth/reg/storage support (no)]), 433 434 want_db=$enableval, want_db=no) 434 435 if test "x-$want_db" = "x-yes" ; then … … 466 467 AC_MSG_ERROR([Berkeley DB >= 4.1.24 not found]) 467 468 else 468 AC_DEFINE(STORAGE_DB,1,[Define to 1 if you want to use Berkeley DB for authreg/storage.]) 469 fi 470 fi 469 DB_LIBS="-l$lib" 470 AC_DEFINE(STORAGE_DB,1,[Define to 1 if you want to use Berkeley DB for auth/reg/storage.]) 471 fi 472 fi 473 AC_SUBST(DB_LIBS) 474 AM_CONDITIONAL(STORAGE_DB, [test "x-$have_db_version" = "x-yes"]) 471 475 472 476 … … 495 499 AC_MSG_RESULT(no)) 496 500 fi 497 if test "x-$ want_ldap" = "x-yes" -a "x-$have_ldap_version" = "x-" ; then501 if test "x-$have_ldap_version" = "x-" ; then 498 502 AC_MSG_ERROR([OpenLDAP client libraries >= 2.1.0 not found]) 499 503 else 504 LDAP_LIBS="-llber -lldap" 500 505 AC_DEFINE(STORAGE_LDAP,1,[Define to 1 if you want to use OpenLDAP for auth/reg.]) 501 506 fi 502 507 fi 508 AC_SUBST(LDAP_LIBS) 509 AM_CONDITIONAL(STORAGE_LDAP, [test "x-$have_ldap_version" = "x-yes"]) 503 510 504 511 … … 514 521 AC_MSG_ERROR([PAM application libraries not found]) 515 522 else 523 have_pam="yes" 524 PAM_LIBS="-lpam" 516 525 AC_DEFINE(STORAGE_PAM,1,[Define to 1 if you want to use PAM for auth/reg.]) 517 526 fi 518 527 fi 528 AC_SUBST(PAM_LIBS) 529 AM_CONDITIONAL(STORAGE_PAM, [test "x-$have_pam" = "x-yes"]) 519 530 520 531 … … 532 543 AC_MSG_ERROR([Pipe auth/reg requirements (sys/wait.h, fork(), pipe(), wait()) not found]) 533 544 else 545 have_pipe="yes" 534 546 AC_DEFINE(STORAGE_PIPE,1,[Define to 1 if you want to use pipes for auth/reg.]) 535 547 fi 536 548 fi 549 AM_CONDITIONAL(STORAGE_PIPE, [test "x-$have_pipe" = "x-yes"]) 537 550 538 551 … … 543 556 AC_DEFINE(STORAGE_ANON,1,[Define to 1 if you want anonymous auth.]) 544 557 fi 558 AM_CONDITIONAL(STORAGE_ANON, [test "x-$want_anon" = "x-yes"]) 545 559 546 560 … … 551 565 AC_DEFINE(STORAGE_FS,1,[Define to 1 if you want to use the filesystem for storage.]) 552 566 fi 567 AM_CONDITIONAL(STORAGE_FS, [test "x-$want_fs" = "x-yes"]) 568 553 569 554 570 dnl Oracle … … 557 573 [ ac_oracle_home="$withval" ]) 558 574 559 AC_ARG_ENABLE(oracle, AC_HELP_STRING([--enable-oracle], [enable Oracle auth reg/storage support (no)]),575 AC_ARG_ENABLE(oracle, AC_HELP_STRING([--enable-oracle], [enable Oracle auth/reg/storage support (no)]), 560 576 want_oracle=$enableval, want_oracle=no) 561 577 if test "x-$want_oracle" = "x-yes" ; then … … 578 594 CPPFLAGS="$save_cppflags" 579 595 LIBS="$save_libs" 580 LDFLAGS="$save_ldflags"596 LDFLAGS="$save_ldflags" 581 597 fi 582 598 fi … … 588 604 AC_MSG_ERROR([Oracle client libraries not found]) 589 605 else 590 AC_DEFINE(STORAGE_ORACLE,1,[Define to 1 if you want to use Oracle for authreg/storage.]) 591 fi 592 fi 606 have_oracle="yes" 607 ORACLE_CPPFLAGS="-I$ac_oracle_home/rdbms/demo -I$ac_oracle_home/rdbms/public" 608 ORACLE_LIBS="-L$ac_oracle_home/lib" 609 ORACLE_LDFLAGS="-Wl,-rpath,$ac_oracle_home/lib" 610 AC_DEFINE(STORAGE_ORACLE,1,[Define to 1 if you want to use Oracle for auth/reg/storage.]) 611 fi 612 fi 613 AC_SUBST(ORACLE_CPPFLAGS) 614 AC_SUBST(ORACLE_LIBS) 615 AC_SUBST(ORACLE_LDFLAGS) 616 AM_CONDITIONAL(STORAGE_ORACLE, [test "x-$have_pam" = "x-yes"]) 593 617 594 618 … … 821 845 s2s/Makefile \ 822 846 sm/Makefile \ 847 storage/Makefile \ 823 848 Doxyfile)
