~ubuntu-branches/ubuntu/karmic/ucarp/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Eric Evans
  • Date: 2004-12-24 12:39:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041224123930-9qnzcd6o5j0jjjvm
Tags: 1.1-2
Patched to correct a bug that caused upscript to also be applied
when state changed to BACKUP, if --dowscript was passed before
--upscript, (Closes: #284891). Thanks Michail Bachmann
<michail.bachmann@cms.hu-berlin.de>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for ucarp 0.6.
 
3
# Generated by GNU Autoconf 2.59 for ucarp 1.1.
4
4
#
5
5
# Report bugs to <bugs@ucarp.org>.
6
6
#
269
269
# Identity of this package.
270
270
PACKAGE_NAME='ucarp'
271
271
PACKAGE_TARNAME='ucarp'
272
 
PACKAGE_VERSION='0.6'
273
 
PACKAGE_STRING='ucarp 0.6'
 
272
PACKAGE_VERSION='1.1'
 
273
PACKAGE_STRING='ucarp 1.1'
274
274
PACKAGE_BUGREPORT='bugs@ucarp.org'
275
275
 
276
276
ac_config_libobj_dir=src
311
311
# include <unistd.h>
312
312
#endif"
313
313
 
314
 
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 ISODATE 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 CPP EGREP ALLOCA LIBOBJS LTLIBOBJS'
 
314
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 ISODATE 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 CPP EGREP MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS LTLIBOBJS'
315
315
ac_subst_files=''
316
316
 
317
317
# Initialize some variables set by options.
780
780
  # Omit some internal or obsolete options to make the list less imposing.
781
781
  # This message is too long to be a string in the A/UX 3.1 sh.
782
782
  cat <<_ACEOF
783
 
\`configure' configures ucarp 0.6 to adapt to many kinds of systems.
 
783
\`configure' configures ucarp 1.1 to adapt to many kinds of systems.
784
784
 
785
785
Usage: $0 [OPTION]... [VAR=VALUE]...
786
786
 
837
837
  --program-prefix=PREFIX            prepend PREFIX to installed program names
838
838
  --program-suffix=SUFFIX            append SUFFIX to installed program names
839
839
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
840
 
 
841
System types:
 
842
  --build=BUILD     configure for building on BUILD [guessed]
 
843
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840
844
_ACEOF
841
845
fi
842
846
 
843
847
if test -n "$ac_init_help"; then
844
848
  case $ac_init_help in
845
 
     short | recursive ) echo "Configuration of ucarp 0.6:";;
 
849
     short | recursive ) echo "Configuration of ucarp 1.1:";;
846
850
   esac
847
851
  cat <<\_ACEOF
848
852
 
851
855
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852
856
  --disable-dependency-tracking  speeds up one-time build
853
857
  --enable-dependency-tracking   do not reject slow dependency extractors
 
858
  --disable-nls           do not use Native Language Support
 
859
  --disable-rpath         do not hardcode runtime library paths
854
860
 
855
861
Optional Packages:
856
862
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857
863
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
864
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
865
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
866
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
867
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
868
  --without-libintl-prefix     don't search for libintl in includedir and libdir
858
869
  --with-debug            For maintainers only - please do not use
859
870
 
860
871
Some influential environment variables:
965
976
test -n "$ac_init_help" && exit 0
966
977
if $ac_init_version; then
967
978
  cat <<\_ACEOF
968
 
ucarp configure 0.6
 
979
ucarp configure 1.1
969
980
generated by GNU Autoconf 2.59
970
981
 
971
982
Copyright (C) 2003 Free Software Foundation, Inc.
979
990
This file contains any messages produced by compilers while
980
991
running configure, to aid debugging if configure makes a mistake.
981
992
 
982
 
It was created by ucarp $as_me 0.6, which was
 
993
It was created by ucarp $as_me 1.1, which was
983
994
generated by GNU Autoconf 2.59.  Invocation command line was
984
995
 
985
996
  $ $0 $@
1493
1504
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494
1505
fi
1495
1506
 
1496
 
if mkdir -p -- . 2>/dev/null; then
 
1507
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1497
1508
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1498
1509
  # argument.  Indeed, we sometimes output rules like
1499
1510
  #   $(mkdir_p) $(somedir)
1506
1517
  # recognize any option.  It will interpret all options as
1507
1518
  # directories to create, and then abort because `.' already
1508
1519
  # exists.
1509
 
  for d in ./-p ./--;
 
1520
  for d in ./-p ./--version;
1510
1521
  do
1511
1522
    test -d $d && rmdir $d
1512
1523
  done
1616
1627
 
1617
1628
# Define the identity of the package.
1618
1629
 PACKAGE='ucarp'
1619
 
 VERSION='0.6'
 
1630
 VERSION='1.1'
1620
1631
 
1621
1632
 
1622
1633
cat >>confdefs.h <<_ACEOF
2786
2797
    : > sub/conftest.c
2787
2798
    for i in 1 2 3 4 5 6; do
2788
2799
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2789
 
      : > sub/conftst$i.h
 
2800
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2801
      # Solaris 8's {/usr,}/bin/sh.
 
2802
      touch sub/conftst$i.h
2790
2803
    done
2791
2804
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2792
2805
 
2814
2827
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2815
2828
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2816
2829
      # icc doesn't choke on unknown options, it will just issue warnings
2817
 
      # (even with -Werror).  So we grep stderr for any message
2818
 
      # that says an option was ignored.
2819
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2830
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2831
      # that says an option was ignored or not supported.
 
2832
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2833
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2834
      # The diagnosis changed in icc 8.0:
 
2835
      #   icc: Command line remark: option '-MP' not supported
 
2836
      if (grep 'ignoring option' conftest.err ||
 
2837
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2820
2838
        am_cv_CC_dependencies_compiler_type=$depmode
2821
2839
        break
2822
2840
      fi
3333
3351
fi
3334
3352
 
3335
3353
 
3336
 
# Checks for libraries.
3337
 
 
3338
 
echo "$as_me:$LINENO: checking for pcap_lookupdev in -lpcap" >&5
3339
 
echo $ECHO_N "checking for pcap_lookupdev in -lpcap... $ECHO_C" >&6
3340
 
if test "${ac_cv_lib_pcap_pcap_lookupdev+set}" = set; then
3341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3342
 
else
3343
 
  ac_check_lib_save_LIBS=$LIBS
3344
 
LIBS="-lpcap  $LIBS"
3345
 
cat >conftest.$ac_ext <<_ACEOF
3346
 
/* confdefs.h.  */
3347
 
_ACEOF
3348
 
cat confdefs.h >>conftest.$ac_ext
3349
 
cat >>conftest.$ac_ext <<_ACEOF
3350
 
/* end confdefs.h.  */
3351
 
 
3352
 
/* Override any gcc2 internal prototype to avoid an error.  */
3353
 
#ifdef __cplusplus
3354
 
extern "C"
3355
 
#endif
3356
 
/* We use char because int might match the return type of a gcc2
3357
 
   builtin and then its argument prototype would still apply.  */
3358
 
char pcap_lookupdev ();
3359
 
int
3360
 
main ()
3361
 
{
3362
 
pcap_lookupdev ();
3363
 
  ;
3364
 
  return 0;
3365
 
}
3366
 
_ACEOF
3367
 
rm -f conftest.$ac_objext conftest$ac_exeext
3368
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3369
 
  (eval $ac_link) 2>conftest.er1
3370
 
  ac_status=$?
3371
 
  grep -v '^ *+' conftest.er1 >conftest.err
3372
 
  rm -f conftest.er1
3373
 
  cat conftest.err >&5
3374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375
 
  (exit $ac_status); } &&
3376
 
         { ac_try='test -z "$ac_c_werror_flag"
3377
 
                         || test ! -s conftest.err'
3378
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379
 
  (eval $ac_try) 2>&5
3380
 
  ac_status=$?
3381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
 
  (exit $ac_status); }; } &&
3383
 
         { ac_try='test -s conftest$ac_exeext'
3384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385
 
  (eval $ac_try) 2>&5
3386
 
  ac_status=$?
3387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388
 
  (exit $ac_status); }; }; then
3389
 
  ac_cv_lib_pcap_pcap_lookupdev=yes
3390
 
else
3391
 
  echo "$as_me: failed program was:" >&5
3392
 
sed 's/^/| /' conftest.$ac_ext >&5
3393
 
 
3394
 
ac_cv_lib_pcap_pcap_lookupdev=no
3395
 
fi
3396
 
rm -f conftest.err conftest.$ac_objext \
3397
 
      conftest$ac_exeext conftest.$ac_ext
3398
 
LIBS=$ac_check_lib_save_LIBS
3399
 
fi
3400
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_lookupdev" >&5
3401
 
echo "${ECHO_T}$ac_cv_lib_pcap_pcap_lookupdev" >&6
3402
 
if test $ac_cv_lib_pcap_pcap_lookupdev = yes; then
3403
 
  cat >>confdefs.h <<_ACEOF
3404
 
#define HAVE_LIBPCAP 1
3405
 
_ACEOF
3406
 
 
3407
 
  LIBS="-lpcap $LIBS"
3408
 
 
3409
 
fi
 
3354
# Gettext
 
3355
 
 
3356
        MKINSTALLDIRS=
 
3357
  if test -n "$ac_aux_dir"; then
 
3358
    case "$ac_aux_dir" in
 
3359
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
3360
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
3361
    esac
 
3362
  fi
 
3363
  if test -z "$MKINSTALLDIRS"; then
 
3364
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
3365
  fi
 
3366
 
 
3367
 
 
3368
 
 
3369
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
3370
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
3371
    # Check whether --enable-nls or --disable-nls was given.
 
3372
if test "${enable_nls+set}" = set; then
 
3373
  enableval="$enable_nls"
 
3374
  USE_NLS=$enableval
 
3375
else
 
3376
  USE_NLS=yes
 
3377
fi;
 
3378
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
3379
echo "${ECHO_T}$USE_NLS" >&6
 
3380
 
 
3381
 
 
3382
 
 
3383
 
 
3384
 
 
3385
 
 
3386
# Prepare PATH_SEPARATOR.
 
3387
# The user is always right.
 
3388
if test "${PATH_SEPARATOR+set}" != set; then
 
3389
  echo "#! /bin/sh" >conf$$.sh
 
3390
  echo  "exit 0"   >>conf$$.sh
 
3391
  chmod +x conf$$.sh
 
3392
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3393
    PATH_SEPARATOR=';'
 
3394
  else
 
3395
    PATH_SEPARATOR=:
 
3396
  fi
 
3397
  rm -f conf$$.sh
 
3398
fi
 
3399
 
 
3400
# Find out how to test for executable files. Don't use a zero-byte file,
 
3401
# as systems may use methods other than mode bits to determine executability.
 
3402
cat >conf$$.file <<_ASEOF
 
3403
#! /bin/sh
 
3404
exit 0
 
3405
_ASEOF
 
3406
chmod +x conf$$.file
 
3407
if test -x conf$$.file >/dev/null 2>&1; then
 
3408
  ac_executable_p="test -x"
 
3409
else
 
3410
  ac_executable_p="test -f"
 
3411
fi
 
3412
rm -f conf$$.file
 
3413
 
 
3414
# Extract the first word of "msgfmt", so it can be a program name with args.
 
3415
set dummy msgfmt; ac_word=$2
 
3416
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3418
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
3419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3420
else
 
3421
  case "$MSGFMT" in
 
3422
  [\\/]* | ?:[\\/]*)
 
3423
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
3424
    ;;
 
3425
  *)
 
3426
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3427
    for ac_dir in $PATH; do
 
3428
      IFS="$ac_save_IFS"
 
3429
      test -z "$ac_dir" && ac_dir=.
 
3430
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3431
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3432
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
3433
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3434
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
3435
            break 2
 
3436
          fi
 
3437
        fi
 
3438
      done
 
3439
    done
 
3440
    IFS="$ac_save_IFS"
 
3441
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
3442
    ;;
 
3443
esac
 
3444
fi
 
3445
MSGFMT="$ac_cv_path_MSGFMT"
 
3446
if test "$MSGFMT" != ":"; then
 
3447
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
3448
echo "${ECHO_T}$MSGFMT" >&6
 
3449
else
 
3450
  echo "$as_me:$LINENO: result: no" >&5
 
