Conversion of autoconfigury to Autoconf V2
authorMark Eichin <eichin@mit.edu>
Wed, 26 Oct 1994 05:45:56 +0000 (05:45 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 26 Oct 1994 05:45:56 +0000 (05:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4576 dc483132-0cff-0310-8789-dd5450dbe970

82 files changed:
src/aclocal.m4
src/admin/aname/configure.in
src/admin/configure.in
src/admin/convert/configure.in
src/admin/create/configure.in
src/admin/destroy/configure.in
src/admin/edit/configure.in
src/admin/stash/configure.in
src/appl/bsd/configure.in
src/appl/configure.in
src/appl/gss-sample/configure.in
src/appl/mailquery/configure.in
src/appl/movemail/configure.in
src/appl/popper/configure.in
src/appl/sample/configure.in
src/appl/sample/sclient/configure.in
src/appl/sample/sserver/configure.in
src/appl/simple/client/configure.in
src/appl/simple/configure.in
src/appl/simple/server/configure.in
src/appl/telnet/configure.in
src/appl/telnet/libtelnet/configure.in
src/appl/telnet/telnet/configure.in
src/appl/telnet/telnetd/configure.in
src/appl/user_user/configure.in
src/clients/configure.in
src/clients/kdestroy/configure.in
src/clients/kinit/configure.in
src/clients/klist/configure.in
src/clients/ksu/configure.in
src/config/install-sh [new file with mode: 0644]
src/config/pre.in
src/configure.in
src/include/configure.in
src/include/kerberosIV/configure.in
src/include/krb5/configure.in
src/isode/compat/configure.in
src/isode/configure.in
src/isode/h/configure.in
src/isode/pepsy/configure.in
src/isode/psap/configure.in
src/isode/support/configure.in
src/kadmin/client/configure.in
src/kadmin/configure.in
src/kadmin/kpasswd/configure.in
src/kdc/configure.in
src/lib/configure.in
src/lib/crypto/configure.in
src/lib/crypto/crc32/configure.in
src/lib/crypto/des/configure.in
src/lib/crypto/md4/configure.in
src/lib/crypto/md5/configure.in
src/lib/crypto/os/configure.in
src/lib/des425/configure.in
src/lib/gssapi/configure.in
src/lib/gssapi/generic/configure.in
src/lib/gssapi/krb5/configure.in
src/lib/kdb/configure.in
src/lib/krb425/configure.in
src/lib/krb5/asn.1/configure.in
src/lib/krb5/ccache/configure.in
src/lib/krb5/ccache/file/configure.in
src/lib/krb5/ccache/stdio/configure.in
src/lib/krb5/configure.in
src/lib/krb5/error_tables/configure.in
src/lib/krb5/free/configure.in
src/lib/krb5/keytab/configure.in
src/lib/krb5/keytab/file/configure.in
src/lib/krb5/krb/configure.in
src/lib/krb5/os/configure.in
src/lib/krb5/posix/configure.in
src/lib/krb5/rcache/configure.in
src/slave/configure.in
src/tests/asn.1/configure.in
src/tests/configure.in
src/tests/create/configure.in
src/tests/hammer/configure.in
src/tests/verify/configure.in
src/util/configure.in
src/util/et/configure.in
src/util/ss/configure.in
src/util/unifdef/configure.in

index 96ad954c9cc96ae98eea7fd3beb8abfb30eccf1a..30178a185e8e30d1658cc8aef78258a885a9e48b 100644 (file)
@@ -1,21 +1,77 @@
 dnl
 dnl
+dnl arrange to stuff file in substitution
+dnl
+dnl AC_STUFF_FILE_PRE()
+define(AC_STUFF_FILE_PRE,
+[AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl
+1r $1
+AC_DIVERT_POP()dnl
+])
+dnl AC_STUFF_FILE_POST()
+define(AC_STUFF_FILE_POST,
+[AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl
+[$]r $1
+AC_DIVERT_POP()dnl
+])
+dnl
+dnl look for the top of the tree
+dnl
+AC_DEFUN(AC_CONFIG_FRAGMENTS_DEFAULT,
+[AC_CONFIG_FRAGMENTS(. .. ../.. ../../.. ../../../.. ../../../../.. ../../../../../..)])dnl
+dnl
+dnl search them looking for the directory named config.
+dnl Crude, but it works.
+dnl
+AC_DEFUN(AC_CONFIG_FRAGMENTS,
+[ac_config_fragdir=
+for ac_dir in $1; do
+  if test -d $srcdir/$ac_dir/config; then
+    ac_reltopdir=$ac_dir
+    ac_topdir=$srcdir/$ac_reltopdir
+    ac_config_fragdir=$ac_reltopdir/config
+    break
+  fi
+done
+if test -z "$ac_config_fragdir"; then
+  AC_MSG_ERROR([can not find config/ directory in $1])
+else
+  AC_CONFIG_AUX_DIR($ac_config_fragdir)
+fi
+  ac_tmpin="$srcdir/${ac_config_fragdir}/pre.in"
+  if test -r $ac_tmpin; then
+     ac_prepend=$ac_config_fragdir/pre.in
+  else
+     ac_prepend=
+  fi
+  ac_tmpin="$srcdir/${ac_config_fragdir}/post.in"
+  if test -r $ac_tmpin; then
+     ac_postpend=$ac_config_fragdir/post.in
+  else
+     ac_postpend=
+  fi
+AC_PROVIDE([AC_CONFIG_FRAGMENTS_DEFAULT])dnl
+])
+dnl
+dnl
+dnl set up buildtop stuff
+dnl
+define(AC_BUILDTOP,[.])dnl
+define(AC_SET_BUILDTOP,
+[AC_CONFIG_FRAGMENTS_DEFAULT()dnl
+AC_SUBST(BUILDTOP)dnl
+BUILDTOP=[$]ac_reltopdir
+])dnl
+dnl
+dnl
+dnl
+dnl
 dnl How do we find other scripts needed for configuration?
 dnl Scripts like Cygnus configure, config.sub, config.guess are stored
 dnl together in one directory.  For now, have the configure.in file
 dnl specify it explicitly with AC_CONFIG_AUX.  We'll provide a half-way
 dnl acceptable default of ${srcdir}.
 dnl
-define(AC_CONFIG_AUX,[
-  if test -f $1/config.sub ; then
-    config_aux=$1
-  else
-    config_aux=${srcdir}/$1
-  fi
-  config_sub=${config_aux}/config.sub
-  config_guess=${config_aux}/config.guess
-])dnl
-dnl
 define(AC__CONFIG_AUX,[
   if test "z${config_sub}" = "z" ; then
     config_sub=${srcdir}/config.sub
@@ -26,112 +82,19 @@ define(AC__CONFIG_AUX,[
 AC_PROVIDE([$0])dnl
 ])dnl
 dnl
-dnl set up buildtop stuff
-dnl
-define(AC_BUILDTOP,[.])dnl
-define(AC_SET_BUILDTOP,
-[BUILDTOP=AC_TOPDIR
-AC_SUBST(BUILDTOP)dnl
-])dnl
-dnl
-dnl
 dnl Does configure need to be run in immediate subdirectories of this
 dnl directory?
 dnl
-define(CONFIG_DIRS,[
-AC_REQUIRE([AC__CONFIG_AUX])dnl
-changequote(<<<,>>>)dnl
-SUBDIRS="$1"
-if [ -z "${norecursion}" ] ; then
-       recurse_args=
-       recur_state=
-# ok this stuff really belongs in ac_general.m4, but we'll live :-)
-       for arg in $configure_args; do
-               if test -z "$recur_state" ; then
-                       eval unquoted_arg="$arg"
-                       case "$unquoted_arg" in
-                               -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
-                               recur_state="skip"
-                               continue
-                               ;;
-                               -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
-                               ;;
-                               *)
-                               recurse_args="$recurse_args $arg"
-                               ;;
-                       esac
-               else
-                       recur_state=
-               fi
-       done
-       for configdir in $1 ; do
-
-               if [ -d ${srcdir}/${configdir} ] ; then
-                       eval echo Configuring ${configdir}... ${redirect}
-                       case "${srcdir}" in
-                       ".") ;;
-                       *)
-                               if [ ! -d ./${configdir} ] ; then
-                                       if mkdir ./${configdir} ; then
-                                               true
-                                       else
-                                               echo '***' "${progname}: could not make `pwd`/${configdir}" 1>&2
-                                               exit 1
-                                       fi
-                               fi
-                               ;;
-                       esac
-
-                       POPDIR=`pwd`
-                       cd ${configdir}
-
-### figure out what to do with srcdir
-                       case "${srcdir}" in
-                       ".") newsrcdir=${srcdir} ;; # no -srcdir option.  We're building in place.
-                       /*) # absolute path
-                               newsrcdir=${srcdir}/${configdir}
-                               srcdiroption="--srcdir=${newsrcdir}"
-                               ;;
-                       *) # otherwise relative
-                               newsrcdir=../${srcdir}/${configdir}
-                               srcdiroption="--srcdir=${newsrcdir}"
-                               ;;
-                       esac
-
-### check for guested configure, otherwise get Cygnus style configure
-### script from ${config_aux}
-                       if [ -f ${newsrcdir}/configure ] ; then
-                               recprog=${newsrcdir}/configure
-                       elif [ -f ${newsrcdir}/configure.in ] ; then
-                               recprog=${config_aux}/configure
-                       else
-                               eval echo No configuration information in ${configdir} ${redirect}
-                               recprog=
-                       fi
-
-### The recursion line is here.
-                       if [ ! -z "${recprog}" ] ; then
-                               if eval ${config_shell} ${recprog} $recurse_args ${srcdiroption}; then
-                                       true
-                               else
-                                       echo Configure in `pwd` failed, exiting. 1>&2
-                                       exit 1
-                               fi
-                       fi
-
-                       cd ${POPDIR}
-               fi
-       done
-fi
-changequote([,])dnl
-AC_SUBST(SUBDIRS)dnl
-])dnl
+define(CONFIG_DIRS,[AC_CONFIG_SUBDIRS($1)])dnl
+dnl
 dnl
 dnl append subdir rule -- MAKE_SUBDIRS("making",all)
 dnl
+define(AC_DIVERSION_MAKEFILE,9)dnl   things that get pushed on the makefile
+dnl
 define(MAKE_SUBDIRS,[
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 changequote(<<<,>>>)dnl
-divert(9)dnl
 
 $2::<<<
        @case '${MFLAGS}' in *[ik]*) set +e ;; esac; \
@@ -141,23 +104,34 @@ $2::<<<
                        $(MAKE) $(MFLAGS) CCOPTS="$(CCOPTS)" CC="$(CC)" \
                        CURRENT_DIR=$(CURRENT_DIR)$$i/ >>>$2<<<); \
        done>>>
-divert(0)dnl
 changequote([,])dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
-dnl take saved makefile stuff and put it in the Makeile
+dnl take saved makefile stuff and put it in the Makefile
 dnl
 define(EXTRA_RULES,[
 cat >> Makefile <<"SUBDIREOF"
-undivert(9)
+# [DIVERSION_MAKEFILE] contents
+undivert(AC_DIVERSION_MAKEFILE)
 SUBDIREOF
 ])dnl
 dnl
-dnl take saved makefile stuff and put it in the Makeile
+dnl take saved makefile stuff and put it in the argument
 dnl
 define(EXTRA_RULES_IN,[
 cat >> $1 <<"SUBDIREOF"
-undivert(9)
+# [DIVERSION_MAKEFILE] contents
+undivert(AC_DIVERSION_MAKEFILE)
+SUBDIREOF
+])dnl
+dnl
+dnl take saved makefile stuff and put it in the argument
+dnl
+define(EXTRA_RULES_OUT,[
+cat > $1 <<"SUBDIREOF"
+# [DIVERSION_MAKEFILE] contents
+undivert(AC_DIVERSION_MAKEFILE)
 SUBDIREOF
 ])dnl
 dnl
@@ -165,7 +139,7 @@ dnl drop in standard configure rebuild rules -- CONFIG_RULES
 dnl
 define(CONFIG_RULES,[
 WITH_CC dnl
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 [
 SHELL=/bin/sh
 
@@ -176,7 +150,7 @@ config.status: $(srcdir)/configure
 configure: $(srcdir)/configure.in
        cd $(srcdir); autoconf
 ]
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl check for sys_errlist -- DECLARE_SYS_ERRLIST
@@ -208,7 +182,7 @@ dnl drop in rules for building error tables -- ET_RULES
 dnl
 define(ET_RULES,[
 AC_PROG_AWK dnl
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 [
 
 SRCTOP=$(srcdir)/$(BUILDTOP)
@@ -224,13 +198,13 @@ COMPILE_ET_C= $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$@
        $(AWK) -f $(SRCTOP)/util/et/et_c.awk outfile=$][*.c $<
 
 ]
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl drop in rules for building command tables -- SS_RULES
 dnl
 define(SS_RULES,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 changequote({,})dnl
 {
 
@@ -246,7 +220,7 @@ MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds
 
 }
 changequote([,])dnl
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl check for <dirent.h> -- CHECK_DIRENT
@@ -278,7 +252,7 @@ dnl
 dnl set $(KRB5ROOT) from --with-krb5-root=value -- WITH_KRB5ROOT
 dnl
 define(WITH_KRB5ROOT,[
-AC_WITH([krb5-root],
+AC_ARG_WITH([krb5-root],[set path for Kerberos V5 config files],
 echo "krb5-root is $withval"
 KRB5ROOT=$withval,
 echo "krb5-root defaults to /krb5"
@@ -288,7 +262,7 @@ dnl
 dnl set $(KRB4) from --with-krb4=value -- WITH_KRB4
 dnl
 define(WITH_KRB4,[
-AC_WITH([krb4],
+AC_ARG_WITH([krb4],[include Kerberos V4 support],
 echo "krb4 is $withval"
 KRB4=$withval,
 echo "no krb4 support; use --with-krb4=krb4dir"
@@ -298,7 +272,7 @@ dnl
 dnl set $(CC) from --with-cc=value
 dnl
 define(WITH_CC,[
-AC_WITH([cc],
+AC_ARG_WITH([cc],[select compiler to use],
 echo CC=$withval
 CC=$withval,
 if test -z "$CC" ; then CC=cc; fi
@@ -308,7 +282,7 @@ dnl
 dnl set $(CCOPTS) from --with-ccopts=value
 dnl
 define(WITH_CCOPTS,[
-AC_WITH([ccopts],
+AC_ARG_WITH([ccopts],[select compiler command line options],
 echo "CCOPTS is $withval"
 CCOPTS=$withval
 CFLAGS="$CFLAGS $withval",
@@ -319,30 +293,31 @@ dnl Imake LinkFile rule, so they occur in the right place -- LinkFile(dst,src)
 dnl
 define(LinkFile,[
 AC_LN_S
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 changequote({,})dnl
-divert(9)dnl
 
 $1:: $2{
        $(RM) $}{@
        $(LN) $}{? $}{@
 
-}divert(0)dnl
+}
 changequote([,])dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl explicit append text (for non-general things) -- AppendRule(txt)
 dnl
 define(AppendRule,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 
 $1
 
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl create DONE file for lib/krb5 -- SubdirLibraryRule(list)
 define(SubdirLibraryRule,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 
 all:: DONE
 
@@ -351,13 +326,13 @@ DONE:: $1
 
 clean::
        $(RM) DONE
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl copy header file into include dir -- CopyHeader(hfile,hdir)
 dnl
 define(CopyHeader,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 
 includes:: $1
        @if test -d $2; then :; else (set -x; mkdir $2) fi
@@ -369,13 +344,13 @@ includes:: $1
 clean::
        $(RM) $2/$1
 
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl copy source header file into include dir -- CopySrcHeader(hfile,hdir)
 dnl
 define(CopySrcHeader,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 
 includes:: $1
        @if test -d $2; then :; else mkdir $2; fi
@@ -384,29 +359,29 @@ includes:: $1
                (set -x; [$](RM) $2/$1; [$](CP) $(srcdir)/$1 $2/$1) \
        fi
 
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl Krb5InstallHeaders(headers,destdir)
 define(Krb5InstallHeaders,[
-divert(9)dnl
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 install:: $1
        @set -x; for f in $1 ; \
        do [$](INSTALL_DATA) [$$]f $2/[$$]f ; \
        done
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 dnl PepsyTarget(basename)
 dnl
 define(PepsyTarget,[
-divert(9)
+AC_DIVERT_PUSH(AC_DIVERSION_MAKEFILE)dnl
 .SUFFIXES:     .py
 $1_defs.h $1_pre_defs.h $1-types.h $1_tables.c:: $1-asn.py
        @echo '***Ignore the warning message "Warning: Can'"'"'t find UNIV.ph failed"'
        [$](PEPSY) [$](PSYFLAGS) [$](srcdir)/$1-asn.py
 
-divert(0)dnl
+AC_DIVERT_POP()dnl
 ])dnl
 dnl
 define(UsePepsy,[
@@ -420,7 +395,7 @@ dnl
 dnl arbitrary DEFS -- ADD_DEF(value)
 dnl
 define(ADD_DEF,[
-DEFS="[$]DEFS "'$1'
+CPPFLAGS="[$]CPPFLAGS "'$1'
 ])dnl
 dnl
 dnl local includes are used -- KRB_INCLUDE
@@ -432,7 +407,7 @@ dnl
 dnl ISODE/pepsy includes are used -- ISODE_INCLUDE
 dnl
 define(ISODE_INCLUDE,[
-AC_ENABLE([isode],
+AC_ARG_ENABLE([isode],[build and use ISODE to generate ASN.1 stubs],
 ISODELIB='[$(TOPLIBD)/libisode.a]'
 ADD_DEF([-I${SRCTOP}/isode/h -I${BUILDTOP}/isode/h]),ISODELIB=)dnl
 AC_SUBST([ISODELIB])dnl
@@ -463,84 +438,30 @@ AC_PROGRAM_CHECK(LEX, flex, flex, lex)dnl
 if test -z "$LEXLIB"
 then
    case "$LEX" in
-   flex*) AC_HAVE_LIBRARY(fl, LEXLIB="-lfl") ;;
-   *) AC_HAVE_LIBRARY(l, LEXLIB="-ll") ;;
+   flex*) AC_CHECK_LIB(fl,main, LEXLIB="-lfl") ;;
+   *) AC_CHECK_LIB(l,main, LEXLIB="-ll") ;;
    esac
 fi
-AC_VERBOSE(setting LEXLIB to $LEXLIB)
+AC_MSG_RESULT(setting LEXLIB to $LEXLIB)
 AC_SUBST(LEX)AC_SUBST(LEXLIB)])dnl
 dnl
 dnl
 dnl allow for compilation with isode (yuck!)
 dnl
 define(ISODE_DEFS,
-[AC_ENABLE([isode],[ADD_DEF(-DKRB5_USE_ISODE)],)])dnl
-undefine([AC_PROG_INSTALL])dnl
-define(AC_PROG_INSTALL,
-[# Make sure to not get the incompatible SysV /etc/install and
-# /usr/sbin/install, which might be in PATH before a BSD-like install,
-# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
-# or the AFS install, which mishandles nonexistent args, or
-# /usr/ucb/install on SVR4, which tries to use the nonexistent group
-# `staff', or /sbin/install on IRIX which has incompatible command-line
-# syntax.  Sigh.
-#
-#     On most BSDish systems install is in /usr/bin, not /usr/ucb
-#     anyway.
-# This turns out not to be true, so the mere pathname isn't an indication
-# of whether the program works.  What we really need is a set of tests for
-# the install program to see if it actually works in all the required ways.
-#
-# Avoid using ./install, which might have been erroneously created
-# by make from ./install.sh.
-if test -z "${INSTALL}"; then
-  AC_CHECKING(for a BSD compatible install)
-  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
-  for ac_dir in $PATH; do
-    case "$ac_dir" in
-    ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
-    *)
-      # OSF1 and SCO ODT 3.0 have their own names for install.
-      for ac_prog in installbsd scoinst install; do
-        if test -f $ac_dir/$ac_prog; then
-         if test $ac_prog = install &&
-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
-           # AIX install.  It has an incompatible calling convention.
-           # OSF/1 installbsd also uses dspmsg, but is usable.
-           :
-         else
-           INSTALL="$ac_dir/$ac_prog -c"
-           break 2
-         fi
-       fi
-      done
-      ;;
-    esac
-  done
-  IFS="$ac_save_ifs"
-fi
-
-if test -z "$INSTALL"; then
-  # As a last resort, use the slow shell script.
-  for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../.. ${srcdir}/AC_TOPDIR/util/autoconf; do
-    if test -f $ac_dir/install.sh; then
-      INSTALL="$ac_dir/install.sh -c"; break
-    fi
-  done
-fi
-if test -z "$INSTALL"; then
-  AC_ERROR([can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.. ${srcdir}/AC_TOPDIR/util/autoconf])
-fi
-AC_SUBST(INSTALL)dnl
-AC_VERBOSE(setting INSTALL to $INSTALL)
-
-# Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-AC_SUBST(INSTALL_PROGRAM)dnl
-AC_VERBOSE(setting INSTALL_PROGRAM to $INSTALL_PROGRAM)
+[AC_ARG_ENABLE([isode],[build and use ISODE to generate ASN.1 stubs],
+[ADD_DEF(-DKRB5_USE_ISODE)],)])dnl
+dnl
+dnl make this one deeper...
+dnl
+dnl The default is `$srcdir' or `$srcdir/..' or `$srcdir/../..'.
+dnl There's no need to call this macro explicitly; just AC_REQUIRE it.
+AC_DEFUN(AC_CONFIG_AUX_DIR_DEFAULT,
+[AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../.. $srcdir/../../.. $srcdir/../../../.. $srcdir/../../../../..)])
+dnl
+dnl V5_OUTPUT_MAKEFILE
+dnl
+define(V5_AC_OUTPUT_MAKEFILE,
+[AC_OUTPUT(pre.out:[$]ac_prepend Makefile.out:Makefile.in post.out:[$]ac_postpend,[EXTRA_RULES], cat pre.out Makefile.out post.out > Makefile)])dnl
+dnl
 
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-AC_SUBST(INSTALL_DATA)dnl
-AC_VERBOSE(setting INSTALL_DATA to $INSTALL_DATA)
-])dnl
index 751fb0bb1265515d2308e1b913c10887c3d0cf27..1921a989eae0f428d2dcb16214963ad3e8173ea2 100644 (file)
@@ -3,11 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 6c3098b7e91fc19badb20f274afe92fc01cc8e9e..28f5995c7a0f26f7bbec4f9e83cefa193acda9a8 100644 (file)
@@ -1,11 +1,11 @@
 AC_INIT(configure.in)
 WITH_CCOPTS
 AC_SET_BUILDTOP
-AC_WITH([krb4],convert=convert,convert=)
+AC_ARG_WITH([krb4],[include Kerberos V4 support],convert=convert,convert=)
 CONFIG_DIRS(create destroy edit stash aname $convert)
 MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 1f544cb4120d64695fa181fe77397a9c4a692466..30afbf766ac1964455e455659f8539193218d361 100644 (file)
@@ -3,12 +3,12 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB4
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index c440a6186a907362fd56544d36b9616208684192..6e129292dc292ca9aa0ed56212805b09b4b055b0 100644 (file)
@@ -4,10 +4,10 @@ CONFIG_RULES
 WITH_KRB5ROOT
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index deb3819aa022f60b907c462a11be16d27b6e5c42..e606568b1419d1d28447cb8691e3f5ae0e22332b 100644 (file)
@@ -3,11 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 0cbedea275772b1f8486350eb67ffc588d99dd77..79c9224ee9417b9806c0fe8033ecb97d266af2a6 100644 (file)
@@ -3,13 +3,13 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 AC_HAVE_FUNCS(getcwd)
 SS_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 4d5cde70efe9264cb74c226f1387eb629c9cd63c..030b0a98af8e1408330bf5e51da913537e4208dc 100644 (file)
@@ -3,11 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 569afa1499d92d399c970dbe24a8084f6443db4f..fbf70b61b81ebf1b38c6e9a5102e3e0645028144 100644 (file)
@@ -5,17 +5,17 @@ ISODE_INCLUDE
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 dnl dbm libs for use of an_to_ln
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 dnl
 dnl AIX has them all; SCO might too
 LOGINLIBS=
-AC_HAVE_LIBRARY(-lodm,
-  AC_HAVE_LIBRARY(-ls,
-    AC_HAVE_LIBRARY(-lcfg
+AC_CHECK_LIB(odm,main,
+  AC_CHECK_LIB(s,main,
+    AC_CHECK_LIB(cfg,main
       LOGINLIBS="-lodm -ls -lcfg" 
       )))
 AC_SUBST(LOGINLIBS)
@@ -72,7 +72,7 @@ AC_DEFINE(NO_UT_PID))
 KRB_INCLUDE
 WITH_KRB5ROOT
 WITH_KRB4
-AC_WITH([krb4],
+AC_ARG_WITH([krb4],[include Kerberos V4 support],
 ADD_DEF(-DKRB5_KRB4_COMPAT)
 K4LIB='$(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes.a',
 echo "warning: no krb4 backwards compatibility support"
@@ -93,4 +93,4 @@ AC_COMPILE_CHECK([number of arguments to setpgrp],
 AC_DEFINE(SETPGRP_TWOARG))
 dnl
 ADD_DEF(-DKERBEROS)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 8d591b5ad7355fca7b0ce2f2109f3319d54ce4c5..eb1611e58b2b6d27d07770753b22e19f1e7e794f 100644 (file)
@@ -6,4 +6,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 181bfb682bfa4d4ab458ccbc759ccf29f1ae9b01..ffbfabd69113755887b0e04c8d5a12cb6ea95d90 100644 (file)
@@ -2,11 +2,11 @@ AC_INIT(gss-client.c)
 WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 AC_HAVE_HEADERS(unistd.h)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
 AC_PROG_INSTALL
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 3c18be934feb50db526dfb919ef669e506e9e6fe..ea794f00a65e51543d5879eacb035efd2f7057fe 100644 (file)
@@ -3,10 +3,10 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 AC_HAVE_HEADERS(unistd.h)
 WITH_KRB5ROOT
 AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR))
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 7d54192442a9b72cba502afaf3b254d947e8a67c..70158ca412b266dde4d43374ff4386ddc3179b9d 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 AC_SET_BUILDTOP
 CONFIG_RULES
 KRB_INCLUDE
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 AC_PROG_INSTALL
 CHECK_FCNTL
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 454e11a7ca09ea19f861a8d11b95ddc6be881b1c..7dec9792919cfb1c34dfe5ee28abd9330a101309 100644 (file)
@@ -5,11 +5,11 @@ ISODE_INCLUDE
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
 AC_FUNC_CHECK(vsprintf,AC_DEFINE(HAS_VSPRINTF))
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(BSD)
-AC_HAVE_LIBRARY(ndbm)
-AC_HAVE_LIBRARY(dbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(BSD,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 CHECK_WAIT_TYPE
 CHECK_FCNTL
 
@@ -26,4 +26,4 @@ AC_HEADER_CHECK(paths.h,AC_DEFINE(HAS_PATHS_H))
 
 KRB_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 5f1ad6f9086529c52083ce37dff5735eb0c9bd4a..9fa7895b06b1aebc180a3f68a38e1db060102835 100644 (file)
@@ -6,4 +6,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 3cfd79e9f58f85806c8ccf5c70428be6f66c9182..70609000733e9463d5b5c13d537db9122138bb04 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 5661c523f0dccdf51787fd383e6b8baafeabb4fe..ac43cc1240151c6db7322aa00ec73eb249972730 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index a3f83ea6405a5d1e6824ebddf313fe4121d8ebd2..ac3f1c15176dfea1039165633ffdca2a6909ac91 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 350af510f834ffa36f4ec5fd4b33e715e1fa8084..4290b2fc4145e6570bcecea04e743dfcd6dd1ef2 100644 (file)
@@ -6,4 +6,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index e89f02c15df235b6c472b79ab81ce7225f928f5d..8c63675a223cde0173d7ca8fa38ade2b246d13e9 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 1d5e36a66a043c285742b629edaf5f241981746d..9cbd99e87a4e8dd2f308103ddc8300d318871e65 100644 (file)
@@ -5,4 +5,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 141723e8dc4a3841f84c4ba6bdf3b963911488b4..8fd1cb59c0b5f58ef6e8061a9931a71e39fd7c00 100644 (file)
@@ -12,4 +12,4 @@ AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
 LIBOBJS="$LIBOBJS getent.o"
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index c528b8dbe8cd7b658070e688240ffc66ad449604..3bd3af4860e3355c8f279cf2f99368b452cb6e9a 100644 (file)
@@ -10,7 +10,7 @@ AC_VFORK
 KRB_INCLUDE
 ISODE_INCLUDE
 AC_HAVE_HEADERS(unistd.h sys/select.h)
-AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP)
+AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
 LIBS="$LIBS -ltermcap")
 AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
 if test -z "$ac_termio"; then
@@ -25,13 +25,13 @@ AC_HEADER_CHECK(sys/filio.h,AC_DEFINE(FILIO_H))
 AC_HEADER_CHECK(sys/stream.h,AC_DEFINE(STREAMS))
 AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
 AC_FUNC_CHECK(setupterm,AC_DEFINE(HAS_SETUPTERM))
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 AC_FUNC_CHECK(sigprocmask,
 AC_COMPILE_CHECK([sigset_t],
 [#include <signal.h>],
 [sigset_t x],
 AC_DEFINE(POSIX_SIGNALS)))
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+V5_AC_OUTPUT_MAKEFILE
index 5a81cd3c8740c2aa37a1443cfe0f93220b6945be..aafd8a86c8ddc41fcbacc1f43beb7f9471e3b083 100644 (file)
@@ -8,11 +8,11 @@ AC_SET_BUILDTOP
 AC_PROG_INSTALL
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_HAVE_LIBRARY(ndbm)
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(dbm)
-AC_HAVE_LIBRARY(termcap,AC_DEFINE(TERMCAP)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(dbm,main)
+AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
 LIBS="$LIBS -ltermcap")
 AC_HEADER_CHECK(termios.h,AC_DEFINE(USE_TERMIO) ac_termio=1)
 if test -z "$ac_termio"; then
@@ -32,4 +32,4 @@ AC_FUNC_CHECK(cgetent,AC_DEFINE(HAS_CGETENT))
 AC_COMPILE_CHECK([number of arguments to setpgrp],
 [#include <unistd.h>],[setpgrp(0,0)],
 AC_DEFINE(SETPGRP_TWOARG))
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index a7d7f44b02b46a1be6ad580a7ec7fea9245fac59..275eece5a10e77cec8cd851b15de7ce2878fc428 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 54070951fda55441d91dcb24d56d550435f1c8d3..ea8a1e984e20c986232a11aca4fb2460dcdeb33e 100644 (file)
@@ -6,4 +6,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index fcd0bfaa6692da6c60d2ca6163415f2b63dcf6bd..045b4c8645acb64922e7b01bffbe878199c5ff75 100644 (file)
@@ -6,4 +6,4 @@ CONFIG_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index a071754ffe55077fb143b6715729737b8f17d8d8..06b99a3331e91b5efb10681c62150be9505e7235 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index ed458994ec6bca56609ccf2543bfed3f361359b4..608b04565f0d117613b10e10abedf3d3e351401e 100644 (file)
@@ -6,4 +6,4 @@ CONFIG_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index b2861544f319f31b37e06350d6158cccfd581b0a..5bed1e5b789da23d63ee850979ee8340bbc5b7ce 100644 (file)
@@ -3,12 +3,12 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(ndbm)
-AC_HAVE_LIBRARY(dbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
 CHECK_STDARG
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
diff --git a/src/config/install-sh b/src/config/install-sh
new file mode 100644 (file)
index 0000000..31420ab
--- /dev/null
@@ -0,0 +1,236 @@
+#!/bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5.
+#
+# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+#
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+tranformbasename=""
+transform_arg=""
+instcmd="$mvprog"
+chmodcmd="$chmodprog 0755"
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=""
+dst=""
+dir_arg=""
+
+while [ x"$1" != x ]; do
+    case $1 in
+       -c) instcmd="$cpprog"
+           shift
+           continue;;
+
+       -d) dir_arg=true
+           shift
+           continue;;
+
+       -m) chmodcmd="$chmodprog $2"
+           shift
+           shift
+           continue;;
+
+       -o) chowncmd="$chownprog $2"
+           shift
+           shift
+           continue;;
+
+       -g) chgrpcmd="$chgrpprog $2"
+           shift
+           shift
+           continue;;
+
+       -s) stripcmd="$stripprog"
+           shift
+           continue;;
+
+       -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+           shift
+           continue;;
+
+       -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+           shift
+           continue;;
+
+       *)  if [ x"$src" = x ]
+           then
+               src=$1
+           else
+               # this colon is to work around a 386BSD /bin/sh bug
+               :
+               dst=$1
+           fi
+           shift
+           continue;;
+    esac
+done
+
+if [ x"$src" = x ]
+then
+       echo "install:  no input file specified"
+       exit 1
+else
+       true
+fi
+
+if [ x"$dir_arg" != x ]; then
+       dst=$src
+       src=""
+       
+       if [ -d $dst ]; then
+               instcmd=:
+       else
+               instcmd=mkdir
+       fi
+else
+
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+# might cause directories to be created, which would be especially bad 
+# if $src (and thus $dsttmp) contains '*'.
+
+       if [ -f $src -o -d $src ]
+       then
+               true
+       else
+               echo "install:  $src does not exist"
+               exit 1
+       fi
+       
+       if [ x"$dst" = x ]
+       then
+               echo "install:  no destination specified"
+               exit 1
+       else
+               true
+       fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+       if [ -d $dst ]
+       then
+               dst="$dst"/`basename $src`
+       else
+               true
+       fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+#  this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
+defaultIFS='   
+'
+IFS="${IFS-${defaultIFS}}"
+
+oIFS="${IFS}"
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS="${oIFS}"
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+       pathcomp="${pathcomp}${1}"
+       shift
+
+       if [ ! -d "${pathcomp}" ] ;
+        then
+               $mkdirprog "${pathcomp}"
+       else
+               true
+       fi
+
+       pathcomp="${pathcomp}/"
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+       $doit $instcmd $dst &&
+
+       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
+       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
+       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
+       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+       if [ x"$transformarg" = x ] 
+       then
+               dstfile=`basename $dst`
+       else
+               dstfile=`basename $dst $transformbasename | 
+                       sed $transformarg`$transformbasename
+       fi
+
+# don't allow the sed command to completely eliminate the filename
+
+       if [ x"$dstfile" = x ] 
+       then
+               dstfile=`basename $dst`
+       else
+               true
+       fi
+
+# Make a temp file name in the proper directory.
+
+       dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+       $doit $instcmd $src $dsttmp &&
+
+       trap "rm -f ${dsttmp}" 0 &&
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing.  If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above "$doit $instcmd $src $dsttmp" command.
+
+       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
+       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
+       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
+       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
+
+# Now rename the file to the real destination.
+
+       $doit $rmcmd -f $dstdir/$dstfile &&
+       $doit $mvcmd $dsttmp $dstdir/$dstfile 
+
+fi &&
+
+
+exit 0
index 50896f6aa818e4832913431c22c455992ffcbf3b..aee7a04cce1e43b7013ccd623bc006b1d776acba 100644 (file)
@@ -5,7 +5,8 @@ BUILDTOP = @BUILDTOP@
 srcdir = @srcdir@
 VPATH = @srcdir@
 
-DEFS = @DEFS@
+CPPFLAGS = @CPPFLAGS@
+DEFS = @DEFS@ $(CPPFLAGS)
 CC = @CC@
 CCOPTS = @CCOPTS@
 LIBS = @LIBS@
@@ -46,7 +47,7 @@ LEXLIB = @LEXLIB@
 YACC = @YACC@
 
 SRCTOP = $(srcdir)/$(BUILDTOP)
-SUBDIRS = @SUBDIRS@
+SUBDIRS = @subdirs@
 
 TOPLIBD = $(BUILDTOP)/lib
 
index b2809ab87a2ae847747fcb791b6fde7ce274f0d4..a7ffd5f531b83be5be5bbf6dbdede349cad3fcc7 100644 (file)
@@ -3,10 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 WITH_KRB5ROOT
-AC_ENABLE([isode],isode=isode,)
+AC_ARG_ENABLE([isode],[build and use ISODE to generate ASN.1 stubs], isode=isode,)
 CONFIG_DIRS(util include $isode lib kdc admin kadmin slave clients appl tests)
 MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 MAKE_SUBDIRS("checking",check)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+dnl dnl AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 075bec774abb0d1c74333ea83e5f1fde19c94013..4fc675db5f377c2fa32a37fa14e1a66376f9213d 100644 (file)
@@ -5,4 +5,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 648d3e0164576bfc10ac7b56d78052a12b1947d2..9c2cb0e79e7afe7a536b616ac236d5ca5d57db4b 100644 (file)
@@ -2,4 +2,4 @@ AC_INIT(configure.in)
 AC_SET_BUILDTOP
 CONFIG_RULES
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 0d3ac7d679b26d774a1e4f67cf739df6af5d38c3..de14b3cd9fecd44b448298affd24e9c89de03d5f 100644 (file)
@@ -83,10 +83,10 @@ AC_HAVE_HEADERS(sys/time.h)
 AC_HEADER_CHECK(netinet/in.h,AC_DEFINE(KRB5_USE_INET))
 AC_HEADER_CHECK(unistd.h,AC_DEFINE(HAS_UNISTD_H))
 
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 AC_FUNC_CHECK([dbm_open], , AC_DEFINE(ODBM))
 
 WITH_CCOPTS
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 55ac24f353d1977d4a6d59278726888b4b7712b9..7c8d29c885244939156632a3f6e770473688e803 100644 (file)
@@ -3,4 +3,4 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_REPLACE_FUNCS(strdup)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 16ba2ef31c7a35958050dde80662607f13efc0b1..2d0ac6405f6af9d15851385e5f871484dd8d8a50 100644 (file)
@@ -5,4 +5,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 WITH_CCOPTS
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index a34ab3b91fd93a7d2a97f0100818bdb7c380545d..c3b44a517d893cc2b738eb7d5ce54c822d8994a6 100644 (file)
@@ -2,4 +2,4 @@ AC_INIT(configure.in)
 WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 27949d1869af76a095545beaa6fd30f6bef2ec25..c3d514230ee91fb27b3238cbbaf6f86d3e85c2f8 100644 (file)
@@ -5,4 +5,4 @@ AC_SET_BUILDTOP
 AC_PROG_LEX
 AC_YYTEXT_POINTER
 HAVE_YYLINENO
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index aa380a95d7f233a62655dd14ad78bd2b587b1b09..b8e69b39e8398490fc91510392d4f325579ef9f6 100644 (file)
@@ -2,6 +2,6 @@ AC_INIT(configure.in)
 WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(socket)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(socket,main)
+V5_AC_OUTPUT_MAKEFILE
index a34ab3b91fd93a7d2a97f0100818bdb7c380545d..c3b44a517d893cc2b738eb7d5ce54c822d8994a6 100644 (file)
@@ -2,4 +2,4 @@ AC_INIT(configure.in)
 WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 6d4fa288f4bbd33191ce29a1ece3552141c402b7..e4c57b3e730b57f38ce41f416d0f7d9834ed43f4 100644 (file)
@@ -3,10 +3,10 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 ET_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 35e3b5f762eb86f546ac49e528f2bac59d51bb49..f9ae2bb6ff9336c2ab1c10bffe6af23ce76b6fac 100644 (file)
@@ -1,11 +1,11 @@
 AC_INIT(configure.in)
 WITH_CCOPTS
 AC_SET_BUILDTOP
-AC_WITH([krb4],v4server=v4server,v4server=)
+AC_ARG_WITH([krb4],[include Kerberos V4 support],v4server=v4server,v4server=)
 CONFIG_DIRS(client kpasswd server $v4server)
 MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 CONFIG_RULES
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 9ac066bac8e12c2595d884c3cb6a3f7eddf2ebfe..31cf2b884c29247e4705b9b8d798a10b3cd7d565 100644 (file)
@@ -3,8 +3,8 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 AC_HAVE_HEADERS(unistd.h)
 AC_COMPILE_CHECK([ut_pid in struct utmp],
 [#include <utmp.h>],
@@ -26,4 +26,4 @@ ET_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index e840ce250c3b82a6ead66c1fc69cd8387f67f4cf..91ccb187a9627c964d57a88064d662deed4779e4 100644 (file)
@@ -4,21 +4,21 @@ CONFIG_RULES
 ISODE_DEFS
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
 ET_RULES
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB4
 WITH_KRB5ROOT
-AC_WITH([krb4],
+AC_ARG_WITH([krb4],[include Kerberos V4 support],
 ADD_DEF(-DKRB4)
 ADD_DEF(-DBACKWARD_COMPAT)
 K4LIB='$(KRB4)/lib/libkrb.a $(TOPLIBD)/libdes425.a $(KRB4)/lib/libdes.a',
 echo "warning: no krb4 support will be built in kdc"
 K4LIB=)
 AC_SUBST(K4LIB)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index baeb2860505ee0974bdd6c81bfe5b3ad726d8cb4..328fe21139980984b8a65eb17e12256326f94ecf 100644 (file)
@@ -15,4 +15,4 @@ LinkFile(libgssapi_krb5.a, gssapi/libgssapi_krb5.a)
 AppendRule([all:: libkrb5.a libcrypto.a])
 AppendRule([all:: libgssapi_krb5.a])
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index ff28db2865229601fa7f54fb0b55346994f70cfd..e4cc97542a783b2bae8c62bfcc73e815dd8ad5e0 100644 (file)
@@ -13,4 +13,4 @@ MAKE_SUBDIRS("checking",check)
 AppendRule([all:: libcrypto.a])
 KRB_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 52832f2ac724c6b5340f34b8d849c57a0c3ac03d..f5e1ec7be856c8ea2cbae7069906879b90e6a158 100644 (file)
@@ -4,4 +4,4 @@ AC_SET_BUILDTOP
 CONFIG_RULES
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 34428817164ffcbad56486374d5871c072941ecb..7a45f40e0b378e9e07e83076df7bf5e844a07749 100644 (file)
@@ -2,9 +2,9 @@ AC_INIT(configure.in)
 WITH_CCOPTS
 AC_SET_BUILDTOP
 CONFIG_RULES
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 52832f2ac724c6b5340f34b8d849c57a0c3ac03d..f5e1ec7be856c8ea2cbae7069906879b90e6a158 100644 (file)
@@ -4,4 +4,4 @@ AC_SET_BUILDTOP
 CONFIG_RULES
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 52832f2ac724c6b5340f34b8d849c57a0c3ac03d..f5e1ec7be856c8ea2cbae7069906879b90e6a158 100644 (file)
@@ -4,4 +4,4 @@ AC_SET_BUILDTOP
 CONFIG_RULES
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index dc3860edcd3a6b6870866414bd1a86602579fe86..4ce58eb8e0e4d92b8e0a7b8d3abcfccf5bb0a5f2 100644 (file)
@@ -7,4 +7,4 @@ KRB_INCLUDE
 AC_LN_S
 AC_REPLACE_FUNCS(memmove)
 AC_HAVE_FUNCS(srand48 srand srandom getpid)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index e36bba09278da33850bf78d25cf5b5a8d2417b97..a37d5364d9d91ad3415198ed329341cdfa4ff8ce 100644 (file)
@@ -9,4 +9,4 @@ AC_PROG_INSTALL
 AppendRule([all:: libdes425.a])
 KRB_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 4f1adba592264c6f97a120eb5c1003340510e670..108c924e04e2e41e15660af1129aed31541930e2 100644 (file)
@@ -11,4 +11,4 @@ MAKE_SUBDIRS("cleaning",clean)
 AppendRule([all:: libgssapi_krb5.a])
 WITH_CCOPTS
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index c8b2873f6062d555c669a241460f694bd1afb8d0..7a95a174bf57c33a7648822511d3b80b400ee9e4 100644 (file)
@@ -8,4 +8,4 @@ KRB_INCLUDE
 AC_SIZE_T
 CopySrcHeader(gssapi.h,[$(EHDRDIR)])
 CopySrcHeader(gssapi_generic.h,[$(EHDRDIR)])
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 812fd469cc84f3061f7444775120df0405395308..19ec1e360c82b41e0ef2991dd90d6432d26cc9af 100644 (file)
@@ -5,4 +5,4 @@ AC_SET_BUILDTOP
 ET_RULES
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 4bf1be7cb4d830d208f3345932b90411050ef037..b7d42136317b4d8e278d592f6c1d9acf3e5fffe7 100644 (file)
@@ -10,4 +10,4 @@ AC_HAVE_HEADERS(unistd.h)
 AppendRule([all:: libkdb5.a])
 KRB_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 36b1eb3bcc378daa338f30457af1294bdadb127b..a06894852a5a24900f9274f3252011d951cc03e5 100644 (file)
@@ -12,4 +12,4 @@ KRB_INCLUDE
 WITH_KRB5ROOT
 ISODE_INCLUDE
 CopyHeader(krb_err.h,[$(EHDRDIR)])
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 23e19a34ba8ee461ebfcfcc1915a47c12f97dc48..9e62843a93940bc07cae27e52116ee56f611c0e6 100644 (file)
@@ -4,7 +4,7 @@ WITH_CC dnl since we're not doing CONFIG_RULES
 dnl CONFIG_RULES
 AC_SET_BUILDTOP
 SubdirLibraryRule([${OBJS}])
-AC_ENABLE([isode],[
+AC_ARG_ENABLE([isode],[build and use ISODE to generate ASN.1 stubs],[
 UsePepsy
 PepsyTarget(KRB5)
 ISODEMAKEFILE=Makefile.isode],[
@@ -29,4 +29,7 @@ Krb5InstallHeaders(krb5_encode.h krb5_decode.h, [$(KRB5_INCDIR)/krb5/asn.1])
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile Makefile.isode Makefile.sane,[EXTRA_RULES_IN($ISODEMAKEFILE)])
+EXTRA_RULES_OUT(includes.out)
+AC_OUTPUT(pre.out:[$]ac_prepend Makefile.out:Makefile.in post.out:[$]ac_postpend Makefile.isode.out:Makefile.isode.in Makefile.sane.out:Makefile.sane.in,
+       ,
+       [cat pre.out Makefile.out post.out > Makefile; cat pre.out [$]{ISODEMAKEFILE}.out post.out includes.out > [$]{ISODEMAKEFILE}])
index 187ff79757e9449cc6c933da1fd19b5b96dffcf0..44193b49edb8dc9e5e5be41f181c958a51f58da7 100644 (file)
@@ -11,4 +11,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 SubdirLibraryRule([$(OBJS)])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index ae3fdc4c93f0ae18ef2e3df291568d984f4493c4..20561dac0163336ac32f70594bfa58476d77e1ab 100644 (file)
@@ -6,4 +6,4 @@ ISODE_DEFS
 AC_HAVE_HEADERS(unistd.h)
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 634100934f1c01bf90dfde7c13e5eaccc7eea0da..4ef9516be5c7c1add3a262857d7cde0f53140240 100644 (file)
@@ -5,4 +5,4 @@ CONFIG_RULES
 ISODE_DEFS
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 482e824979e65262fabdbc8a1416588a97402f4b..90d1a816715f72a72f166fc1259c015393757301 100644 (file)
@@ -11,4 +11,4 @@ MAKE_SUBDIRS("cleaning",clean)
 AppendRule([all:: libkrb5.a])
 WITH_CCOPTS
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index dd8375b4071e6711161d5e09db375e09be8830f5..42512e334c9a94a519b62c0e049cabc9d7628a19 100644 (file)
@@ -6,7 +6,7 @@ AC_SET_BUILDTOP
 ET_RULES
 SS_RULES
 KRB_INCLUDE
-AC_ENABLE([isode],[
+AC_ARG_ENABLE([isode],[build and use ISODE to generate ASN.1 stubs],[
 ASN1_HDRS=isode_err.h
 ASN1_OBJS=isode_err.o
 ASN1_SRCS=isode_err.c
@@ -25,4 +25,4 @@ CopyHeader(krb5_err.h,[$(EHDRDIR)])
 CopyHeader(kdb5_err.h,[$(EHDRDIR)])
 CopyHeader(adm_err.h,[$(EHDRDIR)])
 CopyHeader(asn1_err.h,[$(EHDRDIR)])
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 054fe24052930fd359245341396e5e1d677162e3..70598a5c09f539b98da140f1cd256894eac21a87 100644 (file)
@@ -6,4 +6,4 @@ ISODE_DEFS
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 4d25a76cf4e350736cd2d8a5c421a4386427dd14..ede7ee0a7f6e432a1abcf92815510c69953632a4 100644 (file)
@@ -11,4 +11,4 @@ MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
 SubdirLibraryRule([$(OBJS)])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 634100934f1c01bf90dfde7c13e5eaccc7eea0da..4ef9516be5c7c1add3a262857d7cde0f53140240 100644 (file)
@@ -5,4 +5,4 @@ CONFIG_RULES
 ISODE_DEFS
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index beaf0041a4a0d70bdb98765dbebcab3482a099ac..9af1e09ccbc96d9b2184b14c84a163924665c076 100644 (file)
@@ -12,4 +12,4 @@ ISODE_INCLUDE
 AC_WITH([krb4],
 ADD_DEF(-DKRB5_KRB4_COMPAT),
 echo "warning: no krb4 support will be built into compat_recvauth")
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 7ac4f5ec23ab9fe7ee24528d676e15f3250d5f54..fa14918a38de6c99308ac6d3dfb728079db97120 100644 (file)
@@ -11,4 +11,4 @@ AC_HEADER_EGREP(time_t, sys/types.h, AC_DEFINE(POSIX_TYPES))
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index f1ee848b6758df544a9d9a2d66cba01b240d6f3b..d4bd33436a56774035f20c0fe6d7c11374ce84a3 100644 (file)
@@ -9,4 +9,4 @@ AC_CONST
 AC_HEADER_CHECK(paths.h,AC_DEFINE(HAS_PATHS_H))
 AC_REPLACE_FUNCS(vfprintf vsprintf strdup strerror memmove daemon)
 AC_FUNC_CHECK(vsyslog, ,[LIBOBJS="[$]LIBOBJS syslog.o"])
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 054fe24052930fd359245341396e5e1d677162e3..70598a5c09f539b98da140f1cd256894eac21a87 100644 (file)
@@ -6,4 +6,4 @@ ISODE_DEFS
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
 ISODE_INCLUDE
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index fae0c9cf332f141f7c5534f0c565167aa1a12022..85a7a0ded06ec10296f72e78aca3c7041eefdea8 100644 (file)
@@ -4,10 +4,10 @@ CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
 AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(util)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(util,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 6970ba92f8aa7f7cb0b571e6ff274329b8b3f02a..0c377200dc2570ec807d7dc166fc4047575e74cb 100644 (file)
@@ -4,9 +4,9 @@ CONFIG_RULES
 ISODE_DEFS
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index ae308c4278bec518ea708f3271c1cdf708067aa9..87a84c41f3f9fcb4d81e0c51031c820dd64c8f14 100644 (file)
@@ -7,4 +7,4 @@ MAKE_SUBDIRS("cleaning",clean)
 MAKE_SUBDIRS("installing",install)
 MAKE_SUBDIRS("checking",check)
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 1c1902c44e80e38d0907cc793476c5b1f7f36a58..66f9b8845788101e5a0a5e9f713c9d75ddfba6b4 100644 (file)
@@ -3,11 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index eb641cf25767ec6ec64abe8099a191b6bbbce877..3fe5e05238624d16e649ab1913f96583acf67a0e 100644 (file)
@@ -3,9 +3,9 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index c067f1f3d04f9bf8498c1361e8d9f3aa9882fe58..2f27eb116d5129a034e628951b6fbad56816f6c8 100644 (file)
@@ -3,11 +3,11 @@ WITH_CCOPTS
 CONFIG_RULES
 AC_SET_BUILDTOP
 AC_PROG_INSTALL
-AC_HAVE_LIBRARY(socket)
-AC_HAVE_LIBRARY(nsl)
-AC_HAVE_LIBRARY(-lndbm)
-AC_HAVE_LIBRARY(-ldbm)
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
+AC_CHECK_LIB(ndbm,main)
+AC_CHECK_LIB(dbm,main)
 KRB_INCLUDE
 ISODE_INCLUDE
 WITH_KRB5ROOT
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index eb25de907778c6bdd1790fc45b8b8755c299d001..efbec92836f80f7b7dabd7cbfc92b993f5fb3a87 100644 (file)
@@ -5,4 +5,4 @@ AC_SET_BUILDTOP
 CONFIG_DIRS(et ss)
 MAKE_SUBDIRS("making",all)
 MAKE_SUBDIRS("cleaning",clean)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 829f029d770d9949f41542436ad4e586447dfdb8..8b0b695b56c8b05fcf88d79df91f6fd03ab44823 100644 (file)
@@ -15,4 +15,4 @@ AC_HEADER_EGREP(perror, errno.h, AC_DEFINE(HDR_HAS_PERROR))
 CHECK_STDARG
 AC_HAVE_HEADERS(stdlib.h)
 CopySrcHeader(com_err.h,$(BUILDTOP)/include)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 9f6c9f6f9b83dc36b4a214de82054ca75db8fff5..377724bdfd3f4abf20ce89e4931423e0418d9e89 100644 (file)
@@ -22,4 +22,4 @@ CopySrcHeader(mit-sipb-copyright.h,$(BUILDTOP)/include/ss)
 CopySrcHeader(copyright.h,$(BUILDTOP)/include/ss)
 CopyHeader(ss_err.h,$(BUILDTOP)/include/ss)
 CopySrcHeader(ss_internal.h,$(BUILDTOP)/include/ss)
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE
index 8d01561c471a4dd1594055fc8fc8e388c890c6b2..92ca486b27681227d32d2eb9d99664f5e48fcbae 100644 (file)
@@ -2,4 +2,4 @@ AC_INIT(unifdef.c)
 WITH_CCOPTS
 AC_SET_BUILDTOP
 CONFIG_RULES
-AC_OUTPUT(Makefile,[EXTRA_RULES])
+V5_AC_OUTPUT_MAKEFILE