Revision 8d7dcace configure

View differences:

configure
874 874
GLIB_GENMARSHAL
875 875
GOBJECT_QUERY
876 876
GLIB_MKENUMS
877
LIBICONV
878
LTLIBICONV
877 879
LIBOBJS
878 880
LTLIBOBJS'
879 881
ac_subst_files=''
......
1478 1480
                          optimize for fast installation [default=yes]
1479 1481
  --disable-libtool-lock  avoid locking (might break parallel builds)
1480 1482
  --disable-glibtest      do not try to compile and run a test GLIB program
1483
  --disable-rpath         do not hardcode runtime library paths
1481 1484

  
1482 1485
Optional Packages:
1483 1486
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
......
1486 1489
  --with-pic              try to use only PIC/non-PIC objects [default=use
1487 1490
                          both]
1488 1491
  --with-tags[=TAGS]      include additional configurations [automatic]
1492
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1493
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1494
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1489 1495

  
1490 1496
Some influential environment variables:
1491 1497
  CC          C compiler command
......
4331 4337
  ;;
4332 4338
*-*-irix6*)
4333 4339
  # Find out which ABI we are using.
4334
  echo '#line 4334 "configure"' > conftest.$ac_ext
4340
  echo '#line 4340 "configure"' > conftest.$ac_ext
4335 4341
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336 4342
  (eval $ac_compile) 2>&5
4337 4343
  ac_status=$?
......
7377 7383
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7378 7384
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7379 7385
   -e 's:$: $lt_compiler_flag:'`
7380
   (eval echo "\"\$as_me:7380: $lt_compile\"" >&5)
7386
   (eval echo "\"\$as_me:7386: $lt_compile\"" >&5)
7381 7387
   (eval "$lt_compile" 2>conftest.err)
7382 7388
   ac_status=$?
7383 7389
   cat conftest.err >&5
7384
   echo "$as_me:7384: \$? = $ac_status" >&5
7390
   echo "$as_me:7390: \$? = $ac_status" >&5
7385 7391
   if (exit $ac_status) && test -s "$ac_outfile"; then
7386 7392
     # The compiler can only warn and ignore the option if not recognized
7387 7393
     # So say no if there are warnings other than the usual output.
......
7667 7673
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668 7674
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669 7675
   -e 's:$: $lt_compiler_flag:'`
7670
   (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7676
   (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7671 7677
   (eval "$lt_compile" 2>conftest.err)
7672 7678
   ac_status=$?
7673 7679
   cat conftest.err >&5
7674
   echo "$as_me:7674: \$? = $ac_status" >&5
7680
   echo "$as_me:7680: \$? = $ac_status" >&5
7675 7681
   if (exit $ac_status) && test -s "$ac_outfile"; then
7676 7682
     # The compiler can only warn and ignore the option if not recognized
7677 7683
     # So say no if there are warnings other than the usual output.
......
7771 7777
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7772 7778
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7773 7779
   -e 's:$: $lt_compiler_flag:'`
7774
   (eval echo "\"\$as_me:7774: $lt_compile\"" >&5)
7780
   (eval echo "\"\$as_me:7780: $lt_compile\"" >&5)
7775 7781
   (eval "$lt_compile" 2>out/conftest.err)
7776 7782
   ac_status=$?
7777 7783
   cat out/conftest.err >&5
7778
   echo "$as_me:7778: \$? = $ac_status" >&5
7784
   echo "$as_me:7784: \$? = $ac_status" >&5
7779 7785
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7780 7786
   then
7781 7787
     # The compiler can only warn and ignore the option if not recognized
......
10148 10154
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10149 10155
  lt_status=$lt_dlunknown
10150 10156
  cat > conftest.$ac_ext <<EOF
10151
#line 10151 "configure"
10157
#line 10157 "configure"
10152 10158
#include "confdefs.h"
10153 10159

  
10154 10160
#if HAVE_DLFCN_H
......
10248 10254
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10249 10255
  lt_status=$lt_dlunknown
10250 10256
  cat > conftest.$ac_ext <<EOF
10251
#line 10251 "configure"
10257
#line 10257 "configure"
10252 10258
#include "confdefs.h"
10253 10259

  
10254 10260
#if HAVE_DLFCN_H
......
12649 12655
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650 12656
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651 12657
   -e 's:$: $lt_compiler_flag:'`
12652
   (eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12658
   (eval echo "\"\$as_me:12658: $lt_compile\"" >&5)
12653 12659
   (eval "$lt_compile" 2>conftest.err)
12654 12660
   ac_status=$?
12655 12661
   cat conftest.err >&5
12656
   echo "$as_me:12656: \$? = $ac_status" >&5
12662
   echo "$as_me:12662: \$? = $ac_status" >&5
12657 12663
   if (exit $ac_status) && test -s "$ac_outfile"; then
12658 12664
     # The compiler can only warn and ignore the option if not recognized
12659 12665
     # So say no if there are warnings other than the usual output.
......
12753 12759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12754 12760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12755 12761
   -e 's:$: $lt_compiler_flag:'`
12756
   (eval echo "\"\$as_me:12756: $lt_compile\"" >&5)
12762
   (eval echo "\"\$as_me:12762: $lt_compile\"" >&5)
12757 12763
   (eval "$lt_compile" 2>out/conftest.err)
12758 12764
   ac_status=$?
12759 12765
   cat out/conftest.err >&5
12760
   echo "$as_me:12760: \$? = $ac_status" >&5
12766
   echo "$as_me:12766: \$? = $ac_status" >&5
12761 12767
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12762 12768
   then
12763 12769
     # The compiler can only warn and ignore the option if not recognized
......
14351 14357
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14352 14358
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14353 14359
   -e 's:$: $lt_compiler_flag:'`
14354
   (eval echo "\"\$as_me:14354: $lt_compile\"" >&5)
14360
   (eval echo "\"\$as_me:14360: $lt_compile\"" >&5)
14355 14361
   (eval "$lt_compile" 2>conftest.err)
14356 14362
   ac_status=$?
14357 14363
   cat conftest.err >&5
14358
   echo "$as_me:14358: \$? = $ac_status" >&5
14364
   echo "$as_me:14364: \$? = $ac_status" >&5
14359 14365
   if (exit $ac_status) && test -s "$ac_outfile"; then
14360 14366
     # The compiler can only warn and ignore the option if not recognized
14361 14367
     # So say no if there are warnings other than the usual output.
......
14455 14461
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14456 14462
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14457 14463
   -e 's:$: $lt_compiler_flag:'`
14458
   (eval echo "\"\$as_me:14458: $lt_compile\"" >&5)
14464
   (eval echo "\"\$as_me:14464: $lt_compile\"" >&5)
14459 14465
   (eval "$lt_compile" 2>out/conftest.err)
14460 14466
   ac_status=$?
14461 14467
   cat out/conftest.err >&5
14462
   echo "$as_me:14462: \$? = $ac_status" >&5
14468
   echo "$as_me:14468: \$? = $ac_status" >&5
14463 14469
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14464 14470
   then
14465 14471
     # The compiler can only warn and ignore the option if not recognized
......
16675 16681
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16676 16682
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16677 16683
   -e 's:$: $lt_compiler_flag:'`
16678
   (eval echo "\"\$as_me:16678: $lt_compile\"" >&5)
16684
   (eval echo "\"\$as_me:16684: $lt_compile\"" >&5)
16679 16685
   (eval "$lt_compile" 2>conftest.err)
16680 16686
   ac_status=$?
16681 16687
   cat conftest.err >&5
16682
   echo "$as_me:16682: \$? = $ac_status" >&5
16688
   echo "$as_me:16688: \$? = $ac_status" >&5
16683 16689
   if (exit $ac_status) && test -s "$ac_outfile"; then
16684 16690
     # The compiler can only warn and ignore the option if not recognized
16685 16691
     # So say no if there are warnings other than the usual output.
......
16965 16971
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16966 16972
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16967 16973
   -e 's:$: $lt_compiler_flag:'`
16968
   (eval echo "\"\$as_me:16968: $lt_compile\"" >&5)
16974
   (eval echo "\"\$as_me:16974: $lt_compile\"" >&5)
16969 16975
   (eval "$lt_compile" 2>conftest.err)
16970 16976
   ac_status=$?
16971 16977
   cat conftest.err >&5
16972
   echo "$as_me:16972: \$? = $ac_status" >&5
16978
   echo "$as_me:16978: \$? = $ac_status" >&5
16973 16979
   if (exit $ac_status) && test -s "$ac_outfile"; then
16974 16980
     # The compiler can only warn and ignore the option if not recognized
16975 16981
     # So say no if there are warnings other than the usual output.
......
17069 17075
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17070 17076
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17071 17077
   -e 's:$: $lt_compiler_flag:'`
17072
   (eval echo "\"\$as_me:17072: $lt_compile\"" >&5)
17078
   (eval echo "\"\$as_me:17078: $lt_compile\"" >&5)
17073 17079
   (eval "$lt_compile" 2>out/conftest.err)
17074 17080
   ac_status=$?
17075 17081
   cat out/conftest.err >&5
17076
   echo "$as_me:17076: \$? = $ac_status" >&5
17082
   echo "$as_me:17082: \$? = $ac_status" >&5
17077 17083
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17078 17084
   then
17079 17085
     # The compiler can only warn and ignore the option if not recognized
......
20173 20179

  
20174 20180

  
20175 20181

  
20182
# Checks for iconv
20183

  
20184
      if test "X$prefix" = "XNONE"; then
20185
    acl_final_prefix="$ac_default_prefix"
20186
  else
20187
    acl_final_prefix="$prefix"
20188
  fi
20189
  if test "X$exec_prefix" = "XNONE"; then
20190
    acl_final_exec_prefix='${prefix}'
20191
  else
20192
    acl_final_exec_prefix="$exec_prefix"
20193
  fi
20194
  acl_save_prefix="$prefix"
20195
  prefix="$acl_final_prefix"
20196
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20197
  prefix="$acl_save_prefix"
20198

  
20199

  
20200
# Check whether --with-gnu-ld was given.
20201
if test "${with_gnu_ld+set}" = set; then
20202
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20203
else
20204
  with_gnu_ld=no
20205
fi
20206

  
20207
# Prepare PATH_SEPARATOR.
20208
# The user is always right.
20209
if test "${PATH_SEPARATOR+set}" != set; then
20210
  echo "#! /bin/sh" >conf$$.sh
20211
  echo  "exit 0"   >>conf$$.sh
20212
  chmod +x conf$$.sh
20213
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20214
    PATH_SEPARATOR=';'
20215
  else
20216
    PATH_SEPARATOR=:
20217
  fi
20218
  rm -f conf$$.sh
20219
fi
20220
ac_prog=ld
20221
if test "$GCC" = yes; then
20222
  # Check if gcc -print-prog-name=ld gives a path.
20223
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20224
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
20225
  case $host in
20226
  *-*-mingw*)
20227
    # gcc leaves a trailing carriage return which upsets mingw
20228
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20229
  *)
20230
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20231
  esac
20232
  case $ac_prog in
20233
    # Accept absolute paths.
20234
    [\\/]* | [A-Za-z]:[\\/]*)
20235
      re_direlt='/[^/][^/]*/\.\./'
20236
      # Canonicalize the path of ld
20237
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20238
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20239
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20240
      done
20241
      test -z "$LD" && LD="$ac_prog"
20242
      ;;
20243
  "")
20244
    # If it fails, then pretend we aren't using GCC.
20245
    ac_prog=ld
20246
    ;;
20247
  *)
20248
    # If it is relative, then search for the first ld in PATH.
20249
    with_gnu_ld=unknown
20250
    ;;
20251
  esac
20252
elif test "$with_gnu_ld" = yes; then
20253
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
20254
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
20255
else
20256
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20257
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
20258
fi
20259
if test "${acl_cv_path_LD+set}" = set; then
20260
  echo $ECHO_N "(cached) $ECHO_C" >&6
20261
else
20262
  if test -z "$LD"; then
20263
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20264
  for ac_dir in $PATH; do
20265
    test -z "$ac_dir" && ac_dir=.
20266
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20267
      acl_cv_path_LD="$ac_dir/$ac_prog"
20268
      # Check to see if the program is GNU ld.  I'd rather use --version,
20269
      # but apparently some GNU ld's only accept -v.
20270
      # Break only if it was the GNU/non-GNU ld that we prefer.
20271
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20272
      *GNU* | *'with BFD'*)
20273
	test "$with_gnu_ld" != no && break ;;
20274
      *)
20275
	test "$with_gnu_ld" != yes && break ;;
20276
      esac
20277
    fi
20278
  done
20279
  IFS="$ac_save_ifs"