3451
echo "${ECHO_T}no" >&6
 
3452
fi
 
3453
 
 
3454
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
3455
set dummy gmsgfmt; ac_word=$2
 
3456
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3458
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3460
else
 
3461
  case $GMSGFMT in
 
3462
  [\\/]* | ?:[\\/]*)
 
3463
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
3464
  ;;
 
3465
  *)
 
3466
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3467
for as_dir in $PATH
 
3468
do
 
3469
  IFS=$as_save_IFS
 
3470
  test -z "$as_dir" && as_dir=.
 
3471
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3473
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
3474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3475
    break 2
 
3476
  fi
 
3477
done
 
3478
done
 
3479
 
 
3480
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
3481
  ;;
 
3482
esac
 
3483
fi
 
3484
GMSGFMT=$ac_cv_path_GMSGFMT
 
3485
 
 
3486
if test -n "$GMSGFMT"; then
 
3487
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
3488
echo "${ECHO_T}$GMSGFMT" >&6
 
3489
else
 
3490
  echo "$as_me:$LINENO: result: no" >&5
 
3491
echo "${ECHO_T}no" >&6
 
3492
fi
 
3493
 
 
3494
 
 
3495
 
 
3496
# Prepare PATH_SEPARATOR.
 
3497
# The user is always right.
 
3498
if test "${PATH_SEPARATOR+set}" != set; then
 
3499
  echo "#! /bin/sh" >conf$$.sh
 
3500
  echo  "exit 0"   >>conf$$.sh
 
3501
  chmod +x conf$$.sh
 
3502
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3503
    PATH_SEPARATOR=';'
 
3504
  else
 
3505
    PATH_SEPARATOR=:
 
3506
  fi
 
3507
  rm -f conf$$.sh
 
3508
fi
 
3509
 
 
3510
# Find out how to test for executable files. Don't use a zero-byte file,
 
3511
# as systems may use methods other than mode bits to determine executability.
 
3512
cat >conf$$.file <<_ASEOF
 
3513
#! /bin/sh
 
3514
exit 0
 
3515
_ASEOF
 
3516
chmod +x conf$$.file
 
3517
if test -x conf$$.file >/dev/null 2>&1; then
 
3518
  ac_executable_p="test -x"
 
3519
else
 
3520
  ac_executable_p="test -f"
 
3521
fi
 
3522
rm -f conf$$.file
 
3523
 
 
3524
# Extract the first word of "xgettext", so it can be a program name with args.
 
3525
set dummy xgettext; ac_word=$2
 
3526
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3528
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
3529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3530
else
 
3531
  case "$XGETTEXT" in
 
3532
  [\\/]* | ?:[\\/]*)
 
3533
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
3534
    ;;
 
3535
  *)
 
3536
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3537
    for ac_dir in $PATH; do
 
3538
      IFS="$ac_save_IFS"
 
3539
      test -z "$ac_dir" && ac_dir=.
 
3540
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3541
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3542
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
3543
     (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
 
3544
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
3545
            break 2
 
3546
          fi
 
3547
        fi
 
3548
      done
 
3549
    done
 
3550
    IFS="$ac_save_IFS"
 
3551
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
3552
    ;;
 
3553
esac
 
3554
fi
 
3555
XGETTEXT="$ac_cv_path_XGETTEXT"
 
3556
if test "$XGETTEXT" != ":"; then
 
3557
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
3558
echo "${ECHO_T}$XGETTEXT" >&6
 
3559
else
 
3560
  echo "$as_me:$LINENO: result: no" >&5
 
3561
echo "${ECHO_T}no" >&6
 
3562
fi
 
3563
 
 
3564
    rm -f messages.po
 
3565
 
 
3566
 
 
3567
# Prepare PATH_SEPARATOR.
 
3568
# The user is always right.
 
3569
if test "${PATH_SEPARATOR+set}" != set; then
 
3570
  echo "#! /bin/sh" >conf$$.sh
 
3571
  echo  "exit 0"   >>conf$$.sh
 
3572
  chmod +x conf$$.sh
 
3573
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3574
    PATH_SEPARATOR=';'
 
3575
  else
 
3576
    PATH_SEPARATOR=:
 
3577
  fi
 
3578
  rm -f conf$$.sh
 
3579
fi
 
3580
 
 
3581
# Find out how to test for executable files. Don't use a zero-byte file,
 
3582
# as systems may use methods other than mode bits to determine executability.
 
3583
cat >conf$$.file <<_ASEOF
 
3584
#! /bin/sh
 
3585
exit 0
 
3586
_ASEOF
 
3587
chmod +x conf$$.file
 
3588
if test -x conf$$.file >/dev/null 2>&1; then
 
3589
  ac_executable_p="test -x"
 
3590
else
 
3591
  ac_executable_p="test -f"
 
3592
fi
 
3593
rm -f conf$$.file
 
3594
 
 
3595
# Extract the first word of "msgmerge", so it can be a program name with args.
 
3596
set dummy msgmerge; ac_word=$2
 
3597
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3599
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
3600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3601
else
 
3602
  case "$MSGMERGE" in
 
3603
  [\\/]* | ?:[\\/]*)
 
3604
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
3605
    ;;
 
3606
  *)
 
3607
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3608
    for ac_dir in $PATH; do
 
3609
      IFS="$ac_save_IFS"
 
3610
      test -z "$ac_dir" && ac_dir=.
 
3611
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3612
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3613
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
3614
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
3615
            break 2
 
3616
          fi
 
3617
        fi
 
3618
      done
 
3619
    done
 
3620
    IFS="$ac_save_IFS"
 
3621
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
3622
    ;;
 
3623
esac
 
3624
fi
 
3625
MSGMERGE="$ac_cv_path_MSGMERGE"
 
3626
if test "$MSGMERGE" != ":"; then
 
3627
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
3628
echo "${ECHO_T}$MSGMERGE" >&6
 
3629
else
 
3630
  echo "$as_me:$LINENO: result: no" >&5
 
3631
echo "${ECHO_T}no" >&6
 
3632
fi
 
3633
 
 
3634
 
 
3635
      if test "$GMSGFMT" != ":"; then
 
3636
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
3637
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3638
      : ;
 
3639
    else
 
3640
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
3641
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
3642
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
3643
      GMSGFMT=":"
 
3644
    fi
 
3645
  fi
 
3646
 
 
3647
      if test "$XGETTEXT" != ":"; then
 
3648
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
3649
       (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
 
3650
      : ;
 
3651
    else
 
3652
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
3653
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
3654
      XGETTEXT=":"
 
3655
    fi
 
3656
        rm -f messages.po
 
3657
  fi
 
3658
 
 
3659
            ac_config_commands="$ac_config_commands default-1"
 
3660
 
 
3661
 
 
3662
 
 
3663
      if test "X$prefix" = "XNONE"; then
 
3664
    acl_final_prefix="$ac_default_prefix"
 
3665
  else
 
3666
    acl_final_prefix="$prefix"
 
3667
  fi
 
3668
  if test "X$exec_prefix" = "XNONE"; then
 
3669
    acl_final_exec_prefix='${prefix}'
 
3670
  else
 
3671
    acl_final_exec_prefix="$exec_prefix"
 
3672
  fi
 
3673
  acl_save_prefix="$prefix"
 
3674
  prefix="$acl_final_prefix"
 
3675
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
3676
  prefix="$acl_save_prefix"
 
3677
 
 
3678
# Make sure we can run config.sub.
 
3679
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3680
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3681
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3682
   { (exit 1); exit 1; }; }
 
3683
 
 
3684
echo "$as_me:$LINENO: checking build system type" >&5
 
3685
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3686
if test "${ac_cv_build+set}" = set; then
 
3687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3688
else
 
3689
  ac_cv_build_alias=$build_alias
 
3690
test -z "$ac_cv_build_alias" &&
 
3691
  ac_cv_build_alias=`$ac_config_guess`
 
3692
test -z "$ac_cv_build_alias" &&
 
3693
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3694
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3695
   { (exit 1); exit 1; }; }
 
3696
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3697
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3698
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3699
   { (exit 1); exit 1; }; }
 
3700
 
 
3701
fi
 
3702
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3703
echo "${ECHO_T}$ac_cv_build" >&6
 
3704
build=$ac_cv_build
 
3705
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3706
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3707
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3708
 
 
3709
 
 
3710
echo "$as_me:$LINENO: checking host system type" >&5
 
3711
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3712
if test "${ac_cv_host+set}" = set; then
 
3713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3714
else
 
3715
  ac_cv_host_alias=$host_alias
 
3716
test -z "$ac_cv_host_alias" &&
 
3717
  ac_cv_host_alias=$ac_cv_build_alias
 
3718
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3719
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3720
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3721
   { (exit 1); exit 1; }; }
 
3722
 
 
3723
fi
 
3724
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3725
echo "${ECHO_T}$ac_cv_host" >&6
 
3726
host=$ac_cv_host
 
3727
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3728
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3729
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3730
 
 
3731
 
 
3732
 
 
3733
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3734
if test "${with_gnu_ld+set}" = set; then
 
3735
  withval="$with_gnu_ld"
 
3736
  test "$withval" = no || with_gnu_ld=yes
 
3737
else
 
3738
  with_gnu_ld=no
 
3739
fi;
 
3740
# Prepare PATH_SEPARATOR.
 
3741
# The user is always right.
 
3742
if test "${PATH_SEPARATOR+set}" != set; then
 
3743
  echo "#! /bin/sh" >conf$$.sh
 
3744
  echo  "exit 0"   >>conf$$.sh
 
3745
  chmod +x conf$$.sh
 
3746
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3747
    PATH_SEPARATOR=';'
 
3748
  else
 
3749
    PATH_SEPARATOR=:
 
3750
  fi
 
3751
  rm -f conf$$.sh
 
3752
fi
 
3753
ac_prog=ld
 
3754
if test "$GCC" = yes; then
 
3755
  # Check if gcc -print-prog-name=ld gives a path.
 
3756
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
3757
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3758
  case $host in
 
3759
  *-*-mingw*)
 
3760
    # gcc leaves a trailing carriage return which upsets mingw
 
3761
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3762
  *)
 
3763
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3764
  esac
 
3765
  case $ac_prog in
 
3766
    # Accept absolute paths.
 
3767
    [\\/]* | [A-Za-z]:[\\/]*)
 
3768
      re_direlt='/[^/][^/]*/\.\./'
 
3769
      # Canonicalize the path of ld
 
3770
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3771
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3772
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3773
      done
 
3774
      test -z "$LD" && LD="$ac_prog"
 
3775
      ;;
 
3776
  "")
 
3777
    # If it fails, then pretend we aren't using GCC.
 
3778
    ac_prog=ld
 
3779
    ;;
 
3780
  *)
 
3781
    # If it is relative, then search for the first ld in PATH.
 
3782
    with_gnu_ld=unknown
 
3783
    ;;
 
3784
  esac
 
3785
elif test "$with_gnu_ld" = yes; then
 
3786
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3787
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3788
else
 
3789
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3790
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3791
fi
 
3792
if test "${acl_cv_path_LD+set}" = set; then
 
3793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3794
else
 
3795
  if test -z "$LD"; then
 
3796
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3797
  for ac_dir in $PATH; do
 
3798
    test -z "$ac_dir" && ac_dir=.
 
3799
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3800
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
3801
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3802
      # but apparently some GNU ld's only accept -v.
 
3803
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3804
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3805
        test "$with_gnu_ld" != no && break
 
3806
      else
 
3807
        test "$with_gnu_ld" != yes && break
 
3808
      fi
 
3809
    fi
 
3810
  done
 
3811
  IFS="$ac_save_ifs"
 
3812
else
 
3813
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
3814
fi
 
3815
fi
 
3816
 
 
3817
LD="$acl_cv_path_LD"
 
3818
if test -n "$LD"; then
 
3819
  echo "$as_me:$LINENO: result: $LD" >&5
 
3820
echo "${ECHO_T}$LD" >&6
 
3821
else
 
3822
  echo "$as_me:$LINENO: result: no" >&5
 
3823
echo "${ECHO_T}no" >&6
 
3824
fi
 
3825
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3826
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3827
   { (exit 1); exit 1; }; }
 
3828
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3829
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3830
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
3831
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3832
else
 
