$NetBSD$

Fix --infodir/--mandir support. Add fake --with-libiconv-prefix and
--with-libintl-prefix options.
Change logic to disable all 3rd party support and enable one by one.
--- src/build-system/configure.orig	2014-09-08 15:04:15.000000000 +0000
+++ src/build-system/configure
@@ -1588,6 +1588,7 @@ for x_arg in "$@" ; do
       | --with-universal=* | --with-tcheck=* \
       | --cache-file=* | --build=* | --host=* | --prefix=* | --exec-prefix=* \
       | --libdir=* | --bindir=* | --includedir=* | --srcdir=* \
+      | --infodir=* | --mandir=* | --with-libiconv-prefix=* | --with-libintl-prefix=* \
       | [A-Z]*=* \
       | --with-z=* | --with-bz2=* | --with-lzo=* \
       | --with-pcre=* | --with-ncbi-c=* | --with-sss=* \
@@ -2038,338 +2039,282 @@ case "$with_3psw" in
       ;;
    no )
       if test "${with_ncbi_c-no}" != "no"; then
-         { echo "$as_me: error: incompatible options: --with-ncbi-c but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+         true
       else
          with_ncbi_c=no
       fi
       if test "${with_sss-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sss but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sss=no
          fi
         if test "${with_sssutils-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sssutils but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sssutils=no
          fi
         if test "${with_sssdb-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sssdb but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sssdb=no
          fi
         if test "${with_z-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-z but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_z=no
          fi
         if test "${with_bz2-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-bz2 but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_bz2=no
          fi
         if test "${with_lzo-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-lzo but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_lzo=no
          fi
         if test "${with_pcre-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-pcre but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_pcre=no
          fi
         if test "${with_gcrypt-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-gcrypt but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_gcrypt=no
          fi
         if test "${with_gnutls-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-gnutls but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_gnutls=no
          fi
         if test "${with_openssl-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-openssl but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_openssl=no
          fi
         if test "${with_krb5-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-krb5 but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_krb5=no
          fi
         if test "${with_boost-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-boost but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_boost=no
          fi
         if test "${with_sybase-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sybase but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sybase=no
          fi
         if test "${with_ftds-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-ftds but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_ftds=no
          fi
         if test "${with_mysql-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-mysql but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_mysql=no
          fi
         if test "${with_opengl-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-opengl but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_opengl=no
          fi
         if test "${with_mesa-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-mesa but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_mesa=no
          fi
         if test "${with_glut-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-glut but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_glut=no
          fi
         if test "${with_glew-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-glew but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_glew=no
          fi
         if test "${with_wxwidgets-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-wxwidgets but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_wxwidgets=no
          fi
         if test "${with_freetype-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-freetype but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_freetype=no
          fi
         if test "${with_ftgl-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-ftgl but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_ftgl=no
          fi
         if test "${with_fastcgi-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-fastcgi but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_fastcgi=no
          fi
         if test "${with_bdb-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-bdb but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_bdb=no
          fi
         if test "${with_orbacus-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-orbacus but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_orbacus=no
          fi
         if test "${with_odbc-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-odbc but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_odbc=no
          fi
         if test "${with_python-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-python but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_python=no
          fi
         if test "${with_perl-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-perl but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_perl=no
          fi
         if test "${with_jni-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-jni but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_jni=no
          fi
         if test "${with_sqlite3-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sqlite3 but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sqlite3=no
          fi
         if test "${with_mimetic-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-mimetic but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_mimetic=no
          fi
         if test "${with_sge-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sge but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sge=no
          fi
         if test "${with_icu-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-icu but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_icu=no
          fi
         if test "${with_sp-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sp but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sp=no
          fi
         if test "${with_expat-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-expat but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_expat=no
          fi
         if test "${with_sablot-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-sablot but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_sablot=no
          fi
         if test "${with_libxml-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-libxml but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_libxml=no
          fi
         if test "${with_libxslt-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-libxslt but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_libxslt=no
          fi
         if test "${with_libexslt-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-libexslt but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_libexslt=no
          fi
         if test "${with_xerces-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-xerces but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_xerces=no
          fi
         if test "${with_xalan-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-xalan but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_xalan=no
          fi
         if test "${with_zorba-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-zorba but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_zorba=no
          fi
         if test "${with_oechem-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-oechem but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_oechem=no
          fi
         if test "${with_muparser-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-muparser but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_muparser=no
          fi
         if test "${with_hdf5-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-hdf5 but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_hdf5=no
          fi
         if test "${with_gif-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-gif but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_gif=no
          fi
         if test "${with_jpeg-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-jpeg but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_jpeg=no
          fi
         if test "${with_png-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-png but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_png=no
          fi
         if test "${with_tiff-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-tiff but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_tiff=no
          fi
         if test "${with_xpm-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-xpm but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_xpm=no
          fi
         if test "${with_magic-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-magic but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_magic=no
          fi
         if test "${with_curl-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-curl but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_curl=no
          fi
         if test "${with_gsoap-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-gsoap but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_gsoap=no
          fi
         if test "${with_avro-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-avro but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_avro=no
          fi
         if test "${with_mongodb-no}" != "no"; then
-            { echo "$as_me: error: incompatible options: --with-mongodb but --without-3psw" >&2
-   { (exit 1); exit 1; }; }
+            true
          else
             with_mongodb=no
          fi
