]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: indent, whitespace, `#error` in make files
authorViktor Szakats <commit@vsz.me>
Mon, 26 Aug 2024 11:32:18 +0000 (13:32 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 22 Sep 2024 07:51:15 +0000 (09:51 +0200)
Replace invalid C with `#error`.

Cherry-picked from #14692
Closes #14997

acinclude.m4
configure.ac
m4/curl-compilers.m4
m4/curl-override.m4
scripts/Makefile.am
src/Makefile.am

index 67ea2d865ad33c3b0a99cefc11ae24f27b45694a..64d916c244257d7d5a2d0c4c20d358d0892014f7 100644 (file)
@@ -182,7 +182,7 @@ AC_DEFUN([CURL_CHECK_NATIVE_WINDOWS], [
 #ifdef _WIN32
         int dummy=1;
 #else
-        Not a native Windows build target.
+        #error Not a native Windows build target.
 #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
       AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
     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
 ])
 
@@ -1384,7 +1384,7 @@ AC_DEFUN([CURL_CHECK_WIN32_LARGEFILE], [
 #if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER))
           int dummy=1;
 #else
-          Win32 large file API not supported.
+          #error Win32 large file API not supported.
 #endif
         ]])
       ],[
@@ -1398,7 +1398,7 @@ AC_DEFUN([CURL_CHECK_WIN32_LARGEFILE], [
 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
           int dummy=1;
 #else
-          Win32 small file API not supported.
+          #error Win32 small file API not supported.
 #endif
         ]])
       ],[
index 784c0ce9fc91e1fadd9b88b9fa708f733d9ec3e5..f8b0e9751d55069a43a546a409ee0eee6783beaa 100644 (file)
@@ -2583,7 +2583,7 @@ AS_HELP_STRING([--disable-versioned-symbols], [Disable versioned symbols in shar
 
   esac
 ], [
-AC_MSG_RESULT(no)
+  AC_MSG_RESULT(no)
 ]
 )
 
@@ -4064,8 +4064,8 @@ fi
 CURL_CHECK_NONBLOCKING_SOCKET
 
 if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then
-  AC_PATH_PROG( PERL, perl, ,
-    $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
+  AC_PATH_PROG(PERL, perl,,
+    $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin)
   AC_SUBST(PERL)
 
   if test -z "$PERL"; then
@@ -4132,7 +4132,7 @@ AS_HELP_STRING([--disable-pthreads],[Disable POSIX threads]),
       AC_MSG_RESULT(auto)
       want_pthreads=auto
     fi
-    ]
+  ]
 )
 
 dnl turn off pthreads if rt is disabled
index e2f851df6879b91fe604fc97c6b041c6d3235419..68ff47c6022e16ab85acb5fd007229cf95c3d811 100644 (file)
@@ -1264,7 +1264,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_HALT_ON_ERROR], [
   AC_COMPILE_IFELSE([
     AC_LANG_PROGRAM([[
     ]],[[
-      force compilation error
+      #error force compilation error
     ]])
   ],[
     AC_MSG_RESULT([no])
index a640169c6e079d42e1765257986c43f9aa57bea0..e993e30f4e92e8b1d622e45bc7d7e974343b9ae6 100644 (file)
@@ -93,6 +93,6 @@ extern "C"
 #endif
 char $1 ();
 #if defined __stub_$1 || defined __stub___$1
-choke me
+#error force compilation error
 #endif
 ], [return $1 ();])])
index 02e1c91684f9fe58cfe9d6cccffef9cca4f95aa4..4454d42cf23ed6271e7fc305da4aca4f141dcc28 100644 (file)
@@ -69,13 +69,13 @@ if USE_ZSH_COMPLETION
        if test -n "$(PERL)"; then \
          $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \
          $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \
-  fi
+       fi
 endif
 if USE_FISH_COMPLETION
        if test -n "$(PERL)"; then \
          $(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \
          $(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \
-  fi
+       fi
 endif
 endif
 
index 6ea79c688e7b756f56cc9e9ba8c025c5e4e9104f..98cc194c4d8a08293ec28ad5ebf666fabba1681f 100644 (file)
@@ -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 BUILD_UNITTESTS
 noinst_LTLIBRARIES = libcurltool.la
-libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) \
-                          -DCURL_STATICLIB -DUNITTESTS
+libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
 libcurltool_la_CFLAGS =
 libcurltool_la_LDFLAGS = -static $(LINKFLAGS)
 if USE_UNITY