3833
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3834
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3835
  acl_cv_prog_gnu_ld=yes
 
3836
else
 
3837
  acl_cv_prog_gnu_ld=no
 
3838
fi
 
3839
fi
 
3840
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
3841
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
3842
with_gnu_ld=$acl_cv_prog_gnu_ld
 
3843
 
 
3844
 
 
3845
 
 
3846
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
3847
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
3848
if test "${acl_cv_rpath+set}" = set; then
 
3849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3850
else
 
3851
 
 
3852
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
3853
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
3854
    . ./conftest.sh
 
3855
    rm -f ./conftest.sh
 
3856
    acl_cv_rpath=done
 
3857
 
 
3858
fi
 
3859
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
3860
echo "${ECHO_T}$acl_cv_rpath" >&6
 
3861
  wl="$acl_cv_wl"
 
3862
  libext="$acl_cv_libext"
 
3863
  shlibext="$acl_cv_shlibext"
 
3864
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
3865
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
3866
  hardcode_direct="$acl_cv_hardcode_direct"
 
3867
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
3868
    # Check whether --enable-rpath or --disable-rpath was given.
 
3869
if test "${enable_rpath+set}" = set; then
 
3870
  enableval="$enable_rpath"
 
3871
  :
 
3872
else
 
3873
  enable_rpath=yes
 
3874
fi;
 
3875
 
 
3876
 
 
3877
 
 
3878
 
 
3879
 
 
3880
 
 
3881
 
 
3882
    use_additional=yes
 
3883
 
 
3884
  acl_save_prefix="$prefix"
 
3885
  prefix="$acl_final_prefix"
 
3886
  acl_save_exec_prefix="$exec_prefix"
 
3887
  exec_prefix="$acl_final_exec_prefix"
 
3888
 
 
3889
    eval additional_includedir=\"$includedir\"
 
3890
    eval additional_libdir=\"$libdir\"
 
3891
 
 
3892
  exec_prefix="$acl_save_exec_prefix"
 
3893
  prefix="$acl_save_prefix"
 
3894
 
 
3895
 
 
3896
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
3897
if test "${with_libiconv_prefix+set}" = set; then
 
3898
  withval="$with_libiconv_prefix"
 
3899
 
 
3900
    if test "X$withval" = "Xno"; then
 
3901
      use_additional=no
 
3902
    else
 
3903
      if test "X$withval" = "X"; then
 
3904
 
 
3905
  acl_save_prefix="$prefix"
 
3906
  prefix="$acl_final_prefix"
 
3907
  acl_save_exec_prefix="$exec_prefix"
 
3908
  exec_prefix="$acl_final_exec_prefix"
 
3909
 
 
3910
          eval additional_includedir=\"$includedir\"
 
3911
          eval additional_libdir=\"$libdir\"
 
3912
 
 
3913
  exec_prefix="$acl_save_exec_prefix"
 
3914
  prefix="$acl_save_prefix"
 
3915
 
 
3916
      else
 
3917
        additional_includedir="$withval/include"
 
3918
        additional_libdir="$withval/lib"
 
3919
      fi
 
3920
    fi
 
3921
 
 
3922
fi;
 
3923
      LIBICONV=
 
3924
  LTLIBICONV=
 
3925
  INCICONV=
 
3926
  rpathdirs=
 
3927
  ltrpathdirs=
 
3928
  names_already_handled=
 
3929
  names_next_round='iconv '
 
3930
  while test -n "$names_next_round"; do
 
3931
    names_this_round="$names_next_round"
 
3932
    names_next_round=
 
3933
    for name in $names_this_round; do
 
3934
      already_handled=
 
3935
      for n in $names_already_handled; do
 
3936
        if test "$n" = "$name"; then
 
3937
          already_handled=yes
 
3938
          break
 
3939
        fi
 
3940
      done
 
3941
      if test -z "$already_handled"; then
 
3942
        names_already_handled="$names_already_handled $name"
 
3943
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
3944
        eval value=\"\$HAVE_LIB$uppername\"
 
3945
        if test -n "$value"; then
 
3946
          if test "$value" = yes; then
 
3947
            eval value=\"\$LIB$uppername\"
 
3948
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
3949
            eval value=\"\$LTLIB$uppername\"
 
3950
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
3951
          else
 
3952
                                    :
 
3953
          fi
 
3954
        else
 
3955
                              found_dir=
 
3956
          found_la=
 
3957
          found_so=
 
3958
          found_a=
 
3959
          if test $use_additional = yes; then
 
3960
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
3961
              found_dir="$additional_libdir"
 
3962
              found_so="$additional_libdir/lib$name.$shlibext"
 
3963
              if test -f "$additional_libdir/lib$name.la"; then
 
3964
                found_la="$additional_libdir/lib$name.la"
 
3965
              fi
 
3966
            else
 
3967
              if test -f "$additional_libdir/lib$name.$libext"; then
 
3968
                found_dir="$additional_libdir"
 
3969
                found_a="$additional_libdir/lib$name.$libext"
 
3970
                if test -f "$additional_libdir/lib$name.la"; then
 
3971
                  found_la="$additional_libdir/lib$name.la"
 
3972
                fi
 
3973
              fi
 
3974
            fi
 
3975
          fi
 
3976
          if test "X$found_dir" = "X"; then
 
3977
            for x in $LDFLAGS $LTLIBICONV; do
 
3978
 
 
3979
  acl_save_prefix="$prefix"
 
3980
  prefix="$acl_final_prefix"
 
3981
  acl_save_exec_prefix="$exec_prefix"
 
3982
  exec_prefix="$acl_final_exec_prefix"
 
3983
  eval x=\"$x\"
 
3984
  exec_prefix="$acl_save_exec_prefix"
 
3985
  prefix="$acl_save_prefix"
 
3986
 
 
3987
              case "$x" in
 
3988
                -L*)
 
3989
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
3990
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
3991
                    found_dir="$dir"
 
3992
                    found_so="$dir/lib$name.$shlibext"
 
3993
                    if test -f "$dir/lib$name.la"; then
 
3994
                      found_la="$dir/lib$name.la"
 
3995
                    fi
 
3996
                  else
 
3997
                    if test -f "$dir/lib$name.$libext"; then
 
3998
                      found_dir="$dir"
 
3999
                      found_a="$dir/lib$name.$libext"
 
4000
                      if test -f "$dir/lib$name.la"; then
 
4001
                        found_la="$dir/lib$name.la"
 
4002
                      fi
 
4003
                    fi
 
4004
                  fi
 
4005
                  ;;
 
4006
              esac
 
4007
              if test "X$found_dir" != "X"; then
 
4008
                break
 
4009
              fi
 
4010
            done
 
4011
          fi
 
4012
          if test "X$found_dir" != "X"; then
 
4013
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
4014
            if test "X$found_so" != "X"; then
 
4015
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
4016
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4017
              else
 
4018
                                                                                haveit=
 
4019
                for x in $ltrpathdirs; do
 
4020
                  if test "X$x" = "X$found_dir"; then
 
4021
                    haveit=yes
 
4022
                    break
 
4023
                  fi
 
4024
                done
 
4025
                if test -z "$haveit"; then
 
4026
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
4027
                fi
 
4028
                                if test "$hardcode_direct" = yes; then
 
4029
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4030
                else
 
4031
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
4032
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4033
                                                            haveit=
 
4034
                    for x in $rpathdirs; do
 
4035
                      if test "X$x" = "X$found_dir"; then
 
4036
                        haveit=yes
 
4037
                        break
 
4038
                      fi
 
4039
                    done
 
4040
                    if test -z "$haveit"; then
 
4041
                      rpathdirs="$rpathdirs $found_dir"
 
4042
                    fi
 
4043
                  else
 
4044
                                                                                haveit=
 
4045
                    for x in $LDFLAGS $LIBICONV; do
 
4046
 
 
4047
  acl_save_prefix="$prefix"
 
4048
  prefix="$acl_final_prefix"
 
4049
  acl_save_exec_prefix="$exec_prefix"
 
4050
  exec_prefix="$acl_final_exec_prefix"
 
4051
  eval x=\"$x\"
 
4052
  exec_prefix="$acl_save_exec_prefix"
 
4053
  prefix="$acl_save_prefix"
 
4054
 
 
4055
                      if test "X$x" = "X-L$found_dir"; then
 
4056
                        haveit=yes
 
4057
                        break
 
4058
                      fi
 
4059
                    done
 
4060
                    if test -z "$haveit"; then
 
4061
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
4062
                    fi
 
4063
                    if test "$hardcode_minus_L" != no; then
 
4064
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
4065
                    else
 
4066
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
4067
                    fi
 
4068
                  fi
 
4069
                fi
 
4070
              fi
 
4071
            else
 
4072
              if test "X$found_a" != "X"; then
 
4073
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
4074
              else
 
4075
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
4076
              fi
 
4077
            fi
 
4078
                        additional_includedir=
 
4079
            case "$found_dir" in
 
4080
              */lib | */lib/)
 
4081
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
4082
                additional_includedir="$basedir/include"
 
4083
                ;;
 
4084
            esac
 
4085
            if test "X$additional_includedir" != "X"; then
 
4086
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
4087
                haveit=
 
4088
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
4089
                  if test -n "$GCC"; then
 
4090
                    case $host_os in
 
4091
                      linux*) haveit=yes;;
 
4092
                    esac
 
4093
                  fi
 
4094
                fi
 
4095
                if test -z "$haveit"; then
 
4096
                  for x in $CPPFLAGS $INCICONV; do
 
4097
 
 
4098
  acl_save_prefix="$prefix"
 
4099
  prefix="$acl_final_prefix"
 
4100
  acl_save_exec_prefix="$exec_prefix"
 
4101
  exec_prefix="$acl_final_exec_prefix"
 
4102
  eval x=\"$x\"
 
4103
  exec_prefix="$acl_save_exec_prefix"
 
4104
  prefix="$acl_save_prefix"
 
4105
 
 
4106
                    if test "X$x" = "X-I$additional_includedir"; then
 
4107
                      haveit=yes
 
4108
                      break
 
4109
                    fi
 
4110
                  done
 
4111
                  if test -z "$haveit"; then
 
4112
                    if test -d "$additional_includedir"; then
 
4113
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
4114
                    fi
 
4115
                  fi
 
4116
                fi
 
4117
              fi
 
4118
            fi
 
4119
                        if test -n "$found_la"; then
 
4120
                                                        save_libdir="$libdir"
 
4121
              case "$found_la" in
 