20280
else
20281
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
20282
fi
20283
fi
20284

  
20285
LD="$acl_cv_path_LD"
20286
if test -n "$LD"; then
20287
  { echo "$as_me:$LINENO: result: $LD" >&5
20288
echo "${ECHO_T}$LD" >&6; }
20289
else
20290
  { echo "$as_me:$LINENO: result: no" >&5
20291
echo "${ECHO_T}no" >&6; }
20292
fi
20293
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20294
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20295
   { (exit 1); exit 1; }; }
20296
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20297
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
20298
if test "${acl_cv_prog_gnu_ld+set}" = set; then
20299
  echo $ECHO_N "(cached) $ECHO_C" >&6
20300
else
20301
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20302
case `$LD -v 2>&1 </dev/null` in
20303
*GNU* | *'with BFD'*)
20304
  acl_cv_prog_gnu_ld=yes ;;
20305
*)
20306
  acl_cv_prog_gnu_ld=no ;;
20307
esac
20308
fi
20309
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20310
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
20311
with_gnu_ld=$acl_cv_prog_gnu_ld
20312

  
20313

  
20314

  
20315

  
20316
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20317
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
20318
if test "${acl_cv_rpath+set}" = set; then
20319
  echo $ECHO_N "(cached) $ECHO_C" >&6
20320
else
20321

  
20322
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20323
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20324
    . ./conftest.sh
20325
    rm -f ./conftest.sh
20326
    acl_cv_rpath=done
20327

  
20328
fi
20329
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20330
echo "${ECHO_T}$acl_cv_rpath" >&6; }
20331
  wl="$acl_cv_wl"
20332
  acl_libext="$acl_cv_libext"
20333
  acl_shlibext="$acl_cv_shlibext"
20334
  acl_libname_spec="$acl_cv_libname_spec"
20335
  acl_library_names_spec="$acl_cv_library_names_spec"
20336
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20337
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20338
  acl_hardcode_direct="$acl_cv_hardcode_direct"
20339
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20340
    # Check whether --enable-rpath was given.
20341
if test "${enable_rpath+set}" = set; then
20342
  enableval=$enable_rpath; :
20343
else
20344
  enable_rpath=yes
20345
fi
20346

  
20347

  
20348

  
20349
                  acl_libdirstem=lib
20350
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20351
  if test -n "$searchpath"; then
20352
    acl_save_IFS="${IFS= 	}"; IFS=":"
20353
    for searchdir in $searchpath; do
20354
      if test -d "$searchdir"; then
20355
        case "$searchdir" in
20356
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20357
          *) searchdir=`cd "$searchdir" && pwd`
20358
             case "$searchdir" in
20359
               */lib64 ) acl_libdirstem=lib64 ;;
20360
             esac ;;
20361
        esac
20362
      fi
20363
    done
20364
    IFS="$acl_save_IFS"
20365
  fi
20366

  
20367

  
20368

  
20369

  
20370

  
20371

  
20372

  
20373

  
20374

  
20375
    use_additional=yes
20376

  
20377
  acl_save_prefix="$prefix"
20378
  prefix="$acl_final_prefix"
20379
  acl_save_exec_prefix="$exec_prefix"
20380
  exec_prefix="$acl_final_exec_prefix"
20381

  
20382
    eval additional_includedir=\"$includedir\"
20383
    eval additional_libdir=\"$libdir\"
20384

  
20385
  exec_prefix="$acl_save_exec_prefix"
20386
  prefix="$acl_save_prefix"
20387

  
20388

  
20389
# Check whether --with-libiconv-prefix was given.
20390
if test "${with_libiconv_prefix+set}" = set; then
20391
  withval=$with_libiconv_prefix;
20392
    if test "X$withval" = "Xno"; then
20393
      use_additional=no
20394
    else
20395
      if test "X$withval" = "X"; then
20396

  
20397
  acl_save_prefix="$prefix"
20398
  prefix="$acl_final_prefix"
20399
  acl_save_exec_prefix="$exec_prefix"
20400
  exec_prefix="$acl_final_exec_prefix"
20401

  
20402
          eval additional_includedir=\"$includedir\"
20403
          eval additional_libdir=\"$libdir\"
20404

  
20405
  exec_prefix="$acl_save_exec_prefix"
20406
  prefix="$acl_save_prefix"
20407

  
20408
      else
20409
        additional_includedir="$withval/include"
20410
        additional_libdir="$withval/$acl_libdirstem"
20411
      fi
20412
    fi
20413

  
20414
fi
20415

  
20416
      LIBICONV=
20417
  LTLIBICONV=
20418
  INCICONV=
20419
  LIBICONV_PREFIX=
20420
  rpathdirs=
20421
  ltrpathdirs=
20422
  names_already_handled=
20423
  names_next_round='iconv '
20424
  while test -n "$names_next_round"; do
20425
    names_this_round="$names_next_round"
20426
    names_next_round=
20427
    for name in $names_this_round; do
20428
      already_handled=
20429
      for n in $names_already_handled; do
20430
        if test "$n" = "$name"; then
20431
          already_handled=yes
20432
          break
20433
        fi
20434
      done
20435
      if test -z "$already_handled"; then
20436
        names_already_handled="$names_already_handled $name"
20437
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20438
        eval value=\"\$HAVE_LIB$uppername\"
20439
        if test -n "$value"; then
20440
          if test "$value" = yes; then
20441
            eval value=\"\$LIB$uppername\"
20442
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20443
            eval value=\"\$LTLIB$uppername\"
20444
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20445
          else
20446
                                    :
20447
          fi
20448
        else
20449
                              found_dir=
20450
          found_la=
20451
          found_so=
20452
          found_a=
20453
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
20454
          if test -n "$acl_shlibext"; then
20455
            shrext=".$acl_shlibext"             # typically: shrext=.so
20456
          else
20457
            shrext=
20458
          fi
20459
          if test $use_additional = yes; then
20460
            dir="$additional_libdir"
20461
                                    if test -n "$acl_shlibext"; then
20462
              if test -f "$dir/$libname$shrext"; then
20463
                found_dir="$dir"
20464
                found_so="$dir/$libname$shrext"
20465
              else
20466
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20467
                  ver=`(cd "$dir" && \
20468
                        for f in "$libname$shrext".*; do echo "$f"; done \
20469
                        | sed -e "s,^$libname$shrext\\\\.,," \
20470
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20471
                        | sed 1q ) 2>/dev/null`
20472
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20473
                    found_dir="$dir"
20474
                    found_so="$dir/$libname$shrext.$ver"
20475
                  fi
20476
                else
