Deleted Added
full compact
configure (157184) configure (165670)
1#! /bin/sh
1#! /bin/sh
2# From configure.in for Readline 5.1, version 2.58.
2# From configure.in for Readline 5.2, version 2.61.
3# Guess values for system-dependent variables and create Makefiles.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for readline 5.1-beta1.
4# Generated by GNU Autoconf 2.59 for readline 5.2.
5#
6# Report bugs to <bug-readline@gnu.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##

--- 252 unchanged lines hidden (view full) ---

265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='readline'
272PACKAGE_TARNAME='readline'
5#
6# Report bugs to <bug-readline@gnu.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##

--- 252 unchanged lines hidden (view full) ---

265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='readline'
272PACKAGE_TARNAME='readline'
273PACKAGE_VERSION='5.1-beta1'
274PACKAGE_STRING='readline 5.1-beta1'
273PACKAGE_VERSION='5.2'
274PACKAGE_STRING='readline 5.2'
275PACKAGE_BUGREPORT='bug-readline@gnu.org'
276
277ac_unique_file="readline.h"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>

--- 493 unchanged lines hidden (view full) ---

776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
275PACKAGE_BUGREPORT='bug-readline@gnu.org'
276
277ac_unique_file="readline.h"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>

--- 493 unchanged lines hidden (view full) ---

