Add GNUSTANDARDS (for eggert only).
[gnulib.git] / m4 / getline.m4
index d3e1114..56960c9 100644 (file)
@@ -1,5 +1,8 @@
-# getline.m4 serial 7
-dnl Copyright (C) 1998-2002 Free Software Foundation, Inc.
+# getline.m4 serial 10
+
+dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software
+dnl 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
@@ -53,7 +56,16 @@ AC_DEFUN([AM_FUNC_GETLINE],
     AC_DEFINE([getline], [gnu_getline],
       [Define to a replacement function name for getline().])
     AC_LIBOBJ(getline)
+
+    # Avoid multiple inclusions of getndelim2.o into LIBOBJS.
+    # This hack won't be needed after gnulib requires Autoconf 2.58 or later.
+    case " $LIB@&t@OBJS " in
+    *" getndelim2.$ac_objext "* ) ;;
+    *) AC_LIBOBJ(getndelim2);;
+    esac
+
     gl_PREREQ_GETLINE
+    gl_PREREQ_GETNDELIM2
   fi
 ])