forked from pool/texinfo
804 lines
25 KiB
Diff
804 lines
25 KiB
Diff
--- config.in
|
||
+++ config.in Wed Apr 21 12:18:07 2004
|
||
@@ -326,6 +326,9 @@
|
||
/* Define to 1 if you have the `__secure_getenv' function. */
|
||
#undef HAVE___SECURE_GETENV
|
||
|
||
+/* Define to 1 if you have libzio for opening compressed info files */
|
||
+#undef HAVE_ZIO
|
||
+
|
||
/* Define as const if the declaration of iconv() needs const. */
|
||
#undef ICONV_CONST
|
||
|
||
--- configure
|
||
+++ configure Wed Apr 21 12:37:49 2004
|
||
@@ -13111,6 +13111,653 @@
|
||
|
||
|
||
|
||
+#
|
||
+# Check for zlib and libbz2 libraries to use this together
|
||
+# with SuSE's libzio to open compressed info files.
|
||
+#
|
||
+if test "${ac_cv_header_zlib_h+set}" = set; then
|
||
+ echo "$as_me:$LINENO: checking for zlib.h" >&5
|
||
+echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_zlib_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
|
||
+else
|
||
+ # Is the header compilable?
|
||
+echo "$as_me:$LINENO: checking zlib.h usability" >&5
|
||
+echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+$ac_includes_default
|
||
+#include <zlib.h>
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||
+ (eval $ac_compile) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest.$ac_objext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ ac_header_compiler=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ac_header_compiler=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||
+echo "${ECHO_T}$ac_header_compiler" >&6
|
||
+
|
||
+# Is the header present?
|
||
+echo "$as_me:$LINENO: checking zlib.h presence" >&5
|
||
+echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+#include <zlib.h>
|
||
+_ACEOF
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } >/dev/null; then
|
||
+ if test -s conftest.err; then
|
||
+ ac_cpp_err=$ac_c_preproc_warn_flag
|
||
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
||
+ else
|
||
+ ac_cpp_err=
|
||
+ fi
|
||
+else
|
||
+ ac_cpp_err=yes
|
||
+fi
|
||
+if test -z "$ac_cpp_err"; then
|
||
+ ac_header_preproc=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ ac_header_preproc=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||
+echo "${ECHO_T}$ac_header_preproc" >&6
|
||
+
|
||
+# So? What about this header?
|
||
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
||
+ yes:no: )
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||
+echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
|
||
+echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
|
||
+ ac_header_preproc=yes
|
||
+ ;;
|
||
+ no:yes:* )
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
|
||
+echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
|
||
+echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
|
||
+echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
|
||
+echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
|
||
+echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
|
||
+echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
|
||
+ (
|
||
+ cat <<\_ASBOX
|
||
+## -------------------------------------- ##
|
||
+## Report this to the GNU Texinfo lists. ##
|
||
+## -------------------------------------- ##
|
||
+_ASBOX
|
||
+ ) |
|
||
+ sed "s/^/$as_me: WARNING: /" >&2
|
||
+ ;;
|
||
+esac
|
||
+echo "$as_me:$LINENO: checking for zlib.h" >&5
|
||
+echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_zlib_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_cv_header_zlib_h=$ac_header_preproc
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
|
||
+
|
||
+fi
|
||
+if test $ac_cv_header_zlib_h = yes; then
|
||
+
|
||
+ for lib in z gz
|
||
+ do
|
||
+ as_ac_Lib=`echo "ac_cv_lib_$lib''_gzopen" | $as_tr_sh`
|
||
+echo "$as_me:$LINENO: checking for gzopen in -l$lib" >&5
|
||
+echo $ECHO_N "checking for gzopen in -l$lib... $ECHO_C" >&6
|
||
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_check_lib_save_LIBS=$LIBS
|
||
+LIBS="-l$lib $LIBS"
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+
|
||
+/* Override any gcc2 internal prototype to avoid an error. */
|
||
+#ifdef __cplusplus
|
||
+extern "C"
|
||
+#endif
|
||
+/* We use char because int might match the return type of a gcc2
|
||
+ builtin and then its argument prototype would still apply. */
|
||
+char gzopen ();
|
||
+int
|
||
+main ()
|
||
+{
|
||
+gzopen ();
|
||
+ ;
|
||
+ return 0;
|
||
+}
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext conftest$ac_exeext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||
+ (eval $ac_link) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest$ac_exeext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ eval "$as_ac_Lib=yes"
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+eval "$as_ac_Lib=no"
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext \
|
||
+ conftest$ac_exeext conftest.$ac_ext
|
||
+LIBS=$ac_check_lib_save_LIBS
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
|
||
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
|
||
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
|
||
+ LIBS="$LIBS -l$lib" ; break
|
||
+fi
|
||
+
|
||
+ done
|
||
+fi
|
||
+
|
||
+
|
||
+if test "${ac_cv_header_bzlib_h+set}" = set; then
|
||
+ echo "$as_me:$LINENO: checking for bzlib.h" >&5
|
||
+echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_bzlib_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
|
||
+else
|
||
+ # Is the header compilable?
|
||
+echo "$as_me:$LINENO: checking bzlib.h usability" >&5
|
||
+echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+$ac_includes_default
|
||
+#include <bzlib.h>
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||
+ (eval $ac_compile) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest.$ac_objext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ ac_header_compiler=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ac_header_compiler=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||
+echo "${ECHO_T}$ac_header_compiler" >&6
|
||
+
|
||
+# Is the header present?
|
||
+echo "$as_me:$LINENO: checking bzlib.h presence" >&5
|
||
+echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+#include <bzlib.h>
|
||
+_ACEOF
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } >/dev/null; then
|
||
+ if test -s conftest.err; then
|
||
+ ac_cpp_err=$ac_c_preproc_warn_flag
|
||
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
||
+ else
|
||
+ ac_cpp_err=
|
||
+ fi
|
||
+else
|
||
+ ac_cpp_err=yes
|
||
+fi
|
||
+if test -z "$ac_cpp_err"; then
|
||
+ ac_header_preproc=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ ac_header_preproc=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||
+echo "${ECHO_T}$ac_header_preproc" >&6
|
||
+
|
||
+# So? What about this header?
|
||
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
||
+ yes:no: )
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
|
||
+ ac_header_preproc=yes
|
||
+ ;;
|
||
+ no:yes:* )
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
|
||
+echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
|
||
+ (
|
||
+ cat <<\_ASBOX
|
||
+## -------------------------------------- ##
|
||
+## Report this to the GNU Texinfo lists. ##
|
||
+## -------------------------------------- ##
|
||
+_ASBOX
|
||
+ ) |
|
||
+ sed "s/^/$as_me: WARNING: /" >&2
|
||
+ ;;
|
||
+esac
|
||
+echo "$as_me:$LINENO: checking for bzlib.h" >&5
|
||
+echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_bzlib_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_cv_header_bzlib_h=$ac_header_preproc
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
|
||
+
|
||
+fi
|
||
+if test $ac_cv_header_bzlib_h = yes; then
|
||
+
|
||
+ for lib in bz2 bzip2
|
||
+ do
|
||
+ as_ac_Lib=`echo "ac_cv_lib_$lib''_BZ2_bzopen" | $as_tr_sh`
|
||
+echo "$as_me:$LINENO: checking for BZ2_bzopen in -l$lib" >&5
|
||
+echo $ECHO_N "checking for BZ2_bzopen in -l$lib... $ECHO_C" >&6
|
||
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_check_lib_save_LIBS=$LIBS
|
||
+LIBS="-l$lib $LIBS"
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+
|
||
+/* Override any gcc2 internal prototype to avoid an error. */
|
||
+#ifdef __cplusplus
|
||
+extern "C"
|
||
+#endif
|
||
+/* We use char because int might match the return type of a gcc2
|
||
+ builtin and then its argument prototype would still apply. */
|
||
+char BZ2_bzopen ();
|
||
+int
|
||
+main ()
|
||
+{
|
||
+BZ2_bzopen ();
|
||
+ ;
|
||
+ return 0;
|
||
+}
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext conftest$ac_exeext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||
+ (eval $ac_link) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest$ac_exeext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ eval "$as_ac_Lib=yes"
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+eval "$as_ac_Lib=no"
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext \
|
||
+ conftest$ac_exeext conftest.$ac_ext
|
||
+LIBS=$ac_check_lib_save_LIBS
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
|
||
+echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
|
||
+if test `eval echo '${'$as_ac_Lib'}'` = yes; then
|
||
+ LIBS="$LIBS -l$lib" ; break
|
||
+fi
|
||
+
|
||
+ done
|
||
+fi
|
||
+
|
||
+
|
||
+if test "${ac_cv_header_zio_h+set}" = set; then
|
||
+ echo "$as_me:$LINENO: checking for zio.h" >&5
|
||
+echo $ECHO_N "checking for zio.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_zio_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_zio_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_zio_h" >&6
|
||
+else
|
||
+ # Is the header compilable?
|
||
+echo "$as_me:$LINENO: checking zio.h usability" >&5
|
||
+echo $ECHO_N "checking zio.h usability... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+$ac_includes_default
|
||
+#include <zio.h>
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||
+ (eval $ac_compile) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest.$ac_objext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ ac_header_compiler=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ac_header_compiler=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||
+echo "${ECHO_T}$ac_header_compiler" >&6
|
||
+
|
||
+# Is the header present?
|
||
+echo "$as_me:$LINENO: checking zio.h presence" >&5
|
||
+echo $ECHO_N "checking zio.h presence... $ECHO_C" >&6
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+#include <zio.h>
|
||
+_ACEOF
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } >/dev/null; then
|
||
+ if test -s conftest.err; then
|
||
+ ac_cpp_err=$ac_c_preproc_warn_flag
|
||
+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
||
+ else
|
||
+ ac_cpp_err=
|
||
+ fi
|
||
+else
|
||
+ ac_cpp_err=yes
|
||
+fi
|
||
+if test -z "$ac_cpp_err"; then
|
||
+ ac_header_preproc=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ ac_header_preproc=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_ext
|
||
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||
+echo "${ECHO_T}$ac_header_preproc" >&6
|
||
+
|
||
+# So? What about this header?
|
||
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
||
+ yes:no: )
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||
+echo "$as_me: WARNING: zio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: proceeding with the compiler's result" >&5
|
||
+echo "$as_me: WARNING: zio.h: proceeding with the compiler's result" >&2;}
|
||
+ ac_header_preproc=yes
|
||
+ ;;
|
||
+ no:yes:* )
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: present but cannot be compiled" >&5
|
||
+echo "$as_me: WARNING: zio.h: present but cannot be compiled" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: check for missing prerequisite headers?" >&5
|
||
+echo "$as_me: WARNING: zio.h: check for missing prerequisite headers?" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: see the Autoconf documentation" >&5
|
||
+echo "$as_me: WARNING: zio.h: see the Autoconf documentation" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: section \"Present But Cannot Be Compiled\"" >&5
|
||
+echo "$as_me: WARNING: zio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: proceeding with the preprocessor's result" >&5
|
||
+echo "$as_me: WARNING: zio.h: proceeding with the preprocessor's result" >&2;}
|
||
+ { echo "$as_me:$LINENO: WARNING: zio.h: in the future, the compiler will take precedence" >&5
|
||
+echo "$as_me: WARNING: zio.h: in the future, the compiler will take precedence" >&2;}
|
||
+ (
|
||
+ cat <<\_ASBOX
|
||
+## -------------------------------------- ##
|
||
+## Report this to the GNU Texinfo lists. ##
|
||
+## -------------------------------------- ##
|
||
+_ASBOX
|
||
+ ) |
|
||
+ sed "s/^/$as_me: WARNING: /" >&2
|
||
+ ;;
|
||
+esac
|
||
+echo "$as_me:$LINENO: checking for zio.h" >&5
|
||
+echo $ECHO_N "checking for zio.h... $ECHO_C" >&6
|
||
+if test "${ac_cv_header_zio_h+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_cv_header_zio_h=$ac_header_preproc
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_header_zio_h" >&5
|
||
+echo "${ECHO_T}$ac_cv_header_zio_h" >&6
|
||
+
|
||
+fi
|
||
+if test $ac_cv_header_zio_h = yes; then
|
||
+
|
||
+ echo "$as_me:$LINENO: checking for fzopen in -lzio" >&5
|
||
+echo $ECHO_N "checking for fzopen in -lzio... $ECHO_C" >&6
|
||
+if test "${ac_cv_lib_zio_fzopen+set}" = set; then
|
||
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
||
+else
|
||
+ ac_check_lib_save_LIBS=$LIBS
|
||
+LIBS="-lzio $LIBS"
|
||
+cat >conftest.$ac_ext <<_ACEOF
|
||
+/* confdefs.h. */
|
||
+_ACEOF
|
||
+cat confdefs.h >>conftest.$ac_ext
|
||
+cat >>conftest.$ac_ext <<_ACEOF
|
||
+/* end confdefs.h. */
|
||
+
|
||
+/* Override any gcc2 internal prototype to avoid an error. */
|
||
+#ifdef __cplusplus
|
||
+extern "C"
|
||
+#endif
|
||
+/* We use char because int might match the return type of a gcc2
|
||
+ builtin and then its argument prototype would still apply. */
|
||
+char fzopen ();
|
||
+int
|
||
+main ()
|
||
+{
|
||
+fzopen ();
|
||
+ ;
|
||
+ return 0;
|
||
+}
|
||
+_ACEOF
|
||
+rm -f conftest.$ac_objext conftest$ac_exeext
|
||
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||
+ (eval $ac_link) 2>conftest.er1
|
||
+ ac_status=$?
|
||
+ grep -v '^ *+' conftest.er1 >conftest.err
|
||
+ rm -f conftest.er1
|
||
+ cat conftest.err >&5
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); } &&
|
||
+ { ac_try='test -z "$ac_c_werror_flag"
|
||
+ || test ! -s conftest.err'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; } &&
|
||
+ { ac_try='test -s conftest$ac_exeext'
|
||
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||
+ (eval $ac_try) 2>&5
|
||
+ ac_status=$?
|
||
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||
+ (exit $ac_status); }; }; then
|
||
+ ac_cv_lib_zio_fzopen=yes
|
||
+else
|
||
+ echo "$as_me: failed program was:" >&5
|
||
+sed 's/^/| /' conftest.$ac_ext >&5
|
||
+
|
||
+ac_cv_lib_zio_fzopen=no
|
||
+fi
|
||
+rm -f conftest.err conftest.$ac_objext \
|
||
+ conftest$ac_exeext conftest.$ac_ext
|
||
+LIBS=$ac_check_lib_save_LIBS
|
||
+fi
|
||
+echo "$as_me:$LINENO: result: $ac_cv_lib_zio_fzopen" >&5
|
||
+echo "${ECHO_T}$ac_cv_lib_zio_fzopen" >&6
|
||
+if test $ac_cv_lib_zio_fzopen = yes; then
|
||
+ LIBS="$LIBS -lzio" ; cat >>confdefs.h <<\_ACEOF
|
||
+#define HAVE_ZIO 1
|
||
+_ACEOF
|
||
+
|
||
+fi
|
||
+
|
||
+
|
||
+fi
|
||
+
|
||
+
|
||
+
|
||
ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile"
|
||
|
||
cat >confcache <<\_ACEOF
|
||
--- configure.ac
|
||
+++ configure.ac Wed Apr 21 12:37:32 2004
|
||
@@ -159,6 +159,24 @@
|
||
AM_GNU_GETTEXT_VERSION(0.14.1)
|
||
AM_GNU_GETTEXT()
|
||
|
||
+#
|
||
+# Check for zlib and libbz2 libraries to use this together
|
||
+# with SuSE's libzio to open compressed info files.
|
||
+#
|
||
+AC_CHECK_HEADER(zlib.h,[
|
||
+ for lib in z gz
|
||
+ do
|
||
+ AC_CHECK_LIB($lib, gzopen, [LIBS="$LIBS -l$lib" ; break])
|
||
+ done])
|
||
+AC_CHECK_HEADER(bzlib.h,[
|
||
+ for lib in bz2 bzip2
|
||
+ do
|
||
+ AC_CHECK_LIB($lib, BZ2_bzopen, [LIBS="$LIBS -l$lib" ; break])
|
||
+ done])
|
||
+AC_CHECK_HEADER(zio.h,[
|
||
+ AC_CHECK_LIB(zio, fzopen, [LIBS="$LIBS -lzio" ; AC_DEFINE(HAVE_ZIO)])
|
||
+ ])
|
||
+
|
||
AC_CONFIG_FILES([
|
||
Makefile
|
||
doc/Makefile
|
||
--- util/install-info.c
|
||
+++ util/install-info.c Wed Apr 21 12:49:50 2004
|
||
@@ -20,6 +20,9 @@
|
||
|
||
#include "system.h"
|
||
#include <getopt.h>
|
||
+#ifdef HAVE_ZIO
|
||
+# include <zio.h>
|
||
+#endif
|
||
|
||
static char *progname = "install-info";
|
||
|
||
@@ -545,16 +548,28 @@
|
||
opened_filename = &local_opened_filename;
|
||
|
||
*opened_filename = filename;
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
if (!f)
|
||
{
|
||
*opened_filename = concat (filename, ".gz", "");
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
if (!f)
|
||
{
|
||
free (*opened_filename);
|
||
*opened_filename = concat (filename, ".bz2", "");
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
}
|
||
|
||
#ifdef __MSDOS__
|
||
@@ -562,13 +577,21 @@
|
||
{
|
||
free (*opened_filename);
|
||
*opened_filename = concat (filename, ".igz", "");
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
}
|
||
if (!f)
|
||
{
|
||
free (*opened_filename);
|
||
*opened_filename = concat (filename, ".inz", "");
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
}
|
||
#endif
|
||
if (!f)
|
||
@@ -580,7 +603,11 @@
|
||
/* And try opening it again. */
|
||
free (*opened_filename);
|
||
*opened_filename = filename;
|
||
+#ifdef HAVE_ZIO
|
||
+ f = fzopen (*opened_filename, FOPEN_RBIN);
|
||
+#else
|
||
f = fopen (*opened_filename, FOPEN_RBIN);
|
||
+#endif
|
||
if (!f)
|
||
pfatal_with_name (filename);
|
||
}
|
||
@@ -588,7 +615,7 @@
|
||
pfatal_with_name (filename);
|
||
}
|
||
}
|
||
-
|
||
+#ifndef HAVE_ZIO
|
||
/* Read first few bytes of file rather than relying on the filename.
|
||
If the file is shorter than this it can't be usable anyway. */
|
||
nread = fread (data, sizeof (data), 1, f);
|
||
@@ -649,7 +676,14 @@
|
||
#endif
|
||
*is_pipe = 0;
|
||
}
|
||
+#else /* !HAVE_ZIO */
|
||
+
|
||
+ if (!compression_program)
|
||
+ compression_program = &local_compression_program;
|
||
+
|
||
+ compression_program = NULL;
|
||
|
||
+#endif /* !HAVE_ZIO */
|
||
return f;
|
||
}
|
||
|
||
@@ -1449,7 +1483,7 @@
|
||
warning (_("no entries found for `%s'; nothing deleted"), infile, 0);
|
||
|
||
output_dirfile (opened_dirfilename, dir_nlines, dir_lines, n_entries_to_add,
|
||
- entries_to_add, input_sections, compression_program);
|
||
+ entries_to_add, input_sections, NULL);
|
||
|
||
xexit (0);
|
||
return 0; /* Avoid bogus warnings. */
|