mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
configure: tidy up comments
- convert `#` comments to `dnl`, except copyright headers, and inline comments in `curl-complilers.m4`. - drop empty comments. - drop line-ending `dnl` markers. (except `zz40-xc-ovr.m4` where it's used to produce a comment in `configure`.) - replace `dnl` line with C comment in `AC_CHECK_HEADERS()`. Verified to produce the same `configure` script except empty lines, `#` comments, and C comments, with autoreconf 2.72. Cherry-picked from #21000 Closes #21246
This commit is contained in:
parent
0a7e1982fe
commit
8a3991e050
19 changed files with 1014 additions and 1033 deletions
|
|
@ -45,7 +45,7 @@ if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
|
|||
test "amissl" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||
AMISSL_ENABLED=1
|
||||
OPENSSL_ENABLED=1
|
||||
# Use AmiSSL's built-in ca bundle
|
||||
dnl Use AmiSSL's built-in ca bundle
|
||||
check_for_ca_bundle=1
|
||||
with_ca_fallback=yes
|
||||
LIBS="-lamisslstubs -lamisslauto $LIBS"
|
||||
|
|
|
|||
|
|
@ -22,27 +22,26 @@
|
|||
#
|
||||
#***************************************************************************
|
||||
|
||||
# File version for 'aclocal' use. Keep it a single number.
|
||||
# serial 67
|
||||
|
||||
dnl File version for 'aclocal' use. Keep it a single number.
|
||||
dnl serial 67
|
||||
|
||||
dnl CURL_CHECK_COMPILER
|
||||
dnl -------------------------------------------------
|
||||
dnl Verify if the C compiler being used is known.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER], [
|
||||
#
|
||||
|
||||
compiler_id="unknown"
|
||||
compiler_ver=""
|
||||
compiler_num="0"
|
||||
#
|
||||
|
||||
flags_dbg_yes="unknown"
|
||||
flags_opt_all="unknown"
|
||||
flags_opt_yes="unknown"
|
||||
flags_opt_off="unknown"
|
||||
#
|
||||
|
||||
flags_prefer_cppflags="no"
|
||||
#
|
||||
|
||||
CURL_CHECK_COMPILER_DEC_C
|
||||
CURL_CHECK_COMPILER_HPUX_C
|
||||
CURL_CHECK_COMPILER_IBM_C
|
||||
|
|
@ -57,7 +56,7 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
|
|||
esac
|
||||
CURL_CHECK_COMPILER_SUNPRO_C
|
||||
CURL_CHECK_COMPILER_TINY_C
|
||||
#
|
||||
|
||||
if test "$compiler_id" = "unknown"; then
|
||||
cat <<_EOF 1>&2
|
||||
***
|
||||
|
|
@ -81,7 +80,7 @@ dnl -------------------------------------------------
|
|||
dnl Verify if compiler being used is clang.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])
|
||||
AC_MSG_CHECKING([if compiler is clang])
|
||||
CURL_CHECK_DEF([__clang__], [], [silent])
|
||||
if test "$curl_cv_have_def___clang__" = "yes"; then
|
||||
|
|
@ -184,8 +183,8 @@ dnl Version 4.7 => 407
|
|||
dnl Version 9.2.1 => 900
|
||||
dnl
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL_C])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_CLANG])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_INTEL_C])
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_CLANG])
|
||||
AC_MSG_CHECKING([if compiler is GNU C])
|
||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||
if test "$curl_cv_have_def___GNUC__" = "yes" &&
|
||||
|
|
@ -193,7 +192,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
|
|||
AC_MSG_RESULT([yes])
|
||||
compiler_id="GNU_C"
|
||||
AC_MSG_CHECKING([compiler version])
|
||||
# strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
|
||||
dnl strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
|
||||
gccver=`$CC -dumpversion | "$SED" 's/-.\{1,\}$//'`
|
||||
gccvhi=`echo $gccver | cut -d . -f1`
|
||||
if echo $gccver | grep -F '.' >/dev/null; then
|
||||
|
|
@ -267,7 +266,7 @@ dnl -------------------------------------------------
|
|||
dnl Verify if compiler being used is Intel C.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_INTEL_C], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_GNU_C])
|
||||
AC_MSG_CHECKING([if compiler is Intel C])
|
||||
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
|
||||
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
|
||||
|
|
@ -301,7 +300,7 @@ dnl -------------------------------------------------
|
|||
dnl Verify if compiler being used is SGI MIPS C.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPS_C], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPSPRO_C])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_SGI_MIPSPRO_C])
|
||||
AC_MSG_CHECKING([if compiler is SGI MIPS C])
|
||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||
CURL_CHECK_DEF([__sgi], [], [silent])
|
||||
|
|
@ -325,7 +324,7 @@ dnl -------------------------------------------------
|
|||
dnl Verify if compiler being used is SGI MIPSpro C.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_SGI_MIPSPRO_C], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SGI_MIPS_C])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SGI_MIPS_C])
|
||||
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
|
||||
CURL_CHECK_DEF([__GNUC__], [], [silent])
|
||||
CURL_CHECK_DEF([_COMPILER_VERSION], [], [silent])
|
||||
|
|
@ -393,8 +392,8 @@ dnl headers from these locations, although on ancient
|
|||
dnl GNUC versions these warnings are not silenced.
|
||||
|
||||
AC_DEFUN([CURL_CONVERT_INCLUDE_TO_ISYSTEM], [
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_MSG_CHECKING([convert -I options to -isystem])
|
||||
if test "$compiler_id" = "GNU_C" ||
|
||||
test "$compiler_id" = "CLANG" ||
|
||||
|
|
@ -513,29 +512,29 @@ dnl depend on configure's debug, optimize or warnings
|
|||
dnl options.
|
||||
|
||||
AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
#
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
|
||||
if test "$compiler_id" != "unknown"; then
|
||||
#
|
||||
|
||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||
tmp_save_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS=""
|
||||
tmp_CFLAGS=""
|
||||
#
|
||||
|
||||
case "$compiler_id" in
|
||||
#
|
||||
|
||||
CLANG|APPLECLANG)
|
||||
#
|
||||
|
||||
dnl Disable warnings for unused arguments, otherwise clang will
|
||||
dnl warn about compile-time arguments used during link-time, like
|
||||
dnl -O and -g and -pedantic.
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
||||
;;
|
||||
#
|
||||
|
||||
DEC_C)
|
||||
#
|
||||
|
||||
dnl Select strict ANSI C compiler mode
|
||||
tmp_CFLAGS="$tmp_CFLAGS -std1"
|
||||
dnl Turn off optimizer ANSI C aliasing rules
|
||||
|
|
@ -545,18 +544,18 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
|||
dnl Change some warnings into fatal errors
|
||||
tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
|
||||
;;
|
||||
#
|
||||
|
||||
GNU_C)
|
||||
#
|
||||
|
||||
dnl turn implicit-function-declaration warning into error,
|
||||
dnl at least gcc 2.95 and later support this
|
||||
if test "$compiler_num" -ge "295"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
HP_UX_C)
|
||||
#
|
||||
|
||||
dnl Disallow runtime dereferencing of null pointers
|
||||
tmp_CFLAGS="$tmp_CFLAGS -z"
|
||||
dnl Disable some remarks
|
||||
|
|
@ -564,9 +563,9 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
|||
dnl #4255: padding size of struct with n bytes to alignment boundary
|
||||
tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
|
||||
;;
|
||||
#
|
||||
|
||||
IBM_C)
|
||||
#
|
||||
|
||||
dnl Ensure that compiler optimizations are always thread-safe.
|
||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
|
||||
dnl Disable type based strict aliasing optimizations, using worst
|
||||
|
|
@ -578,9 +577,9 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
|||
dnl generating an object code file when compilation has errors.
|
||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
|
||||
;;
|
||||
#
|
||||
|
||||
INTEL_UNIX_C)
|
||||
#
|
||||
|
||||
dnl On Unix this compiler uses gcc's header files, so
|
||||
dnl we select ANSI C89 dialect plus GNU extensions.
|
||||
tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
|
||||
|
|
@ -598,42 +597,42 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
|||
dnl #2259: non-pointer conversion from X to Y may lose significant bits
|
||||
tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
|
||||
;;
|
||||
#
|
||||
|
||||
INTEL_WINDOWS_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
SGI_MIPS_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
SGI_MIPSPRO_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
SUNPRO_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
TINY_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
esac
|
||||
#
|
||||
|
||||
squeeze tmp_CPPFLAGS
|
||||
squeeze tmp_CFLAGS
|
||||
#
|
||||
|
||||
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
||||
AC_MSG_CHECKING([if compiler accepts some basic options])
|
||||
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
||||
|
|
@ -651,7 +650,6 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
|
|||
CFLAGS="$tmp_save_CFLAGS"
|
||||
])
|
||||
fi
|
||||
#
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
@ -662,24 +660,24 @@ dnl Sets compiler specific options/flags which depend
|
|||
dnl on configure's debug option.
|
||||
|
||||
AC_DEFUN([CURL_SET_COMPILER_DEBUG_OPTS], [
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
#
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
|
||||
if test "$compiler_id" != "unknown"; then
|
||||
#
|
||||
|
||||
tmp_save_CFLAGS="$CFLAGS"
|
||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||
#
|
||||
|
||||
tmp_options=""
|
||||
tmp_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS="$CPPFLAGS"
|
||||
#
|
||||
|
||||
if test "$want_debug" = "yes"; then
|
||||
AC_MSG_CHECKING([if compiler accepts debug enabling options])
|
||||
tmp_options="$flags_dbg_yes"
|
||||
fi
|
||||
#
|
||||
|
||||
if test "$flags_prefer_cppflags" = "yes"; then
|
||||
CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
|
||||
CFLAGS="$tmp_CFLAGS"
|
||||
|
|
@ -699,26 +697,26 @@ dnl Sets compiler specific options/flags which depend
|
|||
dnl on configure's optimize option.
|
||||
|
||||
AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_OPTIMIZE])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
#
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_OPTIMIZE])
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
|
||||
if test "$compiler_id" != "unknown"; then
|
||||
#
|
||||
|
||||
tmp_save_CFLAGS="$CFLAGS"
|
||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||
#
|
||||
|
||||
tmp_options=""
|
||||
tmp_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS="$CPPFLAGS"
|
||||
honor_optimize_option="yes"
|
||||
#
|
||||
|
||||
dnl If optimization request setting has not been explicitly specified,
|
||||
dnl it has been derived from the debug setting and initially assumed.
|
||||
dnl This initially assumed optimizer setting will finally be ignored
|
||||
dnl if CFLAGS or CPPFLAGS already hold optimizer flags. This implies
|
||||
dnl that an initially assumed optimizer setting might not be honored.
|
||||
#
|
||||
|
||||
if test "$want_optimize" = "assume_no" ||
|
||||
test "$want_optimize" = "assume_yes"; then
|
||||
AC_MSG_CHECKING([if compiler optimizer assumed setting might be used])
|
||||
|
|
@ -738,7 +736,7 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
if test "$honor_optimize_option" = "yes"; then
|
||||
CURL_VAR_STRIP([tmp_CFLAGS],[$flags_opt_all])
|
||||
CURL_VAR_STRIP([tmp_CPPFLAGS],[$flags_opt_all])
|
||||
|
|
@ -770,7 +768,6 @@ AC_DEFUN([CURL_SET_COMPILER_OPTIMIZE_OPTS], [
|
|||
CFLAGS="$tmp_save_CFLAGS"
|
||||
])
|
||||
fi
|
||||
#
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
@ -781,21 +778,21 @@ dnl Sets compiler options/flags which depend on
|
|||
dnl configure's warnings given option.
|
||||
|
||||
AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_WARNINGS])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
#
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_WARNINGS])
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
|
||||
if test "$compiler_id" != "unknown"; then
|
||||
#
|
||||
|
||||
tmp_save_CPPFLAGS="$CPPFLAGS"
|
||||
tmp_save_CFLAGS="$CFLAGS"
|
||||
tmp_CPPFLAGS=""
|
||||
tmp_CFLAGS=""
|
||||
#
|
||||
|
||||
case "$compiler_id" in
|
||||
#
|
||||
|
||||
CLANG|APPLECLANG)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
if test "$compiler_num" -ge "302"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pedantic])
|
||||
|
|
@ -818,12 +815,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shorten-64-to-32])
|
||||
#
|
||||
|
||||
dnl Only clang 1.1 or later
|
||||
if test "$compiler_num" -ge "101"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 2.7 or later
|
||||
if test "$compiler_num" -ge "207"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
||||
|
|
@ -845,13 +842,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code unused-parameter])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 2.8 or later
|
||||
if test "$compiler_num" -ge "208"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [ignored-qualifiers])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [vla])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 2.9 or later
|
||||
if test "$compiler_num" -ge "209"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
|
||||
|
|
@ -859,7 +856,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -Wno-used-but-marked-unused" # for typecheck-gcc.h with clang 14+, dependency headers
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-sign-overflow])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.0 or later
|
||||
if test "$compiler_num" -ge "300"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [conditional-uninitialized])
|
||||
|
|
@ -871,7 +868,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -Wno-covered-switch-default" # Annoying to fix or silence
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-disabled-macro-expansion" # for std headers, and curl/curl.h (rare combos)
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.2 or later
|
||||
if test "$compiler_num" -ge "302"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
||||
|
|
@ -890,29 +887,29 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
if test "$compiler_num" -ge "303"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-documentation-unknown-command"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.4 or later
|
||||
if test "$compiler_num" -ge "304"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [header-guard])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.5 or later
|
||||
if test "$compiler_num" -ge "305"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pragmas])
|
||||
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.6 or later
|
||||
if test "$compiler_num" -ge "306"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only clang 3.9 or later
|
||||
if test "$compiler_num" -ge "309"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [comma])
|
||||
# avoid the varargs warning, fixed in 4.0
|
||||
# https://bugs.llvm.org/show_bug.cgi?id=29140
|
||||
dnl avoid the varargs warning, fixed in 4.0
|
||||
dnl https://bugs.llvm.org/show_bug.cgi?id=29140
|
||||
if test "$compiler_num" -lt "400"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
|
||||
fi
|
||||
|
|
@ -975,20 +972,20 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
esac
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
DEC_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Select a higher warning level than default level2
|
||||
tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
GNU_C)
|
||||
#
|
||||
|
||||
dnl Leave disabled for GCC <4.6, because they lack #pragma features to silence locally.
|
||||
if test "$want_warnings" = "yes" && test "$compiler_num" -ge "406"; then
|
||||
#
|
||||
|
||||
dnl Do not enable -pedantic when cross-compiling with a gcc older
|
||||
dnl than 3.0, to avoid warnings from third party system headers.
|
||||
if test "$cross_compiling" != "yes" ||
|
||||
|
|
@ -999,11 +996,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -pedantic"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Set of options we believe *ALL* gcc versions support:
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
||||
tmp_CFLAGS="$tmp_CFLAGS -W"
|
||||
#
|
||||
|
||||
dnl Only gcc 1.4 or later
|
||||
if test "$compiler_num" -ge "104"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pointer-arith write-strings])
|
||||
|
|
@ -1013,7 +1010,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused shadow])
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 2.7 or later
|
||||
if test "$compiler_num" -ge "207"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [nested-externs])
|
||||
|
|
@ -1024,13 +1021,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-prototypes])
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 2.95 or later
|
||||
if test "$compiler_num" -ge "295"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [bad-function-cast])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 2.96 or later
|
||||
if test "$compiler_num" -ge "296"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [float-equal])
|
||||
|
|
@ -1041,7 +1038,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl headers with gcc 2.95.4 on FreeBSD 4.9
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [undef])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 3.0 or later
|
||||
if test "$compiler_num" -ge "300"; then
|
||||
dnl -Wunreachable-code seems totally unreliable on my gcc 3.3.2 on
|
||||
|
|
@ -1050,24 +1047,24 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl over making it unusable for generic purposes. Let's not use it.
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 3.3 or later
|
||||
if test "$compiler_num" -ge "303"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [endif-labels strict-prototypes])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 3.4 or later
|
||||
if test "$compiler_num" -ge "304"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [declaration-after-statement])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [old-style-definition])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.0 or later
|
||||
if test "$compiler_num" -ge "400"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-qual])
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.1 or later
|
||||
if test "$compiler_num" -ge "401"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [attributes])
|
||||
|
|
@ -1089,12 +1086,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
|
||||
# tmp_CFLAGS="$tmp_CFLAGS -Wno-error=unused-macros"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.2 or later
|
||||
if test "$compiler_num" -ge "402"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.3 or later
|
||||
if test "$compiler_num" -ge "403"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [address])
|
||||
|
|
@ -1107,7 +1104,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl required for -Warray-bounds, included in -Wall
|
||||
tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.5 or later
|
||||
if test "$compiler_num" -ge "405"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [jump-misses-init])
|
||||
|
|
@ -1122,24 +1119,24 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
;;
|
||||
esac
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 4.6 or later
|
||||
if test "$compiler_num" -ge "406"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trampolines])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl only gcc 4.8 or later
|
||||
if test "$compiler_num" -ge "408"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 5 or later
|
||||
if test "$compiler_num" -ge "500"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-format-signedness"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 6 or later
|
||||
if test "$compiler_num" -ge "600"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-negative-value])
|
||||
|
|
@ -1149,7 +1146,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-cond])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 7 or later
|
||||
if test "$compiler_num" -ge "700"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-branches])
|
||||
|
|
@ -1158,33 +1155,32 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 10 or later
|
||||
if test "$compiler_num" -ge "1000"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [arith-conversion])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 12 or later
|
||||
if test "$compiler_num" -ge "1200"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [array-compare])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 13 or later
|
||||
if test "$compiler_num" -ge "1300"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-int-mismatch])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [xor-used-as-pow])
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Only gcc 15 or later
|
||||
if test "$compiler_num" -ge "1500"; then
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [leading-whitespace=spaces])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [trailing-whitespace=any])
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unterminated-string-initialization])
|
||||
fi
|
||||
#
|
||||
fi
|
||||
#
|
||||
|
||||
dnl Do not issue warnings for code in system include paths.
|
||||
if test "$compiler_num" -ge "300"; then
|
||||
tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
|
||||
|
|
@ -1216,23 +1212,23 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -Wno-conversion"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
HP_UX_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Issue all warnings
|
||||
tmp_CFLAGS="$tmp_CFLAGS +w1"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
IBM_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
INTEL_UNIX_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
if test "$compiler_num" -gt "600"; then
|
||||
dnl Show errors, warnings, and remarks
|
||||
|
|
@ -1266,23 +1262,23 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
dnl Value-safe optimizations on floating-point data
|
||||
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
|
||||
;;
|
||||
#
|
||||
|
||||
INTEL_WINDOWS_C)
|
||||
#
|
||||
|
||||
dnl Placeholder
|
||||
tmp_CFLAGS="$tmp_CFLAGS"
|
||||
;;
|
||||
#
|
||||
|
||||
SGI_MIPS_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Perform stricter semantic and lint-like checks
|
||||
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
SGI_MIPSPRO_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Perform stricter semantic and lint-like checks
|
||||
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
|
||||
|
|
@ -1291,17 +1287,17 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
SUNPRO_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Perform stricter semantic and lint-like checks
|
||||
tmp_CFLAGS="$tmp_CFLAGS -v"
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
TINY_C)
|
||||
#
|
||||
|
||||
if test "$want_warnings" = "yes"; then
|
||||
dnl Activate all warnings
|
||||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [all])
|
||||
|
|
@ -1311,12 +1307,12 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unsupported])
|
||||
fi
|
||||
;;
|
||||
#
|
||||
|
||||
esac
|
||||
#
|
||||
|
||||
squeeze tmp_CPPFLAGS
|
||||
squeeze tmp_CFLAGS
|
||||
#
|
||||
|
||||
if test -n "$tmp_CFLAGS" || test -n "$tmp_CPPFLAGS"; then
|
||||
AC_MSG_CHECKING([if compiler accepts strict warning options])
|
||||
CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
|
||||
|
|
@ -1334,7 +1330,6 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
|
|||
CFLAGS="$tmp_save_CFLAGS"
|
||||
])
|
||||
fi
|
||||
#
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
@ -1391,7 +1386,7 @@ dnl code file, when the source code tries to define a
|
|||
dnl type for a constant array with negative dimension.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])
|
||||
AC_MSG_CHECKING([if compiler halts on negative sized arrays])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
|
|
@ -1417,7 +1412,7 @@ dnl result, as a compilation-time condition inside the
|
|||
dnl type definition of a constant array.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_STRUCT_MEMBER_SIZE], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE])
|
||||
AC_MSG_CHECKING([if compiler struct member size checking works])
|
||||
tst_compiler_check_one_works="unknown"
|
||||
AC_COMPILE_IFELSE([
|
||||
|
|
@ -1482,8 +1477,8 @@ dnl shell variable supports_symbol_hiding value as appropriate, as well as
|
|||
dnl variables symbol_hiding_CFLAGS and symbol_hiding_EXTERN when supported.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])dnl
|
||||
AC_BEFORE([$0],[CURL_CONFIGURE_SYMBOL_HIDING])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER])
|
||||
AC_BEFORE([$0],[CURL_CONFIGURE_SYMBOL_HIDING])
|
||||
AC_MSG_CHECKING([if compiler supports hiding library internal symbols])
|
||||
supports_symbol_hiding="no"
|
||||
symbol_hiding_CFLAGS=""
|
||||
|
|
@ -1591,7 +1586,7 @@ dnl code file, when the source code tries to redefine
|
|||
dnl a prototype which does not match previous one.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_COMPILER_PROTOTYPE_MISMATCH], [
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])dnl
|
||||
AC_REQUIRE([CURL_CHECK_COMPILER_HALT_ON_ERROR])
|
||||
AC_MSG_CHECKING([if compiler halts on function prototype mismatch])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
|
|
@ -1663,7 +1658,7 @@ dnl as whitespace separated lists of words. Each word
|
|||
dnl from VALUE is removed from VARNAME when present.
|
||||
|
||||
AC_DEFUN([CURL_VAR_STRIP], [
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
ac_var_stripped=""
|
||||
for word1 in $[$1]; do
|
||||
ac_var_strip_word="no"
|
||||
|
|
@ -1689,7 +1684,7 @@ dnl Add each compiler warning from NEW-WARNINGS that has not
|
|||
dnl been disabled via CFLAGS to WARNING-LIST.
|
||||
|
||||
AC_DEFUN([CURL_ADD_COMPILER_WARNINGS], [
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])dnl
|
||||
AC_REQUIRE([CURL_SHFUNC_SQUEEZE])
|
||||
ac_var_added_warnings=""
|
||||
for warning in [$2]; do
|
||||
CURL_VAR_MATCH(CFLAGS, [-Wno-$warning -W$warning])
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#
|
||||
#***************************************************************************
|
||||
|
||||
# File version for 'aclocal' use. Keep it a single number.
|
||||
# serial 19
|
||||
dnl File version for 'aclocal' use. Keep it a single number.
|
||||
dnl serial 19
|
||||
|
||||
dnl CURL_CHECK_OPTION_THREADED_RESOLVER
|
||||
dnl -------------------------------------------------
|
||||
|
|
@ -73,7 +73,7 @@ dnl --enable-ares or --disable-ares, and
|
|||
dnl set shell variable want_ares as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_ARES], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_LIB_ARES])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_LIB_ARES])
|
||||
AC_MSG_CHECKING([whether to enable c-ares for DNS lookups])
|
||||
OPT_ARES="default"
|
||||
AC_ARG_ENABLE(ares,
|
||||
|
|
@ -108,8 +108,8 @@ dnl --enable-debug or --disable-debug, and set shell
|
|||
dnl variable want_debug value as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_DEBUG], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WARNINGS])dnl
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WARNINGS])
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||
AC_MSG_CHECKING([whether to enable debug build options])
|
||||
OPT_DEBUG_BUILD="default"
|
||||
AC_ARG_ENABLE(debug,
|
||||
|
|
@ -140,8 +140,8 @@ dnl --enable-optimize or --disable-optimize, and set
|
|||
dnl shell variable want_optimize value as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_OPTIMIZE], [
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||
AC_MSG_CHECKING([whether to enable compiler optimizer])
|
||||
OPT_COMPILER_OPTIMIZE="default"
|
||||
AC_ARG_ENABLE(optimize,
|
||||
|
|
@ -196,7 +196,7 @@ dnl --enable-symbol-hiding or --disable-symbol-hiding,
|
|||
dnl setting shell variable want_symbol_hiding value.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_SYMBOL_HIDING], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SYMBOL_HIDING])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER_SYMBOL_HIDING])
|
||||
AC_MSG_CHECKING([whether to enable hiding of library internal symbols])
|
||||
OPT_SYMBOL_HIDING="default"
|
||||
AC_ARG_ENABLE(symbol-hiding,
|
||||
|
|
@ -236,7 +236,7 @@ dnl --disable-rt and set shell variable dontwant_rt
|
|||
dnl as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_RT], [
|
||||
AC_BEFORE([$0], [CURL_CHECK_LIB_THREADS])dnl
|
||||
AC_BEFORE([$0], [CURL_CHECK_LIB_THREADS])
|
||||
AC_MSG_CHECKING([whether to disable dependency on -lrt])
|
||||
OPT_RT="default"
|
||||
AC_ARG_ENABLE(rt,
|
||||
|
|
@ -268,9 +268,9 @@ dnl --enable-warnings or --disable-warnings, and set
|
|||
dnl shell variable want_warnings as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_WARNINGS], [
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WERROR])dnl
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
||||
AC_REQUIRE([CURL_CHECK_OPTION_DEBUG])
|
||||
AC_BEFORE([$0],[CURL_CHECK_OPTION_WERROR])
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||
AC_MSG_CHECKING([whether to enable strict compiler warnings])
|
||||
OPT_COMPILER_WARNINGS="default"
|
||||
AC_ARG_ENABLE(warnings,
|
||||
|
|
@ -302,7 +302,7 @@ dnl --enable-werror or --disable-werror, and set
|
|||
dnl shell variable want_werror as appropriate.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_OPTION_WERROR], [
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER])dnl
|
||||
AC_BEFORE([$0],[CURL_CHECK_COMPILER])
|
||||
AC_MSG_CHECKING([whether to enable compiler warnings as errors])
|
||||
OPT_COMPILER_WERROR="default"
|
||||
AC_ARG_ENABLE(werror,
|
||||
|
|
@ -332,10 +332,10 @@ dnl -------------------------------------------------
|
|||
dnl Check for how to set a socket into non-blocking state.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_NONBLOCKING_SOCKET], [
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_FCNTL])dnl
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET])dnl
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET_CAMEL])dnl
|
||||
#
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_FCNTL])
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET])
|
||||
AC_REQUIRE([CURL_CHECK_FUNC_IOCTLSOCKET_CAMEL])
|
||||
|
||||
tst_method="unknown"
|
||||
|
||||
AC_MSG_CHECKING([how to set a socket into non-blocking mode])
|
||||
|
|
@ -391,7 +391,7 @@ dnl When c-ares library support has been requested, performs necessary checks
|
|||
dnl and adjustments needed to enable support of this library.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
||||
#
|
||||
|
||||
if test "$want_ares" = "yes"; then
|
||||
dnl c-ares library support has been requested
|
||||
clean_CPPFLAGS="$CPPFLAGS"
|
||||
|
|
@ -435,12 +435,11 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
|||
ares_LIBS="-lcares"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
|
||||
LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
|
||||
LDFLAGSPC="$clean_LDFLAGSPC $ares_LDFLAGS"
|
||||
LIBS="$ares_LIBS $clean_LIBS"
|
||||
#
|
||||
|
||||
dnl check if c-ares new enough, 1.16.0 or newer
|
||||
AC_CHECK_FUNC([ares_getaddrinfo],
|
||||
|
|
@ -452,7 +451,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
|||
LDFLAGS="$clean_LDFLAGS"
|
||||
LDFLAGSPC="$clean_LDFLAGSPC"
|
||||
LIBS="$clean_LIBS"
|
||||
# prevent usage
|
||||
dnl prevent usage
|
||||
want_ares="no"
|
||||
])
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -74,7 +74,8 @@ if test "x$OPT_GNUTLS" != "xno"; then
|
|||
addlib=-lgnutls
|
||||
addld=-L$OPT_GNUTLS/lib$libsuff
|
||||
addcflags=-I$OPT_GNUTLS/include
|
||||
version="" # we just do not know
|
||||
dnl we just do not know
|
||||
version=""
|
||||
gtlslib=$OPT_GNUTLS/lib$libsuff
|
||||
fi
|
||||
fi
|
||||
|
|
@ -138,15 +139,15 @@ if test "x$OPT_GNUTLS" != "xno"; then
|
|||
test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl Check which crypto backend GnuTLS uses
|
||||
dnl
|
||||
if test "$GNUTLS_ENABLED" = "1"; then
|
||||
dnl ---
|
||||
dnl Check which crypto backend GnuTLS uses
|
||||
dnl ---
|
||||
USE_GNUTLS_NETTLE=
|
||||
# First check if we can detect either crypto library via transitive linking
|
||||
dnl First check if we can detect either crypto library via transitive linking
|
||||
AC_CHECK_LIB(gnutls, nettle_MD5Init, [ USE_GNUTLS_NETTLE=1 ])
|
||||
|
||||
# If not, try linking directly to both of them to see if they are available
|
||||
dnl If not, try linking directly to both of them to see if they are available
|
||||
if test -z "$USE_GNUTLS_NETTLE"; then
|
||||
|
||||
dnl this is with no particular path given
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#
|
||||
#***************************************************************************
|
||||
|
||||
# File version for 'aclocal' use. Keep it a single number.
|
||||
# serial 5
|
||||
dnl File version for 'aclocal' use. Keep it a single number.
|
||||
dnl serial 5
|
||||
|
||||
dnl **********************************************************************
|
||||
dnl Check for OpenSSL libraries and headers
|
||||
|
|
@ -85,7 +85,7 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
|||
fi
|
||||
|
||||
if test "$PKGTEST" != "yes"; then
|
||||
# try lib64 instead
|
||||
dnl try lib64 instead
|
||||
OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
|
||||
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
||||
|
|
@ -114,13 +114,13 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
|||
CURL_CHECK_PKGCONFIG(openssl, [$OPENSSL_PCDIR])
|
||||
|
||||
if test "$PKGCONFIG" != "no"; then
|
||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||
$PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
|
||||
|
||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||
$PKGCONFIG --libs-only-L openssl 2>/dev/null`
|
||||
|
||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR]) dnl
|
||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$OPENSSL_PCDIR])
|
||||
$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
|
||||
|
||||
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
||||
|
|
@ -153,12 +153,12 @@ if test "x$OPT_OPENSSL" != "xno"; then
|
|||
LDFLAGSPC="$CLEANLDFLAGSPC -L$LIB_OPENSSL"
|
||||
fi
|
||||
if test "$PKGCONFIG" = "no" && test -n "$PREFIX_OPENSSL"; then
|
||||
# only set this if pkg-config was not used
|
||||
dnl only set this if pkg-config was not used
|
||||
CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
|
||||
fi
|
||||
# Linking previously failed, try extra paths from --with-openssl or
|
||||
# pkg-config. Use a different function name to avoid reusing the earlier
|
||||
# cached result.
|
||||
dnl Linking previously failed, try extra paths from --with-openssl or
|
||||
dnl pkg-config. Use a different function name to avoid reusing the earlier
|
||||
dnl cached result.
|
||||
AC_CHECK_LIB(crypto, HMAC_Init_ex,[
|
||||
HAVECRYPTO="yes"
|
||||
LIBS="-lcrypto $LIBS"], [
|
||||
|
|
|
|||
|
|
@ -20,12 +20,10 @@
|
|||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
#
|
||||
###########################################################################
|
||||
#***************************************************************************
|
||||
#***************************************************************************
|
||||
|
||||
# File version for 'aclocal' use. Keep it a single number.
|
||||
# serial 7
|
||||
dnl File version for 'aclocal' use. Keep it a single number.
|
||||
dnl serial 7
|
||||
|
||||
dnl CURL_OVERRIDE_AUTOCONF
|
||||
dnl -------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
#
|
||||
#***************************************************************************
|
||||
|
||||
# File version for 'aclocal' use. Keep it a single number.
|
||||
# serial 10
|
||||
dnl File version for 'aclocal' use. Keep it a single number.
|
||||
dnl serial 10
|
||||
|
||||
dnl Note 1
|
||||
dnl ------
|
||||
|
|
@ -370,8 +370,8 @@ dnl that it is defined equally for further configure
|
|||
dnl tests and generated config file.
|
||||
|
||||
AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
||||
AC_PREREQ([2.50])dnl
|
||||
#
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_MSG_CHECKING([if _REENTRANT is already defined])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
|
|
@ -390,7 +390,7 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
|||
AC_MSG_RESULT([no])
|
||||
tmp_reentrant_initially_defined="no"
|
||||
])
|
||||
#
|
||||
|
||||
if test "$tmp_reentrant_initially_defined" = "no"; then
|
||||
AC_MSG_CHECKING([if _REENTRANT is actually needed])
|
||||
CURL_CHECK_NEED_REENTRANT_SYSTEM
|
||||
|
|
@ -406,7 +406,7 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
|||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
AC_MSG_CHECKING([if _REENTRANT is onwards defined])
|
||||
if test "$tmp_reentrant_initially_defined" = "yes" ||
|
||||
test "$tmp_need_reentrant" = "yes"; then
|
||||
|
|
@ -415,7 +415,6 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
|
|||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
#
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -431,8 +430,8 @@ dnl that it is defined equally for further configure
|
|||
dnl tests and generated config file.
|
||||
|
||||
AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
||||
AC_PREREQ([2.50])dnl
|
||||
#
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_MSG_CHECKING([if _THREAD_SAFE is already defined])
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
|
|
@ -451,7 +450,7 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
|||
AC_MSG_RESULT([no])
|
||||
tmp_thread_safe_initially_defined="no"
|
||||
])
|
||||
#
|
||||
|
||||
if test "$tmp_thread_safe_initially_defined" = "no"; then
|
||||
AC_MSG_CHECKING([if _THREAD_SAFE is actually needed])
|
||||
CURL_CHECK_NEED_THREAD_SAFE_SYSTEM
|
||||
|
|
@ -461,7 +460,7 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
|||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
||||
AC_MSG_CHECKING([if _THREAD_SAFE is onwards defined])
|
||||
if test "$tmp_thread_safe_initially_defined" = "yes" ||
|
||||
test "$tmp_need_thread_safe" = "yes"; then
|
||||
|
|
@ -470,5 +469,4 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
|
|||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
#
|
||||
])
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
|||
CLEANLDFLAGSPC="$LDFLAGSPC"
|
||||
CLEANCPPFLAGS="$CPPFLAGS"
|
||||
|
||||
## NEW CODE
|
||||
dnl NEW CODE
|
||||
|
||||
dnl use pkg-config unless we have been given a path
|
||||
dnl even then, try pkg-config first
|
||||
|
|
@ -62,7 +62,7 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
|||
fi
|
||||
|
||||
if test "$PKGTEST" != "yes"; then
|
||||
# try lib64 instead
|
||||
dnl try lib64 instead
|
||||
RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig"
|
||||
if test -f "$RUSTLS_PCDIR/rustls.pc"; then
|
||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$RUSTLS_PCDIR"])
|
||||
|
|
@ -109,13 +109,13 @@ if test "x$OPT_RUSTLS" != "xno"; then
|
|||
CURL_CHECK_PKGCONFIG(rustls, [$RUSTLS_PCDIR])
|
||||
|
||||
if test "$PKGCONFIG" != "no"; then
|
||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
||||
SSL_LIBS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||
$PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null`
|
||||
|
||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
||||
SSL_LDFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||
$PKGCONFIG --libs-only-L rustls 2>/dev/null`
|
||||
|
||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR]) dnl
|
||||
SSL_CPPFLAGS=`CURL_EXPORT_PCDIR([$RUSTLS_PCDIR])
|
||||
$PKGCONFIG --cflags-only-I rustls 2>/dev/null`
|
||||
|
||||
AC_MSG_NOTICE([pkg-config: SSL_LIBS: "$SSL_LIBS"])
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ if test "x$OPT_SCHANNEL" != "xno"; then
|
|||
ssl_msg="Schannel"
|
||||
test "schannel" != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
|
||||
SCHANNEL_ENABLED=1
|
||||
# --with-schannel implies --enable-sspi
|
||||
dnl --with-schannel implies --enable-sspi
|
||||
AC_DEFINE(USE_WINDOWS_SSPI, 1, [to enable SSPI support])
|
||||
USE_WINDOWS_SSPI=1
|
||||
curl_sspi_msg="enabled"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# serial 1
|
||||
dnl serial 1
|
||||
|
||||
|
||||
dnl _XC_AUTOMAKE_BODY
|
||||
|
|
@ -39,21 +39,20 @@ dnl is used to differentiate automake version 1.14 from older
|
|||
dnl ones which lack this macro.
|
||||
|
||||
m4_define([_XC_AUTOMAKE_BODY],
|
||||
[dnl
|
||||
## --------------------------------------- ##
|
||||
## Start of automake initialization code ##
|
||||
## --------------------------------------- ##
|
||||
[
|
||||
dnl ---------------------------------------
|
||||
dnl Start of automake initialization code
|
||||
dnl ---------------------------------------
|
||||
m4_ifdef([_AM_PROG_CC_C_O],
|
||||
[
|
||||
AM_INIT_AUTOMAKE([subdir-objects])
|
||||
],[
|
||||
AM_INIT_AUTOMAKE
|
||||
])dnl
|
||||
## ------------------------------------- ##
|
||||
## End of automake initialization code ##
|
||||
## ------------------------------------- ##
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
])
|
||||
dnl -------------------------------------
|
||||
dnl End of automake initialization code
|
||||
dnl -------------------------------------
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -71,15 +70,15 @@ dnl generate the configure script, otherwise this option
|
|||
dnl is not used.
|
||||
|
||||
AC_DEFUN([XC_AUTOMAKE],
|
||||
[dnl
|
||||
AC_PREREQ([2.50])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
||||
dnl
|
||||
[
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||
|
||||
_XC_AUTOMAKE_BODY
|
||||
dnl
|
||||
|
||||
m4_ifdef([AM_INIT_AUTOMAKE],
|
||||
[m4_undefine([AM_INIT_AUTOMAKE])])dnl
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
[m4_undefine([AM_INIT_AUTOMAKE])])
|
||||
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# serial 1
|
||||
dnl serial 1
|
||||
|
||||
|
||||
dnl _XC_PROG_CC_PREAMBLE
|
||||
|
|
@ -46,12 +46,12 @@ AC_DEFUN([_XC_PROG_CC_POSTLUDE], [
|
|||
CFLAGS=$xc_prog_cc_prev_CFLAGS
|
||||
LDFLAGS=$xc_prog_cc_prev_LDFLAGS
|
||||
CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
|
||||
AC_SUBST([CC])dnl
|
||||
AC_SUBST([CPP])dnl
|
||||
AC_SUBST([LIBS])dnl
|
||||
AC_SUBST([CFLAGS])dnl
|
||||
AC_SUBST([LDFLAGS])dnl
|
||||
AC_SUBST([CPPFLAGS])dnl
|
||||
AC_SUBST([CC])
|
||||
AC_SUBST([CPP])
|
||||
AC_SUBST([LIBS])
|
||||
AC_SUBST([CFLAGS])
|
||||
AC_SUBST([LDFLAGS])
|
||||
AC_SUBST([CPPFLAGS])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -60,13 +60,13 @@ dnl -------------------------------------------------
|
|||
dnl Private macro.
|
||||
|
||||
AC_DEFUN([_XC_PROG_CC], [
|
||||
AC_REQUIRE([_XC_PROG_CC_PREAMBLE])dnl
|
||||
AC_REQUIRE([XC_CHECK_BUILD_FLAGS])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
AC_REQUIRE([AC_PROG_CC])dnl
|
||||
AC_REQUIRE([AM_PROG_CC_C_O])dnl
|
||||
AC_REQUIRE([AC_PROG_CPP])dnl
|
||||
AC_REQUIRE([_XC_PROG_CC_POSTLUDE])dnl
|
||||
AC_REQUIRE([_XC_PROG_CC_PREAMBLE])
|
||||
AC_REQUIRE([XC_CHECK_BUILD_FLAGS])
|
||||
AC_REQUIRE([AC_PROG_INSTALL])
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_REQUIRE([AM_PROG_CC_C_O])
|
||||
AC_REQUIRE([AC_PROG_CPP])
|
||||
AC_REQUIRE([_XC_PROG_CC_POSTLUDE])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -84,14 +84,14 @@ dnl LIBS, LDFLAGS, CFLAGS, CPPFLAGS and IFS from being
|
|||
dnl unexpectedly changed by underlying macros.
|
||||
|
||||
AC_DEFUN([XC_CHECK_PROG_CC], [
|
||||
AC_PREREQ([2.50])dnl
|
||||
AC_BEFORE([$0],[_XC_PROG_CC_PREAMBLE])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_CC])dnl
|
||||
AC_BEFORE([$0],[AM_PROG_CC_C_O])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_CPP])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
||||
AC_BEFORE([$0],[_XC_PROG_CC_POSTLUDE])dnl
|
||||
AC_REQUIRE([_XC_PROG_CC])dnl
|
||||
AC_PREREQ([2.50])
|
||||
AC_BEFORE([$0],[_XC_PROG_CC_PREAMBLE])
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||
AC_BEFORE([$0],[AC_PROG_CC])
|
||||
AC_BEFORE([$0],[AM_PROG_CC_C_O])
|
||||
AC_BEFORE([$0],[AC_PROG_CPP])
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||
AC_BEFORE([$0],[_XC_PROG_CC_POSTLUDE])
|
||||
AC_REQUIRE([_XC_PROG_CC])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# serial 1
|
||||
dnl serial 1
|
||||
|
||||
|
||||
dnl _XC_LIBTOOL_PREAMBLE
|
||||
|
|
@ -32,23 +32,23 @@ dnl libtool and customizes its default behavior before
|
|||
dnl libtool code is actually used in script.
|
||||
|
||||
m4_define([_XC_LIBTOOL_PREAMBLE],
|
||||
[dnl
|
||||
# ------------------------------------ #
|
||||
# Determine libtool default behavior #
|
||||
# ------------------------------------ #
|
||||
[
|
||||
dnl ------------------------------------
|
||||
dnl Determine libtool default behavior
|
||||
dnl ------------------------------------
|
||||
|
||||
#
|
||||
# Default behavior is to enable shared and static libraries on systems
|
||||
# where libtool knows how to build both library versions, and does not
|
||||
# require separate configuration and build runs for each flavor.
|
||||
#
|
||||
dnl
|
||||
dnl Default behavior is to enable shared and static libraries on systems
|
||||
dnl where libtool knows how to build both library versions, and does not
|
||||
dnl require separate configuration and build runs for each flavor.
|
||||
dnl
|
||||
|
||||
xc_lt_want_enable_shared='yes'
|
||||
xc_lt_want_enable_static='yes'
|
||||
|
||||
#
|
||||
# User may have disabled shared or static libraries.
|
||||
#
|
||||
dnl
|
||||
dnl User may have disabled shared or static libraries.
|
||||
dnl
|
||||
case "x$enable_shared" in @%:@ (
|
||||
xno)
|
||||
xc_lt_want_enable_shared='no'
|
||||
|
|
@ -64,12 +64,12 @@ if test "$xc_lt_want_enable_shared" = "no" &&
|
|||
AC_MSG_ERROR([can not disable shared and static libraries simultaneously])
|
||||
fi
|
||||
|
||||
#
|
||||
# Default behavior on systems that require independent configuration
|
||||
# and build runs for shared and static is to enable shared libraries
|
||||
# and disable static ones. On these systems option '--disable-shared'
|
||||
# must be used in order to build a proper static library.
|
||||
#
|
||||
dnl
|
||||
dnl Default behavior on systems that require independent configuration
|
||||
dnl and build runs for shared and static is to enable shared libraries
|
||||
dnl and disable static ones. On these systems option '--disable-shared'
|
||||
dnl must be used in order to build a proper static library.
|
||||
dnl
|
||||
|
||||
if test "$xc_lt_want_enable_shared" = "yes" &&
|
||||
test "$xc_lt_want_enable_static" = "yes"; then
|
||||
|
|
@ -80,25 +80,25 @@ if test "$xc_lt_want_enable_shared" = "yes" &&
|
|||
esac
|
||||
fi
|
||||
|
||||
#
|
||||
# Make libtool aware of current shared and static library preferences
|
||||
# taking in account that, depending on host characteristics, libtool
|
||||
# may modify these option preferences later in this configure script.
|
||||
#
|
||||
dnl
|
||||
dnl Make libtool aware of current shared and static library preferences
|
||||
dnl taking in account that, depending on host characteristics, libtool
|
||||
dnl may modify these option preferences later in this configure script.
|
||||
dnl
|
||||
|
||||
enable_shared=$xc_lt_want_enable_shared
|
||||
enable_static=$xc_lt_want_enable_static
|
||||
|
||||
#
|
||||
# Default behavior is to build PIC objects for shared libraries and
|
||||
# non-PIC objects for static libraries.
|
||||
#
|
||||
dnl
|
||||
dnl Default behavior is to build PIC objects for shared libraries and
|
||||
dnl non-PIC objects for static libraries.
|
||||
dnl
|
||||
|
||||
xc_lt_want_with_pic='default'
|
||||
|
||||
#
|
||||
# User may have specified PIC preference.
|
||||
#
|
||||
dnl
|
||||
dnl User may have specified PIC preference.
|
||||
dnl
|
||||
|
||||
case "x$with_pic" in @%:@ ((
|
||||
xno)
|
||||
|
|
@ -109,13 +109,13 @@ case "x$with_pic" in @%:@ ((
|
|||
;;
|
||||
esac
|
||||
|
||||
#
|
||||
# Default behavior on some systems where building a shared library out
|
||||
# of non-PIC compiled objects will fail with following linker error
|
||||
# "relocation R_X86_64_32 can not be used when making a shared object"
|
||||
# is to build PIC objects even for static libraries. This behavior may
|
||||
# be overridden using 'configure --disable-shared --without-pic'.
|
||||
#
|
||||
dnl
|
||||
dnl Default behavior on some systems where building a shared library out
|
||||
dnl of non-PIC compiled objects will fail with following linker error
|
||||
dnl "relocation R_X86_64_32 can not be used when making a shared object"
|
||||
dnl is to build PIC objects even for static libraries. This behavior may
|
||||
dnl be overridden using 'configure --disable-shared --without-pic'.
|
||||
dnl
|
||||
|
||||
if test "$xc_lt_want_with_pic" = "default"; then
|
||||
case $host_cpu in @%:@ (
|
||||
|
|
@ -136,8 +136,8 @@ fi
|
|||
#
|
||||
|
||||
with_pic=$xc_lt_want_with_pic
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -150,22 +150,22 @@ dnl configure script, regardless of libtool version in
|
|||
dnl use when generating configure script.
|
||||
|
||||
m4_define([_XC_LIBTOOL_BODY],
|
||||
[dnl
|
||||
## ----------------------- ##
|
||||
## Start of libtool code ##
|
||||
## ----------------------- ##
|
||||
[
|
||||
dnl -----------------------
|
||||
dnl Start of libtool code
|
||||
dnl -----------------------
|
||||
m4_ifdef([LT_INIT],
|
||||
[dnl
|
||||
[
|
||||
LT_INIT([win32-dll])
|
||||
],[dnl
|
||||
],[
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AC_PROG_LIBTOOL
|
||||
])dnl
|
||||
## --------------------- ##
|
||||
## End of libtool code ##
|
||||
## --------------------- ##
|
||||
])
|
||||
dnl ---------------------
|
||||
dnl End of libtool code
|
||||
dnl ---------------------
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ dnl xc_lt_build_shared
|
|||
dnl xc_lt_build_static
|
||||
|
||||
m4_define([_XC_CHECK_LT_BUILD_LIBRARIES],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Verify if finally libtool shared libraries will be built
|
||||
#
|
||||
|
|
@ -208,8 +208,8 @@ case "x$enable_static" in @%:@ ((
|
|||
AC_MSG_ERROR([unexpected libtool enable_static value: $enable_static])
|
||||
;;
|
||||
esac
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -222,7 +222,7 @@ dnl provided when building libtool shared libraries.
|
|||
dnl Result stored in xc_lt_shlib_use_version_info.
|
||||
|
||||
m4_define([_XC_CHECK_LT_SHLIB_USE_VERSION_INFO],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Verify if libtool shared libraries should be linked using flag -version-info
|
||||
#
|
||||
|
|
@ -238,8 +238,8 @@ case $host_os in @%:@ (
|
|||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$xc_lt_shlib_use_version_info])
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ dnl provided when building libtool shared libraries.
|
|||
dnl Result stored in xc_lt_shlib_use_no_undefined.
|
||||
|
||||
m4_define([_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Verify if libtool shared libraries should be linked using flag -no-undefined
|
||||
#
|
||||
|
|
@ -270,8 +270,8 @@ case $host_os in @%:@ (
|
|||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$xc_lt_shlib_use_no_undefined])
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -284,7 +284,7 @@ dnl provided when building libtool shared libraries.
|
|||
dnl Result stored in xc_lt_shlib_use_mimpure_text.
|
||||
|
||||
m4_define([_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Verify if libtool shared libraries should be linked using flag -mimpure-text
|
||||
#
|
||||
|
|
@ -299,8 +299,8 @@ case $host_os in @%:@ (
|
|||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$xc_lt_shlib_use_mimpure_text])
|
||||
dnl
|
||||
m4_define([$0], [])[]dnl
|
||||
|
||||
m4_define([$0], [])[]
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -317,7 +317,7 @@ dnl xc_lt_build_shared_with_pic
|
|||
dnl xc_lt_build_static_with_pic
|
||||
|
||||
m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Find out whether libtool libraries would be built with PIC
|
||||
#
|
||||
|
|
@ -345,8 +345,8 @@ AC_MSG_CHECKING([whether to build shared libraries with PIC])
|
|||
AC_MSG_RESULT([$xc_lt_build_shared_with_pic])
|
||||
AC_MSG_CHECKING([whether to build static libraries with PIC])
|
||||
AC_MSG_RESULT([$xc_lt_build_static_with_pic])
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -361,7 +361,7 @@ dnl xc_lt_build_shared_only
|
|||
dnl xc_lt_build_static_only
|
||||
|
||||
m4_define([_XC_CHECK_LT_BUILD_SINGLE_VERSION],
|
||||
[dnl
|
||||
[
|
||||
#
|
||||
# Verify if libtool shared libraries will be built while static not built
|
||||
#
|
||||
|
|
@ -387,8 +387,8 @@ else
|
|||
xc_lt_build_static_only='no'
|
||||
fi
|
||||
AC_MSG_RESULT([$xc_lt_build_static_only])
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -402,15 +402,15 @@ dnl been executed. See individual check descriptions
|
|||
dnl for further info.
|
||||
|
||||
m4_define([_XC_LIBTOOL_POSTLUDE],
|
||||
[dnl
|
||||
[
|
||||
_XC_CHECK_LT_BUILD_LIBRARIES
|
||||
_XC_CHECK_LT_SHLIB_USE_VERSION_INFO
|
||||
_XC_CHECK_LT_SHLIB_USE_NO_UNDEFINED
|
||||
_XC_CHECK_LT_SHLIB_USE_MIMPURE_TEXT
|
||||
_XC_CHECK_LT_BUILD_WITH_PIC
|
||||
_XC_CHECK_LT_BUILD_SINGLE_VERSION
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -440,27 +440,27 @@ dnl xc_lt_build_shared_only
|
|||
dnl xc_lt_build_static_only
|
||||
|
||||
AC_DEFUN([XC_LIBTOOL],
|
||||
[dnl
|
||||
AC_PREREQ([2.50])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[LT_INIT])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
||||
dnl
|
||||
AC_REQUIRE([XC_CHECK_PATH_SEPARATOR])dnl
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
AC_REQUIRE([AC_PROG_CC])dnl
|
||||
dnl
|
||||
[
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_BEFORE([$0],[LT_INIT])
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||
|
||||
AC_REQUIRE([XC_CHECK_PATH_SEPARATOR])
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_REQUIRE([AC_PROG_CC])
|
||||
|
||||
_XC_LIBTOOL_PREAMBLE
|
||||
_XC_LIBTOOL_BODY
|
||||
_XC_LIBTOOL_POSTLUDE
|
||||
dnl
|
||||
|
||||
m4_ifdef([AC_LIBTOOL_WIN32_DLL],
|
||||
[m4_undefine([AC_LIBTOOL_WIN32_DLL])])dnl
|
||||
[m4_undefine([AC_LIBTOOL_WIN32_DLL])])
|
||||
m4_ifdef([AC_PROG_LIBTOOL],
|
||||
[m4_undefine([AC_PROG_LIBTOOL])])dnl
|
||||
[m4_undefine([AC_PROG_LIBTOOL])])
|
||||
m4_ifdef([LT_INIT],
|
||||
[m4_undefine([LT_INIT])])dnl
|
||||
dnl
|
||||
m4_define([$0],[])dnl
|
||||
[m4_undefine([LT_INIT])])
|
||||
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# serial 1
|
||||
dnl serial 1
|
||||
|
||||
|
||||
dnl _XC_CHECK_VAR_LIBS
|
||||
|
|
@ -200,8 +200,8 @@ dnl
|
|||
dnl Intended to be used early in configure script.
|
||||
|
||||
AC_DEFUN([XC_CHECK_USER_FLAGS], [
|
||||
AC_PREREQ([2.50])dnl
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
|
||||
AC_PREREQ([2.50])
|
||||
AC_BEFORE([$0],[XC_CHECK_PROG_CC])
|
||||
dnl check order below matters
|
||||
_XC_CHECK_VAR_LIBS
|
||||
_XC_CHECK_VAR_LDFLAGS
|
||||
|
|
@ -229,7 +229,7 @@ dnl
|
|||
dnl Intended to be used late in configure script.
|
||||
|
||||
AC_DEFUN([XC_CHECK_BUILD_FLAGS], [
|
||||
AC_PREREQ([2.50])dnl
|
||||
AC_PREREQ([2.50])
|
||||
dnl check order below matters
|
||||
_XC_CHECK_VAR_LIBS
|
||||
_XC_CHECK_VAR_LDFLAGS
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ dnl Version macros
|
|||
dnl -------------------------------------------------
|
||||
dnl Public macros.
|
||||
|
||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MAJOR],[1])dnl
|
||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MINOR],[0])dnl
|
||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MAJOR],[1])
|
||||
m4_define([XC_CONFIGURE_PREAMBLE_VER_MINOR],[0])
|
||||
|
||||
|
||||
dnl _XC_CFG_PRE_PREAMBLE
|
||||
|
|
@ -50,9 +50,9 @@ XC_CONFIGURE_PREAMBLE_VER_MINOR ##
|
|||
xc_configure_preamble_ver_major='XC_CONFIGURE_PREAMBLE_VER_MAJOR'
|
||||
xc_configure_preamble_ver_minor='XC_CONFIGURE_PREAMBLE_VER_MINOR'
|
||||
|
||||
#
|
||||
# Set IFS to space, tab and newline.
|
||||
#
|
||||
dnl
|
||||
dnl Set IFS to space, tab and newline.
|
||||
dnl
|
||||
|
||||
xc_space=' '
|
||||
xc_tab=' '
|
||||
|
|
@ -60,9 +60,9 @@ xc_newline='
|
|||
'
|
||||
IFS="$xc_space$xc_tab$xc_newline"
|
||||
|
||||
#
|
||||
# Set internationalization behavior variables.
|
||||
#
|
||||
dnl
|
||||
dnl Set internationalization behavior variables.
|
||||
dnl
|
||||
|
||||
LANG='C'
|
||||
LC_ALL='C'
|
||||
|
|
@ -71,9 +71,9 @@ export LANG
|
|||
export LC_ALL
|
||||
export LANGUAGE
|
||||
|
||||
#
|
||||
# Some useful variables.
|
||||
#
|
||||
dnl
|
||||
dnl Some useful variables.
|
||||
dnl
|
||||
|
||||
xc_msg_warn='configure: WARNING:'
|
||||
xc_msg_abrt='Can not continue.'
|
||||
|
|
@ -89,11 +89,11 @@ dnl Emits shell code that verifies that 'echo' command
|
|||
dnl is available, otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
||||
#
|
||||
# Verify that 'echo' command is available, otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||
dnl
|
||||
dnl Verify that 'echo' command is available, otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||
|
|
@ -102,7 +102,7 @@ case "x$xc_tst_str" in @%:@ ((
|
|||
:
|
||||
;;
|
||||
*)
|
||||
# Try built-in echo, and fail.
|
||||
dnl Try built-in echo, and fail.
|
||||
echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
|
@ -118,11 +118,11 @@ dnl Emits shell code that verifies that 'test' command
|
|||
dnl is available, otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_TEST],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
||||
#
|
||||
# Verify that 'test' command is available, otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||
dnl
|
||||
dnl Verify that 'test' command is available, otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||
|
|
@ -146,11 +146,11 @@ dnl Emits shell code that verifies that 'PATH' variable
|
|||
dnl is set, otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_VAR_PATH],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
||||
#
|
||||
# Verify that 'PATH' variable is set, otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||
dnl
|
||||
dnl Verify that 'PATH' variable is set, otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
|
||||
|
|
@ -174,11 +174,11 @@ dnl Emits shell code that verifies that 'expr' command
|
|||
dnl is available, otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
#
|
||||
# Verify that 'expr' command is available, otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
dnl
|
||||
dnl Verify that 'expr' command is available, otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
|
||||
|
|
@ -206,11 +206,11 @@ dnl script bootstrapping itself. No fancy testing for a
|
|||
dnl proper 'sed' this early, that should be done later.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_SED],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
#
|
||||
# Verify that 'sed' utility is found within 'PATH', otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
dnl
|
||||
dnl Verify that 'sed' utility is found within 'PATH', otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||
|
|
@ -239,11 +239,11 @@ dnl script bootstrapping itself. No fancy testing for a
|
|||
dnl proper 'grep' this early, that should be done later.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
#
|
||||
# Verify that 'grep' utility is found within 'PATH', otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
dnl
|
||||
dnl Verify that 'grep' utility is found within 'PATH', otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
(`echo "$xc_tst_str" 2>/dev/null \
|
||||
|
|
@ -268,11 +268,11 @@ dnl Emits shell code that verifies that 'tr' utility
|
|||
dnl is found within 'PATH', otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_TR],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
#
|
||||
# Verify that 'tr' utility is found within 'PATH', otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
dnl
|
||||
dnl Verify that 'tr' utility is found within 'PATH', otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
|
||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||
|
|
@ -297,11 +297,11 @@ dnl Emits shell code that verifies that 'wc' utility
|
|||
dnl is found within 'PATH', otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_WC],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
||||
#
|
||||
# Verify that 'wc' utility is found within 'PATH', otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||
dnl
|
||||
dnl Verify that 'wc' utility is found within 'PATH', otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown unknown unknown unknown'
|
||||
xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
|
||||
|
|
@ -326,11 +326,11 @@ dnl Emits shell code that verifies that 'cat' utility
|
|||
dnl is found within 'PATH', otherwise aborts execution.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
||||
#
|
||||
# Verify that 'cat' utility is found within 'PATH', otherwise abort.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||
dnl
|
||||
dnl Verify that 'cat' utility is found within 'PATH', otherwise abort.
|
||||
dnl
|
||||
|
||||
xc_tst_str='unknown'
|
||||
xc_tst_str=`cat <<_EOT 2>/dev/null \
|
||||
|
|
@ -367,13 +367,13 @@ dnl Non-empty user provided 'PATH_SEPARATOR' always
|
|||
dnl overrides the auto-detected one.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_CHECK_PATH_SEPARATOR],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
||||
#
|
||||
# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
|
||||
#
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||
dnl
|
||||
dnl Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
|
||||
dnl
|
||||
|
||||
# Directory count in 'PATH' when using a colon separator.
|
||||
dnl Directory count in 'PATH' when using a colon separator.
|
||||
xc_tst_dirs_col='x'
|
||||
xc_tst_prev_IFS=$IFS; IFS=':'
|
||||
for xc_tst_dir in $PATH; do
|
||||
|
|
@ -383,7 +383,7 @@ done
|
|||
IFS=$xc_tst_prev_IFS
|
||||
xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
|
||||
|
||||
# Directory count in 'PATH' when using a semicolon separator.
|
||||
dnl Directory count in 'PATH' when using a semicolon separator.
|
||||
xc_tst_dirs_sem='x'
|
||||
xc_tst_prev_IFS=$IFS; IFS=';'
|
||||
for xc_tst_dir in $PATH; do
|
||||
|
|
@ -394,30 +394,30 @@ IFS=$xc_tst_prev_IFS
|
|||
xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
|
||||
|
||||
if test "$xc_tst_dirs_sem" -eq "$xc_tst_dirs_col"; then
|
||||
# When both counting methods give the same result we do not want to
|
||||
# chose one over the other, and consider auto-detection not possible.
|
||||
dnl When both counting methods give the same result we do not want to
|
||||
dnl chose one over the other, and consider auto-detection not possible.
|
||||
if test -z "$PATH_SEPARATOR"; then
|
||||
# User should provide the correct 'PATH_SEPARATOR' definition.
|
||||
# Until then, guess that it is colon!
|
||||
dnl User should provide the correct 'PATH_SEPARATOR' definition.
|
||||
dnl Until then, guess that it is colon!
|
||||
echo "$xc_msg_warn path separator not determined, guessing colon" >&2
|
||||
PATH_SEPARATOR=':'
|
||||
fi
|
||||
else
|
||||
# Separator with the greater directory count is the auto-detected one.
|
||||
dnl Separator with the greater directory count is the auto-detected one.
|
||||
if test "$xc_tst_dirs_sem" -gt "$xc_tst_dirs_col"; then
|
||||
xc_tst_auto_separator=';'
|
||||
else
|
||||
xc_tst_auto_separator=':'
|
||||
fi
|
||||
if test -z "$PATH_SEPARATOR"; then
|
||||
# Use the auto-detected one when not already set.
|
||||
dnl Use the auto-detected one when not already set.
|
||||
PATH_SEPARATOR=$xc_tst_auto_separator
|
||||
elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
|
||||
echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
|
||||
fi
|
||||
fi
|
||||
xc_PATH_SEPARATOR=$PATH_SEPARATOR
|
||||
AC_SUBST([PATH_SEPARATOR])dnl
|
||||
AC_SUBST([PATH_SEPARATOR])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -426,19 +426,19 @@ dnl -------------------------------------------------
|
|||
dnl Private macro.
|
||||
|
||||
AC_DEFUN([_XC_CFG_PRE_POSTLUDE],
|
||||
[dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
||||
dnl
|
||||
[
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||
|
||||
xc_configure_preamble_result='yes'
|
||||
])
|
||||
|
||||
|
|
@ -471,58 +471,58 @@ dnl script is making it override autoconf and libtool
|
|||
dnl PATH_SEPARATOR check.
|
||||
|
||||
AC_DEFUN([XC_CONFIGURE_PREAMBLE],
|
||||
[dnl
|
||||
AC_PREREQ([2.50])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_PREAMBLE])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_POSTLUDE])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOL])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_PROG])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_PROGS])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_PATH_TOOL])dnl
|
||||
AC_BEFORE([$0],[AC_PATH_PROG])dnl
|
||||
AC_BEFORE([$0],[AC_PATH_PROGS])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_PROG_SED])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_GREP])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LN_S])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[LT_INIT])dnl
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
||||
dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])dnl
|
||||
AC_REQUIRE([_XC_CFG_PRE_POSTLUDE])dnl
|
||||
dnl
|
||||
m4_pattern_forbid([^_*XC])dnl
|
||||
m4_define([$0],[])dnl
|
||||
[
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_PREAMBLE])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||
AC_BEFORE([$0],[_XC_CFG_PRE_POSTLUDE])
|
||||
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOL])
|
||||
AC_BEFORE([$0],[AC_CHECK_PROG])
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])
|
||||
AC_BEFORE([$0],[AC_CHECK_PROGS])
|
||||
|
||||
AC_BEFORE([$0],[AC_PATH_TOOL])
|
||||
AC_BEFORE([$0],[AC_PATH_PROG])
|
||||
AC_BEFORE([$0],[AC_PATH_PROGS])
|
||||
|
||||
AC_BEFORE([$0],[AC_PROG_SED])
|
||||
AC_BEFORE([$0],[AC_PROG_GREP])
|
||||
AC_BEFORE([$0],[AC_PROG_LN_S])
|
||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||
|
||||
AC_BEFORE([$0],[LT_INIT])
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||
|
||||
AC_REQUIRE([_XC_CFG_PRE_PREAMBLE])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_TEST])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_VAR_PATH])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_SED])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_TR])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_WC])
|
||||
AC_REQUIRE([_XC_CFG_PRE_BASIC_CHK_UTIL_CAT])
|
||||
AC_REQUIRE([_XC_CFG_PRE_CHECK_PATH_SEPARATOR])
|
||||
AC_REQUIRE([_XC_CFG_PRE_POSTLUDE])
|
||||
|
||||
m4_pattern_forbid([^_*XC])
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -540,13 +540,13 @@ dnl Override when using autoconf 2.53 and newer.
|
|||
dnl
|
||||
|
||||
m4_ifdef([_AS_PATH_SEPARATOR_PREPARE],
|
||||
[dnl
|
||||
m4_undefine([_AS_PATH_SEPARATOR_PREPARE])dnl
|
||||
[
|
||||
m4_undefine([_AS_PATH_SEPARATOR_PREPARE])
|
||||
m4_defun([_AS_PATH_SEPARATOR_PREPARE],
|
||||
[dnl
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
||||
m4_define([$0],[])dnl
|
||||
])dnl
|
||||
[
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||
m4_define([$0],[])
|
||||
])
|
||||
])
|
||||
|
||||
dnl
|
||||
|
|
@ -554,14 +554,14 @@ dnl Override when using autoconf 2.50 to 2.52
|
|||
dnl
|
||||
|
||||
m4_ifdef([_AC_INIT_PREPARE_FS_SEPARATORS],
|
||||
[dnl
|
||||
m4_undefine([_AC_INIT_PREPARE_FS_SEPARATORS])dnl
|
||||
[
|
||||
m4_undefine([_AC_INIT_PREPARE_FS_SEPARATORS])
|
||||
m4_defun([_AC_INIT_PREPARE_FS_SEPARATORS],
|
||||
[dnl
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
||||
[
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||
ac_path_separator=$PATH_SEPARATOR
|
||||
m4_define([$0],[])dnl
|
||||
])dnl
|
||||
m4_define([$0],[])
|
||||
])
|
||||
])
|
||||
|
||||
dnl
|
||||
|
|
@ -569,14 +569,14 @@ dnl Override when using libtool 1.4.2
|
|||
dnl
|
||||
|
||||
m4_ifdef([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
||||
[dnl
|
||||
m4_undefine([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
|
||||
[
|
||||
m4_undefine([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])
|
||||
m4_defun([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
|
||||
[dnl
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
||||
[
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||
lt_cv_sys_path_separator=$PATH_SEPARATOR
|
||||
m4_define([$0],[])dnl
|
||||
])dnl
|
||||
m4_define([$0],[])
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
|
|
@ -610,43 +610,43 @@ dnl generated configure script will be done where first
|
|||
dnl direct or indirect usage of this macro happens.
|
||||
|
||||
AC_DEFUN([XC_CHECK_PATH_SEPARATOR],
|
||||
[dnl
|
||||
AC_PREREQ([2.50])dnl
|
||||
[
|
||||
AC_PREREQ([2.50])
|
||||
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOL])
|
||||
AC_BEFORE([$0],[AC_CHECK_PROG])
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])
|
||||
AC_BEFORE([$0],[AC_CHECK_PROGS])
|
||||
|
||||
AC_BEFORE([$0],[AC_PATH_TOOL])
|
||||
AC_BEFORE([$0],[AC_PATH_PROG])
|
||||
AC_BEFORE([$0],[AC_PATH_PROGS])
|
||||
|
||||
AC_BEFORE([$0],[AC_PROG_SED])
|
||||
AC_BEFORE([$0],[AC_PROG_GREP])
|
||||
AC_BEFORE([$0],[AC_PROG_LN_S])
|
||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])
|
||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])
|
||||
|
||||
AC_BEFORE([$0],[LT_INIT])
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])
|
||||
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])
|
||||
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOL])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_PROG])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_TOOLS])dnl
|
||||
AC_BEFORE([$0],[AC_CHECK_PROGS])dnl
|
||||
dnl Check that 'XC_CONFIGURE_PREAMBLE' has already run.
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_PATH_TOOL])dnl
|
||||
AC_BEFORE([$0],[AC_PATH_PROG])dnl
|
||||
AC_BEFORE([$0],[AC_PATH_PROGS])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[AC_PROG_SED])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_GREP])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LN_S])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_MKDIR_P])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_INSTALL])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_MAKE_SET])dnl
|
||||
AC_BEFORE([$0],[AC_PROG_LIBTOOL])dnl
|
||||
dnl
|
||||
AC_BEFORE([$0],[LT_INIT])dnl
|
||||
AC_BEFORE([$0],[AM_INIT_AUTOMAKE])dnl
|
||||
AC_BEFORE([$0],[AC_LIBTOOL_WIN32_DLL])dnl
|
||||
dnl
|
||||
AC_REQUIRE([XC_CONFIGURE_PREAMBLE])dnl
|
||||
dnl
|
||||
#
|
||||
# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
|
||||
#
|
||||
|
||||
if test -z "$xc_configure_preamble_result"; then
|
||||
AC_MSG_ERROR([xc_configure_preamble_result not set (internal problem)])
|
||||
fi
|
||||
|
||||
#
|
||||
# Check that 'PATH_SEPARATOR' has already been set.
|
||||
#
|
||||
dnl
|
||||
dnl Check that 'PATH_SEPARATOR' has already been set.
|
||||
dnl
|
||||
|
||||
if test -z "$xc_PATH_SEPARATOR"; then
|
||||
AC_MSG_ERROR([xc_PATH_SEPARATOR not set (internal problem)])
|
||||
|
|
@ -661,7 +661,7 @@ if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
|
|||
AC_MSG_RESULT([$xc_PATH_SEPARATOR])
|
||||
AC_MSG_ERROR([path separator mismatch (internal or config.site problem)])
|
||||
fi
|
||||
dnl
|
||||
m4_pattern_forbid([^_*XC])dnl
|
||||
m4_define([$0],[])dnl
|
||||
|
||||
m4_pattern_forbid([^_*XC])
|
||||
m4_define([$0],[])
|
||||
])
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
# serial 1
|
||||
dnl serial 1
|
||||
|
||||
|
||||
dnl The funny name of this file is intentional in order to make it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue