From 34094aff1348bd038ea2c5572c614631c7db3d6f Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 10 Nov 2021 12:13:32 +0800 Subject: [PATCH] build: consistently quote AC_CHECK_LIB() arguments --- configure.ac | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/configure.ac b/configure.ac index d71ce0063f8..6d721ad0a6f 100644 --- a/configure.ac +++ b/configure.ac @@ -628,20 +628,20 @@ AC_ARG_WITH([daemon], case $host in *mingw*) TARGET_OS=windows - AC_CHECK_LIB([kernel32], [GetModuleFileNameA],, AC_MSG_ERROR([libkernel32 missing])) - AC_CHECK_LIB([user32], [main],, AC_MSG_ERROR([libuser32 missing])) - AC_CHECK_LIB([gdi32], [main],, AC_MSG_ERROR([libgdi32 missing])) - AC_CHECK_LIB([comdlg32], [main],, AC_MSG_ERROR([libcomdlg32 missing])) - AC_CHECK_LIB([winmm], [main],, AC_MSG_ERROR([libwinmm missing])) - AC_CHECK_LIB([shell32], [SHGetSpecialFolderPathW],, AC_MSG_ERROR([libshell32 missing])) - AC_CHECK_LIB([comctl32], [main],, AC_MSG_ERROR([libcomctl32 missing])) - AC_CHECK_LIB([ole32], [CoCreateInstance],, AC_MSG_ERROR([libole32 missing])) - AC_CHECK_LIB([oleaut32], [main],, AC_MSG_ERROR([liboleaut32 missing])) - AC_CHECK_LIB([uuid], [main],, AC_MSG_ERROR([libuuid missing])) - AC_CHECK_LIB([advapi32], [CryptAcquireContextW],, AC_MSG_ERROR([libadvapi32 missing])) - AC_CHECK_LIB([ws2_32], [WSAStartup],, AC_MSG_ERROR([libws2_32 missing])) - AC_CHECK_LIB([shlwapi], [PathRemoveFileSpecW],, AC_MSG_ERROR([libshlwapi missing])) - AC_CHECK_LIB([iphlpapi], [GetAdaptersAddresses],, AC_MSG_ERROR([libiphlpapi missing])) + AC_CHECK_LIB([kernel32], [GetModuleFileNameA], [], [AC_MSG_ERROR([libkernel32 missing])]) + AC_CHECK_LIB([user32], [main], [], [AC_MSG_ERROR([libuser32 missing])]) + AC_CHECK_LIB([gdi32], [main], [], [AC_MSG_ERROR([libgdi32 missing])]) + AC_CHECK_LIB([comdlg32], [main], [], [AC_MSG_ERROR([libcomdlg32 missing])]) + AC_CHECK_LIB([winmm], [main], [], [AC_MSG_ERROR([libwinmm missing])]) + AC_CHECK_LIB([shell32], [SHGetSpecialFolderPathW], [], [AC_MSG_ERROR([libshell32 missing])]) + AC_CHECK_LIB([comctl32], [main], [], [AC_MSG_ERROR([libcomctl32 missing])]) + AC_CHECK_LIB([ole32], [CoCreateInstance], [], [AC_MSG_ERROR([libole32 missing])]) + AC_CHECK_LIB([oleaut32], [main], [], [AC_MSG_ERROR([liboleaut32 missing])]) + AC_CHECK_LIB([uuid], [main], [], [AC_MSG_ERROR([libuuid missing])]) + AC_CHECK_LIB([advapi32], [CryptAcquireContextW], [], [AC_MSG_ERROR([libadvapi32 missing])]) + AC_CHECK_LIB([ws2_32], [WSAStartup], [], [AC_MSG_ERROR([libws2_32 missing])]) + AC_CHECK_LIB([shlwapi], [PathRemoveFileSpecW], [], [AC_MSG_ERROR([libshlwapi missing])]) + AC_CHECK_LIB([iphlpapi], [GetAdaptersAddresses], [], [AC_MSG_ERROR([libiphlpapi missing])]) dnl -static is interpreted by libtool, where it has a different meaning. dnl In libtool-speak, it's -all-static. @@ -927,7 +927,7 @@ if test x$use_hardening != xno; then case $host in *mingw*) - AC_CHECK_LIB([ssp], [main],, AC_MSG_ERROR([libssp missing])) + AC_CHECK_LIB([ssp], [main], [], [AC_MSG_ERROR([libssp missing])]) ;; esac fi