aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 1 insertions, 30 deletions
diff --git a/configure b/configure
index d8d7ef8591..a8432fc8b8 100755
--- a/configure
+++ b/configure
@@ -2342,36 +2342,7 @@ EOF
add_to_config_h_if_yes $_detectlang '#define USE_DETECTLANG'
if test "$_detectlang" = yes ; then
- echo_n "with runtime language detection, "
-
- cat > $TMPC << EOF
-#include <langinfo.h>
-#include <iconv.h>
-int main(void) { nl_langinfo(CODESET); iconv_open(0, 0); return 0; }
-EOF
- _termconv=no
- cc_check_no_clean $LDFLAGS $CXXFLAGS && _termconv=yes
- cc_check $LDFLAGS $CXXFLAGS -liconv && LIBS="$LIBS -liconv" && _termconv=yes
-
- add_to_config_mk_if_yes $_termconv 'USE_TERMCONV = 1'
- add_to_config_h_if_yes $_termconv '#define USE_TERMCONV'
- if test "$_termconv" = yes ; then
- uses_const=no
- cat > $TMPC << EOF
-#include <iconv.h>
-int main(int argc, char **argv) {
- iconv_t iconvP;
- const char **inbuf = 0;
- iconv(iconvP, inbuf, 0, 0, 0);
- return 0;
-}
-EOF
- cc_check $LDFLAGS $LIBS $CXXFLAGS && uses_const=yes
- add_to_config_h_if_yes $uses_const '#define ICONV_USES_CONST'
- echo "with terminal conversion)"
- else
- echo "without terminal conversion)"
- fi
+ echo_n "with runtime language detection)"
else
echo "without runtime language detection)"
fi