4122
                */* | *\\*) . "$found_la" ;;
 
4123
                *) . "./$found_la" ;;
 
4124
              esac
 
4125
              libdir="$save_libdir"
 
4126
                            for dep in $dependency_libs; do
 
4127
                case "$dep" in
 
4128
                  -L*)
 
4129
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
4130
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
4131
                      haveit=
 
4132
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
4133
                        if test -n "$GCC"; then
 
4134
                          case $host_os in
 
4135
                            linux*) haveit=yes;;
 
4136
                          esac
 
4137
                        fi
 
4138
                      fi
 
4139
                      if test -z "$haveit"; then
 
4140
                        haveit=
 
4141
                        for x in $LDFLAGS $LIBICONV; do
 
4142
 
 
4143
  acl_save_prefix="$prefix"
 
4144
  prefix="$acl_final_prefix"
 
4145
  acl_save_exec_prefix="$exec_prefix"
 
4146
  exec_prefix="$acl_final_exec_prefix"
 
4147
  eval x=\"$x\"
 
4148
  exec_prefix="$acl_save_exec_prefix"
 
4149
  prefix="$acl_save_prefix"
 
4150
 
 
4151
                          if test "X$x" = "X-L$additional_libdir"; then
 
4152
                            haveit=yes
 
4153
                            break
 
4154
                          fi
 
4155
                        done
 
4156
                        if test -z "$haveit"; then
 
4157
                          if test -d "$additional_libdir"; then
 
4158
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
4159
                          fi
 
4160
                        fi
 
4161
                        haveit=
 
4162
                        for x in $LDFLAGS $LTLIBICONV; do
 
4163
 
 
4164
  acl_save_prefix="$prefix"
 
4165
  prefix="$acl_final_prefix"
 
4166
  acl_save_exec_prefix="$exec_prefix"
 
4167
  exec_prefix="$acl_final_exec_prefix"
 
4168
  eval x=\"$x\"
 
4169
  exec_prefix="$acl_save_exec_prefix"
 
4170
  prefix="$acl_save_prefix"
 
4171
 
 
4172
                          if test "X$x" = "X-L$additional_libdir"; then
 
4173
                            haveit=yes
 
4174
                            break
 
4175
                          fi
 
4176
                        done
 
4177
                        if test -z "$haveit"; then
 
4178
                          if test -d "$additional_libdir"; then
 
4179
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
4180
                          fi
 
4181
                        fi
 
4182
                      fi
 
4183
                    fi
 
4184
                    ;;
 
4185
                  -R*)
 
4186
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
4187
                    if test "$enable_rpath" != no; then
 
4188
                                                                  haveit=
 
4189
                      for x in $rpathdirs; do
 
4190
                        if test "X$x" = "X$dir"; then
 
4191
                          haveit=yes
 
4192
                          break
 
4193
                        fi
 
4194
                      done
 
4195
                      if test -z "$haveit"; then
 
4196
                        rpathdirs="$rpathdirs $dir"
 
4197
                      fi
 
4198
                                                                  haveit=
 
4199
                      for x in $ltrpathdirs; do
 
4200
                        if test "X$x" = "X$dir"; then
 
4201
                          haveit=yes
 
4202
                          break
 
4203
                        fi
 
4204
                      done
 
4205
                      if test -z "$haveit"; then
 
4206
                        ltrpathdirs="$ltrpathdirs $dir"
 
4207
                      fi
 
4208
                    fi
 
4209
                    ;;
 
4210
                  -l*)
 
4211
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
4212
                    ;;
 
4213
                  *.la)
 
4214
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
4215
                    ;;
 
4216
                  *)
 
4217
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
4218
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
4219
                    ;;
 
4220
                esac
 
4221
              done
 
4222
            fi
 
4223
          else
 
4224
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
4225
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
4226
          fi
 
4227
        fi
 
4228
      fi
 
4229
    done
 
4230
  done
 
4231
  if test "X$rpathdirs" != "X"; then
 
4232
    if test -n "$hardcode_libdir_separator"; then
 
4233
                        alldirs=
 
4234
      for found_dir in $rpathdirs; do
 
4235
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
4236
      done
 
4237
            acl_save_libdir="$libdir"
 
4238
      libdir="$alldirs"
 
4239
      eval flag=\"$hardcode_libdir_flag_spec\"
 
4240
      libdir="$acl_save_libdir"
 
4241
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
4242
    else
 
4243
            for found_dir in $rpathdirs; do
 
4244
        acl_save_libdir="$libdir"
 
4245
        libdir="$found_dir"
 
4246
        eval flag=\"$hardcode_libdir_flag_spec\"
 
4247
        libdir="$acl_save_libdir"
 
4248
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
4249
      done
 
4250
    fi
 
4251
  fi
 
4252
  if test "X$ltrpathdirs" != "X"; then
 
4253
            for found_dir in $ltrpathdirs; do
 
4254
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
4255
    done
 
4256
  fi
 
4257
 
 
4258
 
 
4259
 
 
4260
 
 
4261
 
 
4262
 
 
4263
 
 
4264
 
 
4265
 
 
4266
 
 
4267
 
 
4268
 
 
4269
 
 
4270
 
 
4271
 
 
4272
 
 
4273
 
 
4274
 
 
4275
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
4276
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
4277
    # Check whether --enable-nls or --disable-nls was given.
 
4278
if test "${enable_nls+set}" = set; then
 
4279
  enableval="$enable_nls"
 
4280
  USE_NLS=$enableval
 
4281
else
 
4282
  USE_NLS=yes
 
4283
fi;
 
4284
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
4285
echo "${ECHO_T}$USE_NLS" >&6
 
4286
 
 
4287
 
 
4288
 
 
4289
 
 
4290
  LIBINTL=
 
4291
  LTLIBINTL=
 
4292
  POSUB=
 
4293
 
 
4294
    if test "$USE_NLS" = "yes"; then
 
4295
    gt_use_preinstalled_gnugettext=no
 
4296
 
 
4297
 
 
4298
 
 
4299
 
 
4300
 
 
4301
 
 
4302
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
4303
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
4304
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
4305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4306
else
 
4307
  cat >conftest.$ac_ext <<_ACEOF
 
4308
/* confdefs.h.  */
 
4309
_ACEOF
 
4310
cat confdefs.h >>conftest.$ac_ext
 
4311
cat >>conftest.$ac_ext <<_ACEOF
 
4312
/* end confdefs.h.  */
 
4313
#include <libintl.h>
 
4314
extern int _nl_msg_cat_cntr;
 
4315
extern int *_nl_domain_bindings;
 
4316
int
 
4317
main ()
 
4318
{
 
4319
bindtextdomain ("", "");
 
4320
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
rm -f conftest.$ac_objext conftest$ac_exeext
 
4326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4327
  (eval $ac_link) 2>conftest.er1
 
4328
  ac_status=$?
 
4329
  grep -v '^ *+' conftest.er1 >conftest.err
 
4330
  rm -f conftest.er1
 
4331
  cat conftest.err >&5
 
4332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  (exit $ac_status); } &&
 
4334
         { ac_try='test -z "$ac_c_werror_flag"
 
4335
                         || test ! -s conftest.err'
 
4336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4337
  (eval $ac_try) 2>&5
 
4338
  ac_status=$?
 
4339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4340
  (exit $ac_status); }; } &&
 
4341
         { ac_try='test -s conftest$ac_exeext'
 
4342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4343
  (eval $ac_try) 2>&5
 
4344
  ac_status=$?
 
4345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4346
  (exit $ac_status); }; }; then
 
4347
  gt_cv_func_gnugettext1_libc=yes
 
4348
else
 
4349
  echo "$as_me: failed program was:" >&5
 
4350
sed 's/^/| /' conftest.$ac_ext >&5
 
4351
 
 
4352
gt_cv_func_gnugettext1_libc=no
 
4353
fi
 
4354
rm -f conftest.err conftest.$ac_objext \
 
4355
      conftest$ac_exeext conftest.$ac_ext
 
4356
fi
 
4357
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
4358
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
4359
 
 
4360
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
4361
 
 
4362
 
 
4363
 
 
4364
 
 
4365
 
 
4366
          am_save_CPPFLAGS="$CPPFLAGS"
 
4367
 
 
4368
  for element in $INCICONV; do
 
4369
    haveit=
 
4370
    for x in $CPPFLAGS; do
 
4371
 
 
4372
  acl_save_prefix="$prefix"
 
4373
  prefix="$acl_final_prefix"
 
4374
  acl_save_exec_prefix="$exec_prefix"
 
4375
  exec_prefix="$acl_final_exec_prefix"
 
4376
  eval x=\"$x\"
 
4377
  exec_prefix="$acl_save_exec_prefix"
 
4378
  prefix="$acl_save_prefix"
 
4379
 
 
4380
      if test "X$x" = "X$element"; then
 
4381
        haveit=yes
 
4382
        break
 
4383
      fi
 
4384
    done
 
4385
    if test -z "$haveit"; then
 
4386
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
4387
    fi
 
4388
  done
 
4389
 
 
4390
 
 
4391
  echo "$as_me:$LINENO: checking for iconv" >&5
 
4392
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
4393
if test "${am_cv_func_iconv+set}" = set; then
 
4394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4395
else
 
4396
 
 
4397
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
4398
    am_cv_lib_iconv=no
 
4399
    cat >conftest.$ac_ext <<_ACEOF
 
4400
/* confdefs.h.  */
 
4401
_ACEOF
 
4402
cat confdefs.h >>conftest.$ac_ext
 
4403
cat >>conftest.$ac_ext <<_ACEOF
 
4404
/* end confdefs.h.  */
 
4405
#include <stdlib.h>
 
4406
#include <iconv.h>
 
4407
int
 
4408
main ()
 
4409
{
 
4410
iconv_t cd = iconv_open("","");
 
4411
       iconv(cd,NULL,NULL,NULL,NULL);
 
4412
       iconv_close(cd);
 
4413
  ;
 
4414
  return 0;
 
4415
}
 
4416
_ACEOF
 
4417
rm -f conftest.$ac_objext conftest$ac_exeext
 
4418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4419
  (eval $ac_link) 2>conftest.er1
 
4420
  ac_status=$?
 
4421
  grep -v '^ *+' conftest.er1 >conftest.err
 
4422
  rm -f conftest.er1
 
4423
  cat conftest.err >&5
 
4424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4425
  (exit $ac_status); } &&
 
4426
         { ac_try='test -z "$ac_c_werror_flag"
 
4427
                         || test ! -s conftest.err'
 
4428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4429
  (eval $ac_try) 2>&5
 
4430
  ac_status=$?
 
4431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4432
  (exit $ac_status); }; } &&
 
4433
         { ac_try='test -s conftest$ac_exeext'
 
4434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4435
  (eval $ac_try) 2>&5
 
4436
  ac_status=$?
 
4437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4438
  (exit $ac_status); }; }; then
 
4439
  am_cv_func_iconv=yes
 
4440
else
 
4441
  echo "$as_me: failed program was:" >&5
 
4442
sed 's/^/| /' conftest.$ac_ext >&5
 
4443
 
 
4444
fi
 
4445
rm -f conftest.err conftest.$ac_objext \
 
4446
      conftest$ac_exeext conftest.$ac_ext
 
4447
    if test "$am_cv_func_iconv" != yes; then
 
4448
      am_save_LIBS="$LIBS"
 
4449
      LIBS="$LIBS $LIBICONV"
 
4450
      cat >conftest.$ac_ext <<_ACEOF
 
4451
/* confdefs.h.  */
 
4452
_ACEOF
 
4453
cat confdefs.h >>conftest.$ac_ext
 
4454
cat >>conftest.$ac_ext <<_ACEOF
 
4455
/* end confdefs.h.  */
 
4456
#include <stdlib.h>
 
4457
#include <iconv.h>
 
4458
int
 
4459
main ()
 
4460
{
 
4461
iconv_t cd = iconv_open("","");
 
4462
         iconv(cd,NULL,NULL,NULL,NULL);
 
4463
         iconv_close(cd);
 
4464
  ;
 
4465
  return 0;
 
4466
}
 
4467
_ACEOF
 
4468
rm -f conftest.$ac_objext conftest$ac_exeext
 
4469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4470
  (eval $ac_link) 2>conftest.er1
 
4471
  ac_status=$?
 
4472
  grep -v '^ *+' conftest.er1 >conftest.err
 
4473
  rm -f conftest.er1
 
4474
  cat conftest.err >&5
 
4475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4476
  (exit $ac_status); } &&
 
4477
         { ac_try='test -z "$ac_c_werror_flag"
 
4478
                         || test ! -s conftest.err'
 
4479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4480
  (eval $ac_try) 2>&5
 
4481
  ac_status=$?
 
4482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4483
  (exit $ac_status); }; } &&
 
4484
         { ac_try='test -s conftest$ac_exeext'
 
4485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4486
  (eval $ac_try) 2>&5
 
4487
  ac_status=$?
 
4488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4489
  (exit $ac_status); }; }; then
 
4490
  am_cv_lib_iconv=yes
 
4491
        am_cv_func_iconv=yes
 
4492
else
 
4493
  echo "$as_me: failed program was:" >&5
 
4494
sed 's/^/| /' conftest.$ac_ext >&5
 
4495
 
 
4496
fi
 
4497
rm -f conftest.err conftest.$ac_objext \
 
4498
      conftest$ac_exeext conftest.$ac_ext
 
4499
      LIBS="$am_save_LIBS"
 
4500
    fi
 
4501
 
 
4502
fi
 
4503
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
4504
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
4505
  if test "$am_cv_func_iconv" = yes; then
 
4506
 
 
4507
cat >>confdefs.h <<\_ACEOF
 
4508
#define HAVE_ICONV 1
 
4509
_ACEOF
 
4510
 
 
4511
  fi
 
4512
  if test "$am_cv_lib_iconv" = yes; then
 
4513
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
4514
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
4515
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
4516
echo "${ECHO_T}$LIBICONV" >&6
 
4517
  else
 
4518
            CPPFLAGS="$am_save_CPPFLAGS"
 
4519
    LIBICONV=
 
