Changeset 129 for trunk/configure.ac
- Timestamp:
- Oct 21, 2007, 5:22:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r127 r129 13 13 dnl start 14 14 dnl 15 AM_INIT_AUTOMAKE(samhain, 2.3. 8)15 AM_INIT_AUTOMAKE(samhain, 2.3.7) 16 16 AC_CANONICAL_HOST 17 17 … … 746 746 ) 747 747 748 749 dnl 750 dnl NETWORK OPTIONS 751 dnl 752 AC_ARG_ENABLE(network, 753 [ --enable-network=[[client|server]] compile client or server [[no]]], 754 [ 755 if test "x$enable_network" = xclient; then 756 mytclient="-DSH_WITH_CLIENT" 757 yulectl_prg= 758 setpwd_prg="samhain_setpwd" 759 sh_main_prg="samhain" 760 if test "x${sh_have_gmp}" = xyes 761 then 762 LIBS="-lgmp $LIBS" 763 fi 764 dnl AC_CHECK_HEADER(sys/capability.h, 765 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")], 766 dnl [sh_use_lcaps="no"]) 767 elif test "x$enable_network" = xserver; then 768 mytclient="-DSH_WITH_SERVER" 769 yulectl_prg="yulectl" 770 setpwd_prg="samhain_setpwd" 771 sh_main_prg="yule" 772 if test "x${sh_have_gmp}" = xyes 773 then 774 LIBS="-lgmp $LIBS" 775 fi 776 sh_use_lcaps="undef" 777 elif test "x$enable_network" = xno; then 778 mytclient="-DSH_STANDALONE" 779 yulectl_prg= 780 setpwd_prg= 781 sh_main_prg="samhain" 782 dnl AC_CHECK_HEADER(sys/capability.h, 783 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")], 784 dnl [sh_use_lcaps="no"]) 785 else 786 AC_MSG_ERROR([--enable-network=WHAT: WHAT must be client, server, or no]) 787 fi 788 ], 789 [ 790 mytclient="-DSH_STANDALONE" 791 setpwd_prg= 792 yulectl_prg= 793 sh_main_prg="samhain" 794 dnl AC_CHECK_HEADER(sys/capability.h, 795 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")], 796 dnl [sh_use_lcaps="no"]) 797 ], 798 ) 799 800 if test x"${mytclient}" = x-DSH_STANDALONE -o x"${mytclient}" = x-DSH_WITH_CLIENT; 801 then 802 ACX_PTHREAD 803 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 804 LIBS="$PTHREAD_LIBS $LIBS" 805 CC="$PTHREAD_CC" 806 fi 807 808 AC_SUBST(setpwd_prg) 809 AC_SUBST(yulectl_prg) 810 AC_SUBST(sh_main_prg) 811 AC_SUBST(mytclient) 812 813 # needed for the rpm spec 814 clmytclient=`echo ${mytclient} | sed s%\-%%` 815 AC_SUBST(clmytclient) 748 816 749 817 AC_ARG_ENABLE(static, … … 1427 1495 1428 1496 1429 dnl1430 dnl NETWORK OPTIONS1431 dnl1432 1433 1434 AC_ARG_ENABLE(network,1435 [ --enable-network=[[client|server]] compile client or server [[no]]],1436 [1437 if test "x$enable_network" = xclient; then1438 mytclient="-DSH_WITH_CLIENT"1439 yulectl_prg=1440 setpwd_prg="samhain_setpwd"1441 sh_main_prg="samhain"1442 if test "x${sh_have_gmp}" = xyes1443 then1444 LIBS="-lgmp $LIBS"1445 fi1446 dnl AC_CHECK_HEADER(sys/capability.h,1447 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")],1448 dnl [sh_use_lcaps="no"])1449 elif test "x$enable_network" = xserver; then1450 mytclient="-DSH_WITH_SERVER"1451 yulectl_prg="yulectl"1452 setpwd_prg="samhain_setpwd"1453 sh_main_prg="yule"1454 if test "x${sh_have_gmp}" = xyes1455 then1456 LIBS="-lgmp $LIBS"1457 fi1458 sh_use_lcaps="undef"1459 elif test "x$enable_network" = xno; then1460 mytclient="-DSH_STANDALONE"1461 yulectl_prg=1462 setpwd_prg=1463 sh_main_prg="samhain"1464 dnl AC_CHECK_HEADER(sys/capability.h,1465 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")],1466 dnl [sh_use_lcaps="no"])1467 else1468 AC_MSG_ERROR([--enable-network=WHAT: WHAT must be client, server, or no])1469 fi1470 ],1471 [1472 mytclient="-DSH_STANDALONE"1473 setpwd_prg=1474 yulectl_prg=1475 sh_main_prg="samhain"1476 dnl AC_CHECK_HEADER(sys/capability.h,1477 dnl [AC_CHECK_LIB(cap, cap_get_proc,,sh_use_lcaps="no")],1478 dnl [sh_use_lcaps="no"])1479 ],1480 )1481 AC_SUBST(setpwd_prg)1482 AC_SUBST(yulectl_prg)1483 AC_SUBST(sh_main_prg)1484 AC_SUBST(mytclient)1485 1486 # needed for the rpm spec1487 clmytclient=`echo ${mytclient} | sed s%\-%%`1488 AC_SUBST(clmytclient)1489 1490 1497 AC_ARG_ENABLE(udp, 1491 1498 [ --enable-udp server can listen on port 514/udp [[no]]],
Note:
See TracChangeset
for help on using the changeset viewer.