cygwin-x-doc configure.ac,1.7,1.8

Alexander Gottwald xserver-commit at pdx.freedesktop.org
Fri Apr 16 02:02:40 EST 2004


Committed by: ago

Update of /cvs/xserver/cygwin-x-doc
In directory pdx:/tmp/cvs-serv8382

Modified Files:
	configure.ac 
Log Message:
allow some parameters to be entered with spaces in them. 


Index: configure.ac
===================================================================
RCS file: /cvs/xserver/cygwin-x-doc/configure.ac,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- a/configure.ac	15 Apr 2004 15:00:55 -0000	1.7
+++ b/configure.ac	15 Apr 2004 16:02:37 -0000	1.8
@@ -10,7 +10,7 @@
 AC_ARG_WITH(docdir,
     AC_HELP_STRING( 
       [--with-docdir=DIR], [general documentation (DATADIR/doc/cygwin-x-doc)]),
-    [docdir=$withval],
+    [docdir="$withval"],
     [docdir='${datadir}/doc/cygwin-x-doc'])
 AC_SUBST(docdir)
 
@@ -41,8 +41,13 @@
 AC_ARG_WITH(docbook-dsl,
     AC_HELP_STRING( 
       [--with-docbook-dsl=FILE], [docbook.dsl stylesheet]),
-    [docbook_dsl_files=$withval],
-    [docbook_dsl_files=" \
+    [
+        docbook_dsl_file="$withval"
+        docbook_dsl_files=""
+    ],
+    [
+        docbook_dsl_file=""
+        docbook_dsl_files=" \
       /usr/share/sgml/docbook-dsssl/print/docbook.dsl \
       /usr/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl \
       "
@@ -50,11 +55,12 @@
 
 dnl check for installed docbook.dsl
 if test x$build_hardcopy != xno; then
-  for file in $docbook_dsl_files; do 
+  for file in "$docbook_dsl_file" $docbook_dsl_files; do 
+    test -z "$file" && continue
     AC_CHECK_FILE($file, 
       [
         build_hardcopy=yes
-        docbook_dsl=$file
+        docbook_dsl="$file"
         break
       ])  
   done  




More information about the xserver-commit mailing list