Skip to content

Commit 8ccfdfc

Browse files
committed
m4/: Update from GNU Autoconf Archive repository.
1 parent d7a64b4 commit 8ccfdfc

File tree

31 files changed

+285
-171
lines changed

31 files changed

+285
-171
lines changed

Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
6666
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
6767
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
6868
$(top_srcdir)/acinclude.m4 $(top_srcdir)/m4/ax_c_ifdef.m4 \
69+
$(top_srcdir)/m4/ax_append_flag.m4 \
6970
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
70-
$(top_srcdir)/m4/type_socklen_t.m4 \
71+
$(top_srcdir)/m4/ax_type_socklen_t.m4 \
7172
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
7273
$(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
7374
$(top_srcdir)/m4/ax_cflags_sun_option.m4 \

acinclude.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
m4_include([m4/ax_c_ifdef.m4])
2+
m4_include([m4/ax_append_flag.m4])
23
m4_include([m4/ax_cflags_warn_all.m4])
3-
m4_include([m4/type_socklen_t.m4])
4+
m4_include([m4/ax_type_socklen_t.m4])
45
m4_include([m4/ax_compiler_vendor.m4])
56
m4_include([m4/ax_cflags_gcc_option.m4])
67
m4_include([m4/ax_cflags_sun_option.m4])

configure

Lines changed: 53 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4946,69 +4946,75 @@ if test "x$enable_warnings" = "xyes"; then :
49464946
sun) :
49474947
;; #(
49484948
*) :
4949-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
4950-
$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
4951-
if ${ax_cv_cxxflags_warn_all+:} false; then :
4952-
$as_echo_n "(cached) " >&6
4953-
else
4954-
ax_cv_cxxflags_warn_all="no, unknown"
4955-
4956-
ac_ext=cpp
4949+
ac_ext=cpp
49574950
ac_cpp='$CXXCPP $CPPFLAGS'
49584951
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49594952
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49604953
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49614954

4962-
ac_save_CXXFLAGS="$CXXFLAGS"
4963-
for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
4955+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
4956+
$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
4957+
if ${ac_cv_cxxflags_warn_all+:} false; then :
4958+
$as_echo_n "(cached) " >&6
4959+
else
4960+
ac_cv_cxxflags_warn_all="no, unknown"
4961+
ac_save_CXXFLAGS="$CXXFLAGS"
4962+
for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
49644963
do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
49654964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49664965
/* end confdefs.h. */
49674966

49684967
int
49694968
main ()
49704969
{
4971-
return 0;
4970+
49724971
;
49734972
return 0;
49744973
}
49754974
_ACEOF
49764975
if ac_fn_cxx_try_compile "$LINENO"; then :
4977-
ax_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
4976+
ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
49784977
fi
49794978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49804979
done
4981-
CXXFLAGS="$ac_save_CXXFLAGS"
4982-
ac_ext=cpp
4983-
ac_cpp='$CXXCPP $CPPFLAGS'
4984-
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985-
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986-
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987-
4980+
CXXFLAGS="$ac_save_CXXFLAGS"
49884981

