libidn-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS libidn/gl/m4


From: libidn-commit
Subject: CVS libidn/gl/m4
Date: Sun, 26 Sep 2004 09:04:33 +0200

Update of /home/cvs/libidn/gl/m4
In directory dopio:/tmp/cvs-serv24161/gl/m4

Added Files:
        getopt.m4 gnulib.m4 onceonly_2_57.m4 strdup.m4 
Log Message:
Use Lesser GNULib.

--- /home/cvs/libidn/gl/m4/strdup.m4    2003/09/12 18:48:20     1.2
+++ /home/cvs/libidn/gl/m4/strdup.m4    2004/09/26 07:04:33     1.3
@@ -1,5 +1,5 @@
-# strdup.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# strdup.m4 serial 5
+dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
 dnl This file is free software, distributed under the terms of the GNU
 dnl General Public License.  As a special exception to the GNU General
 dnl Public License, this file may be distributed as part of a program
@@ -9,14 +9,10 @@
 AC_DEFUN([gl_FUNC_STRDUP],
 [
   AC_REPLACE_FUNCS(strdup)
-  if test $ac_cv_func_strdup = no; then
-    gl_PREREQ_STRDUP
-  fi
+  AC_CHECK_DECLS_ONCE(strdup)
+  AH_BOTTOM([#include <strdup.h>])
+  gl_PREREQ_STRDUP
 ])
 
 # Prerequisites of lib/strdup.c.
-AC_DEFUN([gl_PREREQ_STRDUP], [
-  AC_REQUIRE([AC_HEADER_STDC])
-  :
-])
-
+AC_DEFUN([gl_PREREQ_STRDUP], [:])

--- /home/cvs/libidn/gl/m4/getopt.m4    2004/09/26 07:04:33     NONE
+++ /home/cvs/libidn/gl/m4/getopt.m4    2004/09/26 07:04:33     1.1
# getopt.m4 serial 3
dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.

# The getopt module assume you want GNU getopt, with getopt_long etc,
# rather than vanilla POSIX getopt.  This means your your code should
# always include <getopt.h> for the getopt prototypes.

AC_DEFUN([gl_GETOPT_SUBSTITUTE],
[
  GETOPT_H=getopt.h
  AC_LIBOBJ([getopt])
  AC_LIBOBJ([getopt1])
  AC_DEFINE([optarg], [rpl_optarg],
    [Define to rpl_optarg if the replacement variable should be used.])
  AC_DEFINE([optind], [rpl_optind],
    [Define to rpl_optind if the replacement variable should be used.])
  AC_DEFINE([optopt], [rpl_optopt],
    [Define to rpl_optopt if the replacement variable should be used.])
  AC_DEFINE([getopt], [rpl_getopt],
    [Define to rpl_getopt if the replacement function should be used.])
  AC_DEFINE([getopt_long], [rpl_getopt_long],
    [Define to rpl_getopt_long if the replacement function should be used.])
  AC_DEFINE([getopt_long_only], [rpl_getopt_long_only],
    [Define to rpl_getopt_long_only if the replacement function should be 
used.])
  AC_SUBST([GETOPT_H])
])

AC_DEFUN([gl_GETOPT],
[
  gl_PREREQ_GETOPT

  GETOPT_H=
  AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h])
  AC_CHECK_FUNCS([getopt_long_only], [], [GETOPT_H=getopt.h])

  if test -n "$GETOPT_H"; then
     gl_GETOPT_SUBSTITUTE
  fi
])

# Prerequisites of lib/getopt*.
AC_DEFUN([gl_PREREQ_GETOPT], [:])
--- /home/cvs/libidn/gl/m4/gnulib.m4    2004/09/26 07:04:33     NONE
+++ /home/cvs/libidn/gl/m4/gnulib.m4    2004/09/26 07:04:33     1.1
# Copyright (C) 2004 Free Software Foundation, Inc.
# This file is free software, distributed under the terms of the GNU
# General Public License.  As a special exception to the GNU General
# Public License, this file may be distributed as part of a program
# that contains a configuration script generated by Autoconf, under
# the same distribution terms as the rest of that program.
#
# Generated by gnulib-tool.
#
# Invoked as: gnulib-tool --import
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gl 
--m4-base=gl/m4 --libtool dummy getopt gettext strdup

AC_DEFUN([gl_EARLY],
[
])

AC_DEFUN([gl_INIT],
[
  gl_GETOPT
  gl_FUNC_STRDUP
])

dnl Usage: gl_MODULES(module1 module2 ...)
AC_DEFUN([gl_MODULES], [])

dnl Usage: gl_SOURCE_BASE(DIR)
AC_DEFUN([gl_SOURCE_BASE], [])

dnl Usage: gl_M4_BASE(DIR)
AC_DEFUN([gl_M4_BASE], [])

dnl Usage: gl_LIB(LIBNAME)
AC_DEFUN([gl_LIB], [])

# gnulib.m4 ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]