~cjwatson/ubiquity/new-partitioner

« back to all changes in this revision

Viewing changes to configure

  • Committer: Colin Watson
  • Date: 2006-05-09 10:52:34 UTC
  • Revision ID: colin.watson@canonical.com-20060509105234-fea3d01803aeb4cd
gettextize

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
# include <unistd.h>
466
466
#endif"
467
467
 
468
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_INCLUDES PKG_CONFIG ac_pt_PKG_CONFIG PYGTK_CFLAGS PYGTK_LIBS PYGTK_CODEGEN PYGTK_DEFSDIR GLIB_GENMARSHAL GTK_CFLAGS GTK_LIBS UBIQUITY_DEPENDS_CFLAGS UBIQUITY_DEPENDS_LIBS scriptsdir pixmapsdir LIBOBJS LTLIBOBJS'
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_SERVICE_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_INCLUDES PKG_CONFIG ac_pt_PKG_CONFIG PYGTK_CFLAGS PYGTK_LIBS PYGTK_CODEGEN PYGTK_DEFSDIR GLIB_GENMARSHAL GTK_CFLAGS GTK_LIBS UBIQUITY_DEPENDS_CFLAGS UBIQUITY_DEPENDS_LIBS scriptsdir pixmapsdir LIBOBJS LTLIBOBJS'
469
469
ac_subst_files=''
470
470
 
471
471
# Initialize some variables set by options.
1058
1058
  --disable-dependency-tracking  speeds up one-time build
1059
1059
  --enable-dependency-tracking   do not reject slow dependency extractors
1060
1060
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1061
  --disable-nls           do not use Native Language Support
 
1062
  --disable-rpath         do not hardcode runtime library paths
1061
1063
  --disable-gtktest       do not try to compile and run a test GTK+ program
1062
1064
 
1063
1065
Optional Packages:
1068
1070
                          both]
1069
1071
  --with-tags[=TAGS]
1070
1072
                          include additional configurations [automatic]
 
1073
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1074
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1075
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1076
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1077
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1071
1078
 
1072
1079
Some influential environment variables:
1073
1080
  CC          C compiler command
3713
3720
  ;;
3714
3721
*-*-irix6*)
3715
3722
  # Find out which ABI we are using.
3716
 
  echo '#line 3716 "configure"' > conftest.$ac_ext
 
3723
  echo '#line 3723 "configure"' > conftest.$ac_ext
3717
3724
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718
3725
  (eval $ac_compile) 2>&5
3719
3726
  ac_status=$?
5304
5311
 
5305
5312
 
5306
5313
# Provide some information about the compiler.
5307
 
echo "$as_me:5307:" \
 
5314
echo "$as_me:5314:" \
5308
5315
     "checking for Fortran 77 compiler version" >&5
5309
5316
ac_compiler=`set X $ac_compile; echo $2`
5310
5317
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6365
6372
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6366
6373
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6367
6374
   -e 's:$: $lt_compiler_flag:'`
6368
 
   (eval echo "\"\$as_me:6368: $lt_compile\"" >&5)
 
6375
   (eval echo "\"\$as_me:6375: $lt_compile\"" >&5)
6369
6376
   (eval "$lt_compile" 2>conftest.err)
6370
6377
   ac_status=$?
6371
6378
   cat conftest.err >&5
6372
 
   echo "$as_me:6372: \$? = $ac_status" >&5
 
6379
   echo "$as_me:6379: \$? = $ac_status" >&5
6373
6380
   if (exit $ac_status) && test -s "$ac_outfile"; then
6374
6381
     # The compiler can only warn and ignore the option if not recognized
6375
6382
     # So say no if there are warnings other than the usual output.
6633
6640
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6634
6641
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6635
6642
   -e 's:$: $lt_compiler_flag:'`
6636
 
   (eval echo "\"\$as_me:6636: $lt_compile\"" >&5)
 
6643
   (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
6637
6644
   (eval "$lt_compile" 2>conftest.err)
6638
6645
   ac_status=$?
6639
6646
   cat conftest.err >&5
6640
 
   echo "$as_me:6640: \$? = $ac_status" >&5
 
6647
   echo "$as_me:6647: \$? = $ac_status" >&5
6641
6648
   if (exit $ac_status) && test -s "$ac_outfile"; then
6642
6649
     # The compiler can only warn and ignore the option if not recognized
6643
6650
     # So say no if there are warnings other than the usual output.
6737
6744
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6738
6745
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6739
6746
   -e 's:$: $lt_compiler_flag:'`
6740
 
   (eval echo "\"\$as_me:6740: $lt_compile\"" >&5)
 
6747
   (eval echo "\"\$as_me:6747: $lt_compile\"" >&5)
6741
6748
   (eval "$lt_compile" 2>out/conftest.err)
6742
6749
   ac_status=$?
6743
6750
   cat out/conftest.err >&5
6744
 
   echo "$as_me:6744: \$? = $ac_status" >&5
 
6751
   echo "$as_me:6751: \$? = $ac_status" >&5
6745
6752
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6746
6753
   then
6747
6754
     # The compiler can only warn and ignore the option if not recognized
9062
9069
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9063
9070
  lt_status=$lt_dlunknown
9064
9071
  cat > conftest.$ac_ext <<EOF
9065
 
#line 9065 "configure"
 
9072
#line 9072 "configure"
9066
9073
#include "confdefs.h"
9067
9074
 
9068
9075
#if HAVE_DLFCN_H
9162
9169
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9163
9170
  lt_status=$lt_dlunknown
9164
9171
  cat > conftest.$ac_ext <<EOF
9165
 
#line 9165 "configure"
 
9172
#line 9172 "configure"
9166
9173
#include "confdefs.h"
9167
9174
 
9168
9175
#if HAVE_DLFCN_H
11500
11507
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11501
11508
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11502
11509
   -e 's:$: $lt_compiler_flag:'`
11503
 
   (eval echo "\"\$as_me:11503: $lt_compile\"" >&5)
 
11510
   (eval echo "\"\$as_me:11510: $lt_compile\"" >&5)
11504
11511
   (eval "$lt_compile" 2>conftest.err)
11505
11512
   ac_status=$?
11506
11513
   cat conftest.err >&5
11507
 
   echo "$as_me:11507: \$? = $ac_status" >&5
 
11514
   echo "$as_me:11514: \$? = $ac_status" >&5
11508
11515
   if (exit $ac_status) && test -s "$ac_outfile"; then
11509
11516
     # The compiler can only warn and ignore the option if not recognized
11510
11517
     # So say no if there are warnings other than the usual output.
11604
11611
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11605
11612
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11606
11613
   -e 's:$: $lt_compiler_flag:'`
11607
 
   (eval echo "\"\$as_me:11607: $lt_compile\"" >&5)
 
11614
   (eval echo "\"\$as_me:11614: $lt_compile\"" >&5)
11608
11615
   (eval "$lt_compile" 2>out/conftest.err)
11609
11616
   ac_status=$?
11610
11617
   cat out/conftest.err >&5
11611
 
   echo "$as_me:11611: \$? = $ac_status" >&5
 
11618
   echo "$as_me:11618: \$? = $ac_status" >&5
11612
11619
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11613
11620
   then
11614
11621
     # The compiler can only warn and ignore the option if not recognized
13165
13172
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13166
13173
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13167
13174
   -e 's:$: $lt_compiler_flag:'`
13168
 
   (eval echo "\"\$as_me:13168: $lt_compile\"" >&5)
 
13175
   (eval echo "\"\$as_me:13175: $lt_compile\"" >&5)
13169
13176
   (eval "$lt_compile" 2>conftest.err)
13170
13177
   ac_status=$?
13171
13178
   cat conftest.err >&5
13172
 
   echo "$as_me:13172: \$? = $ac_status" >&5
 
13179
   echo "$as_me:13179: \$? = $ac_status" >&5
13173
13180
   if (exit $ac_status) && test -s "$ac_outfile"; then
13174
13181
     # The compiler can only warn and ignore the option if not recognized
13175
13182
     # So say no if there are warnings other than the usual output.
13269
13276
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13270
13277
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13271
13278
   -e 's:$: $lt_compiler_flag:'`
13272
 
   (eval echo "\"\$as_me:13272: $lt_compile\"" >&5)
 
13279
   (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
13273
13280
   (eval "$lt_compile" 2>out/conftest.err)
13274
13281
   ac_status=$?
13275
13282
   cat out/conftest.err >&5
13276
 
   echo "$as_me:13276: \$? = $ac_status" >&5
 
13283
   echo "$as_me:13283: \$? = $ac_status" >&5
13277
13284
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13278
13285
   then
13279
13286
     # The compiler can only warn and ignore the option if not recognized
15459
15466
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15460
15467
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15461
15468
   -e 's:$: $lt_compiler_flag:'`
15462
 
   (eval echo "\"\$as_me:15462: $lt_compile\"" >&5)
 
15469
   (eval echo "\"\$as_me:15469: $lt_compile\"" >&5)
15463
15470
   (eval "$lt_compile" 2>conftest.err)
15464
15471
   ac_status=$?
15465
15472
   cat conftest.err >&5
15466
 
   echo "$as_me:15466: \$? = $ac_status" >&5
 
15473
   echo "$as_me:15473: \$? = $ac_status" >&5
15467
15474
   if (exit $ac_status) && test -s "$ac_outfile"; then
15468
15475
     # The compiler can only warn and ignore the option if not recognized
15469
15476
     # So say no if there are warnings other than the usual output.
15727
15734
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15728
15735
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15729
15736
   -e 's:$: $lt_compiler_flag:'`
15730
 
   (eval echo "\"\$as_me:15730: $lt_compile\"" >&5)
 
15737
   (eval echo "\"\$as_me:15737: $lt_compile\"" >&5)
15731
15738
   (eval "$lt_compile" 2>conftest.err)
15732
15739
   ac_status=$?
15733
15740
   cat conftest.err >&5
15734
 
   echo "$as_me:15734: \$? = $ac_status" >&5
 
15741
   echo "$as_me:15741: \$? = $ac_status" >&5
15735
15742
   if (exit $ac_status) && test -s "$ac_outfile"; then
15736
15743
     # The compiler can only warn and ignore the option if not recognized
15737
15744
     # So say no if there are warnings other than the usual output.
15831
15838
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15832
15839
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833
15840
   -e 's:$: $lt_compiler_flag:'`
15834
 
   (eval echo "\"\$as_me:15834: $lt_compile\"" >&5)
 
15841
   (eval echo "\"\$as_me:15841: $lt_compile\"" >&5)
15835
15842
   (eval "$lt_compile" 2>out/conftest.err)
15836
15843
   ac_status=$?
15837
15844
   cat out/conftest.err >&5
15838
 
   echo "$as_me:15838: \$? = $ac_status" >&5
 
15845
   echo "$as_me:15845: \$? = $ac_status" >&5
15839
15846
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15840
15847
   then
15841
15848
     # The compiler can only warn and ignore the option if not recognized
18487
18494
 
18488
18495
 
18489
18496
 
 
18497
 
 
18498
        MKINSTALLDIRS=
 
18499
  if test -n "$ac_aux_dir"; then
 
18500
    case "$ac_aux_dir" in
 
18501
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
18502
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
18503
    esac
 
18504
  fi
 
18505
  if test -z "$MKINSTALLDIRS"; then
 
18506
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
18507
  fi
 
18508
 
 
18509
 
 
18510
 
 
18511
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
18512
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
18513
    # Check whether --enable-nls or --disable-nls was given.
 
18514
if test "${enable_nls+set}" = set; then
 
18515
  enableval="$enable_nls"
 
18516
  USE_NLS=$enableval
 
18517
else
 
18518
  USE_NLS=yes
 
18519
fi;
 
18520
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
18521
echo "${ECHO_T}$USE_NLS" >&6
 
18522
 
 
18523
 
 
18524
 
 
18525
 
 
18526
 
 
18527
 
 
18528
# Prepare PATH_SEPARATOR.
 
18529
# The user is always right.
 
18530
if test "${PATH_SEPARATOR+set}" != set; then
 
18531
  echo "#! /bin/sh" >conf$$.sh
 
18532
  echo  "exit 0"   >>conf$$.sh
 
18533
  chmod +x conf$$.sh
 
18534
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18535
    PATH_SEPARATOR=';'
 
18536
  else
 
18537
    PATH_SEPARATOR=:
 
18538
  fi
 
18539
  rm -f conf$$.sh
 
18540
fi
 
18541
 
 
18542
# Find out how to test for executable files. Don't use a zero-byte file,
 
18543
# as systems may use methods other than mode bits to determine executability.
 
18544
cat >conf$$.file <<_ASEOF
 
18545
#! /bin/sh
 
18546
exit 0
 
18547
_ASEOF
 
18548
chmod +x conf$$.file
 
18549
if test -x conf$$.file >/dev/null 2>&1; then
 
18550
  ac_executable_p="test -x"
 
18551
else
 
18552
  ac_executable_p="test -f"
 
18553
fi
 
18554
rm -f conf$$.file
 
18555
 
 
18556
# Extract the first word of "msgfmt", so it can be a program name with args.
 
18557
set dummy msgfmt; ac_word=$2
 
18558
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18560
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
18561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18562
else
 
18563
  case "$MSGFMT" in
 
18564
  [\\/]* | ?:[\\/]*)
 
