003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/m4
usr
/
src
/
contrib
/
ntp
/
sntp
/
m4
/
📁
..
📄
ax_c99_struct_init.m4
(1.64 KB)
📄
define_dir.m4
(1.16 KB)
📄
hms_search_lib.m4
(701 B)
📄
libtool.m4
(298.56 KB)
📄
ltoptions.m4
(14.17 KB)
📄
ltsugar.m4
(4.28 KB)
📄
ltversion.m4
(699 B)
📄
lt~obsolete.m4
(6 KB)
📄
ntp_af_unspec.m4
(597 B)
📄
ntp_cacheversion.m4
(4.08 KB)
📄
ntp_compiler.m4
(5.15 KB)
📄
ntp_crosscompile.m4
(300 B)
📄
ntp_crypto_rand.m4
(1.41 KB)
📄
ntp_debug.m4
(549 B)
📄
ntp_dir_sep.m4
(589 B)
📄
ntp_facilitynames.m4
(797 B)
📄
ntp_googletest.m4
(1.35 KB)
📄
ntp_harden.m4
(1.19 KB)
📄
ntp_ipv6.m4
(10.55 KB)
📄
ntp_lib_m.m4
(388 B)
📄
ntp_libevent.m4
(6.34 KB)
📄
ntp_libntp.m4
(24.98 KB)
📄
ntp_lineeditlibs.m4
(2.9 KB)
📄
ntp_locinfo.m4
(3.2 KB)
📄
ntp_openssl.m4
(9.84 KB)
📄
ntp_pkg_config.m4
(673 B)
📄
ntp_problemtests.m4
(1.96 KB)
📄
ntp_prog_cc.m4
(460 B)
📄
ntp_rlimit.m4
(2.55 KB)
📄
ntp_sntp.m4
(643 B)
📄
ntp_sysexits.m4
(352 B)
📄
ntp_unitytest.m4
(531 B)
📄
ntp_ver_suffix.m4
(404 B)
📄
ntp_vpathhack.m4
(1.52 KB)
📄
openldap-thread-check.m4
(18.72 KB)
📄
openldap.m4
(32.08 KB)
📄
os_cflags.m4
(3.27 KB)
📄
snprintf.m4
(11.16 KB)
📄
sntp_problemtests.m4
(1.35 KB)
📄
version.m4
(39 B)
Editing: ntp_lineeditlibs.m4
AC_DEFUN([NTP_LINEEDITLIBS], [ NTP_ORIG_LIBS="$LIBS" AC_ARG_WITH( [lineeditlibs], [AS_HELP_STRING( [--with-lineeditlibs], [edit,editline (readline may be specified if desired)] )], [use_lineeditlibs="$withval"], [use_lineeditlibs="edit,editline"] ) AC_MSG_CHECKING([line editing libraries]) AC_MSG_RESULT([$use_lineeditlibs]) case "$use_lineeditlibs" in no) ntp_lib_lineedit=no ;; *) for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do for term_lib in "" termcap curses ncurses; do case "$term_lib" in '') TRY_LIB="-l$lineedit_lib" ;; *) TRY_LIB="-l$lineedit_lib -l$term_lib" ;; esac LIBS="$NTP_ORIG_LIBS $TRY_LIB" AC_MSG_CHECKING([for readline() with $TRY_LIB]) AC_TRY_LINK_FUNC([readline], [ntp_lib_lineedit="$TRY_LIB"]) case "$ntp_lib_lineedit" in '') AC_MSG_RESULT([no]) ;; *) # Use readline() AC_MSG_RESULT([yes]) break esac case "$term_lib" in '') # do not try el_gets without a terminal library ;; *) AC_MSG_CHECKING([for el_gets() with $TRY_LIB]) AC_TRY_LINK_FUNC([el_gets], [ntp_lib_lineedit="$TRY_LIB"]) case "$ntp_lib_lineedit" in '') AC_MSG_RESULT([no]) ;; *) # Use el_gets() AC_MSG_RESULT([yes]) break ;; esac # $ntp_lib_lineedit esac # $term_lib done case "$ntp_lib_lineedit" in '') ;; *) break ;; esac done LIBS="$NTP_ORIG_LIBS" ;; esac # $use_lineeditlibs case "$ntp_lib_lineedit" in '') ntp_lib_lineedit="no" ;; no) ;; *) EDITLINE_LIBS="$ntp_lib_lineedit" AC_SUBST([EDITLINE_LIBS]) ;; esac # $ntp_lib_lineedit case "$ntp_lib_lineedit" in no) ;; *) AC_CHECK_HEADERS([readline.h readline/readline.h histedit.h]) AC_CHECK_HEADERS([history.h readline/history.h]) case "$ac_cv_header_histedit_h" in yes) AC_CACHE_CHECK( [number of arguments to el_init()], [ntp_cv_el_init_args], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include <stdio.h> #include <histedit.h> ]], [[ el_init("conftest", stdin, stdout, stderr); ]] )], [ntp_cv_el_init_args=4], [ntp_cv_el_init_args=3] )] ) AC_DEFINE_UNQUOTED( [EL_INIT_ARGS], [$ntp_cv_el_init_args], [number of args to el_init()] ) esac AC_MSG_CHECKING([whether readline supports history]) ntp_lib_lineedit_history="no" ORIG_LIBS="$LIBS" LIBS="$ORIG_LIBS $ntp_lib_lineedit" AC_TRY_LINK_FUNC([add_history], [ntp_lib_lineedit_history="yes"]) LIBS="$ORIG_LIBS" AC_MSG_RESULT([$ntp_lib_lineedit_history]) case "$ntp_lib_lineedit_history" in yes) AC_DEFINE([HAVE_READLINE_HISTORY], [1], [Define if your readline library has \`add_history']) esac esac # $ntp_lib_lineedit AS_UNSET([NTP_ORIG_LIBS]) AS_UNSET([ORIG_LIBS]) AS_UNSET([TRY_LIB]) AS_UNSET([use_lineeditlibs]) ])dnl
Upload File
Create Folder