4520
    LTLIBICONV=
 
4521
  fi
 
4522
 
 
4523
 
 
4524
 
 
4525
 
 
4526
 
 
4527
 
 
4528
    use_additional=yes
 
4529
 
 
4530
  acl_save_prefix="$prefix"
 
4531
  prefix="$acl_final_prefix"
 
4532
  acl_save_exec_prefix="$exec_prefix"
 
4533
  exec_prefix="$acl_final_exec_prefix"
 
4534
 
 
4535
    eval additional_includedir=\"$includedir\"
 
4536
    eval additional_libdir=\"$libdir\"
 
4537
 
 
4538
  exec_prefix="$acl_save_exec_prefix"
 
4539
  prefix="$acl_save_prefix"
 
4540
 
 
4541
 
 
4542
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
4543
if test "${with_libintl_prefix+set}" = set; then
 
4544
  withval="$with_libintl_prefix"
 
4545
 
 
4546
    if test "X$withval" = "Xno"; then
 
4547
      use_additional=no
 
4548
    else
 
4549
      if test "X$withval" = "X"; then
 
4550
 
 
4551
  acl_save_prefix="$prefix"
 
4552
  prefix="$acl_final_prefix"
 
4553
  acl_save_exec_prefix="$exec_prefix"
 
4554
  exec_prefix="$acl_final_exec_prefix"
 
4555
 
 
4556
          eval additional_includedir=\"$includedir\"
 
4557
          eval additional_libdir=\"$libdir\"
 
4558
 
 
4559
  exec_prefix="$acl_save_exec_prefix"
 
4560
  prefix="$acl_save_prefix"
 
4561
 
 
4562
      else
 
4563
        additional_includedir="$withval/include"
 
4564
        additional_libdir="$withval/lib"
 
4565
      fi
 
4566
    fi
 
4567
 
 
4568
fi;
 
4569
      LIBINTL=
 
4570
  LTLIBINTL=
 
4571
  INCINTL=
 
4572
  rpathdirs=
 
4573
  ltrpathdirs=
 
4574
  names_already_handled=
 
4575
  names_next_round='intl '
 
4576
  while test -n "$names_next_round"; do
 
4577
    names_this_round="$names_next_round"
 
4578
    names_next_round=
 
4579
    for name in $names_this_round; do
 
4580
      already_handled=
 
4581
      for n in $names_already_handled; do
 
4582
        if test "$n" = "$name"; then
 
4583
          already_handled=yes
 
4584
          break
 
4585
        fi
 
4586
      done
 
4587
      if test -z "$already_handled"; then
 
4588
        names_already_handled="$names_already_handled $name"
 
4589
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
4590
        eval value=\"\$HAVE_LIB$uppername\"
 
4591
        if test -n "$value"; then
 
4592
          if test "$value" = yes; then
 
4593
            eval value=\"\$LIB$uppername\"
 
4594
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
4595
            eval value=\"\$LTLIB$uppername\"
 
4596
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
4597
          else
 
4598
                                    :
 
4599
          fi
 
4600
        else
 
4601
                              found_dir=
 
4602
          found_la=
 
4603
          found_so=
 
4604
          found_a=
 
4605
          if test $use_additional = yes; then
 
4606
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
4607
              found_dir="$additional_libdir"
 
4608
              found_so="$additional_libdir/lib$name.$shlibext"
 
4609
              if test -f "$additional_libdir/lib$name.la"; then
 
4610
                found_la="$additional_libdir/lib$name.la"
 
4611
              fi
 
4612
            else
 
4613
              if test -f "$additional_libdir/lib$name.$libext"; then
 
4614
                found_dir="$additional_libdir"
 
4615
                found_a="$additional_libdir/lib$name.$libext"
 
4616
                if test -f "$additional_libdir/lib$name.la"; then
 
4617
                  found_la="$additional_libdir/lib$name.la"
 
4618
                fi
 
4619
              fi
 
4620
            fi
 
4621
          fi
 
4622
          if test "X$found_dir" = "X"; then
 
4623
            for x in $LDFLAGS $LTLIBINTL; do
 
4624
 
 
4625
  acl_save_prefix="$prefix"
 
4626
  prefix="$acl_final_prefix"
 
4627
  acl_save_exec_prefix="$exec_prefix"
 
4628
  exec_prefix="$acl_final_exec_prefix"
 
4629
  eval x=\"$x\"
 
4630
  exec_prefix="$acl_save_exec_prefix"
 
4631
  prefix="$acl_save_prefix"
 
4632
 
 
4633
              case "$x" in
 
4634
                -L*)
 
4635
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
4636
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
4637
                    found_dir="$dir"
 
4638
                    found_so="$dir/lib$name.$shlibext"
 
4639
                    if test -f "$dir/lib$name.la"; then
 
4640
                      found_la="$dir/lib$name.la"
 
4641
                    fi
 
4642
                  else
 
4643
                    if test -f "$dir/lib$name.$libext"; then
 
4644
                      found_dir="$dir"
 
4645
                      found_a="$dir/lib$name.$libext"
 
4646
                      if test -f "$dir/lib$name.la"; then
 
4647
                        found_la="$dir/lib$name.la"
 
4648
                      fi
 
4649
                    fi
 
4650
                  fi
 
4651
                  ;;
 
4652
              esac
 
4653
              if test "X$found_dir" != "X"; then
 
4654
                break
 
4655
              fi
 
4656
            done
 
4657
          fi
 
4658
          if test "X$found_dir" != "X"; then
 
4659
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
4660
            if test "X$found_so" != "X"; then
 
4661
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
4662
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
4663
              else
 
4664
                                                                                haveit=
 
4665
                for x in $ltrpathdirs; do
 
4666
                  if test "X$x" = "X$found_dir"; then
 
4667
                    haveit=yes
 
4668
                    break
 
4669
                  fi
 
4670
                done
 
4671
                if test -z "$haveit"; then
 
4672
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
4673
                fi
 
4674
                                if test "$hardcode_direct" = yes; then
 
4675
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
4676
                else
 
4677
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
4678
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
4679
                                                            haveit=
 
4680
                    for x in $rpathdirs; do
 
4681
                      if test "X$x" = "X$found_dir"; then
 
4682
                        haveit=yes
 
4683
                        break
 
4684
                      fi
 
4685
                    done
 
4686
                    if test -z "$haveit"; then
 
4687
                      rpathdirs="$rpathdirs $found_dir"
 
4688
                    fi
 
4689
                  else
 
4690
                                                                                haveit=
 
4691
                    for x in $LDFLAGS $LIBINTL; do
 
4692
 
 
4693
  acl_save_prefix="$prefix"
 
4694
  prefix="$acl_final_prefix"
 
4695
  acl_save_exec_prefix="$exec_prefix"
 
4696
  exec_prefix="$acl_final_exec_prefix"
 
4697
  eval x=\"$x\"
 
4698
  exec_prefix="$acl_save_exec_prefix"
 
4699
  prefix="$acl_save_prefix"
 
4700
 
 
4701
                      if test "X$x" = "X-L$found_dir"; then
 
4702
                        haveit=yes
 
4703
                        break
 
4704
                      fi
 
4705
                    done
 
4706
                    if test -z "$haveit"; then
 
4707
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
4708
                    fi
 
4709
                    if test "$hardcode_minus_L" != no; then
 
4710
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
4711
                    else
 
4712
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
4713
                    fi
 
4714
                  fi
 
4715
                fi
 
4716
              fi
 
4717
            else
 
4718
              if test "X$found_a" != "X"; then
 
4719
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
4720
              else
 
4721
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
4722
              fi
 
4723
            fi
 
4724
                        additional_includedir=
 
4725
            case "$found_dir" in
 
4726
              */lib | */lib/)
 
4727
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
4728
                additional_includedir="$basedir/include"
 
4729
                ;;
 
4730
            esac
 
4731
            if test "X$additional_includedir" != "X"; then
 
4732
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
4733
                haveit=
 
4734
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
4735
                  if test -n "$GCC"; then
 
4736
                    case $host_os in
 
4737
                      linux*) haveit=yes;;
 
4738
                    esac
 
4739
                  fi
 
4740
                fi
 
4741
                if test -z "$haveit"; then
 
4742
                  for x in $CPPFLAGS $INCINTL; do
 
4743
 
 
4744
  acl_save_prefix="$prefix"
 
4745
  prefix="$acl_final_prefix"
 
4746
  acl_save_exec_prefix="$exec_prefix"
 
4747
  exec_prefix="$acl_final_exec_prefix"
 
4748
  eval x=\"$x\"
 
4749
  exec_prefix="$acl_save_exec_prefix"
 
4750
  prefix="$acl_save_prefix"
 
4751
 
 
4752
                    if test "X$x" = "X-I$additional_includedir"; then
 
4753
                      haveit=yes
 
4754
                      break
 
4755
                    fi
 
4756
                  done
 
4757
                  if test -z "$haveit"; then
 
4758
                    if test -d "$additional_includedir"; then
 
4759
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
4760
                    fi
 
4761
                  fi
 
4762
                fi
 
4763
              fi
 
4764
            fi
 
4765
                        if test -n "$found_la"; then
 
4766
                                                        save_libdir="$libdir"
 
4767
              case "$found_la" in
 
4768
                */* | *\\*) . "$found_la" ;;
 
4769
                *) . "./$found_la" ;;
 
4770
              esac
 
4771
              libdir="$save_libdir"
 
4772
                            for dep in $dependency_libs; do
 
4773
                case "$dep" in
 
4774
                  -L*)
 
4775
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
4776
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
4777
                      haveit=
 
4778
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
4779
                        if test -n "$GCC"; then
 
4780
                          case $host_os in
 
4781
                            linux*) haveit=yes;;
 
4782
                          esac
 
4783
                        fi
 
4784
                      fi
 
4785
                      if test -z "$haveit"; then
 
4786
                        haveit=
 
4787
                        for x in $LDFLAGS $LIBINTL; do
 
4788
 
 
4789
  acl_save_prefix="$prefix"
 
4790
  prefix="$acl_final_prefix"
 
4791
  acl_save_exec_prefix="$exec_prefix"
 
4792
  exec_prefix="$acl_final_exec_prefix"
 
4793
  eval x=\"$x\"
 
4794
  exec_prefix="$acl_save_exec_prefix"
 
4795
  prefix="$acl_save_prefix"
 
4796
 
 
4797
                          if test "X$x" = "X-L$additional_libdir"; then
 
4798
                            haveit=yes
 
4799
                            break
 
4800
                          fi
 
4801
                        done
 
4802
                        if test -z "$haveit"; then
 
4803
                          if test -d "$additional_libdir"; then
 
4804
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
4805
                          fi
 
4806
                        fi
 
4807
                        haveit=
 
4808
                        for x in $LDFLAGS $LTLIBINTL; do
 
4809
 
 
4810
  acl_save_prefix="$prefix"
 
4811
  prefix="$acl_final_prefix"
 
4812
  acl_save_exec_prefix="$exec_prefix"
 
4813
  exec_prefix="$acl_final_exec_prefix"
 
4814
  eval x=\"$x\"
 
4815
  exec_prefix="$acl_save_exec_prefix"
 
4816
  prefix="$acl_save_prefix"
 
4817
 
 
4818
                          if test "X$x" = "X-L$additional_libdir"; then
 
4819
                            haveit=yes
 
4820
                            break
 
4821
                          fi
 
4822
                        done
 
4823
                        if test -z "$haveit"; then
 
4824
                          if test -d "$additional_libdir"; then
 
4825
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
4826
                          fi
 
4827
                        fi
 
4828
                      fi
 
4829
                    fi
 
4830
                    ;;
 
4831
                  -R*)
 
4832
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
4833
                    if test "$enable_rpath" != no; then
 
4834
                                                                  haveit=
 
4835
                      for x in $rpathdirs; do
 
4836
                        if test "X$x" = "X$dir"; then
 
4837
                          haveit=yes
 
4838
                          break
 
4839
                        fi
 
4840
                      done
 
4841
                      if test -z "$haveit"; then
 
4842
                        rpathdirs="$rpathdirs $dir"
 
4843
                      fi
 
4844
                                                                  haveit=
 
4845
                      for x in $ltrpathdirs; do
 
4846
                        if test "X$x" = "X$dir"; then
 
4847
                          haveit=yes
 
4848
                          break
 
4849
                        fi
 
4850
                      done
 
4851
                      if test -z "$haveit"; then
 
4852
                        ltrpathdirs="$ltrpathdirs $dir"
 
4853
                      fi
 
4854
                    fi
 
4855
                    ;;
 
4856
                  -l*)
 
4857
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
4858
                    ;;
 
4859
                  *.la)
 
4860
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
4861
                    ;;
 
4862
                  *)
 
4863
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
4864
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
4865
                    ;;
 
4866
                esac
 
4867
              done
 
4868
            fi
 
4869
          else
 
4870
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
4871
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
4872
          fi
 
4873
        fi
 
4874
      fi
 
4875
    done
 
4876
  done
 
4877
  if test "X$rpathdirs" != "X"; then
 
4878
    if test -n "$hardcode_libdir_separator"; then
 
4879
                        alldirs=
 
4880
      for found_dir in $rpathdirs; do
 
4881
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
4882
      done
 
4883
            acl_save_libdir="$libdir"
 
4884
      libdir="$alldirs"
 
4885
      eval flag=\"$hardcode_libdir_flag_spec\"
 
4886
      libdir="$acl_save_libdir"
 
4887
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
4888
    else
 
4889
            for found_dir in $rpathdirs; do
 
4890
        acl_save_libdir="$libdir"
 
4891
        libdir="$found_dir"
 
4892
        eval flag=\"$hardcode_libdir_flag_spec\"
 
4893
        libdir="$acl_save_libdir"
 
4894
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
4895
      done
 
4896
    fi
 
4897
  fi
 
4898
  if test "X$ltrpathdirs" != "X"; then
 
4899
            for found_dir in $ltrpathdirs; do
 
4900
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
4901
    done
 
4902
  fi
 
4903
 
 
4904
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
4905
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
4906
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
4907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4908
else
 
4909
  gt_save_CPPFLAGS="$CPPFLAGS"
 
4910
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
4911
            gt_save_LIBS="$LIBS"
 
4912
            LIBS="$LIBS $LIBINTL"
 
4913
                        cat >conftest.$ac_ext <<_ACEOF
 
4914
/* confdefs.h.  */
 