20477
                  eval library_names=\"$acl_library_names_spec\"
20478
                  for f in $library_names; do
20479
                    if test -f "$dir/$f"; then
20480
                      found_dir="$dir"
20481
                      found_so="$dir/$f"
20482
                      break
20483
                    fi
20484
                  done
20485
                fi
20486
              fi
20487
            fi
20488
                        if test "X$found_dir" = "X"; then
20489
              if test -f "$dir/$libname.$acl_libext"; then
20490
                found_dir="$dir"
20491
                found_a="$dir/$libname.$acl_libext"
20492
              fi
20493
            fi
20494
            if test "X$found_dir" != "X"; then
20495
              if test -f "$dir/$libname.la"; then
20496
                found_la="$dir/$libname.la"
20497
              fi
20498
            fi
20499
          fi
20500
          if test "X$found_dir" = "X"; then
20501
            for x in $LDFLAGS $LTLIBICONV; do
20502

  
20503
  acl_save_prefix="$prefix"
20504
  prefix="$acl_final_prefix"
20505
  acl_save_exec_prefix="$exec_prefix"
20506
  exec_prefix="$acl_final_exec_prefix"
20507
  eval x=\"$x\"
20508
  exec_prefix="$acl_save_exec_prefix"
20509
  prefix="$acl_save_prefix"
20510

  
20511
              case "$x" in
20512
                -L*)
20513
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
20514
                                    if test -n "$acl_shlibext"; then
20515
                    if test -f "$dir/$libname$shrext"; then
20516
                      found_dir="$dir"
20517
                      found_so="$dir/$libname$shrext"
20518
                    else
20519
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20520
                        ver=`(cd "$dir" && \
20521
                              for f in "$libname$shrext".*; do echo "$f"; done \
20522
                              | sed -e "s,^$libname$shrext\\\\.,," \
20523
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20524
                              | sed 1q ) 2>/dev/null`
20525
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20526
                          found_dir="$dir"
20527
                          found_so="$dir/$libname$shrext.$ver"
20528
                        fi
20529
                      else
20530
                        eval library_names=\"$acl_library_names_spec\"
20531
                        for f in $library_names; do
20532
                          if test -f "$dir/$f"; then
20533
                            found_dir="$dir"
20534
                            found_so="$dir/$f"
20535
                            break
20536
                          fi
20537
                        done
20538
                      fi
20539
                    fi
20540
                  fi
20541
                                    if test "X$found_dir" = "X"; then
20542
                    if test -f "$dir/$libname.$acl_libext"; then
20543
                      found_dir="$dir"
20544
                      found_a="$dir/$libname.$acl_libext"
20545
                    fi
20546
                  fi
20547
                  if test "X$found_dir" != "X"; then
20548
                    if test -f "$dir/$libname.la"; then
20549
                      found_la="$dir/$libname.la"
20550
                    fi
20551
                  fi
20552
                  ;;
20553
              esac
20554
              if test "X$found_dir" != "X"; then
20555
                break
20556
              fi
20557
            done
20558
          fi
20559
          if test "X$found_dir" != "X"; then
20560
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20561
            if test "X$found_so" != "X"; then
20562
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20563
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20564
              else
20565
                                                                                haveit=
20566
                for x in $ltrpathdirs; do
20567
                  if test "X$x" = "X$found_dir"; then
20568
                    haveit=yes
20569
                    break
20570
                  fi
20571
                done
20572
                if test -z "$haveit"; then
20573
                  ltrpathdirs="$ltrpathdirs $found_dir"
20574
                fi
20575
                                if test "$acl_hardcode_direct" = yes; then
20576
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20577
                else
20578
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20579
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20580
                                                            haveit=
20581
                    for x in $rpathdirs; do
20582
                      if test "X$x" = "X$found_dir"; then
20583
                        haveit=yes
20584
                        break
20585
                      fi
20586
                    done
20587
                    if test -z "$haveit"; then
20588
                      rpathdirs="$rpathdirs $found_dir"
20589
                    fi
20590
                  else
20591
                                                                                haveit=
20592
                    for x in $LDFLAGS $LIBICONV; do
20593

  
20594
  acl_save_prefix="$prefix"
20595
  prefix="$acl_final_prefix"
20596
  acl_save_exec_prefix="$exec_prefix"
20597
  exec_prefix="$acl_final_exec_prefix"
20598
  eval x=\"$x\"
20599
  exec_prefix="$acl_save_exec_prefix"
20600
  prefix="$acl_save_prefix"
20601

  
20602
                      if test "X$x" = "X-L$found_dir"; then
20603
                        haveit=yes
20604
                        break
20605
                      fi
20606
                    done
20607
                    if test -z "$haveit"; then
20608
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20609
                    fi
20610
                    if test "$acl_hardcode_minus_L" != no; then
20611
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20612
                    else
20613
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20614
                    fi
20615
                  fi
20616
                fi
20617
              fi
20618
            else
20619
              if test "X$found_a" != "X"; then
20620
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20621
              else
20622
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20623
              fi
20624
            fi
20625
                        additional_includedir=
20626
            case "$found_dir" in
20627
              */$acl_libdirstem | */$acl_libdirstem/)
20628
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20629
                LIBICONV_PREFIX="$basedir"
20630
                additional_includedir="$basedir/include"
20631
                ;;
20632
            esac
20633
            if test "X$additional_includedir" != "X"; then
20634
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
20635
                haveit=
20636
                if test "X$additional_includedir" = "X/usr/local/include"; then
20637
                  if test -n "$GCC"; then
20638
                    case $host_os in
20639
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20640
                    esac
20641
                  fi
20642
                fi
20643
                if test -z "$haveit"; then
20644
                  for x in $CPPFLAGS $INCICONV; do
20645

  
20646
  acl_save_prefix="$prefix"
20647
  prefix="$acl_final_prefix"
20648
  acl_save_exec_prefix="$exec_prefix"
20649
  exec_prefix="$acl_final_exec_prefix"
20650
  eval x=\"$x\"
20651
  exec_prefix="$acl_save_exec_prefix"
20652
  prefix="$acl_save_prefix"
20653

  
20654
                    if test "X$x" = "X-I$additional_includedir"; then
20655
                      haveit=yes
20656
                      break
20657
                    fi
20658
                  done
20659
                  if test -z "$haveit"; then
20660
                    if test -d "$additional_includedir"; then
20661
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20662
                    fi
20663
                  fi
20664
                fi
20665
              fi
20666
            fi
20667
                        if test -n "$found_la"; then
