Changeset 2408


Ignore:
Timestamp:
Jul 18, 2007, 11:50:04 PM (15 years ago)
Author:
charles
Message:

until we have some way of auto-generating tarballs, automake is going to make life harder for svn users. so in the interim, restore the old configure script and remove the auto-generated files.

Location:
trunk
Files:
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r2404 r2408  
    11#! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for Transmission 0.72Z.
    4 #
    5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=Pan>.
    6 #
    7 # Copyright (C) 2003 Free Software Foundation, Inc.
    8 # This configure script is free software; the Free Software Foundation
    9 # gives unlimited permission to copy, distribute and modify it.
    10 ## --------------------- ##
    11 ## M4sh Initialization.  ##
    12 ## --------------------- ##
    13 
    14 # Be Bourne compatible
    15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    16   emulate sh
    17   NULLCMD=:
    18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    19   # is contrary to our usage.  Disable this feature.
    20   alias -g '${1+"$@"}'='"$@"'
    21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    22   set -o posix
    23 fi
    24 DUALCASE=1; export DUALCASE # for MKS sh
    25 
    26 # Support unset when possible.
    27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    28   as_unset=unset
    29 else
    30   as_unset=false
    31 fi
    32 
    33 
    34 # Work around bugs in pre-3.0 UWIN ksh.
    35 $as_unset ENV MAIL MAILPATH
    36 PS1='$ '
    37 PS2='> '
    38 PS4='+ '
    39 
    40 # NLS nuisances.
    41 for as_var in \
    42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    44   LC_TELEPHONE LC_TIME
    45 do
    46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    47     eval $as_var=C; export $as_var
    48   else
    49     $as_unset $as_var
    50   fi
    51 done
    52 
    53 # Required to use basename.
    54 if expr a : '\(a\)' >/dev/null 2>&1; then
    55   as_expr=expr
    56 else
    57   as_expr=false
    58 fi
    59 
    60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
    61   as_basename=basename
    62 else
    63   as_basename=false
    64 fi
    65 
    66 
    67 # Name of the executable.
    68 as_me=`$as_basename "$0" ||
    69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    70          X"$0" : 'X\(//\)$' \| \
    71          X"$0" : 'X\(/\)$' \| \
    72          .     : '\(.\)' 2>/dev/null ||
    73 echo X/"$0" |
    74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    75           /^X\/\(\/\/\)$/{ s//\1/; q; }
    76           /^X\/\(\/\).*/{ s//\1/; q; }
    77           s/.*/./; q'`
    78 
    79 
    80 # PATH needs CR, and LINENO needs CR and PATH.
    81 # Avoid depending upon Character Ranges.
    82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    85 as_cr_digits='0123456789'
    86 as_cr_alnum=$as_cr_Letters$as_cr_digits
    87 
    88 # The user is always right.
    89 if test "${PATH_SEPARATOR+set}" != set; then
    90   echo "#! /bin/sh" >conf$$.sh
    91   echo  "exit 0"   >>conf$$.sh
    92   chmod +x conf$$.sh
    93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    94     PATH_SEPARATOR=';'
    95   else
    96     PATH_SEPARATOR=:
    97   fi
    98   rm -f conf$$.sh
    99 fi
    100 
    101 
    102   as_lineno_1=$LINENO
    103   as_lineno_2=$LINENO
    104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    105   test "x$as_lineno_1" != "x$as_lineno_2" &&
    106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    107   # Find who we are.  Look in the path if we contain no path at all
    108   # relative or not.
    109   case $0 in
    110     *[\\/]* ) as_myself=$0 ;;
    111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    112 for as_dir in $PATH
    113 do
    114   IFS=$as_save_IFS
    115   test -z "$as_dir" && as_dir=.
    116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    117 done
    118 
    119        ;;
    120   esac
    121   # We did not find ourselves, most probably we were run as `sh COMMAND'
    122   # in which case we are not to be found in the path.
    123   if test "x$as_myself" = x; then
    124     as_myself=$0
    125   fi
    126   if test ! -f "$as_myself"; then
    127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    128    { (exit 1); exit 1; }; }
    129   fi
    130   case $CONFIG_SHELL in
    131   '')
    132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    134 do
    135   IFS=$as_save_IFS
    136   test -z "$as_dir" && as_dir=.
    137   for as_base in sh bash ksh sh5; do
    138          case $as_dir in
    139          /*)
    140            if ("$as_dir/$as_base" -c '
    141   as_lineno_1=$LINENO
    142   as_lineno_2=$LINENO
    143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    144   test "x$as_lineno_1" != "x$as_lineno_2" &&
    145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    148              CONFIG_SHELL=$as_dir/$as_base
    149              export CONFIG_SHELL
    150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    151            fi;;
    152          esac
    153        done
    154 done
    155 ;;
    156   esac
    157 
    158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    159   # uniformly replaced by the line number.  The first 'sed' inserts a
    160   # line-number line before each line; the second 'sed' does the real
    161   # work.  The second script uses 'N' to pair each line-number line
    162   # with the numbered line, and appends trailing '-' during
    163   # substitution so that $LINENO is not a special case at line end.
    164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    166   sed '=' <$as_myself |
    167     sed '
    168       N
    169       s,$,-,
    170       : loop
    171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    172       t loop
    173       s,-$,,
    174       s,^['$as_cr_digits']*\n,,
    175     ' >$as_me.lineno &&
    176   chmod +x $as_me.lineno ||
    177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    178    { (exit 1); exit 1; }; }
    179 
    180   # Don't try to exec as it changes $[0], causing all sort of problems
    181   # (the dirname of $[0] is not the place where we might find the
    182   # original and so on.  Autoconf is especially sensible to this).
    183   . ./$as_me.lineno
    184   # Exit status is that of the last command.
    185   exit
    186 }
    187 
    188 
    189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    190   *c*,-n*) ECHO_N= ECHO_C='
    191 ' ECHO_T='      ' ;;
    192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    194 esac
    195 
    196 if expr a : '\(a\)' >/dev/null 2>&1; then
    197   as_expr=expr
    198 else
    199   as_expr=false
    200 fi
    201 
    202 rm -f conf$$ conf$$.exe conf$$.file
    203 echo >conf$$.file
    204 if ln -s conf$$.file conf$$ 2>/dev/null; then
    205   # We could just check for DJGPP; but this test a) works b) is more generic
    206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    207   if test -f conf$$.exe; then
    208     # Don't use ln at all; we don't have any links
    209     as_ln_s='cp -p'
    210   else
    211     as_ln_s='ln -s'
    212   fi
    213 elif ln conf$$.file conf$$ 2>/dev/null; then
    214   as_ln_s=ln
    215 else
    216   as_ln_s='cp -p'
    217 fi
    218 rm -f conf$$ conf$$.exe conf$$.file
    219 
    220 if mkdir -p . 2>/dev/null; then
    221   as_mkdir_p=:
    222 else
    223   test -d ./-p && rmdir ./-p
    224   as_mkdir_p=false
    225 fi
    226 
    227 as_executable_p="test -f"
    228 
    229 # Sed expression to map a string onto a valid CPP name.
    230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    231 
    232 # Sed expression to map a string onto a valid variable name.
    233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    234 
    235 
    236 # IFS
    237 # We need space, tab and new line, in precisely that order.
    238 as_nl='
    239 '
    240 IFS="   $as_nl"
    241 
    242 # CDPATH.
    243 $as_unset CDPATH
    244 
    245 
    246 # Name of the host.
    247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    248 # so uname gets run too.
    249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    250 
    251 exec 6>&1
    252 
    253 #
    254 # Initializations.
    255 #
    256 ac_default_prefix=/usr/local
    257 ac_config_libobj_dir=.
    258 cross_compiling=no
    259 subdirs=
    260 MFLAGS=
    261 MAKEFLAGS=
    262 SHELL=${CONFIG_SHELL-/bin/sh}
    263 
    264 # Maximum number of lines to put in a shell here document.
    265 # This variable seems obsolete.  It should probably be removed, and
    266 # only ac_max_sed_lines should be used.
    267 : ${ac_max_here_lines=38}
    268 
    269 # Identity of this package.
    270 PACKAGE_NAME='Transmission'
    271 PACKAGE_TARNAME='transmission'
    272 PACKAGE_VERSION='0.72Z'
    273 PACKAGE_STRING='Transmission 0.72Z'
    274 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=Pan'
    275 
    276 ac_unique_file="libtransmission/transmission.h"
    277 # Factoring default headers for most tests.
    278 ac_includes_default="\
    279 #include <stdio.h>
    280 #if HAVE_SYS_TYPES_H
    281 # include <sys/types.h>
    282 #endif
    283 #if HAVE_SYS_STAT_H
    284 # include <sys/stat.h>
    285 #endif
    286 #if STDC_HEADERS
    287 # include <stdlib.h>
    288 # include <stddef.h>
    289 #else
    290 # if HAVE_STDLIB_H
    291 #  include <stdlib.h>
    292 # endif
    293 #endif
    294 #if HAVE_STRING_H
    295 # if !STDC_HEADERS && HAVE_MEMORY_H
    296 #  include <memory.h>
    297 # endif
    298 # include <string.h>
    299 #endif
    300 #if HAVE_STRINGS_H
    301 # include <strings.h>
    302 #endif
    303 #if HAVE_INTTYPES_H
    304 # include <inttypes.h>
    305 #else
    306 # if HAVE_STDINT_H
    307 #  include <stdint.h>
    308 # endif
    309 #endif
    310 #if HAVE_UNISTD_H
    311 # include <unistd.h>
    312 #endif"
    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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GLIB_MINIMUM GTK_MINIMUM WX_MINIMUM 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS WITH_LIBEVENT_TRUE WITH_LIBEVENT_FALSE PKG_CONFIG GTK_CFLAGS GTK_LIBS ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS WITH_GTK_TRUE WITH_GTK_FALSE WINDRES HAVE_BEOS_TRUE HAVE_BEOS_FALSE HAVE_DARWIN_TRUE HAVE_DARWIN_FALSE HAVE_WINDOWS_TRUE HAVE_WINDOWS_FALSE VERSION_MAJOR VERSION_MINOR VERSION_MAINTENANCE VERSION_REVISION VERSION_BETA VERSION_STRING VERSION_STRING_LONG BUNDLE_VERSION VERSION_PACKAGE LIBOBJS LTLIBOBJS'
    315 ac_subst_files=''
    316 
    317 # Initialize some variables set by options.
    318 ac_init_help=
    319 ac_init_version=false
    320 # The variables have the same names as the options, with
    321 # dashes changed to underlines.
    322 cache_file=/dev/null
    323 exec_prefix=NONE
    324 no_create=
    325 no_recursion=
    326 prefix=NONE
    327 program_prefix=NONE
    328 program_suffix=NONE
    329 program_transform_name=s,x,x,
    330 silent=
    331 site=
    332 srcdir=
    333 verbose=
    334 x_includes=NONE
    335 x_libraries=NONE
    336 
    337 # Installation directory options.
    338 # These are left unexpanded so users can "make install exec_prefix=/foo"
    339 # and all the variables that are supposed to be based on exec_prefix
    340 # by default will actually change.
    341 # Use braces instead of parens because sh, perl, etc. also accept them.
    342 bindir='${exec_prefix}/bin'
    343 sbindir='${exec_prefix}/sbin'
    344 libexecdir='${exec_prefix}/libexec'
    345 datadir='${prefix}/share'
    346 sysconfdir='${prefix}/etc'
    347 sharedstatedir='${prefix}/com'
    348 localstatedir='${prefix}/var'
    349 libdir='${exec_prefix}/lib'
    350 includedir='${prefix}/include'
    351 oldincludedir='/usr/include'
    352 infodir='${prefix}/info'
    353 mandir='${prefix}/man'
    354 
    355 ac_prev=
    356 for ac_option
    357 do
    358   # If the previous option needs an argument, assign it.
    359   if test -n "$ac_prev"; then
    360     eval "$ac_prev=\$ac_option"
    361     ac_prev=
    362     continue
    363   fi
    364 
    365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    366 
    367   # Accept the important Cygnus configure options, so we can diagnose typos.
    368 
    369   case $ac_option in
    370 
    371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    372     ac_prev=bindir ;;
    373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    374     bindir=$ac_optarg ;;
    375 
    376   -build | --build | --buil | --bui | --bu)
    377     ac_prev=build_alias ;;
    378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    379     build_alias=$ac_optarg ;;
    380 
    381   -cache-file | --cache-file | --cache-fil | --cache-fi \
    382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    383     ac_prev=cache_file ;;
    384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    386     cache_file=$ac_optarg ;;
    387 
    388   --config-cache | -C)
    389     cache_file=config.cache ;;
    390 
    391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    392     ac_prev=datadir ;;
    393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    394   | --da=*)
    395     datadir=$ac_optarg ;;
    396 
    397   -disable-* | --disable-*)
    398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    399     # Reject names that are not valid shell variable names.
    400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    402    { (exit 1); exit 1; }; }
    403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    404     eval "enable_$ac_feature=no" ;;
    405 
    406   -enable-* | --enable-*)
    407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    408     # Reject names that are not valid shell variable names.
    409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    411    { (exit 1); exit 1; }; }
    412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    413     case $ac_option in
    414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    415       *) ac_optarg=yes ;;
    416     esac
    417     eval "enable_$ac_feature='$ac_optarg'" ;;
    418 
    419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    421   | --exec | --exe | --ex)
    422     ac_prev=exec_prefix ;;
    423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    425   | --exec=* | --exe=* | --ex=*)
    426     exec_prefix=$ac_optarg ;;
    427 
    428   -gas | --gas | --ga | --g)
    429     # Obsolete; use --with-gas.
    430     with_gas=yes ;;
    431 
    432   -help | --help | --hel | --he | -h)
    433     ac_init_help=long ;;
    434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    435     ac_init_help=recursive ;;
    436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    437     ac_init_help=short ;;
    438 
    439   -host | --host | --hos | --ho)
    440     ac_prev=host_alias ;;
    441   -host=* | --host=* | --hos=* | --ho=*)
    442     host_alias=$ac_optarg ;;
    443 
    444   -includedir | --includedir | --includedi | --included | --include \
    445   | --includ | --inclu | --incl | --inc)
    446     ac_prev=includedir ;;
    447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    448   | --includ=* | --inclu=* | --incl=* | --inc=*)
    449     includedir=$ac_optarg ;;
    450 
    451   -infodir | --infodir | --infodi | --infod | --info | --inf)
    452     ac_prev=infodir ;;
    453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    454     infodir=$ac_optarg ;;
    455 
    456   -libdir | --libdir | --libdi | --libd)
    457     ac_prev=libdir ;;
    458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    459     libdir=$ac_optarg ;;
    460 
    461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    462   | --libexe | --libex | --libe)
    463     ac_prev=libexecdir ;;
    464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    465   | --libexe=* | --libex=* | --libe=*)
    466     libexecdir=$ac_optarg ;;
    467 
    468   -localstatedir | --localstatedir | --localstatedi | --localstated \
    469   | --localstate | --localstat | --localsta | --localst \
    470   | --locals | --local | --loca | --loc | --lo)
    471     ac_prev=localstatedir ;;
    472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    475     localstatedir=$ac_optarg ;;
    476 
    477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    478     ac_prev=mandir ;;
    479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    480     mandir=$ac_optarg ;;
    481 
    482   -nfp | --nfp | --nf)
    483     # Obsolete; use --without-fp.
    484     with_fp=no ;;
    485 
    486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    487   | --no-cr | --no-c | -n)
    488     no_create=yes ;;
    489 
    490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    492     no_recursion=yes ;;
    493 
    494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    496   | --oldin | --oldi | --old | --ol | --o)
    497     ac_prev=oldincludedir ;;
    498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    501     oldincludedir=$ac_optarg ;;
    502 
    503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    504     ac_prev=prefix ;;
    505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    506     prefix=$ac_optarg ;;
    507 
    508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    509   | --program-pre | --program-pr | --program-p)
    510     ac_prev=program_prefix ;;
    511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    513     program_prefix=$ac_optarg ;;
    514 
    515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    516   | --program-suf | --program-su | --program-s)
    517     ac_prev=program_suffix ;;
    518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    520     program_suffix=$ac_optarg ;;
    521 
    522   -program-transform-name | --program-transform-name \
    523   | --program-transform-nam | --program-transform-na \
    524   | --program-transform-n | --program-transform- \
    525   | --program-transform | --program-transfor \
    526   | --program-transfo | --program-transf \
    527   | --program-trans | --program-tran \
    528   | --progr-tra | --program-tr | --program-t)
    529     ac_prev=program_transform_name ;;
    530   -program-transform-name=* | --program-transform-name=* \
    531   | --program-transform-nam=* | --program-transform-na=* \
    532   | --program-transform-n=* | --program-transform-=* \
    533   | --program-transform=* | --program-transfor=* \
    534   | --program-transfo=* | --program-transf=* \
    535   | --program-trans=* | --program-tran=* \
    536   | --progr-tra=* | --program-tr=* | --program-t=*)
    537     program_transform_name=$ac_optarg ;;
    538 
    539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    540   | -silent | --silent | --silen | --sile | --sil)
    541     silent=yes ;;
    542 
    543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    544     ac_prev=sbindir ;;
    545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    546   | --sbi=* | --sb=*)
    547     sbindir=$ac_optarg ;;
    548 
    549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    551   | --sharedst | --shareds | --shared | --share | --shar \
    552   | --sha | --sh)
    553     ac_prev=sharedstatedir ;;
    554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    557   | --sha=* | --sh=*)
    558     sharedstatedir=$ac_optarg ;;
    559 
    560   -site | --site | --sit)
    561     ac_prev=site ;;
    562   -site=* | --site=* | --sit=*)
    563     site=$ac_optarg ;;
    564 
    565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    566     ac_prev=srcdir ;;
    567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    568     srcdir=$ac_optarg ;;
    569 
    570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    571   | --syscon | --sysco | --sysc | --sys | --sy)
    572     ac_prev=sysconfdir ;;
    573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    575     sysconfdir=$ac_optarg ;;
    576 
    577   -target | --target | --targe | --targ | --tar | --ta | --t)
    578     ac_prev=target_alias ;;
    579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    580     target_alias=$ac_optarg ;;
    581 
    582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    583     verbose=yes ;;
    584 
    585   -version | --version | --versio | --versi | --vers | -V)
    586     ac_init_version=: ;;
    587 
    588   -with-* | --with-*)
    589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    590     # Reject names that are not valid shell variable names.
    591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    592       { echo "$as_me: error: invalid package name: $ac_package" >&2
    593    { (exit 1); exit 1; }; }
    594     ac_package=`echo $ac_package| sed 's/-/_/g'`
    595     case $ac_option in
    596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    597       *) ac_optarg=yes ;;
    598     esac
    599     eval "with_$ac_package='$ac_optarg'" ;;
    600 
    601   -without-* | --without-*)
    602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    603     # Reject names that are not valid shell variable names.
    604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    605       { echo "$as_me: error: invalid package name: $ac_package" >&2
    606    { (exit 1); exit 1; }; }
    607     ac_package=`echo $ac_package | sed 's/-/_/g'`
    608     eval "with_$ac_package=no" ;;
    609 
    610   --x)
    611     # Obsolete; use --with-x.
    612     with_x=yes ;;
    613 
    614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    615   | --x-incl | --x-inc | --x-in | --x-i)
    616     ac_prev=x_includes ;;
    617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    619     x_includes=$ac_optarg ;;
    620 
    621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    623     ac_prev=x_libraries ;;
    624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    626     x_libraries=$ac_optarg ;;
    627 
    628   -*) { echo "$as_me: error: unrecognized option: $ac_option
    629 Try \`$0 --help' for more information." >&2
    630    { (exit 1); exit 1; }; }
    631     ;;
    632 
    633   *=*)
    634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    635     # Reject names that are not valid shell variable names.
    636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    638    { (exit 1); exit 1; }; }
    639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    640     eval "$ac_envvar='$ac_optarg'"
    641     export $ac_envvar ;;
    642 
    643   *)
    644     # FIXME: should be removed in autoconf 3.0.
    645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    649     ;;
    650 
    651   esac
    652 done
    653 
    654 if test -n "$ac_prev"; then
    655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    656   { echo "$as_me: error: missing argument to $ac_option" >&2
    657    { (exit 1); exit 1; }; }
    658 fi
    659 
    660 # Be sure to have absolute paths.
    661 for ac_var in exec_prefix prefix
    662 do
    663   eval ac_val=$`echo $ac_var`
    664   case $ac_val in
    665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    667    { (exit 1); exit 1; }; };;
    668   esac
    669 done
    670 
    671 # Be sure to have absolute paths.
    672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    673               localstatedir libdir includedir oldincludedir infodir mandir
    674 do
    675   eval ac_val=$`echo $ac_var`
    676   case $ac_val in
    677     [\\/$]* | ?:[\\/]* ) ;;
    678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    679    { (exit 1); exit 1; }; };;
    680   esac
    681 done
    682 
    683 # There might be people who depend on the old broken behavior: `$host'
    684 # used to hold the argument of --host etc.
    685 # FIXME: To remove some day.
    686 build=$build_alias
    687 host=$host_alias
    688 target=$target_alias
    689 
    690 # FIXME: To remove some day.
    691 if test "x$host_alias" != x; then
    692   if test "x$build_alias" = x; then
    693     cross_compiling=maybe
    694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    695     If a cross compiler is detected then cross compile mode will be used." >&2
    696   elif test "x$build_alias" != "x$host_alias"; then
    697     cross_compiling=yes
    698   fi
    699 fi
    700 
    701 ac_tool_prefix=
    702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
    703 
    704 test "$silent" = yes && exec 6>/dev/null
    705 
    706 
    707 # Find the source files, if location was not specified.
    708 if test -z "$srcdir"; then
    709   ac_srcdir_defaulted=yes
    710   # Try the directory containing this script, then its parent.
    711   ac_confdir=`(dirname "$0") 2>/dev/null ||
    712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    713          X"$0" : 'X\(//\)[^/]' \| \
    714          X"$0" : 'X\(//\)$' \| \
    715          X"$0" : 'X\(/\)' \| \
    716          .     : '\(.\)' 2>/dev/null ||
    717 echo X"$0" |
    718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    720           /^X\(\/\/\)$/{ s//\1/; q; }
    721           /^X\(\/\).*/{ s//\1/; q; }
    722           s/.*/./; q'`
    723   srcdir=$ac_confdir
    724   if test ! -r $srcdir/$ac_unique_file; then
    725     srcdir=..
    726   fi
    727 else
    728   ac_srcdir_defaulted=no
    729 fi
    730 if test ! -r $srcdir/$ac_unique_file; then
    731   if test "$ac_srcdir_defaulted" = yes; then
    732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    733    { (exit 1); exit 1; }; }
    734   else
    735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    736    { (exit 1); exit 1; }; }
    737   fi
    738 fi
    739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
    740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    741    { (exit 1); exit 1; }; }
    742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    743 ac_env_build_alias_set=${build_alias+set}
    744 ac_env_build_alias_value=$build_alias
    745 ac_cv_env_build_alias_set=${build_alias+set}
    746 ac_cv_env_build_alias_value=$build_alias
    747 ac_env_host_alias_set=${host_alias+set}
    748 ac_env_host_alias_value=$host_alias
    749 ac_cv_env_host_alias_set=${host_alias+set}
    750 ac_cv_env_host_alias_value=$host_alias
    751 ac_env_target_alias_set=${target_alias+set}
    752 ac_env_target_alias_value=$target_alias
    753 ac_cv_env_target_alias_set=${target_alias+set}
    754 ac_cv_env_target_alias_value=$target_alias
    755 ac_env_CC_set=${CC+set}
    756 ac_env_CC_value=$CC
    757 ac_cv_env_CC_set=${CC+set}
    758 ac_cv_env_CC_value=$CC
    759 ac_env_CFLAGS_set=${CFLAGS+set}
    760 ac_env_CFLAGS_value=$CFLAGS
    761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    762 ac_cv_env_CFLAGS_value=$CFLAGS
    763 ac_env_LDFLAGS_set=${LDFLAGS+set}
    764 ac_env_LDFLAGS_value=$LDFLAGS
    765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    766 ac_cv_env_LDFLAGS_value=$LDFLAGS
    767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    768 ac_env_CPPFLAGS_value=$CPPFLAGS
    769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    771 ac_env_CXX_set=${CXX+set}
    772 ac_env_CXX_value=$CXX
    773 ac_cv_env_CXX_set=${CXX+set}
    774 ac_cv_env_CXX_value=$CXX
    775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    776 ac_env_CXXFLAGS_value=$CXXFLAGS
    777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    779 ac_env_CPP_set=${CPP+set}
    780 ac_env_CPP_value=$CPP
    781 ac_cv_env_CPP_set=${CPP+set}
    782 ac_cv_env_CPP_value=$CPP
    783 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
    784 ac_env_PKG_CONFIG_value=$PKG_CONFIG
    785 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
    786 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    787 
    788 #
    789 # Report the --help message.
    790 #
    791 if test "$ac_init_help" = "long"; then
    792   # Omit some internal or obsolete options to make the list less imposing.
    793   # This message is too long to be a string in the A/UX 3.1 sh.
    794   cat <<_ACEOF
    795 \`configure' configures Transmission 0.72Z to adapt to many kinds of systems.
    796 
    797 Usage: $0 [OPTION]... [VAR=VALUE]...
    798 
    799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
    800 VAR=VALUE.  See below for descriptions of some of the useful variables.
    801 
    802 Defaults for the options are specified in brackets.
    803 
    804 Configuration:
    805   -h, --help              display this help and exit
    806       --help=short        display options specific to this package
    807       --help=recursive    display the short help of all the included packages
    808   -V, --version           display version information and exit
    809   -q, --quiet, --silent   do not print \`checking...' messages
    810       --cache-file=FILE   cache test results in FILE [disabled]
    811   -C, --config-cache      alias for \`--cache-file=config.cache'
    812   -n, --no-create         do not create output files
    813       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    814 
    815 _ACEOF
    816 
    817   cat <<_ACEOF
    818 Installation directories:
    819   --prefix=PREFIX         install architecture-independent files in PREFIX
    820                           [$ac_default_prefix]
    821   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    822                           [PREFIX]
    823 
    824 By default, \`make install' will install all the files in
    825 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
    826 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
    827 for instance \`--prefix=\$HOME'.
    828 
    829 For better control, use the options below.
    830 
    831 Fine tuning of the installation directories:
    832   --bindir=DIR           user executables [EPREFIX/bin]
    833   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    834   --libexecdir=DIR       program executables [EPREFIX/libexec]
    835   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    836   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    837   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    838   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    839   --libdir=DIR           object code libraries [EPREFIX/lib]
    840   --includedir=DIR       C header files [PREFIX/include]
    841   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    842   --infodir=DIR          info documentation [PREFIX/info]
    843   --mandir=DIR           man documentation [PREFIX/man]
    844 _ACEOF
    845 
    846   cat <<\_ACEOF
    847 
    848 Program names:
    849   --program-prefix=PREFIX            prepend PREFIX to installed program names
    850   --program-suffix=SUFFIX            append SUFFIX to installed program names
    851   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
    852 
    853 System types:
    854   --build=BUILD     configure for building on BUILD [guessed]
    855   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    856 _ACEOF
    857 fi
    858 
    859 if test -n "$ac_init_help"; then
    860   case $ac_init_help in
    861      short | recursive ) echo "Configuration of Transmission 0.72Z:";;
    862    esac
    863   cat <<\_ACEOF
    864 
    865 Optional Features:
    866   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    867   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    868   --enable-maintainer-mode  enable make rules and dependencies not useful
    869                           (and sometimes confusing) to the casual installer
    870   --disable-dependency-tracking  speeds up one-time build
    871   --enable-dependency-tracking   do not reject slow dependency extractors
    872   --disable-gtktest       do not try to compile and run a test GTK+ program
    873   --disable-glibtest      do not try to compile and run a test GLIB program
    874 
    875 Optional Packages:
    876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    878   --with-libevent         Build Daemon
    879   --with-gtk              Build gtk client
     2#
     3# $Id$
     4
     5#
     6# Default settings
     7#
     8SYSTEM=
     9BEOS_NETSERVER=no
     10BEOS_OLDCC=no
     11MATH=no
     12PTHREAD=no
     13OPENSSL=
     14GTK=
     15LIBEVENT=
     16PREFIX=/usr/local
     17CC="${CC-cc}"
     18CFLAGS="${CFLAGS}"
     19CXX="${CXX-c++}"
     20CXXFLAGS="${CXXFLAGS}"
     21LDFLAGS="${LDFLAGS}"
     22VERBOSE=no
     23
     24#
     25# Functions
     26#
     27usage()
     28{
     29  cat << EOF
     30
     31Options:
     32  --disable-openssl      Disable OpenSSL, use built-in SHA1 implementation
     33  --disable-gtk          Don't build the GTK+ GUI
     34  --disable-daemon       Don't build the daemon
     35  --prefix=PATH          Installation path
     36  --verbose              Display additional information for debugging
    88037
    88138Some influential environment variables:
    88239  CC          C compiler command
    88340  CFLAGS      C compiler flags
    884   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    885               nonstandard directory <lib dir>
    886   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    887               headers in a nonstandard directory <include dir>
    88841  CXX         C++ compiler command
    88942  CXXFLAGS    C++ compiler flags
    890   CPP         C preprocessor
    891   PKG_CONFIG  path to pkg-config utility
    892 
    893 Use these variables to override the choices made by `configure' or to help
    894 it to find libraries and programs with nonstandard names/locations.
    895 
    896 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=Pan>.
    897 _ACEOF
    898 fi
    899 
    900 if test "$ac_init_help" = "recursive"; then
    901   # If there are subdirs, report their specific --help.
    902   ac_popdir=`pwd`
    903   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    904     test -d $ac_dir || continue
    905     ac_builddir=.
    906 
    907 if test "$ac_dir" != .; then
    908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    909   # A "../" for each directory in $ac_dir_suffix.
    910   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    911 else
    912   ac_dir_suffix= ac_top_builddir=
    913 fi
    914 
    915 case $srcdir in
    916   .)  # No --srcdir option.  We are building in place.
    917     ac_srcdir=.
    918     if test -z "$ac_top_builddir"; then
    919        ac_top_srcdir=.
    920     else
    921        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    922     fi ;;
    923   [\\/]* | ?:[\\/]* )  # Absolute path.
    924     ac_srcdir=$srcdir$ac_dir_suffix;
    925     ac_top_srcdir=$srcdir ;;
    926   *) # Relative path.
    927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    929 esac
    930 
    931 # Do not use `cd foo && pwd` to compute absolute paths, because
    932 # the directories may not exist.
    933 case `pwd` in
    934 .) ac_abs_builddir="$ac_dir";;
    935 *)
    936   case "$ac_dir" in
    937   .) ac_abs_builddir=`pwd`;;
    938   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    939   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    940   esac;;
    941 esac
    942 case $ac_abs_builddir in
    943 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    944 *)
    945   case ${ac_top_builddir}. in
    946   .) ac_abs_top_builddir=$ac_abs_builddir;;
    947   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    948   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    949   esac;;
    950 esac
    951 case $ac_abs_builddir in
    952 .) ac_abs_srcdir=$ac_srcdir;;
    953 *)
    954   case $ac_srcdir in
    955   .) ac_abs_srcdir=$ac_abs_builddir;;
    956   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    957   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    958   esac;;
    959 esac
    960 case $ac_abs_builddir in
    961 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    962 *)
    963   case $ac_top_srcdir in
    964   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    965   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    966   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    967   esac;;
    968 esac
    969 
    970     cd $ac_dir
    971     # Check for guested configure; otherwise get Cygnus style configure.
    972     if test -f $ac_srcdir/configure.gnu; then
    973       echo
    974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    975     elif test -f $ac_srcdir/configure; then
    976       echo
    977       $SHELL $ac_srcdir/configure  --help=recursive
    978     elif test -f $ac_srcdir/configure.ac ||
    979            test -f $ac_srcdir/configure.in; then
    980       echo
    981       $ac_configure --help
    982     else
    983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     43  LDFLAGS     linker flags
     44
     45EOF
     46}
     47
     48runcmd()
     49{
     50  if [ "$VERBOSE" = yes ]
     51  then
     52    echo "$@" >&2
     53    "$@"
     54  else
     55    "$@" > /dev/null 2>&1
     56  fi
     57  return $!
     58}
     59
     60verbose()
     61{
     62  if [ "$VERBOSE" = yes ]
     63  then
     64    echo "$@"
     65  fi
     66}
     67
     68cc_test()
     69{
     70  verbose cc_test
     71  cat > testconf.c <<EOF
     72  int main()
     73  {
     74    return 0;
     75  }
     76EOF
     77  if ! runcmd $CC -o testconf testconf.c
     78  then
     79    rm -f testconf*
     80    echo "Could not find a working compiler"
     81    exit 1
     82  fi
     83  rm -f testconf*
     84}
     85
     86openssl_test()
     87{
     88  verbose openssl_test
     89  cat > testconf.c << EOF
     90  #include <stdio.h>
     91  #include <openssl/sha.h>
     92  int main()
     93  {
     94      SHA1( 0, 0, 0 );
     95  }
     96EOF
     97  if runcmd $CC $CFLAGS $LDFLAGS -o testconf testconf.c -lcrypto
     98  then
     99    echo "yes"
     100    OPENSSL=yes
     101  else
     102    echo "missing, using built-in SHA1 implementation"
     103    OPENSSL=no
     104  fi
     105  rm -f testconf*
     106}
     107
     108lm_test()
     109{
     110  verbose lm_test
     111  cat > testconf.c << EOF
     112  int main()
     113  {
     114    return cos( 42 );
     115  }
     116EOF
     117  if ! runcmd $CC -o testconf testconf.c
     118  then
     119    if runcmd $CC -o testconf testconf.c -lm
     120    then
     121      LDFLAGS="-lm $LDFLAGS"
    984122    fi
    985     cd $ac_popdir
    986   done
    987 fi
    988 
    989 test -n "$ac_init_help" && exit 0
    990 if $ac_init_version; then
    991   cat <<\_ACEOF
    992 Transmission configure 0.72Z
    993 generated by GNU Autoconf 2.59
    994 
    995 Copyright (C) 2003 Free Software Foundation, Inc.
    996 This configure script is free software; the Free Software Foundation
    997 gives unlimited permission to copy, distribute and modify it.
    998 _ACEOF
    999   exit 0
    1000 fi
    1001 exec 5>config.log
    1002 cat >&5 <<_ACEOF
    1003 This file contains any messages produced by compilers while
    1004 running configure, to aid debugging if configure makes a mistake.
    1005 
    1006 It was created by Transmission $as_me 0.72Z, which was
    1007 generated by GNU Autoconf 2.59.  Invocation command line was
    1008 
    1009   $ $0 $@
    1010 
    1011 _ACEOF
    1012 {
    1013 cat <<_ASUNAME
    1014 ## --------- ##
    1015 ## Platform. ##
    1016 ## --------- ##
    1017 
    1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
    1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
    1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
    1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
    1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
    1023 
    1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
    1025 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
    1026 
    1027 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
    1028 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1030 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    1031 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    1032 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
    1033 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
    1034 
    1035 _ASUNAME
    1036 
    1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1038 for as_dir in $PATH
    1039 do
    1040   IFS=$as_save_IFS
    1041   test -z "$as_dir" && as_dir=.
    1042   echo "PATH: $as_dir"
    1043 done
    1044 
    1045 } >&5
    1046 
    1047 cat >&5 <<_ACEOF
    1048 
    1049 
    1050 ## ----------- ##
    1051 ## Core tests. ##
    1052 ## ----------- ##
    1053 
    1054 _ACEOF
    1055 
    1056 
    1057 # Keep a trace of the command line.
    1058 # Strip out --no-create and --no-recursion so they do not pile up.
    1059 # Strip out --silent because we don't want to record it for future runs.
    1060 # Also quote any args containing shell meta-characters.
    1061 # Make two passes to allow for proper duplicate-argument suppression.
    1062 ac_configure_args=
    1063 ac_configure_args0=
    1064 ac_configure_args1=
    1065 ac_sep=
    1066 ac_must_keep_next=false
    1067 for ac_pass in 1 2
    1068 do
    1069   for ac_arg
     123  fi
     124  rm -f testconf*
     125}
     126
     127lrintf_test()
     128{
     129  verbose lrintf_test
     130  cat > testconf.c << EOF
     131  int main()
     132  {
     133    return ( lrintf( 3.14 ) != 3 );
     134  }
     135EOF
     136  if runcmd $CC -o testconf testconf.c $LDFLAGS && runcmd ./testconf
     137  then
     138    CFLAGS="$CFLAGS -DHAVE_LRINTF"
     139  fi
     140  rm -f testconf*
     141}
     142
     143strlcpy_test()
     144{
     145  verbose strlcpy_test
     146  cat > testconf.c << EOF
     147#include <string.h>
     148int main()
     149{
     150  char buf[] = "1234:p";
     151  strlcpy( buf, "foo", sizeof buf );
     152  return ( 0 == memcmp( buf, "foo\0:p", 6 ) ? 0 : 1 );
     153}
     154EOF
     155  if runcmd $CC -o testconf testconf.c && runcmd ./testconf
     156  then
     157    CFLAGS="$CFLAGS -DHAVE_STRLCPY"
     158  fi
     159  rm -f testconf*
     160}
     161
     162strlcat_test()
     163{
     164  verbose strlcat_test
     165  cat > testconf.c << EOF
     166#include <string.h>
     167int main()
     168{
     169  char buf[] = "1234567:p";
     170  buf[0] = '\0';
     171  strlcat( buf, "foo", sizeof buf );
     172  strlcat( buf, "bar", sizeof buf );
     173  return ( 0 == memcmp( buf, "foobar\0:p", 6 ) ? 0 : 1 );
     174}
     175EOF
     176  if runcmd $CC -o testconf testconf.c && runcmd ./testconf
     177  then
     178    CFLAGS="$CFLAGS -DHAVE_STRLCAT"
     179  fi
     180  rm -f testconf*
     181}
     182
     183asprintf_test()
     184{
     185  verbose asprintf_test
     186  cat > testconf.c <<EOF
     187#define _GNU_SOURCE
     188#include <stdio.h>
     189int main()
     190{
     191  asprintf( NULL, NULL );
     192  return 0;
     193}
     194EOF
     195  if runcmd $CC -o testconf testconf.c
     196  then
     197    CFLAGS="$CFLAGS -DHAVE_ASPRINTF"
     198  fi
     199  rm -f testconf*
     200}
     201
     202snprintf_test()
     203{
     204  verbose snprintf_test
     205  cat > testconf.c <<EOF
     206#include <stdio.h>
     207int main()
     208{
     209  char buf[] = "blueberry";
     210  return ( 6 != snprintf( buf, 4, "%s%s", "foo", "bar" ) ||
     211           0 != memcmp( buf, "foo\0berry", 9 ) );
     212}
     213EOF
     214  if ! runcmd $CC -o testconf testconf.c || ! runcmd ./testconf
     215  then
     216    echo "error: broken snprintf() found"
     217    exit 1
     218  fi
     219  rm -f testconf*
     220}
     221
     222libgen_test()
     223{
     224  verbose libgen_test
     225  cat > testconf.c << EOF
     226#include <libgen.h>
     227int main()
     228{
     229  return 0;
     230}
     231EOF
     232  if runcmd $CC -o testconf testconf.c
     233  then
     234    CFLAGS="$CFLAGS -DHAVE_LIBGEN"
     235  fi
     236  rm -f testconf*
     237}
     238
     239gettext_test()
     240{
     241  verbose gettext_test
     242  cat > testconf.c <<EOF
     243  #include <libintl.h>
     244  int main()
     245  {
     246    gettext("");
     247  }
     248EOF
     249
     250  if runcmd $CC $CFLAGS_GTK $LDFLAGS_GTK -o testconf testconf.c
     251  then
     252    rm -f testconf*
     253    return 0
     254  fi
     255
     256  for intl_testdir in $PREFIX/include \
     257      /usr/local/include /usr/X11R6/include /usr/pkg/include
    1070258  do
    1071     case $ac_arg in
    1072     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    1073     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    1074     | -silent | --silent | --silen | --sile | --sil)
    1075       continue ;;
    1076     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1077       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    1078     esac
    1079     case $ac_pass in
    1080     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
    1081     2)
    1082       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    1083       if test $ac_must_keep_next = true; then
    1084         ac_must_keep_next=false # Got value, back to normal.
    1085       else
    1086         case $ac_arg in
    1087           *=* | --config-cache | -C | -disable-* | --disable-* \
    1088           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
    1089           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
    1090           | -with-* | --with-* | -without-* | --without-* | --x)
    1091             case "$ac_configure_args0 " in
    1092               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
    1093             esac
    1094             ;;
    1095           -* ) ac_must_keep_next=true ;;
    1096         esac
    1097       fi
    1098       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1099       # Get rid of the leading space.
    1100       ac_sep=" "
    1101       ;;
    1102     esac
    1103   done
    1104 done
    1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
    1107 
    1108 # When interrupted or exit'd, cleanup temporary files, and complete
    1109 # config.log.  We remove comments because anyway the quotes in there
    1110 # would cause problems or look ugly.
    1111 # WARNING: Be sure not to use single quotes in there, as some shells,
    1112 # such as our DU 5.0 friend, will then `close' the trap.
    1113 trap 'exit_status=$?
    1114   # Save into config.log some information that might help in debugging.
    1115   {
    1116     echo
    1117 
    1118     cat <<\_ASBOX
    1119 ## ---------------- ##
    1120 ## Cache variables. ##
    1121 ## ---------------- ##
    1122 _ASBOX
    1123     echo
    1124     # The following way of writing the cache mishandles newlines in values,
    1125 {
    1126   (set) 2>&1 |
    1127     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1128     *ac_space=\ *)
    1129       sed -n \
    1130         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1131           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    1132       ;;
    1133     *)
    1134       sed -n \
    1135         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1136       ;;
    1137     esac;
    1138 }
    1139     echo
    1140 
    1141     cat <<\_ASBOX
    1142 ## ----------------- ##
    1143 ## Output variables. ##
    1144 ## ----------------- ##
    1145 _ASBOX
    1146     echo
    1147     for ac_var in $ac_subst_vars
    1148     do
    1149       eval ac_val=$`echo $ac_var`
    1150       echo "$ac_var='"'"'$ac_val'"'"'"
    1151     done | sort
    1152     echo
    1153 
    1154     if test -n "$ac_subst_files"; then
    1155       cat <<\_ASBOX
    1156 ## ------------- ##
    1157 ## Output files. ##
    1158 ## ------------- ##
    1159 _ASBOX
    1160       echo
    1161       for ac_var in $ac_subst_files
    1162       do
    1163         eval ac_val=$`echo $ac_var`
    1164         echo "$ac_var='"'"'$ac_val'"'"'"
    1165       done | sort
    1166       echo
    1167     fi
    1168 
    1169     if test -s confdefs.h; then
    1170       cat <<\_ASBOX
    1171 ## ----------- ##
    1172 ## confdefs.h. ##
    1173 ## ----------- ##
    1174 _ASBOX
    1175       echo
    1176       sed "/^$/d" confdefs.h | sort
    1177       echo
    1178     fi
    1179     test "$ac_signal" != 0 &&
    1180       echo "$as_me: caught signal $ac_signal"
    1181     echo "$as_me: exit $exit_status"
    1182   } >&5
    1183   rm -f core *.core &&
    1184   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    1185     exit $exit_status
    1186      ' 0
    1187 for ac_signal in 1 2 13 15; do
    1188   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
    1189 done
    1190 ac_signal=0
    1191 
    1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    1193 rm -rf conftest* confdefs.h
    1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1195 echo >confdefs.h
    1196 
    1197 # Predefined preprocessor variables.
    1198 
    1199 cat >>confdefs.h <<_ACEOF
    1200 #define PACKAGE_NAME "$PACKAGE_NAME"
    1201 _ACEOF
    1202 
    1203 
    1204 cat >>confdefs.h <<_ACEOF
    1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    1206 _ACEOF
    1207 
    1208 
    1209 cat >>confdefs.h <<_ACEOF
    1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
    1211 _ACEOF
    1212 
    1213 
    1214 cat >>confdefs.h <<_ACEOF
    1215 #define PACKAGE_STRING "$PACKAGE_STRING"
    1216 _ACEOF
    1217 
    1218 
    1219 cat >>confdefs.h <<_ACEOF
    1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    1221 _ACEOF
    1222 
    1223 
    1224 # Let the site file select an alternate cache file if it wants to.
    1225 # Prefer explicitly selected file to automatically selected ones.
    1226 if test -z "$CONFIG_SITE"; then
    1227   if test "x$prefix" != xNONE; then
    1228     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1229   else
    1230     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1231   fi
    1232 fi
    1233 for ac_site_file in $CONFIG_SITE; do
    1234   if test -r "$ac_site_file"; then
    1235     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1236 echo "$as_me: loading site script $ac_site_file" >&6;}
    1237     sed 's/^/| /' "$ac_site_file" >&5
    1238     . "$ac_site_file"
    1239   fi
    1240 done
    1241 
    1242 if test -r "$cache_file"; then
    1243   # Some versions of bash will fail to source /dev/null (special
    1244   # files actually), so we avoid doing that.
    1245   if test -f "$cache_file"; then
    1246     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
    1247 echo "$as_me: loading cache $cache_file" >&6;}
    1248     case $cache_file in
    1249       [\\/]* | ?:[\\/]* ) . $cache_file;;
    1250       *)                      . ./$cache_file;;
    1251     esac
    1252   fi
    1253 else
    1254   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
    1255 echo "$as_me: creating cache $cache_file" >&6;}
    1256   >$cache_file
    1257 fi
    1258 
    1259 # Check that the precious variables saved in the cache have kept the same
    1260 # value.
    1261 ac_cache_corrupted=false
    1262 for ac_var in `(set) 2>&1 |
    1263                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    1264   eval ac_old_set=\$ac_cv_env_${ac_var}_set
    1265   eval ac_new_set=\$ac_env_${ac_var}_set
    1266   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1267   eval ac_new_val="\$ac_env_${ac_var}_value"
    1268   case $ac_old_set,$ac_new_set in
    1269     set,)
    1270       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    1272       ac_cache_corrupted=: ;;
    1273     ,set)
    1274       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    1276       ac_cache_corrupted=: ;;
    1277     ,);;
    1278     *)
    1279       if test "x$ac_old_val" != "x$ac_new_val"; then
    1280         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1282         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1283 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1284         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1285 echo "$as_me:   current value: $ac_new_val" >&2;}
    1286         ac_cache_corrupted=:
    1287       fi;;
    1288   esac
    1289   # Pass precious variables to config.status.
    1290   if test "$ac_new_set" = set; then
    1291     case $ac_new_val in
    1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1293       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    1294     *) ac_arg=$ac_var=$ac_new_val ;;
    1295     esac
    1296     case " $ac_configure_args " in
    1297       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1298       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    1299     esac
    1300   fi
    1301 done
    1302 if $ac_cache_corrupted; then
    1303   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1305   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1307    { (exit 1); exit 1; }; }
    1308 fi
    1309 
    1310 ac_ext=c
    1311 ac_cpp='$CPP $CPPFLAGS'
    1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1315 
    1316 
    1317 
    1318 
    1319 
    1320 
    1321 
    1322 
    1323 
    1324 
    1325 
    1326 
    1327 
    1328 
    1329 
    1330 
    1331 
    1332 
    1333 
    1334 
    1335 
    1336 
    1337 
    1338 
    1339 
    1340 
    1341 
    1342 
    1343           ac_config_headers="$ac_config_headers config.h"
    1344 
    1345 
    1346 am__api_version="1.9"
    1347 ac_aux_dir=
    1348 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1349   if test -f $ac_dir/install-sh; then
    1350     ac_aux_dir=$ac_dir
    1351     ac_install_sh="$ac_aux_dir/install-sh -c"
    1352     break
    1353   elif test -f $ac_dir/install.sh; then
    1354     ac_aux_dir=$ac_dir
    1355     ac_install_sh="$ac_aux_dir/install.sh -c"
    1356     break
    1357   elif test -f $ac_dir/shtool; then
    1358     ac_aux_dir=$ac_dir
    1359     ac_install_sh="$ac_aux_dir/shtool install -c"
    1360     break
    1361   fi
    1362 done
    1363 if test -z "$ac_aux_dir"; then
    1364   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1365 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1366    { (exit 1); exit 1; }; }
    1367 fi
    1368 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1369 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1370 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    1371 
    1372 # Find a good install program.  We prefer a C program (faster),
    1373 # so one script is as good as another.  But avoid the broken or
    1374 # incompatible versions:
    1375 # SysV /etc/install, /usr/sbin/install
    1376 # SunOS /usr/etc/install
    1377 # IRIX /sbin/install
    1378 # AIX /bin/install
    1379 # AmigaOS /C/install, which installs bootblocks on floppy discs
    1380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    1381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    1382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1383 # OS/2's system install, which has a completely different semantic
    1384 # ./install, which can be erroneously created by make from ./install.sh.
    1385 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    1386 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    1387 if test -z "$INSTALL"; then
    1388 if test "${ac_cv_path_install+set}" = set; then
    1389   echo $ECHO_N "(cached) $ECHO_C" >&6
    1390 else
    1391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1392 for as_dir in $PATH
    1393 do
    1394   IFS=$as_save_IFS
    1395   test -z "$as_dir" && as_dir=.
    1396   # Account for people who put trailing slashes in PATH elements.
    1397 case $as_dir/ in
    1398   ./ | .// | /cC/* | \
    1399   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    1400   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    1401   /usr/ucb/* ) ;;
    1402   *)
    1403     # OSF1 and SCO ODT 3.0 have their own names for install.
    1404     # Don't use installbsd from OSF since it installs stuff as root
    1405     # by default.
    1406     for ac_prog in ginstall scoinst install; do
    1407       for ac_exec_ext in '' $ac_executable_extensions; do
    1408         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    1409           if test $ac_prog = install &&
    1410             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1411             # AIX install.  It has an incompatible calling convention.
    1412             :
    1413           elif test $ac_prog = install &&
    1414             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1415             # program-specific install script used by HP pwplus--don't use.
    1416             :
    1417           else
    1418             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    1419             break 3
    1420           fi
    1421         fi
    1422       done
    1423     done
    1424     ;;
    1425 esac
    1426 done
    1427 
    1428 
    1429 fi
    1430   if test "${ac_cv_path_install+set}" = set; then
    1431     INSTALL=$ac_cv_path_install
    1432   else
    1433     # As a last resort, use the slow shell script.  We don't cache a
    1434     # path for INSTALL within a source directory, because that will
    1435     # break other packages using the cache if that directory is
    1436     # removed, or if the path is relative.
    1437     INSTALL=$ac_install_sh
    1438   fi
    1439 fi
    1440 echo "$as_me:$LINENO: result: $INSTALL" >&5
    1441 echo "${ECHO_T}$INSTALL" >&6
    1442 
    1443 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    1444 # It thinks the first close brace ends the variable substitution.
    1445 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    1446 
    1447 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    1448 
    1449 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1450 
    1451 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
    1452 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
    1453 # Just in case
    1454 sleep 1
    1455 echo timestamp > conftest.file
    1456 # Do `set' in a subshell so we don't clobber the current shell's
    1457 # arguments.  Must try -L first in case configure is actually a
    1458 # symlink; some systems play weird games with the mod time of symlinks
    1459 # (eg FreeBSD returns the mod time of the symlink's containing
    1460 # directory).
    1461 if (
    1462    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    1463    if test "$*" = "X"; then
    1464       # -L didn't work.
    1465       set X `ls -t $srcdir/configure conftest.file`
    1466    fi
    1467    rm -f conftest.file
    1468    if test "$*" != "X $srcdir/configure conftest.file" \
    1469       && test "$*" != "X conftest.file $srcdir/configure"; then
    1470 
    1471       # If neither matched, then we have a broken ls.  This can happen
    1472       # if, for instance, CONFIG_SHELL is bash and it inherits a
    1473       # broken ls alias from the environment.  This has actually
    1474       # happened.  Such a system could not be considered "sane".
    1475       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
    1476 alias in your environment" >&5
    1477 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
    1478 alias in your environment" >&2;}
    1479    { (exit 1); exit 1; }; }
    1480    fi
    1481 
    1482    test "$2" = conftest.file
    1483    )
    1484 then
    1485    # Ok.
    1486    :
    1487 else
    1488    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
    1489 Check your system clock" >&5
    1490 echo "$as_me: error: newly created file is older than distributed files!
    1491 Check your system clock" >&2;}
    1492    { (exit 1); exit 1; }; }
    1493 fi
    1494 echo "$as_me:$LINENO: result: yes" >&5
    1495 echo "${ECHO_T}yes" >&6
    1496 test "$program_prefix" != NONE &&
    1497   program_transform_name="s,^,$program_prefix,;$program_transform_name"
    1498 # Use a double $ so make ignores it.
    1499 test "$program_suffix" != NONE &&
    1500   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    1501 # Double any \ or $.  echo might interpret backslashes.
    1502 # By default was `s,x,x', remove it if useless.
    1503 cat <<\_ACEOF >conftest.sed
    1504 s/[\\$]/&&/g;s/;s,x,x,$//
    1505 _ACEOF
    1506 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    1507 rm conftest.sed
    1508 
    1509 # expand $ac_aux_dir to an absolute path
    1510 am_aux_dir=`cd $ac_aux_dir && pwd`
    1511 
    1512 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    1513 # Use eval to expand $SHELL
    1514 if eval "$MISSING --run true"; then
    1515   am_missing_run="$MISSING --run "
    1516 else
    1517   am_missing_run=
    1518   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    1519 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    1520 fi
    1521 
    1522 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    1523   # We used to keeping the `.' as first argument, in order to
    1524   # allow $(mkdir_p) to be used without argument.  As in
    1525   #   $(mkdir_p) $(somedir)
    1526   # where $(somedir) is conditionally defined.  However this is wrong
    1527   # for two reasons:
    1528   #  1. if the package is installed by a user who cannot write `.'
    1529   #     make install will fail,
    1530   #  2. the above comment should most certainly read
    1531   #     $(mkdir_p) $(DESTDIR)$(somedir)
    1532   #     so it does not work when $(somedir) is undefined and
    1533   #     $(DESTDIR) is not.
    1534   #  To support the latter case, we have to write
    1535   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    1536   #  so the `.' trick is pointless.
    1537   mkdir_p='mkdir -p --'
    1538 else
    1539   # On NextStep and OpenStep, the `mkdir' command does not
    1540   # recognize any option.  It will interpret all options as
    1541   # directories to create, and then abort because `.' already
    1542   # exists.
    1543   for d in ./-p ./--version;
    1544   do
    1545     test -d $d && rmdir $d
    1546   done
    1547   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    1548   if test -f "$ac_aux_dir/mkinstalldirs"; then
    1549     mkdir_p='$(mkinstalldirs)'
    1550   else
    1551     mkdir_p='$(install_sh) -d'
    1552   fi
    1553 fi
    1554 
    1555 for ac_prog in gawk mawk nawk awk
    1556 do
    1557   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1558 set dummy $ac_prog; ac_word=$2
    1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1561 if test "${ac_cv_prog_AWK+set}" = set; then
    1562   echo $ECHO_N "(cached) $ECHO_C" >&6
    1563 else
    1564   if test -n "$AWK"; then
    1565   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    1566 else
    1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1568 for as_dir in $PATH
    1569 do
    1570   IFS=$as_save_IFS
    1571   test -z "$as_dir" && as_dir=.
    1572   for ac_exec_ext in '' $ac_executable_extensions; do
    1573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1574     ac_cv_prog_AWK="$ac_prog"
    1575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1576     break 2
    1577   fi
    1578 done
    1579 done
    1580 
    1581 fi
    1582 fi
    1583 AWK=$ac_cv_prog_AWK
    1584 if test -n "$AWK"; then
    1585   echo "$as_me:$LINENO: result: $AWK" >&5
    1586 echo "${ECHO_T}$AWK" >&6
    1587 else
    1588   echo "$as_me:$LINENO: result: no" >&5
    1589 echo "${ECHO_T}no" >&6
    1590 fi
    1591 
    1592   test -n "$AWK" && break
    1593 done
    1594 
    1595 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    1596 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    1597 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    1598 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    1599   echo $ECHO_N "(cached) $ECHO_C" >&6
    1600 else
    1601   cat >conftest.make <<\_ACEOF
    1602 all:
    1603         @echo 'ac_maketemp="$(MAKE)"'
    1604 _ACEOF
    1605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    1606 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    1607 if test -n "$ac_maketemp"; then
    1608   eval ac_cv_prog_make_${ac_make}_set=yes
    1609 else
    1610   eval ac_cv_prog_make_${ac_make}_set=no
    1611 fi
    1612 rm -f conftest.make
    1613 fi
    1614 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    1615   echo "$as_me:$LINENO: result: yes" >&5
    1616 echo "${ECHO_T}yes" >&6
    1617   SET_MAKE=
    1618 else
    1619   echo "$as_me:$LINENO: result: no" >&5
    1620 echo "${ECHO_T}no" >&6
    1621   SET_MAKE="MAKE=${MAKE-make}"
    1622 fi
    1623 
    1624 rm -rf .tst 2>/dev/null
    1625 mkdir .tst 2>/dev/null
    1626 if test -d .tst; then
    1627   am__leading_dot=.
    1628 else
    1629   am__leading_dot=_
    1630 fi
    1631 rmdir .tst 2>/dev/null
    1632 
    1633 # test to see if srcdir already configured
    1634 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    1635    test -f $srcdir/config.status; then
    1636   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
    1637 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
    1638    { (exit 1); exit 1; }; }
    1639 fi
    1640 
    1641 # test whether we have cygpath
    1642 if test -z "$CYGPATH_W"; then
    1643   if (cygpath --version) >/dev/null 2>/dev/null; then
    1644     CYGPATH_W='cygpath -w'
    1645   else
    1646     CYGPATH_W=echo
    1647   fi
    1648 fi
    1649 
    1650 
    1651 # Define the identity of the package.
    1652  PACKAGE=Transmission
    1653  VERSION=0.72Z
    1654 
    1655 
    1656 cat >>confdefs.h <<_ACEOF
    1657 #define PACKAGE "$PACKAGE"
    1658 _ACEOF
    1659 
    1660 
    1661 cat >>confdefs.h <<_ACEOF
    1662 #define VERSION "$VERSION"
    1663 _ACEOF
    1664 
    1665 # Some tools Automake needs.
    1666 
    1667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
    1668 
    1669 
    1670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
    1671 
    1672 
    1673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
    1674 
    1675 
    1676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
    1677 
    1678 
    1679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    1680 
    1681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    1682 
    1683 # Installed binaries are usually stripped using `strip' when the user
    1684 # run `make install-strip'.  However `strip' might not be the right
    1685 # tool to use in cross-compilation environments, therefore Automake
    1686 # will honor the `STRIP' environment variable to overrule this program.
    1687 if test "$cross_compiling" != no; then
    1688   if test -n "$ac_tool_prefix"; then
    1689   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
    1690 set dummy ${ac_tool_prefix}strip; ac_word=$2
    1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1693 if test "${ac_cv_prog_STRIP+set}" = set; then
    1694   echo $ECHO_N "(cached) $ECHO_C" >&6
    1695 else
    1696   if test -n "$STRIP"; then
    1697   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    1698 else
    1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1700 for as_dir in $PATH
    1701 do
    1702   IFS=$as_save_IFS
    1703   test -z "$as_dir" && as_dir=.
    1704   for ac_exec_ext in '' $ac_executable_extensions; do
    1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1706     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1708     break 2
    1709   fi
    1710 done
    1711 done
    1712 
    1713 fi
    1714 fi
    1715 STRIP=$ac_cv_prog_STRIP
    1716 if test -n "$STRIP"; then
    1717   echo "$as_me:$LINENO: result: $STRIP" >&5
    1718 echo "${ECHO_T}$STRIP" >&6
    1719 else
    1720   echo "$as_me:$LINENO: result: no" >&5
    1721 echo "${ECHO_T}no" >&6
    1722 fi
    1723 
    1724 fi
    1725 if test -z "$ac_cv_prog_STRIP"; then
    1726   ac_ct_STRIP=$STRIP
    1727   # Extract the first word of "strip", so it can be a program name with args.
    1728 set dummy strip; ac_word=$2
    1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    1732   echo $ECHO_N "(cached) $ECHO_C" >&6
    1733 else
    1734   if test -n "$ac_ct_STRIP"; then
    1735   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    1736 else
    1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1738 for as_dir in $PATH
    1739 do
    1740   IFS=$as_save_IFS
    1741   test -z "$as_dir" && as_dir=.
    1742   for ac_exec_ext in '' $ac_executable_extensions; do
    1743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1744     ac_cv_prog_ac_ct_STRIP="strip"
    1745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1746     break 2
    1747   fi
    1748 done
    1749 done
    1750 
    1751   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
    1752 fi
    1753 fi
    1754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    1755 if test -n "$ac_ct_STRIP"; then
    1756   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
    1757 echo "${ECHO_T}$ac_ct_STRIP" >&6
    1758 else
    1759   echo "$as_me:$LINENO: result: no" >&5
    1760 echo "${ECHO_T}no" >&6
    1761 fi
    1762 
    1763   STRIP=$ac_ct_STRIP
    1764 else
    1765   STRIP="$ac_cv_prog_STRIP"
    1766 fi
    1767 
    1768 fi
    1769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    1770 
    1771 # We need awk for the "check" target.  The system "awk" is bad on
    1772 # some platforms.
    1773 # Always define AMTAR for backward compatibility.
    1774 
    1775 AMTAR=${AMTAR-"${am_missing_run}tar"}
    1776 
    1777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
    1778 
    1779 
    1780 
    1781 
    1782 
    1783 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
    1784 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
    1785     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    1786 if test "${enable_maintainer_mode+set}" = set; then
    1787   enableval="$enable_maintainer_mode"
    1788   USE_MAINTAINER_MODE=$enableval
    1789 else
    1790   USE_MAINTAINER_MODE=no
    1791 fi;
    1792   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
    1793 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
    1794 
    1795 
    1796 if test $USE_MAINTAINER_MODE = yes; then
    1797   MAINTAINER_MODE_TRUE=
    1798   MAINTAINER_MODE_FALSE='#'
    1799 else
    1800   MAINTAINER_MODE_TRUE='#'
    1801   MAINTAINER_MODE_FALSE=
    1802 fi
    1803 
    1804   MAINT=$MAINTAINER_MODE_TRUE
    1805 
    1806 
    1807 
    1808 GLIB_MINIMUM=2.4.0
    1809 GTK_MINIMUM=2.4.0
    1810 WX_MINIMUM=2.6.0
    1811 
    1812 
    1813 
    1814 
    1815 ac_ext=c
    1816 ac_cpp='$CPP $CPPFLAGS'
    1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1820 if test -n "$ac_tool_prefix"; then
    1821   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1825 if test "${ac_cv_prog_CC+set}" = set; then
    1826   echo $ECHO_N "(cached) $ECHO_C" >&6
    1827 else
    1828   if test -n "$CC"; then
    1829   ac_cv_prog_CC="$CC" # Let the user override the test.
    1830 else
    1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1832 for as_dir in $PATH
    1833 do
    1834   IFS=$as_save_IFS
    1835   test -z "$as_dir" && as_dir=.
    1836   for ac_exec_ext in '' $ac_executable_extensions; do
    1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1838     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1840     break 2
    1841   fi
    1842 done
    1843 done
    1844 
    1845 fi
    1846 fi
    1847 CC=$ac_cv_prog_CC
    1848 if test -n "$CC"; then
    1849   echo "$as_me:$LINENO: result: $CC" >&5
    1850 echo "${ECHO_T}$CC" >&6
    1851 else
    1852   echo "$as_me:$LINENO: result: no" >&5
    1853 echo "${ECHO_T}no" >&6
    1854 fi
    1855 
    1856 fi
    1857 if test -z "$ac_cv_prog_CC"; then
    1858   ac_ct_CC=$CC
    1859   # Extract the first word of "gcc", so it can be a program name with args.
    1860 set dummy gcc; ac_word=$2
    1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1864   echo $ECHO_N "(cached) $ECHO_C" >&6
    1865 else
    1866   if test -n "$ac_ct_CC"; then
    1867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1868 else
    1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1870 for as_dir in $PATH
    1871 do
    1872   IFS=$as_save_IFS
    1873   test -z "$as_dir" && as_dir=.
    1874   for ac_exec_ext in '' $ac_executable_extensions; do
    1875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1876     ac_cv_prog_ac_ct_CC="gcc"
    1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1878     break 2
    1879   fi
    1880 done
    1881 done
    1882 
    1883 fi
    1884 fi
    1885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1886 if test -n "$ac_ct_CC"; then
    1887   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1888 echo "${ECHO_T}$ac_ct_CC" >&6
    1889 else
    1890   echo "$as_me:$LINENO: result: no" >&5
    1891 echo "${ECHO_T}no" >&6
    1892 fi
    1893 
    1894   CC=$ac_ct_CC
    1895 else
    1896   CC="$ac_cv_prog_CC"
    1897 fi
    1898 
    1899 if test -z "$CC"; then
    1900   if test -n "$ac_tool_prefix"; then
    1901   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1902 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1905 if test "${ac_cv_prog_CC+set}" = set; then
    1906   echo $ECHO_N "(cached) $ECHO_C" >&6
    1907 else
    1908   if test -n "$CC"; then
    1909   ac_cv_prog_CC="$CC" # Let the user override the test.
    1910 else
    1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1912 for as_dir in $PATH
    1913 do
    1914   IFS=$as_save_IFS
    1915   test -z "$as_dir" && as_dir=.
    1916   for ac_exec_ext in '' $ac_executable_extensions; do
    1917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1918     ac_cv_prog_CC="${ac_tool_prefix}cc"
    1919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1920     break 2
    1921   fi
    1922 done
    1923 done
    1924 
    1925 fi
    1926 fi
    1927 CC=$ac_cv_prog_CC
    1928 if test -n "$CC"; then
    1929   echo "$as_me:$LINENO: result: $CC" >&5
    1930 echo "${ECHO_T}$CC" >&6
    1931 else
    1932   echo "$as_me:$LINENO: result: no" >&5
    1933 echo "${ECHO_T}no" >&6
    1934 fi
    1935 
    1936 fi
    1937 if test -z "$ac_cv_prog_CC"; then
    1938   ac_ct_CC=$CC
    1939   # Extract the first word of "cc", so it can be a program name with args.
    1940 set dummy cc; ac_word=$2
    1941 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1944   echo $ECHO_N "(cached) $ECHO_C" >&6
    1945 else
    1946   if test -n "$ac_ct_CC"; then
    1947   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    1948 else
    1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1950 for as_dir in $PATH
    1951 do
    1952   IFS=$as_save_IFS
    1953   test -z "$as_dir" && as_dir=.
    1954   for ac_exec_ext in '' $ac_executable_extensions; do
    1955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1956     ac_cv_prog_ac_ct_CC="cc"
    1957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    1958     break 2
    1959   fi
    1960 done
    1961 done
    1962 
    1963 fi
    1964 fi
    1965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1966 if test -n "$ac_ct_CC"; then
    1967   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    1968 echo "${ECHO_T}$ac_ct_CC" >&6
    1969 else
    1970   echo "$as_me:$LINENO: result: no" >&5
    1971 echo "${ECHO_T}no" >&6
    1972 fi
    1973 
    1974   CC=$ac_ct_CC
    1975 else
    1976   CC="$ac_cv_prog_CC"
    1977 fi
    1978 
    1979 fi
    1980 if test -z "$CC"; then
    1981   # Extract the first word of "cc", so it can be a program name with args.
    1982 set dummy cc; ac_word=$2
    1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
    1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1985 if test "${ac_cv_prog_CC+set}" = set; then
    1986   echo $ECHO_N "(cached) $ECHO_C" >&6
    1987 else
    1988   if test -n "$CC"; then
    1989   ac_cv_prog_CC="$CC" # Let the user override the test.
    1990 else
    1991   ac_prog_rejected=no
    1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1993 for as_dir in $PATH
    1994 do
    1995   IFS=$as_save_IFS
    1996   test -z "$as_dir" && as_dir=.
    1997   for ac_exec_ext in '' $ac_executable_extensions; do
    1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1999     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    2000        ac_prog_rejected=yes
    2001        continue
    2002      fi
    2003     ac_cv_prog_CC="cc"
    2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2005     break 2
    2006   fi
    2007 done
    2008 done
    2009 
    2010 if test $ac_prog_rejected = yes; then
    2011   # We found a bogon in the path, so make sure we never use it.
    2012   set dummy $ac_cv_prog_CC
    2013   shift
    2014   if test $# != 0; then
    2015     # We chose a different compiler from the bogus one.
    2016     # However, it has the same basename, so the bogon will be chosen
    2017     # first if we set CC to just the basename; use the full file name.
    2018     shift
    2019     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    2020   fi
    2021 fi
    2022 fi
    2023 fi
    2024 CC=$ac_cv_prog_CC
    2025 if test -n "$CC"; then
    2026   echo "$as_me:$LINENO: result: $CC" >&5
    2027 echo "${ECHO_T}$CC" >&6
    2028 else
    2029   echo "$as_me:$LINENO: result: no" >&5
    2030 echo "${ECHO_T}no" >&6
    2031 fi
    2032 
    2033 fi
    2034 if test -z "$CC"; then
    2035   if test -n "$ac_tool_prefix"; then
    2036   for ac_prog in cl
    2037   do
    2038     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2042 if test "${ac_cv_prog_CC+set}" = set; then
    2043   echo $ECHO_N "(cached) $ECHO_C" >&6
    2044 else
    2045   if test -n "$CC"; then
    2046   ac_cv_prog_CC="$CC" # Let the user override the test.
    2047 else
    2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2049 for as_dir in $PATH
    2050 do
    2051   IFS=$as_save_IFS
    2052   test -z "$as_dir" && as_dir=.
    2053   for ac_exec_ext in '' $ac_executable_extensions; do
    2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2055     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2057     break 2
    2058   fi
    2059 done
    2060 done
    2061 
    2062 fi
    2063 fi
    2064 CC=$ac_cv_prog_CC
    2065 if test -n "$CC"; then
    2066   echo "$as_me:$LINENO: result: $CC" >&5
    2067 echo "${ECHO_T}$CC" >&6
    2068 else
    2069   echo "$as_me:$LINENO: result: no" >&5
    2070 echo "${ECHO_T}no" >&6
    2071 fi
    2072 
    2073     test -n "$CC" && break
    2074   done
    2075 fi
    2076 if test -z "$CC"; then
    2077   ac_ct_CC=$CC
    2078   for ac_prog in cl
    2079 do
    2080   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2081 set dummy $ac_prog; ac_word=$2
    2082 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2085   echo $ECHO_N "(cached) $ECHO_C" >&6
    2086 else
    2087   if test -n "$ac_ct_CC"; then
    2088   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2089 else
    2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2091 for as_dir in $PATH
    2092 do
    2093   IFS=$as_save_IFS
    2094   test -z "$as_dir" && as_dir=.
    2095   for ac_exec_ext in '' $ac_executable_extensions; do
    2096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2097     ac_cv_prog_ac_ct_CC="$ac_prog"
    2098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2099     break 2
    2100   fi
    2101 done
    2102 done
    2103 
    2104 fi
    2105 fi
    2106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2107 if test -n "$ac_ct_CC"; then
    2108   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2109 echo "${ECHO_T}$ac_ct_CC" >&6
    2110 else
    2111   echo "$as_me:$LINENO: result: no" >&5
    2112 echo "${ECHO_T}no" >&6
    2113 fi
    2114 
    2115   test -n "$ac_ct_CC" && break
    2116 done
    2117 
    2118   CC=$ac_ct_CC
    2119 fi
    2120 
    2121 fi
    2122 
    2123 
    2124 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2125 See \`config.log' for more details." >&5
    2126 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2127 See \`config.log' for more details." >&2;}
    2128    { (exit 1); exit 1; }; }
    2129 
    2130 # Provide some information about the compiler.
    2131 echo "$as_me:$LINENO:" \
    2132      "checking for C compiler version" >&5
    2133 ac_compiler=`set X $ac_compile; echo $2`
    2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2135   (eval $ac_compiler --version </dev/null >&5) 2>&5
    2136   ac_status=$?
    2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2138   (exit $ac_status); }
    2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2140   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2141   ac_status=$?
    2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2143   (exit $ac_status); }
    2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2145   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2146   ac_status=$?
    2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2148   (exit $ac_status); }
    2149 
    2150 cat >conftest.$ac_ext <<_ACEOF
    2151 /* confdefs.h.  */
    2152 _ACEOF
    2153 cat confdefs.h >>conftest.$ac_ext
    2154 cat >>conftest.$ac_ext <<_ACEOF
    2155 /* end confdefs.h.  */
    2156 
    2157 int
    2158 main ()
    2159 {
    2160 
    2161   ;
    2162   return 0;
    2163 }
    2164 _ACEOF
    2165 ac_clean_files_save=$ac_clean_files
    2166 ac_clean_files="$ac_clean_files a.out a.exe b.out"
    2167 # Try to create an executable without -o first, disregard a.out.
    2168 # It will help us diagnose broken compilers, and finding out an intuition
    2169 # of exeext.
    2170 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2171 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    2172 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2173 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    2174   (eval $ac_link_default) 2>&5
    2175   ac_status=$?
    2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2177   (exit $ac_status); }; then
    2178   # Find the output, starting from the most likely.  This scheme is
    2179 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    2180 # resort.
    2181 
    2182 # Be careful to initialize this variable, since it used to be cached.
    2183 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    2184 ac_cv_exeext=
    2185 # b.out is created by i960 compilers.
    2186 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
    2187 do
    2188   test -f "$ac_file" || continue
    2189   case $ac_file in
    2190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    2191         ;;
    2192     conftest.$ac_ext )
    2193         # This is the source file.
    2194         ;;
    2195     [ab].out )
    2196         # We found the default executable, but exeext='' is most
    2197         # certainly right.
    2198         break;;
    2199     *.* )
    2200         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2201         # FIXME: I believe we export ac_cv_exeext for Libtool,
    2202         # but it would be cool to find out if it's true.  Does anybody
    2203         # maintain Libtool? --akim.
    2204         export ac_cv_exeext
    2205         break;;
    2206     * )
    2207         break;;
    2208   esac
    2209 done
    2210 else
    2211   echo "$as_me: failed program was:" >&5
    2212 sed 's/^/| /' conftest.$ac_ext >&5
    2213 
    2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    2215 See \`config.log' for more details." >&5
    2216 echo "$as_me: error: C compiler cannot create executables
    2217 See \`config.log' for more details." >&2;}
    2218    { (exit 77); exit 77; }; }
    2219 fi
    2220 
    2221 ac_exeext=$ac_cv_exeext
    2222 echo "$as_me:$LINENO: result: $ac_file" >&5
    2223 echo "${ECHO_T}$ac_file" >&6
    2224 
    2225 # Check the compiler produces executables we can run.  If not, either
    2226 # the compiler is broken, or we cross compile.
    2227 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2230 # If not cross compiling, check that we can run a simple program.
    2231 if test "$cross_compiling" != yes; then
    2232   if { ac_try='./$ac_file'
    2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2234   (eval $ac_try) 2>&5
    2235   ac_status=$?
    2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2237   (exit $ac_status); }; }; then
    2238     cross_compiling=no
    2239   else
    2240     if test "$cross_compiling" = maybe; then
    2241         cross_compiling=yes
    2242     else
    2243         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2244 If you meant to cross compile, use \`--host'.
    2245 See \`config.log' for more details." >&5
    2246 echo "$as_me: error: cannot run C compiled programs.
    2247 If you meant to cross compile, use \`--host'.
    2248 See \`config.log' for more details." >&2;}
    2249    { (exit 1); exit 1; }; }
    2250     fi
    2251   fi
    2252 fi
    2253 echo "$as_me:$LINENO: result: yes" >&5
    2254 echo "${ECHO_T}yes" >&6
    2255 
    2256 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2257 ac_clean_files=$ac_clean_files_save
    2258 # Check the compiler produces executables we can run.  If not, either
    2259 # the compiler is broken, or we cross compile.
    2260 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2261 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2262 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2263 echo "${ECHO_T}$cross_compiling" >&6
    2264 
    2265 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2266 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2268   (eval $ac_link) 2>&5
    2269   ac_status=$?
    2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2271   (exit $ac_status); }; then
    2272   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    2273 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    2274 # work properly (i.e., refer to `conftest.exe'), while it won't with
    2275 # `rm'.
    2276 for ac_file in conftest.exe conftest conftest.*; do
    2277   test -f "$ac_file" || continue
    2278   case $ac_file in
    2279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    2280     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2281           export ac_cv_exeext
    2282           break;;
    2283     * ) break;;
    2284   esac
    2285 done
    2286 else
    2287   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2288 See \`config.log' for more details." >&5
    2289 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2290 See \`config.log' for more details." >&2;}
    2291    { (exit 1); exit 1; }; }
    2292 fi
    2293 
    2294 rm -f conftest$ac_cv_exeext
    2295 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2296 echo "${ECHO_T}$ac_cv_exeext" >&6
    2297 
    2298 rm -f conftest.$ac_ext
    2299 EXEEXT=$ac_cv_exeext
    2300 ac_exeext=$EXEEXT
    2301 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2302 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    2303 if test "${ac_cv_objext+set}" = set; then
    2304   echo $ECHO_N "(cached) $ECHO_C" >&6
    2305 else
    2306   cat >conftest.$ac_ext <<_ACEOF
    2307 /* confdefs.h.  */
    2308 _ACEOF
    2309 cat confdefs.h >>conftest.$ac_ext
    2310 cat >>conftest.$ac_ext <<_ACEOF
    2311 /* end confdefs.h.  */
    2312 
    2313 int
    2314 main ()
    2315 {
    2316 
    2317   ;
    2318   return 0;
    2319 }
    2320 _ACEOF
    2321 rm -f conftest.o conftest.obj
    2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2323   (eval $ac_compile) 2>&5
    2324   ac_status=$?
    2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2326   (exit $ac_status); }; then
    2327   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    2328   case $ac_file in
    2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    2330     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    2331        break;;
    2332   esac
    2333 done
    2334 else
    2335   echo "$as_me: failed program was:" >&5
    2336 sed 's/^/| /' conftest.$ac_ext >&5
    2337 
    2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2339 See \`config.log' for more details." >&5
    2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2341 See \`config.log' for more details." >&2;}
    2342    { (exit 1); exit 1; }; }
    2343 fi
    2344 
    2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    2346 fi
    2347 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2348 echo "${ECHO_T}$ac_cv_objext" >&6
    2349 OBJEXT=$ac_cv_objext
    2350 ac_objext=$OBJEXT
    2351 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    2354   echo $ECHO_N "(cached) $ECHO_C" >&6
    2355 else
    2356   cat >conftest.$ac_ext <<_ACEOF
    2357 /* confdefs.h.  */
    2358 _ACEOF
    2359 cat confdefs.h >>conftest.$ac_ext
    2360 cat >>conftest.$ac_ext <<_ACEOF
    2361 /* end confdefs.h.  */
    2362 
    2363 int
    2364 main ()
    2365 {
    2366 #ifndef __GNUC__
    2367        choke me
    2368 #endif
    2369 
    2370   ;
    2371   return 0;
    2372 }
    2373 _ACEOF
    2374 rm -f conftest.$ac_objext
    2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2376   (eval $ac_compile) 2>conftest.er1
    2377   ac_status=$?
    2378   grep -v '^ *+' conftest.er1 >conftest.err
    2379   rm -f conftest.er1
    2380   cat conftest.err >&5
    2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2382   (exit $ac_status); } &&
    2383          { ac_try='test -z "$ac_c_werror_flag"
    2384                          || test ! -s conftest.err'
    2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2386   (eval $ac_try) 2>&5
    2387   ac_status=$?
    2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2389   (exit $ac_status); }; } &&
    2390          { ac_try='test -s conftest.$ac_objext'
    2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2392   (eval $ac_try) 2>&5
    2393   ac_status=$?
    2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2395   (exit $ac_status); }; }; then
    2396   ac_compiler_gnu=yes
    2397 else
    2398   echo "$as_me: failed program was:" >&5
    2399 sed 's/^/| /' conftest.$ac_ext >&5
    2400 
    2401 ac_compiler_gnu=no
    2402 fi
    2403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    2405 
    2406 fi
    2407 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2408 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    2409 GCC=`test $ac_compiler_gnu = yes && echo yes`
    2410 ac_test_CFLAGS=${CFLAGS+set}
    2411 ac_save_CFLAGS=$CFLAGS
    2412 CFLAGS="-g"
    2413 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    2415 if test "${ac_cv_prog_cc_g+set}" = set; then
    2416   echo $ECHO_N "(cached) $ECHO_C" >&6
    2417 else
    2418   cat >conftest.$ac_ext <<_ACEOF
    2419 /* confdefs.h.  */
    2420 _ACEOF
    2421 cat confdefs.h >>conftest.$ac_ext
    2422 cat >>conftest.$ac_ext <<_ACEOF
    2423 /* end confdefs.h.  */
    2424 
    2425 int
    2426 main ()
    2427 {
    2428 
    2429   ;
    2430   return 0;
    2431 }
    2432 _ACEOF
    2433 rm -f conftest.$ac_objext
    2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2435   (eval $ac_compile) 2>conftest.er1
    2436   ac_status=$?
    2437   grep -v '^ *+' conftest.er1 >conftest.err
    2438   rm -f conftest.er1
    2439   cat conftest.err >&5
    2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2441   (exit $ac_status); } &&
    2442          { ac_try='test -z "$ac_c_werror_flag"
    2443                          || test ! -s conftest.err'
    2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2445   (eval $ac_try) 2>&5
    2446   ac_status=$?
    2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2448   (exit $ac_status); }; } &&
    2449          { ac_try='test -s conftest.$ac_objext'
    2450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2451   (eval $ac_try) 2>&5
    2452   ac_status=$?
    2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2454   (exit $ac_status); }; }; then
    2455   ac_cv_prog_cc_g=yes
    2456 else
    2457   echo "$as_me: failed program was:" >&5
    2458 sed 's/^/| /' conftest.$ac_ext >&5
    2459 
    2460 ac_cv_prog_cc_g=no
    2461 fi
    2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2463 fi
    2464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    2466 if test "$ac_test_CFLAGS" = set; then
    2467   CFLAGS=$ac_save_CFLAGS
    2468 elif test $ac_cv_prog_cc_g = yes; then
    2469   if test "$GCC" = yes; then
    2470     CFLAGS="-g -O2"
    2471   else
    2472     CFLAGS="-g"
    2473   fi
    2474 else
    2475   if test "$GCC" = yes; then
    2476     CFLAGS="-O2"
    2477   else
    2478     CFLAGS=
    2479   fi
    2480 fi
    2481 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    2482 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    2483 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    2484   echo $ECHO_N "(cached) $ECHO_C" >&6
    2485 else
    2486   ac_cv_prog_cc_stdc=no
    2487 ac_save_CC=$CC
    2488 cat >conftest.$ac_ext <<_ACEOF
    2489 /* confdefs.h.  */
    2490 _ACEOF
    2491 cat confdefs.h >>conftest.$ac_ext
    2492 cat >>conftest.$ac_ext <<_ACEOF
    2493 /* end confdefs.h.  */
    2494 #include <stdarg.h>
    2495 #include <stdio.h>
    2496 #include <sys/types.h>
    2497 #include <sys/stat.h>
    2498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2499 struct buf { int x; };
    2500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2501 static char *e (p, i)
    2502      char **p;
    2503      int i;
    2504 {
    2505   return p[i];
    2506 }
    2507 static char *f (char * (*g) (char **, int), char **p, ...)
    2508 {
    2509   char *s;
    2510   va_list v;
    2511   va_start (v,p);
    2512   s = g (p, va_arg (v,int));
    2513   va_end (v);
    2514   return s;
    2515 }
    2516 
    2517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2518    function prototypes and stuff, but not '\xHH' hex character constants.
    2519    These don't provoke an error unfortunately, instead are silently treated
    2520    as 'x'.  The following induces an error, until -std1 is added to get
    2521    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2522    array size at least.  It's necessary to write '\x00'==0 to get something
    2523    that's true only with -std1.  */
    2524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2525 
    2526 int test (int i, double x);
    2527 struct s1 {int (*f) (int a);};
    2528 struct s2 {int (*f) (double a);};
    2529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2530 int argc;
    2531 char **argv;
    2532 int
    2533 main ()
    2534 {
    2535 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2536   ;
    2537   return 0;
    2538 }
    2539 _ACEOF
    2540 # Don't try gcc -ansi; that turns off useful extensions and
    2541 # breaks some systems' header files.
    2542 # AIX                   -qlanglvl=ansi
    2543 # Ultrix and OSF/1      -std1
    2544 # HP-UX 10.20 and later -Ae
    2545 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    2546 # SVR4                  -Xc -D__EXTENSIONS__
    2547 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2548 do
    2549   CC="$ac_save_CC $ac_arg"
    2550   rm -f conftest.$ac_objext
    2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2552   (eval $ac_compile) 2>conftest.er1
    2553   ac_status=$?
    2554   grep -v '^ *+' conftest.er1 >conftest.err
    2555   rm -f conftest.er1
    2556   cat conftest.err >&5
    2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2558   (exit $ac_status); } &&
    2559          { ac_try='test -z "$ac_c_werror_flag"
    2560                          || test ! -s conftest.err'
    2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2562   (eval $ac_try) 2>&5
    2563   ac_status=$?
    2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2565   (exit $ac_status); }; } &&
    2566          { ac_try='test -s conftest.$ac_objext'
    2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2568   (eval $ac_try) 2>&5
    2569   ac_status=$?
    2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2571   (exit $ac_status); }; }; then
    2572   ac_cv_prog_cc_stdc=$ac_arg
    2573 break
    2574 else
    2575   echo "$as_me: failed program was:" >&5
    2576 sed 's/^/| /' conftest.$ac_ext >&5
    2577 
    2578 fi
    2579 rm -f conftest.err conftest.$ac_objext
    2580 done
    2581 rm -f conftest.$ac_ext conftest.$ac_objext
    2582 CC=$ac_save_CC
    2583 
    2584 fi
    2585 
    2586 case "x$ac_cv_prog_cc_stdc" in
    2587   x|xno)
    2588     echo "$as_me:$LINENO: result: none needed" >&5
    2589 echo "${ECHO_T}none needed" >&6 ;;
    2590   *)
    2591     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    2592 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    2593     CC="$CC $ac_cv_prog_cc_stdc" ;;
    2594 esac
    2595 
    2596 # Some people use a C++ compiler to compile C.  Since we use `exit',
    2597 # in C++ we need to declare it.  In case someone uses the same compiler
    2598 # for both compiling C and C++ we need to have the C++ compiler decide
    2599 # the declaration of exit, since it's the most demanding environment.
    2600 cat >conftest.$ac_ext <<_ACEOF
    2601 #ifndef __cplusplus
    2602   choke me
    2603 #endif
    2604 _ACEOF
    2605 rm -f conftest.$ac_objext
    2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2607   (eval $ac_compile) 2>conftest.er1
    2608   ac_status=$?
    2609   grep -v '^ *+' conftest.er1 >conftest.err
    2610   rm -f conftest.er1
    2611   cat conftest.err >&5
    2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2613   (exit $ac_status); } &&
    2614          { ac_try='test -z "$ac_c_werror_flag"
    2615                          || test ! -s conftest.err'
    2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2617   (eval $ac_try) 2>&5
    2618   ac_status=$?
    2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2620   (exit $ac_status); }; } &&
    2621          { ac_try='test -s conftest.$ac_objext'
    2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2623   (eval $ac_try) 2>&5
    2624   ac_status=$?
    2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2626   (exit $ac_status); }; }; then
    2627   for ac_declaration in \
    2628    '' \
    2629    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2630    'extern "C" void std::exit (int); using std::exit;' \
    2631    'extern "C" void exit (int) throw ();' \
    2632    'extern "C" void exit (int);' \
    2633    'void exit (int);'
    2634 do
    2635   cat >conftest.$ac_ext <<_ACEOF
    2636 /* confdefs.h.  */
    2637 _ACEOF
    2638 cat confdefs.h >>conftest.$ac_ext
    2639 cat >>conftest.$ac_ext <<_ACEOF
    2640 /* end confdefs.h.  */
    2641 $ac_declaration
    2642 #include <stdlib.h>
    2643 int
    2644 main ()
    2645 {
    2646 exit (42);
    2647   ;
    2648   return 0;
    2649 }
    2650 _ACEOF
    2651 rm -f conftest.$ac_objext
    2652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2653   (eval $ac_compile) 2>conftest.er1
    2654   ac_status=$?
    2655   grep -v '^ *+' conftest.er1 >conftest.err
    2656   rm -f conftest.er1
    2657   cat conftest.err >&5
    2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2659   (exit $ac_status); } &&
    2660          { ac_try='test -z "$ac_c_werror_flag"
    2661                          || test ! -s conftest.err'
    2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2663   (eval $ac_try) 2>&5
    2664   ac_status=$?
    2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2666   (exit $ac_status); }; } &&
    2667          { ac_try='test -s conftest.$ac_objext'
    2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2669   (eval $ac_try) 2>&5
    2670   ac_status=$?
    2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2672   (exit $ac_status); }; }; then
    2673   :
    2674 else
    2675   echo "$as_me: failed program was:" >&5
    2676 sed 's/^/| /' conftest.$ac_ext >&5
    2677 
    2678 continue
    2679 fi
    2680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2681   cat >conftest.$ac_ext <<_ACEOF
    2682 /* confdefs.h.  */
    2683 _ACEOF
    2684 cat confdefs.h >>conftest.$ac_ext
    2685 cat >>conftest.$ac_ext <<_ACEOF
    2686 /* end confdefs.h.  */
    2687 $ac_declaration
    2688 int
    2689 main ()
    2690 {
    2691 exit (42);
    2692   ;
    2693   return 0;
    2694 }
    2695 _ACEOF
    2696 rm -f conftest.$ac_objext
    2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2698   (eval $ac_compile) 2>conftest.er1
    2699   ac_status=$?
    2700   grep -v '^ *+' conftest.er1 >conftest.err
    2701   rm -f conftest.er1
    2702   cat conftest.err >&5
    2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2704   (exit $ac_status); } &&
    2705          { ac_try='test -z "$ac_c_werror_flag"
    2706                          || test ! -s conftest.err'
    2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2708   (eval $ac_try) 2>&5
    2709   ac_status=$?
    2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2711   (exit $ac_status); }; } &&
    2712          { ac_try='test -s conftest.$ac_objext'
    2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2714   (eval $ac_try) 2>&5
    2715   ac_status=$?
    2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2717   (exit $ac_status); }; }; then
    2718   break
    2719 else
    2720   echo "$as_me: failed program was:" >&5
    2721 sed 's/^/| /' conftest.$ac_ext >&5
    2722 
    2723 fi
    2724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2725 done
    2726 rm -f conftest*
    2727 if test -n "$ac_declaration"; then
    2728   echo '#ifdef __cplusplus' >>confdefs.h
    2729   echo $ac_declaration      >>confdefs.h
    2730   echo '#endif'             >>confdefs.h
    2731 fi
    2732 
    2733 else
    2734   echo "$as_me: failed program was:" >&5
    2735 sed 's/^/| /' conftest.$ac_ext >&5
    2736 
    2737 fi
    2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2739 ac_ext=c
    2740 ac_cpp='$CPP $CPPFLAGS'
    2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2744 DEPDIR="${am__leading_dot}deps"
    2745 
    2746           ac_config_commands="$ac_config_commands depfiles"
    2747 
    2748 
    2749 am_make=${MAKE-make}
    2750 cat > confinc << 'END'
    2751 am__doit:
    2752         @echo done
    2753 .PHONY: am__doit
    2754 END
    2755 # If we don't find an include directive, just comment out the code.
    2756 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
    2757 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
    2758 am__include="#"
    2759 am__quote=
    2760 _am_result=none
    2761 # First try GNU make style include.
    2762 echo "include confinc" > confmf
    2763 # We grep out `Entering directory' and `Leaving directory'
    2764 # messages which can occur if `w' ends up in MAKEFLAGS.
    2765 # In particular we don't look at `^make:' because GNU make might
    2766 # be invoked under some other name (usually "gmake"), in which
    2767 # case it prints its new name instead of `make'.
    2768 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    2769    am__include=include
    2770    am__quote=
    2771    _am_result=GNU
    2772 fi
    2773 # Now try BSD make style include.
    2774 if test "$am__include" = "#"; then
    2775    echo '.include "confinc"' > confmf
    2776    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    2777       am__include=.include
    2778       am__quote="\""
    2779       _am_result=BSD
    2780    fi
    2781 fi
    2782 
    2783 
    2784 echo "$as_me:$LINENO: result: $_am_result" >&5
    2785 echo "${ECHO_T}$_am_result" >&6
    2786 rm -f confinc confmf
    2787 
    2788 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
    2789 if test "${enable_dependency_tracking+set}" = set; then
    2790   enableval="$enable_dependency_tracking"
    2791 
    2792 fi;
    2793 if test "x$enable_dependency_tracking" != xno; then
    2794   am_depcomp="$ac_aux_dir/depcomp"
    2795   AMDEPBACKSLASH='\'
    2796 fi
    2797 
    2798 
    2799 if test "x$enable_dependency_tracking" != xno; then
    2800   AMDEP_TRUE=
    2801   AMDEP_FALSE='#'
    2802 else
    2803   AMDEP_TRUE='#'
    2804   AMDEP_FALSE=
    2805 fi
    2806 
    2807 
    2808 
    2809 
    2810 depcc="$CC"   am_compiler_list=
    2811 
    2812 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    2813 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    2814 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
    2815   echo $ECHO_N "(cached) $ECHO_C" >&6
    2816 else
    2817   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    2818   # We make a subdir and do the tests there.  Otherwise we can end up
    2819   # making bogus files that we don't know about and never remove.  For
    2820   # instance it was reported that on HP-UX the gcc test will end up
    2821   # making a dummy file named `D' -- because `-MD' means `put the output
    2822   # in D'.
    2823   mkdir conftest.dir
    2824   # Copy depcomp to subdir because otherwise we won't find it if we're
    2825   # using a relative directory.
    2826   cp "$am_depcomp" conftest.dir
    2827   cd conftest.dir
    2828   # We will build objects and dependencies in a subdirectory because
    2829   # it helps to detect inapplicable dependency modes.  For instance
    2830   # both Tru64's cc and ICC support -MD to output dependencies as a
    2831   # side effect of compilation, but ICC will put the dependencies in
    2832   # the current directory while Tru64 will put them in the object
    2833   # directory.
    2834   mkdir sub
    2835 
    2836   am_cv_CC_dependencies_compiler_type=none
    2837   if test "$am_compiler_list" = ""; then
    2838      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    2839   fi
    2840   for depmode in $am_compiler_list; do
    2841     # Setup a source with many dependencies, because some compilers
    2842     # like to wrap large dependency lists on column 80 (with \), and
    2843     # we should not choose a depcomp mode which is confused by this.
    2844     #
    2845     # We need to recreate these files for each test, as the compiler may
    2846     # overwrite some of them when testing with obscure command lines.
    2847     # This happens at least with the AIX C compiler.
    2848     : > sub/conftest.c
    2849     for i in 1 2 3 4 5 6; do
    2850       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2851       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    2852       # Solaris 8's {/usr,}/bin/sh.
    2853       touch sub/conftst$i.h
    2854     done
    2855     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    2856 
    2857     case $depmode in
    2858     nosideeffect)
    2859       # after this tag, mechanisms are not by side-effect, so they'll
    2860       # only be used when explicitly requested
    2861       if test "x$enable_dependency_tracking" = xyes; then
    2862         continue
    2863       else
    2864         break
    2865       fi
    2866       ;;
    2867     none) break ;;
    2868     esac
    2869     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    2870     # mode.  It turns out that the SunPro C++ compiler does not properly
    2871     # handle `-M -o', and we need to detect this.
    2872     if depmode=$depmode \
    2873        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    2874        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    2875        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    2876          >/dev/null 2>conftest.err &&
    2877        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    2878        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    2879        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    2880       # icc doesn't choke on unknown options, it will just issue warnings
    2881       # or remarks (even with -Werror).  So we grep stderr for any message
    2882       # that says an option was ignored or not supported.
    2883       # When given -MP, icc 7.0 and 7.1 complain thusly:
    2884       #   icc: Command line warning: ignoring option '-M'; no argument required
    2885       # The diagnosis changed in icc 8.0:
    2886       #   icc: Command line remark: option '-MP' not supported
    2887       if (grep 'ignoring option' conftest.err ||
    2888           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    2889         am_cv_CC_dependencies_compiler_type=$depmode
    2890         break
    2891       fi
     259    if runcmd $CC $CFLAGS_GTK -I$intl_testdir $LDFLAGS_GTK -o testconf testconf.c
     260    then
     261      CFLAGS_GTK="$CFLAGS_GTK -I$intl_testdir"
     262      rm -f testconf*
     263      return 0
    2892264    fi
    2893265  done
    2894 
    2895   cd ..
    2896   rm -rf conftest.dir
    2897 else
    2898   am_cv_CC_dependencies_compiler_type=none
    2899 fi
    2900 
    2901 fi
    2902 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    2903 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    2904 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    2905 
    2906 
    2907 
    2908 if
    2909   test "x$enable_dependency_tracking" != xno \
    2910   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    2911   am__fastdepCC_TRUE=
    2912   am__fastdepCC_FALSE='#'
    2913 else
    2914   am__fastdepCC_TRUE='#'
    2915   am__fastdepCC_FALSE=
    2916 fi
    2917 
    2918 
    2919 ac_ext=cc
    2920 ac_cpp='$CXXCPP $CPPFLAGS'
    2921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2924 if test -n "$ac_tool_prefix"; then
    2925   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     266  rm -f testconf*
     267  return 1
     268}
     269
     270gtk_test()
     271{
     272  verbose gtk_test
     273  if runcmd pkg-config gtk+-2.0
     274  then
     275    if runcmd pkg-config --exists gtk+-2.0 '>=' 2.6.0
     276    then
     277      cat > testconf.c << EOF
     278      #include <gtk/gtk.h>
     279      int main()
     280      {
     281        gtk_main();
     282      }
     283EOF
     284      if runcmd $CC `pkg-config gtk+-2.0 --cflags --libs` -o testconf testconf.c
     285      then
     286        CFLAGS_GTK=`pkg-config gtk+-2.0 --cflags`
     287        LDFLAGS_GTK=`pkg-config gtk+-2.0 --libs`
     288        if gettext_test
     289        then
     290          echo "yes"
     291          GTK=yes
     292          LOCALEDIR="$PREFIX/share/locale"
     293          CFLAGS_GTK="$CFLAGS_GTK -DLOCALEDIR=\\"\""$LOCALEDIR\\"\"
     294        else
     295          echo "no (could not find gettext libintl.h)"
     296          GTK=no
     297        fi
     298      else
     299        echo "no"
     300        GTK=no
     301      fi
     302      rm -f testconf*
     303    else
     304      echo "no (2.6.0 or later is required)"
     305      GTK=no
     306    fi
     307  else
     308    echo "no"
     309    GTK=no
     310  fi
     311}
     312
     313libevent_test()
     314{
     315  verbose libevent_test
     316  cat > testconf.c <<EOF
     317#include <sys/types.h>
     318#include <sys/time.h>
     319#include <event.h>
     320int main()
     321{
     322    event_init();
     323    return 0;
     324}
     325EOF
     326
     327  if runcmd $CC $CFLAGS -levent $LDFLAGS -o testconf testconf.c
     328  then
     329    LIBEVENT=yes
     330    LDFLAGS_EVENT="-levent"
     331    rm -f testconf*
     332    return 0
     333  fi
     334
     335  for event_testdir in $PREFIX /usr/local /usr/X11R6 /usr/pkg
    2926336  do
    2927     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2929 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2931 if test "${ac_cv_prog_CXX+set}" = set; then
    2932   echo $ECHO_N "(cached) $ECHO_C" >&6
    2933 else
    2934   if test -n "$CXX"; then
    2935   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    2936 else
    2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2938 for as_dir in $PATH
    2939 do
    2940   IFS=$as_save_IFS
    2941   test -z "$as_dir" && as_dir=.
    2942   for ac_exec_ext in '' $ac_executable_extensions; do
    2943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2944     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    2945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2946     break 2
    2947   fi
    2948 done
    2949 done
    2950 
    2951 fi
    2952 fi
    2953 CXX=$ac_cv_prog_CXX
    2954 if test -n "$CXX"; then
    2955   echo "$as_me:$LINENO: result: $CXX" >&5
    2956 echo "${ECHO_T}$CXX" >&6
    2957 else
    2958   echo "$as_me:$LINENO: result: no" >&5
    2959 echo "${ECHO_T}no" >&6
    2960 fi
    2961 
    2962     test -n "$CXX" && break
    2963   done
    2964 fi
    2965 if test -z "$CXX"; then
    2966   ac_ct_CXX=$CXX
    2967   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    2968 do
    2969   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2970 set dummy $ac_prog; ac_word=$2
    2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2973 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    2974   echo $ECHO_N "(cached) $ECHO_C" >&6
    2975 else
    2976   if test -n "$ac_ct_CXX"; then
    2977   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    2978 else
    2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2980 for as_dir in $PATH
    2981 do
    2982   IFS=$as_save_IFS
    2983   test -z "$as_dir" && as_dir=.
    2984   for ac_exec_ext in '' $ac_executable_extensions; do
    2985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2986     ac_cv_prog_ac_ct_CXX="$ac_prog"
    2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2988     break 2
    2989   fi
    2990 done
    2991 done
    2992 
    2993 fi
    2994 fi
    2995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    2996 if test -n "$ac_ct_CXX"; then
    2997   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    2998 echo "${ECHO_T}$ac_ct_CXX" >&6
    2999 else
    3000   echo "$as_me:$LINENO: result: no" >&5
    3001 echo "${ECHO_T}no" >&6
    3002 fi
    3003 
    3004   test -n "$ac_ct_CXX" && break
    3005 done
    3006 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    3007 
    3008   CXX=$ac_ct_CXX
    3009 fi
    3010 
    3011 
    3012 # Provide some information about the compiler.
    3013 echo "$as_me:$LINENO:" \
    3014      "checking for C++ compiler version" >&5
    3015 ac_compiler=`set X $ac_compile; echo $2`
    3016 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3017   (eval $ac_compiler --version </dev/null >&5) 2>&5
    3018   ac_status=$?
    3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3020   (exit $ac_status); }
    3021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3022   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3023   ac_status=$?
    3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3025   (exit $ac_status); }
    3026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3027   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3028   ac_status=$?
    3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3030   (exit $ac_status); }
    3031 
    3032 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    3033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    3034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    3035   echo $ECHO_N "(cached) $ECHO_C" >&6
    3036 else
    3037   cat >conftest.$ac_ext <<_ACEOF
    3038 /* confdefs.h.  */
    3039 _ACEOF
    3040 cat confdefs.h >>conftest.$ac_ext
    3041 cat >>conftest.$ac_ext <<_ACEOF
    3042 /* end confdefs.h.  */
    3043 
    3044 int
    3045 main ()
    3046 {
    3047 #ifndef __GNUC__
    3048        choke me
    3049 #endif
    3050 
    3051   ;
    3052   return 0;
    3053 }
    3054 _ACEOF
    3055 rm -f conftest.$ac_objext
    3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3057   (eval $ac_compile) 2>conftest.er1
    3058   ac_status=$?
    3059   grep -v '^ *+' conftest.er1 >conftest.err
    3060   rm -f conftest.er1
    3061   cat conftest.err >&5
    3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3063   (exit $ac_status); } &&
    3064          { ac_try='test -z "$ac_cxx_werror_flag"
    3065                          || test ! -s conftest.err'
    3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3067   (eval $ac_try) 2>&5
    3068   ac_status=$?
    3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3070   (exit $ac_status); }; } &&
    3071          { ac_try='test -s conftest.$ac_objext'
    3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3073   (eval $ac_try) 2>&5
    3074   ac_status=$?
    3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3076   (exit $ac_status); }; }; then
    3077   ac_compiler_gnu=yes
    3078 else
    3079   echo "$as_me: failed program was:" >&5
    3080 sed 's/^/| /' conftest.$ac_ext >&5
    3081 
    3082 ac_compiler_gnu=no
    3083 fi
    3084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3085 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    3086 
    3087 fi
    3088 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    3089 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    3090 GXX=`test $ac_compiler_gnu = yes && echo yes`
    3091 ac_test_CXXFLAGS=${CXXFLAGS+set}
    3092 ac_save_CXXFLAGS=$CXXFLAGS
    3093 CXXFLAGS="-g"
    3094 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    3095 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    3096 if test "${ac_cv_prog_cxx_g+set}" = set; then
    3097   echo $ECHO_N "(cached) $ECHO_C" >&6
    3098 else
    3099   cat >conftest.$ac_ext <<_ACEOF
    3100 /* confdefs.h.  */
    3101 _ACEOF
    3102 cat confdefs.h >>conftest.$ac_ext
    3103 cat >>conftest.$ac_ext <<_ACEOF
    3104 /* end confdefs.h.  */
    3105 
    3106 int
    3107 main ()
    3108 {
    3109 
    3110   ;
    3111   return 0;
    3112 }
    3113 _ACEOF
    3114 rm -f conftest.$ac_objext
    3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3116   (eval $ac_compile) 2>conftest.er1
    3117   ac_status=$?
    3118   grep -v '^ *+' conftest.er1 >conftest.err
    3119   rm -f conftest.er1
    3120   cat conftest.err >&5
    3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3122   (exit $ac_status); } &&
    3123          { ac_try='test -z "$ac_cxx_werror_flag"
    3124                          || test ! -s conftest.err'
    3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3126   (eval $ac_try) 2>&5
    3127   ac_status=$?
    3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3129   (exit $ac_status); }; } &&
    3130          { ac_try='test -s conftest.$ac_objext'
    3131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3132   (eval $ac_try) 2>&5
    3133   ac_status=$?
    3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3135   (exit $ac_status); }; }; then
    3136   ac_cv_prog_cxx_g=yes
    3137 else
    3138   echo "$as_me: failed program was:" >&5
    3139 sed 's/^/| /' conftest.$ac_ext >&5
    3140 
    3141 ac_cv_prog_cxx_g=no
    3142 fi
    3143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3144 fi
    3145 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    3146 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    3147 if test "$ac_test_CXXFLAGS" = set; then
    3148   CXXFLAGS=$ac_save_CXXFLAGS
    3149 elif test $ac_cv_prog_cxx_g = yes; then
    3150   if test "$GXX" = yes; then
    3151     CXXFLAGS="-g -O2"
    3152   else
    3153     CXXFLAGS="-g"
    3154   fi
    3155 else
    3156   if test "$GXX" = yes; then
    3157     CXXFLAGS="-O2"
    3158   else
    3159     CXXFLAGS=
    3160   fi
    3161 fi
    3162 for ac_declaration in \
    3163    '' \
    3164    'extern "C" void std::exit (int) throw (); using std::exit;' \
    3165    'extern "C" void std::exit (int); using std::exit;' \
    3166    'extern "C" void exit (int) throw ();' \
    3167    'extern "C" void exit (int);' \
    3168    'void exit (int);'
    3169 do
    3170   cat >conftest.$ac_ext <<_ACEOF
    3171 /* confdefs.h.  */
    3172 _ACEOF
    3173 cat confdefs.h >>conftest.$ac_ext
    3174 cat >>conftest.$ac_ext <<_ACEOF
    3175 /* end confdefs.h.  */
    3176 $ac_declaration
    3177 #include <stdlib.h>
    3178 int
    3179 main ()
    3180 {
    3181 exit (42);
    3182   ;
    3183   return 0;
    3184 }
    3185 _ACEOF
    3186 rm -f conftest.$ac_objext
    3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3188   (eval $ac_compile) 2>conftest.er1
    3189   ac_status=$?
    3190   grep -v '^ *+' conftest.er1 >conftest.err
    3191   rm -f conftest.er1
    3192   cat conftest.err >&5
    3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3194   (exit $ac_status); } &&
    3195          { ac_try='test -z "$ac_cxx_werror_flag"
    3196                          || test ! -s conftest.err'
    3197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3198   (eval $ac_try) 2>&5
    3199   ac_status=$?
    3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3201   (exit $ac_status); }; } &&
    3202          { ac_try='test -s conftest.$ac_objext'
    3203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3204   (eval $ac_try) 2>&5
    3205   ac_status=$?
    3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3207   (exit $ac_status); }; }; then
    3208   :
    3209 else
    3210   echo "$as_me: failed program was:" >&5
    3211 sed 's/^/| /' conftest.$ac_ext >&5
    3212 
    3213 continue
    3214 fi
    3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3216   cat >conftest.$ac_ext <<_ACEOF
    3217 /* confdefs.h.  */
    3218 _ACEOF
    3219 cat confdefs.h >>conftest.$ac_ext
    3220 cat >>conftest.$ac_ext <<_ACEOF
    3221 /* end confdefs.h.  */
    3222 $ac_declaration
    3223 int
    3224 main ()
    3225 {
    3226 exit (42);
    3227   ;
    3228   return 0;
    3229 }
    3230 _ACEOF
    3231 rm -f conftest.$ac_objext
    3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3233   (eval $ac_compile) 2>conftest.er1
    3234   ac_status=$?
    3235   grep -v '^ *+' conftest.er1 >conftest.err
    3236   rm -f conftest.er1
    3237   cat conftest.err >&5
    3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3239   (exit $ac_status); } &&
    3240          { ac_try='test -z "$ac_cxx_werror_flag"
    3241                          || test ! -s conftest.err'
    3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3243   (eval $ac_try) 2>&5
    3244   ac_status=$?
    3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3246   (exit $ac_status); }; } &&
    3247          { ac_try='test -s conftest.$ac_objext'
    3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3249   (eval $ac_try) 2>&5
    3250   ac_status=$?
    3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3252   (exit $ac_status); }; }; then
    3253   break
    3254 else
    3255   echo "$as_me: failed program was:" >&5
    3256 sed 's/^/| /' conftest.$ac_ext >&5
    3257 
    3258 fi
    3259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3260 done
    3261 rm -f conftest*
    3262 if test -n "$ac_declaration"; then
    3263   echo '#ifdef __cplusplus' >>confdefs.h
    3264   echo $ac_declaration      >>confdefs.h
    3265   echo '#endif'             >>confdefs.h
    3266 fi
    3267 
    3268 ac_ext=c
    3269 ac_cpp='$CPP $CPPFLAGS'
    3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3273 
    3274 depcc="$CXX"  am_compiler_list=
    3275 
    3276 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    3277 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    3278 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
    3279   echo $ECHO_N "(cached) $ECHO_C" >&6
    3280 else
    3281   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    3282   # We make a subdir and do the tests there.  Otherwise we can end up
    3283   # making bogus files that we don't know about and never remove.  For
    3284   # instance it was reported that on HP-UX the gcc test will end up
    3285   # making a dummy file named `D' -- because `-MD' means `put the output
    3286   # in D'.
    3287   mkdir conftest.dir
    3288   # Copy depcomp to subdir because otherwise we won't find it if we're
    3289   # using a relative directory.
    3290   cp "$am_depcomp" conftest.dir
    3291   cd conftest.dir
    3292   # We will build objects and dependencies in a subdirectory because
    3293   # it helps to detect inapplicable dependency modes.  For instance
    3294   # both Tru64's cc and ICC support -MD to output dependencies as a
    3295   # side effect of compilation, but ICC will put the dependencies in
    3296   # the current directory while Tru64 will put them in the object
    3297   # directory.
    3298   mkdir sub
    3299 
    3300   am_cv_CXX_dependencies_compiler_type=none
    3301   if test "$am_compiler_list" = ""; then
    3302      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    3303   fi
    3304   for depmode in $am_compiler_list; do
    3305     # Setup a source with many dependencies, because some compilers
    3306     # like to wrap large dependency lists on column 80 (with \), and
    3307     # we should not choose a depcomp mode which is confused by this.
    3308     #
    3309     # We need to recreate these files for each test, as the compiler may
    3310     # overwrite some of them when testing with obscure command lines.
    3311     # This happens at least with the AIX C compiler.
    3312     : > sub/conftest.c
    3313     for i in 1 2 3 4 5 6; do
    3314       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3315       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    3316       # Solaris 8's {/usr,}/bin/sh.
    3317       touch sub/conftst$i.h
    3318     done
    3319     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    3320 
    3321     case $depmode in
    3322     nosideeffect)
    3323       # after this tag, mechanisms are not by side-effect, so they'll
    3324       # only be used when explicitly requested
    3325       if test "x$enable_dependency_tracking" = xyes; then
    3326         continue
    3327       else
    3328         break
    3329       fi
    3330       ;;
    3331     none) break ;;
    3332     esac
    3333     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    3334     # mode.  It turns out that the SunPro C++ compiler does not properly
    3335     # handle `-M -o', and we need to detect this.
    3336     if depmode=$depmode \
    3337        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    3338        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    3339        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    3340          >/dev/null 2>conftest.err &&
    3341        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    3342        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    3343        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    3344       # icc doesn't choke on unknown options, it will just issue warnings
    3345       # or remarks (even with -Werror).  So we grep stderr for any message
    3346       # that says an option was ignored or not supported.
    3347       # When given -MP, icc 7.0 and 7.1 complain thusly:
    3348       #   icc: Command line warning: ignoring option '-M'; no argument required
    3349       # The diagnosis changed in icc 8.0:
    3350       #   icc: Command line remark: option '-MP' not supported
    3351       if (grep 'ignoring option' conftest.err ||
    3352           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    3353         am_cv_CXX_dependencies_compiler_type=$depmode
    3354         break
    3355       fi
     337    if runcmd $CC $CFLAGS -I$event_testdir/include $LDFLAGS -levent \
     338        -L$event_testdir/lib -o testconf testconf.c
     339    then
     340      LIBEVENT=yes
     341      CFLAGS_EVENT="-I$event_testdir/include"
     342      LDFLAGS_EVENT="-levent -L$event_testdir/lib"
     343      rm -f testconf*
     344      return 0
    3356345    fi
    3357346  done
    3358 
    3359   cd ..
    3360   rm -rf conftest.dir
    3361 else
    3362   am_cv_CXX_dependencies_compiler_type=none
    3363 fi
    3364 
    3365 fi
    3366 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
    3367 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
    3368 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
    3369 
    3370 
    3371 
    3372 if
    3373   test "x$enable_dependency_tracking" != xno \
    3374   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
    3375   am__fastdepCXX_TRUE=
    3376   am__fastdepCXX_FALSE='#'
    3377 else
    3378   am__fastdepCXX_TRUE='#'
    3379   am__fastdepCXX_FALSE=
    3380 fi
    3381 
    3382 
    3383 
    3384 ac_ext=c
    3385 ac_cpp='$CPP $CPPFLAGS'
    3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3389 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    3391 # On Suns, sometimes $CPP names a directory.
    3392 if test -n "$CPP" && test -d "$CPP"; then
    3393   CPP=
    3394 fi
    3395 if test -z "$CPP"; then
    3396   if test "${ac_cv_prog_CPP+set}" = set; then
    3397   echo $ECHO_N "(cached) $ECHO_C" >&6
    3398 else
    3399       # Double quotes because CPP needs to be expanded
    3400     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    3401     do
    3402       ac_preproc_ok=false
    3403 for ac_c_preproc_warn_flag in '' yes
    3404 do
    3405   # Use a header file that comes with gcc, so configuring glibc
    3406   # with a fresh cross-compiler works.
    3407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3408   # <limits.h> exists even on freestanding compilers.
    3409   # On the NeXT, cc -E runs the code through the compiler's parser,
    3410   # not just through cpp. "Syntax error" is here to catch this case.
    3411   cat >conftest.$ac_ext <<_ACEOF
    3412 /* confdefs.h.  */
    3413 _ACEOF
    3414 cat confdefs.h >>conftest.$ac_ext
    3415 cat >>conftest.$ac_ext <<_ACEOF
    3416 /* end confdefs.h.  */
    3417 #ifdef __STDC__
    3418 # include <limits.h>
    3419 #else
    3420 # include <assert.h>
    3421 #endif
    3422                      Syntax error
    3423 _ACEOF
    3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3426   ac_status=$?
    3427   grep -v '^ *+' conftest.er1 >conftest.err
    3428   rm -f conftest.er1
    3429   cat conftest.err >&5
    3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3431   (exit $ac_status); } >/dev/null; then
    3432   if test -s conftest.err; then
    3433     ac_cpp_err=$ac_c_preproc_warn_flag
    3434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3435   else
    3436     ac_cpp_err=
    3437   fi
    3438 else
    3439   ac_cpp_err=yes
    3440 fi
    3441 if test -z "$ac_cpp_err"; then
    3442   :
    3443 else
    3444   echo "$as_me: failed program was:" >&5
    3445 sed 's/^/| /' conftest.$ac_ext >&5
    3446 
    3447   # Broken: fails on valid input.
    3448 continue
    3449 fi
    3450 rm -f conftest.err conftest.$ac_ext
    3451 
    3452   # OK, works on sane cases.  Now check whether non-existent headers
    3453   # can be detected and how.
    3454   cat >conftest.$ac_ext <<_ACEOF
    3455 /* confdefs.h.  */
    3456 _ACEOF
    3457 cat confdefs.h >>conftest.$ac_ext
    3458 cat >>conftest.$ac_ext <<_ACEOF
    3459 /* end confdefs.h.  */
    3460 #include <ac_nonexistent.h>
    3461 _ACEOF
    3462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3464   ac_status=$?
    3465   grep -v '^ *+' conftest.er1 >conftest.err
    3466   rm -f conftest.er1
    3467   cat conftest.err >&5
    3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3469   (exit $ac_status); } >/dev/null; then
    3470   if test -s conftest.err; then
    3471     ac_cpp_err=$ac_c_preproc_warn_flag
    3472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3473   else
    3474     ac_cpp_err=
    3475   fi
    3476 else
    3477   ac_cpp_err=yes
    3478 fi
    3479 if test -z "$ac_cpp_err"; then
    3480   # Broken: success on invalid input.
    3481 continue
    3482 else
    3483   echo "$as_me: failed program was:" >&5
    3484 sed 's/^/| /' conftest.$ac_ext >&5
    3485 
    3486   # Passes both tests.
    3487 ac_preproc_ok=:
    3488 break
    3489 fi
    3490 rm -f conftest.err conftest.$ac_ext
    3491 
     347  LIBEVENT=no
     348  rm -f testconf*
     349  return 1
     350}
     351
     352#
     353# Parse options
     354#
     355while [ $# -ne 0 ]; do
     356  param=`expr "opt$1" : 'opt[^=]*=\(.*\)'`
     357
     358  case "x$1" in
     359    x--disable-openssl|x--without-openssl)
     360      OPENSSL=no
     361      ;;
     362    x--disable-daemon|x--without-daemon)
     363      LIBEVENT=no
     364      ;;
     365    x--disable-gtk|x--without-gtk)
     366      GTK=no
     367      ;;
     368    x--prefix=*)
     369      PREFIX="$param"
     370      ;;
     371    x--verbose)
     372      VERBOSE=yes
     373      ;;
     374    x--help)
     375      usage
     376      exit 0
     377      ;;
     378  esac
     379  shift
    3492380done
    3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3494 rm -f conftest.err conftest.$ac_ext
    3495 if $ac_preproc_ok; then
    3496   break
    3497 fi
    3498 
    3499     done
    3500     ac_cv_prog_CPP=$CPP
    3501 
    3502 fi
    3503   CPP=$ac_cv_prog_CPP
    3504 else
    3505   ac_cv_prog_CPP=$CPP
    3506 fi
    3507 echo "$as_me:$LINENO: result: $CPP" >&5
    3508 echo "${ECHO_T}$CPP" >&6
    3509 ac_preproc_ok=false
    3510 for ac_c_preproc_warn_flag in '' yes
    3511 do
    3512   # Use a header file that comes with gcc, so configuring glibc
    3513   # with a fresh cross-compiler works.
    3514   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3515   # <limits.h> exists even on freestanding compilers.
    3516   # On the NeXT, cc -E runs the code through the compiler's parser,
    3517   # not just through cpp. "Syntax error" is here to catch this case.
    3518   cat >conftest.$ac_ext <<_ACEOF
    3519 /* confdefs.h.  */
    3520 _ACEOF
    3521 cat confdefs.h >>conftest.$ac_ext
    3522 cat >>conftest.$ac_ext <<_ACEOF
    3523 /* end confdefs.h.  */
    3524 #ifdef __STDC__
    3525 # include <limits.h>
    3526 #else
    3527 # include <assert.h>
    3528 #endif
    3529                      Syntax error
    3530 _ACEOF
    3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3533   ac_status=$?
    3534   grep -v '^ *+' conftest.er1 >conftest.err
    3535   rm -f conftest.er1
    3536   cat conftest.err >&5
    3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3538   (exit $ac_status); } >/dev/null; then
    3539   if test -s conftest.err; then
    3540     ac_cpp_err=$ac_c_preproc_warn_flag
    3541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3542   else
    3543     ac_cpp_err=
    3544   fi
    3545 else
    3546   ac_cpp_err=yes
    3547 fi
    3548 if test -z "$ac_cpp_err"; then
    3549   :
    3550 else
    3551   echo "$as_me: failed program was:" >&5
    3552 sed 's/^/| /' conftest.$ac_ext >&5
    3553 
    3554   # Broken: fails on valid input.
    3555 continue
    3556 fi
    3557 rm -f conftest.err conftest.$ac_ext
    3558 
    3559   # OK, works on sane cases.  Now check whether non-existent headers
    3560   # can be detected and how.
    3561   cat >conftest.$ac_ext <<_ACEOF
    3562 /* confdefs.h.  */
    3563 _ACEOF
    3564 cat confdefs.h >>conftest.$ac_ext
    3565 cat >>conftest.$ac_ext <<_ACEOF
    3566 /* end confdefs.h.  */
    3567 #include <ac_nonexistent.h>
    3568 _ACEOF
    3569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3571   ac_status=$?
    3572   grep -v '^ *+' conftest.er1 >conftest.err
    3573   rm -f conftest.er1
    3574   cat conftest.err >&5
    3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3576   (exit $ac_status); } >/dev/null; then
    3577   if test -s conftest.err; then
    3578     ac_cpp_err=$ac_c_preproc_warn_flag
    3579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3580   else
    3581     ac_cpp_err=
    3582   fi
    3583 else
    3584   ac_cpp_err=yes
    3585 fi
    3586 if test -z "$ac_cpp_err"; then
    3587   # Broken: success on invalid input.
    3588 continue
    3589 else
    3590   echo "$as_me: failed program was:" >&5
    3591 sed 's/^/| /' conftest.$ac_ext >&5
    3592 
    3593   # Passes both tests.
    3594 ac_preproc_ok=:
    3595 break
    3596 fi
    3597 rm -f conftest.err conftest.$ac_ext
    3598 
    3599 done
    3600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3601 rm -f conftest.err conftest.$ac_ext
    3602 if $ac_preproc_ok; then
    3603   :
    3604 else
    3605   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    3606 See \`config.log' for more details." >&5
    3607 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    3608 See \`config.log' for more details." >&2;}
    3609    { (exit 1); exit 1; }; }
    3610 fi
    3611 
    3612 ac_ext=c
    3613 ac_cpp='$CPP $CPPFLAGS'
    3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3617 
    3618 
    3619 echo "$as_me:$LINENO: checking for egrep" >&5
    3620 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3621 if test "${ac_cv_prog_egrep+set}" = set; then
    3622   echo $ECHO_N "(cached) $ECHO_C" >&6
    3623 else
    3624   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3625     then ac_cv_prog_egrep='grep -E'
    3626     else ac_cv_prog_egrep='egrep'
    3627     fi
    3628 fi
    3629 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3630 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3631  EGREP=$ac_cv_prog_egrep
    3632 
    3633 
    3634 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    3635 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    3636 if test "${ac_cv_header_stdc+set}" = set; then
    3637   echo $ECHO_N "(cached) $ECHO_C" >&6
    3638 else
    3639   cat >conftest.$ac_ext <<_ACEOF
    3640 /* confdefs.h.  */
    3641 _ACEOF
    3642 cat confdefs.h >>conftest.$ac_ext
    3643 cat >>conftest.$ac_ext <<_ACEOF
    3644 /* end confdefs.h.  */
    3645 #include <stdlib.h>
    3646 #include <stdarg.h>
    3647 #include <string.h>
    3648 #include <float.h>
    3649 
    3650 int
    3651 main ()
    3652 {
    3653 
    3654   ;
    3655   return 0;
    3656 }
    3657 _ACEOF
    3658 rm -f conftest.$ac_objext
    3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3660   (eval $ac_compile) 2>conftest.er1
    3661   ac_status=$?
    3662   grep -v '^ *+' conftest.er1 >conftest.err
    3663   rm -f conftest.er1
    3664   cat conftest.err >&5
    3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3666   (exit $ac_status); } &&
    3667          { ac_try='test -z "$ac_c_werror_flag"
    3668                          || test ! -s conftest.err'
    3669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3670   (eval $ac_try) 2>&5
    3671   ac_status=$?
    3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3673   (exit $ac_status); }; } &&
    3674          { ac_try='test -s conftest.$ac_objext'
    3675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3676   (eval $ac_try) 2>&5
    3677   ac_status=$?
    3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3679   (exit $ac_status); }; }; then
    3680   ac_cv_header_stdc=yes
    3681 else
    3682   echo "$as_me: failed program was:" >&5
    3683 sed 's/^/| /' conftest.$ac_ext >&5
    3684 
    3685 ac_cv_header_stdc=no
    3686 fi
    3687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3688 
    3689 if test $ac_cv_header_stdc = yes; then
    3690   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3691   cat >conftest.$ac_ext <<_ACEOF
    3692 /* confdefs.h.  */
    3693 _ACEOF
    3694 cat confdefs.h >>conftest.$ac_ext
    3695 cat >>conftest.$ac_ext <<_ACEOF
    3696 /* end confdefs.h.  */
    3697 #include <string.h>
    3698 
    3699 _ACEOF
    3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3701   $EGREP "memchr" >/dev/null 2>&1; then
    3702   :
    3703 else
    3704   ac_cv_header_stdc=no
    3705 fi
    3706 rm -f conftest*
    3707 
    3708 fi
    3709 
    3710 if test $ac_cv_header_stdc = yes; then
    3711   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3712   cat >conftest.$ac_ext <<_ACEOF
    3713 /* confdefs.h.  */
    3714 _ACEOF
    3715 cat confdefs.h >>conftest.$ac_ext
    3716 cat >>conftest.$ac_ext <<_ACEOF
    3717 /* end confdefs.h.  */
    3718 #include <stdlib.h>
    3719 
    3720 _ACEOF
    3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3722   $EGREP "free" >/dev/null 2>&1; then
    3723   :
    3724 else
    3725   ac_cv_header_stdc=no
    3726 fi
    3727 rm -f conftest*
    3728 
    3729 fi
    3730 
    3731 if test $ac_cv_header_stdc = yes; then
    3732   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3733   if test "$cross_compiling" = yes; then
    3734   :
    3735 else
    3736   cat >conftest.$ac_ext <<_ACEOF
    3737 /* confdefs.h.  */
    3738 _ACEOF
    3739 cat confdefs.h >>conftest.$ac_ext
    3740 cat >>conftest.$ac_ext <<_ACEOF
    3741 /* end confdefs.h.  */
    3742 #include <ctype.h>
    3743 #if ((' ' & 0x0FF) == 0x020)
    3744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3746 #else
    3747 # define ISLOWER(c) \
    3748                    (('a' <= (c) && (c) <= 'i') \
    3749                      || ('j' <= (c) && (c) <= 'r') \
    3750                      || ('s' <= (c) && (c) <= 'z'))
    3751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3752 #endif
    3753 
    3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3755 int
    3756 main ()
    3757 {
    3758   int i;
    3759   for (i = 0; i < 256; i++)
    3760     if (XOR (islower (i), ISLOWER (i))
    3761         || toupper (i) != TOUPPER (i))
    3762       exit(2);
    3763   exit (0);
    3764 }
    3765 _ACEOF
    3766 rm -f conftest$ac_exeext
    3767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3768   (eval $ac_link) 2>&5
    3769   ac_status=$?
    3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3773   (eval $ac_try) 2>&5
    3774   ac_status=$?
    3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3776   (exit $ac_status); }; }; then
    3777   :
    3778 else
    3779   echo "$as_me: program exited with status $ac_status" >&5
    3780 echo "$as_me: failed program was:" >&5
    3781 sed 's/^/| /' conftest.$ac_ext >&5
    3782 
    3783 ( exit $ac_status )
    3784 ac_cv_header_stdc=no
    3785 fi
    3786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    3787 fi
    3788 fi
    3789 fi
    3790 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    3791 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    3792 if test $ac_cv_header_stdc = yes; then
    3793 
    3794 cat >>confdefs.h <<\_ACEOF
    3795 #define STDC_HEADERS 1
    3796 _ACEOF
    3797 
    3798 fi
    3799 
    3800 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
    3801 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    3802 if test "${ac_cv_header_time+set}" = set; then
    3803   echo $ECHO_N "(cached) $ECHO_C" >&6
    3804 else
    3805   cat >conftest.$ac_ext <<_ACEOF
    3806 /* confdefs.h.  */
    3807 _ACEOF
    3808 cat confdefs.h >>conftest.$ac_ext
    3809 cat >>conftest.$ac_ext <<_ACEOF
    3810 /* end confdefs.h.  */
    3811 #include <sys/types.h>
    3812 #include <sys/time.h>
    3813 #include <time.h>
    3814 
    3815 int
    3816 main ()
    3817 {
    3818 if ((struct tm *) 0)
    3819 return 0;
    3820   ;
    3821   return 0;
    3822 }
    3823 _ACEOF
    3824 rm -f conftest.$ac_objext
    3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3826   (eval $ac_compile) 2>conftest.er1
    3827   ac_status=$?
    3828   grep -v '^ *+' conftest.er1 >conftest.err
    3829   rm -f conftest.er1
    3830   cat conftest.err >&5
    3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3832   (exit $ac_status); } &&
    3833          { ac_try='test -z "$ac_c_werror_flag"
    3834                          || test ! -s conftest.err'
    3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3836   (eval $ac_try) 2>&5
    3837   ac_status=$?
    3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3839   (exit $ac_status); }; } &&
    3840          { ac_try='test -s conftest.$ac_objext'
    3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3842   (eval $ac_try) 2>&5
    3843   ac_status=$?
    3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3845   (exit $ac_status); }; }; then
    3846   ac_cv_header_time=yes
    3847 else
    3848   echo "$as_me: failed program was:" >&5
    3849 sed 's/^/| /' conftest.$ac_ext >&5
    3850 
    3851 ac_cv_header_time=no
    3852 fi
    3853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3854 fi
    3855 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
    3856 echo "${ECHO_T}$ac_cv_header_time" >&6
    3857 if test $ac_cv_header_time = yes; then
    3858 
    3859 cat >>confdefs.h <<\_ACEOF
    3860 #define TIME_WITH_SYS_TIME 1
    3861 _ACEOF
    3862 
    3863 fi
    3864 
    3865 
    3866 
    3867 
    3868 for ac_func in lrintf strlcpy strlcat
    3869 do
    3870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    3871 echo "$as_me:$LINENO: checking for $ac_func" >&5
    3872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    3873 if eval "test \"\${$as_ac_var+set}\" = set"; then
    3874   echo $ECHO_N "(cached) $ECHO_C" >&6
    3875 else
    3876   cat >conftest.$ac_ext <<_ACEOF
    3877 /* confdefs.h.  */
    3878 _ACEOF
    3879 cat confdefs.h >>conftest.$ac_ext
    3880 cat >>conftest.$ac_ext <<_ACEOF
    3881 /* end confdefs.h.  */
    3882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    3883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    3884 #define $ac_func innocuous_$ac_func
    3885 
    3886 /* System header to define __stub macros and hopefully few prototypes,
    3887     which can conflict with char $ac_func (); below.
    3888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3889     <limits.h> exists even on freestanding compilers.  */
    3890 
    3891 #ifdef __STDC__
    3892 # include <limits.h>
    3893 #else
    3894 # include <assert.h>
    3895 #endif
    3896 
    3897 #undef $ac_func
    3898 
    3899 /* Override any gcc2 internal prototype to avoid an error.  */
    3900 #ifdef __cplusplus
    3901 extern "C"
    3902 {
    3903 #endif
    3904 /* We use char because int might match the return type of a gcc2
    3905    builtin and then its argument prototype would still apply.  */
    3906 char $ac_func ();
    3907 /* The GNU C library defines this for functions which it implements
    3908     to always fail with ENOSYS.  Some functions are actually named
    3909     something starting with __ and the normal name is an alias.  */
    3910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    3911 choke me
    3912 #else
    3913 char (*f) () = $ac_func;
    3914 #endif
    3915 #ifdef __cplusplus
    3916 }
    3917 #endif
    3918 
    3919 int
    3920 main ()
    3921 {
    3922 return f != $ac_func;
    3923   ;
    3924   return 0;
    3925 }
    3926 _ACEOF
    3927 rm -f conftest.$ac_objext conftest$ac_exeext
    3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3929   (eval $ac_link) 2>conftest.er1
    3930   ac_status=$?
    3931   grep -v '^ *+' conftest.er1 >conftest.err
    3932   rm -f conftest.er1
    3933   cat conftest.err >&5
    3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3935   (exit $ac_status); } &&
    3936          { ac_try='test -z "$ac_c_werror_flag"
    3937                          || test ! -s conftest.err'
    3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3939   (eval $ac_try) 2>&5
    3940   ac_status=$?
    3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3942   (exit $ac_status); }; } &&
    3943          { ac_try='test -s conftest$ac_exeext'
    3944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3945   (eval $ac_try) 2>&5
    3946   ac_status=$?
    3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3948   (exit $ac_status); }; }; then
    3949   eval "$as_ac_var=yes"
    3950 else
    3951   echo "$as_me: failed program was:" >&5
    3952 sed 's/^/| /' conftest.$ac_ext >&5
    3953 
    3954 eval "$as_ac_var=no"
    3955 fi
    3956 rm -f conftest.err conftest.$ac_objext \
    3957       conftest$ac_exeext conftest.$ac_ext
    3958 fi
    3959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    3960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    3961 if test `eval echo '${'$as_ac_var'}'` = yes; then
    3962   cat >>confdefs.h <<_ACEOF
    3963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    3964 _ACEOF
    3965 
    3966 fi
    3967 done
    3968 
    3969 # Find a good install program.  We prefer a C program (faster),
    3970 # so one script is as good as another.  But avoid the broken or
    3971 # incompatible versions:
    3972 # SysV /etc/install, /usr/sbin/install
    3973 # SunOS /usr/etc/install
    3974 # IRIX /sbin/install
    3975 # AIX /bin/install
    3976 # AmigaOS /C/install, which installs bootblocks on floppy discs
    3977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    3978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    3979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    3980 # OS/2's system install, which has a completely different semantic
    3981 # ./install, which can be erroneously created by make from ./install.sh.
    3982 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    3983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    3984 if test -z "$INSTALL"; then
    3985 if test "${ac_cv_path_install+set}" = set; then
    3986   echo $ECHO_N "(cached) $ECHO_C" >&6
    3987 else
    3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3989 for as_dir in $PATH
    3990 do
    3991   IFS=$as_save_IFS
    3992   test -z "$as_dir" && as_dir=.
    3993   # Account for people who put trailing slashes in PATH elements.
    3994 case $as_dir/ in
    3995   ./ | .// | /cC/* | \
    3996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    3998   /usr/ucb/* ) ;;
    3999   *)
    4000     # OSF1 and SCO ODT 3.0 have their own names for install.
    4001     # Don't use installbsd from OSF since it installs stuff as root
    4002     # by default.
    4003     for ac_prog in ginstall scoinst install; do
    4004       for ac_exec_ext in '' $ac_executable_extensions; do
    4005         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    4006           if test $ac_prog = install &&
    4007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    4008             # AIX install.  It has an incompatible calling convention.
    4009             :
    4010           elif test $ac_prog = install &&
    4011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    4012             # program-specific install script used by HP pwplus--don't use.
    4013             :
    4014           else
    4015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    4016             break 3
    4017           fi
    4018         fi
    4019       done
    4020     done
    4021     ;;
    4022 esac
    4023 done
    4024 
    4025 
    4026 fi
    4027   if test "${ac_cv_path_install+set}" = set; then
    4028     INSTALL=$ac_cv_path_install
    4029   else
    4030     # As a last resort, use the slow shell script.  We don't cache a
    4031     # path for INSTALL within a source directory, because that will
    4032     # break other packages using the cache if that directory is
    4033     # removed, or if the path is relative.
    4034     INSTALL=$ac_install_sh
    4035   fi
    4036 fi
    4037 echo "$as_me:$LINENO: result: $INSTALL" >&5
    4038 echo "${ECHO_T}$INSTALL" >&6
    4039 
    4040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    4041 # It thinks the first close brace ends the variable substitution.
    4042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    4043 
    4044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    4045 
    4046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    4047 
    4048 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    4049 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    4050 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    4051 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    4052   echo $ECHO_N "(cached) $ECHO_C" >&6
    4053 else
    4054   cat >conftest.make <<\_ACEOF
    4055 all:
    4056         @echo 'ac_maketemp="$(MAKE)"'
    4057 _ACEOF
    4058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    4059 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    4060 if test -n "$ac_maketemp"; then
    4061   eval ac_cv_prog_make_${ac_make}_set=yes
    4062 else
    4063   eval ac_cv_prog_make_${ac_make}_set=no
    4064 fi
    4065 rm -f conftest.make
    4066 fi
    4067 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    4068   echo "$as_me:$LINENO: result: yes" >&5
    4069 echo "${ECHO_T}yes" >&6
    4070   SET_MAKE=
    4071 else
    4072   echo "$as_me:$LINENO: result: no" >&5
    4073 echo "${ECHO_T}no" >&6
    4074   SET_MAKE="MAKE=${MAKE-make}"
    4075 fi
    4076 
    4077 if test -n "$ac_tool_prefix"; then
    4078   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    4079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4082 if test "${ac_cv_prog_RANLIB+set}" = set; then
    4083   echo $ECHO_N "(cached) $ECHO_C" >&6
    4084 else
    4085   if test -n "$RANLIB"; then
    4086   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    4087 else
    4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4089 for as_dir in $PATH
    4090 do
    4091   IFS=$as_save_IFS
    4092   test -z "$as_dir" && as_dir=.
    4093   for ac_exec_ext in '' $ac_executable_extensions; do
    4094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4095     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    4096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4097     break 2
    4098   fi
    4099 done
    4100 done
    4101 
    4102 fi
    4103 fi
    4104 RANLIB=$ac_cv_prog_RANLIB
    4105 if test -n "$RANLIB"; then
    4106   echo "$as_me:$LINENO: result: $RANLIB" >&5
    4107 echo "${ECHO_T}$RANLIB" >&6
    4108 else
    4109   echo "$as_me:$LINENO: result: no" >&5
    4110 echo "${ECHO_T}no" >&6
    4111 fi
    4112 
    4113 fi
    4114 if test -z "$ac_cv_prog_RANLIB"; then
    4115   ac_ct_RANLIB=$RANLIB
    4116   # Extract the first word of "ranlib", so it can be a program name with args.
    4117 set dummy ranlib; ac_word=$2
    4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    4121   echo $ECHO_N "(cached) $ECHO_C" >&6
    4122 else
    4123   if test -n "$ac_ct_RANLIB"; then
    4124   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    4125 else
    4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4127 for as_dir in $PATH
    4128 do
    4129   IFS=$as_save_IFS
    4130   test -z "$as_dir" && as_dir=.
    4131   for ac_exec_ext in '' $ac_executable_extensions; do
    4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4133     ac_cv_prog_ac_ct_RANLIB="ranlib"
    4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4135     break 2
    4136   fi
    4137 done
    4138 done
    4139 
    4140   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    4141 fi
    4142 fi
    4143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    4144 if test -n "$ac_ct_RANLIB"; then
    4145   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    4146 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    4147 else
    4148   echo "$as_me:$LINENO: result: no" >&5
    4149 echo "${ECHO_T}no" >&6
    4150 fi
    4151 
    4152   RANLIB=$ac_ct_RANLIB
    4153 else
    4154   RANLIB="$ac_cv_prog_RANLIB"
    4155 fi
    4156 
    4157 # Make sure we can run config.sub.
    4158 $ac_config_sub sun4 >/dev/null 2>&1 ||
    4159   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    4160 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    4161    { (exit 1); exit 1; }; }
    4162 
    4163 echo "$as_me:$LINENO: checking build system type" >&5
    4164 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    4165 if test "${ac_cv_build+set}" = set; then
    4166   echo $ECHO_N "(cached) $ECHO_C" >&6
    4167 else
    4168   ac_cv_build_alias=$build_alias
    4169 test -z "$ac_cv_build_alias" &&
    4170   ac_cv_build_alias=`$ac_config_guess`
    4171 test -z "$ac_cv_build_alias" &&
    4172   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    4173 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    4174    { (exit 1); exit 1; }; }
    4175 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    4176   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    4177 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    4178    { (exit 1); exit 1; }; }
    4179 
    4180 fi
    4181 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    4182 echo "${ECHO_T}$ac_cv_build" >&6
    4183 build=$ac_cv_build
    4184 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    4185 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    4186 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    4187 
    4188 
    4189 echo "$as_me:$LINENO: checking host system type" >&5
    4190 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    4191 if test "${ac_cv_host+set}" = set; then
    4192   echo $ECHO_N "(cached) $ECHO_C" >&6
    4193 else
    4194   ac_cv_host_alias=$host_alias
    4195 test -z "$ac_cv_host_alias" &&
    4196   ac_cv_host_alias=$ac_cv_build_alias
    4197 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    4198   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    4199 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    4200    { (exit 1); exit 1; }; }
    4201 
    4202 fi
    4203 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    4204 echo "${ECHO_T}$ac_cv_host" >&6
    4205 host=$ac_cv_host
    4206 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    4207 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    4208 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    4209 
    4210 
    4211 
    4212 
    4213 
    4214 
    4215 ac_ext=c
    4216 ac_cpp='$CPP $CPPFLAGS'
    4217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4220 
    4221 acx_pthread_ok=no
    4222 
    4223 # We used to check for pthread.h first, but this fails if pthread.h
    4224 # requires special compiler flags (e.g. on True64 or Sequent).
    4225 # It gets checked for in the link test anyway.
    4226 
    4227 # First of all, check if the user has set any of the PTHREAD_LIBS,
    4228 # etcetera environment variables, and if threads linking works using
    4229 # them:
    4230 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
    4231         save_CFLAGS="$CFLAGS"
    4232         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    4233         save_LIBS="$LIBS"
    4234         LIBS="$PTHREAD_LIBS $LIBS"
    4235         echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
    4236 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
    4237         cat >conftest.$ac_ext <<_ACEOF
    4238 /* confdefs.h.  */
    4239 _ACEOF
    4240 cat confdefs.h >>conftest.$ac_ext
    4241 cat >>conftest.$ac_ext <<_ACEOF
    4242 /* end confdefs.h.  */
    4243 
    4244 /* Override any gcc2 internal prototype to avoid an error.  */
    4245 #ifdef __cplusplus
    4246 extern "C"
    4247 #endif
    4248 /* We use char because int might match the return type of a gcc2
    4249    builtin and then its argument prototype would still apply.  */
    4250 char pthread_join ();
    4251 int
    4252 main ()
    4253 {
    4254 pthread_join ();
    4255   ;
    4256   return 0;
    4257 }
    4258 _ACEOF
    4259 rm -f conftest.$ac_objext conftest$ac_exeext
    4260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4261   (eval $ac_link) 2>conftest.er1
    4262   ac_status=$?
    4263   grep -v '^ *+' conftest.er1 >conftest.err
    4264   rm -f conftest.er1
    4265   cat conftest.err >&5
    4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4267   (exit $ac_status); } &&
    4268          { ac_try='test -z "$ac_c_werror_flag"
    4269                          || test ! -s conftest.err'
    4270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4271   (eval $ac_try) 2>&5
    4272   ac_status=$?
    4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4274   (exit $ac_status); }; } &&
    4275          { ac_try='test -s conftest$ac_exeext'
    4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4277   (eval $ac_try) 2>&5
    4278   ac_status=$?
    4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4280   (exit $ac_status); }; }; then
    4281   acx_pthread_ok=yes
    4282 else
    4283   echo "$as_me: failed program was:" >&5
    4284 sed 's/^/| /' conftest.$ac_ext >&5
    4285 
    4286 fi
    4287 rm -f conftest.err conftest.$ac_objext \
    4288       conftest$ac_exeext conftest.$ac_ext
    4289         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
    4290 echo "${ECHO_T}$acx_pthread_ok" >&6
    4291         if test x"$acx_pthread_ok" = xno; then
    4292                 PTHREAD_LIBS=""
    4293                 PTHREAD_CFLAGS=""
    4294         fi
    4295         LIBS="$save_LIBS"
    4296         CFLAGS="$save_CFLAGS"
    4297 fi
    4298 
    4299 # We must check for the threads library under a number of different
    4300 # names; the ordering is very important because some systems
    4301 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
    4302 # libraries is broken (non-POSIX).
    4303 
    4304 # Create a list of thread flags to try.  Items starting with a "-" are
    4305 # C compiler flags, and other items are library names, except for "none"
    4306 # which indicates that we try without any flags at all, and "pthread-config"
    4307 # which is a program returning the flags for the Pth emulation library.
    4308 
    4309 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
    4310 
    4311 # The ordering *is* (sometimes) important.  Some notes on the
    4312 # individual items follow:
    4313 
    4314 # pthreads: AIX (must check this before -lpthread)
    4315 # none: in case threads are in libc; should be tried before -Kthread and
    4316 #       other compiler flags to prevent continual compiler warnings
    4317 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
    4318 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
    4319 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
    4320 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
    4321 # -pthreads: Solaris/gcc
    4322 # -mthreads: Mingw32/gcc, Lynx/gcc
    4323 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
    4324 #      doesn't hurt to check since this sometimes defines pthreads too;
    4325 #      also defines -D_REENTRANT)
    4326 #      ... -mt is also the pthreads flag for HP/aCC
    4327 # pthread: Linux, etcetera
    4328 # --thread-safe: KAI C++
    4329 # pthread-config: use pthread-config program (for GNU Pth library)
    4330 
    4331 case "${host_cpu}-${host_os}" in
    4332         *solaris*)
    4333 
    4334         # On Solaris (at least, for some versions), libc contains stubbed
    4335         # (non-functional) versions of the pthreads routines, so link-based
    4336         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
    4337         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
    4338         # a function called by this macro, so we could check for that, but
    4339         # who knows whether they'll stub that too in a future libc.)  So,
    4340         # we'll just look for -pthreads and -lpthread first:
    4341 
    4342         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
    4343         ;;
    4344 esac
    4345 
    4346 if test x"$acx_pthread_ok" = xno; then
    4347 for flag in $acx_pthread_flags; do
    4348 
    4349         case $flag in
    4350                 none)
    4351                 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
    4352 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
    4353                 ;;
    4354 
    4355                 -*)
    4356                 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
    4357 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
    4358                 PTHREAD_CFLAGS="$flag"
    4359                 ;;
    4360 
    4361                 pthread-config)
    4362                 # Extract the first word of "pthread-config", so it can be a program name with args.
    4363 set dummy pthread-config; ac_word=$2
    4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4366 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
    4367   echo $ECHO_N "(cached) $ECHO_C" >&6
    4368 else
    4369   if test -n "$acx_pthread_config"; then
    4370   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
    4371 else
    4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4373 for as_dir in $PATH
    4374 do
    4375   IFS=$as_save_IFS
    4376   test -z "$as_dir" && as_dir=.
    4377   for ac_exec_ext in '' $ac_executable_extensions; do
    4378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4379     ac_cv_prog_acx_pthread_config="yes"
    4380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4381     break 2
    4382   fi
    4383 done
    4384 done
    4385 
    4386   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
    4387 fi
    4388 fi
    4389 acx_pthread_config=$ac_cv_prog_acx_pthread_config
    4390 if test -n "$acx_pthread_config"; then
    4391   echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
    4392 echo "${ECHO_T}$acx_pthread_config" >&6
    4393 else
    4394   echo "$as_me:$LINENO: result: no" >&5
    4395 echo "${ECHO_T}no" >&6
    4396 fi
    4397 
    4398                 if test x"$acx_pthread_config" = xno; then continue; fi
    4399                 PTHREAD_CFLAGS="`pthread-config --cflags`"
    4400                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
    4401                 ;;
    4402 
    4403                 *)
    4404                 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
    4405 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
    4406                 PTHREAD_LIBS="-l$flag"
    4407                 ;;
    4408         esac
    4409 
    4410         save_LIBS="$LIBS"
    4411         save_CFLAGS="$CFLAGS"
    4412         LIBS="$PTHREAD_LIBS $LIBS"
    4413         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    4414 
    4415         # Check for various functions.  We must include pthread.h,
    4416         # since some functions may be macros.  (On the Sequent, we
    4417         # need a special flag -Kthread to make this header compile.)
    4418         # We check for pthread_join because it is in -lpthread on IRIX
    4419         # while pthread_create is in libc.  We check for pthread_attr_init
    4420         # due to DEC craziness with -lpthreads.  We check for
    4421         # pthread_cleanup_push because it is one of the few pthread
    4422         # functions on Solaris that doesn't have a non-functional libc stub.
    4423         # We try pthread_create on general principles.
    4424         cat >conftest.$ac_ext <<_ACEOF
    4425 /* confdefs.h.  */
    4426 _ACEOF
    4427 cat confdefs.h >>conftest.$ac_ext
    4428 cat >>conftest.$ac_ext <<_ACEOF
    4429 /* end confdefs.h.  */
    4430 #include <pthread.h>
    4431 int
    4432 main ()
    4433 {
    4434 pthread_t th; pthread_join(th, 0);
    4435                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    4436                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    4437   ;
    4438   return 0;
    4439 }
    4440 _ACEOF
    4441 rm -f conftest.$ac_objext conftest$ac_exeext
    4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4443   (eval $ac_link) 2>conftest.er1
    4444   ac_status=$?
    4445   grep -v '^ *+' conftest.er1 >conftest.err
    4446   rm -f conftest.er1
    4447   cat conftest.err >&5
    4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4449   (exit $ac_status); } &&
    4450          { ac_try='test -z "$ac_c_werror_flag"
    4451                          || test ! -s conftest.err'
    4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4453   (eval $ac_try) 2>&5
    4454   ac_status=$?
    4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4456   (exit $ac_status); }; } &&
    4457          { ac_try='test -s conftest$ac_exeext'
    4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4459   (eval $ac_try) 2>&5
    4460   ac_status=$?
    4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4462   (exit $ac_status); }; }; then
    4463   acx_pthread_ok=yes
    4464 else
    4465   echo "$as_me: failed program was:" >&5
    4466 sed 's/^/| /' conftest.$ac_ext >&5
    4467 
    4468 fi
    4469 rm -f conftest.err conftest.$ac_objext \
    4470       conftest$ac_exeext conftest.$ac_ext
    4471 
    4472         LIBS="$save_LIBS"
    4473         CFLAGS="$save_CFLAGS"
    4474 
    4475         echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
    4476 echo "${ECHO_T}$acx_pthread_ok" >&6
    4477         if test "x$acx_pthread_ok" = xyes; then
    4478                 break;
    4479         fi
    4480 
    4481         PTHREAD_LIBS=""
    4482         PTHREAD_CFLAGS=""
    4483 done
    4484 fi
    4485 
    4486 # Various other checks:
    4487 if test "x$acx_pthread_ok" = xyes; then
    4488         save_LIBS="$LIBS"
    4489         LIBS="$PTHREAD_LIBS $LIBS"
    4490         save_CFLAGS="$CFLAGS"
    4491         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
    4492 
    4493         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
    4494         echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
    4495 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
    4496         attr_name=unknown
    4497         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
    4498             cat >conftest.$ac_ext <<_ACEOF
    4499 /* confdefs.h.  */
    4500 _ACEOF
    4501 cat confdefs.h >>conftest.$ac_ext
    4502 cat >>conftest.$ac_ext <<_ACEOF
    4503 /* end confdefs.h.  */
    4504 #include <pthread.h>
    4505 int
    4506 main ()
    4507 {
    4508 int attr=$attr; return attr;
    4509   ;
    4510   return 0;
    4511 }
    4512 _ACEOF
    4513 rm -f conftest.$ac_objext conftest$ac_exeext
    4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4515   (eval $ac_link) 2>conftest.er1
    4516   ac_status=$?
    4517   grep -v '^ *+' conftest.er1 >conftest.err
    4518   rm -f conftest.er1
    4519   cat conftest.err >&5
    4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4521   (exit $ac_status); } &&
    4522          { ac_try='test -z "$ac_c_werror_flag"
    4523                          || test ! -s conftest.err'
    4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4525   (eval $ac_try) 2>&5
    4526   ac_status=$?
    4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4528   (exit $ac_status); }; } &&
    4529          { ac_try='test -s conftest$ac_exeext'
    4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4531   (eval $ac_try) 2>&5
    4532   ac_status=$?
    4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4534   (exit $ac_status); }; }; then
    4535   attr_name=$attr; break
    4536 else
    4537   echo "$as_me: failed program was:" >&5
    4538 sed 's/^/| /' conftest.$ac_ext >&5
    4539 
    4540 fi
    4541 rm -f conftest.err conftest.$ac_objext \
    4542       conftest$ac_exeext conftest.$ac_ext
    4543         done
    4544         echo "$as_me:$LINENO: result: $attr_name" >&5
    4545 echo "${ECHO_T}$attr_name" >&6
    4546         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
    4547 
    4548 cat >>confdefs.h <<_ACEOF
    4549 #define PTHREAD_CREATE_JOINABLE $attr_name
    4550 _ACEOF
    4551 
    4552         fi
    4553 
    4554         echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
    4555 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
    4556         flag=no
    4557         case "${host_cpu}-${host_os}" in
    4558             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
    4559             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
    4560         esac
    4561         echo "$as_me:$LINENO: result: ${flag}" >&5
    4562 echo "${ECHO_T}${flag}" >&6
    4563         if test "x$flag" != xno; then
    4564             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
    4565         fi
    4566 
    4567         LIBS="$save_LIBS"
    4568         CFLAGS="$save_CFLAGS"
    4569 
    4570         # More AIX lossage: must compile with xlc_r or cc_r
    4571         if test x"$GCC" != xyes; then
    4572           for ac_prog in xlc_r cc_r
    4573 do
    4574   # Extract the first word of "$ac_prog", so it can be a program name with args.
    4575 set dummy $ac_prog; ac_word=$2
    4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4578 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
    4579   echo $ECHO_N "(cached) $ECHO_C" >&6
    4580 else
    4581   if test -n "$PTHREAD_CC"; then
    4582   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
    4583 else
    4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4585 for as_dir in $PATH
    4586 do
    4587   IFS=$as_save_IFS
    4588   test -z "$as_dir" && as_dir=.
    4589   for ac_exec_ext in '' $ac_executable_extensions; do
    4590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4591     ac_cv_prog_PTHREAD_CC="$ac_prog"
    4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4593     break 2
    4594   fi
    4595 done
    4596 done
    4597 
    4598 fi
    4599 fi
    4600 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
    4601 if test -n "$PTHREAD_CC"; then
    4602   echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
    4603 echo "${ECHO_T}$PTHREAD_CC" >&6
    4604 else
    4605   echo "$as_me:$LINENO: result: no" >&5
    4606 echo "${ECHO_T}no" >&6
    4607 fi
    4608 
    4609   test -n "$PTHREAD_CC" && break
    4610 done
    4611 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
    4612 
    4613         else
    4614           PTHREAD_CC=$CC
    4615         fi
    4616 else
    4617         PTHREAD_CC="$CC"
    4618 fi
    4619 
    4620 
    4621 
    4622 
    4623 
    4624 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
    4625 if test x"$acx_pthread_ok" = xyes; then
    4626 
    4627 cat >>confdefs.h <<\_ACEOF
    4628 #define HAVE_PTHREAD 1
    4629 _ACEOF
    4630 
    4631         :
    4632 else
    4633         acx_pthread_ok=no
    4634 
    4635 fi
    4636 ac_ext=c
    4637 ac_cpp='$CPP $CPPFLAGS'
    4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4641 
    4642 
    4643 
    4644 GETTEXT_PACKAGE=transmission
    4645 
    4646 
    4647 cat >>confdefs.h <<_ACEOF
    4648 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
    4649 _ACEOF
    4650 
    4651 ALL_LINGUAS="bg es fi fr it pl ro ru sv"
    4652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    4653 
    4654 
    4655 
    4656 
    4657 
    4658 
    4659 
    4660 
    4661 
    4662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    4663                   inttypes.h stdint.h unistd.h
    4664 do
    4665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4666 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4669   echo $ECHO_N "(cached) $ECHO_C" >&6
    4670 else
    4671   cat >conftest.$ac_ext <<_ACEOF
    4672 /* confdefs.h.  */
    4673 _ACEOF
    4674 cat confdefs.h >>conftest.$ac_ext
    4675 cat >>conftest.$ac_ext <<_ACEOF
    4676 /* end confdefs.h.  */
    4677 $ac_includes_default
    4678 
    4679 #include <$ac_header>
    4680 _ACEOF
    4681 rm -f conftest.$ac_objext
    4682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4683   (eval $ac_compile) 2>conftest.er1
    4684   ac_status=$?
    4685   grep -v '^ *+' conftest.er1 >conftest.err
    4686   rm -f conftest.er1
    4687   cat conftest.err >&5
    4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4689   (exit $ac_status); } &&
    4690          { ac_try='test -z "$ac_c_werror_flag"
    4691                          || test ! -s conftest.err'
    4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4693   (eval $ac_try) 2>&5
    4694   ac_status=$?
    4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4696   (exit $ac_status); }; } &&
    4697          { ac_try='test -s conftest.$ac_objext'
    4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4699   (eval $ac_try) 2>&5
    4700   ac_status=$?
    4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4702   (exit $ac_status); }; }; then
    4703   eval "$as_ac_Header=yes"
    4704 else
    4705   echo "$as_me: failed program was:" >&5
    4706 sed 's/^/| /' conftest.$ac_ext >&5
    4707 
    4708 eval "$as_ac_Header=no"
    4709 fi
    4710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4711 fi
    4712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4715   cat >>confdefs.h <<_ACEOF
    4716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4717 _ACEOF
    4718 
    4719 fi
    4720 
    4721 done
    4722 
    4723 
    4724 
    4725 
    4726 for ac_header in locale.h
    4727 do
    4728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4730   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4733   echo $ECHO_N "(cached) $ECHO_C" >&6
    4734 fi
    4735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4737 else
    4738   # Is the header compilable?
    4739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    4741 cat >conftest.$ac_ext <<_ACEOF
    4742 /* confdefs.h.  */
    4743 _ACEOF
    4744 cat confdefs.h >>conftest.$ac_ext
    4745 cat >>conftest.$ac_ext <<_ACEOF
    4746 /* end confdefs.h.  */
    4747 $ac_includes_default
    4748 #include <$ac_header>
    4749 _ACEOF
    4750 rm -f conftest.$ac_objext
    4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4752   (eval $ac_compile) 2>conftest.er1
    4753   ac_status=$?
    4754   grep -v '^ *+' conftest.er1 >conftest.err
    4755   rm -f conftest.er1
    4756   cat conftest.err >&5
    4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4758   (exit $ac_status); } &&
    4759          { ac_try='test -z "$ac_c_werror_flag"
    4760                          || test ! -s conftest.err'
    4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4762   (eval $ac_try) 2>&5
    4763   ac_status=$?
    4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4765   (exit $ac_status); }; } &&
    4766          { ac_try='test -s conftest.$ac_objext'
    4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4768   (eval $ac_try) 2>&5
    4769   ac_status=$?
    4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4771   (exit $ac_status); }; }; then
    4772   ac_header_compiler=yes
    4773 else
    4774   echo "$as_me: failed program was:" >&5
    4775 sed 's/^/| /' conftest.$ac_ext >&5
    4776 
    4777 ac_header_compiler=no
    4778 fi
    4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4781 echo "${ECHO_T}$ac_header_compiler" >&6
    4782 
    4783 # Is the header present?
    4784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    4786 cat >conftest.$ac_ext <<_ACEOF
    4787 /* confdefs.h.  */
    4788 _ACEOF
    4789 cat confdefs.h >>conftest.$ac_ext
    4790 cat >>conftest.$ac_ext <<_ACEOF
    4791 /* end confdefs.h.  */
    4792 #include <$ac_header>
    4793 _ACEOF
    4794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4796   ac_status=$?
    4797   grep -v '^ *+' conftest.er1 >conftest.err
    4798   rm -f conftest.er1
    4799   cat conftest.err >&5
    4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4801   (exit $ac_status); } >/dev/null; then
    4802   if test -s conftest.err; then
    4803     ac_cpp_err=$ac_c_preproc_warn_flag
    4804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4805   else
    4806     ac_cpp_err=
    4807   fi
    4808 else
    4809   ac_cpp_err=yes
    4810 fi
    4811 if test -z "$ac_cpp_err"; then
    4812   ac_header_preproc=yes
    4813 else
    4814   echo "$as_me: failed program was:" >&5
    4815 sed 's/^/| /' conftest.$ac_ext >&5
    4816 
    4817   ac_header_preproc=no
    4818 fi
    4819 rm -f conftest.err conftest.$ac_ext
    4820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4821 echo "${ECHO_T}$ac_header_preproc" >&6
    4822 
    4823 # So?  What about this header?
    4824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4825   yes:no: )
    4826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    4830     ac_header_preproc=yes
    4831     ;;
    4832   no:yes:* )
    4833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    4841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    4845     (
    4846       cat <<\_ASBOX
    4847 ## ------------------------------------------------------------------ ##
    4848 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=Pan ##
    4849 ## ------------------------------------------------------------------ ##
    4850 _ASBOX
    4851     ) |
    4852       sed "s/^/$as_me: WARNING:     /" >&2
    4853     ;;
    4854 esac
    4855 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4858   echo $ECHO_N "(cached) $ECHO_C" >&6
    4859 else
    4860   eval "$as_ac_Header=\$ac_header_preproc"
    4861 fi
    4862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4864 
    4865 fi
    4866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4867   cat >>confdefs.h <<_ACEOF
    4868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4869 _ACEOF
    4870 
    4871 fi
    4872 
    4873 done
    4874 
    4875     if test $ac_cv_header_locale_h = yes; then
    4876     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
    4877 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
    4878 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
    4879   echo $ECHO_N "(cached) $ECHO_C" >&6
    4880 else
    4881   cat >conftest.$ac_ext <<_ACEOF
    4882 /* confdefs.h.  */
    4883 _ACEOF
    4884 cat confdefs.h >>conftest.$ac_ext
    4885 cat >>conftest.$ac_ext <<_ACEOF
    4886 /* end confdefs.h.  */
    4887 #include <locale.h>
    4888 int
    4889 main ()
    4890 {
    4891 return LC_MESSAGES
    4892   ;
    4893   return 0;
    4894 }
    4895 _ACEOF
    4896 rm -f conftest.$ac_objext conftest$ac_exeext
    4897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4898   (eval $ac_link) 2>conftest.er1
    4899   ac_status=$?
    4900   grep -v '^ *+' conftest.er1 >conftest.err
    4901   rm -f conftest.er1
    4902   cat conftest.err >&5
    4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4904   (exit $ac_status); } &&
    4905          { ac_try='test -z "$ac_c_werror_flag"
    4906                          || test ! -s conftest.err'
    4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4908   (eval $ac_try) 2>&5
    4909   ac_status=$?
    4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4911   (exit $ac_status); }; } &&
    4912          { ac_try='test -s conftest$ac_exeext'
    4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4914   (eval $ac_try) 2>&5
    4915   ac_status=$?
    4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4917   (exit $ac_status); }; }; then
    4918   am_cv_val_LC_MESSAGES=yes
    4919 else
    4920   echo "$as_me: failed program was:" >&5
    4921 sed 's/^/| /' conftest.$ac_ext >&5
    4922 
    4923 am_cv_val_LC_MESSAGES=no
    4924 fi
    4925 rm -f conftest.err conftest.$ac_objext \
    4926       conftest$ac_exeext conftest.$ac_ext
    4927 fi
    4928 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
    4929 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
    4930     if test $am_cv_val_LC_MESSAGES = yes; then
    4931 
    4932 cat >>confdefs.h <<\_ACEOF
    4933 #define HAVE_LC_MESSAGES 1
    4934 _ACEOF
    4935 
    4936     fi
    4937   fi
    4938          USE_NLS=yes
    4939 
    4940 
    4941     gt_cv_have_gettext=no
    4942 
    4943     CATOBJEXT=NONE
    4944     XGETTEXT=:
    4945     INTLLIBS=
    4946 
    4947     if test "${ac_cv_header_libintl_h+set}" = set; then
    4948   echo "$as_me:$LINENO: checking for libintl.h" >&5
    4949 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
    4950 if test "${ac_cv_header_libintl_h+set}" = set; then
    4951   echo $ECHO_N "(cached) $ECHO_C" >&6
    4952 fi
    4953 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
    4954 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
    4955 else
    4956   # Is the header compilable?
    4957 echo "$as_me:$LINENO: checking libintl.h usability" >&5
    4958 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
    4959 cat >conftest.$ac_ext <<_ACEOF
    4960 /* confdefs.h.  */
    4961 _ACEOF
    4962 cat confdefs.h >>conftest.$ac_ext
    4963 cat >>conftest.$ac_ext <<_ACEOF
    4964 /* end confdefs.h.  */
    4965 $ac_includes_default
    4966 #include <libintl.h>
    4967 _ACEOF
    4968 rm -f conftest.$ac_objext
    4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4970   (eval $ac_compile) 2>conftest.er1
    4971   ac_status=$?
    4972   grep -v '^ *+' conftest.er1 >conftest.err
    4973   rm -f conftest.er1
    4974   cat conftest.err >&5
    4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4976   (exit $ac_status); } &&
    4977          { ac_try='test -z "$ac_c_werror_flag"
    4978                          || test ! -s conftest.err'
    4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4980   (eval $ac_try) 2>&5
    4981   ac_status=$?
    4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4983   (exit $ac_status); }; } &&
    4984          { ac_try='test -s conftest.$ac_objext'
    4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4986   (eval $ac_try) 2>&5
    4987   ac_status=$?
    4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4989   (exit $ac_status); }; }; then
    4990   ac_header_compiler=yes
    4991 else
    4992   echo "$as_me: failed program was:" >&5
    4993 sed 's/^/| /' conftest.$ac_ext >&5
    4994 
    4995 ac_header_compiler=no
    4996 fi
    4997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4999 echo "${ECHO_T}$ac_header_compiler" >&6
    5000 
    5001 # Is the header present?
    5002 echo "$as_me:$LINENO: checking libintl.h presence" >&5
    5003 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
    5004 cat >conftest.$ac_ext <<_ACEOF
    5005 /* confdefs.h.  */
    5006 _ACEOF
    5007 cat confdefs.h >>conftest.$ac_ext
    5008 cat >>conftest.$ac_ext <<_ACEOF
    5009 /* end confdefs.h.  */
    5010 #include <libintl.h>
    5011 _ACEOF
    5012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5014   ac_status=$?
    5015   grep -v '^ *+' conftest.er1 >conftest.err
    5016   rm -f conftest.er1
    5017   cat conftest.err >&5
    5018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5019   (exit $ac_status); } >/dev/null; then
    5020   if test -s conftest.err; then
    5021     ac_cpp_err=$ac_c_preproc_warn_flag
    5022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    5023   else
    5024     ac_cpp_err=
    5025   fi
    5026 else
    5027   ac_cpp_err=yes
    5028 fi
    5029 if test -z "$ac_cpp_err"; then
    5030   ac_header_preproc=yes
    5031 else
    5032   echo "$as_me: failed program was:" >&5
    5033 sed 's/^/| /' conftest.$ac_ext >&5
    5034 
    5035   ac_header_preproc=no
    5036 fi
    5037 rm -f conftest.err conftest.$ac_ext
    5038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5039 echo "${ECHO_T}$ac_header_preproc" >&6
    5040 
    5041 # So?  What about this header?
    5042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5043   yes:no: )
    5044     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
    5045 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5046     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
    5047 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
    5048     ac_header_preproc=yes
    5049     ;;
    5050   no:yes:* )
    5051     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
    5052 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
    5053     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
    5054 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
    5055     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
    5056 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
    5057     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
    5058 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    5059     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
    5060 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
    5061     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
    5062 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
    5063     (
    5064       cat <<\_ASBOX
    5065 ## ------------------------------------------------------------------ ##
    5066 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=Pan ##
    5067 ## ------------------------------------------------------------------ ##
    5068 _ASBOX
    5069     ) |
    5070       sed "s/^/$as_me: WARNING:     /" >&2
    5071     ;;
    5072 esac
    5073 echo "$as_me:$LINENO: checking for libintl.h" >&5
    5074 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
    5075 if test "${ac_cv_header_libintl_h+set}" = set; then
    5076   echo $ECHO_N "(cached) $ECHO_C" >&6
    5077 else
    5078   ac_cv_header_libintl_h=$ac_header_preproc
    5079 fi
    5080 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
    5081 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
    5082 
    5083 fi
    5084 if test $ac_cv_header_libintl_h = yes; then
    5085   gt_cv_func_dgettext_libintl="no"
    5086       libintl_extra_libs=""
    5087 
    5088       #
    5089       # First check in libc
    5090       #
    5091       echo "$as_me:$LINENO: checking for ngettext in libc" >&5
    5092 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
    5093 if test "${gt_cv_func_ngettext_libc+set}" = set; then
    5094   echo $ECHO_N "(cached) $ECHO_C" >&6
    5095 else
    5096   cat >conftest.$ac_ext <<_ACEOF
    5097 /* confdefs.h.  */
    5098 _ACEOF
    5099 cat confdefs.h >>conftest.$ac_ext
    5100 cat >>conftest.$ac_ext <<_ACEOF
    5101 /* end confdefs.h.  */
    5102 
    5103 #include <libintl.h>
    5104 
    5105 int
    5106 main ()
    5107 {
    5108 return !ngettext ("","", 1)
    5109   ;
    5110   return 0;
    5111 }
    5112 _ACEOF
    5113 rm -f conftest.$ac_objext conftest$ac_exeext
    5114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5115   (eval $ac_link) 2>conftest.er1
    5116   ac_status=$?
    5117   grep -v '^ *+' conftest.er1 >conftest.err
    5118   rm -f conftest.er1
    5119   cat conftest.err >&5
    5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5121   (exit $ac_status); } &&
    5122          { ac_try='test -z "$ac_c_werror_flag"
    5123                          || test ! -s conftest.err'
    5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5125   (eval $ac_try) 2>&5
    5126   ac_status=$?
    5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5128   (exit $ac_status); }; } &&
    5129          { ac_try='test -s conftest$ac_exeext'
    5130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5131   (eval $ac_try) 2>&5
    5132   ac_status=$?
    5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5134   (exit $ac_status); }; }; then
    5135   gt_cv_func_ngettext_libc=yes
    5136 else
    5137   echo "$as_me: failed program was:" >&5
    5138 sed 's/^/| /' conftest.$ac_ext >&5
    5139 
    5140 gt_cv_func_ngettext_libc=no
    5141 fi
    5142 rm -f conftest.err conftest.$ac_objext \
    5143       conftest$ac_exeext conftest.$ac_ext
    5144 
    5145 fi
    5146 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
    5147 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
    5148 
    5149       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
    5150               echo "$as_me:$LINENO: checking for dgettext in libc" >&5
    5151 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
    5152 if test "${gt_cv_func_dgettext_libc+set}" = set; then
    5153   echo $ECHO_N "(cached) $ECHO_C" >&6
    5154 else
    5155   cat >conftest.$ac_ext <<_ACEOF
    5156 /* confdefs.h.  */
    5157 _ACEOF
    5158 cat confdefs.h >>conftest.$ac_ext
    5159 cat >>conftest.$ac_ext <<_ACEOF
    5160 /* end confdefs.h.  */
    5161 
    5162 #include <libintl.h>
    5163 
    5164 int
    5165 main ()
    5166 {
    5167 return !dgettext ("","")
    5168   ;
    5169   return 0;
    5170 }
    5171 _ACEOF
    5172 rm -f conftest.$ac_objext conftest$ac_exeext
    5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5174   (eval $ac_link) 2>conftest.er1
    5175   ac_status=$?
    5176   grep -v '^ *+' conftest.er1 >conftest.err
    5177   rm -f conftest.er1
    5178   cat conftest.err >&5
    5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5180   (exit $ac_status); } &&
    5181          { ac_try='test -z "$ac_c_werror_flag"
    5182                          || test ! -s conftest.err'
    5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5184   (eval $ac_try) 2>&5
    5185   ac_status=$?
    5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5187   (exit $ac_status); }; } &&
    5188          { ac_try='test -s conftest$ac_exeext'
    5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5190   (eval $ac_try) 2>&5
    5191   ac_status=$?
    5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5193   (exit $ac_status); }; }; then
    5194   gt_cv_func_dgettext_libc=yes
    5195 else
    5196   echo "$as_me: failed program was:" >&5
    5197 sed 's/^/| /' conftest.$ac_ext >&5
    5198 
    5199 gt_cv_func_dgettext_libc=no
    5200 fi
    5201 rm -f conftest.err conftest.$ac_objext \
    5202       conftest$ac_exeext conftest.$ac_ext
    5203 
    5204 fi
    5205 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
    5206 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
    5207       fi
    5208 
    5209       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
    5210 
    5211 for ac_func in bind_textdomain_codeset
    5212 do
    5213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5214 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5216 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5217   echo $ECHO_N "(cached) $ECHO_C" >&6
    5218 else
    5219   cat >conftest.$ac_ext <<_ACEOF
    5220 /* confdefs.h.  */
    5221 _ACEOF
    5222 cat confdefs.h >>conftest.$ac_ext
    5223 cat >>conftest.$ac_ext <<_ACEOF
    5224 /* end confdefs.h.  */
    5225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5227 #define $ac_func innocuous_$ac_func
    5228 
    5229 /* System header to define __stub macros and hopefully few prototypes,
    5230     which can conflict with char $ac_func (); below.
    5231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5232     <limits.h> exists even on freestanding compilers.  */
    5233 
    5234 #ifdef __STDC__
    5235 # include <limits.h>
    5236 #else
    5237 # include <assert.h>
    5238 #endif
    5239 
    5240 #undef $ac_func
    5241 
    5242 /* Override any gcc2 internal prototype to avoid an error.  */
    5243 #ifdef __cplusplus
    5244 extern "C"
    5245 {
    5246 #endif
    5247 /* We use char because int might match the return type of a gcc2
    5248    builtin and then its argument prototype would still apply.  */
    5249 char $ac_func ();
    5250 /* The GNU C library defines this for functions which it implements
    5251     to always fail with ENOSYS.  Some functions are actually named
    5252     something starting with __ and the normal name is an alias.  */
    5253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5254 choke me
    5255 #else
    5256 char (*f) () = $ac_func;
    5257 #endif
    5258 #ifdef __cplusplus
    5259 }
    5260 #endif
    5261 
    5262 int
    5263 main ()
    5264 {
    5265 return f != $ac_func;
    5266   ;
    5267   return 0;
    5268 }
    5269 _ACEOF
    5270 rm -f conftest.$ac_objext conftest$ac_exeext
    5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5272   (eval $ac_link) 2>conftest.er1
    5273   ac_status=$?
    5274   grep -v '^ *+' conftest.er1 >conftest.err
    5275   rm -f conftest.er1
    5276   cat conftest.err >&5
    5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5278   (exit $ac_status); } &&
    5279          { ac_try='test -z "$ac_c_werror_flag"
    5280                          || test ! -s conftest.err'
    5281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5282   (eval $ac_try) 2>&5
    5283   ac_status=$?
    5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5285   (exit $ac_status); }; } &&
    5286          { ac_try='test -s conftest$ac_exeext'
    5287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5288   (eval $ac_try) 2>&5
    5289   ac_status=$?
    5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5291   (exit $ac_status); }; }; then
    5292   eval "$as_ac_var=yes"
    5293 else
    5294   echo "$as_me: failed program was:" >&5
    5295 sed 's/^/| /' conftest.$ac_ext >&5
    5296 
    5297 eval "$as_ac_var=no"
    5298 fi
    5299 rm -f conftest.err conftest.$ac_objext \
    5300       conftest$ac_exeext conftest.$ac_ext
    5301 fi
    5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5304 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5305   cat >>confdefs.h <<_ACEOF
    5306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5307 _ACEOF
    5308 
    5309 fi
    5310 done
    5311 
    5312       fi
    5313 
    5314       #
    5315       # If we don't have everything we want, check in libintl
    5316       #
    5317       if test "$gt_cv_func_dgettext_libc" != "yes" \
    5318          || test "$gt_cv_func_ngettext_libc" != "yes" \
    5319          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
    5320 
    5321         echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
    5322 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
    5323 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
    5324   echo $ECHO_N "(cached) $ECHO_C" >&6
    5325 else
    5326   ac_check_lib_save_LIBS=$LIBS
    5327 LIBS="-lintl  $LIBS"
    5328 cat >conftest.$ac_ext <<_ACEOF
    5329 /* confdefs.h.  */
    5330 _ACEOF
    5331 cat confdefs.h >>conftest.$ac_ext
    5332 cat >>conftest.$ac_ext <<_ACEOF
    5333 /* end confdefs.h.  */
    5334 
    5335 /* Override any gcc2 internal prototype to avoid an error.  */
    5336 #ifdef __cplusplus
    5337 extern "C"
    5338 #endif
    5339 /* We use char because int might match the return type of a gcc2
    5340    builtin and then its argument prototype would still apply.  */
    5341 char bindtextdomain ();
    5342 int
    5343 main ()
    5344 {
    5345 bindtextdomain ();
    5346   ;
    5347   return 0;
    5348 }
    5349 _ACEOF
    5350 rm -f conftest.$ac_objext conftest$ac_exeext
    5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5352   (eval $ac_link) 2>conftest.er1
    5353   ac_status=$?
    5354   grep -v '^ *+' conftest.er1 >conftest.err
    5355   rm -f conftest.er1
    5356   cat conftest.err >&5
    5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5358   (exit $ac_status); } &&
    5359          { ac_try='test -z "$ac_c_werror_flag"
    5360                          || test ! -s conftest.err'
    5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5362   (eval $ac_try) 2>&5
    5363   ac_status=$?
    5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5365   (exit $ac_status); }; } &&
    5366          { ac_try='test -s conftest$ac_exeext'
    5367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5368   (eval $ac_try) 2>&5
    5369   ac_status=$?
    5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5371   (exit $ac_status); }; }; then
    5372   ac_cv_lib_intl_bindtextdomain=yes
    5373 else
    5374   echo "$as_me: failed program was:" >&5
    5375 sed 's/^/| /' conftest.$ac_ext >&5
    5376 
    5377 ac_cv_lib_intl_bindtextdomain=no
    5378 fi
    5379 rm -f conftest.err conftest.$ac_objext \
    5380       conftest$ac_exeext conftest.$ac_ext
    5381 LIBS=$ac_check_lib_save_LIBS
    5382 fi
    5383 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
    5384 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
    5385 if test $ac_cv_lib_intl_bindtextdomain = yes; then
    5386   echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
    5387 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
    5388 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
    5389   echo $ECHO_N "(cached) $ECHO_C" >&6
    5390 else
    5391   ac_check_lib_save_LIBS=$LIBS
    5392 LIBS="-lintl  $LIBS"
    5393 cat >conftest.$ac_ext <<_ACEOF
    5394 /* confdefs.h.  */
    5395 _ACEOF
    5396 cat confdefs.h >>conftest.$ac_ext
    5397 cat >>conftest.$ac_ext <<_ACEOF
    5398 /* end confdefs.h.  */
    5399 
    5400 /* Override any gcc2 internal prototype to avoid an error.  */
    5401 #ifdef __cplusplus
    5402 extern "C"
    5403 #endif
    5404 /* We use char because int might match the return type of a gcc2
    5405    builtin and then its argument prototype would still apply.  */
    5406 char ngettext ();
    5407 int
    5408 main ()
    5409 {
    5410 ngettext ();
    5411   ;
    5412   return 0;
    5413 }
    5414 _ACEOF
    5415 rm -f conftest.$ac_objext conftest$ac_exeext
    5416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5417   (eval $ac_link) 2>conftest.er1
    5418   ac_status=$?
    5419   grep -v '^ *+' conftest.er1 >conftest.err
    5420   rm -f conftest.er1
    5421   cat conftest.err >&5
    5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5423   (exit $ac_status); } &&
    5424          { ac_try='test -z "$ac_c_werror_flag"
    5425                          || test ! -s conftest.err'
    5426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5427   (eval $ac_try) 2>&5
    5428   ac_status=$?
    5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5430   (exit $ac_status); }; } &&
    5431          { ac_try='test -s conftest$ac_exeext'
    5432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5433   (eval $ac_try) 2>&5
    5434   ac_status=$?
    5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5436   (exit $ac_status); }; }; then
    5437   ac_cv_lib_intl_ngettext=yes
    5438 else
    5439   echo "$as_me: failed program was:" >&5
    5440 sed 's/^/| /' conftest.$ac_ext >&5
    5441 
    5442 ac_cv_lib_intl_ngettext=no
    5443 fi
    5444 rm -f conftest.err conftest.$ac_objext \
    5445       conftest$ac_exeext conftest.$ac_ext
    5446 LIBS=$ac_check_lib_save_LIBS
    5447 fi
    5448 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
    5449 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
    5450 if test $ac_cv_lib_intl_ngettext = yes; then
    5451   echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
    5452 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
    5453 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
    5454   echo $ECHO_N "(cached) $ECHO_C" >&6
    5455 else
    5456   ac_check_lib_save_LIBS=$LIBS
    5457 LIBS="-lintl  $LIBS"
    5458 cat >conftest.$ac_ext <<_ACEOF
    5459 /* confdefs.h.  */
    5460 _ACEOF
    5461 cat confdefs.h >>conftest.$ac_ext
    5462 cat >>conftest.$ac_ext <<_ACEOF
    5463 /* end confdefs.h.  */
    5464 
    5465 /* Override any gcc2 internal prototype to avoid an error.  */
    5466 #ifdef __cplusplus
    5467 extern "C"
    5468 #endif
    5469 /* We use char because int might match the return type of a gcc2
    5470    builtin and then its argument prototype would still apply.  */
    5471 char dgettext ();
    5472 int
    5473 main ()
    5474 {
    5475 dgettext ();
    5476   ;
    5477   return 0;
    5478 }
    5479 _ACEOF
    5480 rm -f conftest.$ac_objext conftest$ac_exeext
    5481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5482   (eval $ac_link) 2>conftest.er1
    5483   ac_status=$?
    5484   grep -v '^ *+' conftest.er1 >conftest.err
    5485   rm -f conftest.er1
    5486   cat conftest.err >&5
    5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5488   (exit $ac_status); } &&
    5489          { ac_try='test -z "$ac_c_werror_flag"
    5490                          || test ! -s conftest.err'
    5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5492   (eval $ac_try) 2>&5
    5493   ac_status=$?
    5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5495   (exit $ac_status); }; } &&
    5496          { ac_try='test -s conftest$ac_exeext'
    5497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5498   (eval $ac_try) 2>&5
    5499   ac_status=$?
    5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5501   (exit $ac_status); }; }; then
    5502   ac_cv_lib_intl_dgettext=yes
    5503 else
    5504   echo "$as_me: failed program was:" >&5
    5505 sed 's/^/| /' conftest.$ac_ext >&5
    5506 
    5507 ac_cv_lib_intl_dgettext=no
    5508 fi
    5509 rm -f conftest.err conftest.$ac_objext \
    5510       conftest$ac_exeext conftest.$ac_ext
    5511 LIBS=$ac_check_lib_save_LIBS
    5512 fi
    5513 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
    5514 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
    5515 if test $ac_cv_lib_intl_dgettext = yes; then
    5516   gt_cv_func_dgettext_libintl=yes
    5517 fi
    5518 
    5519 fi
    5520 
    5521 fi
    5522 
    5523 
    5524         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
    5525           echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
    5526 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
    5527           echo "$as_me:$LINENO: result: " >&5
    5528 echo "${ECHO_T}" >&6
    5529           echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
    5530 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
    5531 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
    5532   echo $ECHO_N "(cached) $ECHO_C" >&6
    5533 else
    5534   ac_check_lib_save_LIBS=$LIBS
    5535 LIBS="-lintl -liconv $LIBS"
    5536 cat >conftest.$ac_ext <<_ACEOF
    5537 /* confdefs.h.  */
    5538 _ACEOF
    5539 cat confdefs.h >>conftest.$ac_ext
    5540 cat >>conftest.$ac_ext <<_ACEOF
    5541 /* end confdefs.h.  */
    5542 
    5543 /* Override any gcc2 internal prototype to avoid an error.  */
    5544 #ifdef __cplusplus
    5545 extern "C"
    5546 #endif
    5547 /* We use char because int might match the return type of a gcc2
    5548    builtin and then its argument prototype would still apply.  */
    5549 char ngettext ();
    5550 int
    5551 main ()
    5552 {
    5553 ngettext ();
    5554   ;
    5555   return 0;
    5556 }
    5557 _ACEOF
    5558 rm -f conftest.$ac_objext conftest$ac_exeext
    5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5560   (eval $ac_link) 2>conftest.er1
    5561   ac_status=$?
    5562   grep -v '^ *+' conftest.er1 >conftest.err
    5563   rm -f conftest.er1
    5564   cat conftest.err >&5
    5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5566   (exit $ac_status); } &&
    5567          { ac_try='test -z "$ac_c_werror_flag"
    5568                          || test ! -s conftest.err'
    5569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5570   (eval $ac_try) 2>&5
    5571   ac_status=$?
    5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5573   (exit $ac_status); }; } &&
    5574          { ac_try='test -s conftest$ac_exeext'
    5575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5576   (eval $ac_try) 2>&5
    5577   ac_status=$?
    5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5579   (exit $ac_status); }; }; then
    5580   ac_cv_lib_intl_ngettext=yes
    5581 else
    5582   echo "$as_me: failed program was:" >&5
    5583 sed 's/^/| /' conftest.$ac_ext >&5
    5584 
    5585 ac_cv_lib_intl_ngettext=no
    5586 fi
    5587 rm -f conftest.err conftest.$ac_objext \
    5588       conftest$ac_exeext conftest.$ac_ext
    5589 LIBS=$ac_check_lib_save_LIBS
    5590 fi
    5591 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
    5592 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
    5593 if test $ac_cv_lib_intl_ngettext = yes; then
    5594   echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
    5595 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
    5596 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
    5597   echo $ECHO_N "(cached) $ECHO_C" >&6
    5598 else
    5599   ac_check_lib_save_LIBS=$LIBS
    5600 LIBS="-lintl -liconv $LIBS"
    5601 cat >conftest.$ac_ext <<_ACEOF
    5602 /* confdefs.h.  */
    5603 _ACEOF
    5604 cat confdefs.h >>conftest.$ac_ext
    5605 cat >>conftest.$ac_ext <<_ACEOF
    5606 /* end confdefs.h.  */
    5607 
    5608 /* Override any gcc2 internal prototype to avoid an error.  */
    5609 #ifdef __cplusplus
    5610 extern "C"
    5611 #endif
    5612 /* We use char because int might match the return type of a gcc2
    5613    builtin and then its argument prototype would still apply.  */
    5614 char dcgettext ();
    5615 int
    5616 main ()
    5617 {
    5618 dcgettext ();
    5619   ;
    5620   return 0;
    5621 }
    5622 _ACEOF
    5623 rm -f conftest.$ac_objext conftest$ac_exeext
    5624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5625   (eval $ac_link) 2>conftest.er1
    5626   ac_status=$?
    5627   grep -v '^ *+' conftest.er1 >conftest.err
    5628   rm -f conftest.er1
    5629   cat conftest.err >&5
    5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5631   (exit $ac_status); } &&
    5632          { ac_try='test -z "$ac_c_werror_flag"
    5633                          || test ! -s conftest.err'
    5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5635   (eval $ac_try) 2>&5
    5636   ac_status=$?
    5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5638   (exit $ac_status); }; } &&
    5639          { ac_try='test -s conftest$ac_exeext'
    5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5641   (eval $ac_try) 2>&5
    5642   ac_status=$?
    5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5644   (exit $ac_status); }; }; then
    5645   ac_cv_lib_intl_dcgettext=yes
    5646 else
    5647   echo "$as_me: failed program was:" >&5
    5648 sed 's/^/| /' conftest.$ac_ext >&5
    5649 
    5650 ac_cv_lib_intl_dcgettext=no
    5651 fi
    5652 rm -f conftest.err conftest.$ac_objext \
    5653       conftest$ac_exeext conftest.$ac_ext
    5654 LIBS=$ac_check_lib_save_LIBS
    5655 fi
    5656 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
    5657 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
    5658 if test $ac_cv_lib_intl_dcgettext = yes; then
    5659   gt_cv_func_dgettext_libintl=yes
    5660                         libintl_extra_libs=-liconv
    5661 else
    5662   :
    5663 fi
    5664 
    5665 else
    5666   :
    5667 fi
    5668 
    5669         fi
    5670 
    5671         #
    5672         # If we found libintl, then check in it for bind_textdomain_codeset();
    5673         # we'll prefer libc if neither have bind_textdomain_codeset(),
    5674         # and both have dgettext and ngettext
    5675         #
    5676         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
    5677           glib_save_LIBS="$LIBS"
    5678           LIBS="$LIBS -lintl $libintl_extra_libs"
    5679           unset ac_cv_func_bind_textdomain_codeset
    5680 
    5681 for ac_func in bind_textdomain_codeset
    5682 do
    5683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5684 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5686 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5687   echo $ECHO_N "(cached) $ECHO_C" >&6
    5688 else
    5689   cat >conftest.$ac_ext <<_ACEOF
    5690 /* confdefs.h.  */
    5691 _ACEOF
    5692 cat confdefs.h >>conftest.$ac_ext
    5693 cat >>conftest.$ac_ext <<_ACEOF
    5694 /* end confdefs.h.  */
    5695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5697 #define $ac_func innocuous_$ac_func
    5698 
    5699 /* System header to define __stub macros and hopefully few prototypes,
    5700     which can conflict with char $ac_func (); below.
    5701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5702     <limits.h> exists even on freestanding compilers.  */
    5703 
    5704 #ifdef __STDC__
    5705 # include <limits.h>
    5706 #else
    5707 # include <assert.h>
    5708 #endif
    5709 
    5710 #undef $ac_func
    5711 
    5712 /* Override any gcc2 internal prototype to avoid an error.  */
    5713 #ifdef __cplusplus
    5714 extern "C"
    5715 {
    5716 #endif
    5717 /* We use char because int might match the return type of a gcc2
    5718    builtin and then its argument prototype would still apply.  */
    5719 char $ac_func ();
    5720 /* The GNU C library defines this for functions which it implements
    5721     to always fail with ENOSYS.  Some functions are actually named
    5722     something starting with __ and the normal name is an alias.  */
    5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5724 choke me
    5725 #else
    5726 char (*f) () = $ac_func;
    5727 #endif
    5728 #ifdef __cplusplus
    5729 }
    5730 #endif
    5731 
    5732 int
    5733 main ()
    5734 {
    5735 return f != $ac_func;
    5736   ;
    5737   return 0;
    5738 }
    5739 _ACEOF
    5740 rm -f conftest.$ac_objext conftest$ac_exeext
    5741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5742   (eval $ac_link) 2>conftest.er1
    5743   ac_status=$?
    5744   grep -v '^ *+' conftest.er1 >conftest.err
    5745   rm -f conftest.er1
    5746   cat conftest.err >&5
    5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5748   (exit $ac_status); } &&
    5749          { ac_try='test -z "$ac_c_werror_flag"
    5750                          || test ! -s conftest.err'
    5751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5752   (eval $ac_try) 2>&5
    5753   ac_status=$?
    5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5755   (exit $ac_status); }; } &&
    5756          { ac_try='test -s conftest$ac_exeext'
    5757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5758   (eval $ac_try) 2>&5
    5759   ac_status=$?
    5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5761   (exit $ac_status); }; }; then
    5762   eval "$as_ac_var=yes"
    5763 else
    5764   echo "$as_me: failed program was:" >&5
    5765 sed 's/^/| /' conftest.$ac_ext >&5
    5766 
    5767 eval "$as_ac_var=no"
    5768 fi
    5769 rm -f conftest.err conftest.$ac_objext \
    5770       conftest$ac_exeext conftest.$ac_ext
    5771 fi
    5772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5774 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5775   cat >>confdefs.h <<_ACEOF
    5776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5777 _ACEOF
    5778 
    5779 fi
    5780 done
    5781 
    5782           LIBS="$glib_save_LIBS"
    5783 
    5784           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
    5785             gt_cv_func_dgettext_libc=no
    5786           else
    5787             if test "$gt_cv_func_dgettext_libc" = "yes" \
    5788                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
    5789               gt_cv_func_dgettext_libintl=no
    5790             fi
    5791           fi
    5792         fi
    5793       fi
    5794 
    5795       if test "$gt_cv_func_dgettext_libc" = "yes" \
    5796         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
    5797         gt_cv_have_gettext=yes
    5798       fi
    5799 
    5800       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
    5801         INTLLIBS="-lintl $libintl_extra_libs"
    5802       fi
    5803 
    5804       if test "$gt_cv_have_gettext" = "yes"; then
    5805 
    5806 cat >>confdefs.h <<\_ACEOF
    5807 #define HAVE_GETTEXT 1
    5808 _ACEOF
    5809 
    5810         # Extract the first word of "msgfmt", so it can be a program name with args.
    5811 set dummy msgfmt; ac_word=$2
    5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5814 if test "${ac_cv_path_MSGFMT+set}" = set; then
    5815   echo $ECHO_N "(cached) $ECHO_C" >&6
    5816 else
    5817   case "$MSGFMT" in
    5818   /*)
    5819   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
    5820   ;;
    5821   *)
    5822   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    5823   for ac_dir in $PATH; do
    5824     test -z "$ac_dir" && ac_dir=.
    5825     if test -f $ac_dir/$ac_word; then
    5826       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
    5827         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
    5828         break
    5829       fi
    5830     fi
    5831   done
    5832   IFS="$ac_save_ifs"
    5833   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
    5834   ;;
    5835 esac
    5836 fi
    5837 MSGFMT="$ac_cv_path_MSGFMT"
    5838 if test "$MSGFMT" != "no"; then
    5839   echo "$as_me:$LINENO: result: $MSGFMT" >&5
    5840 echo "${ECHO_T}$MSGFMT" >&6
    5841 else
    5842   echo "$as_me:$LINENO: result: no" >&5
    5843 echo "${ECHO_T}no" >&6
    5844 fi
    5845         if test "$MSGFMT" != "no"; then
    5846           glib_save_LIBS="$LIBS"
    5847           LIBS="$LIBS $INTLLIBS"
    5848 
    5849 for ac_func in dcgettext
    5850 do
    5851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    5852 echo "$as_me:$LINENO: checking for $ac_func" >&5
    5853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    5854 if eval "test \"\${$as_ac_var+set}\" = set"; then
    5855   echo $ECHO_N "(cached) $ECHO_C" >&6
    5856 else
    5857   cat >conftest.$ac_ext <<_ACEOF
    5858 /* confdefs.h.  */
    5859 _ACEOF
    5860 cat confdefs.h >>conftest.$ac_ext
    5861 cat >>conftest.$ac_ext <<_ACEOF
    5862 /* end confdefs.h.  */
    5863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    5864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5865 #define $ac_func innocuous_$ac_func
    5866 
    5867 /* System header to define __stub macros and hopefully few prototypes,
    5868     which can conflict with char $ac_func (); below.
    5869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5870     <limits.h> exists even on freestanding compilers.  */
    5871 
    5872 #ifdef __STDC__
    5873 # include <limits.h>
    5874 #else
    5875 # include <assert.h>
    5876 #endif
    5877 
    5878 #undef $ac_func
    5879 
    5880 /* Override any gcc2 internal prototype to avoid an error.  */
    5881 #ifdef __cplusplus
    5882 extern "C"
    5883 {
    5884 #endif
    5885 /* We use char because int might match the return type of a gcc2
    5886    builtin and then its argument prototype would still apply.  */
    5887 char $ac_func ();
    5888 /* The GNU C library defines this for functions which it implements
    5889     to always fail with ENOSYS.  Some functions are actually named
    5890     something starting with __ and the normal name is an alias.  */
    5891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    5892 choke me
    5893 #else
    5894 char (*f) () = $ac_func;
    5895 #endif
    5896 #ifdef __cplusplus
    5897 }
    5898 #endif
    5899 
    5900 int
    5901 main ()
    5902 {
    5903 return f != $ac_func;
    5904   ;
    5905   return 0;
    5906 }
    5907 _ACEOF
    5908 rm -f conftest.$ac_objext conftest$ac_exeext
    5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5910   (eval $ac_link) 2>conftest.er1
    5911   ac_status=$?
    5912   grep -v '^ *+' conftest.er1 >conftest.err
    5913   rm -f conftest.er1
    5914   cat conftest.err >&5
    5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5916   (exit $ac_status); } &&
    5917          { ac_try='test -z "$ac_c_werror_flag"
    5918                          || test ! -s conftest.err'
    5919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5920   (eval $ac_try) 2>&5
    5921   ac_status=$?
    5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5923   (exit $ac_status); }; } &&
    5924          { ac_try='test -s conftest$ac_exeext'
    5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5926   (eval $ac_try) 2>&5
    5927   ac_status=$?
    5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5929   (exit $ac_status); }; }; then
    5930   eval "$as_ac_var=yes"
    5931 else
    5932   echo "$as_me: failed program was:" >&5
    5933 sed 's/^/| /' conftest.$ac_ext >&5
    5934 
    5935 eval "$as_ac_var=no"
    5936 fi
    5937 rm -f conftest.err conftest.$ac_objext \
    5938       conftest$ac_exeext conftest.$ac_ext
    5939 fi
    5940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    5941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    5942 if test `eval echo '${'$as_ac_var'}'` = yes; then
    5943   cat >>confdefs.h <<_ACEOF
    5944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    5945 _ACEOF
    5946 
    5947 fi
    5948 done
    5949 
    5950           # Extract the first word of "gmsgfmt", so it can be a program name with args.
    5951 set dummy gmsgfmt; ac_word=$2
    5952 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5954 if test "${ac_cv_path_GMSGFMT+set}" = set; then
    5955   echo $ECHO_N "(cached) $ECHO_C" >&6
    5956 else
    5957   case $GMSGFMT in
    5958   [\\/]* | ?:[\\/]*)
    5959   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
    5960   ;;
    5961   *)
    5962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5963 for as_dir in $PATH
    5964 do
    5965   IFS=$as_save_IFS
    5966   test -z "$as_dir" && as_dir=.
    5967   for ac_exec_ext in '' $ac_executable_extensions; do
    5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5969     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
    5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5971     break 2
    5972   fi
    5973 done
    5974 done
    5975 
    5976   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
    5977   ;;
    5978 esac
    5979 fi
    5980 GMSGFMT=$ac_cv_path_GMSGFMT
    5981 
    5982 if test -n "$GMSGFMT"; then
    5983   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
    5984 echo "${ECHO_T}$GMSGFMT" >&6
    5985 else
    5986   echo "$as_me:$LINENO: result: no" >&5
    5987 echo "${ECHO_T}no" >&6
    5988 fi
    5989 
    5990           # Extract the first word of "xgettext", so it can be a program name with args.
    5991 set dummy xgettext; ac_word=$2
    5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5994 if test "${ac_cv_path_XGETTEXT+set}" = set; then
    5995   echo $ECHO_N "(cached) $ECHO_C" >&6
    5996 else
    5997   case "$XGETTEXT" in
    5998   /*)
    5999   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
    6000   ;;
    6001   *)
    6002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    6003   for ac_dir in $PATH; do
    6004     test -z "$ac_dir" && ac_dir=.
    6005     if test -f $ac_dir/$ac_word; then
    6006       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
    6007         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
    6008         break
    6009       fi
    6010     fi
    6011   done
    6012   IFS="$ac_save_ifs"
    6013   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
    6014   ;;
    6015 esac
    6016 fi
    6017 XGETTEXT="$ac_cv_path_XGETTEXT"
    6018 if test "$XGETTEXT" != ":"; then
    6019   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
    6020 echo "${ECHO_T}$XGETTEXT" >&6
    6021 else
    6022   echo "$as_me:$LINENO: result: no" >&5
    6023 echo "${ECHO_T}no" >&6
    6024 fi
    6025 
    6026           cat >conftest.$ac_ext <<_ACEOF
    6027 /* confdefs.h.  */
    6028 _ACEOF
    6029 cat confdefs.h >>conftest.$ac_ext
    6030 cat >>conftest.$ac_ext <<_ACEOF
    6031 /* end confdefs.h.  */
    6032 
    6033 int
    6034 main ()
    6035 {
    6036 extern int _nl_msg_cat_cntr;
    6037                          return _nl_msg_cat_cntr
    6038   ;
    6039   return 0;
    6040 }
    6041 _ACEOF
    6042 rm -f conftest.$ac_objext conftest$ac_exeext
    6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6044   (eval $ac_link) 2>conftest.er1
    6045   ac_status=$?
    6046   grep -v '^ *+' conftest.er1 >conftest.err
    6047   rm -f conftest.er1
    6048   cat conftest.err >&5
    6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6050   (exit $ac_status); } &&
    6051          { ac_try='test -z "$ac_c_werror_flag"
    6052                          || test ! -s conftest.err'
    6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6054   (eval $ac_try) 2>&5
    6055   ac_status=$?
    6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6057   (exit $ac_status); }; } &&
    6058          { ac_try='test -s conftest$ac_exeext'
    6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6060   (eval $ac_try) 2>&5
    6061   ac_status=$?
    6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6063   (exit $ac_status); }; }; then
    6064   CATOBJEXT=.gmo
    6065              DATADIRNAME=share
    6066 else
    6067   echo "$as_me: failed program was:" >&5
    6068 sed 's/^/| /' conftest.$ac_ext >&5
    6069 
    6070 case $host in
    6071             *-*-solaris*)
    6072                                                                 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
    6073 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
    6074 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
    6075   echo $ECHO_N "(cached) $ECHO_C" >&6
    6076 else
    6077   cat >conftest.$ac_ext <<_ACEOF
    6078 /* confdefs.h.  */
    6079 _ACEOF
    6080 cat confdefs.h >>conftest.$ac_ext
    6081 cat >>conftest.$ac_ext <<_ACEOF
    6082 /* end confdefs.h.  */
    6083 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
    6084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6085 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
    6086 
    6087 /* System header to define __stub macros and hopefully few prototypes,
    6088     which can conflict with char bind_textdomain_codeset (); below.
    6089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6090     <limits.h> exists even on freestanding compilers.  */
    6091 
    6092 #ifdef __STDC__
    6093 # include <limits.h>
    6094 #else
    6095 # include <assert.h>
    6096 #endif
    6097 
    6098 #undef bind_textdomain_codeset
    6099 
    6100 /* Override any gcc2 internal prototype to avoid an error.  */
    6101 #ifdef __cplusplus
    6102 extern "C"
    6103 {
    6104 #endif
    6105 /* We use char because int might match the return type of a gcc2
    6106    builtin and then its argument prototype would still apply.  */
    6107 char bind_textdomain_codeset ();
    6108 /* The GNU C library defines this for functions which it implements
    6109     to always fail with ENOSYS.  Some functions are actually named
    6110     something starting with __ and the normal name is an alias.  */
    6111 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
    6112 choke me
    6113 #else
    6114 char (*f) () = bind_textdomain_codeset;
    6115 #endif
    6116 #ifdef __cplusplus
    6117 }
    6118 #endif
    6119 
    6120 int
    6121 main ()
    6122 {
    6123 return f != bind_textdomain_codeset;
    6124   ;
    6125   return 0;
    6126 }
    6127 _ACEOF
    6128 rm -f conftest.$ac_objext conftest$ac_exeext
    6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6130   (eval $ac_link) 2>conftest.er1
    6131   ac_status=$?
    6132   grep -v '^ *+' conftest.er1 >conftest.err
    6133   rm -f conftest.er1
    6134   cat conftest.err >&5
    6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6136   (exit $ac_status); } &&
    6137          { ac_try='test -z "$ac_c_werror_flag"
    6138                          || test ! -s conftest.err'
    6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6140   (eval $ac_try) 2>&5
    6141   ac_status=$?
    6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6143   (exit $ac_status); }; } &&
    6144          { ac_try='test -s conftest$ac_exeext'
    6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6146   (eval $ac_try) 2>&5
    6147   ac_status=$?
    6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6149   (exit $ac_status); }; }; then
    6150   ac_cv_func_bind_textdomain_codeset=yes
    6151 else
    6152   echo "$as_me: failed program was:" >&5
    6153 sed 's/^/| /' conftest.$ac_ext >&5
    6154 
    6155 ac_cv_func_bind_textdomain_codeset=no
    6156 fi
    6157 rm -f conftest.err conftest.$ac_objext \
    6158       conftest$ac_exeext conftest.$ac_ext
    6159 fi
    6160 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
    6161 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
    6162 if test $ac_cv_func_bind_textdomain_codeset = yes; then
    6163   CATOBJEXT=.gmo
    6164                DATADIRNAME=share
    6165 else
    6166   CATOBJEXT=.mo
    6167                DATADIRNAME=lib
    6168 fi
    6169 
    6170             ;;
    6171             *)
    6172             CATOBJEXT=.mo
    6173             DATADIRNAME=lib
    6174             ;;
    6175             esac
    6176 fi
    6177 rm -f conftest.err conftest.$ac_objext \
    6178       conftest$ac_exeext conftest.$ac_ext
    6179           LIBS="$glib_save_LIBS"
    6180           INSTOBJEXT=.mo
    6181         else
    6182           gt_cv_have_gettext=no
    6183         fi
    6184       fi
    6185 
    6186 fi
    6187 
    6188 
    6189 
    6190     if test "$gt_cv_have_gettext" = "yes" ; then
    6191 
    6192 cat >>confdefs.h <<\_ACEOF
    6193 #define ENABLE_NLS 1
    6194 _ACEOF
    6195 
    6196     fi
    6197 
    6198         if test "$XGETTEXT" != ":"; then
    6199                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
    6200         : ;
    6201       else
    6202         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
    6203 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
    6204         XGETTEXT=":"
    6205       fi
    6206     fi
    6207 
    6208     # We need to process the po/ directory.
    6209     POSUB=po
    6210 
    6211               ac_config_commands="$ac_config_commands default-1"
    6212 
    6213 
    6214                 for lang in $ALL_LINGUAS; do
    6215       GMOFILES="$GMOFILES $lang.gmo"
    6216       POFILES="$POFILES $lang.po"
    6217     done
    6218 
    6219 
    6220 
    6221 
    6222 
    6223 
    6224 
    6225 
    6226 
    6227 
    6228 
    6229 
    6230 
    6231    if test "$gt_cv_have_gettext" = "yes"; then
    6232      if test "x$ALL_LINGUAS" = "x"; then
    6233        LINGUAS=
    6234      else
    6235        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
    6236 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
    6237        NEW_LINGUAS=
    6238        for presentlang in $ALL_LINGUAS; do
    6239          useit=no
    6240          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
    6241            desiredlanguages="$LINGUAS"
    6242          else
    6243            desiredlanguages="$ALL_LINGUAS"
    6244          fi
    6245          for desiredlang in $desiredlanguages; do
    6246            # Use the presentlang catalog if desiredlang is
    6247            #   a. equal to presentlang, or
    6248            #   b. a variant of presentlang (because in this case,
    6249            #      presentlang can be used as a fallback for messages
    6250            #      which are not translated in the desiredlang catalog).
    6251            case "$desiredlang" in
    6252              "$presentlang"*) useit=yes;;
    6253            esac
    6254          done
    6255          if test $useit = yes; then
    6256            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
    6257          fi
    6258        done
    6259        LINGUAS=$NEW_LINGUAS
    6260        echo "$as_me:$LINENO: result: $LINGUAS" >&5
    6261 echo "${ECHO_T}$LINGUAS" >&6
    6262      fi
    6263 
    6264           if test -n "$LINGUAS"; then
    6265        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
    6266      fi
    6267    fi
    6268 
    6269             MKINSTALLDIRS=
    6270    if test -n "$ac_aux_dir"; then
    6271      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
    6272    fi
    6273    if test -z "$MKINSTALLDIRS"; then
    6274      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
    6275    fi
    6276 
    6277 
    6278          test -d po || mkdir po
    6279    if test "x$srcdir" != "x."; then
    6280      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
    6281        posrcprefix="$srcdir/"
    6282      else
    6283        posrcprefix="../$srcdir/"
    6284      fi
    6285    else
    6286      posrcprefix="../"
    6287    fi
    6288    rm -f po/POTFILES
    6289    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
    6290         < $srcdir/po/POTFILES.in > po/POTFILES
    6291 
    6292 transmissionlocaledir='${prefix}/${DATADIRNAME}/locale'
    6293 
    6294 
    6295 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
    6296 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
    6297 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
    6298   echo $ECHO_N "(cached) $ECHO_C" >&6
    6299 else
    6300   ac_check_lib_save_LIBS=$LIBS
    6301 LIBS="-lcrypto  $LIBS"
    6302 cat >conftest.$ac_ext <<_ACEOF
    6303 /* confdefs.h.  */
    6304 _ACEOF
    6305 cat confdefs.h >>conftest.$ac_ext
    6306 cat >>conftest.$ac_ext <<_ACEOF
    6307 /* end confdefs.h.  */
    6308 
    6309 /* Override any gcc2 internal prototype to avoid an error.  */
    6310 #ifdef __cplusplus
    6311 extern "C"
    6312 #endif
    6313 /* We use char because int might match the return type of a gcc2
    6314    builtin and then its argument prototype would still apply.  */
    6315 char CRYPTO_new_ex_data ();
    6316 int
    6317 main ()
    6318 {
    6319 CRYPTO_new_ex_data ();
    6320   ;
    6321   return 0;
    6322 }
    6323 _ACEOF
    6324 rm -f conftest.$ac_objext conftest$ac_exeext
    6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6326   (eval $ac_link) 2>conftest.er1
    6327   ac_status=$?
    6328   grep -v '^ *+' conftest.er1 >conftest.err
    6329   rm -f conftest.er1
    6330   cat conftest.err >&5
    6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6332   (exit $ac_status); } &&
    6333          { ac_try='test -z "$ac_c_werror_flag"
    6334                          || test ! -s conftest.err'
    6335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6336   (eval $ac_try) 2>&5
    6337   ac_status=$?
    6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6339   (exit $ac_status); }; } &&
    6340          { ac_try='test -s conftest$ac_exeext'
    6341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6342   (eval $ac_try) 2>&5
    6343   ac_status=$?
    6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6345   (exit $ac_status); }; }; then
    6346   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
    6347 else
    6348   echo "$as_me: failed program was:" >&5
    6349 sed 's/^/| /' conftest.$ac_ext >&5
    6350 
    6351 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
    6352 fi
    6353 rm -f conftest.err conftest.$ac_objext \
    6354       conftest$ac_exeext conftest.$ac_ext
    6355 LIBS=$ac_check_lib_save_LIBS
    6356 fi
    6357 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
    6358 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
    6359 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
    6360   cat >>confdefs.h <<_ACEOF
    6361 #define HAVE_LIBCRYPTO 1
    6362 _ACEOF
    6363 
    6364   LIBS="-lcrypto $LIBS"
    6365 
    6366 fi
    6367 
    6368 
    6369 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
    6370 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
    6371 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
    6372   echo $ECHO_N "(cached) $ECHO_C" >&6
    6373 else
    6374   ac_check_lib_save_LIBS=$LIBS
    6375 LIBS="-lssl  $LIBS"
    6376 cat >conftest.$ac_ext <<_ACEOF
    6377 /* confdefs.h.  */
    6378 _ACEOF
    6379 cat confdefs.h >>conftest.$ac_ext
    6380 cat >>conftest.$ac_ext <<_ACEOF
    6381 /* end confdefs.h.  */
    6382 
    6383 /* Override any gcc2 internal prototype to avoid an error.  */
    6384 #ifdef __cplusplus
    6385 extern "C"
    6386 #endif
    6387 /* We use char because int might match the return type of a gcc2
    6388    builtin and then its argument prototype would still apply.  */
    6389 char SSL_library_init ();
    6390 int
    6391 main ()
    6392 {
    6393 SSL_library_init ();
    6394   ;
    6395   return 0;
    6396 }
    6397 _ACEOF
    6398 rm -f conftest.$ac_objext conftest$ac_exeext
    6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6400   (eval $ac_link) 2>conftest.er1
    6401   ac_status=$?
    6402   grep -v '^ *+' conftest.er1 >conftest.err
    6403   rm -f conftest.er1
    6404   cat conftest.err >&5
    6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6406   (exit $ac_status); } &&
    6407          { ac_try='test -z "$ac_c_werror_flag"
    6408                          || test ! -s conftest.err'
    6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6410   (eval $ac_try) 2>&5
    6411   ac_status=$?
    6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6413   (exit $ac_status); }; } &&
    6414          { ac_try='test -s conftest$ac_exeext'
    6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6416   (eval $ac_try) 2>&5
    6417   ac_status=$?
    6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6419   (exit $ac_status); }; }; then
    6420   ac_cv_lib_ssl_SSL_library_init=yes
    6421 else
    6422   echo "$as_me: failed program was:" >&5
    6423 sed 's/^/| /' conftest.$ac_ext >&5
    6424 
    6425 ac_cv_lib_ssl_SSL_library_init=no
    6426 fi
    6427 rm -f conftest.err conftest.$ac_objext \
    6428       conftest$ac_exeext conftest.$ac_ext
    6429 LIBS=$ac_check_lib_save_LIBS
    6430 fi
    6431 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
    6432 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
    6433 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
    6434   cat >>confdefs.h <<_ACEOF
    6435 #define HAVE_LIBSSL 1
    6436 _ACEOF
    6437 
    6438   LIBS="-lssl $LIBS"
    6439 
    6440 fi
    6441 
    6442 
    6443 
    6444 
    6445 echo "$as_me:$LINENO: checking for event_init in -levent" >&5
    6446 echo $ECHO_N "checking for event_init in -levent... $ECHO_C" >&6
    6447 if test "${ac_cv_lib_event_event_init+set}" = set; then
    6448   echo $ECHO_N "(cached) $ECHO_C" >&6
    6449 else
    6450   ac_check_lib_save_LIBS=$LIBS
    6451 LIBS="-levent  $LIBS"
    6452 cat >conftest.$ac_ext <<_ACEOF
    6453 /* confdefs.h.  */
    6454 _ACEOF
    6455 cat confdefs.h >>conftest.$ac_ext
    6456 cat >>conftest.$ac_ext <<_ACEOF
    6457 /* end confdefs.h.  */
    6458 
    6459 /* Override any gcc2 internal prototype to avoid an error.  */
    6460 #ifdef __cplusplus
    6461 extern "C"
    6462 #endif
    6463 /* We use char because int might match the return type of a gcc2
    6464    builtin and then its argument prototype would still apply.  */
    6465 char event_init ();
    6466 int
    6467 main ()
    6468 {
    6469 event_init ();
    6470   ;
    6471   return 0;
    6472 }
    6473 _ACEOF
    6474 rm -f conftest.$ac_objext conftest$ac_exeext
    6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6476   (eval $ac_link) 2>conftest.er1
    6477   ac_status=$?
    6478   grep -v '^ *+' conftest.er1 >conftest.err
    6479   rm -f conftest.er1
    6480   cat conftest.err >&5
    6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6482   (exit $ac_status); } &&
    6483          { ac_try='test -z "$ac_c_werror_flag"
    6484                          || test ! -s conftest.err'
    6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6486   (eval $ac_try) 2>&5
    6487   ac_status=$?
    6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6489   (exit $ac_status); }; } &&
    6490          { ac_try='test -s conftest$ac_exeext'
    6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6492   (eval $ac_try) 2>&5
    6493   ac_status=$?
    6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6495   (exit $ac_status); }; }; then
    6496   ac_cv_lib_event_event_init=yes
    6497 else
    6498   echo "$as_me: failed program was:" >&5
    6499 sed 's/^/| /' conftest.$ac_ext >&5
    6500 
    6501 ac_cv_lib_event_event_init=no
    6502 fi
    6503 rm -f conftest.err conftest.$ac_objext \
    6504       conftest$ac_exeext conftest.$ac_ext
    6505 LIBS=$ac_check_lib_save_LIBS
    6506 fi
    6507 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_init" >&5
    6508 echo "${ECHO_T}$ac_cv_lib_event_event_init" >&6
    6509 if test $ac_cv_lib_event_event_init = yes; then
    6510   have_libevent=yes
    6511 else
    6512   have_libevent=no
    6513 fi
    6514 
    6515 
    6516 # Check whether --with-libevent or --without-libevent was given.
    6517 if test "${with_libevent+set}" = set; then
    6518   withval="$with_libevent"
    6519   want_libevent=$withval
    6520 else
    6521   want_libevent=$have_libevent
    6522 fi;
    6523 use_libevent=no
    6524 if test "x$want_libevent" = "xyes" ; then
    6525     if test "x$have_libevent" = "xyes"; then
    6526       use_libevent=yes
    6527     else
    6528       { { echo "$as_me:$LINENO: error: \"libevent not found!\"" >&5
    6529 echo "$as_me: error: \"libevent not found!\"" >&2;}
    6530    { (exit 1); exit 1; }; }
    6531     fi
    6532 fi
    6533 
    6534 
    6535 if test "x$use_libevent" = "xyes"; then
    6536   WITH_LIBEVENT_TRUE=
    6537   WITH_LIBEVENT_FALSE='#'
    6538 else
    6539   WITH_LIBEVENT_TRUE='#'
    6540   WITH_LIBEVENT_FALSE=
    6541 fi
    6542 
    6543 
    6544 
    6545 
    6546 
    6547 # Check whether --enable-gtktest or --disable-gtktest was given.
    6548 if test "${enable_gtktest+set}" = set; then
    6549   enableval="$enable_gtktest"
    6550 
    6551 else
    6552   enable_gtktest=yes
    6553 fi;
    6554 
    6555   pkg_config_args=gtk+-2.0
    6556   for module in .
    6557   do
    6558       case "$module" in
    6559          gthread)
    6560              pkg_config_args="$pkg_config_args gthread-2.0"
    6561          ;;
    6562       esac
    6563   done
    6564 
    6565   no_gtk=""
    6566 
    6567   # Extract the first word of "pkg-config", so it can be a program name with args.
    6568 set dummy pkg-config; ac_word=$2
    6569 echo "$as_me:$LINENO: checking for $ac_word" >&5
    6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    6571 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
    6572   echo $ECHO_N "(cached) $ECHO_C" >&6
    6573 else
    6574   case $PKG_CONFIG in
    6575   [\\/]* | ?:[\\/]*)
    6576   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
    6577   ;;
    6578   *)
    6579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    6580 for as_dir in $PATH
    6581 do
    6582   IFS=$as_save_IFS
    6583   test -z "$as_dir" && as_dir=.
    6584   for ac_exec_ext in '' $ac_executable_extensions; do
    6585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    6586     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    6587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    6588     break 2
    6589   fi
    6590 done
    6591 done
    6592 
    6593   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
    6594   ;;
    6595 esac
    6596 fi
    6597 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
    6598 
    6599 if test -n "$PKG_CONFIG"; then
    6600   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
    6601 echo "${ECHO_T}$PKG_CONFIG" >&6
    6602 else
    6603   echo "$as_me:$LINENO: result: no" >&5
    6604 echo "${ECHO_T}no" >&6
    6605 fi
    6606 
    6607 
    6608   if test x$PKG_CONFIG != xno ; then
    6609     if pkg-config --atleast-pkgconfig-version 0.7 ; then
    6610       :
    6611     else
    6612       echo "*** pkg-config too old; version 0.7 or better required."
    6613       no_gtk=yes
    6614       PKG_CONFIG=no
    6615     fi
    6616   else
    6617     no_gtk=yes
    6618   fi
    6619 
    6620   min_gtk_version=$GTK_MINIMUM
    6621   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
    6622 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
    6623 
    6624   if test x$PKG_CONFIG != xno ; then
    6625     ## don't try to run the test against uninstalled libtool libs
    6626     if $PKG_CONFIG --uninstalled $pkg_config_args; then
    6627           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
    6628           enable_gtktest=no
    6629