18565
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
18566
    ;;
 
18567
  *)
 
18568
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
18569
    for ac_dir in $PATH; do
 
18570
      IFS="$ac_save_IFS"
 
18571
      test -z "$ac_dir" && ac_dir=.
 
18572
      for ac_exec_ext in '' $ac_executable_extensions; do
 
18573
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
18574
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
18575
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
18576
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
18577
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
18578
            break 2
 
18579
          fi
 
18580
        fi
 
18581
      done
 
18582
    done
 
18583
    IFS="$ac_save_IFS"
 
18584
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
18585
    ;;
 
18586
esac
 
18587
fi
 
18588
MSGFMT="$ac_cv_path_MSGFMT"
 
18589
if test "$MSGFMT" != ":"; then
 
18590
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
18591
echo "${ECHO_T}$MSGFMT" >&6
 
18592
else
 
18593
  echo "$as_me:$LINENO: result: no" >&5
 
18594
echo "${ECHO_T}no" >&6
 
18595
fi
 
18596
 
 
18597
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
18598
set dummy gmsgfmt; ac_word=$2
 
18599
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18601
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
18602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18603
else
 
18604
  case $GMSGFMT in
 
18605
  [\\/]* | ?:[\\/]*)
 
18606
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
18607
  ;;
 
18608
  *)
 
18609
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18610
for as_dir in $PATH
 
18611
do
 
18612
  IFS=$as_save_IFS
 
18613
  test -z "$as_dir" && as_dir=.
 
18614
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18615
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18616
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
18617
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18618
    break 2
 
18619
  fi
 
18620
done
 
18621
done
 
18622
 
 
18623
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
18624
  ;;
 
18625
esac
 
18626
fi
 
18627
GMSGFMT=$ac_cv_path_GMSGFMT
 
18628
 
 
18629
if test -n "$GMSGFMT"; then
 
18630
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
18631
echo "${ECHO_T}$GMSGFMT" >&6
 
18632
else
 
18633
  echo "$as_me:$LINENO: result: no" >&5
 
18634
echo "${ECHO_T}no" >&6
 
18635
fi
 
18636
 
 
18637
 
 
18638
 
 
18639
# Prepare PATH_SEPARATOR.
 
18640
# The user is always right.
 
18641
if test "${PATH_SEPARATOR+set}" != set; then
 
18642
  echo "#! /bin/sh" >conf$$.sh
 
18643
  echo  "exit 0"   >>conf$$.sh
 
18644
  chmod +x conf$$.sh
 
18645
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18646
    PATH_SEPARATOR=';'
 
18647
  else
 
18648
    PATH_SEPARATOR=:
 
18649
  fi
 
18650
  rm -f conf$$.sh
 
18651
fi
 
18652
 
 
18653
# Find out how to test for executable files. Don't use a zero-byte file,
 
18654
# as systems may use methods other than mode bits to determine executability.
 
18655
cat >conf$$.file <<_ASEOF
 
18656
#! /bin/sh
 
18657
exit 0
 
18658
_ASEOF
 
18659
chmod +x conf$$.file
 
18660
if test -x conf$$.file >/dev/null 2>&1; then
 
18661
  ac_executable_p="test -x"
 
18662
else
 
18663
  ac_executable_p="test -f"
 
18664
fi
 
18665
rm -f conf$$.file
 
18666
 
 
18667
# Extract the first word of "xgettext", so it can be a program name with args.
 
18668
set dummy xgettext; ac_word=$2
 
18669
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18671
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
18672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18673
else
 
18674
  case "$XGETTEXT" in
 
18675
  [\\/]* | ?:[\\/]*)
 
18676
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
18677
    ;;
 
18678
  *)
 
18679
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
18680
    for ac_dir in $PATH; do
 
18681
      IFS="$ac_save_IFS"
 
18682
      test -z "$ac_dir" && ac_dir=.
 
18683
      for ac_exec_ext in '' $ac_executable_extensions; do
 
18684
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
18685
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
18686
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
18687
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
18688
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
18689
            break 2
 
18690
          fi
 
18691
        fi
 
18692
      done
 
18693
    done
 
18694
    IFS="$ac_save_IFS"
 
18695
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
18696
    ;;
 
18697
esac
 
18698
fi
 
18699
XGETTEXT="$ac_cv_path_XGETTEXT"
 
18700
if test "$XGETTEXT" != ":"; then
 
18701
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
18702
echo "${ECHO_T}$XGETTEXT" >&6
 
18703
else
 
18704
  echo "$as_me:$LINENO: result: no" >&5
 
18705
echo "${ECHO_T}no" >&6
 
18706
fi
 
18707
 
 
18708
    rm -f messages.po
 
18709
 
 
18710
 
 
18711
# Prepare PATH_SEPARATOR.
 
18712
# The user is always right.
 
18713
if test "${PATH_SEPARATOR+set}" != set; then
 
18714
  echo "#! /bin/sh" >conf$$.sh
 
18715
  echo  "exit 0"   >>conf$$.sh
 
18716
  chmod +x conf$$.sh
 
18717
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18718
    PATH_SEPARATOR=';'
 
18719
  else
 
18720
    PATH_SEPARATOR=:
 
18721
  fi
 
18722
  rm -f conf$$.sh
 
18723
fi
 
18724
 
 
18725
# Find out how to test for executable files. Don't use a zero-byte file,
 
18726
# as systems may use methods other than mode bits to determine executability.
 
18727
cat >conf$$.file <<_ASEOF
 
18728
#! /bin/sh
 
18729
exit 0
 
18730
_ASEOF
 
18731
chmod +x conf$$.file
 
18732
if test -x conf$$.file >/dev/null 2>&1; then
 
18733
  ac_executable_p="test -x"
 
18734
else
 
18735
  ac_executable_p="test -f"
 
18736
fi
 
18737
rm -f conf$$.file
 
18738
 
 
18739
# Extract the first word of "msgmerge", so it can be a program name with args.
 
18740
set dummy msgmerge; ac_word=$2
 
18741
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18743
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
18744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18745
else
 
18746
  case "$MSGMERGE" in
 
18747
  [\\/]* | ?:[\\/]*)
 
18748
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
18749
    ;;
 
18750
  *)
 
18751
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
18752
    for ac_dir in $PATH; do
 
18753
      IFS="$ac_save_IFS"
 
18754
      test -z "$ac_dir" && ac_dir=.
 
18755
      for ac_exec_ext in '' $ac_executable_extensions; do
 
18756
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
18757
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
18758
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
18759
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
18760
            break 2
 
18761
          fi
 
18762
        fi
 
18763
      done
 
18764
    done
 
18765
    IFS="$ac_save_IFS"
 
18766
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
18767
    ;;
 
18768
esac
 
18769
fi
 
18770
MSGMERGE="$ac_cv_path_MSGMERGE"
 
18771
if test "$MSGMERGE" != ":"; then
 
18772
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
18773
echo "${ECHO_T}$MSGMERGE" >&6
 
18774
else
 
18775
  echo "$as_me:$LINENO: result: no" >&5
 
18776
echo "${ECHO_T}no" >&6
 
18777
fi
 
18778
 
 
18779
 
 
18780
      if test "$GMSGFMT" != ":"; then
 