20668
                                                        save_libdir="$libdir"
20669
              case "$found_la" in
20670
                */* | *\\*) . "$found_la" ;;
20671
                *) . "./$found_la" ;;
20672
              esac
20673
              libdir="$save_libdir"
20674
                            for dep in $dependency_libs; do
20675
                case "$dep" in
20676
                  -L*)
20677
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20678
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20679
                      haveit=
20680
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20681
                        if test -n "$GCC"; then
20682
                          case $host_os in
20683
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20684
                          esac
20685
                        fi
20686
                      fi
20687
                      if test -z "$haveit"; then
20688
                        haveit=
20689
                        for x in $LDFLAGS $LIBICONV; do
20690

  
20691
  acl_save_prefix="$prefix"
20692
  prefix="$acl_final_prefix"
20693
  acl_save_exec_prefix="$exec_prefix"
20694
  exec_prefix="$acl_final_exec_prefix"
20695
  eval x=\"$x\"
20696
  exec_prefix="$acl_save_exec_prefix"
20697
  prefix="$acl_save_prefix"
20698

  
20699
                          if test "X$x" = "X-L$additional_libdir"; then
20700
                            haveit=yes
20701
                            break
20702
                          fi
20703
                        done
20704
                        if test -z "$haveit"; then
20705
                          if test -d "$additional_libdir"; then
20706
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20707
                          fi
20708
                        fi
20709
                        haveit=
20710
                        for x in $LDFLAGS $LTLIBICONV; do
20711

  
20712
  acl_save_prefix="$prefix"
20713
  prefix="$acl_final_prefix"
20714
  acl_save_exec_prefix="$exec_prefix"
20715
  exec_prefix="$acl_final_exec_prefix"
20716
  eval x=\"$x\"
20717
  exec_prefix="$acl_save_exec_prefix"
20718
  prefix="$acl_save_prefix"
20719

  
20720
                          if test "X$x" = "X-L$additional_libdir"; then
20721
                            haveit=yes
20722
                            break
20723
                          fi
20724
                        done
20725
                        if test -z "$haveit"; then
20726
                          if test -d "$additional_libdir"; then
20727
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20728
                          fi
20729
                        fi
20730
                      fi
20731
                    fi
20732
                    ;;
20733
                  -R*)
20734
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
20735
                    if test "$enable_rpath" != no; then
20736
                                                                  haveit=
20737
                      for x in $rpathdirs; do
20738
                        if test "X$x" = "X$dir"; then
20739
                          haveit=yes
20740
                          break
20741
                        fi
20742
                      done
20743
                      if test -z "$haveit"; then
20744
                        rpathdirs="$rpathdirs $dir"
20745
                      fi
20746
                                                                  haveit=
20747
                      for x in $ltrpathdirs; do
20748
                        if test "X$x" = "X$dir"; then
20749
                          haveit=yes
20750
                          break
20751
                        fi
20752
                      done
20753
                      if test -z "$haveit"; then
20754
                        ltrpathdirs="$ltrpathdirs $dir"
20755
                      fi
20756
                    fi
20757
                    ;;
20758
                  -l*)
20759
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20760
                    ;;
20761
                  *.la)
20762
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20763
                    ;;
20764
                  *)
20765
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20766
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20767
                    ;;
20768
                esac
20769
              done
20770
            fi
20771
          else
20772
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20773
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20774
          fi
20775
        fi
20776
      fi
20777
    done
20778
  done
20779
  if test "X$rpathdirs" != "X"; then
20780
    if test -n "$acl_hardcode_libdir_separator"; then
20781
                        alldirs=
20782
      for found_dir in $rpathdirs; do
20783
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20784
      done
20785
            acl_save_libdir="$libdir"
20786
      libdir="$alldirs"
20787
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
20788
      libdir="$acl_save_libdir"
20789
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20790
    else
20791
            for found_dir in $rpathdirs; do
20792
        acl_save_libdir="$libdir"
20793
        libdir="$found_dir"
20794
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
20795
        libdir="$acl_save_libdir"
20796
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20797
      done
20798
    fi
20799
  fi
20800
  if test "X$ltrpathdirs" != "X"; then
20801
            for found_dir in $ltrpathdirs; do
20802
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20803
    done
20804
  fi
20805

  
20806

  
20807

  
20808

  
20809

  
20810

  
20811

  
20812
          am_save_CPPFLAGS="$CPPFLAGS"
20813

  
20814
  for element in $INCICONV; do
20815
    haveit=
20816
    for x in $CPPFLAGS; do
20817

  
20818
  acl_save_prefix="$prefix"
20819
  prefix="$acl_final_prefix"
20820
  acl_save_exec_prefix="$exec_prefix"
20821
  exec_prefix="$acl_final_exec_prefix"
20822
  eval x=\"$x\"
20823
  exec_prefix="$acl_save_exec_prefix"
20824
  prefix="$acl_save_prefix"
20825

  
20826
      if test "X$x" = "X$element"; then
20827
        haveit=yes
20828
        break
20829
      fi
20830
    done
20831
    if test -z "$haveit"; then
20832
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20833
    fi
20834
  done
20835

  
20836

  
20837
  { echo "$as_me:$LINENO: checking for iconv" >&5
20838
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
20839
if test "${am_cv_func_iconv+set}" = set; then
20840
  echo $ECHO_N "(cached) $ECHO_C" >&6
20841
else
20842

  
20843
    am_cv_func_iconv="no, consider installing GNU libiconv"
20844
    am_cv_lib_iconv=no
20845
    cat >conftest.$ac_ext <<_ACEOF
20846
/* confdefs.h.  */
20847
_ACEOF
20848
cat confdefs.h >>conftest.$ac_ext
20849
cat >>conftest.$ac_ext <<_ACEOF
20850
/* end confdefs.h.  */
20851
#include <stdlib.h>
20852
#include <iconv.h>
20853
int
20854
main ()
20855
{
20856
iconv_t cd = iconv_open("","");
20857
       iconv(cd,NULL,NULL,NULL,NULL);
20858
       iconv_close(cd);
20859
  ;
20860
  return 0;
20861
}
20862
_ACEOF
20863
rm -f conftest.$ac_objext conftest$ac_exeext
20864
if { (ac_try="$ac_link"
20865
case "(($ac_try" in
20866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867
  *) ac_try_echo=$ac_try;;
20868
esac
20869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870
  (eval "$ac_link") 2>conftest.er1
20871
  ac_status=$?
20872
  grep -v '^ *+' conftest.er1 >conftest.err
20873
  rm -f conftest.er1
20874
  cat conftest.err >&5
20875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876
  (exit $ac_status); } && {
20877
	 test -z "$ac_c_werror_flag" ||
20878
	 test ! -s conftest.err
20879
       } && test -s conftest$ac_exeext &&
