configure.in (59118) | configure.in (92906) |
---|---|
1dnl configure.in: Input for Autoconf 2dnl 3dnl %%% portions-copyright-cmetz-96 | 1dnl configure.in: Input for Autoconf 2dnl 3dnl %%% portions-copyright-cmetz-96 |
4dnl Portions of this software are Copyright 1996-1998 by Craig Metz, All Rights | 4dnl Portions of this software are Copyright 1996-1999 by Craig Metz, All Rights |
5dnl Reserved. The Inner Net License Version 2 applies to these portions of 6dnl the software. 7dnl You should have received a copy of the license with this software. If 8dnl you didn't get a copy, you may request one from <license@inner.net>. 9dnl 10dnl Portions of this software are Copyright 1995 by Randall Atkinson and Dan 11dnl McDonald, All Rights Reserved. All Rights under this copyright are assigned 12dnl to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and 13dnl License Agreement applies to this software. 14dnl 15dnl History: 16dnl | 5dnl Reserved. The Inner Net License Version 2 applies to these portions of 6dnl the software. 7dnl You should have received a copy of the license with this software. If 8dnl you didn't get a copy, you may request one from <license@inner.net>. 9dnl 10dnl Portions of this software are Copyright 1995 by Randall Atkinson and Dan 11dnl McDonald, All Rights Reserved. All Rights under this copyright are assigned 12dnl to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and 13dnl License Agreement applies to this software. 14dnl 15dnl History: 16dnl |
17dnl Modified by cmetz for OPIE 2.4. Add --enable-opieauto option. Check 18dnl for ut_id and ut_syslen. Make disable-wtmp disable wtmp not utmp. 19dnl Define HAVE_foo if foo is found by the libmissing function check. 20dnl Added checks for libmissing functions that were there but never 21dnl actually checked for and therefore available. |
|
17dnl Modified by cmetz for OPIE 2.32. Substitute default for LOCK_DIR. 18dnl Fix the --disable-user-locking bug. AC_DEFINE variables to 1. 19dnl Really check for ut_host. 20dnl Modified by cmetz for OPIE 2.31. Put back manual utmp[x]/wtmp[x] 21dnl checks -- too many OSs can't be trusted to tell us where they are. 22dnl Check for sys/select.h. Spell endutent right. Replace strtoul() 23dnl if needed. Removed duplicate check for sysconf. Added check for 24dnl SunOS C2 shadow passwords (may need more work). Replace --- 42 unchanged lines hidden (view full) --- 67fi 68AC_SUBST(LOCK_DIR) 69 70AC_ARG_ENABLE(retype, [ --enable-retype Ask users to re-type their secret pass phrases], AC_DEFINE(RETYPE, 1)) 71AC_ARG_ENABLE(su-star-check, [ --enable-su-star-check Refuse to switch to disabled accounts], AC_DEFINE(SU_STAR_CHECK, 1)) 72AC_ARG_ENABLE(new-prompts, [ --disable-new-prompts Use more compatible (but less informative) prompts],, AC_DEFINE(NEW_PROMPTS, 1)) 73AC_ARG_ENABLE(insecure-override, [ --enable-insecure-override 74 Allow users to override insecure checks], AC_DEFINE(INSECURE_OVERRIDE, 1)) | 22dnl Modified by cmetz for OPIE 2.32. Substitute default for LOCK_DIR. 23dnl Fix the --disable-user-locking bug. AC_DEFINE variables to 1. 24dnl Really check for ut_host. 25dnl Modified by cmetz for OPIE 2.31. Put back manual utmp[x]/wtmp[x] 26dnl checks -- too many OSs can't be trusted to tell us where they are. 27dnl Check for sys/select.h. Spell endutent right. Replace strtoul() 28dnl if needed. Removed duplicate check for sysconf. Added check for 29dnl SunOS C2 shadow passwords (may need more work). Replace --- 42 unchanged lines hidden (view full) --- 72fi 73AC_SUBST(LOCK_DIR) 74 75AC_ARG_ENABLE(retype, [ --enable-retype Ask users to re-type their secret pass phrases], AC_DEFINE(RETYPE, 1)) 76AC_ARG_ENABLE(su-star-check, [ --enable-su-star-check Refuse to switch to disabled accounts], AC_DEFINE(SU_STAR_CHECK, 1)) 77AC_ARG_ENABLE(new-prompts, [ --disable-new-prompts Use more compatible (but less informative) prompts],, AC_DEFINE(NEW_PROMPTS, 1)) 78AC_ARG_ENABLE(insecure-override, [ --enable-insecure-override 79 Allow users to override insecure checks], AC_DEFINE(INSECURE_OVERRIDE, 1)) |
75AC_ARG_ENABLE(anonymous-ftp, [ --enable-anonymous-ftp Enable anonymous FTP support], AC_DEFINE(DOANONYMOUS, 1) echo "Enabling anonymous FTP support in ftp -- don't say we didn't warn you!") 76AC_ARG_ENABLE(utmp, [ --disable-utmp Disable utmp logging], AC_DEFINE(DISABLE_UTMP, 1) echo "Disabling utmp logging") 77AC_ARG_ENABLE(wtmp, [ --disable-wtmp Disable wtmp logging], AC_DEFINE(DISABLE_UTMP, 1) echo "Disabling wtmp logging") | 80AC_ARG_ENABLE(anonymous-ftp, [ --enable-anonymous-ftp Enable anonymous FTP support], AC_DEFINE(DOANONYMOUS, 1) echo "enabling anonymous FTP support in ftp -- don't say we didn't warn you!") 81AC_ARG_ENABLE(utmp, [ --disable-utmp Disable utmp logging], AC_DEFINE(DISABLE_UTMP, 1) echo "disabling utmp logging") 82AC_ARG_ENABLE(wtmp, [ --disable-wtmp Disable wtmp logging], AC_DEFINE(DISABLE_WTMP, 1) echo "disabling wtmp logging") 83AC_ARG_ENABLE(opieauto, [ --enable-opieauto Enable support for opieauto], AC_DEFINE(OPIEAUTO, 1) OPIEAUTO=opieauto; echo "enabling opieauto support") 84AC_SUBST(OPIEAUTO) |
78 79dnl Checks for programs. 80AC_PROG_CC 81AC_PROG_CPP 82AC_PROG_LN_S 83AC_PROG_RANLIB 84AC_PROG_YACC 85 --- 393 unchanged lines hidden (view full) --- 479AC_TRY_COMPILE([#include <sys/types.h> 480#include <utmp.h>], [struct utmp foo; return (int)foo.ut_name[0];], AC_DEFINE(HAVE_UT_NAME) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 481dnl AC_MSG_CHECKING(for ut_user in struct utmp) 482dnl AC_TRY_COMPILE([#include <sys/types.h> 483dnl #include <utmp.h>], [struct utmp foo; return (int)foo.ut_user[0];], AC_DEFINE(HAVE_UT_USER) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 484AC_MSG_CHECKING(for ut_host in struct utmp) 485AC_TRY_COMPILE([#include <sys/types.h> 486#include <utmp.h>], [struct utmp foo; return (int)foo.ut_host[0];], AC_DEFINE(HAVE_UT_HOST) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) | 85 86dnl Checks for programs. 87AC_PROG_CC 88AC_PROG_CPP 89AC_PROG_LN_S 90AC_PROG_RANLIB 91AC_PROG_YACC 92 --- 393 unchanged lines hidden (view full) --- 486AC_TRY_COMPILE([#include <sys/types.h> 487#include <utmp.h>], [struct utmp foo; return (int)foo.ut_name[0];], AC_DEFINE(HAVE_UT_NAME) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 488dnl AC_MSG_CHECKING(for ut_user in struct utmp) 489dnl AC_TRY_COMPILE([#include <sys/types.h> 490dnl #include <utmp.h>], [struct utmp foo; return (int)foo.ut_user[0];], AC_DEFINE(HAVE_UT_USER) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 491AC_MSG_CHECKING(for ut_host in struct utmp) 492AC_TRY_COMPILE([#include <sys/types.h> 493#include <utmp.h>], [struct utmp foo; return (int)foo.ut_host[0];], AC_DEFINE(HAVE_UT_HOST) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) |
494AC_MSG_CHECKING(for ut_id in struct utmp) 495AC_TRY_COMPILE([#include <sys/types.h> 496#include <utmp.h>], [struct utmp foo; return (int)foo.ut_id[0];], AC_DEFINE(HAVE_UT_ID) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 497#AC_MSG_CHECKING(for ut_syslen in struct utmp) 498#AC_TRY_COMPILE([#include <sys/types.h> 499##include <utmp.h>], [struct utmp foo; return (int)foo.ut_syslen;], AC_DEFINE(HAVE_UT_SYSLEN) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 500AC_MSG_CHECKING(for ut_syslen in struct utmpx) 501AC_TRY_COMPILE([#include <sys/types.h> 502#include <utmpx.h>], [struct utmpx foo; return (int)foo.ut_syslen;], AC_DEFINE(HAVE_UTX_SYSLEN) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) |
|
487 488dnl Checks for library functions. 489dnl AC_PROG_GCC_TRADITIONAL 490AC_TYPE_SIGNAL 491AC_CHECK_FUNCS(gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep) 492 493dnl Libmissing... 494AC_FUNC_MEMCMP 495AC_FUNC_ALLOCA 496AC_REPLACE_FUNCS(getusershell sigaddset sigemptyset strerror strncasecmp) 497MISSING="$LIBOBJS $ALLOCA " ; | 503 504dnl Checks for library functions. 505dnl AC_PROG_GCC_TRADITIONAL 506AC_TYPE_SIGNAL 507AC_CHECK_FUNCS(gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep) 508 509dnl Libmissing... 510AC_FUNC_MEMCMP 511AC_FUNC_ALLOCA 512AC_REPLACE_FUNCS(getusershell sigaddset sigemptyset strerror strncasecmp) 513MISSING="$LIBOBJS $ALLOCA " ; |
498AC_CHECK_FUNC(atexit,, MISSING="${MISSING}atexit.o "; AC_CHECK_FUNCS(on_exit)) 499AC_CHECK_FUNC(endutent,, MISSING="${MISSING}endutent.o ") 500AC_CHECK_FUNC(memcpy,, MISSING="${MISSING}memcpy.o "; AC_CHECK_FUNCS(bcopy)) 501AC_CHECK_FUNC(memset,, MISSING="${MISSING}memset.o "; AC_CHECK_FUNCS(bzero)) 502AC_CHECK_FUNC(getcwd,, MISSING="${MISSING}getcwd.o "; AC_CHECK_FUNCS(getwd)) 503AC_CHECK_FUNC(getenv, AC_DEFINE(HAVE_GETENV), MISSING="${MISSING}env.o ") 504AC_CHECK_FUNC(getutline, AC_DEFINE(HAVE_GETUTLINE), MISSING="${MISSING}getutline.o "; AC_CHECK_FUNCS(ttyslot)) 505AC_CHECK_FUNC(pututline,, MISSING="${MISSING}pututline.o "; AC_CHECK_FUNCS(ttyslot)) 506AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV), MISSING="${MISSING}env.o ") 507AC_CHECK_FUNC(setegid,, MISSING="${MISSING}setegid.o "; AC_CHECK_FUNCS(setregid setresgid)) 508AC_CHECK_FUNC(seteuid,, MISSING="${MISSING}seteuid.o "; AC_CHECK_FUNCS(setreuid setresuid)) 509AC_CHECK_FUNC(setutent,, MISSING="${MISSING}setutent.o ") 510AC_CHECK_FUNC(sigprocmask,, MISSING="${MISSING}sigprocmask.o "; AC_CHECK_FUNCS(sigblock sigsetmask)) 511AC_CHECK_FUNC(strchr,, MISSING="${MISSING}strchr.o "; AC_CHECK_FUNCS(index)) 512AC_CHECK_FUNC(strrchr,, MISSING="${MISSING}strrchr.o "; AC_CHECK_FUNCS(rindex)) 513AC_CHECK_FUNC(strtoul,, MISSING="${MISSING}strtoul.o ") 514AC_CHECK_FUNC(sysconf,, MISSING="${MISSING}sysconf.o "; AC_CHECK_FUNCS(getdtablesize)) 515AC_CHECK_FUNC(uname,, MISSING="${MISSING}uname.o "; AC_CHECK_FUNCS(gethostname)) 516AC_CHECK_FUNC(unsetenv, AC_DEFINE(HAVE_UNSETENV), MISSING="${MISSING}env.o ") | 514 515dnl These should be simplified by a macro 516AC_CHECK_FUNC(atexit, AC_DEFINE(HAVE_ATEXIT), MISSING="${MISSING}atexit.o "; AC_CHECK_FUNCS(on_exit)) 517AC_CHECK_FUNC(endutent, AC_DEFINE(HAVE_ENDUTENT), MISSING="${MISSING}endutent.o ") 518AC_CHECK_FUNC(initgroups, AC_DEFINE(HAVE_INITGROUPS), MISSING="${MISSING}initgroups.o ") 519AC_CHECK_FUNC(memcmp, AC_DEFINE(HAVE_MEMCMP), MISSING="${MISSING}memcmp.o ") 520AC_CHECK_FUNC(memcpy, AC_DEFINE(HAVE_MEMCPY), MISSING="${MISSING}memcpy.o "; AC_CHECK_FUNCS(bcopy)) 521AC_CHECK_FUNC(memset, AC_DEFINE(HAVE_MEMSET), MISSING="${MISSING}memset.o "; AC_CHECK_FUNCS(bzero)) 522AC_CHECK_FUNC(getcwd, AC_DEFINE(HAVE_GETCWD), MISSING="${MISSING}getcwd.o "; AC_CHECK_FUNCS(getwd)) 523AC_CHECK_FUNC(getenv, AC_DEFINE(HAVE_GETENV), MISSING="${MISSING}env.o ") 524AC_CHECK_FUNC(getutline, AC_DEFINE(HAVE_GETUTLINE), MISSING="${MISSING}getutline.o "; AC_CHECK_FUNCS(ttyslot)) 525AC_CHECK_FUNC(pututline, AC_DEFINE(HAVE_PUTUTLINE), MISSING="${MISSING}pututline.o "; AC_CHECK_FUNCS(ttyslot)) 526AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV), MISSING="${MISSING}env.o ") 527AC_CHECK_FUNC(setegid, AC_DEFINE(HAVE_SETEGID), MISSING="${MISSING}setegid.o "; AC_CHECK_FUNCS(setregid setresgid)) 528AC_CHECK_FUNC(seteuid, AC_DEFINE(HAVE_SETEUID), MISSING="${MISSING}seteuid.o "; AC_CHECK_FUNCS(setreuid setresuid)) 529AC_CHECK_FUNC(setutent, AC_DEFINE(HAVE_SETUTENT), MISSING="${MISSING}setutent.o ") 530AC_CHECK_FUNC(sigprocmask, AC_DEFINE(HAVE_SIGPROCMASK), MISSING="${MISSING}sigprocmask.o "; AC_CHECK_FUNCS(sigblock sigsetmask)) 531AC_CHECK_FUNC(strchr, AC_DEFINE(HAVE_STRCHR), MISSING="${MISSING}strchr.o "; AC_CHECK_FUNCS(index)) 532AC_CHECK_FUNC(strrchr, AC_DEFINE(HAVE_STRRCHR), MISSING="${MISSING}strrchr.o "; AC_CHECK_FUNCS(rindex)) 533AC_CHECK_FUNC(strtoul, AC_DEFINE(HAVE_STRTOUL), MISSING="${MISSING}strtoul.o ") 534AC_CHECK_FUNC(sysconf, AC_DEFINE(HAVE_SYSCONF), MISSING="${MISSING}sysconf.o "; AC_CHECK_FUNCS(getdtablesize)) 535AC_CHECK_FUNC(uname, AC_DEFINE(HAVE_UNAME), MISSING="${MISSING}uname.o "; AC_CHECK_FUNCS(gethostname)) 536AC_CHECK_FUNC(unsetenv, AC_DEFINE(HAVE_UNSETENV), MISSING="${MISSING}env.o ") |
517AC_SUBST(MISSING) 518 519AC_MSG_CHECKING(for nonstandard gettimeofday) 520AC_TRY_COMPILE([ 521#if HAVE_SYS_TIME_H 522#include <sys/time.h> 523#endif /* HAVE_SYS_TIME_H */ 524#if HAVE_UNISTD_H --- 18 unchanged lines hidden --- | 537AC_SUBST(MISSING) 538 539AC_MSG_CHECKING(for nonstandard gettimeofday) 540AC_TRY_COMPILE([ 541#if HAVE_SYS_TIME_H 542#include <sys/time.h> 543#endif /* HAVE_SYS_TIME_H */ 544#if HAVE_UNISTD_H --- 18 unchanged lines hidden --- |