18781
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
18782
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
18783
      : ;
 
18784
    else
 
18785
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
18786
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
18787
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
18788
      GMSGFMT=":"
 
18789
    fi
 
18790
  fi
 
18791
 
 
18792
      if test "$XGETTEXT" != ":"; then
 
18793
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
18794
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
18795
      : ;
 
18796
    else
 
18797
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
18798
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
18799
      XGETTEXT=":"
 
18800
    fi
 
18801
        rm -f messages.po
 
18802
  fi
 
18803
 
 
18804
            ac_config_commands="$ac_config_commands default-1"
 
18805
 
 
18806
 
 
18807
 
 
18808
      if test "X$prefix" = "XNONE"; then
 
18809
    acl_final_prefix="$ac_default_prefix"
 
18810
  else
 
18811
    acl_final_prefix="$prefix"
 
18812
  fi
 
18813
  if test "X$exec_prefix" = "XNONE"; then
 
18814
    acl_final_exec_prefix='${prefix}'
 
18815
  else
 
18816
    acl_final_exec_prefix="$exec_prefix"
 
18817
  fi
 
18818
  acl_save_prefix="$prefix"
 
18819
  prefix="$acl_final_prefix"
 
18820
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
18821
  prefix="$acl_save_prefix"
 
18822
 
 
18823
 
 
18824
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
18825
if test "${with_gnu_ld+set}" = set; then
 
18826
  withval="$with_gnu_ld"
 
18827
  test "$withval" = no || with_gnu_ld=yes
 
18828
else
 
18829
  with_gnu_ld=no
 
18830
fi;
 
18831
# Prepare PATH_SEPARATOR.
 
18832
# The user is always right.
 
18833
if test "${PATH_SEPARATOR+set}" != set; then
 
18834
  echo "#! /bin/sh" >conf$$.sh
 
18835
  echo  "exit 0"   >>conf$$.sh
 
18836
  chmod +x conf$$.sh
 
18837
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18838
    PATH_SEPARATOR=';'
 
18839
  else
 
18840
    PATH_SEPARATOR=:
 
18841
  fi
 
18842
  rm -f conf$$.sh
 
18843
fi
 
18844
ac_prog=ld
 
18845
if test "$GCC" = yes; then
 
18846
  # Check if gcc -print-prog-name=ld gives a path.
 
18847
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
18848
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
18849
  case $host in
 
18850
  *-*-mingw*)
 
18851
    # gcc leaves a trailing carriage return which upsets mingw
 
18852
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
18853
  *)
 
18854
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
18855
  esac
 
18856
  case $ac_prog in
 
18857
    # Accept absolute paths.
 
18858
    [\\/]* | [A-Za-z]:[\\/]*)
 
18859
      re_direlt='/[^/][^/]*/\.\./'
 
18860
      # Canonicalize the path of ld
 
18861
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
18862
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
18863
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
18864
      done
 
18865
      test -z "$LD" && LD="$ac_prog"
 
18866
      ;;
 
18867
  "")
 
18868
    # If it fails, then pretend we aren't using GCC.
 
18869
    ac_prog=ld
 
18870
    ;;
 
18871
  *)
 
18872
    # If it is relative, then search for the first ld in PATH.
 
18873
    with_gnu_ld=unknown
 
18874
    ;;
 
18875
  esac
 
18876
elif test "$with_gnu_ld" = yes; then
 
18877
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
18878
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
18879
else
 
18880
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
18881
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
18882
fi
 
18883
if test "${acl_cv_path_LD+set}" = set; then
 
18884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18885
else
 
18886
  if test -z "$LD"; then
 
18887
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
18888
  for ac_dir in $PATH; do
 
18889
    test -z "$ac_dir" && ac_dir=.
 
18890
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
18891
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
18892
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
18893
      # but apparently some GNU ld's only accept -v.
 
18894
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
18895
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
18896
      *GNU* | *'with BFD'*)
 
18897
        test "$with_gnu_ld" != no && break ;;
 
18898
      *)
 
18899
        test "$with_gnu_ld" != yes && break ;;
 
18900
      esac
 
18901
    fi
 
18902
  done
 
18903
  IFS="$ac_save_ifs"
 
18904
else
 
18905
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
18906
fi
 
18907
fi
 
18908
 
 
18909
LD="$acl_cv_path_LD"
 
18910
if test -n "$LD"; then
 
18911
  echo "$as_me:$LINENO: result: $LD" >&5
 
18912
echo "${ECHO_T}$LD" >&6
 
18913
else
 
18914
  echo "$as_me:$LINENO: result: no" >&5
 
18915
echo "${ECHO_T}no" >&6
 
18916
fi
 
18917
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
18918
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
18919
   { (exit 1); exit 1; }; }
 
18920
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
18921
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
18922
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
18923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18924
else
 
18925
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
18926
case `$LD -v 2>&1 </dev/null` in
 
18927
*GNU* | *'with BFD'*)
 
18928
  acl_cv_prog_gnu_ld=yes ;;
 
18929
*)
 
18930
  acl_cv_prog_gnu_ld=no ;;
 
18931
esac
 
18932
fi
 
18933
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
18934
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
18935
with_gnu_ld=$acl_cv_prog_gnu_ld
 
18936
 
 
18937
 
 
18938
 
 
18939
 
 
18940
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
18941
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
18942
if test "${acl_cv_rpath+set}" = set; then
 
18943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18944
else
 
18945
 
 
18946
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
18947
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
18948
    . ./conftest.sh
 
18949
    rm -f ./conftest.sh
 
18950
    acl_cv_rpath=done
 
18951
 
 
18952
fi
 
18953
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
18954
echo "${ECHO_T}$acl_cv_rpath" >&6
 
18955
  wl="$acl_cv_wl"
 
18956
  libext="$acl_cv_libext"
 
18957
  shlibext="$acl_cv_shlibext"
 
18958
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
18959
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
18960
  hardcode_direct="$acl_cv_hardcode_direct"
 
18961
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
18962
    # Check whether --enable-rpath or --disable-rpath was given.
 
18963
if test "${enable_rpath+set}" = set; then
 
18964
  enableval="$enable_rpath"
 
18965
  :
 
18966
else
 
18967
  enable_rpath=yes
 
18968
fi;
 
18969
 
 
18970
 
 
18971
 
 
18972
 
 
18973
 
 
18974
 
 
18975
 
 
18976
    use_additional=yes
 
18977
 
 
18978
  acl_save_prefix="$prefix"
 
18979
  prefix="$acl_final_prefix"
 
18980
  acl_save_exec_prefix="$exec_prefix"
 
18981
  exec_prefix="$acl_final_exec_prefix"
 
18982
 
 
18983
    eval additional_includedir=\"$includedir\"
 
18984
    eval additional_libdir=\"$libdir\"
 
18985
 
 
18986
  exec_prefix="$acl_save_exec_prefix"
 
18987
  prefix="$acl_save_prefix"
 
18988
 
 
18989
 
 
18990
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
18991
if test "${with_libiconv_prefix+set}" = set; then
 
18992
  withval="$with_libiconv_prefix"
 
18993
 
 
18994
    if test "X$withval" = "Xno"; then
 
18995
      use_additional=no
 
18996
    else
 
18997
      if test "X$withval" = "X"; then
 
18998
 
 
18999
  acl_save_prefix="$prefix"
 
19000
  prefix="$acl_final_prefix"
 
19001
  acl_save_exec_prefix="$exec_prefix"
 
19002
  exec_prefix="$acl_final_exec_prefix"
 
19003
 
 
19004
          eval additional_includedir=\"$includedir\"
 
19005
          eval additional_libdir=\"$libdir\"
 
19006
 
 
19007
  exec_prefix="$acl_save_exec_prefix"
 
19008
  prefix="$acl_save_prefix"
 
19009
 
 
19010
      else
 
19011
        additional_includedir="$withval/include"
 
19012
        additional_libdir="$withval/lib"
 
19013
      fi
 
19014
    fi
 
19015
 
 
19016
fi;
 
19017
      LIBICONV=
 
19018
  LTLIBICONV=
 
19019
  INCICONV=
 
19020
  rpathdirs=
 
19021
  ltrpathdirs=
 
19022
  names_already_handled=
 
19023
  names_next_round='iconv '
 
19024
  while test -n "$names_next_round"; do
 
19025
    names_this_round="$names_next_round"
 
19026
    names_next_round=
 
19027
    for name in $names_this_round; do
 
19028
      already_handled=
 
19029
      for n in $names_already_handled; do
 
19030
        if test "$n" = "$name"; then
 
19031
          already_handled=yes
 
19032
          break
 
19033
        fi
 
19034
      done
 
19035
      if test -z "$already_handled"; then
 
19036
        names_already_handled="$names_already_handled $name"
 
19037
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
19038
        eval value=\"\$HAVE_LIB$uppername\"
 
19039
        if test -n "$value"; then
 
19040
          if test "$value" = yes; then
 
19041
            eval value=\"\$LIB$uppername\"
 
19042
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
19043
            eval value=\"\$LTLIB$uppername\"
 
19044
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
19045
          else
 
19046
                                    :
 
19047
          fi
 
19048
        else
 
19049
                              found_dir=
 
19050
          found_la=
 
19051
          found_so=
 
19052
          found_a=
 
19053
          if test $use_additional = yes; then
 
19054
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
19055
              found_dir="$additional_libdir"
 
19056
              found_so="$additional_libdir/lib$name.$shlibext"
 
19057
              if test -f "$additional_libdir/lib$name.la"; then
 
19058
                found_la="$additional_libdir/lib$name.la"
 
19059
              fi
 
19060
            else
 
19061
              if test -f "$additional_libdir/lib$name.$libext"; then
 
19062
                found_dir="$additional_libdir"
 
19063
                found_a="$additional_libdir/lib$name.$libext"
 
19064
                if test -f "$additional_libdir/lib$name.la"; then
 
19065
                  found_la="$additional_libdir/lib$name.la"
 
19066
                fi
 
19067
              fi
 
19068
            fi
 
19069
          fi
 
19070
          if test "X$found_dir" = "X"; then
 
19071
            for x in $LDFLAGS $LTLIBICONV; do
 
19072
 
 
19073
  acl_save_prefix="$prefix"
 
