groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff ChangeLog Makefile.in configure configure...


From: Bernd Warken
Subject: [Groff-commit] groff ChangeLog Makefile.in configure configure...
Date: Mon, 21 Mar 2011 21:37:55 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Bernd Warken <bwarken>  11/03/21 21:37:54

Modified files:
        .              : ChangeLog Makefile.in configure configure.ac 
        contrib/groffer: ChangeLog Makefile.sub 
        contrib/groffer/perl: groffer.pl 
        m4             : groff.m4 

Log message:
        groffer: remove hardcoded path to 'libdir/groff/groffer' directory.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1294&r2=1.1295
http://cvs.savannah.gnu.org/viewcvs/groff/Makefile.in?cvsroot=groff&r1=1.112&r2=1.113
http://cvs.savannah.gnu.org/viewcvs/groff/configure?cvsroot=groff&r1=1.86&r2=1.87
http://cvs.savannah.gnu.org/viewcvs/groff/configure.ac?cvsroot=groff&r1=1.47&r2=1.48
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/groffer/ChangeLog?cvsroot=groff&r1=1.58&r2=1.59
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/groffer/Makefile.sub?cvsroot=groff&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/groffer/perl/groffer.pl?cvsroot=groff&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/groff/m4/groff.m4?cvsroot=groff&r1=1.6&r2=1.7

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1294
retrieving revision 1.1295
diff -u -b -r1.1294 -r1.1295
--- ChangeLog   18 Mar 2011 01:05:59 -0000      1.1294
+++ ChangeLog   21 Mar 2011 21:37:53 -0000      1.1295
@@ -1,3 +1,14 @@
+2011-03-21  Jan Vcelak <address@hidden>
+           Bernd Warken
+
+       [groffer] Remove hardcoded path to 'libdir/groff/groffer' directory.
+       
+       * configure.ac: add GROFFERDIR variables.
+       
+       * Makefile.in: add and handle variable groffer_dir
+       
+       * m4/groff.m4: set up the --with-grofferdir command line option.
+
 2011-03-18  Werner LEMBERG  <address@hidden>
 
        [troff] Improve error message.

Index: Makefile.in
===================================================================
RCS file: /cvsroot/groff/groff/Makefile.in,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -b -r1.112 -r1.113
--- Makefile.in 20 Dec 2010 09:37:59 -0000      1.112
+++ Makefile.in 21 Mar 2011 21:37:53 -0000      1.113
@@ -188,6 +188,8 @@
 # gxditview.
 address@hidden@
 
address@hidden@
+
 # `tmacpath' says where to look for macro files.
 # The current directory will be prepended in unsafe mode only; the home
 # directory will be always added.
@@ -493,6 +495,7 @@
   "YACC=$(YACC)" \
   "YACCFLAGS=$(YACCFLAGS)" \
   "appresdir=$(appresdir)" \
+  "groffer_dir=$(groffer_dir)" \
   "bindir=$(bindir)" \
   "common_words_file=$(common_words_file)" \
   "datadir=$(datadir)" \

Index: configure
===================================================================
RCS file: /cvsroot/groff/groff/configure,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- configure   31 Dec 2010 07:35:06 -0000      1.86
+++ configure   21 Mar 2011 21:37:54 -0000      1.87
@@ -648,6 +648,7 @@
 LPQ
 LP
 LPR
+groffer_dir
 appresdir
 XLIBDIRS
 XPROGDIRS
@@ -715,6 +716,7 @@
 enable_option_checking
 with_x
 with_appresdir
+with_grofferdir
 with_gnu_ld
 enable_rpath
 with_libiconv_prefix
@@ -1362,6 +1364,7 @@
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-x                use the X Window System
   --with-appresdir=DIR    X11 application resource files
+  --with-grofferdir=DIR   groffer files location
   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   --without-libiconv-prefix     don't search for libiconv in includedir and 
libdir
@@ -1610,7 +1613,7 @@
 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 ( $as_echo "## -------------------------------- ##
 ## Report this to address@hidden ##
-## -------------------------------- ##"[]
+## -------------------------------- ##"
      ) | sed "s/^/$as_me: WARNING:     /" >&2
     ;;
 esac
@@ -2103,7 +2106,7 @@
 
     $as_echo "## ---------------- ##
 ## Cache variables. ##