49894982
fi
4990-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_warn_all" >&5
4991-
$as_echo "$ax_cv_cxxflags_warn_all" >&6; }
4992-
case ".$ax_cv_cxxflags_warn_all" in
4983+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
4984+
$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
4985+
case ".$ac_cv_cxxflags_warn_all" in
49934986
.ok|.ok,*) ;;
4994-
.|.no|.no,*)
4995-
;;
4996-
*)
4997-
if echo " $CXXFLAGS " | grep " $ax_cv_cxxflags_warn_all " 2>&1 >/dev/null
4998-
then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$ax_cv_cxxflags_warn_all"; } >&5
4999-
(: CXXFLAGS does contain $ax_cv_cxxflags_warn_all) 2>&5
4987+
.|.no|.no,*) ;;
4988+
*) if ${CXXFLAGS+:} false; then :
4989+
case " $CXXFLAGS " in
4990+
*" $ac_cv_cxxflags_warn_all "*)
4991+
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
4992+
(: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
50004993
ac_status=$?
50014994
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50024995
test $ac_status = 0; }
5003-
else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ax_cv_cxxflags_warn_all\""; } >&5
5004-
(: CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_warn_all") 2>&5
4996+
;;
4997+
*)
4998+
{ { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
4999+
(: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
50055000
ac_status=$?
50065001
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50075002
test $ac_status = 0; }
5008-
CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_warn_all"
5009-
fi
5003+
CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
5004+
;;
5005+
esac
5006+
else
5007+
CXXFLAGS="$ac_cv_cxxflags_warn_all"
5008+
fi
50105009
;;
50115010
esac
5011+
5012+
ac_ext=cpp
5013+
ac_cpp='$CXXCPP $CPPFLAGS'
5014+
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015+
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016+
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5017+
50125018
;;
50135019
esac
50145020
fi
@@ -8148,10 +8154,9 @@ if test "x$ax_cv_have_gettid" = "xyes"; then :
81488154
fi
81498155

81508156

8151-
81528157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
81538158
$as_echo_n "checking for socklen_t... " >&6; }
8154-
if ${ac_cv_type_socklen_t+:} false; then :
8159+
if ${ac_cv_ax_type_socklen_t+:} false; then :
81558160
$as_echo_n "(cached) " >&6
81568161
else
81578162

@@ -8168,20 +8173,20 @@ socklen_t len = 42; return 0;
81688173
}
81698174
_ACEOF
81708175
if ac_fn_cxx_try_compile "$LINENO"; then :
8171-
ac_cv_type_socklen_t=yes
8176+
ac_cv_ax_type_socklen_t=yes
81728177
else
8173-
ac_cv_type_socklen_t=no
8178+
ac_cv_ax_type_socklen_t=no
81748179
fi
81758180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81768181

81778182
fi
8178-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
8179-
$as_echo "$ac_cv_type_socklen_t" >&6; }
8180-
if test $ac_cv_type_socklen_t != yes; then
8181-
$as_echo "#define socklen_t int" >>confdefs.h
8183+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ax_type_socklen_t" >&5
8184+
$as_echo "$ac_cv_ax_type_socklen_t" >&6; }
8185+
if test $ac_cv_ax_type_socklen_t != yes; then
81828186

8183-
fi
8187+
$as_echo "#define socklen_t int" >>confdefs.h
81848188

8189+
fi
81858190

81868191

81878192

@@ -8302,8 +8307,8 @@ ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt
83028307
# --thread-safe: KAI C++
83038308
# pthread-config: use pthread-config program (for GNU Pth library)
83048309

8305-
case "${host_cpu}-${host_os}" in
8306-
*solaris*)
8310+
case ${host_os} in
8311+
solaris*)
83078312

83088313
# On Solaris (at least, for some versions), libc contains stubbed
83098314
# (non-functional) versions of the pthreads routines, so link-based
@@ -8316,7 +8321,7 @@ case "${host_cpu}-${host_os}" in
83168321
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
83178322
;;
83188323

8319-
*-darwin*)
8324+
darwin*)
83208325
ax_pthread_flags="-pthread $ax_pthread_flags"
83218326
;;
83228327
esac
@@ -8481,10 +8486,10 @@ _ACEOF
84818486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
84828487
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
84838488
flag=no
8484-
case "${host_cpu}-${host_os}" in
8485-
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8486-
*-osf* | *-hpux*) flag="-D_REENTRANT";;
8487-
*solaris*)
8489+
case ${host_os} in
8490+
aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
8491+
osf* | hpux*) flag="-D_REENTRANT";;
8492+
solaris*)
84888493
if test "$GCC" = "yes"; then
84898494
flag="-D_REENTRANT"
84908495
else

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ AS_IF([test "x$ax_cv_have_gettid" = "xyes"],
331331
[AC_DEFINE([LOG4CPLUS_HAVE_GETTID])])
332332

333333
dnl Check for the existance of type socklen_t.
334-
TYPE_SOCKLEN_T
335334

335+
AX_TYPE_SOCKLEN_T
336336

337337
dnl Check for single-threaded compilation
338338