776
777#
778# Report the --help message.
779#
780if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784\`configure' configures readline 5.1-beta1 to adapt to many kinds of systems.
784\`configure' configures readline 5.2 to adapt to many kinds of systems.
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792

--- 44 unchanged lines hidden (view full) ---

837System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
785
786Usage: $0 [OPTION]... [VAR=VALUE]...
787
788To assign environment variables (e.g., CC, CFLAGS...), specify them as
789VAR=VALUE. See below for descriptions of some of the useful variables.
790
791Defaults for the options are specified in brackets.
792

--- 44 unchanged lines hidden (view full) ---

837System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of readline 5.1-beta1:";;
845 short | recursive ) echo "Configuration of readline 5.2:";;
846 esac
847 cat <<\_ACEOF
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-multibyte enable multibyte characters if OS supports them
853 --enable-shared build shared libraries [default=YES]

--- 109 unchanged lines hidden (view full) ---

963 fi
964 cd $ac_popdir
965 done
966fi
967
968test -n "$ac_init_help" && exit 0
969if $ac_init_version; then
970 cat <<\_ACEOF
846 esac
847 cat <<\_ACEOF
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-multibyte enable multibyte characters if OS supports them
853 --enable-shared build shared libraries [default=YES]

--- 109 unchanged lines hidden (view full) ---

963 fi
964 cd $ac_popdir
965 done
966fi
967
968test -n "$ac_init_help" && exit 0
969if $ac_init_version; then
970 cat <<\_ACEOF
971readline configure 5.1-beta1
971readline configure 5.2
972generated by GNU Autoconf 2.59
973
974Copyright (C) 2003 Free Software Foundation, Inc.
975This configure script is free software; the Free Software Foundation
976gives unlimited permission to copy, distribute and modify it.
977_ACEOF
978 exit 0
979fi
980exec 5>config.log
981cat >&5 <<_ACEOF
982This file contains any messages produced by compilers while
983running configure, to aid debugging if configure makes a mistake.
984
972generated by GNU Autoconf 2.59
973
974Copyright (C) 2003 Free Software Foundation, Inc.
975This configure script is free software; the Free Software Foundation
976gives unlimited permission to copy, distribute and modify it.
977_ACEOF
978 exit 0
979fi
980exec 5>config.log
981cat >&5 <<_ACEOF
982This file contains any messages produced by compilers while
983running configure, to aid debugging if configure makes a mistake.
984
985It was created by readline $as_me 5.1-beta1, which was
985It was created by readline $as_me 5.2, which was
986generated by GNU Autoconf 2.59. Invocation command line was
987
988 $ $0 $@
989
990_ACEOF
991{
992cat <<_ASUNAME
993## --------- ##

--- 351 unchanged lines hidden (view full) ---

1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350 ac_config_headers="$ac_config_headers config.h"
1351
1352
986generated by GNU Autoconf 2.59. Invocation command line was
987
988 $ $0 $@
989
990_ACEOF
991{
992cat <<_ASUNAME
993## --------- ##

--- 351 unchanged lines hidden (view full) ---

1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350 ac_config_headers="$ac_config_headers config.h"
1351
1352
1353LIBVERSION=5.1
1353LIBVERSION=5.2
1354
1355# Make sure we can run config.sub.
1356$ac_config_sub sun4 >/dev/null 2>&1 ||
1357 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1358echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1359 { (exit 1); exit 1; }; }
1360
1361echo "$as_me:$LINENO: checking build system type" >&5

--- 95 unchanged lines hidden (view full) ---

1457cat >>confdefs.h <<\_ACEOF
1458#define NO_MULTIBYTE_SUPPORT 1
1459_ACEOF
1460
1461fi
1462
1463
1464
1354
1355# Make sure we can run config.sub.
1356$ac_config_sub sun4 >/dev/null 2>&1 ||
1357 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1358echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1359 { (exit 1); exit 1; }; }
1360
1361echo "$as_me:$LINENO: checking build system type" >&5

--- 95 unchanged lines hidden (view full) ---

1457cat >>confdefs.h <<\_ACEOF
1458#define NO_MULTIBYTE_SUPPORT 1
1459_ACEOF
1460
1461fi
1462
1463
1464
1465CROSS_COMPILE=
1465if test "x$cross_compiling" = "xyes"; then
1466 case "${host}" in
1467 *-cygwin*)
1468 cross_cache=${srcdir}/cross-build/cygwin.cache
1469 ;;
1470 *-mingw*)
1471 cross_cache=${srcdir}/cross-build/mingw.cache
1472 ;;

--- 5925 unchanged lines hidden (view full) ---

7398echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7399if test $ac_cv_func_mbsrtowcs = yes; then
7400 cat >>confdefs.h <<\_ACEOF
7401#define HAVE_MBSRTOWCS 1
7402_ACEOF
7403
7404fi
7405
1466if test "x$cross_compiling" = "xyes"; then
1467 case "${host}" in
1468 *-cygwin*)
1469 cross_cache=${srcdir}/cross-build/cygwin.cache
1470 ;;
1471 *-mingw*)
1472 cross_cache=${srcdir}/cross-build/mingw.cache
1473 ;;

--- 5925 unchanged lines hidden (view full) ---

7399echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7400if test $ac_cv_func_mbsrtowcs = yes; then
7401 cat >>confdefs.h <<\_ACEOF
7402#define HAVE_MBSRTOWCS 1
7403_ACEOF
7404
7405fi
7406
7406echo "$as_me:$LINENO: checking for mbrtowc" >&5
7407echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
7408if test "${ac_cv_func_mbrtowc+set}" = set; then
7407echo "$as_me:$LINENO: checking for mbrlen" >&5
7408echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7409if test "${ac_cv_func_mbrlen+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411else
7412 cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h. */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h. */
7417/* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
7418/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7419#define mbrtowc innocuous_mbrtowc
7420#define mbrlen innocuous_mbrlen
7420
7421/* System header to define __stub macros and hopefully few prototypes,
7421
7422/* System header to define __stub macros and hopefully few prototypes,
7422 which can conflict with char mbrtowc (); below.
7423 which can conflict with char mbrlen (); below.
7423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7424 <limits.h> exists even on freestanding compilers. */
7425
7426#ifdef __STDC__
7427# include <limits.h>
7428#else
7429# include <assert.h>
7430#endif
7431
7424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425 <limits.h> exists even on freestanding compilers. */
7426
7427#ifdef __STDC__
7428# include <limits.h>
7429#else
7430# include <assert.h>
7431#endif
7432
7432#undef mbrtowc
7433#undef mbrlen
7433
7434/* Override any gcc2 internal prototype to avoid an error. */
7435#ifdef __cplusplus
7436extern "C"
7437{
7438#endif
7439/* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7434
7435/* Override any gcc2 internal prototype to avoid an error. */
7436#ifdef __cplusplus
7437extern "C"
7438{
7439#endif
7440/* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7441char mbrtowc ();
7442char mbrlen ();
7442/* The GNU C library defines this for functions which it implements
7443 to always fail with ENOSYS. Some functions are actually named
7444 something starting with __ and the normal name is an alias. */
7443/* The GNU C library defines this for functions which it implements
7444 to always fail with ENOSYS. Some functions are actually named
7445 something starting with __ and the normal name is an alias. */
7445#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
7446#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7446choke me
7447#else
7447choke me
7448#else
7448char (*f) () = mbrtowc;
7449char (*f) () = mbrlen;
7449#endif
7450#ifdef __cplusplus
7451}
7452#endif
7453
7454int
7455main ()
7456{
7450#endif
7451#ifdef __cplusplus
7452}
7453#endif
7454
7455int
7456main ()
7457{
7457return f != mbrtowc;
7458return f != mbrlen;
7458 ;
7459 return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext conftest$ac_exeext
7463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>conftest.er1
7465 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; } &&
7478 { ac_try='test -s conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7459 ;
7460 return 0;
7461}
7462_ACEOF
7463rm -f conftest.$ac_objext conftest$ac_exeext
7464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>conftest.er1
7466 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7484 ac_cv_func_mbrtowc=yes
7485 ac_cv_func_mbrlen=yes
7485else
7486 echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7486else
7487 echo "$as_me: failed program was:" >&5
7488sed 's/^/| /' conftest.$ac_ext >&5
7489
7489ac_cv_func_mbrtowc=no
7490ac_cv_func_mbrlen=no
7490fi
7491rm -f conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493fi
7491fi
7492rm -f conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494fi
7494echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
7495echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
7496if test $ac_cv_func_mbrtowc = yes; then
7495echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7496echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
7497if test $ac_cv_func_mbrlen = yes; then
7497 cat >>confdefs.h <<\_ACEOF
7498 cat >>confdefs.h <<\_ACEOF
7498#define HAVE_MBRTOWC 1
7499#define HAVE_MBRLEN 1
7499_ACEOF
7500
7501fi
7502
7500_ACEOF
7501
7502fi
7503
7503echo "$as_me:$LINENO: checking for mbrlen" >&5
7504echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7505if test "${ac_cv_func_mbrlen+set}" = set; then
7504
7505echo "$as_me:$LINENO: checking for wcrtomb" >&5
7506echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6
7507if test "${ac_cv_func_wcrtomb+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507else
7508 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h. */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h. */
7514/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7516/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb.
7515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7516#define mbrlen innocuous_mbrlen
7518#define wcrtomb innocuous_wcrtomb
7517
7518/* System header to define __stub macros and hopefully few prototypes,
7519
7520/* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char mbrlen (); below.
7521 which can conflict with char wcrtomb (); below.
7520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521 <limits.h> exists even on freestanding compilers. */
7522
7523#ifdef __STDC__
7524# include <limits.h>
7525#else
7526# include <assert.h>
7527#endif
7528
7522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523 <limits.h> exists even on freestanding compilers. */
7524
7525#ifdef __STDC__
7526# include <limits.h>
7527#else
7528# include <assert.h>
7529#endif
7530
7529#undef mbrlen
7531#undef wcrtomb
7530
7531/* Override any gcc2 internal prototype to avoid an error. */
7532#ifdef __cplusplus
7533extern "C"
7534{
7535#endif
7536/* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7532
7533/* Override any gcc2 internal prototype to avoid an error. */
7534#ifdef __cplusplus
7535extern "C"
7536{
7537#endif
7538/* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7538char mbrlen ();
7540char wcrtomb ();
7539/* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7541/* The GNU C library defines this for functions which it implements
7542 to always fail with ENOSYS. Some functions are actually named
7543 something starting with __ and the normal name is an alias. */
7542#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7544#if defined (__stub_wcrtomb) || defined (__stub___wcrtomb)
7543choke me
7544#else
7545choke me
7546#else
7545char (*f) () = mbrlen;
7547char (*f) () = wcrtomb;
7546#endif
7547#ifdef __cplusplus
7548}
7549#endif
7550
7551int
7552main ()
7553{
7548#endif
7549#ifdef __cplusplus
7550}
7551#endif
7552
7553int
7554main ()
7555{
7554return f != mbrlen;
7556return f != wcrtomb;
7555 ;
7556 return 0;
7557}
7558_ACEOF
7559rm -f conftest.$ac_objext conftest$ac_exeext
7560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>conftest.er1
7562 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try='test -s conftest$ac_exeext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561rm -f conftest.$ac_objext conftest$ac_exeext
7562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563 (eval $ac_link) 2>conftest.er1
7564 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7581 ac_cv_func_mbrlen=yes
7583 ac_cv_func_wcrtomb=yes
7582else
7583 echo "$as_me: failed program was:" >&5
7584sed 's/^/| /' conftest.$ac_ext >&5
7585
7584else
7585 echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7586ac_cv_func_mbrlen=no
7588ac_cv_func_wcrtomb=no
7587fi
7588rm -f conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7590fi
7589fi
7590rm -f conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592fi
7591echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7592echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
7593if test $ac_cv_func_mbrlen = yes; then
7593echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5
7594echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6
7595if test $ac_cv_func_wcrtomb = yes; then
7594 cat >>confdefs.h <<\_ACEOF
7596 cat >>confdefs.h <<\_ACEOF
7595#define HAVE_MBRLEN 1
7597#define HAVE_WCRTOMB 1
7596_ACEOF
7597
7598fi
7599
7598_ACEOF
7599
7600fi
7601
7600echo "$as_me:$LINENO: checking for wctomb" >&5
7601echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
7602if test "${ac_cv_func_wctomb+set}" = set; then
7602echo "$as_me:$LINENO: checking for wcscoll" >&5
7603echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6
7604if test "${ac_cv_func_wcscoll+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h. */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h. */
7611/* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
7613/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
7612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7613#define wctomb innocuous_wctomb
7615#define wcscoll innocuous_wcscoll
7614
7615/* System header to define __stub macros and hopefully few prototypes,
7616
7617/* System header to define __stub macros and hopefully few prototypes,
7616 which can conflict with char wctomb (); below.
7618 which can conflict with char wcscoll (); below.
7617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7618 <limits.h> exists even on freestanding compilers. */
7619
7620#ifdef __STDC__
7621# include <limits.h>
7622#else
7623# include <assert.h>
7624#endif
7625
7619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7620 <limits.h> exists even on freestanding compilers. */
7621
7622#ifdef __STDC__
7623# include <limits.h>
7624#else
7625# include <assert.h>
7626#endif
7627
7626#undef wctomb
7628#undef wcscoll
7627
7628/* Override any gcc2 internal prototype to avoid an error. */
7629#ifdef __cplusplus
7630extern "C"
7631{
7632#endif
7633/* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7629
7630/* Override any gcc2 internal prototype to avoid an error. */
7631#ifdef __cplusplus
7632extern "C"
7633{
7634#endif
7635/* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7635char wctomb ();
7637char wcscoll ();
7636/* The GNU C library defines this for functions which it implements
7637 to always fail with ENOSYS. Some functions are actually named
7638 something starting with __ and the normal name is an alias. */
7638/* The GNU C library defines this for functions which it implements
7639 to always fail with ENOSYS. Some functions are actually named
7640 something starting with __ and the normal name is an alias. */
7639#if defined (__stub_wctomb) || defined (__stub___wctomb)
7641#if defined (__stub_wcscoll) || defined (__stub___wcscoll)
7640choke me
7641#else
7642choke me
7643#else
7642char (*f) () = wctomb;
7644char (*f) () = wcscoll;
7643#endif
7644#ifdef __cplusplus
7645}
7646#endif
7647
7648int
7649main ()
7650{
7645#endif
7646#ifdef __cplusplus
7647}
7648#endif
7649
7650int
7651main ()
7652{
7651return f != wctomb;
7653return f != wcscoll;
7652 ;
7653 return 0;
7654}
7655_ACEOF
7656rm -f conftest.$ac_objext conftest$ac_exeext
7657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7654 ;
7655 return 0;
7656}
7657_ACEOF
7658rm -f conftest.$ac_objext conftest$ac_exeext
7659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>conftest.er1
7661 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7678 ac_cv_func_wctomb=yes
7680 ac_cv_func_wcscoll=yes
7679else
7680 echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
7681else
7682 echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
7683ac_cv_func_wctomb=no
7685ac_cv_func_wcscoll=no
7684fi
7685rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687fi
7686fi
7687rm -f conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
7689fi
7688echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
7689echo "${ECHO_T}$ac_cv_func_wctomb" >&6
7690if test $ac_cv_func_wctomb = yes; then
7690echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
7691echo "${ECHO_T}$ac_cv_func_wcscoll" >&6
7692if test $ac_cv_func_wcscoll = yes; then
7691 cat >>confdefs.h <<\_ACEOF
7693 cat >>confdefs.h <<\_ACEOF
7692#define HAVE_WCTOMB 1
7694#define HAVE_WCSCOLL 1
7693_ACEOF
7694
7695fi
7696
7695_ACEOF
7696
7697fi
7698
7699echo "$as_me:$LINENO: checking for wcsdup" >&5
7700echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7701if test "${ac_cv_func_wcsdup+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 cat >conftest.$ac_ext <<_ACEOF
7705/* confdefs.h. */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h. */
7710/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7712#define wcsdup innocuous_wcsdup
7713
7714/* System header to define __stub macros and hopefully few prototypes,
7715 which can conflict with char wcsdup (); below.
7716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7717 <limits.h> exists even on freestanding compilers. */
7718
7719#ifdef __STDC__
7720# include <limits.h>
7721#else
7722# include <assert.h>
7723#endif
7724
7725#undef wcsdup
7726
7727/* Override any gcc2 internal prototype to avoid an error. */
7728#ifdef __cplusplus
7729extern "C"
7730{
7731#endif
7732/* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7734char wcsdup ();
7735/* The GNU C library defines this for functions which it implements
7736 to always fail with ENOSYS. Some functions are actually named
7737 something starting with __ and the normal name is an alias. */
7738#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7739choke me
7740#else
7741char (*f) () = wcsdup;
7742#endif
7743#ifdef __cplusplus
7744}
7745#endif
7746
7747int
7748main ()
7749{
7750return f != wcsdup;
7751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext conftest$ac_exeext
7756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_func_wcsdup=yes
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782ac_cv_func_wcsdup=no
7783fi
7784rm -f conftest.err conftest.$ac_objext \
7785 conftest$ac_exeext conftest.$ac_ext
7786fi
7787echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7788echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
7789if test $ac_cv_func_wcsdup = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791#define HAVE_WCSDUP 1
7792_ACEOF
7793
7794fi
7795
7697echo "$as_me:$LINENO: checking for wcwidth" >&5
7698echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7699if test "${ac_cv_func_wcwidth+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702 cat >conftest.$ac_ext <<_ACEOF
7703/* confdefs.h. */
7704_ACEOF

--- 81 unchanged lines hidden (view full) ---

7786echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7787if test $ac_cv_func_wcwidth = yes; then
7788 cat >>confdefs.h <<\_ACEOF
7789#define HAVE_WCWIDTH 1
7790_ACEOF
7791
7792fi
7793
7796echo "$as_me:$LINENO: checking for wcwidth" >&5
7797echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7798if test "${ac_cv_func_wcwidth+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h. */
7803_ACEOF

--- 81 unchanged lines hidden (view full) ---

7885echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7886if test $ac_cv_func_wcwidth = yes; then
7887 cat >>confdefs.h <<\_ACEOF
7888#define HAVE_WCWIDTH 1
7889_ACEOF
7890
7891fi
7892
7794echo "$as_me:$LINENO: checking for wcsdup" >&5
7795echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7796if test "${ac_cv_func_wcsdup+set}" = set; then
7893echo "$as_me:$LINENO: checking for wctype" >&5
7894echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7895if test "${ac_cv_func_wctype+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898 cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7805/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7904/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7807#define wcsdup innocuous_wcsdup
7906#define wctype innocuous_wctype
7808
7809/* System header to define __stub macros and hopefully few prototypes,
7907
7908/* System header to define __stub macros and hopefully few prototypes,
7810 which can conflict with char wcsdup (); below.
7909 which can conflict with char wctype (); below.
7811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812 <limits.h> exists even on freestanding compilers. */
7813
7814#ifdef __STDC__
7815# include <limits.h>
7816#else
7817# include <assert.h>
7818#endif
7819
7910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911 <limits.h> exists even on freestanding compilers. */
7912
7913#ifdef __STDC__
7914# include <limits.h>
7915#else
7916# include <assert.h>
7917#endif
7918
7820#undef wcsdup
7919#undef wctype
7821
7822/* Override any gcc2 internal prototype to avoid an error. */
7823#ifdef __cplusplus
7824extern "C"
7825{
7826#endif
7827/* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7920
7921/* Override any gcc2 internal prototype to avoid an error. */
7922#ifdef __cplusplus
7923extern "C"
7924{
7925#endif
7926/* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7829char wcsdup ();
7928char wctype ();
7830/* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7929/* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7833#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7932#if defined (__stub_wctype) || defined (__stub___wctype)
7834choke me
7835#else
7933choke me
7934#else
7836char (*f) () = wcsdup;
7935char (*f) () = wctype;
7837#endif
7838#ifdef __cplusplus
7839}
7840#endif
7841
7842int
7843main ()
7844{
7936#endif
7937#ifdef __cplusplus
7938}
7939#endif
7940
7941int
7942main ()
7943{
7845return f != wcsdup;
7944return f != wctype;
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949rm -f conftest.$ac_objext conftest$ac_exeext
7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7952 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7872 ac_cv_func_wcsdup=yes
7971 ac_cv_func_wctype=yes
7873else
7874 echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7877ac_cv_func_wcsdup=no
7976ac_cv_func_wctype=no
7878fi
7879rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881fi
7977fi
7978rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980fi
7882echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7883echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
7884if test $ac_cv_func_wcsdup = yes; then
7981echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7982echo "${ECHO_T}$ac_cv_func_wctype" >&6
7983if test $ac_cv_func_wctype = yes; then
7885 cat >>confdefs.h <<\_ACEOF
7984 cat >>confdefs.h <<\_ACEOF
7886#define HAVE_WCSDUP 1
7985#define HAVE_WCTYPE 1
7887_ACEOF
7888
7889fi
7890
7891
7986_ACEOF
7987
7988fi
7989
7990
7892echo "$as_me:$LINENO: checking for mbstate_t" >&5
7893echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7894if test "${bash_cv_have_mbstate_t+set}" = set; then
7991
7992 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
7993echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
7994if test "${ac_cv_func_mbrtowc+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
7903
7904#include <wchar.h>
7905int
7906main ()
7907{
8003#include <wchar.h>
8004int
8005main ()
8006{
7908
7909 mbstate_t ps;
7910 mbstate_t *psp;
7911 psp = (mbstate_t *)0;
7912
8007mbstate_t state; return ! (sizeof state && mbrtowc);
7913 ;
7914 return 0;
7915}
7916_ACEOF
8008 ;
8009 return 0;
8010}
8011_ACEOF
7917rm -f conftest.$ac_objext
7918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>conftest.er1
8012rm -f conftest.$ac_objext conftest$ac_exeext
8013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
8015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -z "$ac_c_werror_flag"
8022 || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest.$ac_objext'
8028 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
7939 bash_cv_have_mbstate_t=yes
8034 ac_cv_func_mbrtowc=yes
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
8035else
8036 echo "$as_me: failed program was:" >&5
8037sed 's/^/| /' conftest.$ac_ext >&5
8038
7944bash_cv_have_mbstate_t=no
8039ac_cv_func_mbrtowc=no
7945fi
8040fi
7946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041rm -f conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
7947fi
8043fi
7948echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
7949echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7950if test $bash_cv_have_mbstate_t = yes; then
8044echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
8045echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
8046 if test $ac_cv_func_mbrtowc = yes; then
8047
8048cat >>confdefs.h <<\_ACEOF
8049#define HAVE_MBRTOWC 1
8050_ACEOF
8051
8052 fi
8053
8054if test $ac_cv_func_mbrtowc = yes; then
7951 cat >>confdefs.h <<\_ACEOF
7952#define HAVE_MBSTATE_T 1
7953_ACEOF
7954
7955fi
7956
8055 cat >>confdefs.h <<\_ACEOF
8056#define HAVE_MBSTATE_T 1
8057_ACEOF
8058
8059fi
8060
8061
8062
8063
8064
8065
8066for ac_func in iswlower iswupper towlower towupper iswctype
8067do
8068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8069echo "$as_me:$LINENO: checking for $ac_func" >&5
8070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8071if eval "test \"\${$as_ac_var+set}\" = set"; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8082#define $ac_func innocuous_$ac_func
8083
8084/* System header to define __stub macros and hopefully few prototypes,
8085 which can conflict with char $ac_func (); below.
8086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087 <limits.h> exists even on freestanding compilers. */
8088
8089#ifdef __STDC__
8090# include <limits.h>
8091#else
8092# include <assert.h>
8093#endif
8094
8095#undef $ac_func
8096
8097/* Override any gcc2 internal prototype to avoid an error. */
8098#ifdef __cplusplus
8099extern "C"
8100{
8101#endif
8102/* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8104char $ac_func ();
8105/* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8109choke me
8110#else
8111char (*f) () = $ac_func;
8112#endif
8113#ifdef __cplusplus
8114}
8115#endif
8116
8117int
8118main ()
8119{
8120return f != $ac_func;
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127 (eval $ac_link) 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag"
8135 || test ! -s conftest.err'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 eval "$as_ac_var=yes"
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152eval "$as_ac_var=no"
8153fi
8154rm -f conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156fi
8157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8159if test `eval echo '${'$as_ac_var'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162_ACEOF
8163
8164fi
8165done
8166
8167
7957echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7958echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7959if test "${bash_cv_langinfo_codeset+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961else
7962 cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h. */
7964_ACEOF

