From c07ebfa1e02d208ab12430e6791ea147bcfaf9c0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:46 +0100 Subject: Imported from util-linux-2.11b tarball. --- configure | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index fd5ab642..8de131a8 100755 --- a/configure +++ b/configure @@ -9,7 +9,7 @@ # H3. For kbd_rate.c: does exist? # H4. For nls.h: do we have ? # H5. For cal.c: do we have ? -# H6. For mkswap.c: do we have ? +# H6. For mkswap.c: do we have or ? # H7. For nfsmount.h (nfsmount_xdr.c: int32_t): do we have ? # # Existence of functions: @@ -18,6 +18,7 @@ # F3. For agetty.c: is getdomainname() available? # F4. For hwclock/kd.c: do we have nanosleep()? # F5. For mkswap.c: do we have personality()? +# F6. For agetty.c: is updwtmp() available? # # 1. For sys-utils/cytune.c: do we need ? # 2. For cfdisk, setterm, more, ul: do we have ncurses? How installed? @@ -114,11 +115,13 @@ if ./testincl "langinfo.h"; then fi # -# H6. For mkswap.c: do we have ? +# H6. For mkswap.c: do we have or ? # -if ./testincl "asm/page.h"; then +if ./testincl "sys/user.h"; then + echo "#define HAVE_sys_user_h" >> defines.h +else if ./testincl "asm/page.h"; then echo "#define HAVE_asm_page_h" >> defines.h -fi +fi fi # # H7. For nfsmount.h: do we have ? @@ -234,6 +237,29 @@ else fi rm -f conftest conftest.c +# +# F6. For agetty.c: is updwtmp() available? +# +echo ' +#include +#include +main(int a, char **v){ + struct utmp ut; + memset (&ut, 0, sizeof(ut)); + if (a == -1) /* false */ + updwtmp("/nowhere/wtmp", &ut); + exit(0); +} +' > conftest.c +eval $compile +if test -s conftest && ./conftest 2>/dev/null; then + echo "#define HAVE_updwtmp" >> defines.h + echo "You have updwtmp()" +else + echo "You don't have updwtmp()" +fi +rm -f conftest conftest.c + # # 1. cytune.c may need struct tq_struct -- cgit v1.2.3