Changeset 183 for trunk/configure.ac
- Timestamp:
- Oct 26, 2008, 12:59:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r181 r183 242 242 AC_EGREP_HEADER(ut_type, utmp.h, AC_DEFINE(HAVE_UTTYPE) ) 243 243 fi 244 245 dnl 246 dnl figure out where acct.h lives 247 dnl and whether fields are int/comp_t 248 dnl 249 dnl GNU Accounting Utilities 250 dnl Copyright (C) 1993, 1996, 1997, 2003, 2005 Free Software Foundation, Inc. 251 dnl The GNU Accounting Utilities are free software; you can redistribute 252 dnl them and/or modify them under the terms of the GNU General Public 253 dnl License as published by the Free Software Foundation; either version 254 dnl 2, or (at your option) any later version. 255 dnl 256 AC_CHECK_HEADER(sys/acct.h, 257 AC_DEFINE(HAVE_SYS_ACCT_H, , 258 [Define if you have the <sys/acct.h> header file.]) 259 AC_HEADER_EGREP(ac_utime, sys/acct.h, 260 AC_DEFINE(HAVE_ACUTIME, , 261 [Define if <sys/acct.h> has the AC_UTIME field.]) 262 AC_HEADER_EGREP(comp_t.*ac_utime, sys/acct.h, 263 AC_DEFINE(ACUTIME_COMPT, , 264 [Define if <sys/acct.h>'s AC_UTIME field is a COMP_T.])) 265 ) 266 AC_HEADER_EGREP(ac_stime, sys/acct.h, 267 AC_DEFINE(HAVE_ACSTIME, , 268 [Define if <sys/acct.h> has the AC_STIME field.]) 269 AC_HEADER_EGREP(comp_t.*ac_stime, sys/acct.h, 270 AC_DEFINE(ACSTIME_COMPT, , 271 [Define if <sys/acct.h>'s AC_STIME field is a COMP_T.])) 272 ) 273 AC_HEADER_EGREP(ac_etime, sys/acct.h, 274 AC_DEFINE(HAVE_ACETIME, , 275 [Define if <sys/acct.h> has the AC_ETIME field.]) 276 AC_HEADER_EGREP(comp_t.*ac_etime, sys/acct.h, 277 AC_DEFINE(ACETIME_COMPT, , 278 [Define if <sys/acct.h>'s AC_ETIME field is a COMP_T.])) 279 ) 280 AC_HEADER_EGREP(ac_io, sys/acct.h, 281 AC_DEFINE(HAVE_ACIO, , 282 [Define if <sys/acct.h> has the AC_IO field.]) 283 AC_HEADER_EGREP(comp_t.*ac_io, sys/acct.h, 284 AC_DEFINE(ACIO_COMPT, , 285 [Define if <sys/acct.h>'s AC_IO field is a COMP_T.])) 286 ) 287 AC_HEADER_EGREP(ac_mem, sys/acct.h, 288 AC_DEFINE(HAVE_ACMEM, , 289 [Define if <sys/acct.h> has the AC_MEM field.]) 290 AC_HEADER_EGREP(comp_t.*ac_mem, sys/acct.h, 291 AC_DEFINE(ACMEM_COMPT, , 292 [Define if <sys/acct.h>'s AC_MEM field is a COMP_T.])) 293 ) 294 AC_HEADER_EGREP(ac_minflt, sys/acct.h, 295 AC_HEADER_EGREP(ac_majflt, sys/acct.h, 296 AC_HEADER_EGREP(ac_swaps, sys/acct.h, 297 AC_DEFINE(HAVE_PAGING, , 298 [Define if <sys/acct.h> has the AC_MINFLT, AC_MAJFLT and AC_SWAPS fields.]) 299 AC_HEADER_EGREP(comp_t.*ac_minflt, sys/acct.h, 300 AC_DEFINE(ACMINFLT_COMPT, , 301 [Define if <sys/acct.h>'s AC_MINFLT field is a COMP_T.])) 302 AC_HEADER_EGREP(comp_t.*ac_mayflt, sys/acct.h, 303 AC_DEFINE(ACMAJFLT_COMPT, , 304 [Define if <sys/acct.h>'s AC_MAJFLT field is a COMP_T.])) 305 AC_HEADER_EGREP(comp_t.*ac_swaps, sys/acct.h, 306 AC_DEFINE(ACSWAPS_COMPT, , 307 [Define if <sys/acct.h>'s AC_SWAPS field is a COMP_T.])) 308 ) 309 ) 310 ) 311 AC_HEADER_EGREP(comp_t, sys/acct.h, AC_DEFINE(HAVE_COMP_T, , 312 [Define if <sys/acct.h> uses the COMP_T type.])) 313 ) 314 244 315 245 316 dnl need to check because AIX 4.2 does not have it … … 589 660 then 590 661 AC_MSG_RESULT([no]) 591 AC_MSG_ERROR([ No ps in/usr/ucb /bin /usr/bin])662 AC_MSG_ERROR([Cannot find ps in any of /usr/ucb /bin /usr/bin]) 592 663 fi 593 664 AC_DEFINE_UNQUOTED([PSPATH], _("$PS"), [Path to ps]) … … 687 758 elif test "x${enable_message_queue}" != xno; then 688 759 echo "${enableval}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 689 AC_MSG_ERROR([ --enable-message-queue:MODE must be numeric])760 AC_MSG_ERROR([With --enable-message-queue=MODE, MODE must be numeric]) 690 761 echo "${enableval}" | \ 691 762 grep ['0[0123456789][0123456789][0123456789]'] >/dev/null 2>&1 || 692 AC_MSG_ERROR([ --enable-message-queue:MODE must be an octal (0nnn) number])763 AC_MSG_ERROR([With --enable-message-queue=MODE, MODE must be an octal (0nnn) number]) 693 764 AC_DEFINE(WITH_MESSAGE_QUEUE) 694 765 AC_DEFINE_UNQUOTED(MESSAGE_QUEUE_MODE, ${enable_message_queue}) … … 762 833 AC_CHECK_HEADER(tcpd.h, 763 834 [], 764 [ AC_MSG_ERROR([Could not find tcpd.h for libwrap. You must first install tcp_wrappers]) ])835 [ AC_MSG_ERROR([Could not find tcpd.h for libwrap. You need to install tcp_wrappers.]) ]) 765 836 AC_TRY_LINK([ #include <tcpd.h> 766 837 int allow_severity; int deny_severity; ], … … 810 881 dnl [sh_use_lcaps="no"]) 811 882 else 812 AC_MSG_ERROR([ --enable-network=WHAT:WHAT must be client, server, or no])883 AC_MSG_ERROR([With --enable-network=WHAT, WHAT must be client, server, or no]) 813 884 fi 814 885 ], … … 963 1034 case "$sh_libprelude_version" in 964 1035 0.8*) 965 AC_MSG_ERROR([ Libprelude 0.8 is too old,0.9.6 or higher is required.])1036 AC_MSG_ERROR([You have Libprelude 0.8, which is too old. Version 0.9.6 or higher is required.]) 966 1037 ;; 967 1038 *) … … 995 1066 [ 996 1067 if test x"$enable_xml_log" != xyes; then 997 AC_MSG_ERROR([ --with-database: --enable-xml-log required])1068 AC_MSG_ERROR([With --with-database, --enable-xml-log is required as well.]) 998 1069 fi 999 1070 if test "x${withval}" = "xmysql"; then … … 1101 1172 fi 1102 1173 echo 1103 AC_MSG_ERROR([ libmysql not found or unuseable])1174 AC_MSG_ERROR([Could not find libmysql, or it is not useable.]) 1104 1175 fi 1105 1176 AC_CHECK_HEADERS(mysql/mysql.h) … … 1284 1355 1285 1356 else 1286 AC_MSG_ERROR([ --with-database:unsupported database ${withval}])1357 AC_MSG_ERROR([Option --with-database=database used with unsupported database ${withval}]) 1287 1358 fi 1288 1359 ] … … 1353 1424 ] 1354 1425 ) 1426 1427 AC_ARG_ENABLE(logfile-monitor, 1428 [ --enable-logfile-monitor monitor logfiles [[no]]], 1429 [ 1430 if test "x${enable_logfile_monitor}" = xyes; then 1431 AC_CHECK_HEADER(pcre.h, 1432 [ 1433 AC_DEFINE(USE_LOGFILE_MONITOR, 1, [Define if you want the logfile monitor module.]) 1434 LIBS="-lpcre $LIBS" 1435 ], 1436 AC_MSG_ERROR([The --enable-logfile-monitor option requires libpcre. For compiling the pcre development package is needed.]) 1437 ) 1438 fi 1439 ] 1440 ) 1441 1355 1442 1356 1443 AC_ARG_ENABLE(process-check, … … 1507 1594 * ) 1508 1595 AC_MSG_RESULT([invalid argument]) 1509 AC_MSG_ERROR([ --with-rnd: there is no randommodule ${use_static_rnd}])1596 AC_MSG_ERROR([Option --with-rnd=module used with unsupported module ${use_static_rnd}]) 1510 1597 ;; 1511 1598 esac … … 1605 1692 [ 1606 1693 echo "${withval}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 1607 AC_MSG_ERROR([ --with-port: PORT must be numeric])1694 AC_MSG_ERROR([For --with-port=PORT, PORT must be numeric.]) 1608 1695 myport=${withval} 1609 1696 ], … … 1657 1744 fi 1658 1745 if test "x${enableval}" = "xstop" || test "x${enableval}" = "xstart"; then 1659 AC_MSG_ERROR([ --enable-nocl: start/stop/reload/restart/status are reserved words])1746 AC_MSG_ERROR([For --enable-nocl=PW start/stop/reload/restart/status are reserved words.]) 1660 1747 fi 1661 1748 if test "x${enableval}" = "xreload" || test "x${enableval}" = "xrestart"; then 1662 AC_MSG_ERROR([ --enable-nocl: start/stop/reload/restart/status are reserved words])1749 AC_MSG_ERROR([For --enable-nocl=PW start/stop/reload/restart/status are reserved words.]) 1663 1750 fi 1664 1751 if test "x${enableval}" = "xstatus"; then 1665 AC_MSG_ERROR([ --enable-nocl: start/stop/reload/restart/status are reserved words])1752 AC_MSG_ERROR([For --enable-nocl=PW start/stop/reload/restart/status are reserved words.]) 1666 1753 fi 1667 1754 if test "x${enableval}" = "xno"; then 1668 AC_MSG_ERROR([ --enable-nocl: use of --enable-nocl=no is ambiguous])1755 AC_MSG_ERROR([With --enable-nocl=PW, the use of --enable-nocl=no is ambiguous.]) 1669 1756 fi 1670 1757 nocl_code="${enable_nocl}" … … 1678 1765 if test "x${enableval}" != "xyes"; then 1679 1766 echo "${enableval}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 1680 AC_MSG_ERROR([ --enable-stealth: XOR_VAL must be numeric])1767 AC_MSG_ERROR([For --enable-stealth=XOR_VAL, XOR_VAL must be numeric.]) 1681 1768 if test "${enableval}" -lt 127 || test "${enableval}" -gt 255; then 1682 1769 if test x"${enableval}" = x0 … … 1684 1771 : 1685 1772 else 1686 AC_MSG_ERROR([ --enable-stealth: XOR_VAL must be in the range 127 to 255])1773 AC_MSG_ERROR([For --enable-stealth=XOR_VAL, XOR_VAL must be in the range 127 to 255.]) 1687 1774 fi 1688 1775 fi … … 1704 1791 if test "x${enableval}" != "xyes"; then 1705 1792 echo "${enableval}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 1706 AC_MSG_ERROR([ --enable-micro-stealth: XOR_VAL must be numeric])1793 AC_MSG_ERROR([For --enable-micro-stealth=XOR_VAL, XOR_VAL must be numeric.]) 1707 1794 if test "${enableval}" -lt 127 || test "${enableval}" -gt 255; then 1708 1795 if test x"${enableval}" = x0 … … 1710 1797 : 1711 1798 else 1712 AC_MSG_ERROR([ --enable-micro-stealth: XOR_VAL must be in the range 127 to 255])1799 AC_MSG_ERROR([For --enable-micro-stealth=XOR_VAL, XOR_VAL must be in the range 127 to 255.]) 1713 1800 fi 1714 1801 fi … … 1750 1837 fi 1751 1838 echo "${myident}" | grep ['[^0123456789]'] >/dev/null 2>&1 || \ 1752 AC_MSG_ERROR([ --enable-identity: need username, not UID])1839 AC_MSG_ERROR([With --enable-identity=USER, please supply a username, not a UID.]) 1753 1840 myident_uid=`(cat /etc/passwd; ypcat passwd) 2>/dev/null |\ 1754 1841 grep "^${myident}:" | awk -F: '{ print $3; }'` 1755 1842 if test x"${myident_uid}" = x; then 1756 AC_MSG_WARN([ --enable-identity: user ${myident} will be added upon install])1843 AC_MSG_WARN([Option --enable-identity used, user ${myident} will be added upon install.]) 1757 1844 need_user_install=1 1758 1845 fi … … 1794 1881 sh_syscalltable=`egrep '(D|d|R|r) sys_call_table' ${khidemap} | awk '{print $1}'` 1795 1882 if test x"$sh_syscalltable" = x; then 1796 AC_MSG_ERROR([ --enable-khide: symbol sys_call_table not found in ${khidemap}])1883 AC_MSG_ERROR([Option --enable-khide cannot be used since the symbol sys_call_table was not found in ${khidemap}.]) 1797 1884 fi 1798 1885 sh_syscalltable="0x${sh_syscalltable}" 1799 1886 install_name_len=`echo ${install_name} | awk '{ print(length()); }'` 1800 1887 if test "${install_name_len}" -gt 15 ; then 1801 AC_MSG_ERROR([ --enable-khide: install_name exceeds 15 char length limit])1888 AC_MSG_ERROR([If --enable-khide is used, install_name must not exceed a length of 15 chars.]) 1802 1889 fi 1803 1890 AC_DEFINE(SH_USE_LKM) … … 1833 1920 sh_list_modules=`egrep 'd modules$' ${khidemap} | awk '{print $1}'` 1834 1921 if test x"$sh_list_modules" = x; then 1835 AC_MSG_ERROR([ --enable-khide: symbol modules not found in ${khidemap}])1922 AC_MSG_ERROR([Option --enable-khide cannot be used, since the symbol modules was not found in ${khidemap}.]) 1836 1923 fi 1837 1924 sh_list_modules="0x${sh_list_modules}" … … 1926 2013 : 1927 2014 else 1928 AC_MSG_ERROR([ --with-kcheck: cannot find system map ${systemmap}])2015 AC_MSG_ERROR([Option --with-kcheck=systemmap cannot be used, because system map ${systemmap} does not exist.]) 1929 2016 fi 1930 2017 fi … … 1942 2029 AC_MSG_RESULT(${my_key_A} ${my_key_B}) 1943 2030 if test "x${my_key_A}" = x; then 1944 AC_MSG_ERROR([ --enable-base: first base key has zero length])2031 AC_MSG_ERROR([Option --enable-base=B1,B2 used with invalid first base key (zero length).]) 1945 2032 fi 1946 2033 if test "x${my_key_B}" = x; then 1947 AC_MSG_ERROR([ --enable-base: second base key has zero length])2034 AC_MSG_ERROR([Option --enable-base=B1,B2 used with invalid second base key (zero length).]) 1948 2035 fi 1949 2036 echo "${my_key_A}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 1950 AC_MSG_ERROR([ --enable-base: base key must be numeric in the range 0 to 2147483647])2037 AC_MSG_ERROR([For --enable-base=B1,B2, B1 and B2 must be numeric in the range 0 to 2147483647.]) 1951 2038 echo "${my_key_B}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 1952 AC_MSG_ERROR([ --enable-base: base key must be numeric in the range 0 to 2147483647])2039 AC_MSG_ERROR([For --enable-base=B1,B2, B1 and B2 must be numeric in the range 0 to 2147483647.]) 1953 2040 ], 1954 2041 [ … … 2092 2179 else 2093 2180 if test "x${mychk}" = "x"; then 2094 AC_MSG_ERROR([ --with-checksum: gpg CHKSUM not specified])2181 AC_MSG_ERROR([Option --with-checksum=CHKSUM: checksum CHKSUM of the gpg binary not specified.]) 2095 2182 fi 2096 2183 fi … … 2119 2206 echo "${withval0}" | \ 2120 2207 grep ['[^0123456789abcdefABCDEF]'] >/dev/null 2>&1 && 2121 AC_MSG_ERROR([ --with-fp: invalid character(s) in FINGERPRINT=${withval0}])2208 AC_MSG_ERROR([In option --with-fp=FINGERPRINT, there is an invalid character(s) in FINGERPRINT=${withval0}.]) 2122 2209 sh_len=`echo ${withval0} | wc -c | sed 's% %%g'` 2123 2210 sh_len0=`expr ${sh_len} \- 1` … … 2129 2216 echo "${myfp}" | sed 's,.*:,,g' | sed 's, ,,g' | sed 's,\(.\),\1:,g' | awk '{ split($0, arr, ":"); m = length($1)/2; print "#ifndef FINGERPRINT_H"; print "#define FINGERPRINT_H"; printf "char gpgfp[%d];\n", m+1; for (i=1; i <= m; i++) printf "gpgfp[%d] = %c%s%c;\n", i-1, 39, arr[i], 39; printf "gpgfp[%d] = %c%c0%c;\n", m, 39, 92, 39; print "#endif"; }' > sh_gpg_fp.h 2130 2217 else 2131 AC_MSG_ERROR([ --with-fp: length (${sh_len0}) of FINGERPRINT ${withval0} incorrect])2218 AC_MSG_ERROR([In option --with-fp=FINGERPRINT, the length (${sh_len0}) of FINGERPRINT ${withval0} is incorrect.]) 2132 2219 fi 2133 2220 else 2134 AC_MSG_ERROR([ --with-fp: usage error ... FINGERPRINT=yes])2221 AC_MSG_ERROR([For option --with-fp=FINGERPRINT, FINGERPRINT=yes is invalid, please specify a valid key fingerprint.]) 2135 2222 fi 2136 2223 fi … … 2155 2242 if test "x${sh_tmp}" != "x1" 2156 2243 then 2157 AC_MSG_ERROR([ --with-recipient: invalid mail address ${sh_item}])2244 AC_MSG_ERROR([Option --with-recipient=ADDR used with invalid mail address ${sh_item}.]) 2158 2245 fi 2159 2246 ;; 2160 2247 *) 2161 AC_MSG_ERROR([ --with-recipient: invalid mail address ${sh_item}])2248 AC_MSG_ERROR([Option --with-recipient=ADDR used with invalid mail address ${sh_item}.]) 2162 2249 ;; 2163 2250 esac … … 2192 2279 do 2193 2280 echo "${sh_tmp1}" | grep ['[^0123456789]'] >/dev/null 2>&1 && 2194 AC_MSG_ERROR([ --with-trusted: non-numeric UID in ${withval}])2281 AC_MSG_ERROR([Option --with-trusted=UID used with non-numeric UID in ${withval}.]) 2195 2282 if test "x${sh_tmp1}" = "x0" 2196 2283 then … … 2388 2475 echo "It should be REQ_FROM_SERVER/some/local/path" 2389 2476 fi 2390 AC_MSG_ERROR([ --with-data-file: invalid path ${withval}])2477 AC_MSG_ERROR([Option --with-data-file=FILE used with invalid path ${withval}.]) 2391 2478 fi 2392 2479 ],
Note:
See TracChangeset
for help on using the changeset viewer.