diff options
author | Karl Berry <karl@freefriends.org> | 2017-12-02 23:50:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-12-02 23:50:45 +0000 |
commit | ff851df1c782b55606f010e5b34ea9b26f5b7f1b (patch) | |
tree | 502e52e57b24a5439538e01a31bacb7189464dab /Build/source/m4/kpse-visibility.m4 | |
parent | d504191c4ade282e5e3fbfc6e3c76f3702b4ea0b (diff) |
KPSE_COMPILER_VISIBILITY: do not restore from kpse_save_flags unless it was set
git-svn-id: svn://tug.org/texlive/trunk@45970 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4/kpse-visibility.m4')
-rw-r--r-- | Build/source/m4/kpse-visibility.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/m4/kpse-visibility.m4 b/Build/source/m4/kpse-visibility.m4 index 8eeb029cc58..452e354d08e 100644 --- a/Build/source/m4/kpse-visibility.m4 +++ b/Build/source/m4/kpse-visibility.m4 @@ -1,5 +1,7 @@ +# $Id$ # Public macros for the TeX Live (TL) tree. -# Copyright (C) 2013, 2014 Peter Breitenlohner <tex-live@tug.org> +# Copyright 2017 Karl Berry <tex-live@tug.org> +# Copyright 2013-2014 Peter Breitenlohner <tex-live@tug.org> # # This file is free software; the copyright holder # gives unlimited permission to copy and/or distribute it, @@ -13,6 +15,7 @@ # them a Makefile.am must use them, e.g., in AM_CFLAGS or AM_CXXFLAGS. AC_DEFUN([KPSE_COMPILER_VISIBILITY], [dnl arrange that AC_PROG_CC uses _KPSE_VISIBILITY_CFLAGS etc. +echo 'dbg:[_KPSE_COMPILER_VISIBILITY] called.' >&AS_MESSAGE_LOG_FD AC_PROVIDE_IFELSE([AC_PROG_CC], [_KPSE_VISIBILITY_CFLAGS], [m4_define([AC_PROG_CC], @@ -64,11 +67,10 @@ for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility AS_TR_CPP($2)="$kpse_save_flags -Werror $kpse_flag" AC_COMPILE_IFELSE([], [kpse_cv_visibility_$2=$kpse_flag; break]) done +AS_TR_CPP($2)=$kpse_save_flags AC_LANG_POP([$1]) ]) -AS_TR_CPP($2)=$kpse_save_flags AS_CASE([$kpse_cv_visibility_$2], [unknown], [], [AC_SUBST([VISIBILITY_]AS_TR_CPP($2), [$kpse_cv_visibility_$2])]) ]) # _KPSE_VISIBILITY_FLAGS - |