"Fossies" - the Fresh Open Source Software Archive

Member "gnuastro-0.9/bootstrapped/m4/func.m4" (17 Apr 2019, 715 Bytes) of package /linux/privat/gnuastro-0.9.tar.lz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "func.m4": 0.8_vs_0.9.

    1 # func.m4 serial 2
    2 dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
    3 dnl This file is free software; the Free Software Foundation
    4 dnl gives unlimited permission to copy and/or distribute it,
    5 dnl with or without modifications, as long as this notice is preserved.
    7 # Written by Simon Josefsson
    9 AC_DEFUN([gl_FUNC],
   10 [
   11   AC_CACHE_CHECK([whether __func__ is available], [gl_cv_var_func],
   13        [AC_LANG_PROGRAM([[]], [[const char *str = __func__;]])],
   14        [gl_cv_var_func=yes],
   15        [gl_cv_var_func=no]))
   16   if test "$gl_cv_var_func" != yes; then
   17     AC_DEFINE([__func__], ["<unknown function>"],
   18               [Define as a replacement for the ISO C99 __func__ variable.])
   19   fi
   20 ])