PHP 7.4.33
Preview: visibility.m4 Size: 3.27 KB
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/usr/share/aclocal/visibility.m4

# visibility.m4 serial 5 (gettext-0.18.2)
dnl Copyright (C) 2005, 2008, 2010-2016 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl From Bruno Haible.

dnl Tests whether the compiler supports the command-line option
dnl -fvisibility=hidden and the function and variable attributes
dnl __attribute__((__visibility__("hidden"))) and
dnl __attribute__((__visibility__("default"))).
dnl Does *not* test for __visibility__("protected") - which has tricky
dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on
dnl Mac OS X.
dnl Does *not* test for __visibility__("internal") - which has processor
dnl dependent semantics.
dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
dnl "really only recommended for legacy code".
dnl Set the variable CFLAG_VISIBILITY.
dnl Defines and sets the variable HAVE_VISIBILITY.

AC_DEFUN([gl_VISIBILITY],
[
  AC_REQUIRE([AC_PROG_CC])
  CFLAG_VISIBILITY=
  HAVE_VISIBILITY=0
  if test -n "$GCC"; then
    dnl First, check whether -Werror can be added to the command line, or
    dnl whether it leads to an error because of some other option that the
    dnl user has put into $CC $CFLAGS $CPPFLAGS.
    AC_MSG_CHECKING([whether the -Werror option is usable])
    AC_CACHE_VAL([gl_cv_cc_vis_werror], [
      gl_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -Werror"
      AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM([[]], [[]])],
        [gl_cv_cc_vis_werror=yes],
        [gl_cv_cc_vis_werror=no])
      CFLAGS="$gl_save_CFLAGS"])
    AC_MSG_RESULT([$gl_cv_cc_vis_werror])
    dnl Now check whether visibility declarations are supported.
    AC_MSG_CHECKING([for simple visibility declarations])
    AC_CACHE_VAL([gl_cv_cc_visibility], [
      gl_save_CFLAGS="$CFLAGS"
      CFLAGS="$CFLAGS -fvisibility=hidden"
      dnl We use the option -Werror and a function dummyfunc, because on some
      dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
      dnl "visibility attribute not supported in this configuration; ignored"
      dnl at the first function definition in every compilation unit, and we
      dnl don't want to use the option in this case.
      if test $gl_cv_cc_vis_werror = yes; then
        CFLAGS="$CFLAGS -Werror"
      fi
      AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM(
           [[extern __attribute__((__visibility__("hidden"))) int hiddenvar;
             extern __attribute__((__visibility__("default"))) int exportedvar;
             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
             void dummyfunc (void) {}
           ]],
           [[]])],
        [gl_cv_cc_visibility=yes],
        [gl_cv_cc_visibility=no])
      CFLAGS="$gl_save_CFLAGS"])
    AC_MSG_RESULT([$gl_cv_cc_visibility])
    if test $gl_cv_cc_visibility = yes; then
      CFLAG_VISIBILITY="-fvisibility=hidden"
      HAVE_VISIBILITY=1
    fi
  fi
  AC_SUBST([CFLAG_VISIBILITY])
  AC_SUBST([HAVE_VISIBILITY])
  AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
    [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
])

Directory Contents

Dirs: 0 × Files: 49

Name Size Perms Modified Actions
1.88 KB lrw-r--r-- 2019-10-12 12:28:39
Edit Download
842 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
4.27 KB lrw-r--r-- 2016-05-28 00:29:03
Edit Download
4.56 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
13.83 KB lrw-r--r-- 2021-10-09 23:41:50
Edit Download
6.18 KB lrw-r--r-- 2018-04-22 09:41:36
Edit Download
15.49 KB lrw-r--r-- 2016-05-28 00:29:03
Edit Download
830 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
907 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
4.65 KB lrw-r--r-- 2019-10-12 12:20:46
Edit Download
4.61 KB lrw-r--r-- 2019-10-12 12:20:46
Edit Download
9.06 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
2.35 KB lrw-r--r-- 2016-05-28 00:29:03
Edit Download
11.84 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
917 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
2.47 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.10 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.22 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1020 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.33 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
3.60 KB lrw-r--r-- 2016-06-11 12:59:32
Edit Download
32.28 KB lrw-r--r-- 2016-06-11 12:59:32
Edit Download
8.27 KB lrw-r--r-- 2016-06-11 12:59:32
Edit Download
6.09 KB lrw-r--r-- 2022-06-28 11:54:07
Edit Download
298.69 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
7.70 KB lrw-r--r-- 2017-07-23 05:10:06
Edit Download
7.93 KB lrw-r--r-- 2009-05-12 06:29:34
Edit Download
1.43 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
4.63 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
2.51 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
29.33 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
14.17 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
4.28 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
699 B lrw-r--r-- 2019-10-11 14:55:28
Edit Download
6.00 KB lrw-r--r-- 2019-10-11 14:55:28
Edit Download
4.47 KB lrw-r--r-- 2025-03-31 08:19:27
Edit Download
1.19 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
12.37 KB lrw-r--r-- 2017-03-24 05:16:18
Edit Download
18.52 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.54 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
3.02 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
2.99 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
995 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
14.80 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.09 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
3.27 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
818 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download
1.03 KB lrw-r--r-- 2016-03-20 07:37:53
Edit Download
406 B lrw-r--r-- 2016-03-20 07:37:53
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).