4915
_ACEOF
 
4916
cat confdefs.h >>conftest.$ac_ext
 
4917
cat >>conftest.$ac_ext <<_ACEOF
 
4918
/* end confdefs.h.  */
 
4919
#include <libintl.h>
 
4920
extern int _nl_msg_cat_cntr;
 
4921
extern
 
4922
#ifdef __cplusplus
 
4923
"C"
 
4924
#endif
 
4925
const char *_nl_expand_alias ();
 
4926
int
 
4927
main ()
 
4928
{
 
4929
bindtextdomain ("", "");
 
4930
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
4931
  ;
 
4932
  return 0;
 
4933
}
 
4934
_ACEOF
 
4935
rm -f conftest.$ac_objext conftest$ac_exeext
 
4936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4937
  (eval $ac_link) 2>conftest.er1
 
4938
  ac_status=$?
 
4939
  grep -v '^ *+' conftest.er1 >conftest.err
 
4940
  rm -f conftest.er1
 
4941
  cat conftest.err >&5
 
4942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4943
  (exit $ac_status); } &&
 
4944
         { ac_try='test -z "$ac_c_werror_flag"
 
4945
                         || test ! -s conftest.err'
 
4946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4947
  (eval $ac_try) 2>&5
 
4948
  ac_status=$?
 
4949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4950
  (exit $ac_status); }; } &&
 
4951
         { ac_try='test -s conftest$ac_exeext'
 
4952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4953
  (eval $ac_try) 2>&5
 
4954
  ac_status=$?
 
4955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4956
  (exit $ac_status); }; }; then
 
4957
  gt_cv_func_gnugettext1_libintl=yes
 
4958
else
 
4959
  echo "$as_me: failed program was:" >&5
 
4960
sed 's/^/| /' conftest.$ac_ext >&5
 
4961
 
 
4962
gt_cv_func_gnugettext1_libintl=no
 
4963
fi
 
4964
rm -f conftest.err conftest.$ac_objext \
 
4965
      conftest$ac_exeext conftest.$ac_ext
 
4966
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
4967
              LIBS="$LIBS $LIBICONV"
 
4968
              cat >conftest.$ac_ext <<_ACEOF
 
4969
/* confdefs.h.  */
 
4970
_ACEOF
 
4971
cat confdefs.h >>conftest.$ac_ext
 
4972
cat >>conftest.$ac_ext <<_ACEOF
 
4973
/* end confdefs.h.  */
 
4974
#include <libintl.h>
 
4975
extern int _nl_msg_cat_cntr;
 
4976
extern
 
4977
#ifdef __cplusplus
 
4978
"C"
 
4979
#endif
 
4980
const char *_nl_expand_alias ();
 
4981
int
 
4982
main ()
 
4983
{
 
4984
bindtextdomain ("", "");
 
4985
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
4986
  ;
 
4987
  return 0;
 
4988
}
 
4989
_ACEOF
 
4990
rm -f conftest.$ac_objext conftest$ac_exeext
 
4991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4992
  (eval $ac_link) 2>conftest.er1
 
4993
  ac_status=$?
 
4994
  grep -v '^ *+' conftest.er1 >conftest.err
 
4995
  rm -f conftest.er1
 
4996
  cat conftest.err >&5
 
4997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4998
  (exit $ac_status); } &&
 
4999
         { ac_try='test -z "$ac_c_werror_flag"
 
5000
                         || test ! -s conftest.err'
 
5001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5002
  (eval $ac_try) 2>&5
 
5003
  ac_status=$?
 
5004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5005
  (exit $ac_status); }; } &&
 
5006
         { ac_try='test -s conftest$ac_exeext'
 
5007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5008
  (eval $ac_try) 2>&5
 
5009
  ac_status=$?
 
5010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5011
  (exit $ac_status); }; }; then
 
5012
  LIBINTL="$LIBINTL $LIBICONV"
 
5013
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
5014
                gt_cv_func_gnugettext1_libintl=yes
 
5015
 
 
5016
else
 
5017
  echo "$as_me: failed program was:" >&5
 
5018
sed 's/^/| /' conftest.$ac_ext >&5
 
5019
 
 
5020
fi
 
5021
rm -f conftest.err conftest.$ac_objext \
 
5022
      conftest$ac_exeext conftest.$ac_ext
 
5023
            fi
 
5024
            CPPFLAGS="$gt_save_CPPFLAGS"
 
5025
            LIBS="$gt_save_LIBS"
 
5026
fi
 
5027
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
5028
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
5029
        fi
 
5030
 
 
5031
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
5032
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
5033
                && test "$PACKAGE" != gettext-runtime \
 
5034
                && test "$PACKAGE" != gettext-tools; }; then
 
5035
          gt_use_preinstalled_gnugettext=yes
 
5036
        else
 
5037
                    LIBINTL=
 
5038
          LTLIBINTL=
 
5039
          INCINTL=
 
5040
        fi
 
5041
 
 
5042
 
 
5043
 
 
5044
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
5045
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
5046
 
 
5047
cat >>confdefs.h <<\_ACEOF
 
5048
#define ENABLE_NLS 1
 
5049
_ACEOF
 
5050
 
 
5051
    else
 
5052
      USE_NLS=no
 
5053
    fi
 
5054
  fi
 
5055
 
 
5056
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
5057
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
5058
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
5059
echo "${ECHO_T}$USE_NLS" >&6
 
5060
  if test "$USE_NLS" = "yes"; then
 
5061
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
5062
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
5063
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
5064
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
5065
        gt_source="external libintl"
 
5066
      else
 
5067
        gt_source="libc"
 
5068
      fi
 
5069
    else
 
5070
      gt_source="included intl directory"
 
5071
    fi
 
5072
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
5073
echo "${ECHO_T}$gt_source" >&6
 
5074
  fi
 
5075
 
 
5076
  if test "$USE_NLS" = "yes"; then
 
5077
 
 
5078
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
5079
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
5080
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
5081
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
5082
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
5083
echo "${ECHO_T}$LIBINTL" >&6
 
5084
 
 
5085
  for element in $INCINTL; do
 
5086
    haveit=
 
5087
    for x in $CPPFLAGS; do
 
5088
 
 
5089
  acl_save_prefix="$prefix"
 
5090
  prefix="$acl_final_prefix"
 
5091
  acl_save_exec_prefix="$exec_prefix"
 
5092
  exec_prefix="$acl_final_exec_prefix"
 
5093
  eval x=\"$x\"
 
5094
  exec_prefix="$acl_save_exec_prefix"
 
5095
  prefix="$acl_save_prefix"
 
5096
 
 
5097
      if test "X$x" = "X$element"; then
 
5098
        haveit=yes
 
5099
        break
 
5100
      fi
 
5101
    done
 
5102
    if test -z "$haveit"; then
 
5103
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
5104
    fi
 
5105
  done
 
5106
 
 
5107
      fi
 
5108
 
 
5109
 
 
5110
cat >>confdefs.h <<\_ACEOF
 
5111
#define HAVE_GETTEXT 1
 
5112
_ACEOF
 
5113
 
 
5114
 
 
5115
cat >>confdefs.h <<\_ACEOF
 
5116
#define HAVE_DCGETTEXT 1
 
5117
_ACEOF
 
5118
 
 
5119
    fi
 
5120
 
 
5121
        POSUB=po
 
5122
  fi
 
5123
 
 
5124
 
 
5125
 
 
5126
    INTLLIBS="$LIBINTL"
 
5127
 
 
5128
 
 
5129
 
 
5130
 
 
5131
 
3410
5132
 
3411
5133
 
3412
5134
# Checks for header files.
4244
5966
done
4245
5967
 
4246
5968
 
 
5969
 
 
5970
for ac_header in sys/sockio.h net/if_arp.h
 
5971
do
 
5972
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5973
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5974
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5975
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5976
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5978
fi
 
5979
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5980
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5981
else
 
5982
  # Is the header compilable?
 
5983
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5984
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5985
cat >conftest.$ac_ext <<_ACEOF
 
5986
/* confdefs.h.  */
 
5987
_ACEOF
 
5988
cat confdefs.h >>conftest.$ac_ext
 
5989
cat >>conftest.$ac_ext <<_ACEOF
 
5990
/* end confdefs.h.  */
 
5991
$ac_includes_default
 
5992
#include <$ac_header>
 
5993
_ACEOF
 
5994
rm -f conftest.$ac_objext
 
5995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5996
  (eval $ac_compile) 2>conftest.er1
 
5997
  ac_status=$?
 
5998
  grep -v '^ *+' conftest.er1 >conftest.err
 
5999
  rm -f conftest.er1
 
6000
  cat conftest.err >&5
 
6001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6002
  (exit $ac_status); } &&
 
6003
         { ac_try='test -z "$ac_c_werror_flag"
 
6004
                         || test ! -s conftest.err'
 
6005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6006
  (eval $ac_try) 2>&5
 
6007
  ac_status=$?
 
6008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); }; } &&
 
6010
         { ac_try='test -s conftest.$ac_objext'
 
6011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6012
  (eval $ac_try) 2>&5
 
6013
  ac_status=$?
 
6014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6015
  (exit $ac_status); }; }; then
 
6016
  ac_header_compiler=yes
 
6017
else
 
6018
  echo "$as_me: failed program was:" >&5
 
6019
sed 's/^/| /' conftest.$ac_ext >&5
 
6020
 
 
6021
ac_header_compiler=no
 
6022
fi
 
6023
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6024
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6025
echo "${ECHO_T}$ac_header_compiler" >&6
 
6026
 
 
6027
# Is the header present?
 
6028
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6029
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6030
cat >conftest.$ac_ext <<_ACEOF
 
6031
/* confdefs.h.  */
 
6032
_ACEOF
 
6033
cat confdefs.h >>conftest.$ac_ext
 
6034
cat >>conftest.$ac_ext <<_ACEOF
 
6035
/* end confdefs.h.  */
 
6036
#include <$ac_header>
 
6037
_ACEOF
 
6038
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6039
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6040
  ac_status=$?
 
6041
  grep -v '^ *+' conftest.er1 >conftest.err
 
6042
  rm -f conftest.er1
 
