]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-10-31 Akim Demaille <akim@epita.fr>
authorAkim Demaille <akim@epita.fr>
Tue, 21 Dec 1999 13:44:54 +0000 (13:44 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 21 Dec 1999 13:44:54 +0000 (13:44 +0000)
Fix a bug in templates of AC_CHECK_LIB.

* autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
  HAVE_FOO.

ChangeLog
autoheader.m4

index 7c074c6b6a3464148ec7c1c7b8bb9ee98b7cb267..7819a56158155291e296b8cdc073779db7c9d02e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-10-31  Akim Demaille  <akim@epita.fr>
+
+       Fix a bug in templates of AC_CHECK_LIB.
+
+       * autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
+       HAVE_FOO.
+
 1999-10-31  Akim Demaille  <akim@epita.fr>
 
        * acspecific.m4: Formating changes.
        as `ac_cs_root'.  The previous name was breaking the naming
        scheme.
 
+1999-10-24  Akim Demaille  <akim@epita.fr>
+
        * TODO: Updated.
        Added a section for 2.15 and 3.
 
index 9b1f7f262d826b0b6e2d5b12b443a3d5a15467ee..4bbe1e4ad291cf02e683bc51fa189b1fc773270e 100644 (file)
@@ -73,8 +73,10 @@ ac_verbatim_$1="\
 @@@
 ])])
 
+dnl FIXME: To be rigorous, this should not be systematic: depending
+dnl upon the arguments of AC_CHECK_LIB, we might not AC_DEFINE.
 define([AH_CHECK_LIB],
-[AH_TEMPLATE(AC_TR_CPP(HAVE_$1),
+[AH_TEMPLATE(AC_TR_CPP(HAVE_LIB$1),
              [Define if you have the `]$1[' library (-l]$1[).])
 # Success
 $3
@@ -103,10 +105,10 @@ define([AH_CHECK_FUNCS],
 [AC_FOREACH([AC_Func], [$1],
   [AH_TEMPLATE(AC_TR_CPP(HAVE_[]AC_Func),
                [Define if you have the `]AC_Func[' function.])
-                # Success
-                $2
-                # Failure
-                $3])
+   # Success
+   $2
+   # Failure
+   $3])
 ])
 
 define([AH_CHECK_SIZEOF],
@@ -126,10 +128,10 @@ define([AH_CHECK_MEMBERS],
                [`]AC_Member_Aggregate['.])
    popdef([AC_Member_Member])
    popdef([AC_Member_Aggregate])
-                # Success
-                $2
-                # Failure
-                $3])
+   # Success
+   $2
+   # Failure
+   $3])
 ])