gdb/gdbserver/configure - gdb

Functions defined

Source code

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##

  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17.   emulate sh
  18.   NULLCMD=:
  19.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20.   # is contrary to our usage.  Disable this feature.
  21.   alias -g '${1+"$@"}'='"$@"'
  22.   setopt NO_GLOB_SUBST
  23. else
  24.   case `(set -o) 2>/dev/null` in #(
  25.   *posix*) :
  26.     set -o posix ;; #(
  27.   *) :
  28.      ;;
  29. esac
  30. fi


  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42.   as_echo='print -r --'
  43.   as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45.   as_echo='printf %s\n'
  46.   as_echo_n='printf %s'
  47. else
  48.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50.     as_echo_n='/usr/ucb/echo -n'
  51.   else
  52.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53.     as_echo_n_body='eval
  54.       arg=$1;
  55.       case $arg in #(
  56.       *"$as_nl"*)
  57.         expr "X$arg" : "X\\(.*\\)$as_nl";
  58.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59.       esac;
  60.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61.     '
  62.     export as_echo_n_body
  63.     as_echo_n='sh -c $as_echo_n_body as_echo'
  64.   fi
  65.   export as_echo_body
  66.   as_echo='sh -c $as_echo_body as_echo'
  67. fi

  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70.   PATH_SEPARATOR=:
  71.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73.       PATH_SEPARATOR=';'
  74.   }
  75. fi


  76. # IFS
  77. # We need space, tab and new line, in precisely that order.  Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" ""        $as_nl"

  82. # Find who we are.  Look in the path if we contain no directory separator.
  83. case $0 in #((
  84.   *[\\/]* ) as_myself=$0 ;;
  85.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88.   IFS=$as_save_IFS
  89.   test -z "$as_dir" && as_dir=.
  90.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91.   done
  92. IFS=$as_save_IFS

  93.      ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98.   as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102.   exit 1
  103. fi

  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there.  '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '

  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE

  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH

  122. if test "x$CONFIG_SHELL" = x; then
  123.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124.   emulate sh
  125.   NULLCMD=:
  126.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127.   # is contrary to our usage.  Disable this feature.
  128.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129.   setopt NO_GLOB_SUBST
  130. else
  131.   case \`(set -o) 2>/dev/null\` in #(
  132.   *posix*) :
  133.     set -o posix ;; #(
  134.   *) :
  135.      ;;
  136. esac
  137. fi
  138. "
  139.   as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }

  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

  150. else
  151.   exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159.   if (eval "$as_required") 2>/dev/null; then :
  160.   as_have_required=yes
  161. else
  162.   as_have_required=no
  163. fi
  164.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

  165. else
  166.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170.   IFS=$as_save_IFS
  171.   test -z "$as_dir" && as_dir=.
  172.   as_found=:
  173.   case $as_dir in #(
  174.          /*)
  175.            for as_base in sh bash ksh sh5; do
  176.              # Try only shells that exist, to save several forks.
  177.              as_shell=$as_dir/$as_base
  178.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180.   CONFIG_SHELL=$as_shell as_have_required=yes
  181.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182.   break 2
  183. fi
  184. fi
  185.            done;;
  186.        esac
  187.   as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191.   CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS


  194.       if test "x$CONFIG_SHELL" != x; then :
  195.   # We cannot yet assume a decent shell, so we have to provide a
  196.         # neutralization value for shells without unset; and this also
  197.         # works around shells that cannot unset nonexistent variables.
  198.         BASH_ENV=/dev/null
  199.         ENV=/dev/null
  200.         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201.         export CONFIG_SHELL
  202.         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi

  204.     if test x$as_have_required = xno; then :
  205.   $as_echo "$0: This script requires a shell more modern than all"
  206.   $as_echo "$0: the shells that I found on your system."
  207.   if test x${ZSH_VERSION+set} = xset ; then
  208.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210.   else
  211.     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215.   fi
  216.   exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS

  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233.   { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset

  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241.   return $1
  242. } # as_fn_set_status

  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248.   set +e
  249.   as_fn_set_status $1
  250.   exit $1
  251. } # as_fn_exit

  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {

  257.   case $as_dir in #(
  258.   -*) as_dir=./$as_dir;;
  259.   esac
  260.   test -d "$as_dir" || eval $as_mkdir_p || {
  261.     as_dirs=
  262.     while :; do
  263.       case $as_dir in #(
  264.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265.       *) as_qdir=$as_dir;;
  266.       esac
  267.       as_dirs="'$as_qdir' $as_dirs"
  268.       as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270.          X"$as_dir" : 'X\(//\)[^/]' \| \
  271.          X"$as_dir" : 'X\(//\)$' \| \
  272.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275.             s//\1/
  276.             q
  277.           }
  278.           /^X\(\/\/\)[^/].*/{
  279.             s//\1/
  280.             q
  281.           }
  282.           /^X\(\/\/\)$/{
  283.             s//\1/
  284.             q
  285.           }
  286.           /^X\(\/\).*/{
  287.             s//\1/
  288.             q
  289.           }
  290.           s/.*/./; q'`
  291.       test -d "$as_dir" && break
  292.     done
  293.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  294.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303.   eval 'as_fn_append ()
  304.   {
  305.     eval $1+=\$2
  306.   }'
  307. else
  308.   as_fn_append ()
  309.   {
  310.     eval $1=\$$1\$2
  311.   }
  312. fi # as_fn_append

  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319.   eval 'as_fn_arith ()
  320.   {
  321.     as_val=$(( $* ))
  322.   }'
  323. else
  324.   as_fn_arith ()
  325.   {
  326.     as_val=`expr "$@" || test $? -eq 1`
  327.   }
  328. fi # as_fn_arith


  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336.   as_status=$?; test $as_status -eq 0 && as_status=1
  337.   if test "$3"; then
  338.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340.   fi
  341.   $as_echo "$as_me: error: $1" >&2
  342.   as_fn_exit $as_status
  343. } # as_fn_error

  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346.   as_expr=expr
  347. else
  348.   as_expr=false
  349. fi

  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351.   as_basename=basename
  352. else
  353.   as_basename=false
  354. fi

  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356.   as_dirname=dirname
  357. else
  358.   as_dirname=false
  359. fi

  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362.          X"$0" : 'X\(//\)$' \| \
  363.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  366.             s//\1/
  367.             q
  368.           }
  369.           /^X\/\(\/\/\)$/{
  370.             s//\1/
  371.             q
  372.           }
  373.           /^X\/\(\/\).*/{
  374.             s//\1/
  375.             q
  376.           }
  377.           s/.*/./; q'`

  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits


  384.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  389.   sed -n '
  390.     p
  391.     /[$]LINENO/=
  392.   ' <$as_myself |
  393.     sed '
  394.       s/[$]LINENO.*/&-/
  395.       t lineno
  396.       b
  397.       :lineno
  398.       N
  399.       :loop
  400.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401.       t loop
  402.       s/-\n.*//
  403.     ' >$as_me.lineno &&
  404.   chmod +x "$as_me.lineno" ||
  405.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  406.   # Don't try to exec as it changes $[0], causing all sort of problems
  407.   # (the dirname of $[0] is not the place where we might find the
  408.   # original and so on.  Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410.   # Exit status is that of the last command.
  411.   exit
  412. }

  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416.   case `echo 'xy\c'` in
  417.   *c*) ECHO_T='        ';;        # ECHO_T is single tab character.
  418.   xy)  ECHO_C='\c';;
  419.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420.        ECHO_T='        ';;
  421.   esac;;
  422. *)
  423.   ECHO_N='-n';;
  424. esac

  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427.   rm -f conf$$.dir/conf$$.file
  428. else
  429.   rm -f conf$$.dir
  430.   mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  434.     as_ln_s='ln -s'
  435.     # ... but there are two gotchas:
  436.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438.     # In both cases, we have to default to `cp -p'.
  439.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440.       as_ln_s='cp -p'
  441.   elif ln conf$$.file conf$$ 2>/dev/null; then
  442.     as_ln_s=ln
  443.   else
  444.     as_ln_s='cp -p'
  445.   fi
  446. else
  447.   as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null

  451. if mkdir -p . 2>/dev/null; then
  452.   as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454.   test -d ./-p && rmdir ./-p
  455.   as_mkdir_p=false
  456. fi

  457. if test -x / >/dev/null 2>&1; then
  458.   as_test_x='test -x'
  459. else
  460.   if ls -dL / >/dev/null 2>&1; then
  461.     as_ls_L_option=L
  462.   else
  463.     as_ls_L_option=
  464.   fi
  465.   as_test_x='
  466.     eval sh -c '\''
  467.       if test -d "$1"; then
  468.         test -d "$1/.";
  469.       else
  470.         case $1 in #(
  471.         -*)set "./$1";;
  472.         esac;
  473.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474.         ???[sx]*):;;*)false;;esac;fi
  475.     '\'' sh
  476.   '
  477. fi
  478. as_executable_p=$as_test_x

  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


  483. exec 7<&0 </dev/null 6>&1

  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=

  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=

  506. ac_unique_file="server.c"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. #  include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. #  include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"

  542. ac_subst_vars='LTLIBOBJS
  543. LIBOBJS
  544. GNULIB_STDINT_H
  545. extra_libraries
  546. IPA_DEPFILES
  547. srv_xmlfiles
  548. srv_xmlbuiltin
  549. GDBSERVER_LIBS
  550. GDBSERVER_DEPFILES
  551. RDYNAMIC
  552. REPORT_BUGS_TEXI
  553. REPORT_BUGS_TO
  554. PKGVERSION
  555. WERROR_CFLAGS
  556. WARN_CFLAGS
  557. ustinc
  558. ustlibs
  559. ALLOCA
  560. SET_MAKE
  561. GMAKE_FALSE
  562. GMAKE_TRUE
  563. MAKE
  564. CCDEPMODE
  565. DEPDIR
  566. am__leading_dot
  567. host_noncanonical
  568. target_noncanonical
  569. RANLIB
  570. AR
  571. INSTALL_DATA
  572. INSTALL_SCRIPT
  573. INSTALL_PROGRAM
  574. target_os
  575. target_vendor
  576. target_cpu
  577. target
  578. host_os
  579. host_vendor
  580. host_cpu
  581. host
  582. build_os
  583. build_vendor
  584. build_cpu
  585. build
  586. EGREP
  587. GREP
  588. CPP
  589. OBJEXT
  590. EXEEXT
  591. ac_ct_CC
  592. CPPFLAGS
  593. LDFLAGS
  594. CFLAGS
  595. CC
  596. MAINT
  597. MAINTAINER_MODE_FALSE
  598. MAINTAINER_MODE_TRUE
  599. target_alias
  600. host_alias
  601. build_alias
  602. LIBS
  603. ECHO_T
  604. ECHO_N
  605. ECHO_C
  606. DEFS
  607. mandir
  608. localedir
  609. libdir
  610. psdir
  611. pdfdir
  612. dvidir
  613. htmldir
  614. infodir
  615. docdir
  616. oldincludedir
  617. includedir
  618. localstatedir
  619. sharedstatedir
  620. sysconfdir
  621. datadir
  622. datarootdir
  623. libexecdir
  624. sbindir
  625. bindir
  626. program_transform_name
  627. prefix
  628. exec_prefix
  629. PACKAGE_URL
  630. PACKAGE_BUGREPORT
  631. PACKAGE_STRING
  632. PACKAGE_VERSION
  633. PACKAGE_TARNAME
  634. PACKAGE_NAME
  635. PATH_SEPARATOR
  636. SHELL'
  637. ac_subst_files=''
  638. ac_user_opts='
  639. enable_option_checking
  640. enable_maintainer_mode
  641. enable_largefile
  642. enable_libmcheck
  643. with_ust
  644. with_ust_include
  645. with_ust_lib
  646. enable_werror
  647. with_pkgversion
  648. with_bugurl
  649. with_libthread_db
  650. enable_inprocess_agent
  651. '
  652.       ac_precious_vars='build_alias
  653. host_alias
  654. target_alias
  655. CC
  656. CFLAGS
  657. LDFLAGS
  658. LIBS
  659. CPPFLAGS
  660. CPP'


  661. # Initialize some variables set by options.
  662. ac_init_help=
  663. ac_init_version=false
  664. ac_unrecognized_opts=
  665. ac_unrecognized_sep=
  666. # The variables have the same names as the options, with
  667. # dashes changed to underlines.
  668. cache_file=/dev/null
  669. exec_prefix=NONE
  670. no_create=
  671. no_recursion=
  672. prefix=NONE
  673. program_prefix=NONE
  674. program_suffix=NONE
  675. program_transform_name=s,x,x,
  676. silent=
  677. site=
  678. srcdir=
  679. verbose=
  680. x_includes=NONE
  681. x_libraries=NONE

  682. # Installation directory options.
  683. # These are left unexpanded so users can "make install exec_prefix=/foo"
  684. # and all the variables that are supposed to be based on exec_prefix
  685. # by default will actually change.
  686. # Use braces instead of parens because sh, perl, etc. also accept them.
  687. # (The list follows the same order as the GNU Coding Standards.)
  688. bindir='${exec_prefix}/bin'
  689. sbindir='${exec_prefix}/sbin'
  690. libexecdir='${exec_prefix}/libexec'
  691. datarootdir='${prefix}/share'
  692. datadir='${datarootdir}'
  693. sysconfdir='${prefix}/etc'
  694. sharedstatedir='${prefix}/com'
  695. localstatedir='${prefix}/var'
  696. includedir='${prefix}/include'
  697. oldincludedir='/usr/include'
  698. docdir='${datarootdir}/doc/${PACKAGE}'
  699. infodir='${datarootdir}/info'
  700. htmldir='${docdir}'
  701. dvidir='${docdir}'
  702. pdfdir='${docdir}'
  703. psdir='${docdir}'
  704. libdir='${exec_prefix}/lib'
  705. localedir='${datarootdir}/locale'
  706. mandir='${datarootdir}/man'

  707. ac_prev=
  708. ac_dashdash=
  709. for ac_option
  710. do
  711.   # If the previous option needs an argument, assign it.
  712.   if test -n "$ac_prev"; then
  713.     eval $ac_prev=\$ac_option
  714.     ac_prev=
  715.     continue
  716.   fi

  717.   case $ac_option in
  718.   *=*)        ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  719.   *)        ac_optarg=yes ;;
  720.   esac

  721.   # Accept the important Cygnus configure options, so we can diagnose typos.

  722.   case $ac_dashdash$ac_option in
  723.   --)
  724.     ac_dashdash=yes ;;

  725.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  726.     ac_prev=bindir ;;
  727.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  728.     bindir=$ac_optarg ;;

  729.   -build | --build | --buil | --bui | --bu)
  730.     ac_prev=build_alias ;;
  731.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  732.     build_alias=$ac_optarg ;;

  733.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  734.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  735.     ac_prev=cache_file ;;
  736.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  737.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  738.     cache_file=$ac_optarg ;;

  739.   --config-cache | -C)
  740.     cache_file=config.cache ;;

  741.   -datadir | --datadir | --datadi | --datad)
  742.     ac_prev=datadir ;;
  743.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  744.     datadir=$ac_optarg ;;

  745.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  746.   | --dataroo | --dataro | --datar)
  747.     ac_prev=datarootdir ;;
  748.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  749.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  750.     datarootdir=$ac_optarg ;;

  751.   -disable-* | --disable-*)
  752.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  753.     # Reject names that are not valid shell variable names.
  754.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  755.       as_fn_error "invalid feature name: $ac_useropt"
  756.     ac_useropt_orig=$ac_useropt
  757.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  758.     case $ac_user_opts in
  759.       *"
  760. "enable_$ac_useropt"
  761. "*) ;;
  762.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  763.          ac_unrecognized_sep=', ';;
  764.     esac
  765.     eval enable_$ac_useropt=no ;;

  766.   -docdir | --docdir | --docdi | --doc | --do)
  767.     ac_prev=docdir ;;
  768.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  769.     docdir=$ac_optarg ;;

  770.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  771.     ac_prev=dvidir ;;
  772.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  773.     dvidir=$ac_optarg ;;

  774.   -enable-* | --enable-*)
  775.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  776.     # Reject names that are not valid shell variable names.
  777.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  778.       as_fn_error "invalid feature name: $ac_useropt"
  779.     ac_useropt_orig=$ac_useropt
  780.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  781.     case $ac_user_opts in
  782.       *"
  783. "enable_$ac_useropt"
  784. "*) ;;
  785.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  786.          ac_unrecognized_sep=', ';;
  787.     esac
  788.     eval enable_$ac_useropt=\$ac_optarg ;;

  789.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  790.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  791.   | --exec | --exe | --ex)
  792.     ac_prev=exec_prefix ;;
  793.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  794.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  795.   | --exec=* | --exe=* | --ex=*)
  796.     exec_prefix=$ac_optarg ;;

  797.   -gas | --gas | --ga | --g)
  798.     # Obsolete; use --with-gas.
  799.     with_gas=yes ;;

  800.   -help | --help | --hel | --he | -h)
  801.     ac_init_help=long ;;
  802.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  803.     ac_init_help=recursive ;;
  804.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  805.     ac_init_help=short ;;

  806.   -host | --host | --hos | --ho)
  807.     ac_prev=host_alias ;;
  808.   -host=* | --host=* | --hos=* | --ho=*)
  809.     host_alias=$ac_optarg ;;

  810.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  811.     ac_prev=htmldir ;;
  812.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  813.   | --ht=*)
  814.     htmldir=$ac_optarg ;;

  815.   -includedir | --includedir | --includedi | --included | --include \
  816.   | --includ | --inclu | --incl | --inc)
  817.     ac_prev=includedir ;;
  818.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  819.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  820.     includedir=$ac_optarg ;;

  821.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  822.     ac_prev=infodir ;;
  823.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  824.     infodir=$ac_optarg ;;

  825.   -libdir | --libdir | --libdi | --libd)
  826.     ac_prev=libdir ;;
  827.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  828.     libdir=$ac_optarg ;;

  829.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  830.   | --libexe | --libex | --libe)
  831.     ac_prev=libexecdir ;;
  832.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  833.   | --libexe=* | --libex=* | --libe=*)
  834.     libexecdir=$ac_optarg ;;

  835.   -localedir | --localedir | --localedi | --localed | --locale)
  836.     ac_prev=localedir ;;
  837.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  838.     localedir=$ac_optarg ;;

  839.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  840.   | --localstate | --localstat | --localsta | --localst | --locals)
  841.     ac_prev=localstatedir ;;
  842.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  843.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  844.     localstatedir=$ac_optarg ;;

  845.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  846.     ac_prev=mandir ;;
  847.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  848.     mandir=$ac_optarg ;;

  849.   -nfp | --nfp | --nf)
  850.     # Obsolete; use --without-fp.
  851.     with_fp=no ;;

  852.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  853.   | --no-cr | --no-c | -n)
  854.     no_create=yes ;;

  855.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  856.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  857.     no_recursion=yes ;;

  858.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  859.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  860.   | --oldin | --oldi | --old | --ol | --o)
  861.     ac_prev=oldincludedir ;;
  862.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  863.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  864.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  865.     oldincludedir=$ac_optarg ;;

  866.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  867.     ac_prev=prefix ;;
  868.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  869.     prefix=$ac_optarg ;;

  870.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  871.   | --program-pre | --program-pr | --program-p)
  872.     ac_prev=program_prefix ;;
  873.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  874.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  875.     program_prefix=$ac_optarg ;;

  876.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  877.   | --program-suf | --program-su | --program-s)
  878.     ac_prev=program_suffix ;;
  879.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  880.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  881.     program_suffix=$ac_optarg ;;

  882.   -program-transform-name | --program-transform-name \
  883.   | --program-transform-nam | --program-transform-na \
  884.   | --program-transform-n | --program-transform- \
  885.   | --program-transform | --program-transfor \
  886.   | --program-transfo | --program-transf \
  887.   | --program-trans | --program-tran \
  888.   | --progr-tra | --program-tr | --program-t)
  889.     ac_prev=program_transform_name ;;
  890.   -program-transform-name=* | --program-transform-name=* \
  891.   | --program-transform-nam=* | --program-transform-na=* \
  892.   | --program-transform-n=* | --program-transform-=* \
  893.   | --program-transform=* | --program-transfor=* \
  894.   | --program-transfo=* | --program-transf=* \
  895.   | --program-trans=* | --program-tran=* \
  896.   | --progr-tra=* | --program-tr=* | --program-t=*)
  897.     program_transform_name=$ac_optarg ;;

  898.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  899.     ac_prev=pdfdir ;;
  900.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  901.     pdfdir=$ac_optarg ;;

  902.   -psdir | --psdir | --psdi | --psd | --ps)
  903.     ac_prev=psdir ;;
  904.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  905.     psdir=$ac_optarg ;;

  906.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  907.   | -silent | --silent | --silen | --sile | --sil)
  908.     silent=yes ;;

  909.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  910.     ac_prev=sbindir ;;
  911.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  912.   | --sbi=* | --sb=*)
  913.     sbindir=$ac_optarg ;;

  914.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  915.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  916.   | --sharedst | --shareds | --shared | --share | --shar \
  917.   | --sha | --sh)
  918.     ac_prev=sharedstatedir ;;
  919.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  920.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  921.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  922.   | --sha=* | --sh=*)
  923.     sharedstatedir=$ac_optarg ;;

  924.   -site | --site | --sit)
  925.     ac_prev=site ;;
  926.   -site=* | --site=* | --sit=*)
  927.     site=$ac_optarg ;;

  928.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  929.     ac_prev=srcdir ;;
  930.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  931.     srcdir=$ac_optarg ;;

  932.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  933.   | --syscon | --sysco | --sysc | --sys | --sy)
  934.     ac_prev=sysconfdir ;;
  935.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  936.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  937.     sysconfdir=$ac_optarg ;;

  938.   -target | --target | --targe | --targ | --tar | --ta | --t)
  939.     ac_prev=target_alias ;;
  940.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  941.     target_alias=$ac_optarg ;;

  942.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  943.     verbose=yes ;;

  944.   -version | --version | --versio | --versi | --vers | -V)
  945.     ac_init_version=: ;;

  946.   -with-* | --with-*)
  947.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  948.     # Reject names that are not valid shell variable names.
  949.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950.       as_fn_error "invalid package name: $ac_useropt"
  951.     ac_useropt_orig=$ac_useropt
  952.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953.     case $ac_user_opts in
  954.       *"
  955. "with_$ac_useropt"
  956. "*) ;;
  957.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  958.          ac_unrecognized_sep=', ';;
  959.     esac
  960.     eval with_$ac_useropt=\$ac_optarg ;;

  961.   -without-* | --without-*)
  962.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  963.     # Reject names that are not valid shell variable names.
  964.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965.       as_fn_error "invalid package name: $ac_useropt"
  966.     ac_useropt_orig=$ac_useropt
  967.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968.     case $ac_user_opts in
  969.       *"
  970. "with_$ac_useropt"
  971. "*) ;;
  972.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  973.          ac_unrecognized_sep=', ';;
  974.     esac
  975.     eval with_$ac_useropt=no ;;

  976.   --x)
  977.     # Obsolete; use --with-x.
  978.     with_x=yes ;;

  979.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  980.   | --x-incl | --x-inc | --x-in | --x-i)
  981.     ac_prev=x_includes ;;
  982.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  983.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  984.     x_includes=$ac_optarg ;;

  985.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  986.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  987.     ac_prev=x_libraries ;;
  988.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  989.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  990.     x_libraries=$ac_optarg ;;

  991.   -*) as_fn_error "unrecognized option: \`$ac_option'
  992. Try \`$0 --help' for more information."
  993.     ;;

  994.   *=*)
  995.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  996.     # Reject names that are not valid shell variable names.
  997.     case $ac_envvar in #(
  998.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  999.       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1000.     esac
  1001.     eval $ac_envvar=\$ac_optarg
  1002.     export $ac_envvar ;;

  1003.   *)
  1004.     # FIXME: should be removed in autoconf 3.0.
  1005.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1006.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1007.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1008.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1009.     ;;

  1010.   esac
  1011. done

  1012. if test -n "$ac_prev"; then
  1013.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1014.   as_fn_error "missing argument to $ac_option"
  1015. fi

  1016. if test -n "$ac_unrecognized_opts"; then
  1017.   case $enable_option_checking in
  1018.     no) ;;
  1019.     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1020.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1021.   esac
  1022. fi

  1023. # Check all directory arguments for consistency.
  1024. for ac_var in        exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1025.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1026.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1027.                 libdir localedir mandir
  1028. do
  1029.   eval ac_val=\$$ac_var
  1030.   # Remove trailing slashes.
  1031.   case $ac_val in
  1032.     */ )
  1033.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1034.       eval $ac_var=\$ac_val;;
  1035.   esac
  1036.   # Be sure to have absolute directory names.
  1037.   case $ac_val in
  1038.     [\\/$]* | ?:[\\/]* )  continue;;
  1039.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1040.   esac
  1041.   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1042. done

  1043. # There might be people who depend on the old broken behavior: `$host'
  1044. # used to hold the argument of --host etc.
  1045. # FIXME: To remove some day.
  1046. build=$build_alias
  1047. host=$host_alias
  1048. target=$target_alias

  1049. # FIXME: To remove some day.
  1050. if test "x$host_alias" != x; then
  1051.   if test "x$build_alias" = x; then
  1052.     cross_compiling=maybe
  1053.     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1054.     If a cross compiler is detected then cross compile mode will be used." >&2
  1055.   elif test "x$build_alias" != "x$host_alias"; then
  1056.     cross_compiling=yes
  1057.   fi
  1058. fi

  1059. ac_tool_prefix=
  1060. test -n "$host_alias" && ac_tool_prefix=$host_alias-

  1061. test "$silent" = yes && exec 6>/dev/null


  1062. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1063. ac_ls_di=`ls -di .` &&
  1064. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1065.   as_fn_error "working directory cannot be determined"
  1066. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1067.   as_fn_error "pwd does not report name of working directory"


  1068. # Find the source files, if location was not specified.
  1069. if test -z "$srcdir"; then
  1070.   ac_srcdir_defaulted=yes
  1071.   # Try the directory containing this script, then the parent directory.
  1072.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1073. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1074.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1075.          X"$as_myself" : 'X\(//\)$' \| \
  1076.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1077. $as_echo X"$as_myself" |
  1078.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1079.             s//\1/
  1080.             q
  1081.           }
  1082.           /^X\(\/\/\)[^/].*/{
  1083.             s//\1/
  1084.             q
  1085.           }
  1086.           /^X\(\/\/\)$/{
  1087.             s//\1/
  1088.             q
  1089.           }
  1090.           /^X\(\/\).*/{
  1091.             s//\1/
  1092.             q
  1093.           }
  1094.           s/.*/./; q'`
  1095.   srcdir=$ac_confdir
  1096.   if test ! -r "$srcdir/$ac_unique_file"; then
  1097.     srcdir=..
  1098.   fi
  1099. else
  1100.   ac_srcdir_defaulted=no
  1101. fi
  1102. if test ! -r "$srcdir/$ac_unique_file"; then
  1103.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1104.   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1105. fi
  1106. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1107. ac_abs_confdir=`(
  1108.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1109.         pwd)`
  1110. # When building in place, set srcdir=.
  1111. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1112.   srcdir=.
  1113. fi
  1114. # Remove unnecessary trailing slashes from srcdir.
  1115. # Double slashes in file names in object file debugging info
  1116. # mess up M-x gdb in Emacs.
  1117. case $srcdir in
  1118. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1119. esac
  1120. for ac_var in $ac_precious_vars; do
  1121.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1122.   eval ac_env_${ac_var}_value=\$${ac_var}
  1123.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1124.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1125. done

  1126. #
  1127. # Report the --help message.
  1128. #
  1129. if test "$ac_init_help" = "long"; then
  1130.   # Omit some internal or obsolete options to make the list less imposing.
  1131.   # This message is too long to be a string in the A/UX 3.1 sh.
  1132.   cat <<_ACEOF
  1133. \`configure' configures this package to adapt to many kinds of systems.

  1134. Usage: $0 [OPTION]... [VAR=VALUE]...

  1135. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1136. VAR=VALUE.  See below for descriptions of some of the useful variables.

  1137. Defaults for the options are specified in brackets.

  1138. Configuration:
  1139.   -h, --help              display this help and exit
  1140.       --help=short        display options specific to this package
  1141.       --help=recursive    display the short help of all the included packages
  1142.   -V, --version           display version information and exit
  1143.   -q, --quiet, --silent   do not print \`checking...' messages
  1144.       --cache-file=FILE   cache test results in FILE [disabled]
  1145.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1146.   -n, --no-create         do not create output files
  1147.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']

  1148. Installation directories:
  1149.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1150.                           [$ac_default_prefix]
  1151.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1152.                           [PREFIX]

  1153. By default, \`make install' will install all the files in
  1154. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1155. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1156. for instance \`--prefix=\$HOME'.

  1157. For better control, use the options below.

  1158. Fine tuning of the installation directories:
  1159.   --bindir=DIR            user executables [EPREFIX/bin]
  1160.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1161.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1162.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1163.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1164.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1165.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1166.   --includedir=DIR        C header files [PREFIX/include]
  1167.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1168.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1169.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1170.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1171.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1172.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1173.   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1174.   --htmldir=DIR           html documentation [DOCDIR]
  1175.   --dvidir=DIR            dvi documentation [DOCDIR]
  1176.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1177.   --psdir=DIR             ps documentation [DOCDIR]
  1178. _ACEOF

  1179.   cat <<\_ACEOF

  1180. Program names:
  1181.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1182.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1183.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

  1184. System types:
  1185.   --build=BUILD     configure for building on BUILD [guessed]
  1186.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1187.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1188. _ACEOF
  1189. fi

  1190. if test -n "$ac_init_help"; then

  1191.   cat <<\_ACEOF

  1192. Optional Features:
  1193.   --disable-option-checking  ignore unrecognized --enable/--with options
  1194.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1195.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1196.   --enable-maintainer-mode  enable make rules and dependencies not useful
  1197.                           (and sometimes confusing) to the casual installer
  1198.   --disable-largefile     omit support for large files
  1199.   --enable-libmcheck      Try linking with -lmcheck if available
  1200.   --enable-werror         treat compile warnings as errors
  1201.   --enable-inprocess-agent
  1202.                           inprocess agent

  1203. Optional Packages:
  1204.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1205.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1206.   --with-ust=PATH       Specify prefix directory for the installed UST package
  1207.                           Equivalent to --with-ust-include=PATH/include
  1208.                           plus --with-ust-lib=PATH/lib
  1209.   --with-ust-include=PATH Specify directory for installed UST include files
  1210.   --with-ust-lib=PATH   Specify the directory for the installed UST library
  1211.   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
  1212.   --with-bugurl=URL       Direct users to URL to report a bug
  1213.   --with-libthread-db=PATH
  1214.                           use given libthread_db directly

  1215. Some influential environment variables:
  1216.   CC          C compiler command
  1217.   CFLAGS      C compiler flags
  1218.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1219.               nonstandard directory <lib dir>
  1220.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1221.   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1222.               you have headers in a nonstandard directory <include dir>
  1223.   CPP         C preprocessor

  1224. Use these variables to override the choices made by `configure' or to help
  1225. it to find libraries and programs with nonstandard names/locations.

  1226. Report bugs to the package provider.
  1227. _ACEOF
  1228. ac_status=$?
  1229. fi

  1230. if test "$ac_init_help" = "recursive"; then
  1231.   # If there are subdirs, report their specific --help.
  1232.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1233.     test -d "$ac_dir" ||
  1234.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1235.       continue
  1236.     ac_builddir=.

  1237. case "$ac_dir" in
  1238. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1239. *)
  1240.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1241.   # A ".." for each directory in $ac_dir_suffix.
  1242.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1243.   case $ac_top_builddir_sub in
  1244.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1245.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1246.   esac ;;
  1247. esac
  1248. ac_abs_top_builddir=$ac_pwd
  1249. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1250. # for backward compatibility:
  1251. ac_top_builddir=$ac_top_build_prefix

  1252. case $srcdir in
  1253.   .)  # We are building in place.
  1254.     ac_srcdir=.
  1255.     ac_top_srcdir=$ac_top_builddir_sub
  1256.     ac_abs_top_srcdir=$ac_pwd ;;
  1257.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1258.     ac_srcdir=$srcdir$ac_dir_suffix;
  1259.     ac_top_srcdir=$srcdir
  1260.     ac_abs_top_srcdir=$srcdir ;;
  1261.   *) # Relative name.
  1262.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1263.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1264.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1265. esac
  1266. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

  1267.     cd "$ac_dir" || { ac_status=$?; continue; }
  1268.     # Check for guested configure.
  1269.     if test -f "$ac_srcdir/configure.gnu"; then
  1270.       echo &&
  1271.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1272.     elif test -f "$ac_srcdir/configure"; then
  1273.       echo &&
  1274.       $SHELL "$ac_srcdir/configure" --help=recursive
  1275.     else
  1276.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1277.     fi || ac_status=$?
  1278.     cd "$ac_pwd" || { ac_status=$?; break; }
  1279.   done
  1280. fi

  1281. test -n "$ac_init_help" && exit $ac_status
  1282. if $ac_init_version; then
  1283.   cat <<\_ACEOF
  1284. configure
  1285. generated by GNU Autoconf 2.64

  1286. Copyright (C) 2009 Free Software Foundation, Inc.
  1287. This configure script is free software; the Free Software Foundation
  1288. gives unlimited permission to copy, distribute and modify it.
  1289. _ACEOF
  1290.   exit
  1291. fi

  1292. ## ------------------------ ##
  1293. ## Autoconf initialization. ##
  1294. ## ------------------------ ##

  1295. # ac_fn_c_try_compile LINENO
  1296. # --------------------------
  1297. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1298. ac_fn_c_try_compile ()
  1299. {
  1300.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1301.   rm -f conftest.$ac_objext
  1302.   if { { ac_try="$ac_compile"
  1303. case "(($ac_try" in
  1304.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1305.   *) ac_try_echo=$ac_try;;
  1306. esac
  1307. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1308. $as_echo "$ac_try_echo"; } >&5
  1309.   (eval "$ac_compile") 2>conftest.err
  1310.   ac_status=$?
  1311.   if test -s conftest.err; then
  1312.     grep -v '^ *+' conftest.err >conftest.er1
  1313.     cat conftest.er1 >&5
  1314.     mv -f conftest.er1 conftest.err
  1315.   fi
  1316.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1317.   test $ac_status = 0; } && {
  1318.          test -z "$ac_c_werror_flag" ||
  1319.          test ! -s conftest.err
  1320.        } && test -s conftest.$ac_objext; then :
  1321.   ac_retval=0
  1322. else
  1323.   $as_echo "$as_me: failed program was:" >&5
  1324. sed 's/^/| /' conftest.$ac_ext >&5

  1325.         ac_retval=1
  1326. fi
  1327.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1328.   return $ac_retval

  1329. } # ac_fn_c_try_compile

  1330. # ac_fn_c_try_cpp LINENO
  1331. # ----------------------
  1332. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1333. ac_fn_c_try_cpp ()
  1334. {
  1335.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1336.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1337. case "(($ac_try" in
  1338.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1339.   *) ac_try_echo=$ac_try;;
  1340. esac
  1341. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1342. $as_echo "$ac_try_echo"; } >&5
  1343.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1344.   ac_status=$?
  1345.   if test -s conftest.err; then
  1346.     grep -v '^ *+' conftest.err >conftest.er1
  1347.     cat conftest.er1 >&5
  1348.     mv -f conftest.er1 conftest.err
  1349.   fi
  1350.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1351.   test $ac_status = 0; } >/dev/null && {
  1352.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1353.          test ! -s conftest.err
  1354.        }; then :
  1355.   ac_retval=0
  1356. else
  1357.   $as_echo "$as_me: failed program was:" >&5
  1358. sed 's/^/| /' conftest.$ac_ext >&5

  1359.     ac_retval=1
  1360. fi
  1361.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1362.   return $ac_retval

  1363. } # ac_fn_c_try_cpp

  1364. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1365. # -------------------------------------------------------
  1366. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1367. # the include files in INCLUDES and setting the cache variable VAR
  1368. # accordingly.
  1369. ac_fn_c_check_header_mongrel ()
  1370. {
  1371.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1372.   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1373.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1374. $as_echo_n "checking for $2... " >&6; }
  1375. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1376.   $as_echo_n "(cached) " >&6
  1377. fi
  1378. eval ac_res=\$$3
  1379.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1380. $as_echo "$ac_res" >&6; }
  1381. else
  1382.   # Is the header compilable?
  1383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1384. $as_echo_n "checking $2 usability... " >&6; }
  1385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1386. /* end confdefs.h.  */
  1387. $4
  1388. #include <$2>
  1389. _ACEOF
  1390. if ac_fn_c_try_compile "$LINENO"; then :
  1391.   ac_header_compiler=yes
  1392. else
  1393.   ac_header_compiler=no
  1394. fi
  1395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1397. $as_echo "$ac_header_compiler" >&6; }

  1398. # Is the header present?
  1399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1400. $as_echo_n "checking $2 presence... " >&6; }
  1401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1402. /* end confdefs.h.  */
  1403. #include <$2>
  1404. _ACEOF
  1405. if ac_fn_c_try_cpp "$LINENO"; then :
  1406.   ac_header_preproc=yes
  1407. else
  1408.   ac_header_preproc=no
  1409. fi
  1410. rm -f conftest.err conftest.$ac_ext
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1412. $as_echo "$ac_header_preproc" >&6; }

  1413. # So?  What about this header?
  1414. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1415.   yes:no: )
  1416.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1417. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1418.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1419. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1420.     ;;
  1421.   no:yes:* )
  1422.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1423. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1424.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1425. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1426.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1427. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1428.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1429. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1430.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1431. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1432.     ;;
  1433. esac
  1434.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1435. $as_echo_n "checking for $2... " >&6; }
  1436. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1437.   $as_echo_n "(cached) " >&6
  1438. else
  1439.   eval "$3=\$ac_header_compiler"
  1440. fi
  1441. eval ac_res=\$$3
  1442.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1443. $as_echo "$ac_res" >&6; }
  1444. fi
  1445.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1446. } # ac_fn_c_check_header_mongrel

  1447. # ac_fn_c_try_run LINENO
  1448. # ----------------------
  1449. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1450. # that executables *can* be run.
  1451. ac_fn_c_try_run ()
  1452. {
  1453.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454.   if { { ac_try="$ac_link"
  1455. case "(($ac_try" in
  1456.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457.   *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461.   (eval "$ac_link") 2>&5
  1462.   ac_status=$?
  1463.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1464.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1465.   { { case "(($ac_try" in
  1466.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1467.   *) ac_try_echo=$ac_try;;
  1468. esac
  1469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1470. $as_echo "$ac_try_echo"; } >&5
  1471.   (eval "$ac_try") 2>&5
  1472.   ac_status=$?
  1473.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1474.   test $ac_status = 0; }; }; then :
  1475.   ac_retval=0
  1476. else
  1477.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1478.        $as_echo "$as_me: failed program was:" >&5
  1479. sed 's/^/| /' conftest.$ac_ext >&5

  1480.        ac_retval=$ac_status
  1481. fi
  1482.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1483.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1484.   return $ac_retval

  1485. } # ac_fn_c_try_run

  1486. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1487. # -------------------------------------------------------
  1488. # Tests whether HEADER exists and can be compiled using the include files in
  1489. # INCLUDES, setting the cache variable VAR accordingly.
  1490. ac_fn_c_check_header_compile ()
  1491. {
  1492.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1493.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1494. $as_echo_n "checking for $2... " >&6; }
  1495. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1496.   $as_echo_n "(cached) " >&6
  1497. else
  1498.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1499. /* end confdefs.h.  */
  1500. $4
  1501. #include <$2>
  1502. _ACEOF
  1503. if ac_fn_c_try_compile "$LINENO"; then :
  1504.   eval "$3=yes"
  1505. else
  1506.   eval "$3=no"
  1507. fi
  1508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1509. fi
  1510. eval ac_res=\$$3
  1511.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1512. $as_echo "$ac_res" >&6; }
  1513.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1514. } # ac_fn_c_check_header_compile

  1515. # ac_fn_c_try_link LINENO
  1516. # -----------------------
  1517. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_c_try_link ()
  1519. {
  1520.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521.   rm -f conftest.$ac_objext conftest$ac_exeext
  1522.   if { { ac_try="$ac_link"
  1523. case "(($ac_try" in
  1524.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525.   *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529.   (eval "$ac_link") 2>conftest.err
  1530.   ac_status=$?
  1531.   if test -s conftest.err; then
  1532.     grep -v '^ *+' conftest.err >conftest.er1
  1533.     cat conftest.er1 >&5
  1534.     mv -f conftest.er1 conftest.err
  1535.   fi
  1536.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537.   test $ac_status = 0; } && {
  1538.          test -z "$ac_c_werror_flag" ||
  1539.          test ! -s conftest.err
  1540.        } && test -s conftest$ac_exeext && {
  1541.          test "$cross_compiling" = yes ||
  1542.          $as_test_x conftest$ac_exeext
  1543.        }; then :
  1544.   ac_retval=0
  1545. else
  1546.   $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5

  1548.         ac_retval=1
  1549. fi
  1550.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1551.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1552.   # interfere with the next link command; also delete a directory that is
  1553.   # left behind by Apple's compiler.  We do this before executing the actions.
  1554.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1556.   return $ac_retval

  1557. } # ac_fn_c_try_link

  1558. # ac_fn_c_check_func LINENO FUNC VAR
  1559. # ----------------------------------
  1560. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1561. ac_fn_c_check_func ()
  1562. {
  1563.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1565. $as_echo_n "checking for $2... " >&6; }
  1566. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1567.   $as_echo_n "(cached) " >&6
  1568. else
  1569.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1570. /* end confdefs.h.  */
  1571. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1572.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1573. #define $2 innocuous_$2

  1574. /* System header to define __stub macros and hopefully few prototypes,
  1575.     which can conflict with char $2 (); below.
  1576.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1577.     <limits.h> exists even on freestanding compilers.  */

  1578. #ifdef __STDC__
  1579. # include <limits.h>
  1580. #else
  1581. # include <assert.h>
  1582. #endif

  1583. #undef $2

  1584. /* Override any GCC internal prototype to avoid an error.
  1585.    Use char because int might match the return type of a GCC
  1586.    builtin and then its argument prototype would still apply.  */
  1587. #ifdef __cplusplus
  1588. extern "C"
  1589. #endif
  1590. char $2 ();
  1591. /* The GNU C library defines this for functions which it implements
  1592.     to always fail with ENOSYS.  Some functions are actually named
  1593.     something starting with __ and the normal name is an alias.  */
  1594. #if defined __stub_$2 || defined __stub___$2
  1595. choke me
  1596. #endif

  1597. int
  1598. main ()
  1599. {
  1600. return $2 ();
  1601.   ;
  1602.   return 0;
  1603. }
  1604. _ACEOF
  1605. if ac_fn_c_try_link "$LINENO"; then :
  1606.   eval "$3=yes"
  1607. else
  1608.   eval "$3=no"
  1609. fi
  1610. rm -f core conftest.err conftest.$ac_objext \
  1611.     conftest$ac_exeext conftest.$ac_ext
  1612. fi
  1613. eval ac_res=\$$3
  1614.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1615. $as_echo "$ac_res" >&6; }
  1616.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1617. } # ac_fn_c_check_func

  1618. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1619. # ------------------------------------
  1620. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1621. ac_fn_c_check_decl ()
  1622. {
  1623.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624.   as_decl_name=`echo $2|sed 's/ *(.*//'`
  1625.   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1626.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1627. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1628. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1629.   $as_echo_n "(cached) " >&6
  1630. else
  1631.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end confdefs.h.  */
  1633. $4
  1634. int
  1635. main ()
  1636. {
  1637. #ifndef $as_decl_name
  1638. #ifdef __cplusplus
  1639.   (void) $as_decl_use;
  1640. #else
  1641.   (void) $as_decl_name;
  1642. #endif
  1643. #endif

  1644.   ;
  1645.   return 0;
  1646. }
  1647. _ACEOF
  1648. if ac_fn_c_try_compile "$LINENO"; then :
  1649.   eval "$3=yes"
  1650. else
  1651.   eval "$3=no"
  1652. fi
  1653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1654. fi
  1655. eval ac_res=\$$3
  1656.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1657. $as_echo "$ac_res" >&6; }
  1658.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1659. } # ac_fn_c_check_decl

  1660. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1661. # -------------------------------------------
  1662. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1663. # variable VAR accordingly.
  1664. ac_fn_c_check_type ()
  1665. {
  1666.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1667.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1668. $as_echo_n "checking for $2... " >&6; }
  1669. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1670.   $as_echo_n "(cached) " >&6
  1671. else
  1672.   eval "$3=no"
  1673.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h.  */
  1675. $4
  1676. int
  1677. main ()
  1678. {
  1679. if (sizeof ($2))
  1680.          return 0;
  1681.   ;
  1682.   return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h.  */
  1688. $4
  1689. int
  1690. main ()
  1691. {
  1692. if (sizeof (($2)))
  1693.             return 0;
  1694.   ;
  1695.   return 0;
  1696. }
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"; then :

  1699. else
  1700.   eval "$3=yes"
  1701. fi
  1702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1703. fi
  1704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. fi
  1706. eval ac_res=\$$3
  1707.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. $as_echo "$ac_res" >&6; }
  1709.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1710. } # ac_fn_c_check_type
  1711. cat >config.log <<_ACEOF
  1712. This file contains any messages produced by compilers while
  1713. running configure, to aid debugging if configure makes a mistake.

  1714. It was created by $as_me, which was
  1715. generated by GNU Autoconf 2.64.  Invocation command line was

  1716.   $ $0 $@

  1717. _ACEOF
  1718. exec 5>>config.log
  1719. {
  1720. cat <<_ASUNAME
  1721. ## --------- ##
  1722. ## Platform. ##
  1723. ## --------- ##

  1724. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1725. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1726. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1727. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1728. uname -v = `(uname -v) 2>/dev/null || echo unknown`

  1729. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1730. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

  1731. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1732. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1733. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1734. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1735. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1736. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1737. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

  1738. _ASUNAME

  1739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1740. for as_dir in $PATH
  1741. do
  1742.   IFS=$as_save_IFS
  1743.   test -z "$as_dir" && as_dir=.
  1744.     $as_echo "PATH: $as_dir"
  1745.   done
  1746. IFS=$as_save_IFS

  1747. } >&5

  1748. cat >&5 <<_ACEOF


  1749. ## ----------- ##
  1750. ## Core tests. ##
  1751. ## ----------- ##

  1752. _ACEOF


  1753. # Keep a trace of the command line.
  1754. # Strip out --no-create and --no-recursion so they do not pile up.
  1755. # Strip out --silent because we don't want to record it for future runs.
  1756. # Also quote any args containing shell meta-characters.
  1757. # Make two passes to allow for proper duplicate-argument suppression.
  1758. ac_configure_args=
  1759. ac_configure_args0=
  1760. ac_configure_args1=
  1761. ac_must_keep_next=false
  1762. for ac_pass in 1 2
  1763. do
  1764.   for ac_arg
  1765.   do
  1766.     case $ac_arg in
  1767.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1768.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1769.     | -silent | --silent | --silen | --sile | --sil)
  1770.       continue ;;
  1771.     *\'*)
  1772.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1773.     esac
  1774.     case $ac_pass in
  1775.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1776.     2)
  1777.       as_fn_append ac_configure_args1 " '$ac_arg'"
  1778.       if test $ac_must_keep_next = true; then
  1779.         ac_must_keep_next=false # Got value, back to normal.
  1780.       else
  1781.         case $ac_arg in
  1782.           *=* | --config-cache | -C | -disable-* | --disable-* \
  1783.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1784.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1785.           | -with-* | --with-* | -without-* | --without-* | --x)
  1786.             case "$ac_configure_args0 " in
  1787.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1788.             esac
  1789.             ;;
  1790.           -* ) ac_must_keep_next=true ;;
  1791.         esac
  1792.       fi
  1793.       as_fn_append ac_configure_args " '$ac_arg'"
  1794.       ;;
  1795.     esac
  1796.   done
  1797. done
  1798. { ac_configure_args0=; unset ac_configure_args0;}
  1799. { ac_configure_args1=; unset ac_configure_args1;}

  1800. # When interrupted or exit'd, cleanup temporary files, and complete
  1801. # config.log.  We remove comments because anyway the quotes in there
  1802. # would cause problems or look ugly.
  1803. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1804. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1805. trap 'exit_status=$?
  1806.   # Save into config.log some information that might help in debugging.
  1807.   {
  1808.     echo

  1809.     cat <<\_ASBOX
  1810. ## ---------------- ##
  1811. ## Cache variables. ##
  1812. ## ---------------- ##
  1813. _ASBOX
  1814.     echo
  1815.     # The following way of writing the cache mishandles newlines in values,
  1816. (
  1817.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1818.     eval ac_val=\$$ac_var
  1819.     case $ac_val in #(
  1820.     *${as_nl}*)
  1821.       case $ac_var in #(
  1822.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1823. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1824.       esac
  1825.       case $ac_var in #(
  1826.       _ | IFS | as_nl) ;; #(
  1827.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1828.       *) { eval $ac_var=; unset $ac_var;} ;;
  1829.       esac ;;
  1830.     esac
  1831.   done
  1832.   (set) 2>&1 |
  1833.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1834.     *${as_nl}ac_space=\ *)
  1835.       sed -n \
  1836.         "s/'\''/'\''\\\\'\'''\''/g;
  1837.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1838.       ;; #(
  1839.     *)
  1840.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1841.       ;;
  1842.     esac |
  1843.     sort
  1844. )
  1845.     echo

  1846.     cat <<\_ASBOX
  1847. ## ----------------- ##
  1848. ## Output variables. ##
  1849. ## ----------------- ##
  1850. _ASBOX
  1851.     echo
  1852.     for ac_var in $ac_subst_vars
  1853.     do
  1854.       eval ac_val=\$$ac_var
  1855.       case $ac_val in
  1856.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1857.       esac
  1858.       $as_echo "$ac_var='\''$ac_val'\''"
  1859.     done | sort
  1860.     echo

  1861.     if test -n "$ac_subst_files"; then
  1862.       cat <<\_ASBOX
  1863. ## ------------------- ##
  1864. ## File substitutions. ##
  1865. ## ------------------- ##
  1866. _ASBOX
  1867.       echo
  1868.       for ac_var in $ac_subst_files
  1869.       do
  1870.         eval ac_val=\$$ac_var
  1871.         case $ac_val in
  1872.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1873.         esac
  1874.         $as_echo "$ac_var='\''$ac_val'\''"
  1875.       done | sort
  1876.       echo
  1877.     fi

  1878.     if test -s confdefs.h; then
  1879.       cat <<\_ASBOX
  1880. ## ----------- ##
  1881. ## confdefs.h. ##
  1882. ## ----------- ##
  1883. _ASBOX
  1884.       echo
  1885.       cat confdefs.h
  1886.       echo
  1887.     fi
  1888.     test "$ac_signal" != 0 &&
  1889.       $as_echo "$as_me: caught signal $ac_signal"
  1890.     $as_echo "$as_me: exit $exit_status"
  1891.   } >&5
  1892.   rm -f core *.core core.conftest.* &&
  1893.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1894.     exit $exit_status
  1895. ' 0
  1896. for ac_signal in 1 2 13 15; do
  1897.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1898. done
  1899. ac_signal=0

  1900. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1901. rm -f -r conftest* confdefs.h

  1902. $as_echo "/* confdefs.h */" > confdefs.h

  1903. # Predefined preprocessor variables.

  1904. cat >>confdefs.h <<_ACEOF
  1905. #define PACKAGE_NAME "$PACKAGE_NAME"
  1906. _ACEOF

  1907. cat >>confdefs.h <<_ACEOF
  1908. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1909. _ACEOF

  1910. cat >>confdefs.h <<_ACEOF
  1911. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1912. _ACEOF

  1913. cat >>confdefs.h <<_ACEOF
  1914. #define PACKAGE_STRING "$PACKAGE_STRING"
  1915. _ACEOF

  1916. cat >>confdefs.h <<_ACEOF
  1917. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1918. _ACEOF

  1919. cat >>confdefs.h <<_ACEOF
  1920. #define PACKAGE_URL "$PACKAGE_URL"
  1921. _ACEOF


  1922. # Let the site file select an alternate cache file if it wants to.
  1923. # Prefer an explicitly selected file to automatically selected ones.
  1924. ac_site_file1=NONE
  1925. ac_site_file2=NONE
  1926. if test -n "$CONFIG_SITE"; then
  1927.   ac_site_file1=$CONFIG_SITE
  1928. elif test "x$prefix" != xNONE; then
  1929.   ac_site_file1=$prefix/share/config.site
  1930.   ac_site_file2=$prefix/etc/config.site
  1931. else
  1932.   ac_site_file1=$ac_default_prefix/share/config.site
  1933.   ac_site_file2=$ac_default_prefix/etc/config.site
  1934. fi
  1935. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1936. do
  1937.   test "x$ac_site_file" = xNONE && continue
  1938.   if test -r "$ac_site_file"; then
  1939.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1940. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1941.     sed 's/^/| /' "$ac_site_file" >&5
  1942.    . "$ac_site_file"
  1943.   fi
  1944. done

  1945. if test -r "$cache_file"; then
  1946.   # Some versions of bash will fail to source /dev/null (special
  1947.   # files actually), so we avoid doing that.
  1948.   if test -f "$cache_file"; then
  1949.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1950. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1951.     case $cache_file in
  1952.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1953.       *)                     . "./$cache_file";;
  1954.     esac
  1955.   fi
  1956. else
  1957.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1958. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1959.   >$cache_file
  1960. fi

  1961. # Check that the precious variables saved in the cache have kept the same
  1962. # value.
  1963. ac_cache_corrupted=false
  1964. for ac_var in $ac_precious_vars; do
  1965.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1966.   eval ac_new_set=\$ac_env_${ac_var}_set
  1967.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1968.   eval ac_new_val=\$ac_env_${ac_var}_value
  1969.   case $ac_old_set,$ac_new_set in
  1970.     set,)
  1971.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1972. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1973.       ac_cache_corrupted=: ;;
  1974.     ,set)
  1975.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1976. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1977.       ac_cache_corrupted=: ;;
  1978.     ,);;
  1979.     *)
  1980.       if test "x$ac_old_val" != "x$ac_new_val"; then
  1981.         # differences in whitespace do not lead to failure.
  1982.         ac_old_val_w=`echo x $ac_old_val`
  1983.         ac_new_val_w=`echo x $ac_new_val`
  1984.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1985.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1986. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1987.           ac_cache_corrupted=:
  1988.         else
  1989.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1990. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1991.           eval $ac_var=\$ac_old_val
  1992.         fi
  1993.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  1994. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  1995.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  1996. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  1997.       fi;;
  1998.   esac
  1999.   # Pass precious variables to config.status.
  2000.   if test "$ac_new_set" = set; then
  2001.     case $ac_new_val in
  2002.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2003.     *) ac_arg=$ac_var=$ac_new_val ;;
  2004.     esac
  2005.     case " $ac_configure_args " in
  2006.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2007.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2008.     esac
  2009.   fi
  2010. done
  2011. if $ac_cache_corrupted; then
  2012.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2014.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2015. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2016.   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2017. fi
  2018. ## -------------------- ##
  2019. ## Main body of script. ##
  2020. ## -------------------- ##

  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu





  2026. ac_config_headers="$ac_config_headers config.h:config.in"



  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2028. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2029.     # Check whether --enable-maintainer-mode was given.
  2030. if test "${enable_maintainer_mode+set}" = set; then :
  2031.   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2032. else
  2033.   USE_MAINTAINER_MODE=no
  2034. fi

  2035.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2036. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2037.    if test $USE_MAINTAINER_MODE = yes; then
  2038.   MAINTAINER_MODE_TRUE=
  2039.   MAINTAINER_MODE_FALSE='#'
  2040. else
  2041.   MAINTAINER_MODE_TRUE='#'
  2042.   MAINTAINER_MODE_FALSE=
  2043. fi

  2044.   MAINT=$MAINTAINER_MODE_TRUE



  2045. ac_ext=c
  2046. ac_cpp='$CPP $CPPFLAGS'
  2047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2050. if test -n "$ac_tool_prefix"; then
  2051.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2052. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2054. $as_echo_n "checking for $ac_word... " >&6; }
  2055. if test "${ac_cv_prog_CC+set}" = set; then :
  2056.   $as_echo_n "(cached) " >&6
  2057. else
  2058.   if test -n "$CC"; then
  2059.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2060. else
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064.   IFS=$as_save_IFS
  2065.   test -z "$as_dir" && as_dir=.
  2066.     for ac_exec_ext in '' $ac_executable_extensions; do
  2067.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2068.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2069.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070.     break 2
  2071.   fi
  2072. done
  2073.   done
  2074. IFS=$as_save_IFS

  2075. fi
  2076. fi
  2077. CC=$ac_cv_prog_CC
  2078. if test -n "$CC"; then
  2079.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2080. $as_echo "$CC" >&6; }
  2081. else
  2082.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2083. $as_echo "no" >&6; }
  2084. fi


  2085. fi
  2086. if test -z "$ac_cv_prog_CC"; then
  2087.   ac_ct_CC=$CC
  2088.   # Extract the first word of "gcc", so it can be a program name with args.
  2089. set dummy gcc; ac_word=$2
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2091. $as_echo_n "checking for $ac_word... " >&6; }
  2092. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2093.   $as_echo_n "(cached) " >&6
  2094. else
  2095.   if test -n "$ac_ct_CC"; then
  2096.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2097. else
  2098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2099. for as_dir in $PATH
  2100. do
  2101.   IFS=$as_save_IFS
  2102.   test -z "$as_dir" && as_dir=.
  2103.     for ac_exec_ext in '' $ac_executable_extensions; do
  2104.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2105.     ac_cv_prog_ac_ct_CC="gcc"
  2106.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2107.     break 2
  2108.   fi
  2109. done
  2110.   done
  2111. IFS=$as_save_IFS

  2112. fi
  2113. fi
  2114. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2115. if test -n "$ac_ct_CC"; then
  2116.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2117. $as_echo "$ac_ct_CC" >&6; }
  2118. else
  2119.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2120. $as_echo "no" >&6; }
  2121. fi

  2122.   if test "x$ac_ct_CC" = x; then
  2123.     CC=""
  2124.   else
  2125.     case $cross_compiling:$ac_tool_warned in
  2126. yes:)
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2129. ac_tool_warned=yes ;;
  2130. esac
  2131.     CC=$ac_ct_CC
  2132.   fi
  2133. else
  2134.   CC="$ac_cv_prog_CC"
  2135. fi

  2136. if test -z "$CC"; then
  2137.           if test -n "$ac_tool_prefix"; then
  2138.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2139. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2141. $as_echo_n "checking for $ac_word... " >&6; }
  2142. if test "${ac_cv_prog_CC+set}" = set; then :
  2143.   $as_echo_n "(cached) " >&6
  2144. else
  2145.   if test -n "$CC"; then
  2146.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2147. else
  2148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2149. for as_dir in $PATH
  2150. do
  2151.   IFS=$as_save_IFS
  2152.   test -z "$as_dir" && as_dir=.
  2153.     for ac_exec_ext in '' $ac_executable_extensions; do
  2154.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2155.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2156.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2157.     break 2
  2158.   fi
  2159. done
  2160.   done
  2161. IFS=$as_save_IFS

  2162. fi
  2163. fi
  2164. CC=$ac_cv_prog_CC
  2165. if test -n "$CC"; then
  2166.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2167. $as_echo "$CC" >&6; }
  2168. else
  2169.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2170. $as_echo "no" >&6; }
  2171. fi


  2172.   fi
  2173. fi
  2174. if test -z "$CC"; then
  2175.   # Extract the first word of "cc", so it can be a program name with args.
  2176. set dummy cc; ac_word=$2
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. if test "${ac_cv_prog_CC+set}" = set; then :
  2180.   $as_echo_n "(cached) " >&6
  2181. else
  2182.   if test -n "$CC"; then
  2183.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2184. else
  2185.   ac_prog_rejected=no
  2186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2187. for as_dir in $PATH
  2188. do
  2189.   IFS=$as_save_IFS
  2190.   test -z "$as_dir" && as_dir=.
  2191.     for ac_exec_ext in '' $ac_executable_extensions; do
  2192.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2193.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2194.        ac_prog_rejected=yes
  2195.        continue
  2196.      fi
  2197.     ac_cv_prog_CC="cc"
  2198.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2199.     break 2
  2200.   fi
  2201. done
  2202.   done
  2203. IFS=$as_save_IFS

  2204. if test $ac_prog_rejected = yes; then
  2205.   # We found a bogon in the path, so make sure we never use it.
  2206.   set dummy $ac_cv_prog_CC
  2207.   shift
  2208.   if test $# != 0; then
  2209.     # We chose a different compiler from the bogus one.
  2210.     # However, it has the same basename, so the bogon will be chosen
  2211.     # first if we set CC to just the basename; use the full file name.
  2212.     shift
  2213.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2214.   fi
  2215. fi
  2216. fi
  2217. fi
  2218. CC=$ac_cv_prog_CC
  2219. if test -n "$CC"; then
  2220.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2221. $as_echo "$CC" >&6; }
  2222. else
  2223.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2224. $as_echo "no" >&6; }
  2225. fi


  2226. fi
  2227. if test -z "$CC"; then
  2228.   if test -n "$ac_tool_prefix"; then
  2229.   for ac_prog in cl.exe
  2230.   do
  2231.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2232. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2234. $as_echo_n "checking for $ac_word... " >&6; }
  2235. if test "${ac_cv_prog_CC+set}" = set; then :
  2236.   $as_echo_n "(cached) " >&6
  2237. else
  2238.   if test -n "$CC"; then
  2239.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2240. else
  2241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2242. for as_dir in $PATH
  2243. do
  2244.   IFS=$as_save_IFS
  2245.   test -z "$as_dir" && as_dir=.
  2246.     for ac_exec_ext in '' $ac_executable_extensions; do
  2247.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2248.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2249.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2250.     break 2
  2251.   fi
  2252. done
  2253.   done
  2254. IFS=$as_save_IFS

  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2260. $as_echo "$CC" >&6; }
  2261. else
  2262.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2263. $as_echo "no" >&6; }
  2264. fi


  2265.     test -n "$CC" && break
  2266.   done
  2267. fi
  2268. if test -z "$CC"; then
  2269.   ac_ct_CC=$CC
  2270.   for ac_prog in cl.exe
  2271. do
  2272.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2273. set dummy $ac_prog; ac_word=$2
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2275. $as_echo_n "checking for $ac_word... " >&6; }
  2276. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2277.   $as_echo_n "(cached) " >&6
  2278. else
  2279.   if test -n "$ac_ct_CC"; then
  2280.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2281. else
  2282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2283. for as_dir in $PATH
  2284. do
  2285.   IFS=$as_save_IFS
  2286.   test -z "$as_dir" && as_dir=.
  2287.     for ac_exec_ext in '' $ac_executable_extensions; do
  2288.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2289.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2290.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2291.     break 2
  2292.   fi
  2293. done
  2294.   done
  2295. IFS=$as_save_IFS

  2296. fi
  2297. fi
  2298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2299. if test -n "$ac_ct_CC"; then
  2300.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2301. $as_echo "$ac_ct_CC" >&6; }
  2302. else
  2303.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2304. $as_echo "no" >&6; }
  2305. fi


  2306.   test -n "$ac_ct_CC" && break
  2307. done

  2308.   if test "x$ac_ct_CC" = x; then
  2309.     CC=""
  2310.   else
  2311.     case $cross_compiling:$ac_tool_warned in
  2312. yes:)
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2314. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2315. ac_tool_warned=yes ;;
  2316. esac
  2317.     CC=$ac_ct_CC
  2318.   fi
  2319. fi

  2320. fi


  2321. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2323. as_fn_error "no acceptable C compiler found in \$PATH
  2324. See \`config.log' for more details." "$LINENO" 5; }

  2325. # Provide some information about the compiler.
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2327. set X $ac_compile
  2328. ac_compiler=$2
  2329. for ac_option in --version -v -V -qversion; do
  2330.   { { ac_try="$ac_compiler $ac_option >&5"
  2331. case "(($ac_try" in
  2332.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2333.   *) ac_try_echo=$ac_try;;
  2334. esac
  2335. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2336. $as_echo "$ac_try_echo"; } >&5
  2337.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2338.   ac_status=$?
  2339.   if test -s conftest.err; then
  2340.     sed '10a\
  2341. ... rest of stderr output deleted ...
  2342.          10q' conftest.err >conftest.er1
  2343.     cat conftest.er1 >&5
  2344.     rm -f conftest.er1 conftest.err
  2345.   fi
  2346.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2347.   test $ac_status = 0; }
  2348. done

  2349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2350. /* end confdefs.h.  */

  2351. int
  2352. main ()
  2353. {

  2354.   ;
  2355.   return 0;
  2356. }
  2357. _ACEOF
  2358. ac_clean_files_save=$ac_clean_files
  2359. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2360. # Try to create an executable without -o first, disregard a.out.
  2361. # It will help us diagnose broken compilers, and finding out an intuition
  2362. # of exeext.
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2364. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2365. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

  2366. # The possible output files:
  2367. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

  2368. ac_rmfiles=
  2369. for ac_file in $ac_files
  2370. do
  2371.   case $ac_file in
  2372.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2373.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2374.   esac
  2375. done
  2376. rm -f $ac_rmfiles

  2377. if { { ac_try="$ac_link_default"
  2378. case "(($ac_try" in
  2379.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2380.   *) ac_try_echo=$ac_try;;
  2381. esac
  2382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2383. $as_echo "$ac_try_echo"; } >&5
  2384.   (eval "$ac_link_default") 2>&5
  2385.   ac_status=$?
  2386.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2387.   test $ac_status = 0; }; then :
  2388.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2389. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2390. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2391. # so that the user can short-circuit this test for compilers unknown to
  2392. # Autoconf.
  2393. for ac_file in $ac_files ''
  2394. do
  2395.   test -f "$ac_file" || continue
  2396.   case $ac_file in
  2397.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2398.         ;;
  2399.     [ab].out )
  2400.         # We found the default executable, but exeext='' is most
  2401.         # certainly right.
  2402.         break;;
  2403.     *.* )
  2404.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2405.         then :; else
  2406.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2407.         fi
  2408.         # We set ac_cv_exeext here because the later test for it is not
  2409.         # safe: cross compilers may not add the suffix if given an `-o'
  2410.         # argument, so we may need to know it at that point already.
  2411.         # Even if this section looks crufty: it has the advantage of
  2412.         # actually working.
  2413.         break;;
  2414.     * )
  2415.         break;;
  2416.   esac
  2417. done
  2418. test "$ac_cv_exeext" = no && ac_cv_exeext=

  2419. else
  2420.   ac_file=''
  2421. fi
  2422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2423. $as_echo "$ac_file" >&6; }
  2424. if test -z "$ac_file"; then :
  2425.   $as_echo "$as_me: failed program was:" >&5
  2426. sed 's/^/| /' conftest.$ac_ext >&5

  2427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2429. { as_fn_set_status 77
  2430. as_fn_error "C compiler cannot create executables
  2431. See \`config.log' for more details." "$LINENO" 5; }; }
  2432. fi
  2433. ac_exeext=$ac_cv_exeext

  2434. # Check that the compiler produces executables we can run.  If not, either
  2435. # the compiler is broken, or we cross compile.
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2437. $as_echo_n "checking whether the C compiler works... " >&6; }
  2438. # If not cross compiling, check that we can run a simple program.
  2439. if test "$cross_compiling" != yes; then
  2440.   if { ac_try='./$ac_file'
  2441.   { { case "(($ac_try" in
  2442.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2443.   *) ac_try_echo=$ac_try;;
  2444. esac
  2445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2446. $as_echo "$ac_try_echo"; } >&5
  2447.   (eval "$ac_try") 2>&5
  2448.   ac_status=$?
  2449.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2450.   test $ac_status = 0; }; }; then
  2451.     cross_compiling=no
  2452.   else
  2453.     if test "$cross_compiling" = maybe; then
  2454.         cross_compiling=yes
  2455.     else
  2456.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2457. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2458. as_fn_error "cannot run C compiled programs.
  2459. If you meant to cross compile, use \`--host'.
  2460. See \`config.log' for more details." "$LINENO" 5; }
  2461.     fi
  2462.   fi
  2463. fi
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2465. $as_echo "yes" >&6; }

  2466. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2467. ac_clean_files=$ac_clean_files_save
  2468. # Check that the compiler produces executables we can run.  If not, either
  2469. # the compiler is broken, or we cross compile.
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2471. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2473. $as_echo "$cross_compiling" >&6; }

  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2475. $as_echo_n "checking for suffix of executables... " >&6; }
  2476. if { { ac_try="$ac_link"
  2477. case "(($ac_try" in
  2478.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2479.   *) ac_try_echo=$ac_try;;
  2480. esac
  2481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2482. $as_echo "$ac_try_echo"; } >&5
  2483.   (eval "$ac_link") 2>&5
  2484.   ac_status=$?
  2485.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2486.   test $ac_status = 0; }; then :
  2487.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2488. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2489. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2490. # `rm'.
  2491. for ac_file in conftest.exe conftest conftest.*; do
  2492.   test -f "$ac_file" || continue
  2493.   case $ac_file in
  2494.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2495.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2496.           break;;
  2497.     * ) break;;
  2498.   esac
  2499. done
  2500. else
  2501.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2502. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2503. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2504. See \`config.log' for more details." "$LINENO" 5; }
  2505. fi
  2506. rm -f conftest$ac_cv_exeext
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2508. $as_echo "$ac_cv_exeext" >&6; }

  2509. rm -f conftest.$ac_ext
  2510. EXEEXT=$ac_cv_exeext
  2511. ac_exeext=$EXEEXT
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2513. $as_echo_n "checking for suffix of object files... " >&6; }
  2514. if test "${ac_cv_objext+set}" = set; then :
  2515.   $as_echo_n "(cached) " >&6
  2516. else
  2517.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2518. /* end confdefs.h.  */

  2519. int
  2520. main ()
  2521. {

  2522.   ;
  2523.   return 0;
  2524. }
  2525. _ACEOF
  2526. rm -f conftest.o conftest.obj
  2527. if { { ac_try="$ac_compile"
  2528. case "(($ac_try" in
  2529.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2530.   *) ac_try_echo=$ac_try;;
  2531. esac
  2532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2533. $as_echo "$ac_try_echo"; } >&5
  2534.   (eval "$ac_compile") 2>&5
  2535.   ac_status=$?
  2536.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2537.   test $ac_status = 0; }; then :
  2538.   for ac_file in conftest.o conftest.obj conftest.*; do
  2539.   test -f "$ac_file" || continue;
  2540.   case $ac_file in
  2541.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2542.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2543.        break;;
  2544.   esac
  2545. done
  2546. else
  2547.   $as_echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5

  2549. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2551. as_fn_error "cannot compute suffix of object files: cannot compile
  2552. See \`config.log' for more details." "$LINENO" 5; }
  2553. fi
  2554. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2557. $as_echo "$ac_cv_objext" >&6; }
  2558. OBJEXT=$ac_cv_objext
  2559. ac_objext=$OBJEXT
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2561. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2562. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2563.   $as_echo_n "(cached) " >&6
  2564. else
  2565.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2566. /* end confdefs.h.  */

  2567. int
  2568. main ()
  2569. {
  2570. #ifndef __GNUC__
  2571.        choke me
  2572. #endif

  2573.   ;
  2574.   return 0;
  2575. }
  2576. _ACEOF
  2577. if ac_fn_c_try_compile "$LINENO"; then :
  2578.   ac_compiler_gnu=yes
  2579. else
  2580.   ac_compiler_gnu=no
  2581. fi
  2582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2583. ac_cv_c_compiler_gnu=$ac_compiler_gnu

  2584. fi
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2586. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2587. if test $ac_compiler_gnu = yes; then
  2588.   GCC=yes
  2589. else
  2590.   GCC=
  2591. fi
  2592. ac_test_CFLAGS=${CFLAGS+set}
  2593. ac_save_CFLAGS=$CFLAGS
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2595. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2596. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2597.   $as_echo_n "(cached) " >&6
  2598. else
  2599.   ac_save_c_werror_flag=$ac_c_werror_flag
  2600.    ac_c_werror_flag=yes
  2601.    ac_cv_prog_cc_g=no
  2602.    CFLAGS="-g"
  2603.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2604. /* end confdefs.h.  */

  2605. int
  2606. main ()
  2607. {

  2608.   ;
  2609.   return 0;
  2610. }
  2611. _ACEOF
  2612. if ac_fn_c_try_compile "$LINENO"; then :
  2613.   ac_cv_prog_cc_g=yes
  2614. else
  2615.   CFLAGS=""
  2616.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2617. /* end confdefs.h.  */

  2618. int
  2619. main ()
  2620. {

  2621.   ;
  2622.   return 0;
  2623. }
  2624. _ACEOF
  2625. if ac_fn_c_try_compile "$LINENO"; then :

  2626. else
  2627.   ac_c_werror_flag=$ac_save_c_werror_flag
  2628.          CFLAGS="-g"
  2629.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2630. /* end confdefs.h.  */

  2631. int
  2632. main ()
  2633. {

  2634.   ;
  2635.   return 0;
  2636. }
  2637. _ACEOF
  2638. if ac_fn_c_try_compile "$LINENO"; then :
  2639.   ac_cv_prog_cc_g=yes
  2640. fi
  2641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2642. fi
  2643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2644. fi
  2645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2646.    ac_c_werror_flag=$ac_save_c_werror_flag
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2649. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2650. if test "$ac_test_CFLAGS" = set; then
  2651.   CFLAGS=$ac_save_CFLAGS
  2652. elif test $ac_cv_prog_cc_g = yes; then
  2653.   if test "$GCC" = yes; then
  2654.     CFLAGS="-g -O2"
  2655.   else
  2656.     CFLAGS="-g"
  2657.   fi
  2658. else
  2659.   if test "$GCC" = yes; then
  2660.     CFLAGS="-O2"
  2661.   else
  2662.     CFLAGS=
  2663.   fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2666. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2667. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2668.   $as_echo_n "(cached) " >&6
  2669. else
  2670.   ac_cv_prog_cc_c89=no
  2671. ac_save_CC=$CC
  2672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2673. /* end confdefs.h.  */
  2674. #include <stdarg.h>
  2675. #include <stdio.h>
  2676. #include <sys/types.h>
  2677. #include <sys/stat.h>
  2678. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2679. struct buf { int x; };
  2680. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2681. static char *e (p, i)
  2682.      char **p;
  2683.      int i;
  2684. {
  2685.   return p[i];
  2686. }
  2687. static char *f (char * (*g) (char **, int), char **p, ...)
  2688. {
  2689.   char *s;
  2690.   va_list v;
  2691.   va_start (v,p);
  2692.   s = g (p, va_arg (v,int));
  2693.   va_end (v);
  2694.   return s;
  2695. }

  2696. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2697.    function prototypes and stuff, but not '\xHH' hex character constants.
  2698.    These don't provoke an error unfortunately, instead are silently treated
  2699.    as 'x'.  The following induces an error, until -std is added to get
  2700.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2701.    array size at least.  It's necessary to write '\x00'==0 to get something
  2702.    that's true only with -std.  */
  2703. int osf4_cc_array ['\x00' == 0 ? 1 : -1];

  2704. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2705.    inside strings and character constants.  */
  2706. #define FOO(x) 'x'
  2707. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

  2708. int test (int i, double x);
  2709. struct s1 {int (*f) (int a);};
  2710. struct s2 {int (*f) (double a);};
  2711. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2712. int argc;
  2713. char **argv;
  2714. int
  2715. main ()
  2716. {
  2717. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2718.   ;
  2719.   return 0;
  2720. }
  2721. _ACEOF
  2722. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2723.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2724. do
  2725.   CC="$ac_save_CC $ac_arg"
  2726.   if ac_fn_c_try_compile "$LINENO"; then :
  2727.   ac_cv_prog_cc_c89=$ac_arg
  2728. fi
  2729. rm -f core conftest.err conftest.$ac_objext
  2730.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  2731. done
  2732. rm -f conftest.$ac_ext
  2733. CC=$ac_save_CC

  2734. fi
  2735. # AC_CACHE_VAL
  2736. case "x$ac_cv_prog_cc_c89" in
  2737.   x)
  2738.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2739. $as_echo "none needed" >&6; } ;;
  2740.   xno)
  2741.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2742. $as_echo "unsupported" >&6; } ;;
  2743.   *)
  2744.     CC="$CC $ac_cv_prog_cc_c89"
  2745.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2746. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2747. esac
  2748. if test "x$ac_cv_prog_cc_c89" != xno; then :

  2749. fi

  2750. ac_ext=c
  2751. ac_cpp='$CPP $CPPFLAGS'
  2752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2754. ac_compiler_gnu=$ac_cv_c_compiler_gnu


  2755. ac_ext=c
  2756. ac_cpp='$CPP $CPPFLAGS'
  2757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2761. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2762. # On Suns, sometimes $CPP names a directory.
  2763. if test -n "$CPP" && test -d "$CPP"; then
  2764.   CPP=
  2765. fi
  2766. if test -z "$CPP"; then
  2767.   if test "${ac_cv_prog_CPP+set}" = set; then :
  2768.   $as_echo_n "(cached) " >&6
  2769. else
  2770.       # Double quotes because CPP needs to be expanded
  2771.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2772.     do
  2773.       ac_preproc_ok=false
  2774. for ac_c_preproc_warn_flag in '' yes
  2775. do
  2776.   # Use a header file that comes with gcc, so configuring glibc
  2777.   # with a fresh cross-compiler works.
  2778.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2779.   # <limits.h> exists even on freestanding compilers.
  2780.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2781.   # not just through cpp. "Syntax error" is here to catch this case.
  2782.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2783. /* end confdefs.h.  */
  2784. #ifdef __STDC__
  2785. # include <limits.h>
  2786. #else
  2787. # include <assert.h>
  2788. #endif
  2789.                      Syntax error
  2790. _ACEOF
  2791. if ac_fn_c_try_cpp "$LINENO"; then :

  2792. else
  2793.   # Broken: fails on valid input.
  2794. continue
  2795. fi
  2796. rm -f conftest.err conftest.$ac_ext

  2797.   # OK, works on sane cases.  Now check whether nonexistent headers
  2798.   # can be detected and how.
  2799.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2800. /* end confdefs.h.  */
  2801. #include <ac_nonexistent.h>
  2802. _ACEOF
  2803. if ac_fn_c_try_cpp "$LINENO"; then :
  2804.   # Broken: success on invalid input.
  2805. continue
  2806. else
  2807.   # Passes both tests.
  2808. ac_preproc_ok=:
  2809. break
  2810. fi
  2811. rm -f conftest.err conftest.$ac_ext

  2812. done
  2813. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2814. rm -f conftest.err conftest.$ac_ext
  2815. if $ac_preproc_ok; then :
  2816.   break
  2817. fi

  2818.     done
  2819.     ac_cv_prog_CPP=$CPP

  2820. fi
  2821.   CPP=$ac_cv_prog_CPP
  2822. else
  2823.   ac_cv_prog_CPP=$CPP
  2824. fi
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2826. $as_echo "$CPP" >&6; }
  2827. ac_preproc_ok=false
  2828. for ac_c_preproc_warn_flag in '' yes
  2829. do
  2830.   # Use a header file that comes with gcc, so configuring glibc
  2831.   # with a fresh cross-compiler works.
  2832.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2833.   # <limits.h> exists even on freestanding compilers.
  2834.   # On the NeXT, cc -E runs the code through the compiler's parser,
  2835.   # not just through cpp. "Syntax error" is here to catch this case.
  2836.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2837. /* end confdefs.h.  */
  2838. #ifdef __STDC__
  2839. # include <limits.h>
  2840. #else
  2841. # include <assert.h>
  2842. #endif
  2843.                      Syntax error
  2844. _ACEOF
  2845. if ac_fn_c_try_cpp "$LINENO"; then :

  2846. else
  2847.   # Broken: fails on valid input.
  2848. continue
  2849. fi
  2850. rm -f conftest.err conftest.$ac_ext

  2851.   # OK, works on sane cases.  Now check whether nonexistent headers
  2852.   # can be detected and how.
  2853.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end confdefs.h.  */
  2855. #include <ac_nonexistent.h>
  2856. _ACEOF
  2857. if ac_fn_c_try_cpp "$LINENO"; then :
  2858.   # Broken: success on invalid input.
  2859. continue
  2860. else
  2861.   # Passes both tests.
  2862. ac_preproc_ok=:
  2863. break
  2864. fi
  2865. rm -f conftest.err conftest.$ac_ext

  2866. done
  2867. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2868. rm -f conftest.err conftest.$ac_ext
  2869. if $ac_preproc_ok; then :

  2870. else
  2871.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2873. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  2874. See \`config.log' for more details." "$LINENO" 5; }
  2875. fi

  2876. ac_ext=c
  2877. ac_cpp='$CPP $CPPFLAGS'
  2878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2880. ac_compiler_gnu=$ac_cv_c_compiler_gnu


  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2882. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2883. if test "${ac_cv_path_GREP+set}" = set; then :
  2884.   $as_echo_n "(cached) " >&6
  2885. else
  2886.   if test -z "$GREP"; then
  2887.   ac_path_GREP_found=false
  2888.   # Loop through the user's path and test for each of PROGNAME-LIST
  2889.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2891. do
  2892.   IFS=$as_save_IFS
  2893.   test -z "$as_dir" && as_dir=.
  2894.     for ac_prog in grep ggrep; do
  2895.     for ac_exec_ext in '' $ac_executable_extensions; do
  2896.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2897.       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2898. # Check for GNU ac_path_GREP and select it if it is found.
  2899.   # Check for GNU $ac_path_GREP
  2900. case `"$ac_path_GREP" --version 2>&1` in
  2901. *GNU*)
  2902.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2903. *)
  2904.   ac_count=0
  2905.   $as_echo_n 0123456789 >"conftest.in"
  2906.   while :
  2907.   do
  2908.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  2909.     mv "conftest.tmp" "conftest.in"
  2910.     cp "conftest.in" "conftest.nl"
  2911.     $as_echo 'GREP' >> "conftest.nl"
  2912.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2913.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2914.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  2915.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2916.       # Best one so far, save it but keep looking for a better one
  2917.       ac_cv_path_GREP="$ac_path_GREP"
  2918.       ac_path_GREP_max=$ac_count
  2919.     fi
  2920.     # 10*(2^10) chars as input seems more than enough
  2921.     test $ac_count -gt 10 && break
  2922.   done
  2923.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2924. esac

  2925.       $ac_path_GREP_found && break 3
  2926.     done
  2927.   done
  2928.   done
  2929. IFS=$as_save_IFS
  2930.   if test -z "$ac_cv_path_GREP"; then
  2931.     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2932.   fi
  2933. else
  2934.   ac_cv_path_GREP=$GREP
  2935. fi

  2936. fi
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2938. $as_echo "$ac_cv_path_GREP" >&6; }
  2939. GREP="$ac_cv_path_GREP"


  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2941. $as_echo_n "checking for egrep... " >&6; }
  2942. if test "${ac_cv_path_EGREP+set}" = set; then :
  2943.   $as_echo_n "(cached) " >&6
  2944. else
  2945.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2946.    then ac_cv_path_EGREP="$GREP -E"
  2947.    else
  2948.      if test -z "$EGREP"; then
  2949.   ac_path_EGREP_found=false
  2950.   # Loop through the user's path and test for each of PROGNAME-LIST
  2951.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2953. do
  2954.   IFS=$as_save_IFS
  2955.   test -z "$as_dir" && as_dir=.
  2956.     for ac_prog in egrep; do
  2957.     for ac_exec_ext in '' $ac_executable_extensions; do
  2958.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2959.       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2960. # Check for GNU ac_path_EGREP and select it if it is found.
  2961.   # Check for GNU $ac_path_EGREP
  2962. case `"$ac_path_EGREP" --version 2>&1` in
  2963. *GNU*)
  2964.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2965. *)
  2966.   ac_count=0
  2967.   $as_echo_n 0123456789 >"conftest.in"
  2968.   while :
  2969.   do
  2970.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  2971.     mv "conftest.tmp" "conftest.in"
  2972.     cp "conftest.in" "conftest.nl"
  2973.     $as_echo 'EGREP' >> "conftest.nl"
  2974.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2975.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2976.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  2977.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2978.       # Best one so far, save it but keep looking for a better one
  2979.       ac_cv_path_EGREP="$ac_path_EGREP"
  2980.       ac_path_EGREP_max=$ac_count
  2981.     fi
  2982.     # 10*(2^10) chars as input seems more than enough
  2983.     test $ac_count -gt 10 && break
  2984.   done
  2985.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2986. esac

  2987.       $ac_path_EGREP_found && break 3
  2988.     done
  2989.   done
  2990.   done
  2991. IFS=$as_save_IFS
  2992.   if test -z "$ac_cv_path_EGREP"; then
  2993.     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2994.   fi
  2995. else
  2996.   ac_cv_path_EGREP=$EGREP
  2997. fi

  2998.    fi
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3001. $as_echo "$ac_cv_path_EGREP" >&6; }
  3002. EGREP="$ac_cv_path_EGREP"


  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3004. $as_echo_n "checking for ANSI C header files... " >&6; }
  3005. if test "${ac_cv_header_stdc+set}" = set; then :
  3006.   $as_echo_n "(cached) " >&6
  3007. else
  3008.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3009. /* end confdefs.h.  */
  3010. #include <stdlib.h>
  3011. #include <stdarg.h>
  3012. #include <string.h>
  3013. #include <float.h>

  3014. int
  3015. main ()
  3016. {

  3017.   ;
  3018.   return 0;
  3019. }
  3020. _ACEOF
  3021. if ac_fn_c_try_compile "$LINENO"; then :
  3022.   ac_cv_header_stdc=yes
  3023. else
  3024.   ac_cv_header_stdc=no
  3025. fi
  3026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  3027. if test $ac_cv_header_stdc = yes; then
  3028.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3029.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3030. /* end confdefs.h.  */
  3031. #include <string.h>

  3032. _ACEOF
  3033. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3034.   $EGREP "memchr" >/dev/null 2>&1; then :

  3035. else
  3036.   ac_cv_header_stdc=no
  3037. fi
  3038. rm -f conftest*

  3039. fi

  3040. if test $ac_cv_header_stdc = yes; then
  3041.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3042.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h.  */
  3044. #include <stdlib.h>

  3045. _ACEOF
  3046. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3047.   $EGREP "free" >/dev/null 2>&1; then :

  3048. else
  3049.   ac_cv_header_stdc=no
  3050. fi
  3051. rm -f conftest*

  3052. fi

  3053. if test $ac_cv_header_stdc = yes; then
  3054.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3055.   if test "$cross_compiling" = yes; then :
  3056.   :
  3057. else
  3058.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h.  */
  3060. #include <ctype.h>
  3061. #include <stdlib.h>
  3062. #if ((' ' & 0x0FF) == 0x020)
  3063. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3064. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3065. #else
  3066. # define ISLOWER(c) \
  3067.                    (('a' <= (c) && (c) <= 'i') \
  3068.                      || ('j' <= (c) && (c) <= 'r') \
  3069.                      || ('s' <= (c) && (c) <= 'z'))
  3070. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3071. #endif

  3072. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3073. int
  3074. main ()
  3075. {
  3076.   int i;
  3077.   for (i = 0; i < 256; i++)
  3078.     if (XOR (islower (i), ISLOWER (i))
  3079.         || toupper (i) != TOUPPER (i))
  3080.       return 2;
  3081.   return 0;
  3082. }
  3083. _ACEOF
  3084. if ac_fn_c_try_run "$LINENO"; then :

  3085. else
  3086.   ac_cv_header_stdc=no
  3087. fi
  3088. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3089.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3090. fi

  3091. fi
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3094. $as_echo "$ac_cv_header_stdc" >&6; }
  3095. if test $ac_cv_header_stdc = yes; then

  3096. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  3097. fi

  3098. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3099. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3100.                   inttypes.h stdint.h unistd.h
  3101. do :
  3102.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3103. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3104. "
  3105. eval as_val=\$$as_ac_Header
  3106.    if test "x$as_val" = x""yes; then :
  3107.   cat >>confdefs.h <<_ACEOF
  3108. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3109. _ACEOF

  3110. fi

  3111. done



  3112.   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3113. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3114.   MINIX=yes
  3115. else
  3116.   MINIX=
  3117. fi


  3118.   if test "$MINIX" = yes; then

  3119. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


  3120. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


  3121. $as_echo "#define _MINIX 1" >>confdefs.h

  3122.   fi


  3123.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3124. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3125. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3126.   $as_echo_n "(cached) " >&6
  3127. else
  3128.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h.  */

  3130. #          define __EXTENSIONS__ 1
  3131.           $ac_includes_default
  3132. int
  3133. main ()
  3134. {

  3135.   ;
  3136.   return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140.   ac_cv_safe_to_define___extensions__=yes
  3141. else
  3142.   ac_cv_safe_to_define___extensions__=no
  3143. fi
  3144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3145. fi
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3147. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3148.   test $ac_cv_safe_to_define___extensions__ = yes &&
  3149.     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  3150.   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  3151.   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  3152.   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  3153.   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h



  3154. # Check whether --enable-largefile was given.
  3155. if test "${enable_largefile+set}" = set; then :
  3156.   enableval=$enable_largefile;
  3157. fi

  3158. if test "$enable_largefile" != no; then

  3159.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3160. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3161. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  3162.   $as_echo_n "(cached) " >&6
  3163. else
  3164.   ac_cv_sys_largefile_CC=no
  3165.      if test "$GCC" != yes; then
  3166.        ac_save_CC=$CC
  3167.        while :; do
  3168.          # IRIX 6.2 and later do not support large files by default,
  3169.          # so use the C compiler's -n32 option if that helps.
  3170.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h.  */
  3172. #include <sys/types.h>
  3173. /* Check that off_t can represent 2**63 - 1 correctly.
  3174.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3175.     since some C++ compilers masquerading as C compilers
  3176.     incorrectly reject 9223372036854775807.  */
  3177. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3178.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3179.                        && LARGE_OFF_T % 2147483647 == 1)
  3180.                       ? 1 : -1];
  3181. int
  3182. main ()
  3183. {

  3184.   ;
  3185.   return 0;
  3186. }
  3187. _ACEOF
  3188.          if ac_fn_c_try_compile "$LINENO"; then :
  3189.   break
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext
  3192.          CC="$CC -n32"
  3193.          if ac_fn_c_try_compile "$LINENO"; then :
  3194.   ac_cv_sys_largefile_CC=' -n32'; break
  3195. fi
  3196. rm -f core conftest.err conftest.$ac_objext
  3197.          break
  3198.        done
  3199.        CC=$ac_save_CC
  3200.        rm -f conftest.$ac_ext
  3201.     fi
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3204. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3205.   if test "$ac_cv_sys_largefile_CC" != no; then
  3206.     CC=$CC$ac_cv_sys_largefile_CC
  3207.   fi

  3208.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3209. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3210. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  3211.   $as_echo_n "(cached) " >&6
  3212. else
  3213.   while :; do
  3214.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h.  */
  3216. #include <sys/types.h>
  3217. /* Check that off_t can represent 2**63 - 1 correctly.
  3218.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3219.     since some C++ compilers masquerading as C compilers
  3220.     incorrectly reject 9223372036854775807.  */
  3221. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3222.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3223.                        && LARGE_OFF_T % 2147483647 == 1)
  3224.                       ? 1 : -1];
  3225. int
  3226. main ()
  3227. {

  3228.   ;
  3229.   return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_c_try_compile "$LINENO"; then :
  3233.   ac_cv_sys_file_offset_bits=no; break
  3234. fi
  3235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3236.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h.  */
  3238. #define _FILE_OFFSET_BITS 64
  3239. #include <sys/types.h>
  3240. /* Check that off_t can represent 2**63 - 1 correctly.
  3241.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3242.     since some C++ compilers masquerading as C compilers
  3243.     incorrectly reject 9223372036854775807.  */
  3244. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3245.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3246.                        && LARGE_OFF_T % 2147483647 == 1)
  3247.                       ? 1 : -1];
  3248. int
  3249. main ()
  3250. {

  3251.   ;
  3252.   return 0;
  3253. }
  3254. _ACEOF
  3255. if ac_fn_c_try_compile "$LINENO"; then :
  3256.   ac_cv_sys_file_offset_bits=64; break
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259.   ac_cv_sys_file_offset_bits=unknown
  3260.   break
  3261. done
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3264. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3265. case $ac_cv_sys_file_offset_bits in #(
  3266.   no | unknown) ;;
  3267.   *)
  3268. cat >>confdefs.h <<_ACEOF
  3269. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3270. _ACEOF
  3271. ;;
  3272. esac
  3273. rm -rf conftest*
  3274.   if test $ac_cv_sys_file_offset_bits = unknown; then
  3275.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3276. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3277. if test "${ac_cv_sys_large_files+set}" = set; then :
  3278.   $as_echo_n "(cached) " >&6
  3279. else
  3280.   while :; do
  3281.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3282. /* end confdefs.h.  */
  3283. #include <sys/types.h>
  3284. /* Check that off_t can represent 2**63 - 1 correctly.
  3285.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3286.     since some C++ compilers masquerading as C compilers
  3287.     incorrectly reject 9223372036854775807.  */
  3288. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3289.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3290.                        && LARGE_OFF_T % 2147483647 == 1)
  3291.                       ? 1 : -1];
  3292. int
  3293. main ()
  3294. {

  3295.   ;
  3296.   return 0;
  3297. }
  3298. _ACEOF
  3299. if ac_fn_c_try_compile "$LINENO"; then :
  3300.   ac_cv_sys_large_files=no; break
  3301. fi
  3302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h.  */
  3305. #define _LARGE_FILES 1
  3306. #include <sys/types.h>
  3307. /* Check that off_t can represent 2**63 - 1 correctly.
  3308.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3309.     since some C++ compilers masquerading as C compilers
  3310.     incorrectly reject 9223372036854775807.  */
  3311. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3312.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3313.                        && LARGE_OFF_T % 2147483647 == 1)
  3314.                       ? 1 : -1];
  3315. int
  3316. main ()
  3317. {

  3318.   ;
  3319.   return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323.   ac_cv_sys_large_files=1; break
  3324. fi
  3325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3326.   ac_cv_sys_large_files=unknown
  3327.   break
  3328. done
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3331. $as_echo "$ac_cv_sys_large_files" >&6; }
  3332. case $ac_cv_sys_large_files in #(
  3333.   no | unknown) ;;
  3334.   *)
  3335. cat >>confdefs.h <<_ACEOF
  3336. #define _LARGE_FILES $ac_cv_sys_large_files
  3337. _ACEOF
  3338. ;;
  3339. esac
  3340. rm -rf conftest*
  3341.   fi
  3342. fi


  3343. ac_aux_dir=
  3344. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3345.   for ac_t in install-sh install.sh shtool; do
  3346.     if test -f "$ac_dir/$ac_t"; then
  3347.       ac_aux_dir=$ac_dir
  3348.       ac_install_sh="$ac_aux_dir/$ac_t -c"
  3349.       break 2
  3350.     fi
  3351.   done
  3352. done
  3353. if test -z "$ac_aux_dir"; then
  3354.   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3355. fi

  3356. # These three variables are undocumented and unsupported,
  3357. # and are intended to be withdrawn in a future Autoconf release.
  3358. # They can cause serious problems if a builder's source tree is in a directory
  3359. # whose full name contains unusual characters.
  3360. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  3361. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  3362. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


  3363. # Make sure we can run config.sub.
  3364. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3365.   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3367. $as_echo_n "checking build system type... " >&6; }
  3368. if test "${ac_cv_build+set}" = set; then :
  3369.   $as_echo_n "(cached) " >&6
  3370. else
  3371.   ac_build_alias=$build_alias
  3372. test "x$ac_build_alias" = x &&
  3373.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3374. test "x$ac_build_alias" = x &&
  3375.   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3376. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3377.   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

  3378. fi
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3380. $as_echo "$ac_cv_build" >&6; }
  3381. case $ac_cv_build in
  3382. *-*-*) ;;
  3383. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3384. esac
  3385. build=$ac_cv_build
  3386. ac_save_IFS=$IFS; IFS='-'
  3387. set x $ac_cv_build
  3388. shift
  3389. build_cpu=$1
  3390. build_vendor=$2
  3391. shift; shift
  3392. # Remember, the first character of IFS is used to create $*,
  3393. # except with old shells:
  3394. build_os=$*
  3395. IFS=$ac_save_IFS
  3396. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3398. $as_echo_n "checking host system type... " >&6; }
  3399. if test "${ac_cv_host+set}" = set; then :
  3400.   $as_echo_n "(cached) " >&6
  3401. else
  3402.   if test "x$host_alias" = x; then
  3403.   ac_cv_host=$ac_cv_build
  3404. else
  3405.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3406.     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3407. fi

  3408. fi
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3410. $as_echo "$ac_cv_host" >&6; }
  3411. case $ac_cv_host in
  3412. *-*-*) ;;
  3413. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3414. esac
  3415. host=$ac_cv_host
  3416. ac_save_IFS=$IFS; IFS='-'
  3417. set x $ac_cv_host
  3418. shift
  3419. host_cpu=$1
  3420. host_vendor=$2
  3421. shift; shift
  3422. # Remember, the first character of IFS is used to create $*,
  3423. # except with old shells:
  3424. host_os=$*
  3425. IFS=$ac_save_IFS
  3426. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3428. $as_echo_n "checking target system type... " >&6; }
  3429. if test "${ac_cv_target+set}" = set; then :
  3430.   $as_echo_n "(cached) " >&6
  3431. else
  3432.   if test "x$target_alias" = x; then
  3433.   ac_cv_target=$ac_cv_host
  3434. else
  3435.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3436.     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3437. fi

  3438. fi
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3440. $as_echo "$ac_cv_target" >&6; }
  3441. case $ac_cv_target in
  3442. *-*-*) ;;
  3443. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3444. esac
  3445. target=$ac_cv_target
  3446. ac_save_IFS=$IFS; IFS='-'
  3447. set x $ac_cv_target
  3448. shift
  3449. target_cpu=$1
  3450. target_vendor=$2
  3451. shift; shift
  3452. # Remember, the first character of IFS is used to create $*,
  3453. # except with old shells:
  3454. target_os=$*
  3455. IFS=$ac_save_IFS
  3456. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


  3457. # The aliases save the names the user supplied, while $host etc.
  3458. # will get canonicalized.
  3459. test -n "$target_alias" &&
  3460.   test "$program_prefix$program_suffix$program_transform_name" = \
  3461.     NONENONEs,x,x, &&
  3462.   program_prefix=${target_alias}-


  3463. # Find a good install program.  We prefer a C program (faster),
  3464. # so one script is as good as another.  But avoid the broken or
  3465. # incompatible versions:
  3466. # SysV /etc/install, /usr/sbin/install
  3467. # SunOS /usr/etc/install
  3468. # IRIX /sbin/install
  3469. # AIX /bin/install
  3470. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3471. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3472. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3473. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3474. # OS/2's system install, which has a completely different semantic
  3475. # ./install, which can be erroneously created by make from ./install.sh.
  3476. # Reject install programs that cannot install multiple files.
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3478. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3479. if test -z "$INSTALL"; then
  3480. if test "${ac_cv_path_install+set}" = set; then :
  3481.   $as_echo_n "(cached) " >&6
  3482. else
  3483.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3484. for as_dir in $PATH
  3485. do
  3486.   IFS=$as_save_IFS
  3487.   test -z "$as_dir" && as_dir=.
  3488.     # Account for people who put trailing slashes in PATH elements.
  3489. case $as_dir/ in #((
  3490.   ./ | .// | /[cC]/* | \
  3491.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3492.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3493.   /usr/ucb/* ) ;;
  3494.   *)
  3495.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3496.     # Don't use installbsd from OSF since it installs stuff as root
  3497.     # by default.
  3498.     for ac_prog in ginstall scoinst install; do
  3499.       for ac_exec_ext in '' $ac_executable_extensions; do
  3500.         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3501.           if test $ac_prog = install &&
  3502.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3503.             # AIX install.  It has an incompatible calling convention.
  3504.             :
  3505.           elif test $ac_prog = install &&
  3506.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3507.             # program-specific install script used by HP pwplus--don't use.
  3508.             :
  3509.           else
  3510.             rm -rf conftest.one conftest.two conftest.dir
  3511.             echo one > conftest.one
  3512.             echo two > conftest.two
  3513.             mkdir conftest.dir
  3514.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3515.               test -s conftest.one && test -s conftest.two &&
  3516.               test -s conftest.dir/conftest.one &&
  3517.               test -s conftest.dir/conftest.two
  3518.             then
  3519.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3520.               break 3
  3521.             fi
  3522.           fi
  3523.         fi
  3524.       done
  3525.     done
  3526.     ;;
  3527. esac

  3528.   done
  3529. IFS=$as_save_IFS

  3530. rm -rf conftest.one conftest.two conftest.dir

  3531. fi
  3532.   if test "${ac_cv_path_install+set}" = set; then
  3533.     INSTALL=$ac_cv_path_install
  3534.   else
  3535.     # As a last resort, use the slow shell script.  Don't cache a
  3536.     # value for INSTALL within a source directory, because that will
  3537.     # break other packages using the cache if that directory is
  3538.     # removed, or if the value is a relative name.
  3539.     INSTALL=$ac_install_sh
  3540.   fi
  3541. fi
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3543. $as_echo "$INSTALL" >&6; }

  3544. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3545. # It thinks the first close brace ends the variable substitution.
  3546. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

  3547. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

  3548. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

  3549. if test -n "$ac_tool_prefix"; then
  3550.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3551. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3553. $as_echo_n "checking for $ac_word... " >&6; }
  3554. if test "${ac_cv_prog_AR+set}" = set; then :
  3555.   $as_echo_n "(cached) " >&6
  3556. else
  3557.   if test -n "$AR"; then
  3558.   ac_cv_prog_AR="$AR" # Let the user override the test.
  3559. else
  3560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3561. for as_dir in $PATH
  3562. do
  3563.   IFS=$as_save_IFS
  3564.   test -z "$as_dir" && as_dir=.
  3565.     for ac_exec_ext in '' $ac_executable_extensions; do
  3566.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3567.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  3568.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3569.     break 2
  3570.   fi
  3571. done
  3572.   done
  3573. IFS=$as_save_IFS

  3574. fi
  3575. fi
  3576. AR=$ac_cv_prog_AR
  3577. if test -n "$AR"; then
  3578.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3579. $as_echo "$AR" >&6; }
  3580. else
  3581.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3582. $as_echo "no" >&6; }
  3583. fi


  3584. fi
  3585. if test -z "$ac_cv_prog_AR"; then
  3586.   ac_ct_AR=$AR
  3587.   # Extract the first word of "ar", so it can be a program name with args.
  3588. set dummy ar; ac_word=$2
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. $as_echo_n "checking for $ac_word... " >&6; }
  3591. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  3592.   $as_echo_n "(cached) " >&6
  3593. else
  3594.   if test -n "$ac_ct_AR"; then
  3595.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3596. else
  3597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3598. for as_dir in $PATH
  3599. do
  3600.   IFS=$as_save_IFS
  3601.   test -z "$as_dir" && as_dir=.
  3602.     for ac_exec_ext in '' $ac_executable_extensions; do
  3603.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3604.     ac_cv_prog_ac_ct_AR="ar"
  3605.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3606.     break 2
  3607.   fi
  3608. done
  3609.   done
  3610. IFS=$as_save_IFS

  3611. fi
  3612. fi
  3613. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3614. if test -n "$ac_ct_AR"; then
  3615.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3616. $as_echo "$ac_ct_AR" >&6; }
  3617. else
  3618.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. fi

  3621.   if test "x$ac_ct_AR" = x; then
  3622.     AR=""
  3623.   else
  3624.     case $cross_compiling:$ac_tool_warned in
  3625. yes:)
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3628. ac_tool_warned=yes ;;
  3629. esac
  3630.     AR=$ac_ct_AR
  3631.   fi
  3632. else
  3633.   AR="$ac_cv_prog_AR"
  3634. fi

  3635. if test -n "$ac_tool_prefix"; then
  3636.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3637. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3639. $as_echo_n "checking for $ac_word... " >&6; }
  3640. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3641.   $as_echo_n "(cached) " >&6
  3642. else
  3643.   if test -n "$RANLIB"; then
  3644.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3645. else
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH
  3648. do
  3649.   IFS=$as_save_IFS
  3650.   test -z "$as_dir" && as_dir=.
  3651.     for ac_exec_ext in '' $ac_executable_extensions; do
  3652.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3653.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3654.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3655.     break 2
  3656.   fi
  3657. done
  3658.   done
  3659. IFS=$as_save_IFS

  3660. fi
  3661. fi
  3662. RANLIB=$ac_cv_prog_RANLIB
  3663. if test -n "$RANLIB"; then
  3664.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3665. $as_echo "$RANLIB" >&6; }
  3666. else
  3667.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3668. $as_echo "no" >&6; }
  3669. fi


  3670. fi
  3671. if test -z "$ac_cv_prog_RANLIB"; then
  3672.   ac_ct_RANLIB=$RANLIB
  3673.   # Extract the first word of "ranlib", so it can be a program name with args.
  3674. set dummy ranlib; ac_word=$2
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3676. $as_echo_n "checking for $ac_word... " >&6; }
  3677. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3678.   $as_echo_n "(cached) " >&6
  3679. else
  3680.   if test -n "$ac_ct_RANLIB"; then
  3681.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3682. else
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH
  3685. do
  3686.   IFS=$as_save_IFS
  3687.   test -z "$as_dir" && as_dir=.
  3688.     for ac_exec_ext in '' $ac_executable_extensions; do
  3689.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3690.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  3691.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3692.     break 2
  3693.   fi
  3694. done
  3695.   done
  3696. IFS=$as_save_IFS

  3697. fi
  3698. fi
  3699. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3700. if test -n "$ac_ct_RANLIB"; then
  3701.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3702. $as_echo "$ac_ct_RANLIB" >&6; }
  3703. else
  3704.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. $as_echo "no" >&6; }
  3706. fi

  3707.   if test "x$ac_ct_RANLIB" = x; then
  3708.     RANLIB=":"
  3709.   else
  3710.     case $cross_compiling:$ac_tool_warned in
  3711. yes:)
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3714. ac_tool_warned=yes ;;
  3715. esac
  3716.     RANLIB=$ac_ct_RANLIB
  3717.   fi
  3718. else
  3719.   RANLIB="$ac_cv_prog_RANLIB"
  3720. fi


  3721. test "$program_prefix" != NONE &&
  3722.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3723. # Use a double $ so make ignores it.
  3724. test "$program_suffix" != NONE &&
  3725.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3726. # Double any \ or $.
  3727. # By default was `s,x,x', remove it if useless.
  3728. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3729. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`


  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3731. $as_echo_n "checking for ANSI C header files... " >&6; }
  3732. if test "${ac_cv_header_stdc+set}" = set; then :
  3733.   $as_echo_n "(cached) " >&6
  3734. else
  3735.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3736. /* end confdefs.h.  */
  3737. #include <stdlib.h>
  3738. #include <stdarg.h>
  3739. #include <string.h>
  3740. #include <float.h>

  3741. int
  3742. main ()
  3743. {

  3744.   ;
  3745.   return 0;
  3746. }
  3747. _ACEOF
  3748. if ac_fn_c_try_compile "$LINENO"; then :
  3749.   ac_cv_header_stdc=yes
  3750. else
  3751.   ac_cv_header_stdc=no
  3752. fi
  3753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  3754. if test $ac_cv_header_stdc = yes; then
  3755.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3756.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h.  */
  3758. #include <string.h>

  3759. _ACEOF
  3760. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3761.   $EGREP "memchr" >/dev/null 2>&1; then :

  3762. else
  3763.   ac_cv_header_stdc=no
  3764. fi
  3765. rm -f conftest*

  3766. fi

  3767. if test $ac_cv_header_stdc = yes; then
  3768.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3769.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3770. /* end confdefs.h.  */
  3771. #include <stdlib.h>

  3772. _ACEOF
  3773. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3774.   $EGREP "free" >/dev/null 2>&1; then :

  3775. else
  3776.   ac_cv_header_stdc=no
  3777. fi
  3778. rm -f conftest*

  3779. fi

  3780. if test $ac_cv_header_stdc = yes; then
  3781.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3782.   if test "$cross_compiling" = yes; then :
  3783.   :
  3784. else
  3785.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3786. /* end confdefs.h.  */
  3787. #include <ctype.h>
  3788. #include <stdlib.h>
  3789. #if ((' ' & 0x0FF) == 0x020)
  3790. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3791. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3792. #else
  3793. # define ISLOWER(c) \
  3794.                    (('a' <= (c) && (c) <= 'i') \
  3795.                      || ('j' <= (c) && (c) <= 'r') \
  3796.                      || ('s' <= (c) && (c) <= 'z'))
  3797. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3798. #endif

  3799. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3800. int
  3801. main ()
  3802. {
  3803.   int i;
  3804.   for (i = 0; i < 256; i++)
  3805.     if (XOR (islower (i), ISLOWER (i))
  3806.         || toupper (i) != TOUPPER (i))
  3807.       return 2;
  3808.   return 0;
  3809. }
  3810. _ACEOF
  3811. if ac_fn_c_try_run "$LINENO"; then :

  3812. else
  3813.   ac_cv_header_stdc=no
  3814. fi
  3815. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3816.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3817. fi

  3818. fi
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3821. $as_echo "$ac_cv_header_stdc" >&6; }
  3822. if test $ac_cv_header_stdc = yes; then

  3823. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  3824. fi


  3825. # Set the 'development' global.
  3826. . $srcdir/../../bfd/development.sh

  3827. # Enable -lmcheck by default (it provides cheap-enough memory
  3828. # mangling), but turn it off for releases.
  3829. if $development; then
  3830.   libmcheck_default=yes
  3831. else
  3832.   libmcheck_default=no
  3833. fi

  3834.   # Check whether --enable-libmcheck was given.
  3835. if test "${enable_libmcheck+set}" = set; then :
  3836.   enableval=$enable_libmcheck; case "${enableval}" in
  3837.       yes | y) ENABLE_LIBMCHECK="yes" ;;
  3838.       no | n)  ENABLE_LIBMCHECK="no" ;;
  3839.       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
  3840.     esac
  3841. fi


  3842.   if test -z "${ENABLE_LIBMCHECK}"; then
  3843.     ENABLE_LIBMCHECK=${libmcheck_default}
  3844.   fi

  3845.   if test "$ENABLE_LIBMCHECK" = "yes" ; then
  3846.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
  3847. $as_echo_n "checking for main in -lmcheck... " >&6; }
  3848. if test "${ac_cv_lib_mcheck_main+set}" = set; then :
  3849.   $as_echo_n "(cached) " >&6
  3850. else
  3851.   ac_check_lib_save_LIBS=$LIBS
  3852. LIBS="-lmcheck  $LIBS"
  3853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3854. /* end confdefs.h.  */


  3855. int
  3856. main ()
  3857. {
  3858. return main ();
  3859.   ;
  3860.   return 0;
  3861. }
  3862. _ACEOF
  3863. if ac_fn_c_try_link "$LINENO"; then :
  3864.   ac_cv_lib_mcheck_main=yes
  3865. else
  3866.   ac_cv_lib_mcheck_main=no
  3867. fi
  3868. rm -f core conftest.err conftest.$ac_objext \
  3869.     conftest$ac_exeext conftest.$ac_ext
  3870. LIBS=$ac_check_lib_save_LIBS
  3871. fi
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
  3873. $as_echo "$ac_cv_lib_mcheck_main" >&6; }
  3874. if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
  3875.   cat >>confdefs.h <<_ACEOF
  3876. #define HAVE_LIBMCHECK 1
  3877. _ACEOF

  3878.   LIBS="-lmcheck $LIBS"

  3879. fi

  3880.   fi


  3881. case ${build_alias} in
  3882.   "") build_noncanonical=${build} ;;
  3883.   *) build_noncanonical=${build_alias} ;;
  3884. esac

  3885. case ${host_alias} in
  3886.   "") host_noncanonical=${build_noncanonical} ;;
  3887.   *) host_noncanonical=${host_alias} ;;
  3888. esac

  3889. case ${target_alias} in
  3890.   "") target_noncanonical=${host_noncanonical} ;;
  3891.   *) target_noncanonical=${target_alias} ;;
  3892. esac






  3893. # Dependency checking.
  3894. rm -rf .tst 2>/dev/null
  3895. mkdir .tst 2>/dev/null
  3896. if test -d .tst; then
  3897.   am__leading_dot=.
  3898. else
  3899.   am__leading_dot=_
  3900. fi
  3901. rmdir .tst 2>/dev/null

  3902. DEPDIR="${am__leading_dot}deps"

  3903. ac_config_commands="$ac_config_commands depdir"


  3904. depcc="$CC"   am_compiler_list=

  3905. am_depcomp=$ac_aux_dir/depcomp
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3907. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3908. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3909.   $as_echo_n "(cached) " >&6
  3910. else
  3911.   if test -f "$am_depcomp"; then
  3912.   # We make a subdir and do the tests there.  Otherwise we can end up
  3913.   # making bogus files that we don't know about and never remove.  For
  3914.   # instance it was reported that on HP-UX the gcc test will end up
  3915.   # making a dummy file named `D' -- because `-MD' means `put the output
  3916.   # in D'.
  3917.   mkdir conftest.dir
  3918.   # Copy depcomp to subdir because otherwise we won't find it if we're
  3919.   # using a relative directory.
  3920.   cp "$am_depcomp" conftest.dir
  3921.   cd conftest.dir
  3922.   # We will build objects and dependencies in a subdirectory because
  3923.   # it helps to detect inapplicable dependency modes.  For instance
  3924.   # both Tru64's cc and ICC support -MD to output dependencies as a
  3925.   # side effect of compilation, but ICC will put the dependencies in
  3926.   # the current directory while Tru64 will put them in the object
  3927.   # directory.
  3928.   mkdir sub

  3929.   am_cv_CC_dependencies_compiler_type=none
  3930.   if test "$am_compiler_list" = ""; then
  3931.      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3932.   fi
  3933.   for depmode in $am_compiler_list; do
  3934.     if test $depmode = none; then break; fi

  3935.     $as_echo "$as_me:$LINENO: trying $depmode" >&5
  3936.     # Setup a source with many dependencies, because some compilers
  3937.     # like to wrap large dependency lists on column 80 (with \), and
  3938.     # we should not choose a depcomp mode which is confused by this.
  3939.     #
  3940.     # We need to recreate these files for each test, as the compiler may
  3941.     # overwrite some of them when testing with obscure command lines.
  3942.     # This happens at least with the AIX C compiler.
  3943.     : > sub/conftest.c
  3944.     for i in 1 2 3 4 5 6; do
  3945.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3946.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3947.       # Solaris 8's {/usr,}/bin/sh.
  3948.       touch sub/conftst$i.h
  3949.     done
  3950.     echo "include sub/conftest.Po" > confmf

  3951.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3952.     # mode.  It turns out that the SunPro C++ compiler does not properly
  3953.     # handle `-M -o', and we need to detect this.
  3954.     depcmd="depmode=$depmode \
  3955.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3956.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3957.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  3958.     echo "| $depcmd" | sed -e 's/  */ /g' >&5
  3959.     if env $depcmd > conftest.err 2>&1 &&
  3960.        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  3961.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  3962.        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  3963.       # icc doesn't choke on unknown options, it will just issue warnings
  3964.       # or remarks (even with -Werror).  So we grep stderr for any message
  3965.       # that says an option was ignored or not supported.
  3966.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  3967.       #   icc: Command line warning: ignoring option '-M'; no argument required
  3968.       # The diagnosis changed in icc 8.0:
  3969.       #   icc: Command line remark: option '-MP' not supported
  3970.       if (grep 'ignoring option' conftest.err ||
  3971.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3972.         am_cv_CC_dependencies_compiler_type=$depmode
  3973.         $as_echo "$as_me:$LINENO: success" >&5
  3974.         break
  3975.       fi
  3976.     fi
  3977.     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  3978.     sed -e 's/^/| /' < conftest.err >&5
  3979.   done

  3980.   cd ..
  3981.   rm -rf conftest.dir
  3982. else
  3983.   am_cv_CC_dependencies_compiler_type=none
  3984. fi

  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3987. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3988. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  3989. then as_fn_error "no usable dependency style found" "$LINENO" 5
  3990. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

  3991. fi


  3992. # Check for the 'make' the user wants to use.
  3993. for ac_prog in make
  3994. do
  3995.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3996. set dummy $ac_prog; ac_word=$2
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3998. $as_echo_n "checking for $ac_word... " >&6; }
  3999. if test "${ac_cv_prog_MAKE+set}" = set; then :
  4000.   $as_echo_n "(cached) " >&6
  4001. else
  4002.   if test -n "$MAKE"; then
  4003.   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  4004. else
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH
  4007. do
  4008.   IFS=$as_save_IFS
  4009.   test -z "$as_dir" && as_dir=.
  4010.     for ac_exec_ext in '' $ac_executable_extensions; do
  4011.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4012.     ac_cv_prog_MAKE="$ac_prog"
  4013.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4014.     break 2
  4015.   fi
  4016. done
  4017.   done
  4018. IFS=$as_save_IFS

  4019. fi
  4020. fi
  4021. MAKE=$ac_cv_prog_MAKE
  4022. if test -n "$MAKE"; then
  4023.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  4024. $as_echo "$MAKE" >&6; }
  4025. else
  4026.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4027. $as_echo "no" >&6; }
  4028. fi


  4029.   test -n "$MAKE" && break
  4030. done

  4031. MAKE_IS_GNU=
  4032. case "`$MAKE --version 2>&1 | sed 1q`" in
  4033.   *GNU*)
  4034.     MAKE_IS_GNU=yes
  4035.     ;;
  4036. esac
  4037. if test "$MAKE_IS_GNU" = yes; then
  4038.   GMAKE_TRUE=
  4039.   GMAKE_FALSE='#'
  4040. else
  4041.   GMAKE_TRUE='#'
  4042.   GMAKE_FALSE=
  4043. fi

  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4045. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4046. set x ${MAKE-make}
  4047. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4048. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4049.   $as_echo_n "(cached) " >&6
  4050. else
  4051.   cat >conftest.make <<\_ACEOF
  4052. SHELL = /bin/sh
  4053. all:
  4054.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  4055. _ACEOF
  4056. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4057. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4058.   *@@@%%%=?*=@@@%%%*)
  4059.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  4060.   *)
  4061.     eval ac_cv_prog_make_${ac_make}_set=no;;
  4062. esac
  4063. rm -f conftest.make
  4064. fi
  4065. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4066.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4067. $as_echo "yes" >&6; }
  4068.   SET_MAKE=
  4069. else
  4070.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072.   SET_MAKE="MAKE=${MAKE-make}"
  4073. fi


  4074. gnulib_extra_configure_args=
  4075. # If large-file support is disabled, make sure gnulib does the same.
  4076. if test "$enable_largefile" = no; then
  4077. gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
  4078. fi

  4079. # Configure gnulib.  We can't use AC_CONFIG_SUBDIRS as that'd expect
  4080. # to find the the source subdir to be configured directly under
  4081. # gdbserver/.  We need to build gnulib under some other directory not
  4082. # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
  4083. # build it in the same directory, when building in the source dir.

  4084.   in_src="../gnulib"
  4085.   in_build="build-gnulib-gdbserver"
  4086.   in_extra_args="$gnulib_extra_configure_args"

  4087.   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  4088.   # so they do not pile up.
  4089.   ac_sub_configure_args=
  4090.   ac_prev=
  4091.   eval "set x $ac_configure_args"
  4092.   shift
  4093.   for ac_arg
  4094.   do
  4095.     if test -n "$ac_prev"; then
  4096.       ac_prev=
  4097.       continue
  4098.     fi
  4099.     case $ac_arg in
  4100.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  4101.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  4102.       ac_prev=cache_file ;;
  4103.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  4104.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  4105.     | --c=*)
  4106.       ;;
  4107.     --config-cache | -C)
  4108.       ;;
  4109.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  4110.       ac_prev=srcdir ;;
  4111.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  4112.       ;;
  4113.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  4114.       ac_prev=prefix ;;
  4115.     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  4116.       ;;
  4117.     --disable-option-checking)
  4118.       ;;
  4119.     *)
  4120.       case $ac_arg in
  4121.       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4122.       esac
  4123.       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  4124.     esac
  4125.   done

  4126.   # Always prepend --prefix to ensure using the same prefix
  4127.   # in subdir configurations.
  4128.   ac_arg="--prefix=$prefix"
  4129.   case $ac_arg in
  4130.   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4131.   esac
  4132.   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  4133.   # Pass --silent
  4134.   if test "$silent" = yes; then
  4135.     ac_sub_configure_args="--silent $ac_sub_configure_args"
  4136.   fi

  4137.   # Always prepend --disable-option-checking to silence warnings, since
  4138.   # different subdirs can have different --enable and --with options.
  4139.   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  4140.   ac_popdir=`pwd`
  4141.   ac_dir=$in_build

  4142.   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  4143.   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  4144.   $as_echo "$ac_msg" >&6
  4145.   as_dir="$ac_dir"; as_fn_mkdir_p

  4146.   case $srcdir in
  4147.   [\\/]* | ?:[\\/]* )
  4148.     ac_srcdir=$srcdir/$in_src ;;
  4149.   *) # Relative name.
  4150.     ac_srcdir=../$srcdir/$in_src ;;
  4151.   esac

  4152.   cd "$ac_dir"

  4153.   ac_sub_configure=$ac_srcdir/configure

  4154.   # Make the cache file name correct relative to the subdirectory.
  4155.   case $cache_file in
  4156.   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  4157.   *) # Relative name.
  4158.     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  4159.   esac

  4160.   if test -n "$in_extra_args"; then
  4161.     # Add the extra args at the end.
  4162.     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
  4163.   fi

  4164.   { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  4165. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  4166.   # The eval makes quoting arguments work.
  4167.   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  4168.        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  4169.     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5

  4170.   cd "$ac_popdir"



  4171.   in_src="../../libiberty"
  4172.   in_build="build-libiberty-gdbserver"
  4173.   in_extra_args=

  4174.   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  4175.   # so they do not pile up.
  4176.   ac_sub_configure_args=
  4177.   ac_prev=
  4178.   eval "set x $ac_configure_args"
  4179.   shift
  4180.   for ac_arg
  4181.   do
  4182.     if test -n "$ac_prev"; then
  4183.       ac_prev=
  4184.       continue
  4185.     fi
  4186.     case $ac_arg in
  4187.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  4188.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  4189.       ac_prev=cache_file ;;
  4190.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  4191.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  4192.     | --c=*)
  4193.       ;;
  4194.     --config-cache | -C)
  4195.       ;;
  4196.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  4197.       ac_prev=srcdir ;;
  4198.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  4199.       ;;
  4200.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  4201.       ac_prev=prefix ;;
  4202.     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  4203.       ;;
  4204.     --disable-option-checking)
  4205.       ;;
  4206.     *)
  4207.       case $ac_arg in
  4208.       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4209.       esac
  4210.       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  4211.     esac
  4212.   done

  4213.   # Always prepend --prefix to ensure using the same prefix
  4214.   # in subdir configurations.
  4215.   ac_arg="--prefix=$prefix"
  4216.   case $ac_arg in
  4217.   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4218.   esac
  4219.   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  4220.   # Pass --silent
  4221.   if test "$silent" = yes; then
  4222.     ac_sub_configure_args="--silent $ac_sub_configure_args"
  4223.   fi

  4224.   # Always prepend --disable-option-checking to silence warnings, since
  4225.   # different subdirs can have different --enable and --with options.
  4226.   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  4227.   ac_popdir=`pwd`
  4228.   ac_dir=$in_build

  4229.   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  4230.   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  4231.   $as_echo "$ac_msg" >&6
  4232.   as_dir="$ac_dir"; as_fn_mkdir_p

  4233.   case $srcdir in
  4234.   [\\/]* | ?:[\\/]* )
  4235.     ac_srcdir=$srcdir/$in_src ;;
  4236.   *) # Relative name.
  4237.     ac_srcdir=../$srcdir/$in_src ;;
  4238.   esac

  4239.   cd "$ac_dir"

  4240.   ac_sub_configure=$ac_srcdir/configure

  4241.   # Make the cache file name correct relative to the subdirectory.
  4242.   case $cache_file in
  4243.   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  4244.   *) # Relative name.
  4245.     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  4246.   esac

  4247.   if test -n "$in_extra_args"; then
  4248.     # Add the extra args at the end.
  4249.     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
  4250.   fi

  4251.   { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  4252. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  4253.   # The eval makes quoting arguments work.
  4254.   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  4255.        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  4256.     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5

  4257.   cd "$ac_popdir"


  4258. for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h                  proc_service.h sys/procfs.h linux/elf.h                  fcntl.h signal.h sys/file.h                  sys/ioctl.h netinet/in.h sys/socket.h netdb.h                  netinet/tcp.h arpa/inet.h
  4259. do :
  4260.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4261. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4262. eval as_val=\$$as_ac_Header
  4263.    if test "x$as_val" = x""yes; then :
  4264.   cat >>confdefs.h <<_ACEOF
  4265. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4266. _ACEOF

  4267. fi

  4268. done

  4269. for ac_func in pread pwrite pread64
  4270. do :
  4271.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4272. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4273. eval as_val=\$$as_ac_var
  4274.    if test "x$as_val" = x""yes; then :
  4275.   cat >>confdefs.h <<_ACEOF
  4276. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4277. _ACEOF

  4278. fi
  4279. done



  4280.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4281. $as_echo_n "checking for ANSI C header files... " >&6; }
  4282. if test "${ac_cv_header_stdc+set}" = set; then :
  4283.   $as_echo_n "(cached) " >&6
  4284. else
  4285.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4286. /* end confdefs.h.  */
  4287. #include <stdlib.h>
  4288. #include <stdarg.h>
  4289. #include <string.h>
  4290. #include <float.h>

  4291. int
  4292. main ()
  4293. {

  4294.   ;
  4295.   return 0;
  4296. }
  4297. _ACEOF
  4298. if ac_fn_c_try_compile "$LINENO"; then :
  4299.   ac_cv_header_stdc=yes
  4300. else
  4301.   ac_cv_header_stdc=no
  4302. fi
  4303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  4304. if test $ac_cv_header_stdc = yes; then
  4305.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4306.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4307. /* end confdefs.h.  */
  4308. #include <string.h>

  4309. _ACEOF
  4310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4311.   $EGREP "memchr" >/dev/null 2>&1; then :

  4312. else
  4313.   ac_cv_header_stdc=no
  4314. fi
  4315. rm -f conftest*

  4316. fi

  4317. if test $ac_cv_header_stdc = yes; then
  4318.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4319.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4320. /* end confdefs.h.  */
  4321. #include <stdlib.h>

  4322. _ACEOF
  4323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4324.   $EGREP "free" >/dev/null 2>&1; then :

  4325. else
  4326.   ac_cv_header_stdc=no
  4327. fi
  4328. rm -f conftest*

  4329. fi

  4330. if test $ac_cv_header_stdc = yes; then
  4331.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4332.   if test "$cross_compiling" = yes; then :
  4333.   :
  4334. else
  4335.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4336. /* end confdefs.h.  */
  4337. #include <ctype.h>
  4338. #include <stdlib.h>
  4339. #if ((' ' & 0x0FF) == 0x020)
  4340. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4341. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4342. #else
  4343. # define ISLOWER(c) \
  4344.                    (('a' <= (c) && (c) <= 'i') \
  4345.                      || ('j' <= (c) && (c) <= 'r') \
  4346.                      || ('s' <= (c) && (c) <= 'z'))
  4347. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4348. #endif

  4349. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4350. int
  4351. main ()
  4352. {
  4353.   int i;
  4354.   for (i = 0; i < 256; i++)
  4355.     if (XOR (islower (i), ISLOWER (i))
  4356.         || toupper (i) != TOUPPER (i))
  4357.       return 2;
  4358.   return 0;
  4359. }
  4360. _ACEOF
  4361. if ac_fn_c_try_run "$LINENO"; then :

  4362. else
  4363.   ac_cv_header_stdc=no
  4364. fi
  4365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4366.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4367. fi

  4368. fi
  4369. fi
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4371. $as_echo "$ac_cv_header_stdc" >&6; }
  4372. if test $ac_cv_header_stdc = yes; then

  4373. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  4374. fi

  4375.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4376. # for constant arguments.  Useless!
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  4378. $as_echo_n "checking for working alloca.h... " >&6; }
  4379. if test "${ac_cv_working_alloca_h+set}" = set; then :
  4380.   $as_echo_n "(cached) " >&6
  4381. else
  4382.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4383. /* end confdefs.h.  */
  4384. #include <alloca.h>
  4385. int
  4386. main ()
  4387. {
  4388. char *p = (char *) alloca (2 * sizeof (int));
  4389.                           if (p) return 0;
  4390.   ;
  4391.   return 0;
  4392. }
  4393. _ACEOF
  4394. if ac_fn_c_try_link "$LINENO"; then :
  4395.   ac_cv_working_alloca_h=yes
  4396. else
  4397.   ac_cv_working_alloca_h=no
  4398. fi
  4399. rm -f core conftest.err conftest.$ac_objext \
  4400.     conftest$ac_exeext conftest.$ac_ext
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  4403. $as_echo "$ac_cv_working_alloca_h" >&6; }
  4404. if test $ac_cv_working_alloca_h = yes; then

  4405. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

  4406. fi

  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  4408. $as_echo_n "checking for alloca... " >&6; }
  4409. if test "${ac_cv_func_alloca_works+set}" = set; then :
  4410.   $as_echo_n "(cached) " >&6
  4411. else
  4412.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4413. /* end confdefs.h.  */
  4414. #ifdef __GNUC__
  4415. # define alloca __builtin_alloca
  4416. #else
  4417. # ifdef _MSC_VER
  4418. #  include <malloc.h>
  4419. #  define alloca _alloca
  4420. # else
  4421. #  ifdef HAVE_ALLOCA_H
  4422. #   include <alloca.h>
  4423. #  else
  4424. #   ifdef _AIX
  4425. #pragma alloca
  4426. #   else
  4427. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  4428. char *alloca ();
  4429. #    endif
  4430. #   endif
  4431. #  endif
  4432. # endif
  4433. #endif

  4434. int
  4435. main ()
  4436. {
  4437. char *p = (char *) alloca (1);
  4438.                                     if (p) return 0;
  4439.   ;
  4440.   return 0;
  4441. }
  4442. _ACEOF
  4443. if ac_fn_c_try_link "$LINENO"; then :
  4444.   ac_cv_func_alloca_works=yes
  4445. else
  4446.   ac_cv_func_alloca_works=no
  4447. fi
  4448. rm -f core conftest.err conftest.$ac_objext \
  4449.     conftest$ac_exeext conftest.$ac_ext
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  4452. $as_echo "$ac_cv_func_alloca_works" >&6; }

  4453. if test $ac_cv_func_alloca_works = yes; then

  4454. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

  4455. else
  4456.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4457. # that cause trouble.  Some versions do not even contain alloca or
  4458. # contain a buggy version.  If you still want to use their alloca,
  4459. # use ar to extract alloca.o from them instead of compiling alloca.c.

  4460. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

  4461. $as_echo "#define C_ALLOCA 1" >>confdefs.h


  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  4463. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  4464. if test "${ac_cv_os_cray+set}" = set; then :
  4465.   $as_echo_n "(cached) " >&6
  4466. else
  4467.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h.  */
  4469. #if defined CRAY && ! defined CRAY2
  4470. webecray
  4471. #else
  4472. wenotbecray
  4473. #endif

  4474. _ACEOF
  4475. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4476.   $EGREP "webecray" >/dev/null 2>&1; then :
  4477.   ac_cv_os_cray=yes
  4478. else
  4479.   ac_cv_os_cray=no
  4480. fi
  4481. rm -f conftest*

  4482. fi
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  4484. $as_echo "$ac_cv_os_cray" >&6; }
  4485. if test $ac_cv_os_cray = yes; then
  4486.   for ac_func in _getb67 GETB67 getb67; do
  4487.     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4488. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4489. eval as_val=\$$as_ac_var
  4490.    if test "x$as_val" = x""yes; then :

  4491. cat >>confdefs.h <<_ACEOF
  4492. #define CRAY_STACKSEG_END $ac_func
  4493. _ACEOF

  4494.     break
  4495. fi

  4496.   done
  4497. fi

  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  4499. $as_echo_n "checking stack direction for C alloca... " >&6; }
  4500. if test "${ac_cv_c_stack_direction+set}" = set; then :
  4501.   $as_echo_n "(cached) " >&6
  4502. else
  4503.   if test "$cross_compiling" = yes; then :
  4504.   ac_cv_c_stack_direction=0
  4505. else
  4506.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4507. /* end confdefs.h.  */
  4508. $ac_includes_default
  4509. int
  4510. find_stack_direction ()
  4511. {
  4512.   static char *addr = 0;
  4513.   auto char dummy;
  4514.   if (addr == 0)
  4515.     {
  4516.       addr = &dummy;
  4517.       return find_stack_direction ();
  4518.     }
  4519.   else
  4520.     return (&dummy > addr) ? 1 : -1;
  4521. }

  4522. int
  4523. main ()
  4524. {
  4525.   return find_stack_direction () < 0;
  4526. }
  4527. _ACEOF
  4528. if ac_fn_c_try_run "$LINENO"; then :
  4529.   ac_cv_c_stack_direction=1
  4530. else
  4531.   ac_cv_c_stack_direction=-1
  4532. fi
  4533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4534.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4535. fi

  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  4538. $as_echo "$ac_cv_c_stack_direction" >&6; }
  4539. cat >>confdefs.h <<_ACEOF
  4540. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4541. _ACEOF


  4542. fi



  4543.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  4544. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  4545. if test "${am_cv_langinfo_codeset+set}" = set; then :
  4546.   $as_echo_n "(cached) " >&6
  4547. else
  4548.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4549. /* end confdefs.h.  */
  4550. #include <langinfo.h>
  4551. int
  4552. main ()
  4553. {
  4554. char* cs = nl_langinfo(CODESET);
  4555.   ;
  4556.   return 0;
  4557. }
  4558. _ACEOF
  4559. if ac_fn_c_try_link "$LINENO"; then :
  4560.   am_cv_langinfo_codeset=yes
  4561. else
  4562.   am_cv_langinfo_codeset=no
  4563. fi
  4564. rm -f core conftest.err conftest.$ac_objext \
  4565.     conftest$ac_exeext conftest.$ac_ext

  4566. fi
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  4568. $as_echo "$am_cv_langinfo_codeset" >&6; }
  4569.   if test $am_cv_langinfo_codeset = yes; then

  4570. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h

  4571.   fi


  4572.   for ac_header in linux/perf_event.h locale.h memory.h signal.h                    sys/resource.h sys/socket.h sys/syscall.h                    sys/un.h sys/wait.h                    thread_db.h wait.h
  4573. do :
  4574.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4575. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4576. eval as_val=\$$as_ac_Header
  4577.    if test "x$as_val" = x""yes; then :
  4578.   cat >>confdefs.h <<_ACEOF
  4579. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4580. _ACEOF

  4581. fi

  4582. done


  4583.   for ac_func in fdwalk getrlimit pipe pipe2 socketpair
  4584. do :
  4585.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4586. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4587. eval as_val=\$$as_ac_var
  4588.    if test "x$as_val" = x""yes; then :
  4589.   cat >>confdefs.h <<_ACEOF
  4590. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4591. _ACEOF

  4592. fi
  4593. done


  4594.   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
  4595. if test "x$ac_cv_have_decl_strerror" = x""yes; then :
  4596.   ac_have_decl=1
  4597. else
  4598.   ac_have_decl=0
  4599. fi

  4600. cat >>confdefs.h <<_ACEOF
  4601. #define HAVE_DECL_STRERROR $ac_have_decl
  4602. _ACEOF
  4603. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  4604. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  4605.   ac_have_decl=1
  4606. else
  4607.   ac_have_decl=0
  4608. fi

  4609. cat >>confdefs.h <<_ACEOF
  4610. #define HAVE_DECL_STRSTR $ac_have_decl
  4611. _ACEOF


  4612.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  4613. $as_echo_n "checking for sigsetjmp... " >&6; }
  4614. if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
  4615.   $as_echo_n "(cached) " >&6
  4616. else
  4617.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4618. /* end confdefs.h.  */

  4619. #include <setjmp.h>

  4620. int
  4621. main ()
  4622. {
  4623. sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
  4624.   ;
  4625.   return 0;
  4626. }
  4627. _ACEOF
  4628. if ac_fn_c_try_compile "$LINENO"; then :
  4629.   gdb_cv_func_sigsetjmp=yes
  4630. else
  4631.   gdb_cv_func_sigsetjmp=no
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4634. fi
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  4636. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  4637. if test $gdb_cv_func_sigsetjmp = yes; then

  4638. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h

  4639. fi


  4640. # Check for UST
  4641. ustlibs=""
  4642. ustinc=""


  4643. # Check whether --with-ust was given.
  4644. if test "${with_ust+set}" = set; then :
  4645.   withval=$with_ust;
  4646. fi


  4647. # Check whether --with-ust_include was given.
  4648. if test "${with_ust_include+set}" = set; then :
  4649.   withval=$with_ust_include;
  4650. fi


  4651. # Check whether --with-ust_lib was given.
  4652. if test "${with_ust_lib+set}" = set; then :
  4653.   withval=$with_ust_lib;
  4654. fi


  4655. case $with_ust in
  4656.   no)
  4657.     ustlibs=
  4658.     ustinc=
  4659.     ;;
  4660.   "" | yes)
  4661.     ustlibs=" -lust "
  4662.     ustinc=""
  4663.     ;;
  4664.   *)
  4665.     ustlibs="-L$with_ust/lib -lust"
  4666.     ustinc="-I$with_ust/include "
  4667.     ;;
  4668. esac
  4669. if test "x$with_ust_include" != x; then
  4670.   ustinc="-I$with_ust_include "
  4671. fi
  4672. if test "x$with_ust_lib" != x; then
  4673.   ustlibs="-L$with_ust_lib -lust"
  4674. fi

  4675. if test "x$with_ust" != "xno"; then
  4676.   saved_CFLAGS="$CFLAGS"
  4677.   CFLAGS="$CFLAGS $ustinc"
  4678.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
  4679. $as_echo_n "checking for ust... " >&6; }
  4680.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h.  */

  4682. #define CONFIG_UST_GDB_INTEGRATION
  4683. #include <ust/ust.h>

  4684. int
  4685. main ()
  4686. {

  4687.   ;
  4688.   return 0;
  4689. }
  4690. _ACEOF
  4691. if ac_fn_c_try_compile "$LINENO"; then :
  4692.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4693. $as_echo "yes" >&6; };
  4694. $as_echo "#define HAVE_UST 1" >>confdefs.h

  4695. else
  4696.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4697. $as_echo "no" >&6; }; ustlibs= ; ustinc=
  4698. fi
  4699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4700.   CFLAGS="$saved_CFLAGS"
  4701. fi

  4702. # Flags needed for UST



  4703. # Check whether --enable-werror was given.
  4704. if test "${enable_werror+set}" = set; then :
  4705.   enableval=$enable_werror; case "${enableval}" in
  4706.      yes | y) ERROR_ON_WARNING="yes" ;;
  4707.      no | n)  ERROR_ON_WARNING="no" ;;
  4708.      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  4709.    esac
  4710. fi


  4711. # Enable -Werror by default when using gcc.  Turn it off for releases.
  4712. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
  4713.     ERROR_ON_WARNING=yes
  4714. fi

  4715. WERROR_CFLAGS=""
  4716. if test "${ERROR_ON_WARNING}" = yes ; then
  4717.     WERROR_CFLAGS="-Werror"
  4718. fi

  4719. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  4720. -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"

  4721. WARN_CFLAGS=""
  4722. if test "x$GCC" = xyes
  4723. then
  4724.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  4725. $as_echo_n "checking compiler warning flags... " >&6; }
  4726.     # Separate out the -Werror flag as some files just cannot be
  4727.     # compiled with it enabled.
  4728.     for w in ${build_warnings}; do
  4729.         case $w in
  4730.         -Werr*) WERROR_CFLAGS=-Werror ;;
  4731.         *) # Check that GCC accepts it
  4732.             saved_CFLAGS="$CFLAGS"
  4733.             CFLAGS="$CFLAGS $w"
  4734.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h.  */

  4736. int
  4737. main ()
  4738. {

  4739.   ;
  4740.   return 0;
  4741. }
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"; then :
  4744.   WARN_CFLAGS="${WARN_CFLAGS} $w"
  4745. fi
  4746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4747.             CFLAGS="$saved_CFLAGS"
  4748.         esac
  4749.     done
  4750.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  4751. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  4752. fi



  4753. old_LIBS="$LIBS"
  4754. LIBS="$LIBS -ldl"
  4755. for ac_func in dladdr
  4756. do :
  4757.   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
  4758. if test "x$ac_cv_func_dladdr" = x""yes; then :
  4759.   cat >>confdefs.h <<_ACEOF
  4760. #define HAVE_DLADDR 1
  4761. _ACEOF

  4762. fi
  4763. done

  4764. LIBS="$old_LIBS"

  4765. ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
  4766. if test "x$ac_cv_have_decl_strerror" = x""yes; then :
  4767.   ac_have_decl=1
  4768. else
  4769.   ac_have_decl=0
  4770. fi

  4771. cat >>confdefs.h <<_ACEOF
  4772. #define HAVE_DECL_STRERROR $ac_have_decl
  4773. _ACEOF
  4774. ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
  4775. if test "x$ac_cv_have_decl_perror" = x""yes; then :
  4776.   ac_have_decl=1
  4777. else
  4778.   ac_have_decl=0
  4779. fi

  4780. cat >>confdefs.h <<_ACEOF
  4781. #define HAVE_DECL_PERROR $ac_have_decl
  4782. _ACEOF
  4783. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  4784. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  4785.   ac_have_decl=1
  4786. else
  4787.   ac_have_decl=0
  4788. fi

  4789. cat >>confdefs.h <<_ACEOF
  4790. #define HAVE_DECL_VASPRINTF $ac_have_decl
  4791. _ACEOF
  4792. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  4793. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  4794.   ac_have_decl=1
  4795. else
  4796.   ac_have_decl=0
  4797. fi

  4798. cat >>confdefs.h <<_ACEOF
  4799. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  4800. _ACEOF


  4801. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  4802. #include <sys/socket.h>

  4803. "
  4804. if test "x$ac_cv_type_socklen_t" = x""yes; then :

  4805. cat >>confdefs.h <<_ACEOF
  4806. #define HAVE_SOCKLEN_T 1
  4807. _ACEOF


  4808. fi


  4809. ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>

  4810. "
  4811. if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :

  4812. cat >>confdefs.h <<_ACEOF
  4813. #define HAVE_ELF32_AUXV_T 1
  4814. _ACEOF


  4815. fi
  4816. ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>

  4817. "
  4818. if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :

  4819. cat >>confdefs.h <<_ACEOF
  4820. #define HAVE_ELF64_AUXV_T 1
  4821. _ACEOF


  4822. fi




  4823. # Check whether --with-pkgversion was given.
  4824. if test "${with_pkgversion+set}" = set; then :
  4825.   withval=$with_pkgversion; case "$withval" in
  4826.       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  4827.       no)  PKGVERSION= ;;
  4828.       *)   PKGVERSION="($withval) " ;;
  4829.      esac
  4830. else
  4831.   PKGVERSION="(GDB) "

  4832. fi





  4833. # Check whether --with-bugurl was given.
  4834. if test "${with_bugurl+set}" = set; then :
  4835.   withval=$with_bugurl; case "$withval" in
  4836.       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  4837.       no)  BUGURL=
  4838.            ;;
  4839.       *)   BUGURL="$withval"
  4840.            ;;
  4841.      esac
  4842. else
  4843.   BUGURL="http://www.gnu.org/software/gdb/bugs/"

  4844. fi

  4845.   case ${BUGURL} in
  4846.   "")
  4847.     REPORT_BUGS_TO=
  4848.     REPORT_BUGS_TEXI=
  4849.     ;;
  4850.   *)
  4851.     REPORT_BUGS_TO="<$BUGURL>"
  4852.     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  4853.     ;;
  4854.   esac;




  4855. cat >>confdefs.h <<_ACEOF
  4856. #define PKGVERSION "$PKGVERSION"
  4857. _ACEOF


  4858. cat >>confdefs.h <<_ACEOF
  4859. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  4860. _ACEOF


  4861. # Check for various supplementary target information (beyond the
  4862. # triplet) which might affect the choices in configure.srv.
  4863. case "${target}" in
  4864.   i[34567]86-*-linux*)
  4865.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
  4866. $as_echo_n "checking if building for x86-64... " >&6; }
  4867. if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
  4868.   $as_echo_n "(cached) " >&6
  4869. else
  4870.   save_CPPFLAGS="$CPPFLAGS"
  4871.                     CPPFLAGS="$CPPFLAGS $CFLAGS"
  4872.                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4873. /* end confdefs.h.  */

  4874. #if __x86_64__
  4875. got it
  4876. #endif

  4877. _ACEOF
  4878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4879.   $EGREP "got it" >/dev/null 2>&1; then :
  4880.   gdb_cv_i386_is_x86_64=yes
  4881. else
  4882.   gdb_cv_i386_is_x86_64=no
  4883. fi
  4884. rm -f conftest*

  4885.                     CPPFLAGS="$save_CPPFLAGS"
  4886. fi
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
  4888. $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
  4889.     ;;
  4890.   m68k-*-*)
  4891.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
  4892. $as_echo_n "checking if building for Coldfire... " >&6; }
  4893. if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
  4894.   $as_echo_n "(cached) " >&6
  4895. else
  4896.   save_CPPFLAGS="$CPPFLAGS"
  4897.                     CPPFLAGS="$CPPFLAGS $CFLAGS"
  4898.                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4899. /* end confdefs.h.  */

  4900. #ifdef __mcoldfire__
  4901. got it
  4902. #endif

  4903. _ACEOF
  4904. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4905.   $EGREP "got it" >/dev/null 2>&1; then :
  4906.   gdb_cv_m68k_is_coldfire=yes
  4907. else
  4908.   gdb_cv_m68k_is_coldfire=no
  4909. fi
  4910. rm -f conftest*

  4911.                     CPPFLAGS="$save_CPPFLAGS"
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
  4914. $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
  4915.     ;;
  4916. esac

  4917. . ${srcdir}/configure.srv

  4918. if test "${srv_mingwce}" = "yes"; then
  4919.   LIBS="$LIBS -lws2"
  4920. elif test "${srv_mingw}" = "yes"; then
  4921.   LIBS="$LIBS -lws2_32"
  4922. elif test "${srv_qnx}" = "yes"; then
  4923.   LIBS="$LIBS -lsocket"
  4924. elif test "${srv_lynxos}" = "yes"; then
  4925.   LIBS="$LIBS -lnetinet"
  4926. fi

  4927. if test "${srv_mingw}" = "yes"; then

  4928. $as_echo "#define USE_WIN32API 1" >>confdefs.h

  4929. fi

  4930. if test "${srv_linux_usrregs}" = "yes"; then

  4931. $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h

  4932. fi

  4933. if test "${srv_linux_regsets}" = "yes"; then

  4934. $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h


  4935.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
  4936. $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
  4937.   if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
  4938.   $as_echo_n "(cached) " >&6
  4939. else
  4940.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4941. /* end confdefs.h.  */
  4942. #include <sys/ptrace.h>
  4943. int
  4944. main ()
  4945. {
  4946. PTRACE_GETREGS;
  4947.   ;
  4948.   return 0;
  4949. }
  4950. _ACEOF
  4951. if ac_fn_c_try_compile "$LINENO"; then :
  4952.   gdbsrv_cv_have_ptrace_getregs=yes
  4953. else
  4954.   gdbsrv_cv_have_ptrace_getregs=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. fi

  4958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
  4959. $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
  4960.   if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then

  4961. $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h

  4962.   fi

  4963.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
  4964. $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
  4965.   if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
  4966.   $as_echo_n "(cached) " >&6
  4967. else
  4968.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4969. /* end confdefs.h.  */
  4970. #include <sys/ptrace.h>
  4971. int
  4972. main ()
  4973. {
  4974. PTRACE_GETFPXREGS;
  4975.   ;
  4976.   return 0;
  4977. }
  4978. _ACEOF
  4979. if ac_fn_c_try_compile "$LINENO"; then :
  4980.   gdbsrv_cv_have_ptrace_getfpxregs=yes
  4981. else
  4982.   gdbsrv_cv_have_ptrace_getfpxregs=no
  4983. fi
  4984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4985. fi

  4986.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
  4987. $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
  4988.   if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then

  4989. $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h

  4990.   fi
  4991. fi

  4992. if test "${srv_linux_btrace}" = "yes"; then

  4993. $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h

  4994. fi

  4995. if test "$ac_cv_header_sys_procfs_h" = yes; then
  4996.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
  4997. $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
  4998. if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
  4999.   $as_echo_n "(cached) " >&6
  5000. else
  5001.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5002. /* end confdefs.h.  */

  5003. #define _SYSCALL32
  5004. /* Needed for new procfs interface on sparc-solaris.  */
  5005. #define _STRUCTURED_PROC 1
  5006. #include <sys/procfs.h>
  5007. int
  5008. main ()
  5009. {
  5010. lwpid_t avar
  5011.   ;
  5012.   return 0;
  5013. }
  5014. _ACEOF
  5015. if ac_fn_c_try_compile "$LINENO"; then :
  5016.   bfd_cv_have_sys_procfs_type_lwpid_t=yes
  5017. else
  5018.   bfd_cv_have_sys_procfs_type_lwpid_t=no

  5019. fi
  5020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5021. fi

  5022. if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then

  5023. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h

  5024. fi
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
  5026. $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }

  5027.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
  5028. $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
  5029. if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
  5030.   $as_echo_n "(cached) " >&6
  5031. else
  5032.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5033. /* end confdefs.h.  */

  5034. #define _SYSCALL32
  5035. /* Needed for new procfs interface on sparc-solaris.  */
  5036. #define _STRUCTURED_PROC 1
  5037. #include <sys/procfs.h>
  5038. int
  5039. main ()
  5040. {
  5041. psaddr_t avar
  5042.   ;
  5043.   return 0;
  5044. }
  5045. _ACEOF
  5046. if ac_fn_c_try_compile "$LINENO"; then :
  5047.   bfd_cv_have_sys_procfs_type_psaddr_t=yes
  5048. else
  5049.   bfd_cv_have_sys_procfs_type_psaddr_t=no

  5050. fi
  5051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5052. fi

  5053. if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then

  5054. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h

  5055. fi
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
  5057. $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }

  5058.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
  5059. $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
  5060. if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
  5061.   $as_echo_n "(cached) " >&6
  5062. else
  5063.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5064. /* end confdefs.h.  */

  5065. #define _SYSCALL32
  5066. /* Needed for new procfs interface on sparc-solaris.  */
  5067. #define _STRUCTURED_PROC 1
  5068. #include <sys/procfs.h>
  5069. int
  5070. main ()
  5071. {
  5072. prgregset_t avar
  5073.   ;
  5074.   return 0;
  5075. }
  5076. _ACEOF
  5077. if ac_fn_c_try_compile "$LINENO"; then :
  5078.   bfd_cv_have_sys_procfs_type_prgregset_t=yes
  5079. else
  5080.   bfd_cv_have_sys_procfs_type_prgregset_t=no

  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5083. fi

  5084. if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then

  5085. $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h

  5086. fi
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
  5088. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }

  5089.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
  5090. $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
  5091. if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
  5092.   $as_echo_n "(cached) " >&6
  5093. else
  5094.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5095. /* end confdefs.h.  */

  5096. #define _SYSCALL32
  5097. /* Needed for new procfs interface on sparc-solaris.  */
  5098. #define _STRUCTURED_PROC 1
  5099. #include <sys/procfs.h>
  5100. int
  5101. main ()
  5102. {
  5103. elf_fpregset_t avar
  5104.   ;
  5105.   return 0;
  5106. }
  5107. _ACEOF
  5108. if ac_fn_c_try_compile "$LINENO"; then :
  5109.   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
  5110. else
  5111.   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no

  5112. fi
  5113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5114. fi

  5115. if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then

  5116. $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h

  5117. fi
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
  5119. $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }

  5120. fi

  5121. if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
  5122.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
  5123. $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
  5124. if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
  5125.   $as_echo_n "(cached) " >&6
  5126. else
  5127.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5128. /* end confdefs.h.  */

  5129. #include <thread_db.h>
  5130. int
  5131. main ()
  5132. {
  5133. lwpid_t avar
  5134.   ;
  5135.   return 0;
  5136. }
  5137. _ACEOF
  5138. if ac_fn_c_try_compile "$LINENO"; then :
  5139.   gdbserver_cv_have_thread_db_type_lwpid_t=yes
  5140. else
  5141.   gdbserver_cv_have_thread_db_type_lwpid_t=no

  5142. fi
  5143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5144. fi

  5145. if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then

  5146. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h

  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
  5149. $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }

  5150. fi

  5151. if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
  5152.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
  5153. $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
  5154. if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
  5155.   $as_echo_n "(cached) " >&6
  5156. else
  5157.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5158. /* end confdefs.h.  */

  5159. #include <thread_db.h>
  5160. int
  5161. main ()
  5162. {
  5163. psaddr_t avar
  5164.   ;
  5165.   return 0;
  5166. }
  5167. _ACEOF
  5168. if ac_fn_c_try_compile "$LINENO"; then :
  5169.   gdbserver_cv_have_thread_db_type_psaddr_t=yes
  5170. else
  5171.   gdbserver_cv_have_thread_db_type_psaddr_t=no

  5172. fi
  5173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5174. fi

  5175. if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then

  5176. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h

  5177. fi
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
  5179. $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }

  5180. fi

  5181. old_LIBS="$LIBS"
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5183. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5184. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  5185.   $as_echo_n "(cached) " >&6
  5186. else
  5187.   ac_check_lib_save_LIBS=$LIBS
  5188. LIBS="-ldl  $LIBS"
  5189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5190. /* end confdefs.h.  */

  5191. /* Override any GCC internal prototype to avoid an error.
  5192.    Use char because int might match the return type of a GCC
  5193.    builtin and then its argument prototype would still apply.  */
  5194. #ifdef __cplusplus
  5195. extern "C"
  5196. #endif
  5197. char dlopen ();
  5198. int
  5199. main ()
  5200. {
  5201. return dlopen ();
  5202.   ;
  5203.   return 0;
  5204. }
  5205. _ACEOF
  5206. if ac_fn_c_try_link "$LINENO"; then :
  5207.   ac_cv_lib_dl_dlopen=yes
  5208. else
  5209.   ac_cv_lib_dl_dlopen=no
  5210. fi
  5211. rm -f core conftest.err conftest.$ac_objext \
  5212.     conftest$ac_exeext conftest.$ac_ext
  5213. LIBS=$ac_check_lib_save_LIBS
  5214. fi
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5216. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5217. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  5218.   cat >>confdefs.h <<_ACEOF
  5219. #define HAVE_LIBDL 1
  5220. _ACEOF

  5221.   LIBS="-ldl $LIBS"

  5222. fi

  5223. LIBS="$old_LIBS"

  5224. srv_thread_depfiles=
  5225. srv_libs=

  5226. if test "$srv_linux_thread_db" = "yes"; then
  5227.   if test "$ac_cv_lib_dl_dlopen" = "yes"; then
  5228.     srv_libs="-ldl"
  5229.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
  5230. $as_echo_n "checking for the dynamic export flag... " >&6; }
  5231.     old_LDFLAGS="$LDFLAGS"
  5232.     # Older GNU ld supports --export-dynamic but --dynamic-list may not be
  5233.     # supported there.
  5234.     RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
  5235.     LDFLAGS="$LDFLAGS $RDYNAMIC"
  5236.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5237. /* end confdefs.h.  */

  5238. int
  5239. main ()
  5240. {

  5241.   ;
  5242.   return 0;
  5243. }
  5244. _ACEOF
  5245. if ac_fn_c_try_link "$LINENO"; then :
  5246.   found="-Wl,--dynamic-list"
  5247.                  RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
  5248. else
  5249.   RDYNAMIC="-rdynamic"
  5250.                  LDFLAGS="$old_LDFLAGS $RDYNAMIC"
  5251.                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5252. /* end confdefs.h.  */

  5253. int
  5254. main ()
  5255. {

  5256.   ;
  5257.   return 0;
  5258. }
  5259. _ACEOF
  5260. if ac_fn_c_try_link "$LINENO"; then :
  5261.   found="-rdynamic"
  5262. else
  5263.   found="no"
  5264.                               RDYNAMIC=""
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext \
  5267.     conftest$ac_exeext conftest.$ac_ext
  5268. fi
  5269. rm -f core conftest.err conftest.$ac_objext \
  5270.     conftest$ac_exeext conftest.$ac_ext

  5271.     LDFLAGS="$old_LDFLAGS"
  5272.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  5273. $as_echo "$found" >&6; }
  5274.   else
  5275.     srv_libs="-lthread_db"
  5276.   fi

  5277.   srv_thread_depfiles="thread-db.o proc-service.o"

  5278. $as_echo "#define USE_THREAD_DB 1" >>confdefs.h

  5279.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
  5280. $as_echo_n "checking for TD_VERSION... " >&6; }
  5281. if test "${gdbsrv_cv_have_td_version+set}" = set; then :
  5282.   $as_echo_n "(cached) " >&6
  5283. else
  5284.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5285. /* end confdefs.h.  */
  5286. #include <thread_db.h>
  5287. int
  5288. main ()
  5289. {
  5290. TD_VERSION;
  5291.   ;
  5292.   return 0;
  5293. }
  5294. _ACEOF
  5295. if ac_fn_c_try_compile "$LINENO"; then :
  5296.   gdbsrv_cv_have_td_version=yes
  5297. else
  5298.   gdbsrv_cv_have_td_version=no
  5299. fi
  5300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5301. fi
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
  5303. $as_echo "$gdbsrv_cv_have_td_version" >&6; }
  5304.   if test $gdbsrv_cv_have_td_version = yes; then

  5305. $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h

  5306.   fi
  5307. fi


  5308. # Check whether --with-libthread-db was given.
  5309. if test "${with_libthread_db+set}" = set; then :
  5310.   withval=$with_libthread_db; srv_libthread_db_path="${withval}"
  5311.   srv_libs="$srv_libthread_db_path"

  5312. fi


  5313. if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then

  5314. $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h

  5315. fi

  5316. if test "$srv_xmlfiles" != ""; then
  5317.   srv_xmlbuiltin="xml-builtin.o"

  5318. $as_echo "#define USE_XML 1" >>confdefs.h


  5319.   tmp_xmlfiles=$srv_xmlfiles
  5320.   srv_xmlfiles=""
  5321.   for f in $tmp_xmlfiles; do
  5322.     srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
  5323.   done
  5324. fi

  5325. GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
  5326. GDBSERVER_LIBS="$srv_libs"

  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  5328. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  5329. if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
  5330.   $as_echo_n "(cached) " >&6
  5331. else

  5332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5333. /* end confdefs.h.  */

  5334. int
  5335. main ()
  5336. {
  5337. int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
  5338.   ;
  5339.   return 0;
  5340. }
  5341. _ACEOF
  5342. if ac_fn_c_try_link "$LINENO"; then :
  5343.   gdbsrv_cv_have_sync_builtins=yes
  5344. else
  5345.   gdbsrv_cv_have_sync_builtins=no
  5346. fi
  5347. rm -f core conftest.err conftest.$ac_objext \
  5348.     conftest$ac_exeext conftest.$ac_ext
  5349. fi
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
  5351. $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
  5352. if test $gdbsrv_cv_have_sync_builtins = yes; then

  5353. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h

  5354. fi

  5355. saved_cflags="$CFLAGS"
  5356. CFLAGS="$CFLAGS -fvisibility=hidden"
  5357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5358. /* end confdefs.h.  */

  5359. int
  5360. main ()
  5361. {

  5362.   ;
  5363.   return 0;
  5364. }
  5365. _ACEOF
  5366. if ac_fn_c_try_compile "$LINENO"; then :
  5367.   gdbsrv_cv_have_visibility_hidden=yes
  5368. else
  5369.   gdbsrv_cv_have_visibility_hidden=no
  5370. fi
  5371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5372. CFLAGS="$saved_cflags"

  5373. ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
  5374. "
  5375. if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
  5376.   ac_have_decl=1
  5377. else
  5378.   ac_have_decl=0
  5379. fi

  5380. cat >>confdefs.h <<_ACEOF
  5381. #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
  5382. _ACEOF


  5383. if test "$cross_compiling" = yes; then :
  5384.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end confdefs.h.  */
  5386. #include <sys/personality.h>
  5387. int
  5388. main ()
  5389. {

  5390. #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
  5391. #       define ADDR_NO_RANDOMIZE 0x0040000
  5392. #      endif
  5393.        /* Test the flag could be set and stays set.  */
  5394.        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
  5395.        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
  5396.            return 1
  5397.   ;
  5398.   return 0;
  5399. }
  5400. _ACEOF
  5401. if ac_fn_c_try_link "$LINENO"; then :
  5402.   gdbsrv_cv_have_personality=true
  5403. else
  5404.   gdbsrv_cv_have_personality=false
  5405. fi
  5406. rm -f core conftest.err conftest.$ac_objext \
  5407.     conftest$ac_exeext conftest.$ac_ext
  5408. else
  5409.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5410. /* end confdefs.h.  */
  5411. #include <sys/personality.h>
  5412. int
  5413. main ()
  5414. {

  5415. #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
  5416. #       define ADDR_NO_RANDOMIZE 0x0040000
  5417. #      endif
  5418.        /* Test the flag could be set and stays set.  */
  5419.        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
  5420.        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
  5421.            return 1
  5422.   ;
  5423.   return 0;
  5424. }
  5425. _ACEOF
  5426. if ac_fn_c_try_run "$LINENO"; then :
  5427.   gdbsrv_cv_have_personality=true
  5428. else
  5429.   gdbsrv_cv_have_personality=false
  5430. fi
  5431. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5432.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  5433. fi

  5434. if $gdbsrv_cv_have_personality
  5435. then

  5436. $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h

  5437. fi


  5438. IPA_DEPFILES=""
  5439. extra_libraries=""

  5440. # check whether to enable the inprocess agent
  5441. if test "$ipa_obj" != "" \
  5442.    -a "$gdbsrv_cv_have_sync_builtins" = yes \
  5443.    -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
  5444.    have_ipa=true
  5445. else
  5446.    have_ipa=false
  5447. fi

  5448. # Check whether --enable-inprocess-agent was given.
  5449. if test "${enable_inprocess_agent+set}" = set; then :
  5450.   enableval=$enable_inprocess_agent; case "$enableval" in
  5451.   yes) want_ipa=true ;;
  5452.   no) want_ipa=false ;;
  5453.   *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
  5454. esac
  5455. else
  5456.   want_ipa=$have_ipa
  5457. fi


  5458. if $want_ipa ; then
  5459.    if $have_ipa ; then
  5460.      IPA_DEPFILES="$ipa_obj"
  5461.      extra_libraries="$extra_libraries libinproctrace.so"
  5462.    else
  5463.      as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
  5464.    fi
  5465. fi








  5466. GNULIB=build-gnulib-gdbserver/import

  5467. GNULIB_STDINT_H=
  5468. if test x"$STDINT_H" != x; then
  5469.   GNULIB_STDINT_H=$GNULIB/$STDINT_H
  5470. fi


  5471. ac_config_files="$ac_config_files Makefile"

  5472. ac_config_commands="$ac_config_commands default"

  5473. cat >confcache <<\_ACEOF
  5474. # This file is a shell script that caches the results of configure
  5475. # tests run on this system so they can be shared between configure
  5476. # scripts and configure runs, see configure's option --config-cache.
  5477. # It is not useful on other systems.  If it contains results you don't
  5478. # want to keep, you may remove or edit it.
  5479. #
  5480. # config.status only pays attention to the cache file if you give it
  5481. # the --recheck option to rerun configure.
  5482. #
  5483. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5484. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5485. # following values.

  5486. _ACEOF

  5487. # The following way of writing the cache mishandles newlines in values,
  5488. # but we know of no workaround that is simple, portable, and efficient.
  5489. # So, we kill variables containing newlines.
  5490. # Ultrix sh set writes to stderr and can't be redirected directly,
  5491. # and sets the high bit in the cache file unless we assign to the vars.
  5492. (
  5493.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5494.     eval ac_val=\$$ac_var
  5495.     case $ac_val in #(
  5496.     *${as_nl}*)
  5497.       case $ac_var in #(
  5498.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5499. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5500.       esac
  5501.       case $ac_var in #(
  5502.       _ | IFS | as_nl) ;; #(
  5503.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5504.       *) { eval $ac_var=; unset $ac_var;} ;;
  5505.       esac ;;
  5506.     esac
  5507.   done

  5508.   (set) 2>&1 |
  5509.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5510.     *${as_nl}ac_space=\ *)
  5511.       # `set' does not quote correctly, so add quotes: double-quote
  5512.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  5513.       sed -n \
  5514.         "s/'/'\\\\''/g;
  5515.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5516.       ;; #(
  5517.     *)
  5518.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  5519.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5520.       ;;
  5521.     esac |
  5522.     sort
  5523. ) |
  5524.   sed '
  5525.      /^ac_cv_env_/b end
  5526.      t clear
  5527.      :clear
  5528.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5529.      t end
  5530.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5531.      :end' >>confcache
  5532. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5533.   if test -w "$cache_file"; then
  5534.     test "x$cache_file" != "x/dev/null" &&
  5535.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5536. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5537.     cat confcache >$cache_file
  5538.   else
  5539.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5540. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5541.   fi
  5542. fi
  5543. rm -f confcache

  5544. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5545. # Let make expand exec_prefix.
  5546. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

  5547. DEFS=-DHAVE_CONFIG_H

  5548. ac_libobjs=
  5549. ac_ltlibobjs=
  5550. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5551.   # 1. Remove the extension, and $U if already installed.
  5552.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5553.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5554.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  5555.   #    will be set to the directory where LIBOBJS objects are built.
  5556.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5557.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5558. done
  5559. LIBOBJS=$ac_libobjs

  5560. LTLIBOBJS=$ac_ltlibobjs


  5561. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  5562.   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  5563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5564. fi
  5565. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  5566.   as_fn_error "conditional \"GMAKE\" was never defined.
  5567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  5568. fi

  5569. : ${CONFIG_STATUS=./config.status}
  5570. ac_write_fail=0
  5571. ac_clean_files_save=$ac_clean_files
  5572. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5574. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5575. as_write_fail=0
  5576. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5577. #! $SHELL
  5578. # Generated by $as_me.
  5579. # Run this file to recreate the current configuration.
  5580. # Compiler output produced by configure, useful for debugging
  5581. # configure, is in config.log if it exists.

  5582. debug=false
  5583. ac_cs_recheck=false
  5584. ac_cs_silent=false

  5585. SHELL=\${CONFIG_SHELL-$SHELL}
  5586. export SHELL
  5587. _ASEOF
  5588. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5589. ## -------------------- ##
  5590. ## M4sh Initialization. ##
  5591. ## -------------------- ##

  5592. # Be more Bourne compatible
  5593. DUALCASE=1; export DUALCASE # for MKS sh
  5594. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5595.   emulate sh
  5596.   NULLCMD=:
  5597.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5598.   # is contrary to our usage.  Disable this feature.
  5599.   alias -g '${1+"$@"}'='"$@"'
  5600.   setopt NO_GLOB_SUBST
  5601. else
  5602.   case `(set -o) 2>/dev/null` in #(
  5603.   *posix*) :
  5604.     set -o posix ;; #(
  5605.   *) :
  5606.      ;;
  5607. esac
  5608. fi


  5609. as_nl='
  5610. '
  5611. export as_nl
  5612. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5613. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5614. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5615. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5616. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5617. # but without wasting forks for bash or zsh.
  5618. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5619.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5620.   as_echo='print -r --'
  5621.   as_echo_n='print -rn --'
  5622. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5623.   as_echo='printf %s\n'
  5624.   as_echo_n='printf %s'
  5625. else
  5626.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5627.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5628.     as_echo_n='/usr/ucb/echo -n'
  5629.   else
  5630.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5631.     as_echo_n_body='eval
  5632.       arg=$1;
  5633.       case $arg in #(
  5634.       *"$as_nl"*)
  5635.         expr "X$arg" : "X\\(.*\\)$as_nl";
  5636.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5637.       esac;
  5638.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5639.     '
  5640.     export as_echo_n_body
  5641.     as_echo_n='sh -c $as_echo_n_body as_echo'
  5642.   fi
  5643.   export as_echo_body
  5644.   as_echo='sh -c $as_echo_body as_echo'
  5645. fi

  5646. # The user is always right.
  5647. if test "${PATH_SEPARATOR+set}" != set; then
  5648.   PATH_SEPARATOR=:
  5649.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5650.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5651.       PATH_SEPARATOR=';'
  5652.   }
  5653. fi


  5654. # IFS
  5655. # We need space, tab and new line, in precisely that order.  Quoting is
  5656. # there to prevent editors from complaining about space-tab.
  5657. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5658. # splitting by setting IFS to empty value.)
  5659. IFS=" ""        $as_nl"

  5660. # Find who we are.  Look in the path if we contain no directory separator.
  5661. case $0 in #((
  5662.   *[\\/]* ) as_myself=$0 ;;
  5663.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5664. for as_dir in $PATH
  5665. do
  5666.   IFS=$as_save_IFS
  5667.   test -z "$as_dir" && as_dir=.
  5668.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5669.   done
  5670. IFS=$as_save_IFS

  5671.      ;;
  5672. esac
  5673. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5674. # in which case we are not to be found in the path.
  5675. if test "x$as_myself" = x; then
  5676.   as_myself=$0
  5677. fi
  5678. if test ! -f "$as_myself"; then
  5679.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5680.   exit 1
  5681. fi

  5682. # Unset variables that we do not need and which cause bugs (e.g. in
  5683. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  5684. # suppresses any "Segmentation fault" message there.  '((' could
  5685. # trigger a bug in pdksh 5.2.14.
  5686. for as_var in BASH_ENV ENV MAIL MAILPATH
  5687. do eval test x\${$as_var+set} = xset \
  5688.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5689. done
  5690. PS1='$ '
  5691. PS2='> '
  5692. PS4='+ '

  5693. # NLS nuisances.
  5694. LC_ALL=C
  5695. export LC_ALL
  5696. LANGUAGE=C
  5697. export LANGUAGE

  5698. # CDPATH.
  5699. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH


  5700. # as_fn_error ERROR [LINENO LOG_FD]
  5701. # ---------------------------------
  5702. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5703. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5704. # script with status $?, using 1 if that was 0.
  5705. as_fn_error ()
  5706. {
  5707.   as_status=$?; test $as_status -eq 0 && as_status=1
  5708.   if test "$3"; then
  5709.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5710.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  5711.   fi
  5712.   $as_echo "$as_me: error: $1" >&2
  5713.   as_fn_exit $as_status
  5714. } # as_fn_error


  5715. # as_fn_set_status STATUS
  5716. # -----------------------
  5717. # Set $? to STATUS, without forking.
  5718. as_fn_set_status ()
  5719. {
  5720.   return $1
  5721. } # as_fn_set_status

  5722. # as_fn_exit STATUS
  5723. # -----------------
  5724. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5725. as_fn_exit ()
  5726. {
  5727.   set +e
  5728.   as_fn_set_status $1
  5729.   exit $1
  5730. } # as_fn_exit

  5731. # as_fn_unset VAR
  5732. # ---------------
  5733. # Portably unset VAR.
  5734. as_fn_unset ()
  5735. {
  5736.   { eval $1=; unset $1;}
  5737. }
  5738. as_unset=as_fn_unset
  5739. # as_fn_append VAR VALUE
  5740. # ----------------------
  5741. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5742. # advantage of any shell optimizations that allow amortized linear growth over
  5743. # repeated appends, instead of the typical quadratic growth present in naive
  5744. # implementations.
  5745. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5746.   eval 'as_fn_append ()
  5747.   {
  5748.     eval $1+=\$2
  5749.   }'
  5750. else
  5751.   as_fn_append ()
  5752.   {
  5753.     eval $1=\$$1\$2
  5754.   }
  5755. fi # as_fn_append

  5756. # as_fn_arith ARG...
  5757. # ------------------
  5758. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5759. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5760. # must be portable across $(()) and expr.
  5761. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5762.   eval 'as_fn_arith ()
  5763.   {
  5764.     as_val=$(( $* ))
  5765.   }'
  5766. else
  5767.   as_fn_arith ()
  5768.   {
  5769.     as_val=`expr "$@" || test $? -eq 1`
  5770.   }
  5771. fi # as_fn_arith


  5772. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5773.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5774.   as_expr=expr
  5775. else
  5776.   as_expr=false
  5777. fi

  5778. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5779.   as_basename=basename
  5780. else
  5781.   as_basename=false
  5782. fi

  5783. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5784.   as_dirname=dirname
  5785. else
  5786.   as_dirname=false
  5787. fi

  5788. as_me=`$as_basename -- "$0" ||
  5789. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5790.          X"$0" : 'X\(//\)$' \| \
  5791.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5792. $as_echo X/"$0" |
  5793.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  5794.             s//\1/
  5795.             q
  5796.           }
  5797.           /^X\/\(\/\/\)$/{
  5798.             s//\1/
  5799.             q
  5800.           }
  5801.           /^X\/\(\/\).*/{
  5802.             s//\1/
  5803.             q
  5804.           }
  5805.           s/.*/./; q'`

  5806. # Avoid depending upon Character Ranges.
  5807. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5808. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5809. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5810. as_cr_digits='0123456789'
  5811. as_cr_alnum=$as_cr_Letters$as_cr_digits

  5812. ECHO_C= ECHO_N= ECHO_T=
  5813. case `echo -n x` in #(((((
  5814. -n*)
  5815.   case `echo 'xy\c'` in
  5816.   *c*) ECHO_T='        ';;        # ECHO_T is single tab character.
  5817.   xy)  ECHO_C='\c';;
  5818.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5819.        ECHO_T='        ';;
  5820.   esac;;
  5821. *)
  5822.   ECHO_N='-n';;
  5823. esac

  5824. rm -f conf$$ conf$$.exe conf$$.file
  5825. if test -d conf$$.dir; then
  5826.   rm -f conf$$.dir/conf$$.file
  5827. else
  5828.   rm -f conf$$.dir
  5829.   mkdir conf$$.dir 2>/dev/null
  5830. fi
  5831. if (echo >conf$$.file) 2>/dev/null; then
  5832.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  5833.     as_ln_s='ln -s'
  5834.     # ... but there are two gotchas:
  5835.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5836.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5837.     # In both cases, we have to default to `cp -p'.
  5838.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5839.       as_ln_s='cp -p'
  5840.   elif ln conf$$.file conf$$ 2>/dev/null; then
  5841.     as_ln_s=ln
  5842.   else
  5843.     as_ln_s='cp -p'
  5844.   fi
  5845. else
  5846.   as_ln_s='cp -p'
  5847. fi
  5848. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5849. rmdir conf$$.dir 2>/dev/null


  5850. # as_fn_mkdir_p
  5851. # -------------
  5852. # Create "$as_dir" as a directory, including parents if necessary.
  5853. as_fn_mkdir_p ()
  5854. {

  5855.   case $as_dir in #(
  5856.   -*) as_dir=./$as_dir;;
  5857.   esac
  5858.   test -d "$as_dir" || eval $as_mkdir_p || {
  5859.     as_dirs=
  5860.     while :; do
  5861.       case $as_dir in #(
  5862.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5863.       *) as_qdir=$as_dir;;
  5864.       esac
  5865.       as_dirs="'$as_qdir' $as_dirs"
  5866.       as_dir=`$as_dirname -- "$as_dir" ||
  5867. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5868.          X"$as_dir" : 'X\(//\)[^/]' \| \
  5869.          X"$as_dir" : 'X\(//\)$' \| \
  5870.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5871. $as_echo X"$as_dir" |
  5872.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5873.             s//\1/
  5874.             q
  5875.           }
  5876.           /^X\(\/\/\)[^/].*/{
  5877.             s//\1/
  5878.             q
  5879.           }
  5880.           /^X\(\/\/\)$/{
  5881.             s//\1/
  5882.             q
  5883.           }
  5884.           /^X\(\/\).*/{
  5885.             s//\1/
  5886.             q
  5887.           }
  5888.           s/.*/./; q'`
  5889.       test -d "$as_dir" && break
  5890.     done
  5891.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  5892.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


  5893. } # as_fn_mkdir_p
  5894. if mkdir -p . 2>/dev/null; then
  5895.   as_mkdir_p='mkdir -p "$as_dir"'
  5896. else
  5897.   test -d ./-p && rmdir ./-p
  5898.   as_mkdir_p=false
  5899. fi

  5900. if test -x / >/dev/null 2>&1; then
  5901.   as_test_x='test -x'
  5902. else
  5903.   if ls -dL / >/dev/null 2>&1; then
  5904.     as_ls_L_option=L
  5905.   else
  5906.     as_ls_L_option=
  5907.   fi
  5908.   as_test_x='
  5909.     eval sh -c '\''
  5910.       if test -d "$1"; then
  5911.         test -d "$1/.";
  5912.       else
  5913.         case $1 in #(
  5914.         -*)set "./$1";;
  5915.         esac;
  5916.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  5917.         ???[sx]*):;;*)false;;esac;fi
  5918.     '\'' sh
  5919.   '
  5920. fi
  5921. as_executable_p=$as_test_x

  5922. # Sed expression to map a string onto a valid CPP name.
  5923. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

  5924. # Sed expression to map a string onto a valid variable name.
  5925. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


  5926. exec 6>&1
  5927. ## ----------------------------------- ##
  5928. ## Main body of $CONFIG_STATUS script. ##
  5929. ## ----------------------------------- ##
  5930. _ASEOF
  5931. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

  5932. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5933. # Save the log message, to keep $0 and so on meaningful, and to
  5934. # report actual input values of CONFIG_FILES etc. instead of their
  5935. # values after options handling.
  5936. ac_log="
  5937. This file was extended by $as_me, which was
  5938. generated by GNU Autoconf 2.64.  Invocation command line was

  5939.   CONFIG_FILES    = $CONFIG_FILES
  5940.   CONFIG_HEADERS  = $CONFIG_HEADERS
  5941.   CONFIG_LINKS    = $CONFIG_LINKS
  5942.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  5943.   $ $0 $@

  5944. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5945. "

  5946. _ACEOF

  5947. case $ac_config_files in *"
  5948. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5949. esac

  5950. case $ac_config_headers in *"
  5951. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5952. esac


  5953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5954. # Files that config.status was made for.
  5955. config_files="$ac_config_files"
  5956. config_headers="$ac_config_headers"
  5957. config_commands="$ac_config_commands"

  5958. _ACEOF

  5959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5960. ac_cs_usage="\
  5961. \`$as_me' instantiates files and other configuration actions
  5962. from templates according to the current configuration.  Unless the files
  5963. and actions are specified as TAGs, all are instantiated by default.

  5964. Usage: $0 [OPTION]... [TAG]...

  5965.   -h, --help       print this help, then exit
  5966.   -V, --version    print version number and configuration settings, then exit
  5967.   -q, --quiet, --silent
  5968.                    do not print progress messages
  5969.   -d, --debug      don't remove temporary files
  5970.       --recheck    update $as_me by reconfiguring in the same conditions
  5971.       --file=FILE[:TEMPLATE]
  5972.                    instantiate the configuration file FILE
  5973.       --header=FILE[:TEMPLATE]
  5974.                    instantiate the configuration header FILE

  5975. Configuration files:
  5976. $config_files

  5977. Configuration headers:
  5978. $config_headers

  5979. Configuration commands:
  5980. $config_commands

  5981. Report bugs to the package provider."

  5982. _ACEOF
  5983. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5984. ac_cs_version="\\
  5985. config.status
  5986. configured by $0, generated by GNU Autoconf 2.64,
  5987.   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

  5988. Copyright (C) 2009 Free Software Foundation, Inc.
  5989. This config.status script is free software; the Free Software Foundation
  5990. gives unlimited permission to copy, distribute and modify it."

  5991. ac_pwd='$ac_pwd'
  5992. srcdir='$srcdir'
  5993. INSTALL='$INSTALL'
  5994. test -n "\$AWK" || AWK=awk
  5995. _ACEOF

  5996. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5997. # The default lists apply if the user does not specify any file.
  5998. ac_need_defaults=:
  5999. while test $# != 0
  6000. do
  6001.   case $1 in
  6002.   --*=*)
  6003.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6004.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6005.     ac_shift=:
  6006.     ;;
  6007.   *)
  6008.     ac_option=$1
  6009.     ac_optarg=$2
  6010.     ac_shift=shift
  6011.     ;;
  6012.   esac

  6013.   case $ac_option in
  6014.   # Handling of the options.
  6015.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6016.     ac_cs_recheck=: ;;
  6017.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6018.     $as_echo "$ac_cs_version"; exit ;;
  6019.   --debug | --debu | --deb | --de | --d | -d )
  6020.     debug=: ;;
  6021.   --file | --fil | --fi | --f )
  6022.     $ac_shift
  6023.     case $ac_optarg in
  6024.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6025.     esac
  6026.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  6027.     ac_need_defaults=false;;
  6028.   --header | --heade | --head | --hea )
  6029.     $ac_shift
  6030.     case $ac_optarg in
  6031.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6032.     esac
  6033.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6034.     ac_need_defaults=false;;
  6035.   --he | --h)
  6036.     # Conflict between --help and --header
  6037.     as_fn_error "ambiguous option: \`$1'
  6038. Try \`$0 --help' for more information.";;
  6039.   --help | --hel | -h )
  6040.     $as_echo "$ac_cs_usage"; exit ;;
  6041.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6042.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6043.     ac_cs_silent=: ;;

  6044.   # This is an error.
  6045.   -*) as_fn_error "unrecognized option: \`$1'
  6046. Try \`$0 --help' for more information." ;;

  6047.   *) as_fn_append ac_config_targets " $1"
  6048.      ac_need_defaults=false ;;

  6049.   esac
  6050.   shift
  6051. done

  6052. ac_configure_extra_args=

  6053. if $ac_cs_silent; then
  6054.   exec 6>/dev/null
  6055.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  6056. fi

  6057. _ACEOF
  6058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6059. if \$ac_cs_recheck; then
  6060.   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6061.   shift
  6062.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6063.   CONFIG_SHELL='$SHELL'
  6064.   export CONFIG_SHELL
  6065.   exec "\$@"
  6066. fi

  6067. _ACEOF
  6068. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6069. exec 5>>config.log
  6070. {
  6071.   echo
  6072.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6073. ## Running $as_me. ##
  6074. _ASBOX
  6075.   $as_echo "$ac_log"
  6076. } >&5

  6077. _ACEOF
  6078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6079. #
  6080. # INIT-COMMANDS
  6081. #
  6082. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR

  6083. _ACEOF

  6084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

  6085. # Handling of arguments.
  6086. for ac_config_target in $ac_config_targets
  6087. do
  6088.   case $ac_config_target in
  6089.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  6090.     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  6091.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6092.     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  6093.   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6094.   esac
  6095. done


  6096. # If the user did not use the arguments to specify the items to instantiate,
  6097. # then the envvar interface is used.  Set only those that are not.
  6098. # We use the long form for the default assignment because of an extremely
  6099. # bizarre bug on SunOS 4.1.3.
  6100. if $ac_need_defaults; then
  6101.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6102.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6103.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6104. fi

  6105. # Have a temporary directory for convenience.  Make it in the build tree
  6106. # simply because there is no reason against having it here, and in addition,
  6107. # creating and moving files from /tmp can sometimes cause problems.
  6108. # Hook for its removal unless debugging.
  6109. # Note that there is a small window in which the directory will not be cleaned:
  6110. # after its creation but before its name has been assigned to `$tmp'.
  6111. $debug ||
  6112. {
  6113.   tmp=
  6114.   trap 'exit_status=$?
  6115.   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  6116. ' 0
  6117.   trap 'as_fn_exit 1' 1 2 13 15
  6118. }
  6119. # Create a (secure) tmp directory for tmp files.

  6120. {
  6121.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6122.   test -n "$tmp" && test -d "$tmp"
  6123. }  ||
  6124. {
  6125.   tmp=./conf$$-$RANDOM
  6126.   (umask 077 && mkdir "$tmp")
  6127. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

  6128. # Set up the scripts for CONFIG_FILES section.
  6129. # No need to generate them if there are no CONFIG_FILES.
  6130. # This happens for instance with `./config.status config.h'.
  6131. if test -n "$CONFIG_FILES"; then


  6132. ac_cr=`echo X | tr X '\015'`
  6133. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6134. # But we know of no other shell where ac_cr would be empty at this
  6135. # point, so we can use a bashism as a fallback.
  6136. if test "x$ac_cr" = x; then
  6137.   eval ac_cr=\$\'\\r\'
  6138. fi
  6139. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6140. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6141.   ac_cs_awk_cr='\r'
  6142. else
  6143.   ac_cs_awk_cr=$ac_cr
  6144. fi

  6145. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  6146. _ACEOF


  6147. {
  6148.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  6149.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6150.   echo "_ACEOF"
  6151. } >conf$$subs.sh ||
  6152.   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  6153. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  6154. ac_delim='%!_!# '
  6155. for ac_last_try in false false false false false :; do
  6156. . ./conf$$subs.sh ||
  6157.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  6158.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6159.   if test $ac_delim_n = $ac_delim_num; then
  6160.     break
  6161.   elif $ac_last_try; then
  6162.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  6163.   else
  6164.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6165.   fi
  6166. done
  6167. rm -f conf$$subs.sh

  6168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6169. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  6170. _ACEOF
  6171. sed -n '
  6172. h
  6173. s/^/S["/; s/!.*/"]=/
  6174. p
  6175. g
  6176. s/^[^!]*!//
  6177. :repl
  6178. t repl
  6179. s/'"$ac_delim"'$//
  6180. t delim
  6181. :nl
  6182. h
  6183. s/\(.\{148\}\).*/\1/
  6184. t more1
  6185. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6186. p
  6187. n
  6188. b repl
  6189. :more1
  6190. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6191. p
  6192. g
  6193. s/.\{148\}//
  6194. t nl
  6195. :delim
  6196. h
  6197. s/\(.\{148\}\).*/\1/
  6198. t more2
  6199. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6200. p
  6201. b
  6202. :more2
  6203. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6204. p
  6205. g
  6206. s/.\{148\}//
  6207. t delim
  6208. ' <conf$$subs.awk | sed '
  6209. /^[^""]/{
  6210.   N
  6211.   s/\n//
  6212. }
  6213. ' >>$CONFIG_STATUS || ac_write_fail=1
  6214. rm -f conf$$subs.awk
  6215. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6216. _ACAWK
  6217. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  6218.   for (key in S) S_is_set[key] = 1
  6219.   FS = ""

  6220. }
  6221. {
  6222.   line = $ 0
  6223.   nfields = split(line, field, "@")
  6224.   substed = 0
  6225.   len = length(field[1])
  6226.   for (i = 2; i < nfields; i++) {
  6227.     key = field[i]
  6228.     keylen = length(key)
  6229.     if (S_is_set[key]) {
  6230.       value = S[key]
  6231.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6232.       len += length(value) + length(field[++i])
  6233.       substed = 1
  6234.     } else
  6235.       len += 1 + keylen
  6236.   }

  6237.   print line
  6238. }

  6239. _ACAWK
  6240. _ACEOF
  6241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6242. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6243.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6244. else
  6245.   cat
  6246. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  6247.   || as_fn_error "could not setup config files machinery" "$LINENO" 5
  6248. _ACEOF

  6249. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  6250. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6251. # trailing colons and then remove the whole line if VPATH becomes empty
  6252. # (actually we leave an empty line to preserve line numbers).
  6253. if test "x$srcdir" = x.; then
  6254.   ac_vpsub='/^[         ]*VPATH[         ]*=/{
  6255. s/:*\$(srcdir):*/:/
  6256. s/:*\${srcdir}:*/:/
  6257. s/:*@srcdir@:*/:/
  6258. s/^\([^=]*=[         ]*\):*/\1/
  6259. s/:*$//
  6260. s/^[^=]*=[         ]*$//
  6261. }'
  6262. fi

  6263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6264. fi # test -n "$CONFIG_FILES"

  6265. # Set up the scripts for CONFIG_HEADERS section.
  6266. # No need to generate them if there are no CONFIG_HEADERS.
  6267. # This happens for instance with `./config.status Makefile'.
  6268. if test -n "$CONFIG_HEADERS"; then
  6269. cat >"$tmp/defines.awk" <<\_ACAWK ||
  6270. BEGIN {
  6271. _ACEOF

  6272. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6273. # here-document in config.status, that substitutes the proper values into
  6274. # config.h.in to produce config.h.

  6275. # Create a delimiter string that does not exist in confdefs.h, to ease
  6276. # handling of long lines.
  6277. ac_delim='%!_!# '
  6278. for ac_last_try in false false :; do
  6279.   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  6280.   if test -z "$ac_t"; then
  6281.     break
  6282.   elif $ac_last_try; then
  6283.     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  6284.   else
  6285.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6286.   fi
  6287. done

  6288. # For the awk script, D is an array of macro values keyed by name,
  6289. # likewise P contains macro parameters if any.  Preserve backslash
  6290. # newline sequences.

  6291. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6292. sed -n '
  6293. s/.\{148\}/&'"$ac_delim"'/g
  6294. t rset
  6295. :rset
  6296. s/^[         ]*#[         ]*define[         ][         ]*/ /
  6297. t def
  6298. d
  6299. :def
  6300. s/\\$//
  6301. t bsnl
  6302. s/["\\]/\\&/g
  6303. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[         ]*\(.*\)/P["\1"]="\2"\
  6304. D["\1"]=" \3"/p
  6305. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  6306. d
  6307. :bsnl
  6308. s/["\\]/\\&/g
  6309. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[         ]*\(.*\)/P["\1"]="\2"\
  6310. D["\1"]=" \3\\\\\\n"\\/p
  6311. t cont
  6312. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6313. t cont
  6314. d
  6315. :cont
  6316. n
  6317. s/.\{148\}/&'"$ac_delim"'/g
  6318. t clear
  6319. :clear
  6320. s/\\$//
  6321. t bsnlc
  6322. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6323. d
  6324. :bsnlc
  6325. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6326. b cont
  6327. ' <confdefs.h | sed '
  6328. s/'"$ac_delim"'/"\\\
  6329. "/g' >>$CONFIG_STATUS || ac_write_fail=1

  6330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6331.   for (key in D) D_is_set[key] = 1
  6332.   FS = ""
  6333. }
  6334. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6335.   line = \$ 0
  6336.   split(line, arg, " ")
  6337.   if (arg[1] == "#") {
  6338.     defundef = arg[2]
  6339.     mac1 = arg[3]
  6340.   } else {
  6341.     defundef = substr(arg[1], 2)
  6342.     mac1 = arg[2]
  6343.   }
  6344.   split(mac1, mac2, "(") #)
  6345.   macro = mac2[1]
  6346.   prefix = substr(line, 1, index(line, defundef) - 1)
  6347.   if (D_is_set[macro]) {
  6348.     # Preserve the white space surrounding the "#".
  6349.     print prefix "define", macro P[macro] D[macro]
  6350.     next
  6351.   } else {
  6352.     # Replace #undef with comments.  This is necessary, for example,
  6353.     # in the case of _POSIX_SOURCE, which is predefined and required
  6354.     # on some systems where configure will not decide to define it.
  6355.     if (defundef == "undef") {
  6356.       print "/*", prefix defundef, macro, "*/"
  6357.       next
  6358.     }
  6359.   }
  6360. }
  6361. { print }
  6362. _ACAWK
  6363. _ACEOF
  6364. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6365.   as_fn_error "could not setup config headers machinery" "$LINENO" 5
  6366. fi # test -n "$CONFIG_HEADERS"


  6367. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  6368. shift
  6369. for ac_tag
  6370. do
  6371.   case $ac_tag in
  6372.   :[FHLC]) ac_mode=$ac_tag; continue;;
  6373.   esac
  6374.   case $ac_mode$ac_tag in
  6375.   :[FHL]*:*);;
  6376.   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6377.   :[FH]-) ac_tag=-:-;;
  6378.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6379.   esac
  6380.   ac_save_IFS=$IFS
  6381.   IFS=:
  6382.   set x $ac_tag
  6383.   IFS=$ac_save_IFS
  6384.   shift
  6385.   ac_file=$1
  6386.   shift

  6387.   case $ac_mode in
  6388.   :L) ac_source=$1;;
  6389.   :[FH])
  6390.     ac_file_inputs=
  6391.     for ac_f
  6392.     do
  6393.       case $ac_f in
  6394.       -) ac_f="$tmp/stdin";;
  6395.       *) # Look for the file first in the build tree, then in the source tree
  6396.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  6397.          # because $ac_f cannot contain `:'.
  6398.          test -f "$ac_f" ||
  6399.            case $ac_f in
  6400.            [\\/$]*) false;;
  6401.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6402.            esac ||
  6403.            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6404.       esac
  6405.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6406.       as_fn_append ac_file_inputs " '$ac_f'"
  6407.     done

  6408.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  6409.     # use $as_me), people would be surprised to read:
  6410.     #    /* config.h.  Generated by config.status.  */
  6411.     configure_input='Generated from '`
  6412.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6413.         `' by configure.'
  6414.     if test x"$ac_file" != x-; then
  6415.       configure_input="$ac_file.  $configure_input"
  6416.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6417. $as_echo "$as_me: creating $ac_file" >&6;}
  6418.     fi
  6419.     # Neutralize special characters interpreted by sed in replacement strings.
  6420.     case $configure_input in #(
  6421.     *\&* | *\|* | *\\* )
  6422.        ac_sed_conf_input=`$as_echo "$configure_input" |
  6423.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6424.     *) ac_sed_conf_input=$configure_input;;
  6425.     esac

  6426.     case $ac_tag in
  6427.     *:-:* | *:-) cat >"$tmp/stdin" \
  6428.       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  6429.     esac
  6430.     ;;
  6431.   esac

  6432.   ac_dir=`$as_dirname -- "$ac_file" ||
  6433. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6434.          X"$ac_file" : 'X\(//\)[^/]' \| \
  6435.          X"$ac_file" : 'X\(//\)$' \| \
  6436.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6437. $as_echo X"$ac_file" |
  6438.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6439.             s//\1/
  6440.             q
  6441.           }
  6442.           /^X\(\/\/\)[^/].*/{
  6443.             s//\1/
  6444.             q
  6445.           }
  6446.           /^X\(\/\/\)$/{
  6447.             s//\1/
  6448.             q
  6449.           }
  6450.           /^X\(\/\).*/{
  6451.             s//\1/
  6452.             q
  6453.           }
  6454.           s/.*/./; q'`
  6455.   as_dir="$ac_dir"; as_fn_mkdir_p
  6456.   ac_builddir=.

  6457. case "$ac_dir" in
  6458. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6459. *)
  6460.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6461.   # A ".." for each directory in $ac_dir_suffix.
  6462.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6463.   case $ac_top_builddir_sub in
  6464.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6465.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6466.   esac ;;
  6467. esac
  6468. ac_abs_top_builddir=$ac_pwd
  6469. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6470. # for backward compatibility:
  6471. ac_top_builddir=$ac_top_build_prefix

  6472. case $srcdir in
  6473.   .)  # We are building in place.
  6474.     ac_srcdir=.
  6475.     ac_top_srcdir=$ac_top_builddir_sub
  6476.     ac_abs_top_srcdir=$ac_pwd ;;
  6477.   [\\/]* | ?:[\\/]* )  # Absolute name.
  6478.     ac_srcdir=$srcdir$ac_dir_suffix;
  6479.     ac_top_srcdir=$srcdir
  6480.     ac_abs_top_srcdir=$srcdir ;;
  6481.   *) # Relative name.
  6482.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6483.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  6484.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6485. esac
  6486. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  6487.   case $ac_mode in
  6488.   :F)
  6489.   #
  6490.   # CONFIG_FILE
  6491.   #

  6492.   case $INSTALL in
  6493.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6494.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6495.   esac
  6496. _ACEOF

  6497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6498. # If the template does not know about datarootdir, expand it.
  6499. # FIXME: This hack should be removed a few years after 2.60.
  6500. ac_datarootdir_hack=; ac_datarootdir_seen=
  6501. ac_sed_dataroot='
  6502. /datarootdir/ {
  6503.   p
  6504.   q
  6505. }
  6506. /@datadir@/p
  6507. /@docdir@/p
  6508. /@infodir@/p
  6509. /@localedir@/p
  6510. /@mandir@/p'
  6511. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6512. *datarootdir*) ac_datarootdir_seen=yes;;
  6513. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6514.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6515. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6516. _ACEOF
  6517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6518.   ac_datarootdir_hack='
  6519.   s&@datadir@&$datadir&g
  6520.   s&@docdir@&$docdir&g
  6521.   s&@infodir@&$infodir&g
  6522.   s&@localedir@&$localedir&g
  6523.   s&@mandir@&$mandir&g
  6524.   s&\\\${datarootdir}&$datarootdir&g' ;;
  6525. esac
  6526. _ACEOF

  6527. # Neutralize VPATH when `$srcdir' = `.'.
  6528. # Shell code in configure.ac might set extrasub.
  6529. # FIXME: do we really want to maintain this feature?
  6530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6531. ac_sed_extra="$ac_vpsub
  6532. $extrasub
  6533. _ACEOF
  6534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6535. :t
  6536. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6537. s|@configure_input@|$ac_sed_conf_input|;t t
  6538. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6539. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6540. s&@srcdir@&$ac_srcdir&;t t
  6541. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6542. s&@top_srcdir@&$ac_top_srcdir&;t t
  6543. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6544. s&@builddir@&$ac_builddir&;t t
  6545. s&@abs_builddir@&$ac_abs_builddir&;t t
  6546. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6547. s&@INSTALL@&$ac_INSTALL&;t t
  6548. $ac_datarootdir_hack
  6549. "
  6550. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  6551.   || as_fn_error "could not create $ac_file" "$LINENO" 5

  6552. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6553.   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  6554.   { ac_out=`sed -n '/^[         ]*datarootdir[         ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  6555.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6556. which seems to be undefined.  Please make sure it is defined." >&5
  6557. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6558. which seems to be undefined.  Please make sure it is defined." >&2;}

  6559.   rm -f "$tmp/stdin"
  6560.   case $ac_file in
  6561.   -) cat "$tmp/out" && rm -f "$tmp/out";;
  6562.   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  6563.   esac \
  6564.   || as_fn_error "could not create $ac_file" "$LINENO" 5
  6565. ;;
  6566.   :H)
  6567.   #
  6568.   # CONFIG_HEADER
  6569.   #
  6570.   if test x"$ac_file" != x-; then
  6571.     {
  6572.       $as_echo "/* $configure_input  */" \
  6573.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  6574.     } >"$tmp/config.h" \
  6575.       || as_fn_error "could not create $ac_file" "$LINENO" 5
  6576.     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  6577.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6578. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6579.     else
  6580.       rm -f "$ac_file"
  6581.       mv "$tmp/config.h" "$ac_file" \
  6582.         || as_fn_error "could not create $ac_file" "$LINENO" 5
  6583.     fi
  6584.   else
  6585.     $as_echo "/* $configure_input  */" \
  6586.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  6587.       || as_fn_error "could not create -" "$LINENO" 5
  6588.   fi
  6589. ;;

  6590.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  6591. $as_echo "$as_me: executing $ac_file commands" >&6;}
  6592. ;;
  6593.   esac


  6594.   case $ac_file$ac_mode in
  6595.     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  6596.     "default":C) case x$CONFIG_HEADERS in
  6597. xconfig.h:config.in)
  6598. echo > stamp-h ;;
  6599. esac
  6600. ;;

  6601.   esac
  6602. done # for ac_tag


  6603. as_fn_exit 0
  6604. _ACEOF
  6605. ac_clean_files=$ac_clean_files_save

  6606. test $ac_write_fail = 0 ||
  6607.   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


  6608. # configure is writing to config.log, and then calls config.status.
  6609. # config.status does its own redirection, appending to config.log.
  6610. # Unfortunately, on DOS this fails, as config.log is still kept open
  6611. # by configure, so config.status won't be able to write to it; its
  6612. # output is simply discarded.  So we exec the FD to /dev/null,
  6613. # effectively closing config.log, so it can be properly (re)opened and
  6614. # appended to by config.status.  When coming back to configure, we
  6615. # need to make the FD available again.
  6616. if test "$no_create" != yes; then
  6617.   ac_cs_success=:
  6618.   ac_config_status_args=
  6619.   test "$silent" = yes &&
  6620.     ac_config_status_args="$ac_config_status_args --quiet"
  6621.   exec 5>/dev/null
  6622.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6623.   exec 5>>config.log
  6624.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6625.   # would make configure fail if this is the last instruction.
  6626.   $ac_cs_success || as_fn_exit $?
  6627. fi
  6628. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6629.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6630. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6631. fi