Here's a patch to make automake recognize the new autoconf macro,
AC_LIBOBJ, that encapsulates this sort of code:

  AC_SUBST(LIBOBJS)
  LIBOBJS="$LIBOBJS strftime.$ac_objext"

With AC_LIBOBJ, you just do this:

  AC_LIBOBJ([strftime])

--------------------------
I'll check it in tomorrow unless I hear an objection.

        * automake.in (scan_one_configure_file): Recognize AC_LIBOBJ.

Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.786
diff -u -p -r1.786 automake.in
--- automake.in 2000/05/12 00:02:29     1.786
+++ automake.in 2000/07/02 12:35:02
@@ -4373,6 +4373,13 @@ sub scan_one_configure_file
                }
            }
        }
+       elsif (/AC_LIBOBJ\(([^])]+)\)/)
+       {
+           local $func = $1;
+           # Remove any square brackets.
+           $func =~ s/^\[(.*)\]$/$1/;
+           $libsources{"$func.c"} = 1;
+       }
 
        if (! $in_ac_replace && s/AC_REPLACE_FUNCS\s*\(\[?//)
        {

Reply via email to