* automake.in ($seen_path_xtra): Remove.
authorAkim Demaille <akim@epita.fr>
Fri, 27 Apr 2001 13:57:39 +0000 (13:57 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 27 Apr 2001 13:57:39 +0000 (13:57 +0000)
(&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
(&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.

ChangeLog
automake.in

index 364c958..8514e74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2001-04-27  Akim Demaille  <akim@epita.fr>
 
+       * automake.in ($seen_path_xtra): Remove.
+       (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
+       (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
+
+       
+2001-04-27  Akim Demaille  <akim@epita.fr>
+
        * automake.in (&file_contents_internal): Declare it.
 
 2001-04-27  Akim Demaille  <akim@epita.fr>
index 971e463..fab7953 100755 (executable)
@@ -342,9 +342,6 @@ my $all_linguas_line = 0;
 # 1 if AC_PROG_INSTALL seen.
 my $seen_prog_install = 0;
 
-# Whether AC_PATH_XTRA has been seen in configure.ac.
-my $seen_path_xtra = 0;
-
 # TRUE if AC_DECL_YYTEXT was seen.
 my $seen_decl_yytext = 0;
 
@@ -2033,18 +2030,6 @@ sub handle_compile ()
     $output_vars .= $vars;
     $output_rules .= "$coms$rules";
 
-    # If using X, include some extra variable definitions.  NOTE
-    # we don't want to force these into CFLAGS or anything,
-    # because not all programs will necessarily use X.
-    if ($seen_path_xtra)
-      {
-       foreach my $var ('X_CFLAGS',
-                        'X_LIBS', 'X_EXTRA_LIBS', 'X_PRE_LIBS')
-         {
-           &define_configure_variable ($var);
-         }
-      }
-
     if ($seen_libtool)
       {
        # Output the libtool compilation rules.
@@ -4508,7 +4493,17 @@ sub scan_one_autoconf_file
                && (/AC_CANONICAL_HOST/ || /AC_CHECK_TOOL/);
         $seen_canonical = $AC_CANONICAL_SYSTEM if /AC_CANONICAL_SYSTEM/;
 
-       $seen_path_xtra = 1 if /AC_PATH_XTRA/;
+        # If using X, include some extra variable definitions.  NOTE
+        # we don't want to force these into CFLAGS or anything,
+        # because not all programs will necessarily use X.
+       if (/AC_PATH_XTRA/)
+         {
+           foreach my $var ('X_CFLAGS', 'X_LIBS', 'X_EXTRA_LIBS',
+                            'X_PRE_LIBS')
+             {
+               $configure_vars{$var} = $filename . ':' . $.
+             }
+         }
 
         # This macro handles several different things.
         if (/$AM_INIT_AUTOMAKE_PATTERN/o)