6043
  cat conftest.err >&5
 
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6045
  (exit $ac_status); } >/dev/null; then
 
6046
  if test -s conftest.err; then
 
6047
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6048
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6049
  else
 
6050
    ac_cpp_err=
 
6051
  fi
 
6052
else
 
6053
  ac_cpp_err=yes
 
6054
fi
 
6055
if test -z "$ac_cpp_err"; then
 
6056
  ac_header_preproc=yes
 
6057
else
 
6058
  echo "$as_me: failed program was:" >&5
 
6059
sed 's/^/| /' conftest.$ac_ext >&5
 
6060
 
 
6061
  ac_header_preproc=no
 
6062
fi
 
6063
rm -f conftest.err conftest.$ac_ext
 
6064
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6065
echo "${ECHO_T}$ac_header_preproc" >&6
 
6066
 
 
6067
# So?  What about this header?
 
6068
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6069
  yes:no: )
 
6070
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6071
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6072
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6073
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6074
    ac_header_preproc=yes
 
6075
    ;;
 
6076
  no:yes:* )
 
6077
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6078
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6079
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6080
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6081
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6082
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6083
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6084
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6085
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6086
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6087
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6088
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6089
    (
 
6090
      cat <<\_ASBOX
 
6091
## ----------------------------- ##
 
6092
## Report this to bugs@ucarp.org ##
 
6093
## ----------------------------- ##
 
6094
_ASBOX
 
6095
    ) |
 
6096
      sed "s/^/$as_me: WARNING:     /" >&2
 
6097
    ;;
 
6098
esac
 
6099
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6100
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6101
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6103
else
 
6104
  eval "$as_ac_Header=\$ac_header_preproc"
 
6105
fi
 
6106
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6107
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6108
 
 
6109
fi
 
6110
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6111
  cat >>confdefs.h <<_ACEOF
 
6112
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6113
_ACEOF
 
6114
 
 
6115
fi
 
6116
 
 
6117
done
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
for ac_header in fcntl.h sys/fcntl.h ioctl.h sys/ioctl.h
 
6124
do
 
6125
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6127
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6128
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6129
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6131
fi
 
6132
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6133
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6134
else
 
6135
  # Is the header compilable?
 
6136
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6137
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6138
cat >conftest.$ac_ext <<_ACEOF
 
6139
/* confdefs.h.  */
 
6140
_ACEOF
 
6141
cat confdefs.h >>conftest.$ac_ext
 
6142
cat >>conftest.$ac_ext <<_ACEOF
 
6143
/* end confdefs.h.  */
 
6144
$ac_includes_default
 
6145
#include <$ac_header>
 
6146
_ACEOF
 
6147
rm -f conftest.$ac_objext
 
6148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6149
  (eval $ac_compile) 2>conftest.er1
 
6150
  ac_status=$?
 
6151
  grep -v '^ *+' conftest.er1 >conftest.err
 
6152
  rm -f conftest.er1
 
6153
  cat conftest.err >&5
 
6154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6155
  (exit $ac_status); } &&
 
6156
         { ac_try='test -z "$ac_c_werror_flag"
 
6157
                         || test ! -s conftest.err'
 
6158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6159
  (eval $ac_try) 2>&5
 
6160
  ac_status=$?
 
6161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6162
  (exit $ac_status); }; } &&
 
6163
         { ac_try='test -s conftest.$ac_objext'
 
6164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6165
  (eval $ac_try) 2>&5
 
6166
  ac_status=$?
 
6167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6168
  (exit $ac_status); }; }; then
 
6169
  ac_header_compiler=yes
 
6170
else
 
6171
  echo "$as_me: failed program was:" >&5
 
6172
sed 's/^/| /' conftest.$ac_ext >&5
 
6173
 
 
6174
ac_header_compiler=no
 
6175
fi
 
6176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6177
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6178
echo "${ECHO_T}$ac_header_compiler" >&6
 
6179
 
 
6180
# Is the header present?
 
6181
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6182
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6183
cat >conftest.$ac_ext <<_ACEOF
 
6184
/* confdefs.h.  */
 
6185
_ACEOF
 
6186
cat confdefs.h >>conftest.$ac_ext
 
6187
cat >>conftest.$ac_ext <<_ACEOF
 
6188
/* end confdefs.h.  */
 
6189
#include <$ac_header>
 
6190
_ACEOF
 
6191
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6192
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6193
  ac_status=$?
 
6194
  grep -v '^ *+' conftest.er1 >conftest.err
 
6195
  rm -f conftest.er1
 
6196
  cat conftest.err >&5
 
6197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6198
  (exit $ac_status); } >/dev/null; then
 
6199
  if test -s conftest.err; then
 
6200
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6201
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6202
  else
 
6203
    ac_cpp_err=
 
6204
  fi
 
6205
else
 
6206
  ac_cpp_err=yes
 
6207
fi
 
6208
if test -z "$ac_cpp_err"; then
 
6209
  ac_header_preproc=yes
 
6210
else
 
6211
  echo "$as_me: failed program was:" >&5
 
6212
sed 's/^/| /' conftest.$ac_ext >&5
 
6213
 
 
6214
  ac_header_preproc=no
 
6215
fi
 
6216
rm -f conftest.err conftest.$ac_ext
 
6217
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6218
echo "${ECHO_T}$ac_header_preproc" >&6
 
6219
 
 
6220
# So?  What about this header?
 
6221
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6222
  yes:no: )
 
6223
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6224
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6225
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6226
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6227
    ac_header_preproc=yes
 
6228
    ;;
 
6229
  no:yes:* )
 
6230
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6231
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6232
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6233
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6234
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6235
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6236
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6237
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6238
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6239
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6240
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6241
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6242
    (
 
6243
      cat <<\_ASBOX
 
6244
## ----------------------------- ##
 
6245
## Report this to bugs@ucarp.org ##
 
6246
## ----------------------------- ##
 
6247
_ASBOX
 
6248
    ) |
 
6249
      sed "s/^/$as_me: WARNING:     /" >&2
 
6250
    ;;
 
6251
esac
 
6252
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6253
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6254
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6256
else
 
6257
  eval "$as_ac_Header=\$ac_header_preproc"
 
6258
fi
 
6259
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6260
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6261
 
 
6262
fi
 
6263
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6264
  cat >>confdefs.h <<_ACEOF
 
6265
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6266
_ACEOF
 
6267
 
 
6268
fi
 
6269
 
 
6270
done
 
6271
 
 
6272
 
4247
6273
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4248
6274
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4249
6275
if test "${ac_cv_c_bigendian+set}" = set; then
4475
6501
esac
4476
6502
 
4477
6503
 
 
6504
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
6505
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
6506
if test "${ac_cv_type_signal+set}" = set; then
 
6507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6508
else
 
6509
  cat >conftest.$ac_ext <<_ACEOF
 
6510
/* confdefs.h.  */
 
6511
_ACEOF
 
6512
cat confdefs.h >>conftest.$ac_ext
 
6513
cat >>conftest.$ac_ext <<_ACEOF
 
6514
/* end confdefs.h.  */
 
6515
#include <sys/types.h>
 
6516
#include <signal.h>
 
6517
#ifdef signal
 
6518
# undef signal
 
6519
#endif
 
6520
#ifdef __cplusplus
 
6521
extern "C" void (*signal (int, void (*)(int)))(int);
 
6522
#else
 
6523
void (*signal ()) ();
 
6524
#endif
 
6525
 
 
6526
int
 
6527
main ()
 
6528
{
 
6529
int i;
 
6530
  ;
 
6531
  return 0;
 
6532
}
 
6533
_ACEOF
 
6534
rm -f conftest.$ac_objext
 
6535
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6536
  (eval $ac_compile) 2>conftest.er1
 
6537
  ac_status=$?
 
6538
  grep -v '^ *+' conftest.er1 >conftest.err
 
6539
  rm -f conftest.er1
 
6540
  cat conftest.err >&5
 
6541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6542
  (exit $ac_status); } &&
 
6543
         { ac_try='test -z "$ac_c_werror_flag"
 
6544
                         || test ! -s conftest.err'
 
6545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6546
  (eval $ac_try) 2>&5
 
6547
  ac_status=$?
 
6548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6549
  (exit $ac_status); }; } &&
 
6550
         { ac_try='test -s conftest.$ac_objext'
 
6551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6552
  (eval $ac_try) 2>&5
 
6553
  ac_status=$?
 
6554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6555
  (exit $ac_status); }; }; then
 
6556
  ac_cv_type_signal=void
 
6557
else
 
6558
  echo "$as_me: failed program was:" >&5
 
6559
sed 's/^/| /' conftest.$ac_ext >&5
 
6560
 
 
6561
ac_cv_type_signal=int
 
6562
fi
 
6563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6564
fi
 
6565
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
6566
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
6567
 
 
6568
cat >>confdefs.h <<_ACEOF
 
6569
#define RETSIGTYPE $ac_cv_type_signal
 
6570
_ACEOF
 
6571
 
 
6572
 
4478
6573
echo "$as_me:$LINENO: checking for size_t" >&5
4479
6574
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4480
6575
if test "${ac_cv_type_size_t+set}" = set; then
6442
8537
 
6443
8538
fi
6444
8539
 
6445
 
 
6446
8540
echo "$as_me:$LINENO: checking for gethostbyname" >&5
6447
8541
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6448
8542
if test "${ac_cv_func_gethostbyname+set}" = set; then
6612
8706
 
6613
8707
fi
6614
8708
 
6615
 
 
6616
8709
echo "$as_me:$LINENO: checking for gethostbyname" >&5
6617
8710
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6618
8711
if test "${ac_cv_func_gethostbyname+set}" = set; then
7017
9110
  fi
7018
9111
fi
7019
9112
 
 
9113
# Checks for libraries.
 
9114
 
 
9115
echo "$as_me:$LINENO: checking for pcap_lookupdev in -lpcap" >&5
 
9116
echo $ECHO_N "checking for pcap_lookupdev in -lpcap... $ECHO_C" >&6
 
9117
if test "${ac_cv_lib_pcap_pcap_lookupdev+set}" = set; then
 
9118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9119
else
 
9120
  ac_check_lib_save_LIBS=$LIBS
 
9121
LIBS="-lpcap  $LIBS"
 
9122
cat >conftest.$ac_ext <<_ACEOF
 
9123
/* confdefs.h.  */
 
9124
_ACEOF
 
9125
cat confdefs.h >>conftest.$ac_ext
 
9126
cat >>conftest.$ac_ext <<_ACEOF
 
9127
/* end confdefs.h.  */
 
9128
 
 
9129
/* Override any gcc2 internal prototype to avoid an error.  */
 
9130
#ifdef __cplusplus
 
9131
extern "C"
 
9132
#endif
 
9133
/* We use char because int might match the return type of a gcc2
 
9134
   builtin and then its argument prototype would still apply.  */
 
9135
char pcap_lookupdev ();
 
9136
int
 
9137
main ()
 
9138
{
 
9139
pcap_lookupdev ();
 
9140
  ;
 
9141
  return 0;
 
9142
}
 
9143
_ACEOF
 
9144
rm -f conftest.$ac_objext conftest$ac_exeext
 
9145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9146
  (eval $ac_link) 2>conftest.er1
 
9147
  ac_status=$?
 
9148
  grep -v '^ *+' conftest.er1 >conftest.err
 
9149
  rm -f conftest.er1
 
9150
  cat conftest.err >&5
 
9151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9152
  (exit $ac_status); } &&
 
9153
         { ac_try='test -z "$ac_c_werror_flag"
 
9154
                         || test ! -s conftest.err'
 
9155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9156
  (eval $ac_try) 2>&5
 
9157
  ac_status=$?
 
9158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9159
  (exit $ac_status); }; } &&
 
9160
         { ac_try='test -s conftest$ac_exeext'
 
9161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9162
  (eval $ac_try) 2>&5
 
9163
  ac_status=$?
 
9164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9165
  (exit $ac_status); }; }; then
 
9166
  ac_cv_lib_pcap_pcap_lookupdev=yes
 
9167
else
 
9168
  echo "$as_me: failed program was:" >&5
 
9169
sed 's/^/| /' conftest.$ac_ext >&5
 
9170
 
 
9171
ac_cv_lib_pcap_pcap_lookupdev=no
 
9172
fi
 