-## ---------------- ##"[]
+## ---------------- ##"
     echo
     # The following way of writing the cache mishandles newlines in values,
 (
@@ -2139,7 +2142,7 @@
 
     $as_echo "## ----------------- ##
 ## Output variables. ##
-## ----------------- ##"[]
+## ----------------- ##"
     echo
     for ac_var in $ac_subst_vars
     do
@@ -2154,7 +2157,7 @@
     if test -n "$ac_subst_files"; then
       $as_echo "## ------------------- ##
 ## File substitutions. ##
-## ------------------- ##"[]
+## ------------------- ##"
       echo
       for ac_var in $ac_subst_files
       do
@@ -2170,7 +2173,7 @@
     if test -s confdefs.h; then
       $as_echo "## ----------- ##
 ## confdefs.h. ##
-## ----------- ##"[]
+## ----------- ##"
       echo
       cat confdefs.h
       echo
@@ -2249,7 +2252,7 @@
       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
   fi
 done
 
@@ -2648,7 +2651,7 @@
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in 
\`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2763,7 +2766,7 @@
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
@@ -2806,7 +2809,7 @@
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest conftest$ac_cv_exeext
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -2865,7 +2868,7 @@
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot run C compiled programs.
 If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
     fi
   fi
 fi
@@ -2917,7 +2920,7 @@
 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 fi
@@ -3266,7 +3269,7 @@
   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 fi
 
 ac_ext=c
@@ -3899,7 +3902,7 @@
 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in 
\`$ac_pwd':" >&5
 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
+See \`config.log' for more details" "$LINENO" 5 ; }
 
 # Provide some information about the compiler.
 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -4592,7 +4595,7 @@
   have_x=disabled
 else
   case $x_includes,$x_libraries in #(
-    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 
5;; #(
+    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 
5 ;; #(
     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
@@ -5446,6 +5449,18 @@
      fi
    fi
 
+
+# Check whether --with-grofferdir was given.
+if test "${with_grofferdir+set}" = set; then :
+  withval=$with_grofferdir;
+fi
+
+if test "x$with_grofferdir" = "x"; then
+    groffer_dir=$libdir/groff/groffer
+  else
+    groffer_dir=$with_grofferdir
+  fi
+
 if test -z "$PSPRINT"; then
      for ac_prog in lpr
 do
@@ -7868,7 +7883,7 @@
 $as_echo "$ac_cv_build" >&6; }
 case $ac_cv_build in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 esac
 build=$ac_cv_build
 ac_save_IFS=$IFS; IFS='-'
@@ -7901,7 +7916,7 @@
 $as_echo "$ac_cv_host" >&6; }
 case $ac_cv_host in
 *-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 esac
 host=$ac_cv_host
 ac_save_IFS=$IFS; IFS='-'
@@ -10914,7 +10929,7 @@
     "contrib/gdiffmk/tests/runtests") CONFIG_FILES="$CONFIG_FILES 
contrib/gdiffmk/tests/runtests" ;;
     "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
 
-  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
   esac
 done
 
@@ -11229,7 +11244,7 @@
   esac
   case $ac_mode$ac_tag in
   :[FHL]*:*);;
-  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
   :[FH]-) ac_tag=-:-;;
   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   esac
@@ -11257,7 +11272,7 @@
           [\\/$]*) false;;
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
           esac ||
-          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
       esac
       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; 
esac
       as_fn_append ac_file_inputs " '$ac_f'"

Index: configure.ac
===================================================================
RCS file: /cvsroot/groff/groff/configure.ac,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- configure.ac        25 Jun 2009 16:37:54 -0000      1.47
+++ configure.ac        21 Mar 2011 21:37:54 -0000      1.48
@@ -59,6 +59,8 @@
 GROFF_X11
 GROFF_APPRESDIR_OPTION
 GROFF_APPRESDIR_DEFAULT
+GROFF_GROFFERDIR_OPTION
+GROFF_GROFFERDIR_DEFAULT
 GROFF_PRINT
 AC_PROG_EGREP
 AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl])

Index: contrib/groffer/ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/contrib/groffer/ChangeLog,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- contrib/groffer/ChangeLog   27 Jan 2011 05:03:20 -0000      1.58
+++ contrib/groffer/ChangeLog   21 Mar 2011 21:37:54 -0000      1.59
@@ -1,3 +1,12 @@
+2011-03-21  Jan Vcelak <address@hidden>
+           Bernd Warken
+
+       Remove hardcoded path to 'libdir/groff/groffer' directory.
+       
+       * Makefile.sub: use @groffer_dir@
+       
+       * groffer.pl: use @groffer_dir@
+
 2011-01-27  James Budiono  <address@hidden>
            Bernd Warken
 

Index: contrib/groffer/Makefile.sub
===================================================================
RCS file: /cvsroot/groff/groff/contrib/groffer/Makefile.sub,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- contrib/groffer/Makefile.sub        8 Jan 2009 08:28:26 -0000       1.29
+++ contrib/groffer/Makefile.sub        21 Mar 2011 21:37:54 -0000      1.30
@@ -63,8 +63,6 @@
 GROFFER_PERL_=`echo $(GROFFER_PERL) | sed 's|$(srcdir)/perl/||g'`
 GROFFER_SHELL_=`echo $(GROFFER_SHELL) | sed 's|$(srcdir)/shell||g'`
 
-groffer_dir=$(libdir)/groff/groffer
-
 # TODO: Add perl check to configure script.
 groffer: $(GROFFER_PERL) $(GROFFER_SHELL) \
          $(GROFFER_REST) $(SH_DEPS_SED_SCRIPT)
@@ -75,6 +73,7 @@
             -e "s|@g@|$(g)|g" \
            -e "s|@BINDIR@|$(DESTDIR)$(bindir)|g" \
            -e "s|@libdir@|$(DESTDIR)$(libdir)|g" \
+           -e "s|@groffer_dir@|$(DESTDIR)$(groffer_dir)|g" \
            -e "s|@VERSION@|$(version)$(revision)|g" \
            -e "$(SH_SCRIPT_SED_CMD)" \
            $(srcdir)/perl/groffer.pl >$@; \
@@ -89,6 +88,7 @@
             -e "s|@g@|$(g)|g" \
            -e "s|@BINDIR@|$(DESTDIR)$(bindir)|g" \
            -e "s|@libdir@|$(DESTDIR)$(libdir)|g" \
+           -e "s|@groffer_dir@|$(DESTDIR)$(groffer_dir)|g" \
            -e "s|@VERSION@|$(version)$(revision)|g" \
            -e "$(SH_SCRIPT_SED_CMD)" \
             $(srcdir)/shell/groffer.sh >$@; \

Index: contrib/groffer/perl/groffer.pl
===================================================================
RCS file: /cvsroot/groff/groff/contrib/groffer/perl/groffer.pl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- contrib/groffer/perl/groffer.pl     27 Jan 2011 05:03:20 -0000      1.10
+++ contrib/groffer/perl/groffer.pl     21 Mar 2011 21:37:54 -0000      1.11
@@ -132,8 +132,7 @@
       $at_at{'BINDIR'} = '@BINDIR@';
       $at_at{'G'} = '@g@';
       $at_at{'LIBDIR'} = '@libdir@';
-      $groffer_libdir =
-       File::Spec->catdir($at_at{'LIBDIR'}, 'groff', 'groffer');
+      $groffer_libdir = '@groffer_dir@';
       $file_perl_test_pl = File::Spec->catfile($groffer_libdir,
                                               'perl_test.pl');
       $File_version_sh = File::Spec->catfile($groffer_libdir, 'version.sh');

Index: m4/groff.m4
===================================================================
RCS file: /cvsroot/groff/groff/m4/groff.m4,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- m4/groff.m4 5 Jan 2009 20:10:53 -0000       1.6
+++ m4/groff.m4 21 Mar 2011 21:37:54 -0000      1.7
@@ -1193,3 +1193,19 @@
        ])
      fi
    fi])
+
+
+# Set up the `--with-grofferdir' command line option.
+
+AC_DEFUN([GROFF_GROFFERDIR_OPTION],
+  [AC_ARG_WITH([grofferdir],
+     AS_HELP_STRING([--with-grofferdir=DIR],
+                   [groffer files location]))])
+
+AC_DEFUN([GROFF_GROFFERDIR_DEFAULT],
+  [if test "x$with_grofferdir" = "x"; then
+    groffer_dir=$libdir/groff/groffer
+  else
+    groffer_dir=$with_grofferdir
+  fi
+  AC_SUBST([groffer_dir])])



reply via email to

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