tidy-up: indent, whitespace, #error in make files
Replace invalid C with `#error`. Cherry-picked from #14692 Closes #14997
This commit is contained in:
parent
d83b528a80
commit
0aece8f66d
@ -182,7 +182,7 @@ AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int dummy=1;
|
int dummy=1;
|
||||||
#else
|
#else
|
||||||
Not a native Windows build target.
|
#error Not a native Windows build target.
|
||||||
#endif
|
#endif
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
@ -1333,7 +1333,7 @@ AS_HELP_STRING([--without-ca-fallback], [Don't use the built-in CA store of the
|
|||||||
if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
|
if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
|
||||||
AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
|
AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
|
||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built-in CA store of SSL library ])
|
AC_DEFINE_UNQUOTED(CURL_CA_FALLBACK, 1, [define "1" to use built-in CA store of SSL library])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -1384,7 +1384,7 @@ AC_DEFUN([CURL_CHECK_WIN32_LARGEFILE], [
|
|||||||
#if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
|
#if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
|
||||||
int dummy=1;
|
int dummy=1;
|
||||||
#else
|
#else
|
||||||
Win32 large file API not supported.
|
#error Win32 large file API not supported.
|
||||||
#endif
|
#endif
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
@ -1398,7 +1398,7 @@ AC_DEFUN([CURL_CHECK_WIN32_LARGEFILE], [
|
|||||||
#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
|
#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
|
||||||
int dummy=1;
|
int dummy=1;
|
||||||
#else
|
#else
|
||||||
Win32 small file API not supported.
|
#error Win32 small file API not supported.
|
||||||
#endif
|
#endif
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
|
|||||||
@ -2583,7 +2583,7 @@ AS_HELP_STRING([--disable-versioned-symbols], [Disable versioned symbols in shar
|
|||||||
|
|
||||||
esac
|
esac
|
||||||
], [
|
], [
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -4064,8 +4064,8 @@ fi
|
|||||||
CURL_CHECK_NONBLOCKING_SOCKET
|
CURL_CHECK_NONBLOCKING_SOCKET
|
||||||
|
|
||||||
if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then
|
if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then
|
||||||
AC_PATH_PROG( PERL, perl, ,
|
AC_PATH_PROG(PERL, perl,,
|
||||||
$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
|
$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin)
|
||||||
AC_SUBST(PERL)
|
AC_SUBST(PERL)
|
||||||
|
|
||||||
if test -z "$PERL"; then
|
if test -z "$PERL"; then
|
||||||
@ -4132,7 +4132,7 @@ AS_HELP_STRING([--disable-pthreads],[Disable POSIX threads]),
|
|||||||
AC_MSG_RESULT(auto)
|
AC_MSG_RESULT(auto)
|
||||||
want_pthreads=auto
|
want_pthreads=auto
|
||||||
fi
|
fi
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
dnl turn off pthreads if rt is disabled
|
dnl turn off pthreads if rt is disabled
|
||||||
|
|||||||
@ -1264,7 +1264,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_HALT_ON_ERROR], [
|
|||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
]],[[
|
]],[[
|
||||||
force compilation error
|
#error force compilation error
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
|
|||||||
@ -93,6 +93,6 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
char $1 ();
|
char $1 ();
|
||||||
#if defined __stub_$1 || defined __stub___$1
|
#if defined __stub_$1 || defined __stub___$1
|
||||||
choke me
|
#error force compilation error
|
||||||
#endif
|
#endif
|
||||||
], [return $1 ();])])
|
], [return $1 ();])])
|
||||||
|
|||||||
@ -69,13 +69,13 @@ if USE_ZSH_COMPLETION
|
|||||||
if test -n "$(PERL)"; then \
|
if test -n "$(PERL)"; then \
|
||||||
$(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \
|
$(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \
|
||||||
$(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \
|
$(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \
|
||||||
fi
|
fi
|
||||||
endif
|
endif
|
||||||
if USE_FISH_COMPLETION
|
if USE_FISH_COMPLETION
|
||||||
if test -n "$(PERL)"; then \
|
if test -n "$(PERL)"; then \
|
||||||
$(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \
|
$(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \
|
||||||
$(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \
|
$(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \
|
||||||
fi
|
fi
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -102,8 +102,7 @@ curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBCURL_PC_LIBS_PRIVATE@
|
|||||||
# if unit tests are enabled, build a static library to link them with
|
# if unit tests are enabled, build a static library to link them with
|
||||||
if BUILD_UNITTESTS
|
if BUILD_UNITTESTS
|
||||||
noinst_LTLIBRARIES = libcurltool.la
|
noinst_LTLIBRARIES = libcurltool.la
|
||||||
libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) \
|
libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
|
||||||
-DCURL_STATICLIB -DUNITTESTS
|
|
||||||
libcurltool_la_CFLAGS =
|
libcurltool_la_CFLAGS =
|
||||||
libcurltool_la_LDFLAGS = -static $(LINKFLAGS)
|
libcurltool_la_LDFLAGS = -static $(LINKFLAGS)
|
||||||
if USE_UNITY
|
if USE_UNITY
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user