"Fossies" - the Fresh Open Source Software Archive

Member "bayonne-1.2.16/m4/ost_reentrant.m4" (10 Jun 2003, 1438 Bytes) of package /linux/misc/old/bayonne-1.2.16.tar.gz:


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.

    1 dnl Copyright (C) 1999-2001 Open Source Telecom Corporation.
    2 dnl  
    3 dnl This program is free software; you can redistribute it and/or modify
    4 dnl it under the terms of the GNU General Public License as published by
    5 dnl the Free Software Foundation; either version 2 of the License, or
    6 dnl (at your option) any later version.
    7 dnl 
    8 dnl This program is distributed in the hope that it will be useful,
    9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
   10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11 dnl GNU General Public License for more details.
   12 dnl 
   13 dnl You should have received a copy of the GNU General Public License
   14 dnl along with this program; if not, write to the Free Software 
   15 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   16 dnl 
   17 dnl As a special exception to the GNU General Public License, if you 
   18 dnl distribute this file as part of a program that contains a configuration 
   19 dnl script generated by Autoconf, you may include it under the same 
   20 dnl distribution terms that you use for the rest of that program.
   21 
   22 AC_DEFUN(OST_LIB_REENTRANT,[
   23 	AC_CHECK_FUNCS(setenv)
   24 	AC_CHECK_LIB(c_r, localtime_r,[
   25 		LIBS="$LIBS -lc_r"
   26 		AC_DEFINE(HAVE_STRTOK_R, [1], [reentrant strtok])
   27 		AC_DEFINE(HAVE_LOCALTIME_R, [1], [reentrant localtime])],[
   28 		AC_CHECK_LIB(c, strtok_r, AC_DEFINE(HAVE_STRTOK_R, [1]))
   29 		AC_CHECK_LIB(c, localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, [1]))
   30 	])
   31 
   32 ])
   33