--- 45 unchanged lines hidden (view full) ---

8010echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
8011if test $bash_cv_langinfo_codeset = yes; then
8012 cat >>confdefs.h <<\_ACEOF
8013#define HAVE_LANGINFO_CODESET 1
8014_ACEOF
8015
8016fi
8017
8168echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8169echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8170if test "${bash_cv_langinfo_codeset+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173 cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF

--- 45 unchanged lines hidden (view full) ---

8221echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
8222if test $bash_cv_langinfo_codeset = yes; then
8223 cat >>confdefs.h <<\_ACEOF
8224#define HAVE_LANGINFO_CODESET 1
8225_ACEOF
8226
8227fi
8228
8229echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5
8230echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6
8231if test "${bash_cv_type_wchar_t+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234 cat >conftest.$ac_ext <<_ACEOF
8235/* confdefs.h. */
8236_ACEOF
8237cat confdefs.h >>conftest.$ac_ext
8238cat >>conftest.$ac_ext <<_ACEOF
8239/* end confdefs.h. */
8240#include <wchar.h>
8018
8241
8242int
8243main ()
8244{
8019
8245
8246 wchar_t foo;
8247 foo = 0;
8248
8249 ;
8250 return 0;
8251}
8252_ACEOF
8253rm -f conftest.$ac_objext
8254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8255 (eval $ac_compile) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest.$ac_objext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 bash_cv_type_wchar_t=yes
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280bash_cv_type_wchar_t=no
8281fi
8282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5
8285echo "${ECHO_T}$bash_cv_type_wchar_t" >&6
8286if test $bash_cv_type_wchar_t = yes; then
8287
8288cat >>confdefs.h <<\_ACEOF
8289#define HAVE_WCHAR_T 1
8290_ACEOF
8291
8292fi
8293
8294echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5
8295echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6
8296if test "${bash_cv_type_wctype_t+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 cat >conftest.$ac_ext <<_ACEOF
8300/* confdefs.h. */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h. */
8305#include <wctype.h>
8306int
8307main ()
8308{
8309
8310 wctype_t foo;
8311 foo = 0;
8312
8313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext
8318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 bash_cv_type_wctype_t=yes
8340else
8341 echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344bash_cv_type_wctype_t=no
8345fi
8346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8347fi
8348echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5
8349echo "${ECHO_T}$bash_cv_type_wctype_t" >&6
8350if test $bash_cv_type_wctype_t = yes; then
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define HAVE_WCTYPE_T 1
8354_ACEOF
8355
8356fi
8357
8358echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5
8359echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6
8360if test "${bash_cv_type_wint_t+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363 cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369#include <wctype.h>
8370int
8371main ()
8372{
8373
8374 wint_t foo;
8375 foo = 0;
8376
8377 ;
8378 return 0;
8379}
8380_ACEOF
8381rm -f conftest.$ac_objext
8382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383 (eval $ac_compile) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 bash_cv_type_wint_t=yes
8404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
8408bash_cv_type_wint_t=no
8409fi
8410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411fi
8412echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5
8413echo "${ECHO_T}$bash_cv_type_wint_t" >&6
8414if test $bash_cv_type_wint_t = yes; then
8415
8416cat >>confdefs.h <<\_ACEOF
8417#define HAVE_WINT_T 1
8418_ACEOF
8419
8420fi
8421
8422
8423
8020case "$host_cpu" in
8021*cray*) LOCAL_CFLAGS=-DCRAY ;;
8022*s390*) LOCAL_CFLAGS=-fsigned-char ;;
8023esac
8024
8025case "$host_os" in
8026isc*) LOCAL_CFLAGS=-Disc386 ;;
8027esac