19074
  prefix="$acl_final_prefix"
 
19075
  acl_save_exec_prefix="$exec_prefix"
 
19076
  exec_prefix="$acl_final_exec_prefix"
 
19077
  eval x=\"$x\"
 
19078
  exec_prefix="$acl_save_exec_prefix"
 
19079
  prefix="$acl_save_prefix"
 
19080
 
 
19081
              case "$x" in
 
19082
                -L*)
 
19083
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
19084
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
19085
                    found_dir="$dir"
 
19086
                    found_so="$dir/lib$name.$shlibext"
 
19087
                    if test -f "$dir/lib$name.la"; then
 
19088
                      found_la="$dir/lib$name.la"
 
19089
                    fi
 
19090
                  else
 
19091
                    if test -f "$dir/lib$name.$libext"; then
 
19092
                      found_dir="$dir"
 
19093
                      found_a="$dir/lib$name.$libext"
 
19094
                      if test -f "$dir/lib$name.la"; then
 
19095
                        found_la="$dir/lib$name.la"
 
19096
                      fi
 
19097
                    fi
 
19098
                  fi
 
19099
                  ;;
 
19100
              esac
 
19101
              if test "X$found_dir" != "X"; then
 
19102
                break
 
19103
              fi
 
19104
            done
 
19105
          fi
 
19106
          if test "X$found_dir" != "X"; then
 
19107
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
19108
            if test "X$found_so" != "X"; then
 
19109
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
19110
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
19111
              else
 
19112
                                                                                haveit=
 
19113
                for x in $ltrpathdirs; do
 
19114
                  if test "X$x" = "X$found_dir"; then
 
19115
                    haveit=yes
 
19116
                    break
 
19117
                  fi
 
19118
                done
 
19119
                if test -z "$haveit"; then
 
19120
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
19121
                fi
 
19122
                                if test "$hardcode_direct" = yes; then
 
19123
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
19124
                else
 
19125
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
19126
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
19127
                                                            haveit=
 
19128
                    for x in $rpathdirs; do
 
19129
                      if test "X$x" = "X$found_dir"; then
 
19130
                        haveit=yes
 
19131
                        break
 
19132
                      fi
 
19133
                    done
 
19134
                    if test -z "$haveit"; then
 
19135
                      rpathdirs="$rpathdirs $found_dir"
 
19136
                    fi
 
19137
                  else
 
19138
                                                                                haveit=
 
19139
                    for x in $LDFLAGS $LIBICONV; do
 
19140
 
 
19141
  acl_save_prefix="$prefix"
 
19142
  prefix="$acl_final_prefix"
 
19143
  acl_save_exec_prefix="$exec_prefix"
 
19144
  exec_prefix="$acl_final_exec_prefix"
 
19145
  eval x=\"$x\"
 
19146
  exec_prefix="$acl_save_exec_prefix"
 
19147
  prefix="$acl_save_prefix"
 
19148
 
 
19149
                      if test "X$x" = "X-L$found_dir"; then
 
19150
                        haveit=yes
 
19151
                        break
 
19152
                      fi
 
19153
                    done
 
19154
                    if test -z "$haveit"; then
 
19155
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
19156
                    fi
 
19157
                    if test "$hardcode_minus_L" != no; then
 
19158
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
19159
                    else
 
19160
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
19161
                    fi
 
19162
                  fi
 
19163
                fi
 
19164
              fi
 
19165
            else
 
19166
              if test "X$found_a" != "X"; then
 
19167
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
19168
              else
 
19169
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
19170
              fi
 
19171
            fi
 
19172
                        additional_includedir=
 
19173
            case "$found_dir" in
 
19174
              */lib | */lib/)
 
19175
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
19176
                additional_includedir="$basedir/include"
 
19177
                ;;
 
19178
            esac
 
19179
            if test "X$additional_includedir" != "X"; then
 
19180
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
19181
                haveit=
 
19182
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
19183
                  if test -n "$GCC"; then
 
19184
                    case $host_os in
 
19185
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
19186
                    esac
 
19187
                  fi
 
19188
                fi
 
19189
                if test -z "$haveit"; then
 
19190
                  for x in $CPPFLAGS $INCICONV; do
 
19191
 
 
19192
  acl_save_prefix="$prefix"
 
19193
  prefix="$acl_final_prefix"
 
19194
  acl_save_exec_prefix="$exec_prefix"
 
19195
  exec_prefix="$acl_final_exec_prefix"
 
19196
  eval x=\"$x\"
 
19197
  exec_prefix="$acl_save_exec_prefix"
 
19198
  prefix="$acl_save_prefix"
 
19199
 
 
19200
                    if test "X$x" = "X-I$additional_includedir"; then
 
19201
                      haveit=yes
 
19202
                      break
 
19203
                    fi
 
19204
                  done
 
19205
                  if test -z "$haveit"; then
 
19206
                    if test -d "$additional_includedir"; then
 
19207
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
19208
                    fi
 
19209
                  fi
 
19210
                fi
 
19211
              fi
 
19212
            fi
 
19213
                        if test -n "$found_la"; then
 
19214
                                                        save_libdir="$libdir"
 
19215
              case "$found_la" in
 
19216
                */* | *\\*) . "$found_la" ;;
 
19217
                *) . "./$found_la" ;;
 
19218
              esac
 
19219
              libdir="$save_libdir"
 
19220
                            for dep in $dependency_libs; do
 
19221
                case "$dep" in
 
19222
                  -L*)
 
19223
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
19224
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
19225
                      haveit=
 
19226
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
19227
                        if test -n "$GCC"; then
 
19228
                          case $host_os in
 
19229
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
19230
                          esac
 
19231
                        fi
 
19232
                      fi
 
19233
                      if test -z "$haveit"; then
 
19234
                        haveit=
 
19235
                        for x in $LDFLAGS $LIBICONV; do
 
19236
 
 
19237
  acl_save_prefix="$prefix"
 
19238
  prefix="$acl_final_prefix"
 
19239
  acl_save_exec_prefix="$exec_prefix"
 
19240
  exec_prefix="$acl_final_exec_prefix"
 
19241
  eval x=\"$x\"
 
19242
  exec_prefix="$acl_save_exec_prefix"
 
19243
  prefix="$acl_save_prefix"
 
19244
 
 
19245
                          if test "X$x" = "X-L$additional_libdir"; then
 
19246
                            haveit=yes
 
19247
                            break
 
19248
                          fi
 
19249
                        done
 
19250
                        if test -z "$haveit"; then
 
19251
                          if test -d "$additional_libdir"; then
 
19252
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
19253
                          fi
 
19254
                        fi
 
19255
                        haveit=
 
19256
                        for x in $LDFLAGS $LTLIBICONV; do
 
19257
 
 
19258
  acl_save_prefix="$prefix"
 
19259
  prefix="$acl_final_prefix"
 
19260
  acl_save_exec_prefix="$exec_prefix"
 
19261
  exec_prefix="$acl_final_exec_prefix"
 
19262
  eval x=\"$x\"
 
19263
  exec_prefix="$acl_save_exec_prefix"
 
19264
  prefix="$acl_save_prefix"
 
19265
 
 
19266
                          if test "X$x" = "X-L$additional_libdir"; then
 
19267
                            haveit=yes
 
19268
                            break
 
19269
                          fi
 
19270
                        done
 
19271
                        if test -z "$haveit"; then
 
19272
                          if test -d "$additional_libdir"; then
 
19273
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
19274
                          fi
 
19275
                        fi
 
19276
                      fi
 
19277
                    fi
 
19278
                    ;;
 
19279
                  -R*)
 
19280
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
19281
                    if test "$enable_rpath" != no; then
 
19282
                                                                  haveit=
 
19283
                      for x in $rpathdirs; do
 
19284
                        if test "X$x" = "X$dir"; then
 
19285
                          haveit=yes
 
19286
                          break
 
19287
                        fi
 
19288
                      done
 
19289
                      if test -z "$haveit"; then
 
19290
                        rpathdirs="$rpathdirs $dir"
 
19291
                      fi
 
19292
                                                                  haveit=
 
19293
                      for x in $ltrpathdirs; do
 
19294
                        if test "X$x" = "X$dir"; then
 
19295
                          haveit=yes
 
19296
                          break
 
19297
                        fi
 
19298
                      done
 
19299
                      if test -z "$haveit"; then
 
19300
                        ltrpathdirs="$ltrpathdirs $dir"
 
19301
                      fi
 
19302
                    fi
 
19303
                    ;;
 
19304
                  -l*)
 
19305
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
19306
                    ;;
 
19307
                  *.la)
 
19308
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
19309
                    ;;
 
19310
                  *)
 
19311
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
19312
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
19313
                    ;;
 
19314
                esac
 
19315
              done
 
19316
            fi
 
19317
          else
 
19318
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
19319
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
19320
          fi
 
19321
        fi
 
19322
      fi
 
19323
    done
 
19324
  done
 
19325
  if test "X$rpathdirs" != "X"; then
 
19326
    if test -n "$hardcode_libdir_separator"; then
 
19327
                        alldirs=
 
19328
      for found_dir in $rpathdirs; do
 
19329
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
19330
      done
 
19331
            acl_save_libdir="$libdir"
 
19332
      libdir="$alldirs"
 
19333
      eval flag=\"$hardcode_libdir_flag_spec\"
 
19334
      libdir="$acl_save_libdir"
 
19335
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
19336
    else
 
19337
            for found_dir in $rpathdirs; do
 
19338
        acl_save_libdir="$libdir"
 
19339
        libdir="$found_dir"
 
19340
        eval flag=\"$hardcode_libdir_flag_spec\"
 
19341
        libdir="$acl_save_libdir"
 
19342
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
19343
      done
 
19344
    fi
 
19345
  fi
 
19346
  if test "X$ltrpathdirs" != "X"; then
 
19347
            for found_dir in $ltrpathdirs; do
 
19348
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
19349
    done
 
19350
  fi
 
19351
 
 
19352
 
 
19353
 
 
19354
 
 
19355
 
 
19356
 
 
19357
 
 
19358
 
 
19359
 
 
19360
 
 
19361
 
 
19362
 
 
19363
 
 
19364
 
 
19365
 
 
19366
 
 
19367
 
 
19368
 
 
19369
    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
19370
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
 
19371
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
19372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19373
else
 
19374
  gt_save_CPPFLAGS="$CPPFLAGS"
 
19375
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
19376
     gt_save_LIBS="$LIBS"
 
19377
     LIBS="$LIBS -framework CoreFoundation"
 
19378
     cat >conftest.$ac_ext <<_ACEOF
 
19379
/* confdefs.h.  */
 
