allow xman to be cross build (patch)

Jeremy C. Reed reed at
Tue Jul 31 06:59:34 PDT 2007

On Sat, 28 Jul 2007, Daniel Stone wrote:

> On Sat, Jul 28, 2007 at 07:25:21AM -0500, Jeremy C. Reed wrote:
> > Okay if I commit the following from pkgsrc that allows xman to be cross 
> > built by not assuming the detected configuration on the build system is 
> > correct default for the target system (by setting MANCONF in environment)?
> > 
> > Or do you want me to add a --with-manconfig option?
> --with-manconfig is far better than random environment variables.

Here is a patch I tested but not committed yet:

diff --git a/ b/
index 3adfde3..3c79340 100644
--- a/
+++ b/
@@ -63,11 +63,18 @@ fi
 # Checks for pkg-config packages
+        AC_HELP_STRING([--with-manconfig=<filename>],
+                       [Set default system man configuration file]),
+        [MANCONF="$withval"], [])
+if test x$MANCONF = x; then
 # Check for man page config files
-AC_CHECK_FILE([/etc/man.conf], [MANCONF="/etc/man.conf"], 
-    AC_CHECK_FILE([/etc/man.config], [MANCONF="/etc/man.config"], 
+    AC_CHECK_FILE([/etc/man.conf], [MANCONF="/etc/man.conf"], 
+	AC_CHECK_FILE([/etc/man.config], [MANCONF="/etc/man.config"], 
 	AC_CHECK_FILE([/etc/manpath.config], [MANCONF="/etc/manpath.config"])))
 if test x$MANCONF != x ; then
 	[Define to path to man config file if you have one])

I will commit this soon if nobody disagrees.

    Jeremy C. Reed
                        ``Of course it runs NetBSD.''

More information about the xorg mailing list