include/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
6060
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
6161
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
6262
$(top_srcdir)/acinclude.m4 $(top_srcdir)/m4/ax_c_ifdef.m4 \
63+
$(top_srcdir)/m4/ax_append_flag.m4 \
6364
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
64-
$(top_srcdir)/m4/type_socklen_t.m4 \
65+
$(top_srcdir)/m4/ax_type_socklen_t.m4 \
6566
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
6667
$(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
6768
$(top_srcdir)/m4/ax_cflags_sun_option.m4 \

include/log4cplus/config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@
420420
/* Defined to the actual TLS support construct. */
421421
#undef TLS_SUPPORT_CONSTRUCT
422422

423-
/* Define to int if undefined. */
423+
/* Substitute for socklen_t */
424424
#undef socklen_t
425425

426426
#endif // LOG4CPLUS_CONFIG_H

loggingserver/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
6161
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
6262
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
6363
$(top_srcdir)/acinclude.m4 $(top_srcdir)/m4/ax_c_ifdef.m4 \
64+
$(top_srcdir)/m4/ax_append_flag.m4 \
6465
$(top_srcdir)/m4/ax_cflags_warn_all.m4 \
65-
$(top_srcdir)/m4/type_socklen_t.m4 \
66+
$(top_srcdir)/m4/ax_type_socklen_t.m4 \
6667
$(top_srcdir)/m4/ax_compiler_vendor.m4 \
6768
$(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
6869
$(top_srcdir)/m4/ax_cflags_sun_option.m4 \

m4/ax_append_flag.m4

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# ===========================================================================
2+
# http://www.gnu.org/software/autoconf-archive/ax_append_flag.html
3+
# ===========================================================================
4+
#
5+
# SYNOPSIS
6+
#
7+
# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])
8+
#
9+
# DESCRIPTION
10+
#
11+
# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space
12+
# added in between.
13+
#
14+
# If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
15+
# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains
16+
# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly
17+
# FLAG.
18+
#
19+
# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.
20+
#
21+
# LICENSE
22+
#
23+
# Copyright (c) 2008 Guido U. Draheim <[email protected]>
24+
# Copyright (c) 2011 Maarten Bosmans <[email protected]>
25+
#
26+
# This program is free software: you can redistribute it and/or modify it
27+
# under the terms of the GNU General Public License as published by the
28+
# Free Software Foundation, either version 3 of the License, or (at your
29+
# option) any later version.
30+
#
31+
# This program is distributed in the hope that it will be useful, but
32+
# WITHOUT ANY WARRANTY; without even the implied warranty of
33+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
34+
# Public License for more details.
35+
#
36+
# You should have received a copy of the GNU General Public License along
37+
# with this program. If not, see <http://www.gnu.org/licenses/>.
38+
#
39+
# As a special exception, the respective Autoconf Macro's copyright owner
40+
# gives unlimited permission to copy, distribute and modify the configure
41+
# scripts that are the output of Autoconf when processing the Macro. You
42+
# need not follow the terms of the GNU General Public License when using
43+
# or distributing such scripts, even though portions of the text of the
44+
# Macro appear in them. The GNU General Public License (GPL) does govern
45+
# all other use of the material that constitutes the Autoconf Macro.
46+
#
47+
# This special exception to the GPL applies to versions of the Autoconf
48+
# Macro released by the Autoconf Archive. When you make and distribute a
49+
# modified version of the Autoconf Macro, you may extend this special
50+
# exception to the GPL to apply to your modified version as well.
51+
52+
#serial 2
53+
54+
AC_DEFUN([AX_APPEND_FLAG],
55+
[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
56+
AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])dnl
57+
AS_VAR_SET_IF(FLAGS,
58+
[case " AS_VAR_GET(FLAGS) " in
59+
*" $1 "*)
60+
AC_RUN_LOG([: FLAGS already contains $1])
61+
;;
62+
*)
63+
AC_RUN_LOG([: FLAGS="$FLAGS $1"])
64+
AS_VAR_SET(FLAGS, ["AS_VAR_GET(FLAGS) $1"])
65+
;;
66+
esac],
67+
[AS_VAR_SET(FLAGS,["$1"])])
68+
AS_VAR_POPDEF([FLAGS])dnl
69+
])dnl AX_APPEND_FLAG

0 commit comments

Comments
 (0)