--- 446 unchanged lines hidden (view full) ---

8474{
8475 echo
8476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8477## Running $as_me. ##
8478_ASBOX
8479} >&5
8480cat >&5 <<_CSEOF
8481
8424case "$host_cpu" in
8425*cray*) LOCAL_CFLAGS=-DCRAY ;;
8426*s390*) LOCAL_CFLAGS=-fsigned-char ;;
8427esac
8428
8429case "$host_os" in
8430isc*) LOCAL_CFLAGS=-Disc386 ;;
8431esac

--- 446 unchanged lines hidden (view full) ---

8878{
8879 echo
8880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8881## Running $as_me. ##
8882_ASBOX
8883} >&5
8884cat >&5 <<_CSEOF
8885
8482This file was extended by readline $as_me 5.1-beta1, which was
8886This file was extended by readline $as_me 5.2, which was
8483generated by GNU Autoconf 2.59. Invocation command line was
8484
8485 CONFIG_FILES = $CONFIG_FILES
8486 CONFIG_HEADERS = $CONFIG_HEADERS
8487 CONFIG_LINKS = $CONFIG_LINKS
8488 CONFIG_COMMANDS = $CONFIG_COMMANDS
8489 $ $0 $@
8490

--- 46 unchanged lines hidden (view full) ---

