mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 18:38:54 +00:00
Update obsolete autoconf macros, from "kylo252" GitHub issue 2900.
This commit is contained in:
parent
25df71b90d
commit
097a792f9d
35
configure.ac
35
configure.ac
@ -24,11 +24,11 @@ SAVED_LDFLAGS="$LDFLAGS"
|
|||||||
# Is this oss-fuzz build?
|
# Is this oss-fuzz build?
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
fuzzing,
|
fuzzing,
|
||||||
AC_HELP_STRING(--enable-fuzzing, build fuzzers)
|
AS_HELP_STRING(--enable-fuzzing, build fuzzers)
|
||||||
)
|
)
|
||||||
AC_ARG_VAR(
|
AC_ARG_VAR(
|
||||||
FUZZING_LIBS,
|
FUZZING_LIBS,
|
||||||
AC_HELP_STRING(libraries to link fuzzing targets with)
|
AS_HELP_STRING(libraries to link fuzzing targets with)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Set up convenient fuzzing defaults before initializing compiler.
|
# Set up convenient fuzzing defaults before initializing compiler.
|
||||||
@ -59,14 +59,14 @@ test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
|
|||||||
case "x$VERSION" in xnext*) enable_debug=yes;; esac
|
case "x$VERSION" in xnext*) enable_debug=yes;; esac
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
debug,
|
debug,
|
||||||
AC_HELP_STRING(--enable-debug, enable debug build flags),
|
AS_HELP_STRING(--enable-debug, enable debug build flags),
|
||||||
)
|
)
|
||||||
AM_CONDITIONAL(IS_DEBUG, test "x$enable_debug" = xyes)
|
AM_CONDITIONAL(IS_DEBUG, test "x$enable_debug" = xyes)
|
||||||
|
|
||||||
# Is this a static build?
|
# Is this a static build?
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
static,
|
static,
|
||||||
AC_HELP_STRING(--enable-static, create a static build)
|
AS_HELP_STRING(--enable-static, create a static build)
|
||||||
)
|
)
|
||||||
if test "x$enable_static" = xyes; then
|
if test "x$enable_static" = xyes; then
|
||||||
test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
|
test "x$PKG_CONFIG" != x && PKG_CONFIG="$PKG_CONFIG --static"
|
||||||
@ -77,7 +77,7 @@ fi
|
|||||||
# Allow default TERM to be set.
|
# Allow default TERM to be set.
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
TERM,
|
TERM,
|
||||||
AC_HELP_STRING(--with-TERM, set default TERM),
|
AS_HELP_STRING(--with-TERM, set default TERM),
|
||||||
[DEFAULT_TERM=$withval],
|
[DEFAULT_TERM=$withval],
|
||||||
[DEFAULT_TERM=]
|
[DEFAULT_TERM=]
|
||||||
)
|
)
|
||||||
@ -340,7 +340,7 @@ fi
|
|||||||
# Look for utempter.
|
# Look for utempter.
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
utempter,
|
utempter,
|
||||||
AC_HELP_STRING(--enable-utempter, use utempter if it is installed)
|
AS_HELP_STRING(--enable-utempter, use utempter if it is installed)
|
||||||
)
|
)
|
||||||
if test "x$enable_utempter" = xyes; then
|
if test "x$enable_utempter" = xyes; then
|
||||||
AC_CHECK_HEADER(utempter.h, enable_utempter=yes, enable_utempter=no)
|
AC_CHECK_HEADER(utempter.h, enable_utempter=yes, enable_utempter=no)
|
||||||
@ -362,7 +362,7 @@ fi
|
|||||||
# Look for utf8proc.
|
# Look for utf8proc.
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
utf8proc,
|
utf8proc,
|
||||||
AC_HELP_STRING(--enable-utf8proc, use utf8proc if it is installed)
|
AS_HELP_STRING(--enable-utf8proc, use utf8proc if it is installed)
|
||||||
)
|
)
|
||||||
if test "x$enable_utf8proc" = xyes; then
|
if test "x$enable_utf8proc" = xyes; then
|
||||||
AC_CHECK_HEADER(utf8proc.h, enable_utf8proc=yes, enable_utf8proc=no)
|
AC_CHECK_HEADER(utf8proc.h, enable_utf8proc=yes, enable_utf8proc=no)
|
||||||
@ -384,13 +384,15 @@ AM_CONDITIONAL(HAVE_UTF8PROC, [test "x$enable_utf8proc" = xyes])
|
|||||||
|
|
||||||
# Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
|
# Check for b64_ntop. If we have b64_ntop, we assume b64_pton as well.
|
||||||
AC_MSG_CHECKING(for b64_ntop)
|
AC_MSG_CHECKING(for b64_ntop)
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||||
[
|
[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
],
|
],
|
||||||
[b64_ntop(NULL, 0, NULL, 0);],
|
[
|
||||||
|
b64_ntop(NULL, 0, NULL, 0);
|
||||||
|
])],
|
||||||
found_b64_ntop=yes,
|
found_b64_ntop=yes,
|
||||||
found_b64_ntop=no
|
found_b64_ntop=no
|
||||||
)
|
)
|
||||||
@ -399,13 +401,15 @@ OLD_LIBS="$LIBS"
|
|||||||
if test "x$found_b64_ntop" = xno; then
|
if test "x$found_b64_ntop" = xno; then
|
||||||
AC_MSG_CHECKING(for b64_ntop with -lresolv)
|
AC_MSG_CHECKING(for b64_ntop with -lresolv)
|
||||||
LIBS="$OLD_LIBS -lresolv"
|
LIBS="$OLD_LIBS -lresolv"
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||||
[
|
[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
],
|
],
|
||||||
[b64_ntop(NULL, 0, NULL, 0);],
|
[
|
||||||
|
b64_ntop(NULL, 0, NULL, 0);
|
||||||
|
])],
|
||||||
found_b64_ntop=yes,
|
found_b64_ntop=yes,
|
||||||
found_b64_ntop=no
|
found_b64_ntop=no
|
||||||
)
|
)
|
||||||
@ -414,13 +418,15 @@ fi
|
|||||||
if test "x$found_b64_ntop" = xno; then
|
if test "x$found_b64_ntop" = xno; then
|
||||||
AC_MSG_CHECKING(for b64_ntop with -lnetwork)
|
AC_MSG_CHECKING(for b64_ntop with -lnetwork)
|
||||||
LIBS="$OLD_LIBS -lnetwork"
|
LIBS="$OLD_LIBS -lnetwork"
|
||||||
AC_TRY_LINK(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||||
[
|
[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
],
|
],
|
||||||
[b64_ntop(NULL, 0, NULL, 0);],
|
[
|
||||||
|
b64_ntop(NULL, 0, NULL, 0);
|
||||||
|
])],
|
||||||
found_b64_ntop=yes,
|
found_b64_ntop=yes,
|
||||||
found_b64_ntop=no
|
found_b64_ntop=no
|
||||||
)
|
)
|
||||||
@ -875,4 +881,5 @@ AC_SUBST(AM_LDFLAGS)
|
|||||||
LDFLAGS="$SAVED_LDFLAGS"
|
LDFLAGS="$SAVED_LDFLAGS"
|
||||||
|
|
||||||
# autoconf should create a Makefile.
|
# autoconf should create a Makefile.
|
||||||
AC_OUTPUT(Makefile)
|
AC_CONFIG_FILES(Makefile)
|
||||||
|
AC_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user