20880
       $as_test_x conftest$ac_exeext; then
20881
  am_cv_func_iconv=yes
20882
else
20883
  echo "$as_me: failed program was:" >&5
20884
sed 's/^/| /' conftest.$ac_ext >&5
20885

  
20886

  
20887
fi
20888

  
20889
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20890
      conftest$ac_exeext conftest.$ac_ext
20891
    if test "$am_cv_func_iconv" != yes; then
20892
      am_save_LIBS="$LIBS"
20893
      LIBS="$LIBS $LIBICONV"
20894
      cat >conftest.$ac_ext <<_ACEOF
20895
/* confdefs.h.  */
20896
_ACEOF
20897
cat confdefs.h >>conftest.$ac_ext
20898
cat >>conftest.$ac_ext <<_ACEOF
20899
/* end confdefs.h.  */
20900
#include <stdlib.h>
20901
#include <iconv.h>
20902
int
20903
main ()
20904
{
20905
iconv_t cd = iconv_open("","");
20906
         iconv(cd,NULL,NULL,NULL,NULL);
20907
         iconv_close(cd);
20908
  ;
20909
  return 0;
20910
}
20911
_ACEOF
20912
rm -f conftest.$ac_objext conftest$ac_exeext
20913
if { (ac_try="$ac_link"
20914
case "(($ac_try" in
20915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916
  *) ac_try_echo=$ac_try;;
20917
esac
20918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919
  (eval "$ac_link") 2>conftest.er1
20920
  ac_status=$?
20921
  grep -v '^ *+' conftest.er1 >conftest.err
20922
  rm -f conftest.er1
20923
  cat conftest.err >&5
20924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925
  (exit $ac_status); } && {
20926
	 test -z "$ac_c_werror_flag" ||
20927
	 test ! -s conftest.err
20928
       } && test -s conftest$ac_exeext &&
20929
       $as_test_x conftest$ac_exeext; then
20930
  am_cv_lib_iconv=yes
20931
        am_cv_func_iconv=yes
20932
else
20933
  echo "$as_me: failed program was:" >&5
20934
sed 's/^/| /' conftest.$ac_ext >&5
20935

  
20936

  
20937
fi
20938

  
20939
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20940
      conftest$ac_exeext conftest.$ac_ext
20941
      LIBS="$am_save_LIBS"
20942
    fi
20943

  
20944
fi
20945
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20946
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
20947
  if test "$am_cv_func_iconv" = yes; then
20948
    { echo "$as_me:$LINENO: checking for working iconv" >&5
20949
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
20950
if test "${am_cv_func_iconv_works+set}" = set; then
20951
  echo $ECHO_N "(cached) $ECHO_C" >&6
20952
else
20953

  
20954
            am_save_LIBS="$LIBS"
20955
      if test $am_cv_lib_iconv = yes; then
20956
        LIBS="$LIBS $LIBICONV"
20957
      fi
20958
      if test "$cross_compiling" = yes; then
20959
  case "$host_os" in
20960
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20961
           *)            am_cv_func_iconv_works="guessing yes" ;;
20962
         esac
20963
else
20964
  cat >conftest.$ac_ext <<_ACEOF
20965
/* confdefs.h.  */
20966
_ACEOF
20967
cat confdefs.h >>conftest.$ac_ext
20968
cat >>conftest.$ac_ext <<_ACEOF
20969
/* end confdefs.h.  */
20970

  
20971
#include <iconv.h>
20972
#include <string.h>
20973
int main ()
20974
{
20975
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20976
     returns.  */
20977
  {
20978
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20979
    if (cd_utf8_to_88591 != (iconv_t)(-1))
20980
      {
20981
        static const char input[] = "\342\202\254"; /* EURO SIGN */
20982
        char buf[10];
20983
        const char *inptr = input;
20984
        size_t inbytesleft = strlen (input);
20985
        char *outptr = buf;
20986
        size_t outbytesleft = sizeof (buf);
20987
        size_t res = iconv (cd_utf8_to_88591,
20988
                            (char **) &inptr, &inbytesleft,
20989
                            &outptr, &outbytesleft);
20990
        if (res == 0)
20991
          return 1;
20992
      }
20993
  }
20994
#if 0 /* This bug could be worked around by the caller.  */
20995
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
20996
  {
20997
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20998
    if (cd_88591_to_utf8 != (iconv_t)(-1))
20999
      {
21000
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21001
        char buf[50];
21002
        const char *inptr = input;
21003
        size_t inbytesleft = strlen (input);
21004
        char *outptr = buf;
21005
        size_t outbytesleft = sizeof (buf);
21006
        size_t res = iconv (cd_88591_to_utf8,
21007
                            (char **) &inptr, &inbytesleft,
21008
                            &outptr, &outbytesleft);
21009
        if ((int)res > 0)
21010
          return 1;
21011
      }
21012
  }
21013
#endif
21014
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21015
     provided.  */
21016
  if (/* Try standardized names.  */
21017
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21018
      /* Try IRIX, OSF/1 names.  */
21019
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21020
      /* Try AIX names.  */
21021
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21022
      /* Try HP-UX names.  */
21023
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21024
    return 1;
21025
  return 0;
21026
}
21027
_ACEOF
21028
rm -f conftest$ac_exeext
21029
if { (ac_try="$ac_link"
21030
case "(($ac_try" in
21031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032
  *) ac_try_echo=$ac_try;;
21033
esac
21034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035
  (eval "$ac_link") 2>&5
21036
  ac_status=$?
21037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21039
  { (case "(($ac_try" in
21040
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041
  *) ac_try_echo=$ac_try;;
21042
esac
21043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044
  (eval "$ac_try") 2>&5
21045
  ac_status=$?
21046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047
  (exit $ac_status); }; }; then
21048
  am_cv_func_iconv_works=yes
21049
else
21050
  echo "$as_me: program exited with status $ac_status" >&5
21051
echo "$as_me: failed program was:" >&5
21052
sed 's/^/| /' conftest.$ac_ext >&5
21053

  
21054
( exit $ac_status )
21055
am_cv_func_iconv_works=no
21056
fi
21057
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21058
fi
21059

  
21060

  
21061
      LIBS="$am_save_LIBS"
21062

  
21063
fi
21064
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21065
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
21066
    case "$am_cv_func_iconv_works" in
21067
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21068
      *)   am_func_iconv=yes ;;
