home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / openh323.tar.gz / openh323.tar / openh323 / configure < prev    next >
Text File  |  2003-08-03  |  141KB  |  4,754 lines

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.57.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization.  ##
  11. ## --------------------- ##
  12.  
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15.   emulate sh
  16.   NULLCMD=:
  17.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18.   # is contrary to our usage.  Disable this feature.
  19.   alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21.   set -o posix
  22. fi
  23.  
  24. # Support unset when possible.
  25. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  26.   as_unset=unset
  27. else
  28.   as_unset=false
  29. fi
  30.  
  31.  
  32. # Work around bugs in pre-3.0 UWIN ksh.
  33. $as_unset ENV MAIL MAILPATH
  34. PS1='$ '
  35. PS2='> '
  36. PS4='+ '
  37.  
  38. # NLS nuisances.
  39. for as_var in \
  40.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  41.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42.   LC_TELEPHONE LC_TIME
  43. do
  44.   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  45.     eval $as_var=C; export $as_var
  46.   else
  47.     $as_unset $as_var
  48.   fi
  49. done
  50.  
  51. # Required to use basename.
  52. if expr a : '\(a\)' >/dev/null 2>&1; then
  53.   as_expr=expr
  54. else
  55.   as_expr=false
  56. fi
  57.  
  58. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  59.   as_basename=basename
  60. else
  61.   as_basename=false
  62. fi
  63.  
  64.  
  65. # Name of the executable.
  66. as_me=`$as_basename "$0" ||
  67. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  68.      X"$0" : 'X\(//\)$' \| \
  69.      X"$0" : 'X\(/\)$' \| \
  70.      .     : '\(.\)' 2>/dev/null ||
  71. echo X/"$0" |
  72.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  73.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  74.         /^X\/\(\/\).*/{ s//\1/; q; }
  75.         s/.*/./; q'`
  76.  
  77.  
  78. # PATH needs CR, and LINENO needs CR and PATH.
  79. # Avoid depending upon Character Ranges.
  80. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  81. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  82. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  83. as_cr_digits='0123456789'
  84. as_cr_alnum=$as_cr_Letters$as_cr_digits
  85.  
  86. # The user is always right.
  87. if test "${PATH_SEPARATOR+set}" != set; then
  88.   echo "#! /bin/sh" >conf$$.sh
  89.   echo  "exit 0"   >>conf$$.sh
  90.   chmod +x conf$$.sh
  91.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  92.     PATH_SEPARATOR=';'
  93.   else
  94.     PATH_SEPARATOR=:
  95.   fi
  96.   rm -f conf$$.sh
  97. fi
  98.  
  99.  
  100.   as_lineno_1=$LINENO
  101.   as_lineno_2=$LINENO
  102.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  103.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  104.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  105.   # Find who we are.  Look in the path if we contain no path at all
  106.   # relative or not.
  107.   case $0 in
  108.     *[\\/]* ) as_myself=$0 ;;
  109.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  110. for as_dir in $PATH
  111. do
  112.   IFS=$as_save_IFS
  113.   test -z "$as_dir" && as_dir=.
  114.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  115. done
  116.  
  117.        ;;
  118.   esac
  119.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  120.   # in which case we are not to be found in the path.
  121.   if test "x$as_myself" = x; then
  122.     as_myself=$0
  123.   fi
  124.   if test ! -f "$as_myself"; then
  125.     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  126.    { (exit 1); exit 1; }; }
  127.   fi
  128.   case $CONFIG_SHELL in
  129.   '')
  130.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  131. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  132. do
  133.   IFS=$as_save_IFS
  134.   test -z "$as_dir" && as_dir=.
  135.   for as_base in sh bash ksh sh5; do
  136.      case $as_dir in
  137.      /*)
  138.        if ("$as_dir/$as_base" -c '
  139.   as_lineno_1=$LINENO
  140.   as_lineno_2=$LINENO
  141.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  143.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  144.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  145.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  146.          CONFIG_SHELL=$as_dir/$as_base
  147.          export CONFIG_SHELL
  148.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  149.        fi;;
  150.      esac
  151.        done
  152. done
  153. ;;
  154.   esac
  155.  
  156.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  157.   # uniformly replaced by the line number.  The first 'sed' inserts a
  158.   # line-number line before each line; the second 'sed' does the real
  159.   # work.  The second script uses 'N' to pair each line-number line
  160.   # with the numbered line, and appends trailing '-' during
  161.   # substitution so that $LINENO is not a special case at line end.
  162.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  163.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  164.   sed '=' <$as_myself |
  165.     sed '
  166.       N
  167.       s,$,-,
  168.       : loop
  169.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  170.       t loop
  171.       s,-$,,
  172.       s,^['$as_cr_digits']*\n,,
  173.     ' >$as_me.lineno &&
  174.   chmod +x $as_me.lineno ||
  175.     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  176.    { (exit 1); exit 1; }; }
  177.  
  178.   # Don't try to exec as it changes $[0], causing all sort of problems
  179.   # (the dirname of $[0] is not the place where we might find the
  180.   # original and so on.  Autoconf is especially sensible to this).
  181.   . ./$as_me.lineno
  182.   # Exit status is that of the last command.
  183.   exit
  184. }
  185.  
  186.  
  187. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  188.   *c*,-n*) ECHO_N= ECHO_C='
  189. ' ECHO_T='    ' ;;
  190.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  191.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  192. esac
  193.  
  194. if expr a : '\(a\)' >/dev/null 2>&1; then
  195.   as_expr=expr
  196. else
  197.   as_expr=false
  198. fi
  199.  
  200. rm -f conf$$ conf$$.exe conf$$.file
  201. echo >conf$$.file
  202. if ln -s conf$$.file conf$$ 2>/dev/null; then
  203.   # We could just check for DJGPP; but this test a) works b) is more generic
  204.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  205.   if test -f conf$$.exe; then
  206.     # Don't use ln at all; we don't have any links
  207.     as_ln_s='cp -p'
  208.   else
  209.     as_ln_s='ln -s'
  210.   fi
  211. elif ln conf$$.file conf$$ 2>/dev/null; then
  212.   as_ln_s=ln
  213. else
  214.   as_ln_s='cp -p'
  215. fi
  216. rm -f conf$$ conf$$.exe conf$$.file
  217.  
  218. if mkdir -p . 2>/dev/null; then
  219.   as_mkdir_p=:
  220. else
  221.   as_mkdir_p=false
  222. fi
  223.  
  224. as_executable_p="test -f"
  225.  
  226. # Sed expression to map a string onto a valid CPP name.
  227. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  228.  
  229. # Sed expression to map a string onto a valid variable name.
  230. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  231.  
  232.  
  233. # IFS
  234. # We need space, tab and new line, in precisely that order.
  235. as_nl='
  236. '
  237. IFS="     $as_nl"
  238.  
  239. # CDPATH.
  240. $as_unset CDPATH
  241.  
  242.  
  243. # Name of the host.
  244. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  245. # so uname gets run too.
  246. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  247.  
  248. exec 6>&1
  249.  
  250. #
  251. # Initializations.
  252. #
  253. ac_default_prefix=/usr/local
  254. ac_config_libobj_dir=.
  255. cross_compiling=no
  256. subdirs=
  257. MFLAGS=
  258. MAKEFLAGS=
  259. SHELL=${CONFIG_SHELL-/bin/sh}
  260.  
  261. # Maximum number of lines to put in a shell here document.
  262. # This variable seems obsolete.  It should probably be removed, and
  263. # only ac_max_sed_lines should be used.
  264. : ${ac_max_here_lines=38}
  265.  
  266. # Identity of this package.
  267. PACKAGE_NAME=
  268. PACKAGE_TARNAME=
  269. PACKAGE_VERSION=
  270. PACKAGE_STRING=
  271. PACKAGE_BUGREPORT=
  272.  
  273. ac_unique_file="include/h323.h"
  274. # Factoring default headers for most tests.
  275. ac_includes_default="\
  276. #include <stdio.h>
  277. #if HAVE_SYS_TYPES_H
  278. # include <sys/types.h>
  279. #endif
  280. #if HAVE_SYS_STAT_H
  281. # include <sys/stat.h>
  282. #endif
  283. #if STDC_HEADERS
  284. # include <stdlib.h>
  285. # include <stddef.h>
  286. #else
  287. # if HAVE_STDLIB_H
  288. #  include <stdlib.h>
  289. # endif
  290. #endif
  291. #if HAVE_STRING_H
  292. # if !STDC_HEADERS && HAVE_MEMORY_H
  293. #  include <memory.h>
  294. # endif
  295. # include <string.h>
  296. #endif
  297. #if HAVE_STRINGS_H
  298. # include <strings.h>
  299. #endif
  300. #if HAVE_INTTYPES_H
  301. # include <inttypes.h>
  302. #else
  303. # if HAVE_STDINT_H
  304. #  include <stdint.h>
  305. # endif
  306. #endif
  307. #if HAVE_UNISTD_H
  308. # include <unistd.h>
  309. #endif"
  310.  
  311. 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT OPENH323DIR INSTALLPREFIX LIBDIR OPENH323_VERSION PTLIB_CONFIG PWLIBDIR CC CFLAGS ac_ct_CC CPP EGREP H323_AVCODEC H323_VICH263 STDCCFLAGS ENDLDLIBS LIBOBJS LTLIBOBJS'
  312. ac_subst_files=''
  313.  
  314. # Initialize some variables set by options.
  315. ac_init_help=
  316. ac_init_version=false
  317. # The variables have the same names as the options, with
  318. # dashes changed to underlines.
  319. cache_file=/dev/null
  320. exec_prefix=NONE
  321. no_create=
  322. no_recursion=
  323. prefix=NONE
  324. program_prefix=NONE
  325. program_suffix=NONE
  326. program_transform_name=s,x,x,
  327. silent=
  328. site=
  329. srcdir=
  330. verbose=
  331. x_includes=NONE
  332. x_libraries=NONE
  333.  
  334. # Installation directory options.
  335. # These are left unexpanded so users can "make install exec_prefix=/foo"
  336. # and all the variables that are supposed to be based on exec_prefix
  337. # by default will actually change.
  338. # Use braces instead of parens because sh, perl, etc. also accept them.
  339. bindir='${exec_prefix}/bin'
  340. sbindir='${exec_prefix}/sbin'
  341. libexecdir='${exec_prefix}/libexec'
  342. datadir='${prefix}/share'
  343. sysconfdir='${prefix}/etc'
  344. sharedstatedir='${prefix}/com'
  345. localstatedir='${prefix}/var'
  346. libdir='${exec_prefix}/lib'
  347. includedir='${prefix}/include'
  348. oldincludedir='/usr/include'
  349. infodir='${prefix}/info'
  350. mandir='${prefix}/man'
  351.  
  352. ac_prev=
  353. for ac_option
  354. do
  355.   # If the previous option needs an argument, assign it.
  356.   if test -n "$ac_prev"; then
  357.     eval "$ac_prev=\$ac_option"
  358.     ac_prev=
  359.     continue
  360.   fi
  361.  
  362.   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  363.  
  364.   # Accept the important Cygnus configure options, so we can diagnose typos.
  365.  
  366.   case $ac_option in
  367.  
  368.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  369.     ac_prev=bindir ;;
  370.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  371.     bindir=$ac_optarg ;;
  372.  
  373.   -build | --build | --buil | --bui | --bu)
  374.     ac_prev=build_alias ;;
  375.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  376.     build_alias=$ac_optarg ;;
  377.  
  378.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  379.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  380.     ac_prev=cache_file ;;
  381.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  382.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  383.     cache_file=$ac_optarg ;;
  384.  
  385.   --config-cache | -C)
  386.     cache_file=config.cache ;;
  387.  
  388.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  389.     ac_prev=datadir ;;
  390.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  391.   | --da=*)
  392.     datadir=$ac_optarg ;;
  393.  
  394.   -disable-* | --disable-*)
  395.     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  396.     # Reject names that are not valid shell variable names.
  397.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  398.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  399.    { (exit 1); exit 1; }; }
  400.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  401.     eval "enable_$ac_feature=no" ;;
  402.  
  403.   -enable-* | --enable-*)
  404.     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  405.     # Reject names that are not valid shell variable names.
  406.     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  407.       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  408.    { (exit 1); exit 1; }; }
  409.     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  410.     case $ac_option in
  411.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  412.       *) ac_optarg=yes ;;
  413.     esac
  414.     eval "enable_$ac_feature='$ac_optarg'" ;;
  415.  
  416.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  417.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  418.   | --exec | --exe | --ex)
  419.     ac_prev=exec_prefix ;;
  420.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  421.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  422.   | --exec=* | --exe=* | --ex=*)
  423.     exec_prefix=$ac_optarg ;;
  424.  
  425.   -gas | --gas | --ga | --g)
  426.     # Obsolete; use --with-gas.
  427.     with_gas=yes ;;
  428.  
  429.   -help | --help | --hel | --he | -h)
  430.     ac_init_help=long ;;
  431.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  432.     ac_init_help=recursive ;;
  433.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  434.     ac_init_help=short ;;
  435.  
  436.   -host | --host | --hos | --ho)
  437.     ac_prev=host_alias ;;
  438.   -host=* | --host=* | --hos=* | --ho=*)
  439.     host_alias=$ac_optarg ;;
  440.  
  441.   -includedir | --includedir | --includedi | --included | --include \
  442.   | --includ | --inclu | --incl | --inc)
  443.     ac_prev=includedir ;;
  444.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  445.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  446.     includedir=$ac_optarg ;;
  447.  
  448.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  449.     ac_prev=infodir ;;
  450.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  451.     infodir=$ac_optarg ;;
  452.  
  453.   -libdir | --libdir | --libdi | --libd)
  454.     ac_prev=libdir ;;
  455.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  456.     libdir=$ac_optarg ;;
  457.  
  458.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  459.   | --libexe | --libex | --libe)
  460.     ac_prev=libexecdir ;;
  461.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  462.   | --libexe=* | --libex=* | --libe=*)
  463.     libexecdir=$ac_optarg ;;
  464.  
  465.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  466.   | --localstate | --localstat | --localsta | --localst \
  467.   | --locals | --local | --loca | --loc | --lo)
  468.     ac_prev=localstatedir ;;
  469.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  470.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  471.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  472.     localstatedir=$ac_optarg ;;
  473.  
  474.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  475.     ac_prev=mandir ;;
  476.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  477.     mandir=$ac_optarg ;;
  478.  
  479.   -nfp | --nfp | --nf)
  480.     # Obsolete; use --without-fp.
  481.     with_fp=no ;;
  482.  
  483.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  484.   | --no-cr | --no-c | -n)
  485.     no_create=yes ;;
  486.  
  487.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  488.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  489.     no_recursion=yes ;;
  490.  
  491.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  492.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  493.   | --oldin | --oldi | --old | --ol | --o)
  494.     ac_prev=oldincludedir ;;
  495.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  496.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  497.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  498.     oldincludedir=$ac_optarg ;;
  499.  
  500.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  501.     ac_prev=prefix ;;
  502.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  503.     prefix=$ac_optarg ;;
  504.  
  505.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  506.   | --program-pre | --program-pr | --program-p)
  507.     ac_prev=program_prefix ;;
  508.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  509.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  510.     program_prefix=$ac_optarg ;;
  511.  
  512.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  513.   | --program-suf | --program-su | --program-s)
  514.     ac_prev=program_suffix ;;
  515.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  516.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  517.     program_suffix=$ac_optarg ;;
  518.  
  519.   -program-transform-name | --program-transform-name \
  520.   | --program-transform-nam | --program-transform-na \
  521.   | --program-transform-n | --program-transform- \
  522.   | --program-transform | --program-transfor \
  523.   | --program-transfo | --program-transf \
  524.   | --program-trans | --program-tran \
  525.   | --progr-tra | --program-tr | --program-t)
  526.     ac_prev=program_transform_name ;;
  527.   -program-transform-name=* | --program-transform-name=* \
  528.   | --program-transform-nam=* | --program-transform-na=* \
  529.   | --program-transform-n=* | --program-transform-=* \
  530.   | --program-transform=* | --program-transfor=* \
  531.   | --program-transfo=* | --program-transf=* \
  532.   | --program-trans=* | --program-tran=* \
  533.   | --progr-tra=* | --program-tr=* | --program-t=*)
  534.     program_transform_name=$ac_optarg ;;
  535.  
  536.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  537.   | -silent | --silent | --silen | --sile | --sil)
  538.     silent=yes ;;
  539.  
  540.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  541.     ac_prev=sbindir ;;
  542.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  543.   | --sbi=* | --sb=*)
  544.     sbindir=$ac_optarg ;;
  545.  
  546.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  547.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  548.   | --sharedst | --shareds | --shared | --share | --shar \
  549.   | --sha | --sh)
  550.     ac_prev=sharedstatedir ;;
  551.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  552.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  553.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  554.   | --sha=* | --sh=*)
  555.     sharedstatedir=$ac_optarg ;;
  556.  
  557.   -site | --site | --sit)
  558.     ac_prev=site ;;
  559.   -site=* | --site=* | --sit=*)
  560.     site=$ac_optarg ;;
  561.  
  562.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  563.     ac_prev=srcdir ;;
  564.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  565.     srcdir=$ac_optarg ;;
  566.  
  567.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  568.   | --syscon | --sysco | --sysc | --sys | --sy)
  569.     ac_prev=sysconfdir ;;
  570.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  571.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  572.     sysconfdir=$ac_optarg ;;
  573.  
  574.   -target | --target | --targe | --targ | --tar | --ta | --t)
  575.     ac_prev=target_alias ;;
  576.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  577.     target_alias=$ac_optarg ;;
  578.  
  579.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  580.     verbose=yes ;;
  581.  
  582.   -version | --version | --versio | --versi | --vers | -V)
  583.     ac_init_version=: ;;
  584.  
  585.   -with-* | --with-*)
  586.     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  587.     # Reject names that are not valid shell variable names.
  588.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  589.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  590.    { (exit 1); exit 1; }; }
  591.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  592.     case $ac_option in
  593.       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  594.       *) ac_optarg=yes ;;
  595.     esac
  596.     eval "with_$ac_package='$ac_optarg'" ;;
  597.  
  598.   -without-* | --without-*)
  599.     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  600.     # Reject names that are not valid shell variable names.
  601.     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  602.       { echo "$as_me: error: invalid package name: $ac_package" >&2
  603.    { (exit 1); exit 1; }; }
  604.     ac_package=`echo $ac_package | sed 's/-/_/g'`
  605.     eval "with_$ac_package=no" ;;
  606.  
  607.   --x)
  608.     # Obsolete; use --with-x.
  609.     with_x=yes ;;
  610.  
  611.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  612.   | --x-incl | --x-inc | --x-in | --x-i)
  613.     ac_prev=x_includes ;;
  614.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  615.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  616.     x_includes=$ac_optarg ;;
  617.  
  618.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  619.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  620.     ac_prev=x_libraries ;;
  621.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  622.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  623.     x_libraries=$ac_optarg ;;
  624.  
  625.   -*) { echo "$as_me: error: unrecognized option: $ac_option
  626. Try \`$0 --help' for more information." >&2
  627.    { (exit 1); exit 1; }; }
  628.     ;;
  629.  
  630.   *=*)
  631.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  632.     # Reject names that are not valid shell variable names.
  633.     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  634.       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  635.    { (exit 1); exit 1; }; }
  636.     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  637.     eval "$ac_envvar='$ac_optarg'"
  638.     export $ac_envvar ;;
  639.  
  640.   *)
  641.     # FIXME: should be removed in autoconf 3.0.
  642.     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  643.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  644.       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  645.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  646.     ;;
  647.  
  648.   esac
  649. done
  650.  
  651. if test -n "$ac_prev"; then
  652.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  653.   { echo "$as_me: error: missing argument to $ac_option" >&2
  654.    { (exit 1); exit 1; }; }
  655. fi
  656.  
  657. # Be sure to have absolute paths.
  658. for ac_var in exec_prefix prefix
  659. do
  660.   eval ac_val=$`echo $ac_var`
  661.   case $ac_val in
  662.     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  663.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  664.    { (exit 1); exit 1; }; };;
  665.   esac
  666. done
  667.  
  668. # Be sure to have absolute paths.
  669. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  670.               localstatedir libdir includedir oldincludedir infodir mandir
  671. do
  672.   eval ac_val=$`echo $ac_var`
  673.   case $ac_val in
  674.     [\\/$]* | ?:[\\/]* ) ;;
  675.     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  676.    { (exit 1); exit 1; }; };;
  677.   esac
  678. done
  679.  
  680. # There might be people who depend on the old broken behavior: `$host'
  681. # used to hold the argument of --host etc.
  682. # FIXME: To remove some day.
  683. build=$build_alias
  684. host=$host_alias
  685. target=$target_alias
  686.  
  687. # FIXME: To remove some day.
  688. if test "x$host_alias" != x; then
  689.   if test "x$build_alias" = x; then
  690.     cross_compiling=maybe
  691.     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  692.     If a cross compiler is detected then cross compile mode will be used." >&2
  693.   elif test "x$build_alias" != "x$host_alias"; then
  694.     cross_compiling=yes
  695.   fi
  696. fi
  697.  
  698. ac_tool_prefix=
  699. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  700.  
  701. test "$silent" = yes && exec 6>/dev/null
  702.  
  703.  
  704. # Find the source files, if location was not specified.
  705. if test -z "$srcdir"; then
  706.   ac_srcdir_defaulted=yes
  707.   # Try the directory containing this script, then its parent.
  708.   ac_confdir=`(dirname "$0") 2>/dev/null ||
  709. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  710.          X"$0" : 'X\(//\)[^/]' \| \
  711.          X"$0" : 'X\(//\)$' \| \
  712.          X"$0" : 'X\(/\)' \| \
  713.          .     : '\(.\)' 2>/dev/null ||
  714. echo X"$0" |
  715.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  716.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  717.         /^X\(\/\/\)$/{ s//\1/; q; }
  718.         /^X\(\/\).*/{ s//\1/; q; }
  719.         s/.*/./; q'`
  720.   srcdir=$ac_confdir
  721.   if test ! -r $srcdir/$ac_unique_file; then
  722.     srcdir=..
  723.   fi
  724. else
  725.   ac_srcdir_defaulted=no
  726. fi
  727. if test ! -r $srcdir/$ac_unique_file; then
  728.   if test "$ac_srcdir_defaulted" = yes; then
  729.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  730.    { (exit 1); exit 1; }; }
  731.   else
  732.     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  733.    { (exit 1); exit 1; }; }
  734.   fi
  735. fi
  736. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  737.   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  738.    { (exit 1); exit 1; }; }
  739. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  740. ac_env_build_alias_set=${build_alias+set}
  741. ac_env_build_alias_value=$build_alias
  742. ac_cv_env_build_alias_set=${build_alias+set}
  743. ac_cv_env_build_alias_value=$build_alias
  744. ac_env_host_alias_set=${host_alias+set}
  745. ac_env_host_alias_value=$host_alias
  746. ac_cv_env_host_alias_set=${host_alias+set}
  747. ac_cv_env_host_alias_value=$host_alias
  748. ac_env_target_alias_set=${target_alias+set}
  749. ac_env_target_alias_value=$target_alias
  750. ac_cv_env_target_alias_set=${target_alias+set}
  751. ac_cv_env_target_alias_value=$target_alias
  752. ac_env_CXX_set=${CXX+set}
  753. ac_env_CXX_value=$CXX
  754. ac_cv_env_CXX_set=${CXX+set}
  755. ac_cv_env_CXX_value=$CXX
  756. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  757. ac_env_CXXFLAGS_value=$CXXFLAGS
  758. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  759. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  760. ac_env_LDFLAGS_set=${LDFLAGS+set}
  761. ac_env_LDFLAGS_value=$LDFLAGS
  762. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  763. ac_cv_env_LDFLAGS_value=$LDFLAGS
  764. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  765. ac_env_CPPFLAGS_value=$CPPFLAGS
  766. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  767. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  768. ac_env_CC_set=${CC+set}
  769. ac_env_CC_value=$CC
  770. ac_cv_env_CC_set=${CC+set}
  771. ac_cv_env_CC_value=$CC
  772. ac_env_CFLAGS_set=${CFLAGS+set}
  773. ac_env_CFLAGS_value=$CFLAGS
  774. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  775. ac_cv_env_CFLAGS_value=$CFLAGS
  776. ac_env_CPP_set=${CPP+set}
  777. ac_env_CPP_value=$CPP
  778. ac_cv_env_CPP_set=${CPP+set}
  779. ac_cv_env_CPP_value=$CPP
  780.  
  781. #
  782. # Report the --help message.
  783. #
  784. if test "$ac_init_help" = "long"; then
  785.   # Omit some internal or obsolete options to make the list less imposing.
  786.   # This message is too long to be a string in the A/UX 3.1 sh.
  787.   cat <<_ACEOF
  788. \`configure' configures this package to adapt to many kinds of systems.
  789.  
  790. Usage: $0 [OPTION]... [VAR=VALUE]...
  791.  
  792. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  793. VAR=VALUE.  See below for descriptions of some of the useful variables.
  794.  
  795. Defaults for the options are specified in brackets.
  796.  
  797. Configuration:
  798.   -h, --help              display this help and exit
  799.       --help=short        display options specific to this package
  800.       --help=recursive    display the short help of all the included packages
  801.   -V, --version           display version information and exit
  802.   -q, --quiet, --silent   do not print \`checking...' messages
  803.       --cache-file=FILE   cache test results in FILE [disabled]
  804.   -C, --config-cache      alias for \`--cache-file=config.cache'
  805.   -n, --no-create         do not create output files
  806.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  807.  
  808. _ACEOF
  809.  
  810.   cat <<_ACEOF
  811. Installation directories:
  812.   --prefix=PREFIX         install architecture-independent files in PREFIX
  813.                           [$ac_default_prefix]
  814.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  815.                           [PREFIX]
  816.  
  817. By default, \`make install' will install all the files in
  818. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  819. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  820. for instance \`--prefix=\$HOME'.
  821.  
  822. For better control, use the options below.
  823.  
  824. Fine tuning of the installation directories:
  825.   --bindir=DIR           user executables [EPREFIX/bin]
  826.   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  827.   --libexecdir=DIR       program executables [EPREFIX/libexec]
  828.   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  829.   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  830.   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  831.   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  832.   --libdir=DIR           object code libraries [EPREFIX/lib]
  833.   --includedir=DIR       C header files [PREFIX/include]
  834.   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  835.   --infodir=DIR          info documentation [PREFIX/info]
  836.   --mandir=DIR           man documentation [PREFIX/man]
  837. _ACEOF
  838.  
  839.   cat <<\_ACEOF
  840. _ACEOF
  841. fi
  842.  
  843. if test -n "$ac_init_help"; then
  844.  
  845.   cat <<\_ACEOF
  846.  
  847. Some influential environment variables:
  848.   CXX         C++ compiler command
  849.   CXXFLAGS    C++ compiler flags
  850.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  851.               nonstandard directory <lib dir>
  852.   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
  853.               headers in a nonstandard directory <include dir>
  854.   CC          C compiler command
  855.   CFLAGS      C compiler flags
  856.   CPP         C preprocessor
  857.  
  858. Use these variables to override the choices made by `configure' or to help
  859. it to find libraries and programs with nonstandard names/locations.
  860.  
  861. _ACEOF
  862. fi
  863.  
  864. if test "$ac_init_help" = "recursive"; then
  865.   # If there are subdirs, report their specific --help.
  866.   ac_popdir=`pwd`
  867.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  868.     test -d $ac_dir || continue
  869.     ac_builddir=.
  870.  
  871. if test "$ac_dir" != .; then
  872.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  873.   # A "../" for each directory in $ac_dir_suffix.
  874.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  875. else
  876.   ac_dir_suffix= ac_top_builddir=
  877. fi
  878.  
  879. case $srcdir in
  880.   .)  # No --srcdir option.  We are building in place.
  881.     ac_srcdir=.
  882.     if test -z "$ac_top_builddir"; then
  883.        ac_top_srcdir=.
  884.     else
  885.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  886.     fi ;;
  887.   [\\/]* | ?:[\\/]* )  # Absolute path.
  888.     ac_srcdir=$srcdir$ac_dir_suffix;
  889.     ac_top_srcdir=$srcdir ;;
  890.   *) # Relative path.
  891.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  892.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  893. esac
  894. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  895. # absolute.
  896. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  897. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  898. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  899. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  900.  
  901.     cd $ac_dir
  902.     # Check for guested configure; otherwise get Cygnus style configure.
  903.     if test -f $ac_srcdir/configure.gnu; then
  904.       echo
  905.       $SHELL $ac_srcdir/configure.gnu  --help=recursive
  906.     elif test -f $ac_srcdir/configure; then
  907.       echo
  908.       $SHELL $ac_srcdir/configure  --help=recursive
  909.     elif test -f $ac_srcdir/configure.ac ||
  910.            test -f $ac_srcdir/configure.in; then
  911.       echo
  912.       $ac_configure --help
  913.     else
  914.       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  915.     fi
  916.     cd $ac_popdir
  917.   done
  918. fi
  919.  
  920. test -n "$ac_init_help" && exit 0
  921. if $ac_init_version; then
  922.   cat <<\_ACEOF
  923.  
  924. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  925. Free Software Foundation, Inc.
  926. This configure script is free software; the Free Software Foundation
  927. gives unlimited permission to copy, distribute and modify it.
  928. _ACEOF
  929.   exit 0
  930. fi
  931. exec 5>config.log
  932. cat >&5 <<_ACEOF
  933. This file contains any messages produced by compilers while
  934. running configure, to aid debugging if configure makes a mistake.
  935.  
  936. It was created by $as_me, which was
  937. generated by GNU Autoconf 2.57.  Invocation command line was
  938.  
  939.   $ $0 $@
  940.  
  941. _ACEOF
  942. {
  943. cat <<_ASUNAME
  944. ## --------- ##
  945. ## Platform. ##
  946. ## --------- ##
  947.  
  948. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  949. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  950. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  951. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  952. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  953.  
  954. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  955. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  956.  
  957. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  958. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  959. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  960. hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
  961. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  962. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  963. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  964.  
  965. _ASUNAME
  966.  
  967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  968. for as_dir in $PATH
  969. do
  970.   IFS=$as_save_IFS
  971.   test -z "$as_dir" && as_dir=.
  972.   echo "PATH: $as_dir"
  973. done
  974.  
  975. } >&5
  976.  
  977. cat >&5 <<_ACEOF
  978.  
  979.  
  980. ## ----------- ##
  981. ## Core tests. ##
  982. ## ----------- ##
  983.  
  984. _ACEOF
  985.  
  986.  
  987. # Keep a trace of the command line.
  988. # Strip out --no-create and --no-recursion so they do not pile up.
  989. # Strip out --silent because we don't want to record it for future runs.
  990. # Also quote any args containing shell meta-characters.
  991. # Make two passes to allow for proper duplicate-argument suppression.
  992. ac_configure_args=
  993. ac_configure_args0=
  994. ac_configure_args1=
  995. ac_sep=
  996. ac_must_keep_next=false
  997. for ac_pass in 1 2
  998. do
  999.   for ac_arg
  1000.   do
  1001.     case $ac_arg in
  1002.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1003.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1004.     | -silent | --silent | --silen | --sile | --sil)
  1005.       continue ;;
  1006.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1007.       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1008.     esac
  1009.     case $ac_pass in
  1010.     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1011.     2)
  1012.       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1013.       if test $ac_must_keep_next = true; then
  1014.         ac_must_keep_next=false # Got value, back to normal.
  1015.       else
  1016.         case $ac_arg in
  1017.           *=* | --config-cache | -C | -disable-* | --disable-* \
  1018.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1019.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1020.           | -with-* | --with-* | -without-* | --without-* | --x)
  1021.             case "$ac_configure_args0 " in
  1022.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1023.             esac
  1024.             ;;
  1025.           -* ) ac_must_keep_next=true ;;
  1026.         esac
  1027.       fi
  1028.       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1029.       # Get rid of the leading space.
  1030.       ac_sep=" "
  1031.       ;;
  1032.     esac
  1033.   done
  1034. done
  1035. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1036. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1037.  
  1038. # When interrupted or exit'd, cleanup temporary files, and complete
  1039. # config.log.  We remove comments because anyway the quotes in there
  1040. # would cause problems or look ugly.
  1041. # WARNING: Be sure not to use single quotes in there, as some shells,
  1042. # such as our DU 5.0 friend, will then `close' the trap.
  1043. trap 'exit_status=$?
  1044.   # Save into config.log some information that might help in debugging.
  1045.   {
  1046.     echo
  1047.  
  1048.     cat <<\_ASBOX
  1049. ## ---------------- ##
  1050. ## Cache variables. ##
  1051. ## ---------------- ##
  1052. _ASBOX
  1053.     echo
  1054.     # The following way of writing the cache mishandles newlines in values,
  1055. {
  1056.   (set) 2>&1 |
  1057.     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1058.     *ac_space=\ *)
  1059.       sed -n \
  1060.         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1061.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1062.       ;;
  1063.     *)
  1064.       sed -n \
  1065.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1066.       ;;
  1067.     esac;
  1068. }
  1069.     echo
  1070.  
  1071.     cat <<\_ASBOX
  1072. ## ----------------- ##
  1073. ## Output variables. ##
  1074. ## ----------------- ##
  1075. _ASBOX
  1076.     echo
  1077.     for ac_var in $ac_subst_vars
  1078.     do
  1079.       eval ac_val=$`echo $ac_var`
  1080.       echo "$ac_var='"'"'$ac_val'"'"'"
  1081.     done | sort
  1082.     echo
  1083.  
  1084.     if test -n "$ac_subst_files"; then
  1085.       cat <<\_ASBOX
  1086. ## ------------- ##
  1087. ## Output files. ##
  1088. ## ------------- ##
  1089. _ASBOX
  1090.       echo
  1091.       for ac_var in $ac_subst_files
  1092.       do
  1093.     eval ac_val=$`echo $ac_var`
  1094.         echo "$ac_var='"'"'$ac_val'"'"'"
  1095.       done | sort
  1096.       echo
  1097.     fi
  1098.  
  1099.     if test -s confdefs.h; then
  1100.       cat <<\_ASBOX
  1101. ## ----------- ##
  1102. ## confdefs.h. ##
  1103. ## ----------- ##
  1104. _ASBOX
  1105.       echo
  1106.       sed "/^$/d" confdefs.h | sort
  1107.       echo
  1108.     fi
  1109.     test "$ac_signal" != 0 &&
  1110.       echo "$as_me: caught signal $ac_signal"
  1111.     echo "$as_me: exit $exit_status"
  1112.   } >&5
  1113.   rm -f core core.* *.core &&
  1114.   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1115.     exit $exit_status
  1116.      ' 0
  1117. for ac_signal in 1 2 13 15; do
  1118.   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1119. done
  1120. ac_signal=0
  1121.  
  1122. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1123. rm -rf conftest* confdefs.h
  1124. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1125. echo >confdefs.h
  1126.  
  1127. # Predefined preprocessor variables.
  1128.  
  1129. cat >>confdefs.h <<_ACEOF
  1130. #define PACKAGE_NAME "$PACKAGE_NAME"
  1131. _ACEOF
  1132.  
  1133.  
  1134. cat >>confdefs.h <<_ACEOF
  1135. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1136. _ACEOF
  1137.  
  1138.  
  1139. cat >>confdefs.h <<_ACEOF
  1140. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1141. _ACEOF
  1142.  
  1143.  
  1144. cat >>confdefs.h <<_ACEOF
  1145. #define PACKAGE_STRING "$PACKAGE_STRING"
  1146. _ACEOF
  1147.  
  1148.  
  1149. cat >>confdefs.h <<_ACEOF
  1150. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1151. _ACEOF
  1152.  
  1153.  
  1154. # Let the site file select an alternate cache file if it wants to.
  1155. # Prefer explicitly selected file to automatically selected ones.
  1156. if test -z "$CONFIG_SITE"; then
  1157.   if test "x$prefix" != xNONE; then
  1158.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1159.   else
  1160.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1161.   fi
  1162. fi
  1163. for ac_site_file in $CONFIG_SITE; do
  1164.   if test -r "$ac_site_file"; then
  1165.     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1166. echo "$as_me: loading site script $ac_site_file" >&6;}
  1167.     sed 's/^/| /' "$ac_site_file" >&5
  1168.     . "$ac_site_file"
  1169.   fi
  1170. done
  1171.  
  1172. if test -r "$cache_file"; then
  1173.   # Some versions of bash will fail to source /dev/null (special
  1174.   # files actually), so we avoid doing that.
  1175.   if test -f "$cache_file"; then
  1176.     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1177. echo "$as_me: loading cache $cache_file" >&6;}
  1178.     case $cache_file in
  1179.       [\\/]* | ?:[\\/]* ) . $cache_file;;
  1180.       *)                      . ./$cache_file;;
  1181.     esac
  1182.   fi
  1183. else
  1184.   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1185. echo "$as_me: creating cache $cache_file" >&6;}
  1186.   >$cache_file
  1187. fi
  1188.  
  1189. # Check that the precious variables saved in the cache have kept the same
  1190. # value.
  1191. ac_cache_corrupted=false
  1192. for ac_var in `(set) 2>&1 |
  1193.                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1194.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1195.   eval ac_new_set=\$ac_env_${ac_var}_set
  1196.   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1197.   eval ac_new_val="\$ac_env_${ac_var}_value"
  1198.   case $ac_old_set,$ac_new_set in
  1199.     set,)
  1200.       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1201. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1202.       ac_cache_corrupted=: ;;
  1203.     ,set)
  1204.       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1205. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1206.       ac_cache_corrupted=: ;;
  1207.     ,);;
  1208.     *)
  1209.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1210.         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1211. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1212.         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  1213. echo "$as_me:   former value:  $ac_old_val" >&2;}
  1214.         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  1215. echo "$as_me:   current value: $ac_new_val" >&2;}
  1216.         ac_cache_corrupted=:
  1217.       fi;;
  1218.   esac
  1219.   # Pass precious variables to config.status.
  1220.   if test "$ac_new_set" = set; then
  1221.     case $ac_new_val in
  1222.     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1223.       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1224.     *) ac_arg=$ac_var=$ac_new_val ;;
  1225.     esac
  1226.     case " $ac_configure_args " in
  1227.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  1228.       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1229.     esac
  1230.   fi
  1231. done
  1232. if $ac_cache_corrupted; then
  1233.   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1234. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1235.   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1236. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1237.    { (exit 1); exit 1; }; }
  1238. fi
  1239.  
  1240. ac_ext=c
  1241. ac_cpp='$CPP $CPPFLAGS'
  1242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265. ac_ext=cc
  1266. ac_cpp='$CXXCPP $CPPFLAGS'
  1267. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1268. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1269. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1270. if test -n "$ac_tool_prefix"; then
  1271.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1272.   do
  1273.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_CXX+set}" = set; then
  1278.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280.   if test -n "$CXX"; then
  1281.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286.   IFS=$as_save_IFS
  1287.   test -z "$as_dir" && as_dir=.
  1288.   for ac_exec_ext in '' $ac_executable_extensions; do
  1289.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1291.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292.     break 2
  1293.   fi
  1294. done
  1295. done
  1296.  
  1297. fi
  1298. fi
  1299. CXX=$ac_cv_prog_CXX
  1300. if test -n "$CXX"; then
  1301.   echo "$as_me:$LINENO: result: $CXX" >&5
  1302. echo "${ECHO_T}$CXX" >&6
  1303. else
  1304.   echo "$as_me:$LINENO: result: no" >&5
  1305. echo "${ECHO_T}no" >&6
  1306. fi
  1307.  
  1308.     test -n "$CXX" && break
  1309.   done
  1310. fi
  1311. if test -z "$CXX"; then
  1312.   ac_ct_CXX=$CXX
  1313.   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1314. do
  1315.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  1316. set dummy $ac_prog; ac_word=$2
  1317. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1318. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1319. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1320.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1321. else
  1322.   if test -n "$ac_ct_CXX"; then
  1323.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1324. else
  1325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1326. for as_dir in $PATH
  1327. do
  1328.   IFS=$as_save_IFS
  1329.   test -z "$as_dir" && as_dir=.
  1330.   for ac_exec_ext in '' $ac_executable_extensions; do
  1331.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1332.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  1333.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1334.     break 2
  1335.   fi
  1336. done
  1337. done
  1338.  
  1339. fi
  1340. fi
  1341. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1342. if test -n "$ac_ct_CXX"; then
  1343.   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1344. echo "${ECHO_T}$ac_ct_CXX" >&6
  1345. else
  1346.   echo "$as_me:$LINENO: result: no" >&5
  1347. echo "${ECHO_T}no" >&6
  1348. fi
  1349.  
  1350.   test -n "$ac_ct_CXX" && break
  1351. done
  1352. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1353.  
  1354.   CXX=$ac_ct_CXX
  1355. fi
  1356.  
  1357.  
  1358. # Provide some information about the compiler.
  1359. echo "$as_me:$LINENO:" \
  1360.      "checking for C++ compiler version" >&5
  1361. ac_compiler=`set X $ac_compile; echo $2`
  1362. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1363.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  1364.   ac_status=$?
  1365.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1366.   (exit $ac_status); }
  1367. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1368.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  1369.   ac_status=$?
  1370.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1371.   (exit $ac_status); }
  1372. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1373.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  1374.   ac_status=$?
  1375.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1376.   (exit $ac_status); }
  1377.  
  1378. cat >conftest.$ac_ext <<_ACEOF
  1379. #line $LINENO "configure"
  1380. /* confdefs.h.  */
  1381. _ACEOF
  1382. cat confdefs.h >>conftest.$ac_ext
  1383. cat >>conftest.$ac_ext <<_ACEOF
  1384. /* end confdefs.h.  */
  1385.  
  1386. int
  1387. main ()
  1388. {
  1389.  
  1390.   ;
  1391.   return 0;
  1392. }
  1393. _ACEOF
  1394. ac_clean_files_save=$ac_clean_files
  1395. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1396. # Try to create an executable without -o first, disregard a.out.
  1397. # It will help us diagnose broken compilers, and finding out an intuition
  1398. # of exeext.
  1399. echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
  1400. echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
  1401. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1402. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1403.   (eval $ac_link_default) 2>&5
  1404.   ac_status=$?
  1405.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1406.   (exit $ac_status); }; then
  1407.   # Find the output, starting from the most likely.  This scheme is
  1408. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1409. # resort.
  1410.  
  1411. # Be careful to initialize this variable, since it used to be cached.
  1412. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1413. ac_cv_exeext=
  1414. # b.out is created by i960 compilers.
  1415. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1416. do
  1417.   test -f "$ac_file" || continue
  1418.   case $ac_file in
  1419.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1420.         ;;
  1421.     conftest.$ac_ext )
  1422.         # This is the source file.
  1423.         ;;
  1424.     [ab].out )
  1425.         # We found the default executable, but exeext='' is most
  1426.         # certainly right.
  1427.         break;;
  1428.     *.* )
  1429.         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1430.         # FIXME: I believe we export ac_cv_exeext for Libtool,
  1431.         # but it would be cool to find out if it's true.  Does anybody
  1432.         # maintain Libtool? --akim.
  1433.         export ac_cv_exeext
  1434.         break;;
  1435.     * )
  1436.         break;;
  1437.   esac
  1438. done
  1439. else
  1440.   echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442.  
  1443. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1444. See \`config.log' for more details." >&5
  1445. echo "$as_me: error: C++ compiler cannot create executables
  1446. See \`config.log' for more details." >&2;}
  1447.    { (exit 77); exit 77; }; }
  1448. fi
  1449.  
  1450. ac_exeext=$ac_cv_exeext
  1451. echo "$as_me:$LINENO: result: $ac_file" >&5
  1452. echo "${ECHO_T}$ac_file" >&6
  1453.  
  1454. # Check the compiler produces executables we can run.  If not, either
  1455. # the compiler is broken, or we cross compile.
  1456. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1457. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1458. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1459. # If not cross compiling, check that we can run a simple program.
  1460. if test "$cross_compiling" != yes; then
  1461.   if { ac_try='./$ac_file'
  1462.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1463.   (eval $ac_try) 2>&5
  1464.   ac_status=$?
  1465.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1466.   (exit $ac_status); }; }; then
  1467.     cross_compiling=no
  1468.   else
  1469.     if test "$cross_compiling" = maybe; then
  1470.     cross_compiling=yes
  1471.     else
  1472.     { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1473. If you meant to cross compile, use \`--host'.
  1474. See \`config.log' for more details." >&5
  1475. echo "$as_me: error: cannot run C++ compiled programs.
  1476. If you meant to cross compile, use \`--host'.
  1477. See \`config.log' for more details." >&2;}
  1478.    { (exit 1); exit 1; }; }
  1479.     fi
  1480.   fi
  1481. fi
  1482. echo "$as_me:$LINENO: result: yes" >&5
  1483. echo "${ECHO_T}yes" >&6
  1484.  
  1485. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1486. ac_clean_files=$ac_clean_files_save
  1487. # Check the compiler produces executables we can run.  If not, either
  1488. # the compiler is broken, or we cross compile.
  1489. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1490. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1491. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1492. echo "${ECHO_T}$cross_compiling" >&6
  1493.  
  1494. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1495. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1496. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1497.   (eval $ac_link) 2>&5
  1498.   ac_status=$?
  1499.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1500.   (exit $ac_status); }; then
  1501.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1502. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  1503. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1504. # `rm'.
  1505. for ac_file in conftest.exe conftest conftest.*; do
  1506.   test -f "$ac_file" || continue
  1507.   case $ac_file in
  1508.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1509.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1510.           export ac_cv_exeext
  1511.           break;;
  1512.     * ) break;;
  1513.   esac
  1514. done
  1515. else
  1516.   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1517. See \`config.log' for more details." >&5
  1518. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1519. See \`config.log' for more details." >&2;}
  1520.    { (exit 1); exit 1; }; }
  1521. fi
  1522.  
  1523. rm -f conftest$ac_cv_exeext
  1524. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1525. echo "${ECHO_T}$ac_cv_exeext" >&6
  1526.  
  1527. rm -f conftest.$ac_ext
  1528. EXEEXT=$ac_cv_exeext
  1529. ac_exeext=$EXEEXT
  1530. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1531. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1532. if test "${ac_cv_objext+set}" = set; then
  1533.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1534. else
  1535.   cat >conftest.$ac_ext <<_ACEOF
  1536. #line $LINENO "configure"
  1537. /* confdefs.h.  */
  1538. _ACEOF
  1539. cat confdefs.h >>conftest.$ac_ext
  1540. cat >>conftest.$ac_ext <<_ACEOF
  1541. /* end confdefs.h.  */
  1542.  
  1543. int
  1544. main ()
  1545. {
  1546.  
  1547.   ;
  1548.   return 0;
  1549. }
  1550. _ACEOF
  1551. rm -f conftest.o conftest.obj
  1552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1553.   (eval $ac_compile) 2>&5
  1554.   ac_status=$?
  1555.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1556.   (exit $ac_status); }; then
  1557.   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1558.   case $ac_file in
  1559.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1560.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1561.        break;;
  1562.   esac
  1563. done
  1564. else
  1565.   echo "$as_me: failed program was:" >&5
  1566. sed 's/^/| /' conftest.$ac_ext >&5
  1567.  
  1568. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1569. See \`config.log' for more details." >&5
  1570. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1571. See \`config.log' for more details." >&2;}
  1572.    { (exit 1); exit 1; }; }
  1573. fi
  1574.  
  1575. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1576. fi
  1577. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1578. echo "${ECHO_T}$ac_cv_objext" >&6
  1579. OBJEXT=$ac_cv_objext
  1580. ac_objext=$OBJEXT
  1581. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1582. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1583. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1584.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1585. else
  1586.   cat >conftest.$ac_ext <<_ACEOF
  1587. #line $LINENO "configure"
  1588. /* confdefs.h.  */
  1589. _ACEOF
  1590. cat confdefs.h >>conftest.$ac_ext
  1591. cat >>conftest.$ac_ext <<_ACEOF
  1592. /* end confdefs.h.  */
  1593.  
  1594. int
  1595. main ()
  1596. {
  1597. #ifndef __GNUC__
  1598.        choke me
  1599. #endif
  1600.  
  1601.   ;
  1602.   return 0;
  1603. }
  1604. _ACEOF
  1605. rm -f conftest.$ac_objext
  1606. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1607.   (eval $ac_compile) 2>&5
  1608.   ac_status=$?
  1609.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1610.   (exit $ac_status); } &&
  1611.          { ac_try='test -s conftest.$ac_objext'
  1612.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1613.   (eval $ac_try) 2>&5
  1614.   ac_status=$?
  1615.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1616.   (exit $ac_status); }; }; then
  1617.   ac_compiler_gnu=yes
  1618. else
  1619.   echo "$as_me: failed program was:" >&5
  1620. sed 's/^/| /' conftest.$ac_ext >&5
  1621.  
  1622. ac_compiler_gnu=no
  1623. fi
  1624. rm -f conftest.$ac_objext conftest.$ac_ext
  1625. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1626.  
  1627. fi
  1628. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1629. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1630. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1631. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1632. ac_save_CXXFLAGS=$CXXFLAGS
  1633. CXXFLAGS="-g"
  1634. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1635. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1636. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1637.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1638. else
  1639.   cat >conftest.$ac_ext <<_ACEOF
  1640. #line $LINENO "configure"
  1641. /* confdefs.h.  */
  1642. _ACEOF
  1643. cat confdefs.h >>conftest.$ac_ext
  1644. cat >>conftest.$ac_ext <<_ACEOF
  1645. /* end confdefs.h.  */
  1646.  
  1647. int
  1648. main ()
  1649. {
  1650.  
  1651.   ;
  1652.   return 0;
  1653. }
  1654. _ACEOF
  1655. rm -f conftest.$ac_objext
  1656. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1657.   (eval $ac_compile) 2>&5
  1658.   ac_status=$?
  1659.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1660.   (exit $ac_status); } &&
  1661.          { ac_try='test -s conftest.$ac_objext'
  1662.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1663.   (eval $ac_try) 2>&5
  1664.   ac_status=$?
  1665.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1666.   (exit $ac_status); }; }; then
  1667.   ac_cv_prog_cxx_g=yes
  1668. else
  1669.   echo "$as_me: failed program was:" >&5
  1670. sed 's/^/| /' conftest.$ac_ext >&5
  1671.  
  1672. ac_cv_prog_cxx_g=no
  1673. fi
  1674. rm -f conftest.$ac_objext conftest.$ac_ext
  1675. fi
  1676. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1677. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1678. if test "$ac_test_CXXFLAGS" = set; then
  1679.   CXXFLAGS=$ac_save_CXXFLAGS
  1680. elif test $ac_cv_prog_cxx_g = yes; then
  1681.   if test "$GXX" = yes; then
  1682.     CXXFLAGS="-g -O2"
  1683.   else
  1684.     CXXFLAGS="-g"
  1685.   fi
  1686. else
  1687.   if test "$GXX" = yes; then
  1688.     CXXFLAGS="-O2"
  1689.   else
  1690.     CXXFLAGS=
  1691.   fi
  1692. fi
  1693. for ac_declaration in \
  1694.    ''\
  1695.    '#include <stdlib.h>' \
  1696.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  1697.    'extern "C" void std::exit (int); using std::exit;' \
  1698.    'extern "C" void exit (int) throw ();' \
  1699.    'extern "C" void exit (int);' \
  1700.    'void exit (int);'
  1701. do
  1702.   cat >conftest.$ac_ext <<_ACEOF
  1703. #line $LINENO "configure"
  1704. /* confdefs.h.  */
  1705. _ACEOF
  1706. cat confdefs.h >>conftest.$ac_ext
  1707. cat >>conftest.$ac_ext <<_ACEOF
  1708. /* end confdefs.h.  */
  1709. #include <stdlib.h>
  1710. $ac_declaration
  1711. int
  1712. main ()
  1713. {
  1714. exit (42);
  1715.   ;
  1716.   return 0;
  1717. }
  1718. _ACEOF
  1719. rm -f conftest.$ac_objext
  1720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1721.   (eval $ac_compile) 2>&5
  1722.   ac_status=$?
  1723.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1724.   (exit $ac_status); } &&
  1725.          { ac_try='test -s conftest.$ac_objext'
  1726.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1727.   (eval $ac_try) 2>&5
  1728.   ac_status=$?
  1729.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1730.   (exit $ac_status); }; }; then
  1731.   :
  1732. else
  1733.   echo "$as_me: failed program was:" >&5
  1734. sed 's/^/| /' conftest.$ac_ext >&5
  1735.  
  1736. continue
  1737. fi
  1738. rm -f conftest.$ac_objext conftest.$ac_ext
  1739.   cat >conftest.$ac_ext <<_ACEOF
  1740. #line $LINENO "configure"
  1741. /* confdefs.h.  */
  1742. _ACEOF
  1743. cat confdefs.h >>conftest.$ac_ext
  1744. cat >>conftest.$ac_ext <<_ACEOF
  1745. /* end confdefs.h.  */
  1746. $ac_declaration
  1747. int
  1748. main ()
  1749. {
  1750. exit (42);
  1751.   ;
  1752.   return 0;
  1753. }
  1754. _ACEOF
  1755. rm -f conftest.$ac_objext
  1756. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1757.   (eval $ac_compile) 2>&5
  1758.   ac_status=$?
  1759.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1760.   (exit $ac_status); } &&
  1761.          { ac_try='test -s conftest.$ac_objext'
  1762.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1763.   (eval $ac_try) 2>&5
  1764.   ac_status=$?
  1765.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1766.   (exit $ac_status); }; }; then
  1767.   break
  1768. else
  1769.   echo "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771.  
  1772. fi
  1773. rm -f conftest.$ac_objext conftest.$ac_ext
  1774. done
  1775. rm -f conftest*
  1776. if test -n "$ac_declaration"; then
  1777.   echo '#ifdef __cplusplus' >>confdefs.h
  1778.   echo $ac_declaration      >>confdefs.h
  1779.   echo '#endif'             >>confdefs.h
  1780. fi
  1781.  
  1782. ac_ext=c
  1783. ac_cpp='$CPP $CPPFLAGS'
  1784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1787.  
  1788.  
  1789.  
  1790. OPENH323DIR=`pwd`
  1791.  
  1792.  
  1793. if test "x$prefix" = "xNONE"; then
  1794.    INSTALLPREFIX="/usr/local"
  1795. else
  1796.    INSTALLPREFIX="${prefix}"
  1797. fi
  1798.  
  1799.  
  1800.  
  1801.  
  1802. LIBDIR="${libdir}"
  1803.  
  1804.  
  1805.  
  1806.  
  1807. MAJOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
  1808. MINOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
  1809. BUILD_NUMBER=`cat ${OPENH323DIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
  1810. OPENH323_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
  1811.  
  1812.  
  1813. echo "OpenH323 version is ${OPENH323_VERSION}"
  1814.  
  1815.  
  1816.  
  1817. if test "${PWLIBDIR:-unset}" != "unset" ; then
  1818.   as_ac_File=`echo "ac_cv_file_${PWLIBDIR}/version.h" | $as_tr_sh`
  1819. echo "$as_me:$LINENO: checking for ${PWLIBDIR}/version.h" >&5
  1820. echo $ECHO_N "checking for ${PWLIBDIR}/version.h... $ECHO_C" >&6
  1821. if eval "test \"\${$as_ac_File+set}\" = set"; then
  1822.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1823. else
  1824.   test "$cross_compiling" = yes &&
  1825.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  1826. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  1827.    { (exit 1); exit 1; }; }
  1828. if test -r "${PWLIBDIR}/version.h"; then
  1829.   eval "$as_ac_File=yes"
  1830. else
  1831.   eval "$as_ac_File=no"
  1832. fi
  1833. fi
  1834. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  1835. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  1836. if test `eval echo '${'$as_ac_File'}'` = yes; then
  1837.   HAS_PTLIB=1
  1838. fi
  1839.  
  1840. fi
  1841. if test "${HAS_PTLIB:-unset}" = "unset" ; then
  1842.   as_ac_File=`echo "ac_cv_file_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  1843. echo "$as_me:$LINENO: checking for ${OPENH323DIR}/../pwlib/version.h" >&5
  1844. echo $ECHO_N "checking for ${OPENH323DIR}/../pwlib/version.h... $ECHO_C" >&6
  1845. if eval "test \"\${$as_ac_File+set}\" = set"; then
  1846.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848.   test "$cross_compiling" = yes &&
  1849.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  1850. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  1851.    { (exit 1); exit 1; }; }
  1852. if test -r "${OPENH323DIR}/../pwlib/version.h"; then
  1853.   eval "$as_ac_File=yes"
  1854. else
  1855.   eval "$as_ac_File=no"
  1856. fi
  1857. fi
  1858. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  1859. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  1860. if test `eval echo '${'$as_ac_File'}'` = yes; then
  1861.   HAS_PTLIB=1
  1862. fi
  1863.  
  1864.   if test "${HAS_PTLIB:-unset}" != "unset" ; then
  1865.     PWLIBDIR="${OPENH323DIR}/../pwlib"
  1866.   else
  1867.     as_ac_File=`echo "ac_cv_file_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  1868. echo "$as_me:$LINENO: checking for ${HOME}/pwlib/include/ptlib.h" >&5
  1869. echo $ECHO_N "checking for ${HOME}/pwlib/include/ptlib.h... $ECHO_C" >&6
  1870. if eval "test \"\${$as_ac_File+set}\" = set"; then
  1871.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1872. else
  1873.   test "$cross_compiling" = yes &&
  1874.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  1875. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  1876.    { (exit 1); exit 1; }; }
  1877. if test -r "${HOME}/pwlib/include/ptlib.h"; then
  1878.   eval "$as_ac_File=yes"
  1879. else
  1880.   eval "$as_ac_File=no"
  1881. fi
  1882. fi
  1883. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
  1884. echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
  1885. if test `eval echo '${'$as_ac_File'}'` = yes; then
  1886.   HAS_PTLIB=1
  1887. fi
  1888.  
  1889.     if test "${HAS_PTLIB:-unset}" != "unset" ; then
  1890.       PWLIBDIR="${HOME}/pwlib"
  1891.     else
  1892.       echo "$as_me:$LINENO: checking for /usr/local/include/ptlib.h" >&5
  1893. echo $ECHO_N "checking for /usr/local/include/ptlib.h... $ECHO_C" >&6
  1894. if test "${ac_cv_file__usr_local_include_ptlib_h+set}" = set; then
  1895.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1896. else
  1897.   test "$cross_compiling" = yes &&
  1898.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  1899. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  1900.    { (exit 1); exit 1; }; }
  1901. if test -r "/usr/local/include/ptlib.h"; then
  1902.   ac_cv_file__usr_local_include_ptlib_h=yes
  1903. else
  1904.   ac_cv_file__usr_local_include_ptlib_h=no
  1905. fi
  1906. fi
  1907. echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ptlib_h" >&5
  1908. echo "${ECHO_T}$ac_cv_file__usr_local_include_ptlib_h" >&6
  1909. if test $ac_cv_file__usr_local_include_ptlib_h = yes; then
  1910.   HAS_PTLIB=1
  1911. fi
  1912.  
  1913.       if test "${HAS_PTLIB:-unset}" != "unset" ; then
  1914.         # Extract the first word of "ptlib-config", so it can be a program name with args.
  1915. set dummy ptlib-config; ac_word=$2
  1916. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1918. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  1919.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1920. else
  1921.   case $PTLIB_CONFIG in
  1922.   [\\/]* | ?:[\\/]*)
  1923.   ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  1924.   ;;
  1925.   *)
  1926.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1927. for as_dir in /usr/local/bin
  1928. do
  1929.   IFS=$as_save_IFS
  1930.   test -z "$as_dir" && as_dir=.
  1931.   for ac_exec_ext in '' $ac_executable_extensions; do
  1932.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1933.     ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1934.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1935.     break 2
  1936.   fi
  1937. done
  1938. done
  1939.  
  1940.   ;;
  1941. esac
  1942. fi
  1943. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  1944.  
  1945. if test -n "$PTLIB_CONFIG"; then
  1946.   echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  1947. echo "${ECHO_T}$PTLIB_CONFIG" >&6
  1948. else
  1949.   echo "$as_me:$LINENO: result: no" >&5
  1950. echo "${ECHO_T}no" >&6
  1951. fi
  1952.  
  1953.       else
  1954.         echo "$as_me:$LINENO: checking for /usr/include/ptlib.h" >&5
  1955. echo $ECHO_N "checking for /usr/include/ptlib.h... $ECHO_C" >&6
  1956. if test "${ac_cv_file__usr_include_ptlib_h+set}" = set; then
  1957.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1958. else
  1959.   test "$cross_compiling" = yes &&
  1960.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  1961. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  1962.    { (exit 1); exit 1; }; }
  1963. if test -r "/usr/include/ptlib.h"; then
  1964.   ac_cv_file__usr_include_ptlib_h=yes
  1965. else
  1966.   ac_cv_file__usr_include_ptlib_h=no
  1967. fi
  1968. fi
  1969. echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_ptlib_h" >&5
  1970. echo "${ECHO_T}$ac_cv_file__usr_include_ptlib_h" >&6
  1971. if test $ac_cv_file__usr_include_ptlib_h = yes; then
  1972.   HAS_PTLIB=1
  1973. fi
  1974.  
  1975.         if test "${HAS_PTLIB:-unset}" != "unset" ; then
  1976.           # Extract the first word of "ptlib-config", so it can be a program name with args.
  1977. set dummy ptlib-config; ac_word=$2
  1978. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1980. if test "${ac_cv_path_PTLIB_CONFIG+set}" = set; then
  1981.   echo $ECHO_N "(cached) $ECHO_C" >&6
  1982. else
  1983.   case $PTLIB_CONFIG in
  1984.   [\\/]* | ?:[\\/]*)
  1985.   ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  1986.   ;;
  1987.   *)
  1988.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1989. for as_dir in /usr/share/pwlib/make/
  1990. do
  1991.   IFS=$as_save_IFS
  1992.   test -z "$as_dir" && as_dir=.
  1993.   for ac_exec_ext in '' $ac_executable_extensions; do
  1994.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1995.     ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  1996.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1997.     break 2
  1998.   fi
  1999. done
  2000. done
  2001.  
  2002.   ;;
  2003. esac
  2004. fi
  2005. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  2006.  
  2007. if test -n "$PTLIB_CONFIG"; then
  2008.   echo "$as_me:$LINENO: result: $PTLIB_CONFIG" >&5
  2009. echo "${ECHO_T}$PTLIB_CONFIG" >&6
  2010. else
  2011.   echo "$as_me:$LINENO: result: no" >&5
  2012. echo "${ECHO_T}no" >&6
  2013. fi
  2014.  
  2015.         fi
  2016.       fi
  2017.     fi
  2018.   fi
  2019. fi
  2020.  
  2021. if test "${HAS_PTLIB:-unset}" = "unset" ; then
  2022.   echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  2023.   exit
  2024. fi
  2025.  
  2026. if test "${PWLIBDIR:-unset}" = "unset" ; then
  2027.   if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
  2028.     echo "Cannot find ptlib-config - please install and try again"
  2029.     exit
  2030.   fi
  2031.   PWLIBDIR=`$PTLIB_CONFIG --prefix`
  2032. fi
  2033.  
  2034. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  2035.   PWLIBDIR="/usr/share/pwlib/"
  2036. fi
  2037. if test "xPWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  2038.   PWLIBDIR="/usr/local/share/pwlib/"
  2039. fi
  2040.  
  2041. echo "PWLib prefix set to.... $PWLIBDIR"
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048. ac_ext=c
  2049. ac_cpp='$CPP $CPPFLAGS'
  2050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2053. if test -n "$ac_tool_prefix"; then
  2054.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2055. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2056. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2057. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2058. if test "${ac_cv_prog_CC+set}" = set; then
  2059.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2060. else
  2061.   if test -n "$CC"; then
  2062.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2063. else
  2064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2065. for as_dir in $PATH
  2066. do
  2067.   IFS=$as_save_IFS
  2068.   test -z "$as_dir" && as_dir=.
  2069.   for ac_exec_ext in '' $ac_executable_extensions; do
  2070.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2071.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2072.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2073.     break 2
  2074.   fi
  2075. done
  2076. done
  2077.  
  2078. fi
  2079. fi
  2080. CC=$ac_cv_prog_CC
  2081. if test -n "$CC"; then
  2082.   echo "$as_me:$LINENO: result: $CC" >&5
  2083. echo "${ECHO_T}$CC" >&6
  2084. else
  2085.   echo "$as_me:$LINENO: result: no" >&5
  2086. echo "${ECHO_T}no" >&6
  2087. fi
  2088.  
  2089. fi
  2090. if test -z "$ac_cv_prog_CC"; then
  2091.   ac_ct_CC=$CC
  2092.   # Extract the first word of "gcc", so it can be a program name with args.
  2093. set dummy gcc; ac_word=$2
  2094. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2095. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2096. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2097.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2098. else
  2099.   if test -n "$ac_ct_CC"; then
  2100.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2101. else
  2102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2103. for as_dir in $PATH
  2104. do
  2105.   IFS=$as_save_IFS
  2106.   test -z "$as_dir" && as_dir=.
  2107.   for ac_exec_ext in '' $ac_executable_extensions; do
  2108.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2109.     ac_cv_prog_ac_ct_CC="gcc"
  2110.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2111.     break 2
  2112.   fi
  2113. done
  2114. done
  2115.  
  2116. fi
  2117. fi
  2118. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2119. if test -n "$ac_ct_CC"; then
  2120.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2121. echo "${ECHO_T}$ac_ct_CC" >&6
  2122. else
  2123.   echo "$as_me:$LINENO: result: no" >&5
  2124. echo "${ECHO_T}no" >&6
  2125. fi
  2126.  
  2127.   CC=$ac_ct_CC
  2128. else
  2129.   CC="$ac_cv_prog_CC"
  2130. fi
  2131.  
  2132. if test -z "$CC"; then
  2133.   if test -n "$ac_tool_prefix"; then
  2134.   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2135. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2136. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2137. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2138. if test "${ac_cv_prog_CC+set}" = set; then
  2139.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2140. else
  2141.   if test -n "$CC"; then
  2142.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2143. else
  2144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2145. for as_dir in $PATH
  2146. do
  2147.   IFS=$as_save_IFS
  2148.   test -z "$as_dir" && as_dir=.
  2149.   for ac_exec_ext in '' $ac_executable_extensions; do
  2150.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2151.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2152.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2153.     break 2
  2154.   fi
  2155. done
  2156. done
  2157.  
  2158. fi
  2159. fi
  2160. CC=$ac_cv_prog_CC
  2161. if test -n "$CC"; then
  2162.   echo "$as_me:$LINENO: result: $CC" >&5
  2163. echo "${ECHO_T}$CC" >&6
  2164. else
  2165.   echo "$as_me:$LINENO: result: no" >&5
  2166. echo "${ECHO_T}no" >&6
  2167. fi
  2168.  
  2169. fi
  2170. if test -z "$ac_cv_prog_CC"; then
  2171.   ac_ct_CC=$CC
  2172.   # Extract the first word of "cc", so it can be a program name with args.
  2173. set dummy cc; ac_word=$2
  2174. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2176. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2177.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179.   if test -n "$ac_ct_CC"; then
  2180.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2181. else
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185.   IFS=$as_save_IFS
  2186.   test -z "$as_dir" && as_dir=.
  2187.   for ac_exec_ext in '' $ac_executable_extensions; do
  2188.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2189.     ac_cv_prog_ac_ct_CC="cc"
  2190.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191.     break 2
  2192.   fi
  2193. done
  2194. done
  2195.  
  2196. fi
  2197. fi
  2198. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2199. if test -n "$ac_ct_CC"; then
  2200.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2201. echo "${ECHO_T}$ac_ct_CC" >&6
  2202. else
  2203.   echo "$as_me:$LINENO: result: no" >&5
  2204. echo "${ECHO_T}no" >&6
  2205. fi
  2206.  
  2207.   CC=$ac_ct_CC
  2208. else
  2209.   CC="$ac_cv_prog_CC"
  2210. fi
  2211.  
  2212. fi
  2213. if test -z "$CC"; then
  2214.   # Extract the first word of "cc", so it can be a program name with args.
  2215. set dummy cc; ac_word=$2
  2216. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2217. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2218. if test "${ac_cv_prog_CC+set}" = set; then
  2219.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2220. else
  2221.   if test -n "$CC"; then
  2222.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2223. else
  2224.   ac_prog_rejected=no
  2225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2226. for as_dir in $PATH
  2227. do
  2228.   IFS=$as_save_IFS
  2229.   test -z "$as_dir" && as_dir=.
  2230.   for ac_exec_ext in '' $ac_executable_extensions; do
  2231.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2232.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2233.        ac_prog_rejected=yes
  2234.        continue
  2235.      fi
  2236.     ac_cv_prog_CC="cc"
  2237.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2238.     break 2
  2239.   fi
  2240. done
  2241. done
  2242.  
  2243. if test $ac_prog_rejected = yes; then
  2244.   # We found a bogon in the path, so make sure we never use it.
  2245.   set dummy $ac_cv_prog_CC
  2246.   shift
  2247.   if test $# != 0; then
  2248.     # We chose a different compiler from the bogus one.
  2249.     # However, it has the same basename, so the bogon will be chosen
  2250.     # first if we set CC to just the basename; use the full file name.
  2251.     shift
  2252.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2253.   fi
  2254. fi
  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259.   echo "$as_me:$LINENO: result: $CC" >&5
  2260. echo "${ECHO_T}$CC" >&6
  2261. else
  2262.   echo "$as_me:$LINENO: result: no" >&5
  2263. echo "${ECHO_T}no" >&6
  2264. fi
  2265.  
  2266. fi
  2267. if test -z "$CC"; then
  2268.   if test -n "$ac_tool_prefix"; then
  2269.   for ac_prog in cl
  2270.   do
  2271.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2272. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2273. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2275. if test "${ac_cv_prog_CC+set}" = set; then
  2276.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2277. else
  2278.   if test -n "$CC"; then
  2279.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2280. else
  2281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2282. for as_dir in $PATH
  2283. do
  2284.   IFS=$as_save_IFS
  2285.   test -z "$as_dir" && as_dir=.
  2286.   for ac_exec_ext in '' $ac_executable_extensions; do
  2287.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2288.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2289.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2290.     break 2
  2291.   fi
  2292. done
  2293. done
  2294.  
  2295. fi
  2296. fi
  2297. CC=$ac_cv_prog_CC
  2298. if test -n "$CC"; then
  2299.   echo "$as_me:$LINENO: result: $CC" >&5
  2300. echo "${ECHO_T}$CC" >&6
  2301. else
  2302.   echo "$as_me:$LINENO: result: no" >&5
  2303. echo "${ECHO_T}no" >&6
  2304. fi
  2305.  
  2306.     test -n "$CC" && break
  2307.   done
  2308. fi
  2309. if test -z "$CC"; then
  2310.   ac_ct_CC=$CC
  2311.   for ac_prog in cl
  2312. do
  2313.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2314. set dummy $ac_prog; ac_word=$2
  2315. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2316. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2317. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2318.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2319. else
  2320.   if test -n "$ac_ct_CC"; then
  2321.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2322. else
  2323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2324. for as_dir in $PATH
  2325. do
  2326.   IFS=$as_save_IFS
  2327.   test -z "$as_dir" && as_dir=.
  2328.   for ac_exec_ext in '' $ac_executable_extensions; do
  2329.   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2330.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2331.     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2332.     break 2
  2333.   fi
  2334. done
  2335. done
  2336.  
  2337. fi
  2338. fi
  2339. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2340. if test -n "$ac_ct_CC"; then
  2341.   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2342. echo "${ECHO_T}$ac_ct_CC" >&6
  2343. else
  2344.   echo "$as_me:$LINENO: result: no" >&5
  2345. echo "${ECHO_T}no" >&6
  2346. fi
  2347.  
  2348.   test -n "$ac_ct_CC" && break
  2349. done
  2350.  
  2351.   CC=$ac_ct_CC
  2352. fi
  2353.  
  2354. fi
  2355.  
  2356.  
  2357. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2358. See \`config.log' for more details." >&5
  2359. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2360. See \`config.log' for more details." >&2;}
  2361.    { (exit 1); exit 1; }; }
  2362.  
  2363. # Provide some information about the compiler.
  2364. echo "$as_me:$LINENO:" \
  2365.      "checking for C compiler version" >&5
  2366. ac_compiler=`set X $ac_compile; echo $2`
  2367. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2368.   (eval $ac_compiler --version </dev/null >&5) 2>&5
  2369.   ac_status=$?
  2370.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2371.   (exit $ac_status); }
  2372. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2373.   (eval $ac_compiler -v </dev/null >&5) 2>&5
  2374.   ac_status=$?
  2375.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376.   (exit $ac_status); }
  2377. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2378.   (eval $ac_compiler -V </dev/null >&5) 2>&5
  2379.   ac_status=$?
  2380.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2381.   (exit $ac_status); }
  2382.  
  2383. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2384. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2385. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2386.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2387. else
  2388.   cat >conftest.$ac_ext <<_ACEOF
  2389. #line $LINENO "configure"
  2390. /* confdefs.h.  */
  2391. _ACEOF
  2392. cat confdefs.h >>conftest.$ac_ext
  2393. cat >>conftest.$ac_ext <<_ACEOF
  2394. /* end confdefs.h.  */
  2395.  
  2396. int
  2397. main ()
  2398. {
  2399. #ifndef __GNUC__
  2400.        choke me
  2401. #endif
  2402.  
  2403.   ;
  2404.   return 0;
  2405. }
  2406. _ACEOF
  2407. rm -f conftest.$ac_objext
  2408. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2409.   (eval $ac_compile) 2>&5
  2410.   ac_status=$?
  2411.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2412.   (exit $ac_status); } &&
  2413.          { ac_try='test -s conftest.$ac_objext'
  2414.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2415.   (eval $ac_try) 2>&5
  2416.   ac_status=$?
  2417.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2418.   (exit $ac_status); }; }; then
  2419.   ac_compiler_gnu=yes
  2420. else
  2421.   echo "$as_me: failed program was:" >&5
  2422. sed 's/^/| /' conftest.$ac_ext >&5
  2423.  
  2424. ac_compiler_gnu=no
  2425. fi
  2426. rm -f conftest.$ac_objext conftest.$ac_ext
  2427. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2428.  
  2429. fi
  2430. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2431. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2432. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2433. ac_test_CFLAGS=${CFLAGS+set}
  2434. ac_save_CFLAGS=$CFLAGS
  2435. CFLAGS="-g"
  2436. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2437. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2438. if test "${ac_cv_prog_cc_g+set}" = set; then
  2439.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2440. else
  2441.   cat >conftest.$ac_ext <<_ACEOF
  2442. #line $LINENO "configure"
  2443. /* confdefs.h.  */
  2444. _ACEOF
  2445. cat confdefs.h >>conftest.$ac_ext
  2446. cat >>conftest.$ac_ext <<_ACEOF
  2447. /* end confdefs.h.  */
  2448.  
  2449. int
  2450. main ()
  2451. {
  2452.  
  2453.   ;
  2454.   return 0;
  2455. }
  2456. _ACEOF
  2457. rm -f conftest.$ac_objext
  2458. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2459.   (eval $ac_compile) 2>&5
  2460.   ac_status=$?
  2461.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2462.   (exit $ac_status); } &&
  2463.          { ac_try='test -s conftest.$ac_objext'
  2464.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2465.   (eval $ac_try) 2>&5
  2466.   ac_status=$?
  2467.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2468.   (exit $ac_status); }; }; then
  2469.   ac_cv_prog_cc_g=yes
  2470. else
  2471.   echo "$as_me: failed program was:" >&5
  2472. sed 's/^/| /' conftest.$ac_ext >&5
  2473.  
  2474. ac_cv_prog_cc_g=no
  2475. fi
  2476. rm -f conftest.$ac_objext conftest.$ac_ext
  2477. fi
  2478. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2479. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2480. if test "$ac_test_CFLAGS" = set; then
  2481.   CFLAGS=$ac_save_CFLAGS
  2482. elif test $ac_cv_prog_cc_g = yes; then
  2483.   if test "$GCC" = yes; then
  2484.     CFLAGS="-g -O2"
  2485.   else
  2486.     CFLAGS="-g"
  2487.   fi
  2488. else
  2489.   if test "$GCC" = yes; then
  2490.     CFLAGS="-O2"
  2491.   else
  2492.     CFLAGS=
  2493.   fi
  2494. fi
  2495. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2496. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2497. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2498.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500.   ac_cv_prog_cc_stdc=no
  2501. ac_save_CC=$CC
  2502. cat >conftest.$ac_ext <<_ACEOF
  2503. #line $LINENO "configure"
  2504. /* confdefs.h.  */
  2505. _ACEOF
  2506. cat confdefs.h >>conftest.$ac_ext
  2507. cat >>conftest.$ac_ext <<_ACEOF
  2508. /* end confdefs.h.  */
  2509. #include <stdarg.h>
  2510. #include <stdio.h>
  2511. #include <sys/types.h>
  2512. #include <sys/stat.h>
  2513. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2514. struct buf { int x; };
  2515. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2516. static char *e (p, i)
  2517.      char **p;
  2518.      int i;
  2519. {
  2520.   return p[i];
  2521. }
  2522. static char *f (char * (*g) (char **, int), char **p, ...)
  2523. {
  2524.   char *s;
  2525.   va_list v;
  2526.   va_start (v,p);
  2527.   s = g (p, va_arg (v,int));
  2528.   va_end (v);
  2529.   return s;
  2530. }
  2531. int test (int i, double x);
  2532. struct s1 {int (*f) (int a);};
  2533. struct s2 {int (*f) (double a);};
  2534. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2535. int argc;
  2536. char **argv;
  2537. int
  2538. main ()
  2539. {
  2540. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2541.   ;
  2542.   return 0;
  2543. }
  2544. _ACEOF
  2545. # Don't try gcc -ansi; that turns off useful extensions and
  2546. # breaks some systems' header files.
  2547. # AIX            -qlanglvl=ansi
  2548. # Ultrix and OSF/1    -std1
  2549. # HP-UX 10.20 and later    -Ae
  2550. # HP-UX older versions    -Aa -D_HPUX_SOURCE
  2551. # SVR4            -Xc -D__EXTENSIONS__
  2552. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2553. do
  2554.   CC="$ac_save_CC $ac_arg"
  2555.   rm -f conftest.$ac_objext
  2556. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2557.   (eval $ac_compile) 2>&5
  2558.   ac_status=$?
  2559.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560.   (exit $ac_status); } &&
  2561.          { ac_try='test -s conftest.$ac_objext'
  2562.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2563.   (eval $ac_try) 2>&5
  2564.   ac_status=$?
  2565.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2566.   (exit $ac_status); }; }; then
  2567.   ac_cv_prog_cc_stdc=$ac_arg
  2568. break
  2569. else
  2570.   echo "$as_me: failed program was:" >&5
  2571. sed 's/^/| /' conftest.$ac_ext >&5
  2572.  
  2573. fi
  2574. rm -f conftest.$ac_objext
  2575. done
  2576. rm -f conftest.$ac_ext conftest.$ac_objext
  2577. CC=$ac_save_CC
  2578.  
  2579. fi
  2580.  
  2581. case "x$ac_cv_prog_cc_stdc" in
  2582.   x|xno)
  2583.     echo "$as_me:$LINENO: result: none needed" >&5
  2584. echo "${ECHO_T}none needed" >&6 ;;
  2585.   *)
  2586.     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2587. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2588.     CC="$CC $ac_cv_prog_cc_stdc" ;;
  2589. esac
  2590.  
  2591. # Some people use a C++ compiler to compile C.  Since we use `exit',
  2592. # in C++ we need to declare it.  In case someone uses the same compiler
  2593. # for both compiling C and C++ we need to have the C++ compiler decide
  2594. # the declaration of exit, since it's the most demanding environment.
  2595. cat >conftest.$ac_ext <<_ACEOF
  2596. #ifndef __cplusplus
  2597.   choke me
  2598. #endif
  2599. _ACEOF
  2600. rm -f conftest.$ac_objext
  2601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2602.   (eval $ac_compile) 2>&5
  2603.   ac_status=$?
  2604.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605.   (exit $ac_status); } &&
  2606.          { ac_try='test -s conftest.$ac_objext'
  2607.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608.   (eval $ac_try) 2>&5
  2609.   ac_status=$?
  2610.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611.   (exit $ac_status); }; }; then
  2612.   for ac_declaration in \
  2613.    ''\
  2614.    '#include <stdlib.h>' \
  2615.    'extern "C" void std::exit (int) throw (); using std::exit;' \
  2616.    'extern "C" void std::exit (int); using std::exit;' \
  2617.    'extern "C" void exit (int) throw ();' \
  2618.    'extern "C" void exit (int);' \
  2619.    'void exit (int);'
  2620. do
  2621.   cat >conftest.$ac_ext <<_ACEOF
  2622. #line $LINENO "configure"
  2623. /* confdefs.h.  */
  2624. _ACEOF
  2625. cat confdefs.h >>conftest.$ac_ext
  2626. cat >>conftest.$ac_ext <<_ACEOF
  2627. /* end confdefs.h.  */
  2628. #include <stdlib.h>
  2629. $ac_declaration
  2630. int
  2631. main ()
  2632. {
  2633. exit (42);
  2634.   ;
  2635.   return 0;
  2636. }
  2637. _ACEOF
  2638. rm -f conftest.$ac_objext
  2639. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2640.   (eval $ac_compile) 2>&5
  2641.   ac_status=$?
  2642.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2643.   (exit $ac_status); } &&
  2644.          { ac_try='test -s conftest.$ac_objext'
  2645.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2646.   (eval $ac_try) 2>&5
  2647.   ac_status=$?
  2648.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649.   (exit $ac_status); }; }; then
  2650.   :
  2651. else
  2652.   echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654.  
  2655. continue
  2656. fi
  2657. rm -f conftest.$ac_objext conftest.$ac_ext
  2658.   cat >conftest.$ac_ext <<_ACEOF
  2659. #line $LINENO "configure"
  2660. /* confdefs.h.  */
  2661. _ACEOF
  2662. cat confdefs.h >>conftest.$ac_ext
  2663. cat >>conftest.$ac_ext <<_ACEOF
  2664. /* end confdefs.h.  */
  2665. $ac_declaration
  2666. int
  2667. main ()
  2668. {
  2669. exit (42);
  2670.   ;
  2671.   return 0;
  2672. }
  2673. _ACEOF
  2674. rm -f conftest.$ac_objext
  2675. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2676.   (eval $ac_compile) 2>&5
  2677.   ac_status=$?
  2678.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679.   (exit $ac_status); } &&
  2680.          { ac_try='test -s conftest.$ac_objext'
  2681.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2682.   (eval $ac_try) 2>&5
  2683.   ac_status=$?
  2684.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2685.   (exit $ac_status); }; }; then
  2686.   break
  2687. else
  2688.   echo "$as_me: failed program was:" >&5
  2689. sed 's/^/| /' conftest.$ac_ext >&5
  2690.  
  2691. fi
  2692. rm -f conftest.$ac_objext conftest.$ac_ext
  2693. done
  2694. rm -f conftest*
  2695. if test -n "$ac_declaration"; then
  2696.   echo '#ifdef __cplusplus' >>confdefs.h
  2697.   echo $ac_declaration      >>confdefs.h
  2698.   echo '#endif'             >>confdefs.h
  2699. fi
  2700.  
  2701. else
  2702.   echo "$as_me: failed program was:" >&5
  2703. sed 's/^/| /' conftest.$ac_ext >&5
  2704.  
  2705. fi
  2706. rm -f conftest.$ac_objext conftest.$ac_ext
  2707. ac_ext=c
  2708. ac_cpp='$CPP $CPPFLAGS'
  2709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2712.  
  2713.  
  2714. ac_ext=c
  2715. ac_cpp='$CPP $CPPFLAGS'
  2716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2719. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2720. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2721. # On Suns, sometimes $CPP names a directory.
  2722. if test -n "$CPP" && test -d "$CPP"; then
  2723.   CPP=
  2724. fi
  2725. if test -z "$CPP"; then
  2726.   if test "${ac_cv_prog_CPP+set}" = set; then
  2727.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2728. else
  2729.       # Double quotes because CPP needs to be expanded
  2730.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2731.     do
  2732.       ac_preproc_ok=false
  2733. for ac_c_preproc_warn_flag in '' yes
  2734. do
  2735.   # Use a header file that comes with gcc, so configuring glibc
  2736.   # with a fresh cross-compiler works.
  2737.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2738.   # <limits.h> exists even on freestanding compilers.
  2739.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2740.   # not just through cpp. "Syntax error" is here to catch this case.
  2741.   cat >conftest.$ac_ext <<_ACEOF
  2742. #line $LINENO "configure"
  2743. /* confdefs.h.  */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h.  */
  2748. #ifdef __STDC__
  2749. # include <limits.h>
  2750. #else
  2751. # include <assert.h>
  2752. #endif
  2753.                      Syntax error
  2754. _ACEOF
  2755. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2756.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2757.   ac_status=$?
  2758.   grep -v '^ *+' conftest.er1 >conftest.err
  2759.   rm -f conftest.er1
  2760.   cat conftest.err >&5
  2761.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2762.   (exit $ac_status); } >/dev/null; then
  2763.   if test -s conftest.err; then
  2764.     ac_cpp_err=$ac_c_preproc_warn_flag
  2765.   else
  2766.     ac_cpp_err=
  2767.   fi
  2768. else
  2769.   ac_cpp_err=yes
  2770. fi
  2771. if test -z "$ac_cpp_err"; then
  2772.   :
  2773. else
  2774.   echo "$as_me: failed program was:" >&5
  2775. sed 's/^/| /' conftest.$ac_ext >&5
  2776.  
  2777.   # Broken: fails on valid input.
  2778. continue
  2779. fi
  2780. rm -f conftest.err conftest.$ac_ext
  2781.  
  2782.   # OK, works on sane cases.  Now check whether non-existent headers
  2783.   # can be detected and how.
  2784.   cat >conftest.$ac_ext <<_ACEOF
  2785. #line $LINENO "configure"
  2786. /* confdefs.h.  */
  2787. _ACEOF
  2788. cat confdefs.h >>conftest.$ac_ext
  2789. cat >>conftest.$ac_ext <<_ACEOF
  2790. /* end confdefs.h.  */
  2791. #include <ac_nonexistent.h>
  2792. _ACEOF
  2793. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2794.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2795.   ac_status=$?
  2796.   grep -v '^ *+' conftest.er1 >conftest.err
  2797.   rm -f conftest.er1
  2798.   cat conftest.err >&5
  2799.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2800.   (exit $ac_status); } >/dev/null; then
  2801.   if test -s conftest.err; then
  2802.     ac_cpp_err=$ac_c_preproc_warn_flag
  2803.   else
  2804.     ac_cpp_err=
  2805.   fi
  2806. else
  2807.   ac_cpp_err=yes
  2808. fi
  2809. if test -z "$ac_cpp_err"; then
  2810.   # Broken: success on invalid input.
  2811. continue
  2812. else
  2813.   echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815.  
  2816.   # Passes both tests.
  2817. ac_preproc_ok=:
  2818. break
  2819. fi
  2820. rm -f conftest.err conftest.$ac_ext
  2821.  
  2822. done
  2823. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2824. rm -f conftest.err conftest.$ac_ext
  2825. if $ac_preproc_ok; then
  2826.   break
  2827. fi
  2828.  
  2829.     done
  2830.     ac_cv_prog_CPP=$CPP
  2831.  
  2832. fi
  2833.   CPP=$ac_cv_prog_CPP
  2834. else
  2835.   ac_cv_prog_CPP=$CPP
  2836. fi
  2837. echo "$as_me:$LINENO: result: $CPP" >&5
  2838. echo "${ECHO_T}$CPP" >&6
  2839. ac_preproc_ok=false
  2840. for ac_c_preproc_warn_flag in '' yes
  2841. do
  2842.   # Use a header file that comes with gcc, so configuring glibc
  2843.   # with a fresh cross-compiler works.
  2844.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2845.   # <limits.h> exists even on freestanding compilers.
  2846.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2847.   # not just through cpp. "Syntax error" is here to catch this case.
  2848.   cat >conftest.$ac_ext <<_ACEOF
  2849. #line $LINENO "configure"
  2850. /* confdefs.h.  */
  2851. _ACEOF
  2852. cat confdefs.h >>conftest.$ac_ext
  2853. cat >>conftest.$ac_ext <<_ACEOF
  2854. /* end confdefs.h.  */
  2855. #ifdef __STDC__
  2856. # include <limits.h>
  2857. #else
  2858. # include <assert.h>
  2859. #endif
  2860.                      Syntax error
  2861. _ACEOF
  2862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2863.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2864.   ac_status=$?
  2865.   grep -v '^ *+' conftest.er1 >conftest.err
  2866.   rm -f conftest.er1
  2867.   cat conftest.err >&5
  2868.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869.   (exit $ac_status); } >/dev/null; then
  2870.   if test -s conftest.err; then
  2871.     ac_cpp_err=$ac_c_preproc_warn_flag
  2872.   else
  2873.     ac_cpp_err=
  2874.   fi
  2875. else
  2876.   ac_cpp_err=yes
  2877. fi
  2878. if test -z "$ac_cpp_err"; then
  2879.   :
  2880. else
  2881.   echo "$as_me: failed program was:" >&5
  2882. sed 's/^/| /' conftest.$ac_ext >&5
  2883.  
  2884.   # Broken: fails on valid input.
  2885. continue
  2886. fi
  2887. rm -f conftest.err conftest.$ac_ext
  2888.  
  2889.   # OK, works on sane cases.  Now check whether non-existent headers
  2890.   # can be detected and how.
  2891.   cat >conftest.$ac_ext <<_ACEOF
  2892. #line $LINENO "configure"
  2893. /* confdefs.h.  */
  2894. _ACEOF
  2895. cat confdefs.h >>conftest.$ac_ext
  2896. cat >>conftest.$ac_ext <<_ACEOF
  2897. /* end confdefs.h.  */
  2898. #include <ac_nonexistent.h>
  2899. _ACEOF
  2900. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2901.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2902.   ac_status=$?
  2903.   grep -v '^ *+' conftest.er1 >conftest.err
  2904.   rm -f conftest.er1
  2905.   cat conftest.err >&5
  2906.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2907.   (exit $ac_status); } >/dev/null; then
  2908.   if test -s conftest.err; then
  2909.     ac_cpp_err=$ac_c_preproc_warn_flag
  2910.   else
  2911.     ac_cpp_err=
  2912.   fi
  2913. else
  2914.   ac_cpp_err=yes
  2915. fi
  2916. if test -z "$ac_cpp_err"; then
  2917.   # Broken: success on invalid input.
  2918. continue
  2919. else
  2920.   echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922.  
  2923.   # Passes both tests.
  2924. ac_preproc_ok=:
  2925. break
  2926. fi
  2927. rm -f conftest.err conftest.$ac_ext
  2928.  
  2929. done
  2930. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2931. rm -f conftest.err conftest.$ac_ext
  2932. if $ac_preproc_ok; then
  2933.   :
  2934. else
  2935.   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2936. See \`config.log' for more details." >&5
  2937. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2938. See \`config.log' for more details." >&2;}
  2939.    { (exit 1); exit 1; }; }
  2940. fi
  2941.  
  2942. ac_ext=c
  2943. ac_cpp='$CPP $CPPFLAGS'
  2944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2947.  
  2948.  
  2949. echo "$as_me:$LINENO: checking for egrep" >&5
  2950. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2951. if test "${ac_cv_prog_egrep+set}" = set; then
  2952.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2953. else
  2954.   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2955.     then ac_cv_prog_egrep='grep -E'
  2956.     else ac_cv_prog_egrep='egrep'
  2957.     fi
  2958. fi
  2959. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2960. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2961.  EGREP=$ac_cv_prog_egrep
  2962.  
  2963.  
  2964. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2965. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2966. if test "${ac_cv_header_stdc+set}" = set; then
  2967.   echo $ECHO_N "(cached) $ECHO_C" >&6
  2968. else
  2969.   cat >conftest.$ac_ext <<_ACEOF
  2970. #line $LINENO "configure"
  2971. /* confdefs.h.  */
  2972. _ACEOF
  2973. cat confdefs.h >>conftest.$ac_ext
  2974. cat >>conftest.$ac_ext <<_ACEOF
  2975. /* end confdefs.h.  */
  2976. #include <stdlib.h>
  2977. #include <stdarg.h>
  2978. #include <string.h>
  2979. #include <float.h>
  2980.  
  2981. int
  2982. main ()
  2983. {
  2984.  
  2985.   ;
  2986.   return 0;
  2987. }
  2988. _ACEOF
  2989. rm -f conftest.$ac_objext
  2990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2991.   (eval $ac_compile) 2>&5
  2992.   ac_status=$?
  2993.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2994.   (exit $ac_status); } &&
  2995.          { ac_try='test -s conftest.$ac_objext'
  2996.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2997.   (eval $ac_try) 2>&5
  2998.   ac_status=$?
  2999.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3000.   (exit $ac_status); }; }; then
  3001.   ac_cv_header_stdc=yes
  3002. else
  3003.   echo "$as_me: failed program was:" >&5
  3004. sed 's/^/| /' conftest.$ac_ext >&5
  3005.  
  3006. ac_cv_header_stdc=no
  3007. fi
  3008. rm -f conftest.$ac_objext conftest.$ac_ext
  3009.  
  3010. if test $ac_cv_header_stdc = yes; then
  3011.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3012.   cat >conftest.$ac_ext <<_ACEOF
  3013. #line $LINENO "configure"
  3014. /* confdefs.h.  */
  3015. _ACEOF
  3016. cat confdefs.h >>conftest.$ac_ext
  3017. cat >>conftest.$ac_ext <<_ACEOF
  3018. /* end confdefs.h.  */
  3019. #include <string.h>
  3020.  
  3021. _ACEOF
  3022. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3023.   $EGREP "memchr" >/dev/null 2>&1; then
  3024.   :
  3025. else
  3026.   ac_cv_header_stdc=no
  3027. fi
  3028. rm -f conftest*
  3029.  
  3030. fi
  3031.  
  3032. if test $ac_cv_header_stdc = yes; then
  3033.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3034.   cat >conftest.$ac_ext <<_ACEOF
  3035. #line $LINENO "configure"
  3036. /* confdefs.h.  */
  3037. _ACEOF
  3038. cat confdefs.h >>conftest.$ac_ext
  3039. cat >>conftest.$ac_ext <<_ACEOF
  3040. /* end confdefs.h.  */
  3041. #include <stdlib.h>
  3042.  
  3043. _ACEOF
  3044. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3045.   $EGREP "free" >/dev/null 2>&1; then
  3046.   :
  3047. else
  3048.   ac_cv_header_stdc=no
  3049. fi
  3050. rm -f conftest*
  3051.  
  3052. fi
  3053.  
  3054. if test $ac_cv_header_stdc = yes; then
  3055.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3056.   if test "$cross_compiling" = yes; then
  3057.   :
  3058. else
  3059.   cat >conftest.$ac_ext <<_ACEOF
  3060. #line $LINENO "configure"
  3061. /* confdefs.h.  */
  3062. _ACEOF
  3063. cat confdefs.h >>conftest.$ac_ext
  3064. cat >>conftest.$ac_ext <<_ACEOF
  3065. /* end confdefs.h.  */
  3066. #include <ctype.h>
  3067. #if ((' ' & 0x0FF) == 0x020)
  3068. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3069. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3070. #else
  3071. # define ISLOWER(c) \
  3072.                    (('a' <= (c) && (c) <= 'i') \
  3073.                      || ('j' <= (c) && (c) <= 'r') \
  3074.                      || ('s' <= (c) && (c) <= 'z'))
  3075. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3076. #endif
  3077.  
  3078. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3079. int
  3080. main ()
  3081. {
  3082.   int i;
  3083.   for (i = 0; i < 256; i++)
  3084.     if (XOR (islower (i), ISLOWER (i))
  3085.         || toupper (i) != TOUPPER (i))
  3086.       exit(2);
  3087.   exit (0);
  3088. }
  3089. _ACEOF
  3090. rm -f conftest$ac_exeext
  3091. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3092.   (eval $ac_link) 2>&5
  3093.   ac_status=$?
  3094.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095.   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3096.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3097.   (eval $ac_try) 2>&5
  3098.   ac_status=$?
  3099.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100.   (exit $ac_status); }; }; then
  3101.   :
  3102. else
  3103.   echo "$as_me: program exited with status $ac_status" >&5
  3104. echo "$as_me: failed program was:" >&5
  3105. sed 's/^/| /' conftest.$ac_ext >&5
  3106.  
  3107. ( exit $ac_status )
  3108. ac_cv_header_stdc=no
  3109. fi
  3110. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3111. fi
  3112. fi
  3113. fi
  3114. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3115. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3116. if test $ac_cv_header_stdc = yes; then
  3117.  
  3118. cat >>confdefs.h <<\_ACEOF
  3119. #define STDC_HEADERS 1
  3120. _ACEOF
  3121.  
  3122. fi
  3123.  
  3124. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3135.                   inttypes.h stdint.h unistd.h
  3136. do
  3137. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3138. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3139. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3140. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3141.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3142. else
  3143.   cat >conftest.$ac_ext <<_ACEOF
  3144. #line $LINENO "configure"
  3145. /* confdefs.h.  */
  3146. _ACEOF
  3147. cat confdefs.h >>conftest.$ac_ext
  3148. cat >>conftest.$ac_ext <<_ACEOF
  3149. /* end confdefs.h.  */
  3150. $ac_includes_default
  3151.  
  3152. #include <$ac_header>
  3153. _ACEOF
  3154. rm -f conftest.$ac_objext
  3155. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3156.   (eval $ac_compile) 2>&5
  3157.   ac_status=$?
  3158.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3159.   (exit $ac_status); } &&
  3160.          { ac_try='test -s conftest.$ac_objext'
  3161.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3162.   (eval $ac_try) 2>&5
  3163.   ac_status=$?
  3164.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3165.   (exit $ac_status); }; }; then
  3166.   eval "$as_ac_Header=yes"
  3167. else
  3168.   echo "$as_me: failed program was:" >&5
  3169. sed 's/^/| /' conftest.$ac_ext >&5
  3170.  
  3171. eval "$as_ac_Header=no"
  3172. fi
  3173. rm -f conftest.$ac_objext conftest.$ac_ext
  3174. fi
  3175. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3176. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3177. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3178.   cat >>confdefs.h <<_ACEOF
  3179. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3180. _ACEOF
  3181.  
  3182. fi
  3183.  
  3184. done
  3185.  
  3186.  
  3187.  
  3188. for ac_header in avcodec.h
  3189. do
  3190. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3192.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  3193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3195.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3196. fi
  3197. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3198. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3199. else
  3200.   # Is the header compilable?
  3201. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3202. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3203. cat >conftest.$ac_ext <<_ACEOF
  3204. #line $LINENO "configure"
  3205. /* confdefs.h.  */
  3206. _ACEOF
  3207. cat confdefs.h >>conftest.$ac_ext
  3208. cat >>conftest.$ac_ext <<_ACEOF
  3209. /* end confdefs.h.  */
  3210. $ac_includes_default
  3211. #include <$ac_header>
  3212. _ACEOF
  3213. rm -f conftest.$ac_objext
  3214. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3215.   (eval $ac_compile) 2>&5
  3216.   ac_status=$?
  3217.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3218.   (exit $ac_status); } &&
  3219.          { ac_try='test -s conftest.$ac_objext'
  3220.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3221.   (eval $ac_try) 2>&5
  3222.   ac_status=$?
  3223.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3224.   (exit $ac_status); }; }; then
  3225.   ac_header_compiler=yes
  3226. else
  3227.   echo "$as_me: failed program was:" >&5
  3228. sed 's/^/| /' conftest.$ac_ext >&5
  3229.  
  3230. ac_header_compiler=no
  3231. fi
  3232. rm -f conftest.$ac_objext conftest.$ac_ext
  3233. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3234. echo "${ECHO_T}$ac_header_compiler" >&6
  3235.  
  3236. # Is the header present?
  3237. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3238. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3239. cat >conftest.$ac_ext <<_ACEOF
  3240. #line $LINENO "configure"
  3241. /* confdefs.h.  */
  3242. _ACEOF
  3243. cat confdefs.h >>conftest.$ac_ext
  3244. cat >>conftest.$ac_ext <<_ACEOF
  3245. /* end confdefs.h.  */
  3246. #include <$ac_header>
  3247. _ACEOF
  3248. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3249.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3250.   ac_status=$?
  3251.   grep -v '^ *+' conftest.er1 >conftest.err
  3252.   rm -f conftest.er1
  3253.   cat conftest.err >&5
  3254.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3255.   (exit $ac_status); } >/dev/null; then
  3256.   if test -s conftest.err; then
  3257.     ac_cpp_err=$ac_c_preproc_warn_flag
  3258.   else
  3259.     ac_cpp_err=
  3260.   fi
  3261. else
  3262.   ac_cpp_err=yes
  3263. fi
  3264. if test -z "$ac_cpp_err"; then
  3265.   ac_header_preproc=yes
  3266. else
  3267.   echo "$as_me: failed program was:" >&5
  3268. sed 's/^/| /' conftest.$ac_ext >&5
  3269.  
  3270.   ac_header_preproc=no
  3271. fi
  3272. rm -f conftest.err conftest.$ac_ext
  3273. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3274. echo "${ECHO_T}$ac_header_preproc" >&6
  3275.  
  3276. # So?  What about this header?
  3277. case $ac_header_compiler:$ac_header_preproc in
  3278.   yes:no )
  3279.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3280. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3281.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3282. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3283.     (
  3284.       cat <<\_ASBOX
  3285. ## ------------------------------------ ##
  3286. ## Report this to bug-autoconf@gnu.org. ##
  3287. ## ------------------------------------ ##
  3288. _ASBOX
  3289.     ) |
  3290.       sed "s/^/$as_me: WARNING:     /" >&2
  3291.     ;;
  3292.   no:yes )
  3293.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3294. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3295.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3296. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3297.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3298. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3299.     (
  3300.       cat <<\_ASBOX
  3301. ## ------------------------------------ ##
  3302. ## Report this to bug-autoconf@gnu.org. ##
  3303. ## ------------------------------------ ##
  3304. _ASBOX
  3305.     ) |
  3306.       sed "s/^/$as_me: WARNING:     /" >&2
  3307.     ;;
  3308. esac
  3309. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3311. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3312.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3313. else
  3314.   eval "$as_ac_Header=$ac_header_preproc"
  3315. fi
  3316. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3317. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3318.  
  3319. fi
  3320. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3321.   cat >>confdefs.h <<_ACEOF
  3322. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3323. _ACEOF
  3324.  H323_AVCODEC=1
  3325. fi
  3326.  
  3327. done
  3328.  
  3329.  
  3330. if test "${H323_AVCODEC:-unset}" != "unset" ; then
  3331.   echo "$as_me:$LINENO: checking for avcodec_open in -lavcodec" >&5
  3332. echo $ECHO_N "checking for avcodec_open in -lavcodec... $ECHO_C" >&6
  3333. if test "${ac_cv_lib_avcodec_avcodec_open+set}" = set; then
  3334.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3335. else
  3336.   ac_check_lib_save_LIBS=$LIBS
  3337. LIBS="-lavcodec  $LIBS"
  3338. cat >conftest.$ac_ext <<_ACEOF
  3339. #line $LINENO "configure"
  3340. /* confdefs.h.  */
  3341. _ACEOF
  3342. cat confdefs.h >>conftest.$ac_ext
  3343. cat >>conftest.$ac_ext <<_ACEOF
  3344. /* end confdefs.h.  */
  3345.  
  3346. /* Override any gcc2 internal prototype to avoid an error.  */
  3347. #ifdef __cplusplus
  3348. extern "C"
  3349. #endif
  3350. /* We use char because int might match the return type of a gcc2
  3351.    builtin and then its argument prototype would still apply.  */
  3352. char avcodec_open ();
  3353. int
  3354. main ()
  3355. {
  3356. avcodec_open ();
  3357.   ;
  3358.   return 0;
  3359. }
  3360. _ACEOF
  3361. rm -f conftest.$ac_objext conftest$ac_exeext
  3362. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3363.   (eval $ac_link) 2>&5
  3364.   ac_status=$?
  3365.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366.   (exit $ac_status); } &&
  3367.          { ac_try='test -s conftest$ac_exeext'
  3368.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3369.   (eval $ac_try) 2>&5
  3370.   ac_status=$?
  3371.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3372.   (exit $ac_status); }; }; then
  3373.   ac_cv_lib_avcodec_avcodec_open=yes
  3374. else
  3375.   echo "$as_me: failed program was:" >&5
  3376. sed 's/^/| /' conftest.$ac_ext >&5
  3377.  
  3378. ac_cv_lib_avcodec_avcodec_open=no
  3379. fi
  3380. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3381. LIBS=$ac_check_lib_save_LIBS
  3382. fi
  3383. echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_open" >&5
  3384. echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_open" >&6
  3385. if test $ac_cv_lib_avcodec_avcodec_open = yes; then
  3386.   H323_AVCODEC=1
  3387. else
  3388.   H323_AVCODEC=
  3389. fi
  3390.  
  3391. fi
  3392.  
  3393. if test "${H323_AVCODEC:-unset}" != "unset" ; then
  3394.   echo "$as_me:$LINENO: checking for /usr/local/include/ffmpeg/avcodec.h" >&5
  3395. echo $ECHO_N "checking for /usr/local/include/ffmpeg/avcodec.h... $ECHO_C" >&6
  3396. if test "${ac_cv_file__usr_local_include_ffmpeg_avcodec_h+set}" = set; then
  3397.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3398. else
  3399.   test "$cross_compiling" = yes &&
  3400.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  3401. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  3402.    { (exit 1); exit 1; }; }
  3403. if test -r "/usr/local/include/ffmpeg/avcodec.h"; then
  3404.   ac_cv_file__usr_local_include_ffmpeg_avcodec_h=yes
  3405. else
  3406.   ac_cv_file__usr_local_include_ffmpeg_avcodec_h=no
  3407. fi
  3408. fi
  3409. echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_ffmpeg_avcodec_h" >&5
  3410. echo "${ECHO_T}$ac_cv_file__usr_local_include_ffmpeg_avcodec_h" >&6
  3411. if test $ac_cv_file__usr_local_include_ffmpeg_avcodec_h = yes; then
  3412.   H323_AVCODEC=1
  3413. fi
  3414.  
  3415. fi
  3416.  
  3417. if test "${H323_AVCODEC:-unset}" != "unset" ; then
  3418.   H323_AVCODEC=1
  3419.  
  3420.  
  3421. cat >>confdefs.h <<\_ACEOF
  3422. #define H323_AVCODEC 1
  3423. _ACEOF
  3424.  
  3425.   AVCODECINCLUDEDIR=/usr/local/include/ffmpeg
  3426.   AVCODECLIBDIR=/usr/local/lib
  3427.   STDCCFLAGS="$STDCCFLAGS -I${AVCODECINCLUDEDIR}"
  3428.  
  3429.   echo  "                      H263 codec on FFmpeg library  enabled"
  3430. fi
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437. for ac_header in encoder-h263.h
  3438. do
  3439. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3441.   echo "$as_me:$LINENO: checking for $ac_header" >&5
  3442. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3443. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3444.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3445. fi
  3446. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3447. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3448. else
  3449.   # Is the header compilable?
  3450. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3451. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3452. cat >conftest.$ac_ext <<_ACEOF
  3453. #line $LINENO "configure"
  3454. /* confdefs.h.  */
  3455. _ACEOF
  3456. cat confdefs.h >>conftest.$ac_ext
  3457. cat >>conftest.$ac_ext <<_ACEOF
  3458. /* end confdefs.h.  */
  3459. $ac_includes_default
  3460. #include <$ac_header>
  3461. _ACEOF
  3462. rm -f conftest.$ac_objext
  3463. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3464.   (eval $ac_compile) 2>&5
  3465.   ac_status=$?
  3466.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467.   (exit $ac_status); } &&
  3468.          { ac_try='test -s conftest.$ac_objext'
  3469.   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3470.   (eval $ac_try) 2>&5
  3471.   ac_status=$?
  3472.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3473.   (exit $ac_status); }; }; then
  3474.   ac_header_compiler=yes
  3475. else
  3476.   echo "$as_me: failed program was:" >&5
  3477. sed 's/^/| /' conftest.$ac_ext >&5
  3478.  
  3479. ac_header_compiler=no
  3480. fi
  3481. rm -f conftest.$ac_objext conftest.$ac_ext
  3482. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3483. echo "${ECHO_T}$ac_header_compiler" >&6
  3484.  
  3485. # Is the header present?
  3486. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3487. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3488. cat >conftest.$ac_ext <<_ACEOF
  3489. #line $LINENO "configure"
  3490. /* confdefs.h.  */
  3491. _ACEOF
  3492. cat confdefs.h >>conftest.$ac_ext
  3493. cat >>conftest.$ac_ext <<_ACEOF
  3494. /* end confdefs.h.  */
  3495. #include <$ac_header>
  3496. _ACEOF
  3497. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3498.   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3499.   ac_status=$?
  3500.   grep -v '^ *+' conftest.er1 >conftest.err
  3501.   rm -f conftest.er1
  3502.   cat conftest.err >&5
  3503.   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3504.   (exit $ac_status); } >/dev/null; then
  3505.   if test -s conftest.err; then
  3506.     ac_cpp_err=$ac_c_preproc_warn_flag
  3507.   else
  3508.     ac_cpp_err=
  3509.   fi
  3510. else
  3511.   ac_cpp_err=yes
  3512. fi
  3513. if test -z "$ac_cpp_err"; then
  3514.   ac_header_preproc=yes
  3515. else
  3516.   echo "$as_me: failed program was:" >&5
  3517. sed 's/^/| /' conftest.$ac_ext >&5
  3518.  
  3519.   ac_header_preproc=no
  3520. fi
  3521. rm -f conftest.err conftest.$ac_ext
  3522. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3523. echo "${ECHO_T}$ac_header_preproc" >&6
  3524.  
  3525. # So?  What about this header?
  3526. case $ac_header_compiler:$ac_header_preproc in
  3527.   yes:no )
  3528.     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3529. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3530.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3531. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3532.     (
  3533.       cat <<\_ASBOX
  3534. ## ------------------------------------ ##
  3535. ## Report this to bug-autoconf@gnu.org. ##
  3536. ## ------------------------------------ ##
  3537. _ASBOX
  3538.     ) |
  3539.       sed "s/^/$as_me: WARNING:     /" >&2
  3540.     ;;
  3541.   no:yes )
  3542.     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3543. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3544.     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3545. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3546.     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3547. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3548.     (
  3549.       cat <<\_ASBOX
  3550. ## ------------------------------------ ##
  3551. ## Report this to bug-autoconf@gnu.org. ##
  3552. ## ------------------------------------ ##
  3553. _ASBOX
  3554.     ) |
  3555.       sed "s/^/$as_me: WARNING:     /" >&2
  3556.     ;;
  3557. esac
  3558. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3559. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3560. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3561.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3562. else
  3563.   eval "$as_ac_Header=$ac_header_preproc"
  3564. fi
  3565. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3566. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3567.  
  3568. fi
  3569. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3570.   cat >>confdefs.h <<_ACEOF
  3571. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3572. _ACEOF
  3573.  H323_VICH263=1
  3574. fi
  3575.  
  3576. done
  3577.  
  3578.  
  3579. if test "${H323_VICH263:-unset}" != "unset" ; then
  3580.   echo "$as_me:$LINENO: checking for /usr/local/lib/libvich263.so" >&5
  3581. echo $ECHO_N "checking for /usr/local/lib/libvich263.so... $ECHO_C" >&6
  3582. if test "${ac_cv_file__usr_local_lib_libvich263_so+set}" = set; then
  3583.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585.   test "$cross_compiling" = yes &&
  3586.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  3587. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  3588.    { (exit 1); exit 1; }; }
  3589. if test -r "/usr/local/lib/libvich263.so"; then
  3590.   ac_cv_file__usr_local_lib_libvich263_so=yes
  3591. else
  3592.   ac_cv_file__usr_local_lib_libvich263_so=no
  3593. fi
  3594. fi
  3595. echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libvich263_so" >&5
  3596. echo "${ECHO_T}$ac_cv_file__usr_local_lib_libvich263_so" >&6
  3597. if test $ac_cv_file__usr_local_lib_libvich263_so = yes; then
  3598.   H323_VICH263=1
  3599. else
  3600.   H323_VICH263=
  3601. fi
  3602.  
  3603. fi
  3604.  
  3605. if test "${H323_VICH263:-unset}" != "unset" ; then
  3606.   echo "$as_me:$LINENO: checking for /usr/local/include/vich263/encoder-h263.h" >&5
  3607. echo $ECHO_N "checking for /usr/local/include/vich263/encoder-h263.h... $ECHO_C" >&6
  3608. if test "${ac_cv_file__usr_local_include_vich263_encoder_h263_h+set}" = set; then
  3609.   echo $ECHO_N "(cached) $ECHO_C" >&6
  3610. else
  3611.   test "$cross_compiling" = yes &&
  3612.   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
  3613. echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
  3614.    { (exit 1); exit 1; }; }
  3615. if test -r "/usr/local/include/vich263/encoder-h263.h"; then
  3616.   ac_cv_file__usr_local_include_vich263_encoder_h263_h=yes
  3617. else
  3618.   ac_cv_file__usr_local_include_vich263_encoder_h263_h=no
  3619. fi
  3620. fi
  3621. echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_include_vich263_encoder_h263_h" >&5
  3622. echo "${ECHO_T}$ac_cv_file__usr_local_include_vich263_encoder_h263_h" >&6
  3623. if test $ac_cv_file__usr_local_include_vich263_encoder_h263_h = yes; then
  3624.   H323_VICH263=1
  3625. fi
  3626.  
  3627. fi
  3628.  
  3629. if test "${H323_VICH263:-unset}" != "unset" ; then
  3630.   H323_VICH263=1
  3631.  
  3632.  
  3633. cat >>confdefs.h <<\_ACEOF
  3634. #define H323_VICH263 1
  3635. _ACEOF
  3636.  
  3637.   VICH263INCLUDEDIR=/usr/local/include/vich263
  3638.   VICH263LIBDIR=/usr/local/lib
  3639.   STDCCFLAGS="$STDCCFLAGS -I${VICH263INCLUDEDIR}"
  3640.  
  3641.   echo  "                      H263 codec on libvich263 enabled"
  3642. fi
  3643.  
  3644.  
  3645.  
  3646.  
  3647.  
  3648.  
  3649.  
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.           ac_config_files="$ac_config_files openh323u.mak"
  3656.  
  3657.           ac_config_files="$ac_config_files Makefile"
  3658.  
  3659.  
  3660.  
  3661.  
  3662.           ac_config_headers="$ac_config_headers include/openh323buildopts.h"
  3663.  
  3664.  
  3665.  
  3666.  
  3667. cat >confcache <<\_ACEOF
  3668. # This file is a shell script that caches the results of configure
  3669. # tests run on this system so they can be shared between configure
  3670. # scripts and configure runs, see configure's option --config-cache.
  3671. # It is not useful on other systems.  If it contains results you don't
  3672. # want to keep, you may remove or edit it.
  3673. #
  3674. # config.status only pays attention to the cache file if you give it
  3675. # the --recheck option to rerun configure.
  3676. #
  3677. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3678. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3679. # following values.
  3680.  
  3681. _ACEOF
  3682.  
  3683. # The following way of writing the cache mishandles newlines in values,
  3684. # but we know of no workaround that is simple, portable, and efficient.
  3685. # So, don't put newlines in cache variables' values.
  3686. # Ultrix sh set writes to stderr and can't be redirected directly,
  3687. # and sets the high bit in the cache file unless we assign to the vars.
  3688. {
  3689.   (set) 2>&1 |
  3690.     case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3691.     *ac_space=\ *)
  3692.       # `set' does not quote correctly, so add quotes (double-quote
  3693.       # substitution turns \\\\ into \\, and sed turns \\ into \).
  3694.       sed -n \
  3695.         "s/'/'\\\\''/g;
  3696.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3697.       ;;
  3698.     *)
  3699.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  3700.       sed -n \
  3701.         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3702.       ;;
  3703.     esac;
  3704. } |
  3705.   sed '
  3706.      t clear
  3707.      : clear
  3708.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3709.      t end
  3710.      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3711.      : end' >>confcache
  3712. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3713.   if test -w $cache_file; then
  3714.     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  3715.     cat confcache >$cache_file
  3716.   else
  3717.     echo "not updating unwritable cache $cache_file"
  3718.   fi
  3719. fi
  3720. rm -f confcache
  3721.  
  3722. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3723. # Let make expand exec_prefix.
  3724. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3725.  
  3726. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  3727. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  3728. # trailing colons and then remove the whole line if VPATH becomes empty
  3729. # (actually we leave an empty line to preserve line numbers).
  3730. if test "x$srcdir" = x.; then
  3731.   ac_vpsub='/^[     ]*VPATH[     ]*=/{
  3732. s/:*\$(srcdir):*/:/;
  3733. s/:*\${srcdir}:*/:/;
  3734. s/:*@srcdir@:*/:/;
  3735. s/^\([^=]*=[     ]*\):*/\1/;
  3736. s/:*$//;
  3737. s/^[^=]*=[     ]*$//;
  3738. }'
  3739. fi
  3740.  
  3741. DEFS=-DHAVE_CONFIG_H
  3742.  
  3743. ac_libobjs=
  3744. ac_ltlibobjs=
  3745. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3746.   # 1. Remove the extension, and $U if already installed.
  3747.   ac_i=`echo "$ac_i" |
  3748.          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  3749.   # 2. Add them.
  3750.   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  3751.   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  3752. done
  3753. LIBOBJS=$ac_libobjs
  3754.  
  3755. LTLIBOBJS=$ac_ltlibobjs
  3756.  
  3757.  
  3758.  
  3759. : ${CONFIG_STATUS=./config.status}
  3760. ac_clean_files_save=$ac_clean_files
  3761. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3762. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3763. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3764. cat >$CONFIG_STATUS <<_ACEOF
  3765. #! $SHELL
  3766. # Generated by $as_me.
  3767. # Run this file to recreate the current configuration.
  3768. # Compiler output produced by configure, useful for debugging
  3769. # configure, is in config.log if it exists.
  3770.  
  3771. debug=false
  3772. ac_cs_recheck=false
  3773. ac_cs_silent=false
  3774. SHELL=\${CONFIG_SHELL-$SHELL}
  3775. _ACEOF
  3776.  
  3777. cat >>$CONFIG_STATUS <<\_ACEOF
  3778. ## --------------------- ##
  3779. ## M4sh Initialization.  ##
  3780. ## --------------------- ##
  3781.  
  3782. # Be Bourne compatible
  3783. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3784.   emulate sh
  3785.   NULLCMD=:
  3786.   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3787.   # is contrary to our usage.  Disable this feature.
  3788.   alias -g '${1+"$@"}'='"$@"'
  3789. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3790.   set -o posix
  3791. fi
  3792.  
  3793. # Support unset when possible.
  3794. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  3795.   as_unset=unset
  3796. else
  3797.   as_unset=false
  3798. fi
  3799.  
  3800.  
  3801. # Work around bugs in pre-3.0 UWIN ksh.
  3802. $as_unset ENV MAIL MAILPATH
  3803. PS1='$ '
  3804. PS2='> '
  3805. PS4='+ '
  3806.  
  3807. # NLS nuisances.
  3808. for as_var in \
  3809.   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3810.   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3811.   LC_TELEPHONE LC_TIME
  3812. do
  3813.   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3814.     eval $as_var=C; export $as_var
  3815.   else
  3816.     $as_unset $as_var
  3817.   fi
  3818. done
  3819.  
  3820. # Required to use basename.
  3821. if expr a : '\(a\)' >/dev/null 2>&1; then
  3822.   as_expr=expr
  3823. else
  3824.   as_expr=false
  3825. fi
  3826.  
  3827. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3828.   as_basename=basename
  3829. else
  3830.   as_basename=false
  3831. fi
  3832.  
  3833.  
  3834. # Name of the executable.
  3835. as_me=`$as_basename "$0" ||
  3836. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3837.      X"$0" : 'X\(//\)$' \| \
  3838.      X"$0" : 'X\(/\)$' \| \
  3839.      .     : '\(.\)' 2>/dev/null ||
  3840. echo X/"$0" |
  3841.     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3842.         /^X\/\(\/\/\)$/{ s//\1/; q; }
  3843.         /^X\/\(\/\).*/{ s//\1/; q; }
  3844.         s/.*/./; q'`
  3845.  
  3846.  
  3847. # PATH needs CR, and LINENO needs CR and PATH.
  3848. # Avoid depending upon Character Ranges.
  3849. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3850. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3851. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3852. as_cr_digits='0123456789'
  3853. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3854.  
  3855. # The user is always right.
  3856. if test "${PATH_SEPARATOR+set}" != set; then
  3857.   echo "#! /bin/sh" >conf$$.sh
  3858.   echo  "exit 0"   >>conf$$.sh
  3859.   chmod +x conf$$.sh
  3860.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3861.     PATH_SEPARATOR=';'
  3862.   else
  3863.     PATH_SEPARATOR=:
  3864.   fi
  3865.   rm -f conf$$.sh
  3866. fi
  3867.  
  3868.  
  3869.   as_lineno_1=$LINENO
  3870.   as_lineno_2=$LINENO
  3871.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3872.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  3873.   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  3874.   # Find who we are.  Look in the path if we contain no path at all
  3875.   # relative or not.
  3876.   case $0 in
  3877.     *[\\/]* ) as_myself=$0 ;;
  3878.     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881.   IFS=$as_save_IFS
  3882.   test -z "$as_dir" && as_dir=.
  3883.   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3884. done
  3885.  
  3886.        ;;
  3887.   esac
  3888.   # We did not find ourselves, most probably we were run as `sh COMMAND'
  3889.   # in which case we are not to be found in the path.
  3890.   if test "x$as_myself" = x; then
  3891.     as_myself=$0
  3892.   fi
  3893.   if test ! -f "$as_myself"; then
  3894.     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  3895. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  3896.    { (exit 1); exit 1; }; }
  3897.   fi
  3898.   case $CONFIG_SHELL in
  3899.   '')
  3900.     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3902. do
  3903.   IFS=$as_save_IFS
  3904.   test -z "$as_dir" && as_dir=.
  3905.   for as_base in sh bash ksh sh5; do
  3906.      case $as_dir in
  3907.      /*)
  3908.        if ("$as_dir/$as_base" -c '
  3909.   as_lineno_1=$LINENO
  3910.   as_lineno_2=$LINENO
  3911.   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3912.   test "x$as_lineno_1" != "x$as_lineno_2" &&
  3913.   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  3914.          $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3915.          $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3916.          CONFIG_SHELL=$as_dir/$as_base
  3917.          export CONFIG_SHELL
  3918.          exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3919.        fi;;
  3920.      esac
  3921.        done
  3922. done
  3923. ;;
  3924.   esac
  3925.  
  3926.   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3927.   # uniformly replaced by the line number.  The first 'sed' inserts a
  3928.   # line-number line before each line; the second 'sed' does the real
  3929.   # work.  The second script uses 'N' to pair each line-number line
  3930.   # with the numbered line, and appends trailing '-' during
  3931.   # substitution so that $LINENO is not a special case at line end.
  3932.   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3933.   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  3934.   sed '=' <$as_myself |
  3935.     sed '
  3936.       N
  3937.       s,$,-,
  3938.       : loop
  3939.       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3940.       t loop
  3941.       s,-$,,
  3942.       s,^['$as_cr_digits']*\n,,
  3943.     ' >$as_me.lineno &&
  3944.   chmod +x $as_me.lineno ||
  3945.     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  3946. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  3947.    { (exit 1); exit 1; }; }
  3948.  
  3949.   # Don't try to exec as it changes $[0], causing all sort of problems
  3950.   # (the dirname of $[0] is not the place where we might find the
  3951.   # original and so on.  Autoconf is especially sensible to this).
  3952.   . ./$as_me.lineno
  3953.   # Exit status is that of the last command.
  3954.   exit
  3955. }
  3956.  
  3957.  
  3958. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3959.   *c*,-n*) ECHO_N= ECHO_C='
  3960. ' ECHO_T='    ' ;;
  3961.   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  3962.   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  3963. esac
  3964.  
  3965. if expr a : '\(a\)' >/dev/null 2>&1; then
  3966.   as_expr=expr
  3967. else
  3968.   as_expr=false
  3969. fi
  3970.  
  3971. rm -f conf$$ conf$$.exe conf$$.file
  3972. echo >conf$$.file
  3973. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3974.   # We could just check for DJGPP; but this test a) works b) is more generic
  3975.   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  3976.   if test -f conf$$.exe; then
  3977.     # Don't use ln at all; we don't have any links
  3978.     as_ln_s='cp -p'
  3979.   else
  3980.     as_ln_s='ln -s'
  3981.   fi
  3982. elif ln conf$$.file conf$$ 2>/dev/null; then
  3983.   as_ln_s=ln
  3984. else
  3985.   as_ln_s='cp -p'
  3986. fi
  3987. rm -f conf$$ conf$$.exe conf$$.file
  3988.  
  3989. if mkdir -p . 2>/dev/null; then
  3990.   as_mkdir_p=:
  3991. else
  3992.   as_mkdir_p=false
  3993. fi
  3994.  
  3995. as_executable_p="test -f"
  3996.  
  3997. # Sed expression to map a string onto a valid CPP name.
  3998. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  3999.  
  4000. # Sed expression to map a string onto a valid variable name.
  4001. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  4002.  
  4003.  
  4004. # IFS
  4005. # We need space, tab and new line, in precisely that order.
  4006. as_nl='
  4007. '
  4008. IFS="     $as_nl"
  4009.  
  4010. # CDPATH.
  4011. $as_unset CDPATH
  4012.  
  4013. exec 6>&1
  4014.  
  4015. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4016. # report actual input values of CONFIG_FILES etc. instead of their
  4017. # values after options handling.  Logging --version etc. is OK.
  4018. exec 5>>config.log
  4019. {
  4020.   echo
  4021.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4022. ## Running $as_me. ##
  4023. _ASBOX
  4024. } >&5
  4025. cat >&5 <<_CSEOF
  4026.  
  4027. This file was extended by $as_me, which was
  4028. generated by GNU Autoconf 2.57.  Invocation command line was
  4029.  
  4030.   CONFIG_FILES    = $CONFIG_FILES
  4031.   CONFIG_HEADERS  = $CONFIG_HEADERS
  4032.   CONFIG_LINKS    = $CONFIG_LINKS
  4033.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  4034.   $ $0 $@
  4035.  
  4036. _CSEOF
  4037. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4038. echo >&5
  4039. _ACEOF
  4040.  
  4041. # Files that config.status was made for.
  4042. if test -n "$ac_config_files"; then
  4043.   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4044. fi
  4045.  
  4046. if test -n "$ac_config_headers"; then
  4047.   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4048. fi
  4049.  
  4050. if test -n "$ac_config_links"; then
  4051.   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4052. fi
  4053.  
  4054. if test -n "$ac_config_commands"; then
  4055.   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4056. fi
  4057.  
  4058. cat >>$CONFIG_STATUS <<\_ACEOF
  4059.  
  4060. ac_cs_usage="\
  4061. \`$as_me' instantiates files from templates according to the
  4062. current configuration.
  4063.  
  4064. Usage: $0 [OPTIONS] [FILE]...
  4065.  
  4066.   -h, --help       print this help, then exit
  4067.   -V, --version    print version number, then exit
  4068.   -q, --quiet      do not print progress messages
  4069.   -d, --debug      don't remove temporary files
  4070.       --recheck    update $as_me by reconfiguring in the same conditions
  4071.   --file=FILE[:TEMPLATE]
  4072.                    instantiate the configuration file FILE
  4073.   --header=FILE[:TEMPLATE]
  4074.                    instantiate the configuration header FILE
  4075.  
  4076. Configuration files:
  4077. $config_files
  4078.  
  4079. Configuration headers:
  4080. $config_headers
  4081.  
  4082. Report bugs to <bug-autoconf@gnu.org>."
  4083. _ACEOF
  4084.  
  4085. cat >>$CONFIG_STATUS <<_ACEOF
  4086. ac_cs_version="\\
  4087. config.status
  4088. configured by $0, generated by GNU Autoconf 2.57,
  4089.   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4090.  
  4091. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  4092. Free Software Foundation, Inc.
  4093. This config.status script is free software; the Free Software Foundation
  4094. gives unlimited permission to copy, distribute and modify it."
  4095. srcdir=$srcdir
  4096. _ACEOF
  4097.  
  4098. cat >>$CONFIG_STATUS <<\_ACEOF
  4099. # If no file are specified by the user, then we need to provide default
  4100. # value.  By we need to know if files were specified by the user.
  4101. ac_need_defaults=:
  4102. while test $# != 0
  4103. do
  4104.   case $1 in
  4105.   --*=*)
  4106.     ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4107.     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4108.     ac_shift=:
  4109.     ;;
  4110.   -*)
  4111.     ac_option=$1
  4112.     ac_optarg=$2
  4113.     ac_shift=shift
  4114.     ;;
  4115.   *) # This is not an option, so the user has probably given explicit
  4116.      # arguments.
  4117.      ac_option=$1
  4118.      ac_need_defaults=false;;
  4119.   esac
  4120.  
  4121.   case $ac_option in
  4122.   # Handling of the options.
  4123. _ACEOF
  4124. cat >>$CONFIG_STATUS <<\_ACEOF
  4125.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4126.     ac_cs_recheck=: ;;
  4127.   --version | --vers* | -V )
  4128.     echo "$ac_cs_version"; exit 0 ;;
  4129.   --he | --h)
  4130.     # Conflict between --help and --header
  4131.     { { echo "$as_me:$LINENO: error: ambiguous option: $1
  4132. Try \`$0 --help' for more information." >&5
  4133. echo "$as_me: error: ambiguous option: $1
  4134. Try \`$0 --help' for more information." >&2;}
  4135.    { (exit 1); exit 1; }; };;
  4136.   --help | --hel | -h )
  4137.     echo "$ac_cs_usage"; exit 0 ;;
  4138.   --debug | --d* | -d )
  4139.     debug=: ;;
  4140.   --file | --fil | --fi | --f )
  4141.     $ac_shift
  4142.     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4143.     ac_need_defaults=false;;
  4144.   --header | --heade | --head | --hea )
  4145.     $ac_shift
  4146.     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4147.     ac_need_defaults=false;;
  4148.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4149.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4150.     ac_cs_silent=: ;;
  4151.  
  4152.   # This is an error.
  4153.   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  4154. Try \`$0 --help' for more information." >&5
  4155. echo "$as_me: error: unrecognized option: $1
  4156. Try \`$0 --help' for more information." >&2;}
  4157.    { (exit 1); exit 1; }; } ;;
  4158.  
  4159.   *) ac_config_targets="$ac_config_targets $1" ;;
  4160.  
  4161.   esac
  4162.   shift
  4163. done
  4164.  
  4165. ac_configure_extra_args=
  4166.  
  4167. if $ac_cs_silent; then
  4168.   exec 6>/dev/null
  4169.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  4170. fi
  4171.  
  4172. _ACEOF
  4173. cat >>$CONFIG_STATUS <<_ACEOF
  4174. if \$ac_cs_recheck; then
  4175.   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4176.   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4177. fi
  4178.  
  4179. _ACEOF
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185. cat >>$CONFIG_STATUS <<\_ACEOF
  4186. for ac_config_target in $ac_config_targets
  4187. do
  4188.   case "$ac_config_target" in
  4189.   # Handling of arguments.
  4190.   "openh323u.mak" ) CONFIG_FILES="$CONFIG_FILES openh323u.mak" ;;
  4191.   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4192.   "include/openh323buildopts.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/openh323buildopts.h" ;;
  4193.   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4194. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4195.    { (exit 1); exit 1; }; };;
  4196.   esac
  4197. done
  4198.  
  4199. # If the user did not use the arguments to specify the items to instantiate,
  4200. # then the envvar interface is used.  Set only those that are not.
  4201. # We use the long form for the default assignment because of an extremely
  4202. # bizarre bug on SunOS 4.1.3.
  4203. if $ac_need_defaults; then
  4204.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4205.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4206. fi
  4207.  
  4208. # Have a temporary directory for convenience.  Make it in the build tree
  4209. # simply because there is no reason to put it here, and in addition,
  4210. # creating and moving files from /tmp can sometimes cause problems.
  4211. # Create a temporary directory, and hook for its removal unless debugging.
  4212. $debug ||
  4213. {
  4214.   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4215.   trap '{ (exit 1); exit 1; }' 1 2 13 15
  4216. }
  4217.  
  4218. # Create a (secure) tmp directory for tmp files.
  4219.  
  4220. {
  4221.   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  4222.   test -n "$tmp" && test -d "$tmp"
  4223. }  ||
  4224. {
  4225.   tmp=./confstat$$-$RANDOM
  4226.   (umask 077 && mkdir $tmp)
  4227. } ||
  4228. {
  4229.    echo "$me: cannot create a temporary directory in ." >&2
  4230.    { (exit 1); exit 1; }
  4231. }
  4232.  
  4233. _ACEOF
  4234.  
  4235. cat >>$CONFIG_STATUS <<_ACEOF
  4236.  
  4237. #
  4238. # CONFIG_FILES section.
  4239. #
  4240.  
  4241. # No need to generate the scripts if there are no CONFIG_FILES.
  4242. # This happens for instance when ./config.status config.h
  4243. if test -n "\$CONFIG_FILES"; then
  4244.   # Protect against being on the right side of a sed subst in config.status.
  4245.   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  4246.    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  4247. s,@SHELL@,$SHELL,;t t
  4248. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  4249. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  4250. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  4251. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  4252. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  4253. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  4254. s,@exec_prefix@,$exec_prefix,;t t
  4255. s,@prefix@,$prefix,;t t
  4256. s,@program_transform_name@,$program_transform_name,;t t
  4257. s,@bindir@,$bindir,;t t
  4258. s,@sbindir@,$sbindir,;t t
  4259. s,@libexecdir@,$libexecdir,;t t
  4260. s,@datadir@,$datadir,;t t
  4261. s,@sysconfdir@,$sysconfdir,;t t
  4262. s,@sharedstatedir@,$sharedstatedir,;t t
  4263. s,@localstatedir@,$localstatedir,;t t
  4264. s,@libdir@,$libdir,;t t
  4265. s,@includedir@,$includedir,;t t
  4266. s,@oldincludedir@,$oldincludedir,;t t
  4267. s,@infodir@,$infodir,;t t
  4268. s,@mandir@,$mandir,;t t
  4269. s,@build_alias@,$build_alias,;t t
  4270. s,@host_alias@,$host_alias,;t t
  4271. s,@target_alias@,$target_alias,;t t
  4272. s,@DEFS@,$DEFS,;t t
  4273. s,@ECHO_C@,$ECHO_C,;t t
  4274. s,@ECHO_N@,$ECHO_N,;t t
  4275. s,@ECHO_T@,$ECHO_T,;t t
  4276. s,@LIBS@,$LIBS,;t t
  4277. s,@CXX@,$CXX,;t t
  4278. s,@CXXFLAGS@,$CXXFLAGS,;t t
  4279. s,@LDFLAGS@,$LDFLAGS,;t t
  4280. s,@CPPFLAGS@,$CPPFLAGS,;t t
  4281. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  4282. s,@EXEEXT@,$EXEEXT,;t t
  4283. s,@OBJEXT@,$OBJEXT,;t t
  4284. s,@OPENH323DIR@,$OPENH323DIR,;t t
  4285. s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
  4286. s,@LIBDIR@,$LIBDIR,;t t
  4287. s,@OPENH323_VERSION@,$OPENH323_VERSION,;t t
  4288. s,@PTLIB_CONFIG@,$PTLIB_CONFIG,;t t
  4289. s,@PWLIBDIR@,$PWLIBDIR,;t t
  4290. s,@CC@,$CC,;t t
  4291. s,@CFLAGS@,$CFLAGS,;t t
  4292. s,@ac_ct_CC@,$ac_ct_CC,;t t
  4293. s,@CPP@,$CPP,;t t
  4294. s,@EGREP@,$EGREP,;t t
  4295. s,@H323_AVCODEC@,$H323_AVCODEC,;t t
  4296. s,@H323_VICH263@,$H323_VICH263,;t t
  4297. s,@STDCCFLAGS@,$STDCCFLAGS,;t t
  4298. s,@ENDLDLIBS@,$ENDLDLIBS,;t t
  4299. s,@LIBOBJS@,$LIBOBJS,;t t
  4300. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  4301. CEOF
  4302.  
  4303. _ACEOF
  4304.  
  4305.   cat >>$CONFIG_STATUS <<\_ACEOF
  4306.   # Split the substitutions into bite-sized pieces for seds with
  4307.   # small command number limits, like on Digital OSF/1 and HP-UX.
  4308.   ac_max_sed_lines=48
  4309.   ac_sed_frag=1 # Number of current file.
  4310.   ac_beg=1 # First line for current file.
  4311.   ac_end=$ac_max_sed_lines # Line after last line for current file.
  4312.   ac_more_lines=:
  4313.   ac_sed_cmds=
  4314.   while $ac_more_lines; do
  4315.     if test $ac_beg -gt 1; then
  4316.       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4317.     else
  4318.       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4319.     fi
  4320.     if test ! -s $tmp/subs.frag; then
  4321.       ac_more_lines=false
  4322.     else
  4323.       # The purpose of the label and of the branching condition is to
  4324.       # speed up the sed processing (if there are no `@' at all, there
  4325.       # is no need to browse any of the substitutions).
  4326.       # These are the two extra sed commands mentioned above.
  4327.       (echo ':t
  4328.   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  4329.       if test -z "$ac_sed_cmds"; then
  4330.       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  4331.       else
  4332.       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  4333.       fi
  4334.       ac_sed_frag=`expr $ac_sed_frag + 1`
  4335.       ac_beg=$ac_end
  4336.       ac_end=`expr $ac_end + $ac_max_sed_lines`
  4337.     fi
  4338.   done
  4339.   if test -z "$ac_sed_cmds"; then
  4340.     ac_sed_cmds=cat
  4341.   fi
  4342. fi # test -n "$CONFIG_FILES"
  4343.  
  4344. _ACEOF
  4345. cat >>$CONFIG_STATUS <<\_ACEOF
  4346. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  4347.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4348.   case $ac_file in
  4349.   - | *:- | *:-:* ) # input from stdin
  4350.         cat >$tmp/stdin
  4351.         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4352.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4353.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4354.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4355.   * )   ac_file_in=$ac_file.in ;;
  4356.   esac
  4357.  
  4358.   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  4359.   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4360. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4361.          X"$ac_file" : 'X\(//\)[^/]' \| \
  4362.          X"$ac_file" : 'X\(//\)$' \| \
  4363.          X"$ac_file" : 'X\(/\)' \| \
  4364.          .     : '\(.\)' 2>/dev/null ||
  4365. echo X"$ac_file" |
  4366.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4367.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4368.         /^X\(\/\/\)$/{ s//\1/; q; }
  4369.         /^X\(\/\).*/{ s//\1/; q; }
  4370.         s/.*/./; q'`
  4371.   { if $as_mkdir_p; then
  4372.     mkdir -p "$ac_dir"
  4373.   else
  4374.     as_dir="$ac_dir"
  4375.     as_dirs=
  4376.     while test ! -d "$as_dir"; do
  4377.       as_dirs="$as_dir $as_dirs"
  4378.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4379. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4380.          X"$as_dir" : 'X\(//\)[^/]' \| \
  4381.          X"$as_dir" : 'X\(//\)$' \| \
  4382.          X"$as_dir" : 'X\(/\)' \| \
  4383.          .     : '\(.\)' 2>/dev/null ||
  4384. echo X"$as_dir" |
  4385.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4386.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4387.         /^X\(\/\/\)$/{ s//\1/; q; }
  4388.         /^X\(\/\).*/{ s//\1/; q; }
  4389.         s/.*/./; q'`
  4390.     done
  4391.     test ! -n "$as_dirs" || mkdir $as_dirs
  4392.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4393. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4394.    { (exit 1); exit 1; }; }; }
  4395.  
  4396.   ac_builddir=.
  4397.  
  4398. if test "$ac_dir" != .; then
  4399.   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4400.   # A "../" for each directory in $ac_dir_suffix.
  4401.   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4402. else
  4403.   ac_dir_suffix= ac_top_builddir=
  4404. fi
  4405.  
  4406. case $srcdir in
  4407.   .)  # No --srcdir option.  We are building in place.
  4408.     ac_srcdir=.
  4409.     if test -z "$ac_top_builddir"; then
  4410.        ac_top_srcdir=.
  4411.     else
  4412.        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4413.     fi ;;
  4414.   [\\/]* | ?:[\\/]* )  # Absolute path.
  4415.     ac_srcdir=$srcdir$ac_dir_suffix;
  4416.     ac_top_srcdir=$srcdir ;;
  4417.   *) # Relative path.
  4418.     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4419.     ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4420. esac
  4421. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4422. # absolute.
  4423. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4424. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4425. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4426. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4427.  
  4428.  
  4429.  
  4430.   if test x"$ac_file" != x-; then
  4431.     { echo "$as_me:$LINENO: creating $ac_file" >&5
  4432. echo "$as_me: creating $ac_file" >&6;}
  4433.     rm -f "$ac_file"
  4434.   fi
  4435.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  4436.   # use $as_me), people would be surprised to read:
  4437.   #    /* config.h.  Generated by config.status.  */
  4438.   if test x"$ac_file" = x-; then
  4439.     configure_input=
  4440.   else
  4441.     configure_input="$ac_file.  "
  4442.   fi
  4443.   configure_input=$configure_input"Generated from `echo $ac_file_in |
  4444.                                      sed 's,.*/,,'` by configure."
  4445.  
  4446.   # First look for the input files in the build tree, otherwise in the
  4447.   # src tree.
  4448.   ac_file_inputs=`IFS=:
  4449.     for f in $ac_file_in; do
  4450.       case $f in
  4451.       -) echo $tmp/stdin ;;
  4452.       [\\/$]*)
  4453.          # Absolute (can't be DOS-style, as IFS=:)
  4454.          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4455. echo "$as_me: error: cannot find input file: $f" >&2;}
  4456.    { (exit 1); exit 1; }; }
  4457.          echo $f;;
  4458.       *) # Relative
  4459.          if test -f "$f"; then
  4460.            # Build tree
  4461.            echo $f
  4462.          elif test -f "$srcdir/$f"; then
  4463.            # Source tree
  4464.            echo $srcdir/$f
  4465.          else
  4466.            # /dev/null tree
  4467.            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4468. echo "$as_me: error: cannot find input file: $f" >&2;}
  4469.    { (exit 1); exit 1; }; }
  4470.          fi;;
  4471.       esac
  4472.     done` || { (exit 1); exit 1; }
  4473. _ACEOF
  4474. cat >>$CONFIG_STATUS <<_ACEOF
  4475.   sed "$ac_vpsub
  4476. $extrasub
  4477. _ACEOF
  4478. cat >>$CONFIG_STATUS <<\_ACEOF
  4479. :t
  4480. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4481. s,@configure_input@,$configure_input,;t t
  4482. s,@srcdir@,$ac_srcdir,;t t
  4483. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  4484. s,@top_srcdir@,$ac_top_srcdir,;t t
  4485. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  4486. s,@builddir@,$ac_builddir,;t t
  4487. s,@abs_builddir@,$ac_abs_builddir,;t t
  4488. s,@top_builddir@,$ac_top_builddir,;t t
  4489. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  4490. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  4491.   rm -f $tmp/stdin
  4492.   if test x"$ac_file" != x-; then
  4493.     mv $tmp/out $ac_file
  4494.   else
  4495.     cat $tmp/out
  4496.     rm -f $tmp/out
  4497.   fi
  4498.  
  4499. done
  4500. _ACEOF
  4501. cat >>$CONFIG_STATUS <<\_ACEOF
  4502.  
  4503. #
  4504. # CONFIG_HEADER section.
  4505. #
  4506.  
  4507. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4508. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4509. #
  4510. # ac_d sets the value in "#define NAME VALUE" lines.
  4511. ac_dA='s,^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4512. ac_dB='[     ].*$,\1#\2'
  4513. ac_dC=' '
  4514. ac_dD=',;t'
  4515. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4516. ac_uA='s,^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4517. ac_uB='$,\1#\2define\3'
  4518. ac_uC=' '
  4519. ac_uD=',;t'
  4520.  
  4521. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  4522.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4523.   case $ac_file in
  4524.   - | *:- | *:-:* ) # input from stdin
  4525.         cat >$tmp/stdin
  4526.         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4527.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4528.   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4529.         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4530.   * )   ac_file_in=$ac_file.in ;;
  4531.   esac
  4532.  
  4533.   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  4534. echo "$as_me: creating $ac_file" >&6;}
  4535.  
  4536.   # First look for the input files in the build tree, otherwise in the
  4537.   # src tree.
  4538.   ac_file_inputs=`IFS=:
  4539.     for f in $ac_file_in; do
  4540.       case $f in
  4541.       -) echo $tmp/stdin ;;
  4542.       [\\/$]*)
  4543.          # Absolute (can't be DOS-style, as IFS=:)
  4544.          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4545. echo "$as_me: error: cannot find input file: $f" >&2;}
  4546.    { (exit 1); exit 1; }; }
  4547.          echo $f;;
  4548.       *) # Relative
  4549.          if test -f "$f"; then
  4550.            # Build tree
  4551.            echo $f
  4552.          elif test -f "$srcdir/$f"; then
  4553.            # Source tree
  4554.            echo $srcdir/$f
  4555.          else
  4556.            # /dev/null tree
  4557.            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4558. echo "$as_me: error: cannot find input file: $f" >&2;}
  4559.    { (exit 1); exit 1; }; }
  4560.          fi;;
  4561.       esac
  4562.     done` || { (exit 1); exit 1; }
  4563.   # Remove the trailing spaces.
  4564.   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
  4565.  
  4566. _ACEOF
  4567.  
  4568. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  4569. # `conftest.undefs', that substitutes the proper values into
  4570. # config.h.in to produce config.h.  The first handles `#define'
  4571. # templates, and the second `#undef' templates.
  4572. # And first: Protect against being on the right side of a sed subst in
  4573. # config.status.  Protect against being in an unquoted here document
  4574. # in config.status.
  4575. rm -f conftest.defines conftest.undefs
  4576. # Using a here document instead of a string reduces the quoting nightmare.
  4577. # Putting comments in sed scripts is not portable.
  4578. #
  4579. # `end' is used to avoid that the second main sed command (meant for
  4580. # 0-ary CPP macros) applies to n-ary macro definitions.
  4581. # See the Autoconf documentation for `clear'.
  4582. cat >confdef2sed.sed <<\_ACEOF
  4583. s/[\\&,]/\\&/g
  4584. s,[\\$`],\\&,g
  4585. t clear
  4586. : clear
  4587. s,^[     ]*#[     ]*define[     ][     ]*\([^     (][^     (]*\)\(([^)]*)\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  4588. t end
  4589. s,^[     ]*#[     ]*define[     ][     ]*\([^     ][^     ]*\)[     ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  4590. : end
  4591. _ACEOF
  4592. # If some macros were called several times there might be several times
  4593. # the same #defines, which is useless.  Nevertheless, we may not want to
  4594. # sort them, since we want the *last* AC-DEFINE to be honored.
  4595. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  4596. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  4597. rm -f confdef2sed.sed
  4598.  
  4599. # This sed command replaces #undef with comments.  This is necessary, for
  4600. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4601. # on some systems where configure will not decide to define it.
  4602. cat >>conftest.undefs <<\_ACEOF
  4603. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  4604. _ACEOF
  4605.  
  4606. # Break up conftest.defines because some shells have a limit on the size
  4607. # of here documents, and old seds have small limits too (100 cmds).
  4608. echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  4609. echo '  if grep "^[     ]*#[     ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  4610. echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  4611. echo '  :' >>$CONFIG_STATUS
  4612. rm -f conftest.tail
  4613. while grep . conftest.defines >/dev/null
  4614. do
  4615.   # Write a limited-size here document to $tmp/defines.sed.
  4616.   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  4617.   # Speed up: don't consider the non `#define' lines.
  4618.   echo '/^[     ]*#[     ]*define/!b' >>$CONFIG_STATUS
  4619.   # Work around the forget-to-reset-the-flag bug.
  4620.   echo 't clr' >>$CONFIG_STATUS
  4621.   echo ': clr' >>$CONFIG_STATUS
  4622.   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  4623.   echo 'CEOF
  4624.   sed -f $tmp/defines.sed $tmp/in >$tmp/out
  4625.   rm -f $tmp/in
  4626.   mv $tmp/out $tmp/in
  4627. ' >>$CONFIG_STATUS
  4628.   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  4629.   rm -f conftest.defines
  4630.   mv conftest.tail conftest.defines
  4631. done
  4632. rm -f conftest.defines
  4633. echo '  fi # grep' >>$CONFIG_STATUS
  4634. echo >>$CONFIG_STATUS
  4635.  
  4636. # Break up conftest.undefs because some shells have a limit on the size
  4637. # of here documents, and old seds have small limits too (100 cmds).
  4638. echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
  4639. rm -f conftest.tail
  4640. while grep . conftest.undefs >/dev/null
  4641. do
  4642.   # Write a limited-size here document to $tmp/undefs.sed.
  4643.   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  4644.   # Speed up: don't consider the non `#undef'
  4645.   echo '/^[     ]*#[     ]*undef/!b' >>$CONFIG_STATUS
  4646.   # Work around the forget-to-reset-the-flag bug.
  4647.   echo 't clr' >>$CONFIG_STATUS
  4648.   echo ': clr' >>$CONFIG_STATUS
  4649.   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  4650.   echo 'CEOF
  4651.   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  4652.   rm -f $tmp/in
  4653.   mv $tmp/out $tmp/in
  4654. ' >>$CONFIG_STATUS
  4655.   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  4656.   rm -f conftest.undefs
  4657.   mv conftest.tail conftest.undefs
  4658. done
  4659. rm -f conftest.undefs
  4660.  
  4661. cat >>$CONFIG_STATUS <<\_ACEOF
  4662.   # Let's still pretend it is `configure' which instantiates (i.e., don't
  4663.   # use $as_me), people would be surprised to read:
  4664.   #    /* config.h.  Generated by config.status.  */
  4665.   if test x"$ac_file" = x-; then
  4666.     echo "/* Generated by configure.  */" >$tmp/config.h
  4667.   else
  4668.     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
  4669.   fi
  4670.   cat $tmp/in >>$tmp/config.h
  4671.   rm -f $tmp/in
  4672.   if test x"$ac_file" != x-; then
  4673.     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  4674.       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  4675. echo "$as_me: $ac_file is unchanged" >&6;}
  4676.     else
  4677.       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4678. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4679.          X"$ac_file" : 'X\(//\)[^/]' \| \
  4680.          X"$ac_file" : 'X\(//\)$' \| \
  4681.          X"$ac_file" : 'X\(/\)' \| \
  4682.          .     : '\(.\)' 2>/dev/null ||
  4683. echo X"$ac_file" |
  4684.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4685.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4686.         /^X\(\/\/\)$/{ s//\1/; q; }
  4687.         /^X\(\/\).*/{ s//\1/; q; }
  4688.         s/.*/./; q'`
  4689.       { if $as_mkdir_p; then
  4690.     mkdir -p "$ac_dir"
  4691.   else
  4692.     as_dir="$ac_dir"
  4693.     as_dirs=
  4694.     while test ! -d "$as_dir"; do
  4695.       as_dirs="$as_dir $as_dirs"
  4696.       as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4697. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4698.          X"$as_dir" : 'X\(//\)[^/]' \| \
  4699.          X"$as_dir" : 'X\(//\)$' \| \
  4700.          X"$as_dir" : 'X\(/\)' \| \
  4701.          .     : '\(.\)' 2>/dev/null ||
  4702. echo X"$as_dir" |
  4703.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4704.         /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4705.         /^X\(\/\/\)$/{ s//\1/; q; }
  4706.         /^X\(\/\).*/{ s//\1/; q; }
  4707.         s/.*/./; q'`
  4708.     done
  4709.     test ! -n "$as_dirs" || mkdir $as_dirs
  4710.   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4711. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4712.    { (exit 1); exit 1; }; }; }
  4713.  
  4714.       rm -f $ac_file
  4715.       mv $tmp/config.h $ac_file
  4716.     fi
  4717.   else
  4718.     cat $tmp/config.h
  4719.     rm -f $tmp/config.h
  4720.   fi
  4721. done
  4722. _ACEOF
  4723.  
  4724. cat >>$CONFIG_STATUS <<\_ACEOF
  4725.  
  4726. { (exit 0); exit 0; }
  4727. _ACEOF
  4728. chmod +x $CONFIG_STATUS
  4729. ac_clean_files=$ac_clean_files_save
  4730.  
  4731.  
  4732. # configure is writing to config.log, and then calls config.status.
  4733. # config.status does its own redirection, appending to config.log.
  4734. # Unfortunately, on DOS this fails, as config.log is still kept open
  4735. # by configure, so config.status won't be able to write to it; its
  4736. # output is simply discarded.  So we exec the FD to /dev/null,
  4737. # effectively closing config.log, so it can be properly (re)opened and
  4738. # appended to by config.status.  When coming back to configure, we
  4739. # need to make the FD available again.
  4740. if test "$no_create" != yes; then
  4741.   ac_cs_success=:
  4742.   ac_config_status_args=
  4743.   test "$silent" = yes &&
  4744.     ac_config_status_args="$ac_config_status_args --quiet"
  4745.   exec 5>/dev/null
  4746.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4747.   exec 5>>config.log
  4748.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4749.   # would make configure fail if this is the last instruction.
  4750.   $ac_cs_success || { (exit 1); exit 1; }
  4751. fi
  4752.  
  4753.  
  4754.