File indexing completed on 2018-03-02 18:44:45 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
ec6cf3b09d Ed H*0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 AC_DEFUN(AM_INIT_AUTOMAKE,
0023 [AC_REQUIRE([AC_PROG_INSTALL])
0024 PACKAGE=[$1]
0025 AC_SUBST(PACKAGE)
0026 VERSION=[$2]
0027 AC_SUBST(VERSION)
0028
0029 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
0030 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
0031 fi
0032 ifelse([$3],,
0033 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
0034 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
0035 AC_REQUIRE([AM_SANITY_CHECK])
0036 AC_REQUIRE([AC_ARG_PROGRAM])
0037
0038 missing_dir=`cd $ac_aux_dir && pwd`
0039 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
0040 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
0041 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
0042 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
0043 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
0044 AC_REQUIRE([AC_PROG_MAKE_SET])])
0045
0046
0047
0048
0049
0050 AC_DEFUN(AM_SANITY_CHECK,
0051 [AC_MSG_CHECKING([whether build environment is sane])
0052
0053 sleep 1
0054 echo timestamp > conftestfile
0055
0056
0057
0058
0059
0060 if (
0061 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
0062 if test "[$]*" = "X"; then
0063
0064 set X `ls -t $srcdir/configure conftestfile`
0065 fi
0066 if test "[$]*" != "X $srcdir/configure conftestfile" \
0067 && test "[$]*" != "X conftestfile $srcdir/configure"; then
0068
0069
0070
0071
0072
0073 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
0074 alias in your environment])
0075 fi
0076
0077 test "[$]2" = conftestfile
0078 )
0079 then
0080
0081 :
0082 else
0083 AC_MSG_ERROR([newly created file is older than distributed files!
0084 Check your system clock])
0085 fi
0086 rm -f conftest*
0087 AC_MSG_RESULT(yes)])
0088
0089
0090
0091 AC_DEFUN(AM_MISSING_PROG,
0092 [AC_MSG_CHECKING(for working $2)
0093
0094
0095
0096 if ($2 --version) < /dev/null > /dev/null 2>&1; then
0097 $1=$2
0098 AC_MSG_RESULT(found)
0099 else
0100 $1="$3/missing $2"
0101 AC_MSG_RESULT(missing)
0102 fi
0103 AC_SUBST($1)])
0104
0105
0106
0107
0108
0109
0110
0111
0112 AC_DEFUN(CMU_SOCKETS, [
0113 save_LIBS="$LIBS"
0114 LIB_SOCKET=""
0115 AC_CHECK_FUNC(connect, :,
0116 AC_CHECK_LIB(nsl, gethostbyname,
0117 LIB_SOCKET="-lnsl $LIB_SOCKET")
0118 AC_CHECK_LIB(socket, connect,
0119 LIB_SOCKET="-lsocket $LIB_SOCKET")
0120 )
0121 LIBS="$LIB_SOCKET $save_LIBS"
0122 AC_CHECK_FUNC(res_search, :,
0123 AC_CHECK_LIB(resolv, res_search,
0124 LIB_SOCKET="-lresolv $LIB_SOCKET")
0125 )
0126 LIBS="$LIB_SOCKET $save_LIBS"
0127 AC_CHECK_FUNCS(dn_expand dns_lookup)
0128 LIBS="$save_LIBS"
0129 AC_SUBST(LIB_SOCKET)
0130 ])
0131