19380
_ACEOF
 
19381
cat confdefs.h >>conftest.$ac_ext
 
19382
cat >>conftest.$ac_ext <<_ACEOF
 
19383
/* end confdefs.h.  */
 
19384
#include <CFPreferences.h>
 
19385
int
 
19386
main ()
 
19387
{
 
19388
CFPreferencesCopyAppValue(NULL, NULL)
 
19389
  ;
 
19390
  return 0;
 
19391
}
 
19392
_ACEOF
 
19393
rm -f conftest.$ac_objext conftest$ac_exeext
 
19394
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19395
  (eval $ac_link) 2>conftest.er1
 
19396
  ac_status=$?
 
19397
  grep -v '^ *+' conftest.er1 >conftest.err
 
19398
  rm -f conftest.er1
 
19399
  cat conftest.err >&5
 
19400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19401
  (exit $ac_status); } &&
 
19402
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19404
  (eval $ac_try) 2>&5
 
19405
  ac_status=$?
 
19406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19407
  (exit $ac_status); }; } &&
 
19408
         { ac_try='test -s conftest$ac_exeext'
 
19409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19410
  (eval $ac_try) 2>&5
 
19411
  ac_status=$?
 
19412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19413
  (exit $ac_status); }; }; then
 
19414
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
19415
else
 
19416
  echo "$as_me: failed program was:" >&5
 
19417
sed 's/^/| /' conftest.$ac_ext >&5
 
19418
 
 
19419
gt_cv_func_CFPreferencesCopyAppValue=no
 
19420
fi
 
19421
rm -f conftest.err conftest.$ac_objext \
 
19422
      conftest$ac_exeext conftest.$ac_ext
 
19423
     CPPFLAGS="$gt_save_CPPFLAGS"
 
19424
     LIBS="$gt_save_LIBS"
 
19425
fi
 
19426
echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
19427
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
 
19428
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
19429
 
 
19430
cat >>confdefs.h <<\_ACEOF
 
19431
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
19432
_ACEOF
 
19433
 
 
19434
  fi
 
19435
    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
19436
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
 
19437
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
19438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19439
else
 
19440
  gt_save_CPPFLAGS="$CPPFLAGS"
 
19441
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
 
19442
     gt_save_LIBS="$LIBS"
 
19443
     LIBS="$LIBS -framework CoreFoundation"
 
19444
     cat >conftest.$ac_ext <<_ACEOF
 
19445
/* confdefs.h.  */
 
19446
_ACEOF
 
19447
cat confdefs.h >>conftest.$ac_ext
 
19448
cat >>conftest.$ac_ext <<_ACEOF
 
19449
/* end confdefs.h.  */
 
19450
#include <CFLocale.h>
 
19451
int
 
19452
main ()
 
19453
{
 
19454
CFLocaleCopyCurrent();
 
19455
  ;
 
19456
  return 0;
 
19457
}
 
19458
_ACEOF
 
19459
rm -f conftest.$ac_objext conftest$ac_exeext
 
19460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19461
  (eval $ac_link) 2>conftest.er1
 
19462
  ac_status=$?
 
19463
  grep -v '^ *+' conftest.er1 >conftest.err
 
19464
  rm -f conftest.er1
 
19465
  cat conftest.err >&5
 
19466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19467
  (exit $ac_status); } &&
 
19468
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19470
  (eval $ac_try) 2>&5
 
19471
  ac_status=$?
 
19472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19473
  (exit $ac_status); }; } &&
 
19474
         { ac_try='test -s conftest$ac_exeext'
 
19475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19476
  (eval $ac_try) 2>&5
 
19477
  ac_status=$?
 
19478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19479
  (exit $ac_status); }; }; then
 
19480
  gt_cv_func_CFLocaleCopyCurrent=yes
 
19481
else
 
19482
  echo "$as_me: failed program was:" >&5
 
19483
sed 's/^/| /' conftest.$ac_ext >&5
 
19484
 
 
19485
gt_cv_func_CFLocaleCopyCurrent=no
 
19486
fi
 
19487
rm -f conftest.err conftest.$ac_objext \
 
19488
      conftest$ac_exeext conftest.$ac_ext
 
19489
     CPPFLAGS="$gt_save_CPPFLAGS"
 
19490
     LIBS="$gt_save_LIBS"
 
19491
fi
 
19492
echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
19493
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
 
19494
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
19495
 
 
19496
cat >>confdefs.h <<\_ACEOF
 
19497
#define HAVE_CFLOCALECOPYCURRENT 1
 
19498
_ACEOF
 
19499
 
 
19500
  fi
 
19501
  INTL_MACOSX_LIBS=
 
19502
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
19503
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
19504
  fi
 
19505
 
 
19506
 
 
19507
 
 
19508
 
 
19509
 
 
19510
 
 
19511
  LIBINTL=
 
19512
  LTLIBINTL=
 
19513
  POSUB=
 
19514
 
 
19515
    if test "$USE_NLS" = "yes"; then
 
19516
    gt_use_preinstalled_gnugettext=no
 
19517
 
 
19518
 
 
19519
 
 
19520
 
 
19521
 
 
19522
 
 
19523
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
19524
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
19525
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
19526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19527
else
 
19528
  cat >conftest.$ac_ext <<_ACEOF
 
19529
/* confdefs.h.  */
 
19530
_ACEOF
 
19531
cat confdefs.h >>conftest.$ac_ext
 
19532
cat >>conftest.$ac_ext <<_ACEOF
 
19533
/* end confdefs.h.  */
 
19534
#include <libintl.h>
 
19535
extern int _nl_msg_cat_cntr;
 
19536
extern int *_nl_domain_bindings;
 
19537
int
 
19538
main ()
 
19539
{
 
19540
bindtextdomain ("", "");
 
19541
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
19542
  ;
 
19543
  return 0;
 
19544
}
 
19545
_ACEOF
 
19546
rm -f conftest.$ac_objext conftest$ac_exeext
 
19547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19548
  (eval $ac_link) 2>conftest.er1
 
19549
  ac_status=$?
 
19550
  grep -v '^ *+' conftest.er1 >conftest.err
 
19551
  rm -f conftest.er1
 
19552
  cat conftest.err >&5
 
19553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19554
  (exit $ac_status); } &&
 
19555
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19557
  (eval $ac_try) 2>&5
 
19558
  ac_status=$?
 
19559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19560
  (exit $ac_status); }; } &&
 
19561
         { ac_try='test -s conftest$ac_exeext'
 
19562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19563
  (eval $ac_try) 2>&5
 
19564
  ac_status=$?
 
19565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19566
  (exit $ac_status); }; }; then
 
19567
  gt_cv_func_gnugettext1_libc=yes
 
19568
else
 
19569
  echo "$as_me: failed program was:" >&5
 
19570
sed 's/^/| /' conftest.$ac_ext >&5
 
19571
 
 
19572
gt_cv_func_gnugettext1_libc=no
 
19573
fi
 
19574
rm -f conftest.err conftest.$ac_objext \
 
19575
      conftest$ac_exeext conftest.$ac_ext
 
19576
fi
 
19577
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
19578
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
19579
 
 
19580
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
19581
 
 
19582
 
 
19583
 
 
19584
 
 
19585
 
 
19586
          am_save_CPPFLAGS="$CPPFLAGS"
 
19587
 
 
19588
  for element in $INCICONV; do
 
19589
    haveit=
 
19590
    for x in $CPPFLAGS; do
 
19591
 
 
19592
  acl_save_prefix="$prefix"
 
19593
  prefix="$acl_final_prefix"
 
19594
  acl_save_exec_prefix="$exec_prefix"
 
19595
  exec_prefix="$acl_final_exec_prefix"
 
19596
  eval x=\"$x\"
 
19597
  exec_prefix="$acl_save_exec_prefix"
 
19598
  prefix="$acl_save_prefix"
 
19599
 
 
19600
      if test "X$x" = "X$element"; then
 
19601
        haveit=yes
 
19602
        break
 
19603
      fi
 
19604
    done
 
19605
    if test -z "$haveit"; then
 
19606
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
19607
    fi
 
19608
  done
 
19609
 
 
19610
 
 
19611
  echo "$as_me:$LINENO: checking for iconv" >&5
 
19612
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
19613
if test "${am_cv_func_iconv+set}" = set; then
 
19614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19615
else
 
19616
 
 
19617
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
19618
    am_cv_lib_iconv=no
 
19619
    cat >conftest.$ac_ext <<_ACEOF
 
19620
/* confdefs.h.  */
 
19621
_ACEOF
 
19622
cat confdefs.h >>conftest.$ac_ext
 
19623
cat >>conftest.$ac_ext <<_ACEOF
 
19624
/* end confdefs.h.  */
 
19625
#include <stdlib.h>
 
19626
#include <iconv.h>
 
19627
int
 
19628
main ()
 
19629
{
 
19630
iconv_t cd = iconv_open("","");
 
19631
       iconv(cd,NULL,NULL,NULL,NULL);
 
19632
       iconv_close(cd);
 
19633
  ;
 
19634
  return 0;
 
19635
}
 
19636
_ACEOF
 
19637
rm -f conftest.$ac_objext conftest$ac_exeext
 
19638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19639
  (eval $ac_link) 2>conftest.er1
 
19640
  ac_status=$?
 
19641
  grep -v '^ *+' conftest.er1 >conftest.err
 
19642
  rm -f conftest.er1
 
19643
  cat conftest.err >&5
 
19644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19645
  (exit $ac_status); } &&
 
19646
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19648
  (eval $ac_try) 2>&5
 
19649
  ac_status=$?
 
19650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19651
  (exit $ac_status); }; } &&
 
19652
         { ac_try='test -s conftest$ac_exeext'
 
19653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19654
  (eval $ac_try) 2>&5
 
19655
  ac_status=$?
 
19656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19657
  (exit $ac_status); }; }; then
 
19658
  am_cv_func_iconv=yes
 
19659
else
 
19660
  echo "$as_me: failed program was:" >&5
 
19661
sed 's/^/| /' conftest.$ac_ext >&5
 
19662
 
 
19663
fi
 
19664
rm -f conftest.err conftest.$ac_objext \
 
19665
      conftest$ac_exeext conftest.$ac_ext
 
19666
    if test "$am_cv_func_iconv" != yes; then
 
19667
      am_save_LIBS="$LIBS"
 
19668
      LIBS="$LIBS $LIBICONV"
 
19669
      cat >conftest.$ac_ext <<_ACEOF
 
19670
/* confdefs.h.  */
 
19671
_ACEOF
 
19672
cat confdefs.h >>conftest.$ac_ext
 
19673
cat >>conftest.$ac_ext <<_ACEOF
 
19674
/* end confdefs.h.  */
 
19675
#include <stdlib.h>
 
19676
#include <iconv.h>
 
19677
int
 
19678
main ()
 
19679
{
 
19680
iconv_t cd = iconv_open("","");
 
19681
         iconv(cd,NULL,NULL,NULL,NULL);
 
19682
         iconv_close(cd);
 
19683
  ;
 
19684
  return 0;
 
19685
}
 
19686
_ACEOF
 
19687
rm -f conftest.$ac_objext conftest$ac_exeext
 
19688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19689
  (eval $ac_link) 2>conftest.er1
 
19690
  ac_status=$?
 
19691
  grep -v '^ *+' conftest.er1 >conftest.err
 
19692
  rm -f conftest.er1
 
19693
  cat conftest.err >&5
 
19694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19695
  (exit $ac_status); } &&
 
19696
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19698
  (eval $ac_try) 2>&5
 
19699
  ac_status=$?
 
19700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19701
  (exit $ac_status); }; } &&
 
19702
         { ac_try='test -s conftest$ac_exeext'
 
19703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19704
  (eval $ac_try) 2>&5
 
19705
  ac_status=$?
 
19706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19707
  (exit $ac_status); }; }; then
 
19708
  am_cv_lib_iconv=yes
 
19709
        am_cv_func_iconv=yes
 
19710
else
 
19711
  echo "$as_me: failed program was:" >&5
 
19712
sed 's/^/| /' conftest.$ac_ext >&5
 
19713
 
 
19714
fi
 
19715
rm -f conftest.err conftest.$ac_objext \
 
19716
      conftest$ac_exeext conftest.$ac_ext
 
19717
      LIBS="$am_save_LIBS"
 
19718
    fi
 
19719
 
 
19720
fi
 
19721
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
19722
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
19723
  if test "$am_cv_func_iconv" = yes; then
 
19724
 
 
19725
cat >>confdefs.h <<\_ACEOF
 
19726
#define HAVE_ICONV 1
 
19727
_ACEOF
 
19728
 
 
19729
  fi
 
19730
  if test "$am_cv_lib_iconv" = yes; then
 
19731
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
19732
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
19733
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
19734
echo "${ECHO_T}$LIBICONV" >&6
 
19735
  else
 
19736
            CPPFLAGS="$am_save_CPPFLAGS"
 
19737
    LIBICONV=
 
19738
    LTLIBICONV=
 
19739
  fi
 
19740
 
 
19741
 
 
19742
 
 
19743
 
 
19744
 
 
19745
 
 
19746
    use_additional=yes
 
19747
 
 
19748
  acl_save_prefix="$prefix"
 
19749
  prefix="$acl_final_prefix"
 
19750
  acl_save_exec_prefix="$exec_prefix"
 
19751
  exec_prefix="$acl_final_exec_prefix"
 
19752
 
 
19753
    eval additional_includedir=\"$includedir\"
 
19754
    eval additional_libdir=\"$libdir\"
 
19755
 
 
19756
  exec_prefix="$acl_save_exec_prefix"
 
19757
  prefix="$acl_save_prefix"
 
19758
 
 
19759
 
 
19760
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
19761
if test "${with_libintl_prefix+set}" = set; then
 
19762
  withval="$with_libintl_prefix"
 
19763
 
 
19764
    if test "X$withval" = "Xno"; then
 
19765
      use_additional=no
 
19766
    else
 
19767
      if test "X$withval" = "X"; then
 
19768
 
 
19769
  acl_save_prefix="$prefix"
 
19770
  prefix="$acl_final_prefix"
 
19771
  acl_save_exec_prefix="$exec_prefix"
 
19772
  exec_prefix="$acl_final_exec_prefix"
 
19773
 
 
19774
          eval additional_includedir=\"$includedir\"
 
19775
          eval additional_libdir=\"$libdir\"
 
19776
 
 
19777
  exec_prefix="$acl_save_exec_prefix"
 
19778
  prefix="$acl_save_prefix"
 
19779
 
 
19780
      else
 
19781
        additional_includedir="$withval/include"
 
19782
        additional_libdir="$withval/lib"
 
19783
      fi
 
19784
    fi
 
19785
 
 
19786
fi;
 
19787
      LIBINTL=
 
19788
  LTLIBINTL=
 
19789
  INCINTL=
 
19790
  rpathdirs=
 
19791
  ltrpathdirs=
 
19792
  names_already_handled=
 
19793
  names_next_round='intl '
 
19794
  while test -n "$names_next_round"; do
 
19795
    names_this_round="$names_next_round"
 
19796
    names_next_round=
 
19797
    for name in $names_this_round; do
 
19798
      already_handled=
 
19799
      for n in $names_already_handled; do
 
19800
        if test "$n" = "$name"; then
 
19801
          already_handled=yes
 
19802
          break
 
19803
        fi
 
19804
      done
 
19805
      if test -z "$already_handled"; then
 
19806
        names_already_handled="$names_already_handled $name"
 
19807
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
19808
        eval value=\"\$HAVE_LIB$uppername\"
 
19809
        if test -n "$value"; then
 
19810
          if test "$value" = yes; then
 
19811
            eval value=\"\$LIB$uppername\"
 
19812
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
19813
            eval value=\"\$LTLIB$uppername\"
 
19814
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
19815
          else
 
19816
                                    :
 
19817
          fi
 
19818
        else
 
19819
                              found_dir=
 
19820
          found_la=
 
19821
          found_so=
 
19822
          found_a=
 
19823
          if test $use_additional = yes; then
 
19824
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
19825
              found_dir="$additional_libdir"
 
19826
              found_so="$additional_libdir/lib$name.$shlibext"
 
19827
              if test -f "$additional_libdir/lib$name.la"; then
 
19828
                found_la="$additional_libdir/lib$name.la"
 
19829
              fi
 
19830
            else
 
19831
              if test -f "$additional_libdir/lib$name.$libext"; then
 
19832
                found_dir="$additional_libdir"
 
19833
                found_a="$additional_libdir/lib$name.$libext"
 
19834
                if test -f "$additional_libdir/lib$name.la"; then
 
19835
                  found_la="$additional_libdir/lib$name.la"
 
19836
                fi
 
19837
              fi
 
19838
            fi
 
19839
          fi
 
19840
          if test "X$found_dir" = "X"; then
 
19841
            for x in $LDFLAGS $LTLIBINTL; do
 
19842
 
 
19843
  acl_save_prefix="$prefix"
 
19844
  prefix="$acl_final_prefix"
 
19845
  acl_save_exec_prefix="$exec_prefix"
 
19846
  exec_prefix="$acl_final_exec_prefix"
 
19847
  eval x=\"$x\"
 
19848
  exec_prefix="$acl_save_exec_prefix"
 
19849
  prefix="$acl_save_prefix"
 
19850
 
 
19851
              case "$x" in
 
19852
                -L*)
 
19853
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
19854
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
19855
                    found_dir="$dir"
 
19856
                    found_so="$dir/lib$name.$shlibext"
 
19857
                    if test -f "$dir/lib$name.la"; then
 
19858
                      found_la="$dir/lib$name.la"
 
19859
                    fi
 
19860
                  else
 
19861
                    if test -f "$dir/lib$name.$libext"; then
 
19862
                      found_dir="$dir"
 
19863
                      found_a="$dir/lib$name.$libext"
 
19864
                      if test -f "$dir/lib$name.la"; then
 
19865
                        found_la="$dir/lib$name.la"
 
19866
                      fi
 
19867
                    fi
 
19868
                  fi
 
19869
                  ;;
 
19870
              esac
 
19871
              if test "X$found_dir" != "X"; then
 
19872
                break
 
19873
              fi
 
19874
            done
 
19875
          fi
 
19876
          if test "X$found_dir" != "X"; then
 
19877
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
19878
            if test "X$found_so" != "X"; then
 
19879
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
19880
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
19881
              else
 
19882
                                                                                haveit=
 
19883
                for x in $ltrpathdirs; do
 
19884
                  if test "X$x" = "X$found_dir"; then
 
19885
                    haveit=yes
 
19886
                    break
 
19887
                  fi
 
19888
                done
 
19889
                if test -z "$haveit"; then
 
19890
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
19891
                fi
 
19892
                                if test "$hardcode_direct" = yes; then
 
19893
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
19894
                else
 
19895
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
19896
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
19897
                                                            haveit=
 
19898
                    for x in $rpathdirs; do
 
19899
                      if test "X$x" = "X$found_dir"; then
 
19900
                        haveit=yes
 
19901
                        break
 
19902
                      fi
 
19903
                    done
 
19904
                    if test -z "$haveit"; then
 
19905
                      rpathdirs="$rpathdirs $found_dir"
 
19906
                    fi
 
19907
                  else
 
19908
                                                                                haveit=
 
19909
                    for x in $LDFLAGS $LIBINTL; do
 
19910
 
 
19911
  acl_save_prefix="$prefix"
 
19912
  prefix="$acl_final_prefix"
 
19913
  acl_save_exec_prefix="$exec_prefix"
 
19914
  exec_prefix="$acl_final_exec_prefix"
 
19915
  eval x=\"$x\"
 
19916
  exec_prefix="$acl_save_exec_prefix"
 
19917
  prefix="$acl_save_prefix"
 
19918
 
 
19919
                      if test "X$x" = "X-L$found_dir"; then
 
19920
                        haveit=yes
 
19921
                        break
 
19922
                      fi
 
19923
                    done
 
19924
                    if test -z "$haveit"; then
 
19925
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
19926
                    fi
 
19927
                    if test "$hardcode_minus_L" != no; then
 
19928
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
19929
                    else
 
19930
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
19931
                    fi
 
19932
                  fi
 
19933
                fi
 
19934
              fi
 
19935
            else
 
19936
              if test "X$found_a" != "X"; then
 
19937
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
19938
              else
 
19939
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
19940
              fi
 
19941
            fi
 
19942
                        additional_includedir=
 
19943
            case "$found_dir" in
 
19944
              */lib | */lib/)
 
19945
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
19946
                additional_includedir="$basedir/include"
 
19947
                ;;
 
19948
            esac
 
19949
            if test "X$additional_includedir" != "X"; then
 
19950
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
19951
                haveit=
 
19952
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
19953
                  if test -n "$GCC"; then
 
19954
                    case $host_os in
 
19955
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
19956
                    esac
 
19957
                  fi
 
19958
                fi
 
19959
                if test -z "$haveit"; then
 
19960
                  for x in $CPPFLAGS $INCINTL; do
 
19961
 
 
19962
  acl_save_prefix="$prefix"
 
19963
  prefix="$acl_final_prefix"
 
19964
  acl_save_exec_prefix="$exec_prefix"
 
19965
  exec_prefix="$acl_final_exec_prefix"
 
19966
  eval x=\"$x\"
 
19967
  exec_prefix="$acl_save_exec_prefix"
 
19968
  prefix="$acl_save_prefix"
 
19969
 
 
19970
                    if test "X$x" = "X-I$additional_includedir"; then
 
19971
                      haveit=yes
 
19972
                      break
 
19973
                    fi
 
19974
                  done
 
19975
                  if test -z "$haveit"; then
 
19976
                    if test -d "$additional_includedir"; then
 
19977
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
19978
                    fi
 
19979
                  fi
 
19980
                fi
 
19981
              fi
 
19982
            fi
 
19983
                        if test -n "$found_la"; then
 
19984
                                                        save_libdir="$libdir"
 
19985
              case "$found_la" in
 
19986
                */* | *\\*) . "$found_la" ;;
 
19987
                *) . "./$found_la" ;;
 
19988
              esac
 
19989
              libdir="$save_libdir"
 
19990
                            for dep in $dependency_libs; do
 
19991
                case "$dep" in
 
19992
                  -L*)
 
19993
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
19994
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
19995
                      haveit=
 
19996
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
19997
                        if test -n "$GCC"; then
 
19998
                          case $host_os in
 
19999
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
20000
                          esac
 
20001
                        fi
 
20002
                      fi
 
20003
                      if test -z "$haveit"; then
 
20004
                        haveit=
 
20005
                        for x in $LDFLAGS $LIBINTL; do
 
20006
 
 
20007
  acl_save_prefix="$prefix"
 
20008
  prefix="$acl_final_prefix"
 
20009
  acl_save_exec_prefix="$exec_prefix"
 
20010
  exec_prefix="$acl_final_exec_prefix"
 
20011
  eval x=\"$x\"
 
20012
  exec_prefix="$acl_save_exec_prefix"
 
20013
  prefix="$acl_save_prefix"
 
20014
 
 
20015
                          if test "X$x" = "X-L$additional_libdir"; then
 
20016
                            haveit=yes
 
20017
                            break
 
20018
                          fi
 
20019
                        done
 
20020
                        if test -z "$haveit"; then
 
20021
                          if test -d "$additional_libdir"; then
 
20022
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
20023
                          fi
 
20024
                        fi
 
20025
                        haveit=
 
20026
                        for x in $LDFLAGS $LTLIBINTL; do
 
20027
 
 
20028
  acl_save_prefix="$prefix"
 
20029
  prefix="$acl_final_prefix"
 
20030
  acl_save_exec_prefix="$exec_prefix"
 
20031
  exec_prefix="$acl_final_exec_prefix"
 
20032
  eval x=\"$x\"
 
20033
  exec_prefix="$acl_save_exec_prefix"
 
20034
  prefix="$acl_save_prefix"
 
20035
 
 
20036
                          if test "X$x" = "X-L$additional_libdir"; then
 
20037
                            haveit=yes
 
20038
                            break
 
20039
                          fi
 
20040
                        done
 
20041
                        if test -z "$haveit"; then
 
20042
                          if test -d "$additional_libdir"; then
 
20043
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
20044
                          fi
 
20045
                        fi
 
20046
                      fi
 
20047
                    fi
 
20048
                    ;;
 
20049
                  -R*)
 
20050
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
20051
                    if test "$enable_rpath" != no; then
 
20052
                                                                  haveit=
 
20053
                      for x in $rpathdirs; do
 
20054
                        if test "X$x" = "X$dir"; then
 
20055
                          haveit=yes
 
20056
                          break
 
20057
                        fi
 
20058
                      done
 
20059
                      if test -z "$haveit"; then
 
20060
                        rpathdirs="$rpathdirs $dir"
 
20061
                      fi
 
20062
                                                                  haveit=
 
20063
                      for x in $ltrpathdirs; do
 
20064
                        if test "X$x" = "X$dir"; then
 
20065
                          haveit=yes
 
20066
                          break
 
20067
                        fi
 
20068
                      done
 
20069
                      if test -z "$haveit"; then
 
20070
                        ltrpathdirs="$ltrpathdirs $dir"
 
20071
                      fi
 
20072
                    fi
 
20073
                    ;;
 
20074
                  -l*)
 
20075
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
20076
                    ;;
 
20077
                  *.la)
 
20078
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
20079
                    ;;
 
20080
                  *)
 
20081
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
20082
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
20083
                    ;;
 
20084
                esac
 
20085
              done
 
20086
            fi
 
20087
          else
 
20088
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
20089
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
20090
          fi
 
20091
        fi
 
20092
      fi
 
20093
    done
 
20094
  done
 
20095
  if test "X$rpathdirs" != "X"; then
 
20096
    if test -n "$hardcode_libdir_separator"; then
 
20097
                        alldirs=
 
20098
      for found_dir in $rpathdirs; do
 
20099
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
20100
      done
 
20101
            acl_save_libdir="$libdir"
 
20102
      libdir="$alldirs"
 
20103
      eval flag=\"$hardcode_libdir_flag_spec\"
 
20104
      libdir="$acl_save_libdir"
 
20105
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
20106
    else
 
20107
            for found_dir in $rpathdirs; do
 
20108
        acl_save_libdir="$libdir"
 
20109
        libdir="$found_dir"
 
20110
        eval flag=\"$hardcode_libdir_flag_spec\"
 
20111
        libdir="$acl_save_libdir"
 
20112
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
20113
      done
 
20114
    fi
 
20115
  fi
 
20116
  if test "X$ltrpathdirs" != "X"; then
 
20117
            for found_dir in $ltrpathdirs; do
 
20118
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
20119
    done
 
20120
  fi
 
20121
 
 
20122
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
20123
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
20124
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
20125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20126
else
 
20127
  gt_save_CPPFLAGS="$CPPFLAGS"
 
20128
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
20129
            gt_save_LIBS="$LIBS"
 
20130
            LIBS="$LIBS $LIBINTL"
 
20131
                        cat >conftest.$ac_ext <<_ACEOF
 
20132
/* confdefs.h.  */
 
20133
_ACEOF
 
20134
cat confdefs.h >>conftest.$ac_ext
 
20135
cat >>conftest.$ac_ext <<_ACEOF
 
20136
/* end confdefs.h.  */
 
20137
#include <libintl.h>
 
20138
extern int _nl_msg_cat_cntr;
 
20139
extern
 
20140
#ifdef __cplusplus
 
20141
"C"
 
20142
#endif
 
20143
const char *_nl_expand_alias (const char *);
 
20144
int
 
20145
main ()
 
20146
{
 
20147
bindtextdomain ("", "");
 
20148
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
20149
  ;
 
20150
  return 0;
 
20151
}
 
20152
_ACEOF
 
20153
rm -f conftest.$ac_objext conftest$ac_exeext
 
20154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20155
  (eval $ac_link) 2>conftest.er1
 
20156
  ac_status=$?
 
20157
  grep -v '^ *+' conftest.er1 >conftest.err
 
20158
  rm -f conftest.er1
 
20159
  cat conftest.err >&5
 
20160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20161
  (exit $ac_status); } &&
 
20162
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20164
  (eval $ac_try) 2>&5
 
20165
  ac_status=$?
 
20166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20167
  (exit $ac_status); }; } &&
 
20168
         { ac_try='test -s conftest$ac_exeext'
 
20169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20170
  (eval $ac_try) 2>&5
 
20171
  ac_status=$?
 
20172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20173
  (exit $ac_status); }; }; then
 
20174
  gt_cv_func_gnugettext1_libintl=yes
 
20175
else
 
20176
  echo "$as_me: failed program was:" >&5
 
20177
sed 's/^/| /' conftest.$ac_ext >&5
 
20178
 
 
20179
gt_cv_func_gnugettext1_libintl=no
 
20180
fi
 
20181
rm -f conftest.err conftest.$ac_objext \
 
20182
      conftest$ac_exeext conftest.$ac_ext
 
20183
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
20184
              LIBS="$LIBS $LIBICONV"
 
20185
              cat >conftest.$ac_ext <<_ACEOF
 
20186
/* confdefs.h.  */
 
20187
_ACEOF
 
20188
cat confdefs.h >>conftest.$ac_ext
 
20189
cat >>conftest.$ac_ext <<_ACEOF
 
20190
/* end confdefs.h.  */
 
20191
#include <libintl.h>
 
20192
extern int _nl_msg_cat_cntr;
 
20193
extern
 
20194
#ifdef __cplusplus
 
20195
"C"
 
20196
#endif
 
20197
const char *_nl_expand_alias (const char *);
 
20198
int
 
20199
main ()
 
20200
{
 
20201
bindtextdomain ("", "");
 
20202
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
20203
  ;
 
20204
  return 0;
 
20205
}
 
20206
_ACEOF
 
20207
rm -f conftest.$ac_objext conftest$ac_exeext
 
20208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20209
  (eval $ac_link) 2>conftest.er1
 
20210
  ac_status=$?
 
20211
  grep -v '^ *+' conftest.er1 >conftest.err
 
20212
  rm -f conftest.er1
 
20213
  cat conftest.err >&5
 
20214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20215
  (exit $ac_status); } &&
 
20216
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20218
  (eval $ac_try) 2>&5
 
20219
  ac_status=$?
 
20220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20221
  (exit $ac_status); }; } &&
 
20222
         { ac_try='test -s conftest$ac_exeext'
 
20223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20224
  (eval $ac_try) 2>&5
 
20225
  ac_status=$?
 
20226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20227
  (exit $ac_status); }; }; then
 
20228
  LIBINTL="$LIBINTL $LIBICONV"
 
20229
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
20230
                gt_cv_func_gnugettext1_libintl=yes
 
20231
 
 
20232
else
 
20233
  echo "$as_me: failed program was:" >&5
 
20234
sed 's/^/| /' conftest.$ac_ext >&5
 
20235
 
 
20236
fi
 
20237
rm -f conftest.err conftest.$ac_objext \
 
20238
      conftest$ac_exeext conftest.$ac_ext
 
20239
            fi
 
20240
            CPPFLAGS="$gt_save_CPPFLAGS"
 
20241
            LIBS="$gt_save_LIBS"
 
20242
fi
 
20243
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
20244
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
20245
        fi
 
20246
 
 
20247
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
20248
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
20249
                && test "$PACKAGE" != gettext-runtime \
 
20250
                && test "$PACKAGE" != gettext-tools; }; then
 
20251
          gt_use_preinstalled_gnugettext=yes
 
20252
        else
 
20253
                    LIBINTL=
 
20254
          LTLIBINTL=
 
20255
          INCINTL=
 
20256
        fi
 
20257
 
 
20258
 
 
20259
 
 
20260
    if test -n "$INTL_MACOSX_LIBS"; then
 
20261
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
20262
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
20263
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
20264
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
20265
      fi
 
20266
    fi
 
20267
 
 
20268
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
20269
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
20270
 
 
20271
cat >>confdefs.h <<\_ACEOF
 
20272
#define ENABLE_NLS 1
 
20273
_ACEOF
 
20274
 
 
20275
    else
 
20276
      USE_NLS=no
 
20277
    fi
 
20278
  fi
 
20279
 
 
20280
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
20281
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
20282
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
20283
echo "${ECHO_T}$USE_NLS" >&6
 
20284
  if test "$USE_NLS" = "yes"; then
 
20285
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
20286
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
20287
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
20288
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
20289
        gt_source="external libintl"
 
20290
      else
 
20291
        gt_source="libc"
 
20292
      fi
 
20293
    else
 
20294
      gt_source="included intl directory"
 
20295
    fi
 
20296
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
20297
echo "${ECHO_T}$gt_source" >&6
 
20298
  fi
 
20299
 
 
20300
  if test "$USE_NLS" = "yes"; then
 
20301
 
 
20302
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
20303
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
20304
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
20305
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
20306
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
20307
echo "${ECHO_T}$LIBINTL" >&6
 
20308
 
 
20309
  for element in $INCINTL; do
 
20310
    haveit=
 
20311
    for x in $CPPFLAGS; do
 
20312
 
 
20313
  acl_save_prefix="$prefix"
 
20314
  prefix="$acl_final_prefix"
 
20315
  acl_save_exec_prefix="$exec_prefix"
 
20316
  exec_prefix="$acl_final_exec_prefix"
 
20317
  eval x=\"$x\"
 
20318
  exec_prefix="$acl_save_exec_prefix"
 
20319
  prefix="$acl_save_prefix"
 
20320
 
 
20321
      if test "X$x" = "X$element"; then
 
20322
        haveit=yes
 
20323
        break
 
20324
      fi
 
20325
    done
 
20326
    if test -z "$haveit"; then
 
20327
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
20328
    fi
 
20329
  done
 
20330
 
 
20331
      fi
 
20332
 
 
20333
 
 
20334
cat >>confdefs.h <<\_ACEOF
 
20335
#define HAVE_GETTEXT 1
 
20336
_ACEOF
 
20337
 
 
20338
 
 
20339
cat >>confdefs.h <<\_ACEOF
 
20340
#define HAVE_DCGETTEXT 1
 
20341
_ACEOF
 
20342
 
 
20343
    fi
 
20344
 
 
20345
        POSUB=po
 
20346
  fi
 
20347
 
 
20348
 
 
20349
 
 
20350
    INTLLIBS="$LIBINTL"
 
20351
 
 
20352
 
 
20353
 
 
20354
 
 
20355
 
 
20356
 
 
20357
 
 
20358
 
 
20359
 
18490
20360
case "$am__api_version" in
18491
20361
    1.01234)
18492
20362
        { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
21597
23467
#
21598
23468
 
21599
23469
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23470
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
23471
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
23472
    # from automake.
 
23473
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
23474
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
23475
    LINGUAS="${LINGUAS-%UNSET%}"
 
23476
 
21600
23477
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
21601
23478
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
21602
23479
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
21619
23496
  "src/cut-and-paste/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/Makefile" ;;
21620
23497
  "src/cut-and-paste/e-map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/e-map/Makefile" ;;
21621
23498
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23499
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21622
23500
  "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
21623
23501
  "po/stamp-it" ) CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
21624
23502
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21773
23651
s,@FFLAGS@,$FFLAGS,;t t
21774
23652
s,@ac_ct_F77@,$ac_ct_F77,;t t
21775
23653
s,@LIBTOOL@,$LIBTOOL,;t t
 
23654
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
23655
s,@USE_NLS@,$USE_NLS,;t t
 
23656
s,@MSGFMT@,$MSGFMT,;t t
 
23657
s,@GMSGFMT@,$GMSGFMT,;t t
 
23658
s,@XGETTEXT@,$XGETTEXT,;t t
 
23659
s,@MSGMERGE@,$MSGMERGE,;t t
 
23660
s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
 
23661
s,@LIBICONV@,$LIBICONV,;t t
 
23662
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
23663
s,@INTLLIBS@,$INTLLIBS,;t t
 
23664
s,@LIBINTL@,$LIBINTL,;t t
 
23665
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
23666
s,@POSUB@,$POSUB,;t t
21776
23667
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
21777
23668
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
21778
23669
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
22513
24404
  done
22514
24405
done
22515
24406
 ;;
 
24407
    default-1 )
 
24408
    for ac_file in $CONFIG_FILES; do
 
24409
      # Support "outfile[:infile[:infile...]]"
 
24410
      case "$ac_file" in
 
24411
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
24412
      esac
 
24413
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
24414
      case "$ac_file" in */Makefile.in)
 
24415
        # Adjust a relative srcdir.
 
24416
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
24417
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
24418
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
24419
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
24420
        # In autoconf-2.50 it is called $srcdir.
 
24421
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
24422
        case "$ac_given_srcdir" in
 
24423
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
24424
          /*) top_srcdir="$ac_given_srcdir" ;;
 
24425
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
24426
        esac
 
24427
        # Treat a directory as a PO directory if and only if it has a
 
24428
        # POTFILES.in file. This allows packages to have multiple PO
 
24429
        # directories under different names or in different locations.
 
24430
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
24431
          rm -f "$ac_dir/POTFILES"
 
24432
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
24433
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
24434
          POMAKEFILEDEPS="POTFILES.in"
 
24435
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
24436
          # on $ac_dir but don't depend on user-specified configuration
 
24437
          # parameters.
 
24438
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
24439
            # The LINGUAS file contains the set of available languages.
 
24440
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
24441
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
24442
            fi
 
24443
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
24444
            # Hide the ALL_LINGUAS assigment from automake.
 
24445
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
24446
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
24447
          else
 
24448
            # The set of available languages was given in configure.in.
 
24449
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
24450
          fi
 
24451
          # Compute POFILES
 
24452
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
24453
          # Compute UPDATEPOFILES
 
24454
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
24455
          # Compute DUMMYPOFILES
 
24456
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
24457
          # Compute GMOFILES
 
24458
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
24459
          case "$ac_given_srcdir" in
 
24460
            .) srcdirpre= ;;
 
24461
            *) srcdirpre='$(srcdir)/' ;;
 
24462
          esac
 
24463
          POFILES=
 
24464
          UPDATEPOFILES=
 
24465
          DUMMYPOFILES=
 
24466
          GMOFILES=
 
24467
          for lang in $ALL_LINGUAS; do
 
24468
            POFILES="$POFILES $srcdirpre$lang.po"
 
24469
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
24470
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
24471
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
24472
          done
 
24473
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
24474
          # environment variable.
 
24475
          INST_LINGUAS=
 
24476
          if test -n "$ALL_LINGUAS"; then
 
24477
            for presentlang in $ALL_LINGUAS; do
 
24478
              useit=no
 
24479
              if test "%UNSET%" != "$LINGUAS"; then
 
24480
                desiredlanguages="$LINGUAS"
 
24481
              else
 
24482
                desiredlanguages="$ALL_LINGUAS"
 
24483
              fi
 
24484
              for desiredlang in $desiredlanguages; do
 
24485
                # Use the presentlang catalog if desiredlang is
 
24486
                #   a. equal to presentlang, or
 
24487
                #   b. a variant of presentlang (because in this case,
 
24488
                #      presentlang can be used as a fallback for messages
 
24489
                #      which are not translated in the desiredlang catalog).
 
24490
                case "$desiredlang" in
 
24491
                  "$presentlang"*) useit=yes;;
 
24492
                esac
 
24493
              done
 
24494
              if test $useit = yes; then
 
24495
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
24496
              fi
 
24497
            done
 
24498
          fi
 
24499
          CATALOGS=
 
24500
          if test -n "$INST_LINGUAS"; then
 
24501
            for lang in $INST_LINGUAS; do
 
24502
              CATALOGS="$CATALOGS $lang.gmo"
 
24503
            done
 
24504
          fi
 
24505
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
24506
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
24507
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
24508
            if test -f "$f"; then
 
24509
              case "$f" in
 
24510
                *.orig | *.bak | *~) ;;
 
24511
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
24512
              esac
 
24513
            fi
 
24514
          done
 
24515
        fi
 
24516
        ;;
 
24517
      esac
 
24518
    done ;;
22516
24519
    intltool )
22517
24520
 
22518
24521
for file in intltool-extract intltool-merge intltool-update; do