8537Configuration commands:
8538$config_commands
8539
8540Report bugs to <bug-autoconf@gnu.org>."
8541_ACEOF
8542
8543cat >>$CONFIG_STATUS <<_ACEOF
8544ac_cs_version="\\
8887generated by GNU Autoconf 2.59. Invocation command line was
8888
8889 CONFIG_FILES = $CONFIG_FILES
8890 CONFIG_HEADERS = $CONFIG_HEADERS
8891 CONFIG_LINKS = $CONFIG_LINKS
8892 CONFIG_COMMANDS = $CONFIG_COMMANDS
8893 $ $0 $@
8894

--- 46 unchanged lines hidden (view full) ---

8941Configuration commands:
8942$config_commands
8943
8944Report bugs to <bug-autoconf@gnu.org>."
8945_ACEOF
8946
8947cat >>$CONFIG_STATUS <<_ACEOF
8948ac_cs_version="\\
8545readline config.status 5.1-beta1
8949readline config.status 5.2
8546configured by $0, generated by GNU Autoconf 2.59,
8547 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8548
8549Copyright (C) 2003 Free Software Foundation, Inc.
8550This config.status script is free software; the Free Software Foundation
8551gives unlimited permission to copy, distribute and modify it."
8552srcdir=$srcdir
8553INSTALL="$INSTALL"

--- 854 unchanged lines hidden ---
8950configured by $0, generated by GNU Autoconf 2.59,
8951 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8952
8953Copyright (C) 2003 Free Software Foundation, Inc.
8954This config.status script is free software; the Free Software Foundation
8955gives unlimited permission to copy, distribute and modify it."
8956srcdir=$srcdir
8957INSTALL="$INSTALL"

--- 854 unchanged lines hidden ---