commit 2fb6d01cf03ea7142fe1759fc8241f55331bf876
parent 483dc5ef924ce05897d9215943ed1328c3bc8416
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 13 May 2019 07:42:44 +0200
use AS_CASE/AS_IF
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Mon 13 May 2019 07:42:19 AM CEST
+ Consistently use AS_IF and AS_CASE in configure.ac. -CG
+
Sun 12 May 2019 01:56:56 PM CEST
Updated French translation. -CG
diff --git a/configure.ac b/configure.ac
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
#
# This file is part of GNU libextractor
-# Copyright (C) 2003-2018 Christian Grothoff
+# Copyright (C) 2003-2019 Christian Grothoff
#
# GNU libextractor is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
@@ -233,12 +233,12 @@ AC_ARG_ENABLE(linker-hardening,
HIDDEN_VISIBILITY_CFLAGS=""
AS_CASE(["$host"],
[*-*-mingw*],[
- dnl on mingw32 we do -fvisibility=hidden and __declspec(dllexport)
+ # mingw32 we do -fvisibility=hidden and __declspec(dllexport)
AC_DEFINE([_EXTRACTOR_EXTERN], [__attribute__((visibility("default"))) __declspec(dllexport) extern],
[defines how to decorate public symbols while building])
HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
],[
- dnl on other compilers, check if we can do -fvisibility=hidden
+ # other compilers, check if we can do -fvisibility=hidden
AX_CHECK_LINK_FLAG([-fvisibility=hidden],
[AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[AC_DEFINE([_EXTRACTOR_EXTERN], [__attribute__((visibility("default"))) extern],
@@ -479,7 +479,7 @@ AC_SEARCH_LIBS(shm_open, rt)
AC_CHECK_FUNCS([mkstemp strndup munmap strcasecmp strdup strncasecmp memmove memset strtoul floor getcwd pow setenv sqrt strchr strcspn strrchr strnlen strndup ftruncate shm_open shm_unlink lseek64])
-dnl This is kind of tedious, but simple and straightforward
+# is kind of tedious, but simple and straightforward
sockets=no
AC_MSG_CHECKING(for sockets)
AC_LANG_PUSH(C)