9173
rm -f conftest.err conftest.$ac_objext \
 
9174
      conftest$ac_exeext conftest.$ac_ext
 
9175
LIBS=$ac_check_lib_save_LIBS
 
9176
fi
 
9177
echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_lookupdev" >&5
 
9178
echo "${ECHO_T}$ac_cv_lib_pcap_pcap_lookupdev" >&6
 
9179
if test $ac_cv_lib_pcap_pcap_lookupdev = yes; then
 
9180
  cat >>confdefs.h <<_ACEOF
 
9181
#define HAVE_LIBPCAP 1
 
9182
_ACEOF
 
9183
 
 
9184
  LIBS="-lpcap $LIBS"
 
9185
 
 
9186
fi
 
9187
 
 
9188
 
7020
9189
 
7021
9190
echo "$as_me:$LINENO: checking for socklen_t" >&5
7022
9191
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9647
11816
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9648
11817
fi
9649
11818
 
 
11819
echo "$as_me:$LINENO: checking whether syslog names are available" >&5
 
11820
echo $ECHO_N "checking whether syslog names are available... $ECHO_C" >&6
 
11821
cat >conftest.$ac_ext <<_ACEOF
 
11822
/* confdefs.h.  */
 
11823
_ACEOF
 
11824
cat confdefs.h >>conftest.$ac_ext
 
11825
cat >>conftest.$ac_ext <<_ACEOF
 
11826
/* end confdefs.h.  */
 
11827
 
 
11828
#define SYSLOG_NAMES 1
 
11829
#include <stdio.h>
 
11830
#include <syslog.h>
 
11831
 
 
11832
int
 
11833
main ()
 
11834
{
 
11835
 
 
11836
 (void) facilitynames
 
11837
 
 
11838
  ;
 
11839
  return 0;
 
11840
}
 
11841
_ACEOF
 
11842
rm -f conftest.$ac_objext
 
11843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11844
  (eval $ac_compile) 2>conftest.er1
 
11845
  ac_status=$?
 
11846
  grep -v '^ *+' conftest.er1 >conftest.err
 
11847
  rm -f conftest.er1
 
11848
  cat conftest.err >&5
 
11849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11850
  (exit $ac_status); } &&
 
11851
         { ac_try='test -z "$ac_c_werror_flag"
 
11852
                         || test ! -s conftest.err'
 
11853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11854
  (eval $ac_try) 2>&5
 
11855
  ac_status=$?
 
11856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11857
  (exit $ac_status); }; } &&
 
11858
         { ac_try='test -s conftest.$ac_objext'
 
11859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11860
  (eval $ac_try) 2>&5
 
11861
  ac_status=$?
 
11862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11863
  (exit $ac_status); }; }; then
 
11864
 
 
11865
  echo "$as_me:$LINENO: result: yes" >&5
 
11866
echo "${ECHO_T}yes" >&6
 
11867
 
 
11868
cat >>confdefs.h <<\_ACEOF
 
11869
#define HAVE_SYSLOG_NAMES
 
11870
_ACEOF
 
11871
 
 
11872
 
 
11873
else
 
11874
  echo "$as_me: failed program was:" >&5
 
11875
sed 's/^/| /' conftest.$ac_ext >&5
 
11876
 
 
11877
 
 
11878
  echo "$as_me:$LINENO: result: no" >&5
 
11879
echo "${ECHO_T}no" >&6
 
11880
 
 
11881
fi
 
11882
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11883
 
9650
11884
sysconfdir="$CONFDIR"
9651
11885
 
9652
11886
 
9653
 
CPPFLAGS="$CPPFLAGS -DCONFDIR='\"$sysconfdir\"'"
9654
 
 
9655
 
 
9656
 
                                        ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile examples/linux/Makefile"
 
11887
CPPFLAGS="$CPPFLAGS -DCONFDIR=\\\"$sysconfdir\\\""
 
11888
 
 
11889
 
 
11890
                                                                      ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile examples/linux/Makefile examples/bsd/Makefile po/Makefile.in m4/Makefile"
9657
11891
 
9658
11892
 
9659
11893
cat >confcache <<\_ACEOF
10032
12266
} >&5
10033
12267
cat >&5 <<_CSEOF
10034
12268
 
10035
 
This file was extended by ucarp $as_me 0.6, which was
 
12269
This file was extended by ucarp $as_me 1.1, which was
10036
12270
generated by GNU Autoconf 2.59.  Invocation command line was
10037
12271
 
10038
12272
  CONFIG_FILES    = $CONFIG_FILES
10095
12329
 
10096
12330
cat >>$CONFIG_STATUS <<_ACEOF
10097
12331
ac_cs_version="\\
10098
 
ucarp config.status 0.6
 
12332
ucarp config.status 1.1
10099
12333
configured by $0, generated by GNU Autoconf 2.59,
10100
12334
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10101
12335
 
10195
12429
#
10196
12430
 
10197
12431
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
12432
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
12433
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
 
12434
    # from automake.
 
12435
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
12436
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
12437
    LINGUAS="${LINGUAS-%UNSET%}"
 
12438
 
10198
12439
 
10199
12440
_ACEOF
10200
12441
 
10209
12450
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10210
12451
  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10211
12452
  "examples/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/linux/Makefile" ;;
 
12453
  "examples/bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/bsd/Makefile" ;;
 
12454
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
12455
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10212
12456
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
12457
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10213
12458
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10214
12459
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10215
12460
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10335
12580
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10336
12581
s,@CPP@,$CPP,;t t
10337
12582
s,@EGREP@,$EGREP,;t t
 
12583
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
12584
s,@USE_NLS@,$USE_NLS,;t t
 
12585
s,@MSGFMT@,$MSGFMT,;t t
 
12586
s,@GMSGFMT@,$GMSGFMT,;t t
 
12587
s,@XGETTEXT@,$XGETTEXT,;t t
 
12588
s,@MSGMERGE@,$MSGMERGE,;t t
 
12589
s,@build@,$build,;t t
 
12590
s,@build_cpu@,$build_cpu,;t t
 
12591
s,@build_vendor@,$build_vendor,;t t
 
12592
s,@build_os@,$build_os,;t t
 
12593
s,@host@,$host,;t t
 
12594
s,@host_cpu@,$host_cpu,;t t
 
12595
s,@host_vendor@,$host_vendor,;t t
 
12596
s,@host_os@,$host_os,;t t
 
12597
s,@LIBICONV@,$LIBICONV,;t t
 
12598
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
12599
s,@INTLLIBS@,$INTLLIBS,;t t
 
12600
s,@LIBINTL@,$LIBINTL,;t t
 
12601
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
12602
s,@POSUB@,$POSUB,;t t
10338
12603
s,@ALLOCA@,$ALLOCA,;t t
10339
12604
s,@LIBOBJS@,$LIBOBJS,;t t
10340
12605
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10963
13228
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10964
13229
  # Extract the definition of DEP_FILES from the Makefile without
10965
13230
  # running `make'.
10966
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
13231
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10967
13232
  test -z "$DEPDIR" && continue
10968
13233
  # When using ansi2knr, U may be empty or an underscore; expand it
10969
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
13234
  U=`sed -n 's/^U = //p' < "$mf"`
10970
13235
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10971
13236
  # We invoke sed twice because it is the simplest approach to
10972
13237
  # changing $(DEPDIR) to its actual value in the expansion.
10973
 
  for file in `sed -n -e '
 
13238
  for file in `sed -n '
10974
13239
    /^DEP_FILES = .*\\\\$/ {
10975
13240
      s/^DEP_FILES = //
10976
13241
      :loop
11026
13291
  done
11027
13292
done
11028
13293
 ;;
 
13294
    default-1 )
 
13295
    for ac_file in $CONFIG_FILES; do
 
13296
      # Support "outfile[:infile[:infile...]]"
 
13297
      case "$ac_file" in
 
13298
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
13299
      esac
 
13300
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
13301
      case "$ac_file" in */Makefile.in)
 
13302
        # Adjust a relative srcdir.
 
13303
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
13304
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
13305
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
13306
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
13307
        # In autoconf-2.50 it is called $srcdir.
 
13308
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
13309
        case "$ac_given_srcdir" in
 
13310
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
13311
          /*) top_srcdir="$ac_given_srcdir" ;;
 
13312
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
13313
        esac
 
13314
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
13315
          rm -f "$ac_dir/POTFILES"
 
13316
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
13317
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
13318
          POMAKEFILEDEPS="POTFILES.in"
 
13319
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
 
13320
          # on $ac_dir but don't depend on user-specified configuration
 
13321
          # parameters.
 
13322
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
13323
            # The LINGUAS file contains the set of available languages.
 
13324
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
13325
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
13326
            fi
 
13327
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
13328
            # Hide the ALL_LINGUAS assigment from automake.
 
13329
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
13330
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
13331
          else
 
13332
            # The set of available languages was given in configure.in.
 
13333
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
13334
          fi
 
13335
          case "$ac_given_srcdir" in
 
13336
            .) srcdirpre= ;;
 
13337
            *) srcdirpre='$(srcdir)/' ;;
 
13338
          esac
 
13339
          POFILES=
 
13340
          GMOFILES=
 
13341
          UPDATEPOFILES=
 
13342
          DUMMYPOFILES=
 
13343
          for lang in $ALL_LINGUAS; do
 
13344
            POFILES="$POFILES $srcdirpre$lang.po"
 
13345
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
13346
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
13347
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
13348
          done
 
13349
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
13350
          # environment variable.
 
13351
          INST_LINGUAS=
 
13352
          if test -n "$ALL_LINGUAS"; then
 
13353
            for presentlang in $ALL_LINGUAS; do
 
13354
              useit=no
 
13355
              if test "%UNSET%" != "$LINGUAS"; then
 
13356
                desiredlanguages="$LINGUAS"
 
13357
              else
 
13358
                desiredlanguages="$ALL_LINGUAS"
 
13359
              fi
 
13360
              for desiredlang in $desiredlanguages; do
 
13361
                # Use the presentlang catalog if desiredlang is
 
13362
                #   a. equal to presentlang, or
 
13363
                #   b. a variant of presentlang (because in this case,
 
13364
                #      presentlang can be used as a fallback for messages
 
13365
                #      which are not translated in the desiredlang catalog).
 
13366
                case "$desiredlang" in
 
13367
                  "$presentlang"*) useit=yes;;
 
13368
                esac
 
13369
              done
 
13370
              if test $useit = yes; then
 
13371
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
13372
              fi
 
13373
            done
 
13374
          fi
 
13375
          CATALOGS=
 
13376
          if test -n "$INST_LINGUAS"; then
 
13377
            for lang in $INST_LINGUAS; do
 
13378
              CATALOGS="$CATALOGS $lang.gmo"
 
13379
            done
 
13380
          fi
 
13381
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
13382
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
13383
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
13384
            if test -f "$f"; then
 
13385
              case "$f" in
 
13386
                *.orig | *.bak | *~) ;;
 
13387
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
13388
              esac
 
13389
            fi
 
13390
          done
 
13391
        fi
 
13392
        ;;
 
13393
      esac
 
13394
    done ;;
11029
13395
  esac
11030
13396
done
11031
13397
_ACEOF
11059
13425
  $ac_cs_success || { (exit 1); exit 1; }
11060
13426
fi
11061
13427
 
 
13428
 
 
13429
{ echo "$as_me:$LINENO: +--------------------------------------------------------+" >&5
 
13430
echo "$as_me: +--------------------------------------------------------+" >&6;}
 
13431
{ echo "$as_me:$LINENO: | You can subscribe to the UCARP users mailing-list to   |" >&5
 
13432
echo "$as_me: | You can subscribe to the UCARP users mailing-list to   |" >&6;}
 
13433
{ echo "$as_me:$LINENO: | ask for help and to stay informed of new releases.     |" >&5
 
13434
echo "$as_me: | ask for help and to stay informed of new releases.     |" >&6;}
 
13435
{ echo "$as_me:$LINENO: | Go to http://www.ucarp.org/ml/ now!                    |" >&5
 
13436
echo "$as_me: | Go to http://www.ucarp.org/ml/ now!                    |" >&6;}
 
13437
{ echo "$as_me:$LINENO: +--------------------------------------------------------+" >&5
 
13438
echo "$as_me: +--------------------------------------------------------+" >&6;}