From c0b11aa8b5fad63acf39661a2290d4bed1307065 Mon Sep 17 00:00:00 2001 From: Ben Collins Date: Sat, 13 Mar 1999 02:08:42 +0000 Subject: [PATCH] Added check for getpass() as well as adding it to the -llutil Makefile.in (BeOS will need this) --- configure | 25 +++++++++++++------------ configure.in | 1 + include/portable.h.in | 3 +++ libraries/liblutil/Makefile.in | 4 ++-- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/configure b/configure index a7fa94d62b..6de94daf0e 100755 --- a/configure +++ b/configure @@ -9805,6 +9805,7 @@ for ac_func in \ flock \ getdtablesize \ gethostname \ + getpass \ getpwuid \ gettimeofday \ lockf \ @@ -9832,12 +9833,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9836: checking for $ac_func" >&5 +echo "configure:9837: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9888,12 +9889,12 @@ done for ac_func in getopt tempnam do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9892: checking for $ac_func" >&5 +echo "configure:9893: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9946,13 +9947,13 @@ done # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:9950: checking declaration of sys_errlist" >&5 +echo "configure:9951: checking declaration of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -9962,7 +9963,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:9966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes else @@ -9982,20 +9983,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:9986: checking existence of sys_errlist" >&5 +echo "configure:9987: checking existence of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/configure.in b/configure.in index a7bd541134..7285b0ebea 100644 --- a/configure.in +++ b/configure.in @@ -1628,6 +1628,7 @@ AC_CHECK_FUNCS( \ flock \ getdtablesize \ gethostname \ + getpass \ getpwuid \ gettimeofday \ lockf \ diff --git a/include/portable.h.in b/include/portable.h.in index db140ee452..ce54520159 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -231,6 +231,9 @@ /* Define if you have the getopt function. */ #undef HAVE_GETOPT +/* Define if you have the getpass function. */ +#undef HAVE_GETPASS + /* Define if you have the getpwuid function. */ #undef HAVE_GETPWUID diff --git a/libraries/liblutil/Makefile.in b/libraries/liblutil/Makefile.in index db5d901948..94502f11fd 100644 --- a/libraries/liblutil/Makefile.in +++ b/libraries/liblutil/Makefile.in @@ -3,8 +3,8 @@ ## LIBRARY = liblutil.a -SRCS = base64.c detach.c md5.c passwd.c sha1.c -OBJS = base64.o detach.o md5.o passwd.o sha1.o @LIBOBJS@ +SRCS = base64.c detach.c md5.c passwd.c sha1.c getpass.c +OBJS = base64.o detach.o md5.o passwd.o sha1.o getpass.o @LIBOBJS@ LDAP_INCDIR= ../../include LDAP_LIBDIR= ../../libraries -- 2.39.5