21069
    esac
21070
  else
21071
    am_func_iconv=no am_cv_lib_iconv=no
21072
  fi
21073
  if test "$am_func_iconv" = yes; then
21074

  
21075
cat >>confdefs.h <<\_ACEOF
21076
#define HAVE_ICONV 1
21077
_ACEOF
21078

  
21079
  fi
21080
  if test "$am_cv_lib_iconv" = yes; then
21081
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21082
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
21083
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
21084
echo "${ECHO_T}$LIBICONV" >&6; }
21085
  else
21086
            CPPFLAGS="$am_save_CPPFLAGS"
21087
    LIBICONV=
21088
    LTLIBICONV=
21089
  fi
21090

  
21091

  
21092

  
21093
  if test "$am_cv_func_iconv" = yes; then
21094
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
21095
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
21096
    if test "${am_cv_proto_iconv+set}" = set; then
21097
  echo $ECHO_N "(cached) $ECHO_C" >&6
21098
else
21099

  
21100
      cat >conftest.$ac_ext <<_ACEOF
21101
/* confdefs.h.  */
21102
_ACEOF
21103
cat confdefs.h >>conftest.$ac_ext
21104
cat >>conftest.$ac_ext <<_ACEOF
21105
/* end confdefs.h.  */
21106

  
21107
#include <stdlib.h>
21108
#include <iconv.h>
21109
extern
21110
#ifdef __cplusplus
21111
"C"
21112
#endif
21113
#if defined(__STDC__) || defined(__cplusplus)
21114
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21115
#else
21116
size_t iconv();
21117
#endif
21118

  
21119
int
21120
main ()
21121
{
21122

  
21123
  ;
21124
  return 0;
21125
}
21126
_ACEOF
21127
rm -f conftest.$ac_objext
21128
if { (ac_try="$ac_compile"
21129
case "(($ac_try" in
21130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131
  *) ac_try_echo=$ac_try;;
21132
esac
21133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134
  (eval "$ac_compile") 2>conftest.er1
21135
  ac_status=$?
21136
  grep -v '^ *+' conftest.er1 >conftest.err
21137
  rm -f conftest.er1
21138
  cat conftest.err >&5
21139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140
  (exit $ac_status); } && {
21141
	 test -z "$ac_c_werror_flag" ||
21142
	 test ! -s conftest.err
21143
       } && test -s conftest.$ac_objext; then
21144
  am_cv_proto_iconv_arg1=""
21145
else
21146
  echo "$as_me: failed program was:" >&5
21147
sed 's/^/| /' conftest.$ac_ext >&5
21148

  
21149
	am_cv_proto_iconv_arg1="const"
21150
fi
21151

  
21152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21154
fi
21155

  
21156
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21157
    { echo "$as_me:$LINENO: result: ${ac_t:-
21158
         }$am_cv_proto_iconv" >&5
21159
echo "${ECHO_T}${ac_t:-
21160
         }$am_cv_proto_iconv" >&6; }
21161

  
21162
cat >>confdefs.h <<_ACEOF
21163
#define ICONV_CONST $am_cv_proto_iconv_arg1
21164
_ACEOF
21165

  
21166
  fi
21167

  
21168

  
20176 21169
# Checks for header files.
20177 21170
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20178 21171
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
......
20349 21342
fi
20350 21343

  
20351 21344

  
21345

  
21346

  
21347

  
21348

  
21349
ac_header_dirent=no
21350
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21351
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21352
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21353
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21354
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21355
  echo $ECHO_N "(cached) $ECHO_C" >&6
21356
else
21357
  cat >conftest.$ac_ext <<_ACEOF
21358
/* confdefs.h.  */
21359
_ACEOF
21360
cat confdefs.h >>conftest.$ac_ext
21361
cat >>conftest.$ac_ext <<_ACEOF
21362
/* end confdefs.h.  */
21363
#include <sys/types.h>
21364
#include <$ac_hdr>
21365

  
21366
int
21367
main ()
21368
{
21369
if ((DIR *) 0)
21370
return 0;
21371
  ;
21372
  return 0;
21373
}
21374
_ACEOF
21375
rm -f conftest.$ac_objext
21376
if { (ac_try="$ac_compile"
21377
case "(($ac_try" in
21378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379
  *) ac_try_echo=$ac_try;;
21380
esac
21381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382
  (eval "$ac_compile") 2>conftest.er1
21383
  ac_status=$?
21384
  grep -v '^ *+' conftest.er1 >conftest.err
21385
  rm -f conftest.er1
21386
  cat conftest.err >&5
21387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388
  (exit $ac_status); } && {
21389
	 test -z "$ac_c_werror_flag" ||
21390
	 test ! -s conftest.err
21391
       } && test -s conftest.$ac_objext; then
21392
  eval "$as_ac_Header=yes"
21393
else
21394
  echo "$as_me: failed program was:" >&5
21395
sed 's/^/| /' conftest.$ac_ext >&5
21396

  
21397
	eval "$as_ac_Header=no"
21398
fi
21399

  
21400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401
fi
21402
ac_res=`eval echo '${'$as_ac_Header'}'`
21403
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21404
echo "${ECHO_T}$ac_res" >&6; }
21405
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21406
  cat >>confdefs.h <<_ACEOF
21407
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21408
_ACEOF
21409

  
21410
ac_header_dirent=$ac_hdr; break
21411
fi
21412

  
21413
done
21414
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21415
if test $ac_header_dirent = dirent.h; then
21416
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21417
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21418
if test "${ac_cv_search_opendir+set}" = set; then
21419
  echo $ECHO_N "(cached) $ECHO_C" >&6
21420
else
21421
  ac_func_search_save_LIBS=$LIBS
21422
cat >conftest.$ac_ext <<_ACEOF
21423
/* confdefs.h.  */
21424
_ACEOF
21425
cat confdefs.h >>conftest.$ac_ext
21426
cat >>conftest.$ac_ext <<_ACEOF
21427
/* end confdefs.h.  */
21428

  
21429
/* Override any GCC internal prototype to avoid an error.
21430
   Use char because int might match the return type of a GCC
21431
   builtin and then its argument prototype would still apply.  */
21432
#ifdef __cplusplus
21433
extern "C"
21434
#endif
21435
char opendir ();
21436
int
21437
main ()
21438
{
21439
return opendir ();
21440
  ;
21441
  return 0;
21442
}
21443
_ACEOF
21444
for ac_lib in '' dir; do
21445
  if test -z "$ac_lib"; then
21446
    ac_res="none required"
21447
  else
21448
    ac_res=-l$ac_lib
21449
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21450
  fi
21451
  rm -f conftest.$ac_objext conftest$ac_exeext
21452
if { (ac_try="$ac_link"
21453
case "(($ac_try" in
21454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455
  *) ac_try_echo=$ac_try;;
21456
esac
21457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458
  (eval "$ac_link") 2>conftest.er1
21459
  ac_status=$?
21460
  grep -v '^ *+' conftest.er1 >conftest.err
21461
  rm -f conftest.er1
21462
  cat conftest.err >&5
21463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464
  (exit $ac_status); } && {
21465
	 test -z "$ac_c_werror_flag" ||
21466
	 test ! -s conftest.err
21467
       } && test -s conftest$ac_exeext &&
21468
       $as_test_x conftest$ac_exeext; then
21469
  ac_cv_search_opendir=$ac_res
21470
else
21471
  echo "$as_me: failed program was:" >&5
21472
sed 's/^/| /' conftest.$ac_ext >&5
21473

  
21474

  
21475
fi
21476

  
21477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21478
      conftest$ac_exeext
21479
  if test "${ac_cv_search_opendir+set}" = set; then
21480
  break
21481
fi
21482
done
21483
if test "${ac_cv_search_opendir+set}" = set; then
21484
  :
21485
else
21486
  ac_cv_search_opendir=no
21487
fi
21488
rm conftest.$ac_ext
21489
LIBS=$ac_func_search_save_LIBS
21490
fi
21491
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21492
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21493
ac_res=$ac_cv_search_opendir
21494
if test "$ac_res" != no; then
21495
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21496

  
21497
fi
21498

  
21499
else
21500
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21501
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21502
if test "${ac_cv_search_opendir+set}" = set; then
21503
  echo $ECHO_N "(cached) $ECHO_C" >&6
21504
else
21505
  ac_func_search_save_LIBS=$LIBS
21506
cat >conftest.$ac_ext <<_ACEOF
21507
/* confdefs.h.  */
21508
_ACEOF
21509
cat confdefs.h >>conftest.$ac_ext
21510
cat >>conftest.$ac_ext <<_ACEOF
21511
/* end confdefs.h.  */
21512

  
21513
/* Override any GCC internal prototype to avoid an error.
21514
   Use char because int might match the return type of a GCC
21515
   builtin and then its argument prototype would still apply.  */
21516
#ifdef __cplusplus
21517
extern "C"
21518
#endif
21519
char opendir ();
21520
int
21521
main ()
21522
{
21523
return opendir ();
21524
  ;
21525
  return 0;
21526
}
21527
_ACEOF
21528
for ac_lib in '' x; do
21529
  if test -z "$ac_lib"; then
21530
    ac_res="none required"
21531
  else
21532
    ac_res=-l$ac_lib
21533
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21534
  fi
21535
  rm -f conftest.$ac_objext conftest$ac_exeext
21536
if { (ac_try="$ac_link"
21537
case "(($ac_try" in
21538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539
  *) ac_try_echo=$ac_try;;
21540
esac
21541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542
  (eval "$ac_link") 2>conftest.er1
21543
  ac_status=$?
21544
  grep -v '^ *+' conftest.er1 >conftest.err
21545
  rm -f conftest.er1
21546
  cat conftest.err >&5
21547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548
  (exit $ac_status); } && {
21549
	 test -z "$ac_c_werror_flag" ||
21550
	 test ! -s conftest.err
21551
       } && test -s conftest$ac_exeext &&
21552
       $as_test_x conftest$ac_exeext; then
21553
  ac_cv_search_opendir=$ac_res
21554
else
21555
  echo "$as_me: failed program was:" >&5
21556
sed 's/^/| /' conftest.$ac_ext >&5
21557

  
21558

  
21559
fi
21560

  
21561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21562
      conftest$ac_exeext
21563
  if test "${ac_cv_search_opendir+set}" = set; then
21564
  break
21565
fi
21566
done
21567
if test "${ac_cv_search_opendir+set}" = set; then
21568
  :
21569
else
21570
  ac_cv_search_opendir=no
21571
fi
21572
rm conftest.$ac_ext
21573
LIBS=$ac_func_search_save_LIBS
21574
fi
21575
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21576
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21577
ac_res=$ac_cv_search_opendir
21578
if test "$ac_res" != no; then
21579
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21580

  
21581
fi
21582

  
21583
fi
21584

  
21585
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21586
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21587
if test "${ac_cv_header_sys_wait_h+set}" = set; then
21588
  echo $ECHO_N "(cached) $ECHO_C" >&6
21589
else
21590
  cat >conftest.$ac_ext <<_ACEOF
21591
/* confdefs.h.  */
21592
_ACEOF
21593
cat confdefs.h >>conftest.$ac_ext
21594
cat >>conftest.$ac_ext <<_ACEOF
21595
/* end confdefs.h.  */
21596
#include <sys/types.h>
21597
#include <sys/wait.h>
21598
#ifndef WEXITSTATUS
21599
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21600
#endif
21601
#ifndef WIFEXITED
21602
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21603
#endif
21604

  
21605
int
21606
main ()
21607
{
21608
  int s;
21609
  wait (&s);
21610
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21611
  ;
21612
  return 0;
21613
}
21614
_ACEOF
21615
rm -f conftest.$ac_objext
21616
if { (ac_try="$ac_compile"
21617
case "(($ac_try" in
21618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619
  *) ac_try_echo=$ac_try;;
21620
esac
21621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622
  (eval "$ac_compile") 2>conftest.er1
21623
  ac_status=$?
21624
  grep -v '^ *+' conftest.er1 >conftest.err
21625
  rm -f conftest.er1
21626
  cat conftest.err >&5
21627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628
  (exit $ac_status); } && {
21629
	 test -z "$ac_c_werror_flag" ||
21630
	 test ! -s conftest.err
21631
       } && test -s conftest.$ac_objext; then
21632
  ac_cv_header_sys_wait_h=yes
21633
else
21634
  echo "$as_me: failed program was:" >&5
21635
sed 's/^/| /' conftest.$ac_ext >&5
21636

  
21637
	ac_cv_header_sys_wait_h=no
21638
fi
21639

  
21640
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641
fi
21642
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21643
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff